:root {
  color-scheme: light;
  --fb-ink: #08080d;
  --fb-muted: #555066;
  --fb-soft: #777186;
  --fb-purple: #7238ff;
  --fb-purple-dark: #5c25de;
  --fb-purple-soft: #efe7ff;
  --fb-blue: #32a7ff;
  --fb-line: rgba(160, 166, 190, 0.55);
  --fb-panel: rgba(255, 255, 255, 0.88);
  --fb-panel-strong: rgba(255, 255, 255, 0.94);
  --fb-focus: rgba(114, 56, 255, 0.38);
  --fb-font: "Inter", "Segoe UI", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  min-height: 100vh;
  background: #eaf6ff url("/img/fotobeacon/background-phone-480.jpg") center / cover no-repeat;
  background-image: image-set(
    url("/img/fotobeacon/background-phone-480.avif") type("image/avif"),
    url("/img/fotobeacon/background-phone-480.webp") type("image/webp"),
    url("/img/fotobeacon/background-phone-480.jpg") type("image/jpeg")
  );
}

body.fb-body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
  background: #eaf6ff;
  background-image: url("/img/fotobeacon/background-phone-480.jpg");
  background-image: image-set(
    url("/img/fotobeacon/background-phone-480.avif") type("image/avif"),
    url("/img/fotobeacon/background-phone-480.webp") type("image/webp"),
    url("/img/fotobeacon/background-phone-480.jpg") type("image/jpeg")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--fb-ink);
  font-family: var(--fb-font);
  letter-spacing: 0;
}

body.fb-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(248, 244, 255, 0.18);
}

body.fb-modal-open {
  overflow: hidden;
}

.fb-skip-link {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--fb-ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.fb-skip-link:focus {
  transform: translateY(0);
}

.fb-page {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.fb-panel {
  position: relative;
  width: min(100%, 336px);
  padding: 72px 20px 17px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: var(--fb-panel);
  box-shadow: 0 22px 58px rgba(69, 47, 130, 0.22), inset 0 0 0 1px rgba(114, 56, 255, 0.09);
  backdrop-filter: blur(18px);
}

.fb-lang {
  position: absolute;
  top: 25px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.fb-lang button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(75, 71, 94, 0.74);
  font: 800 0.82rem/1 var(--fb-font);
  cursor: pointer;
}

.fb-lang button.active,
.fb-lang button:hover {
  color: #ba48ff;
  background: rgba(255, 255, 255, 0.72);
}

.fb-lang button:focus-visible,
.fb-back-button:focus-visible,
.fb-cta:focus-visible,
.fb-step:focus-visible,
.fb-legal a:focus-visible,
.fb-entry-mode:focus-visible,
.fb-entry-submit:focus-visible,
.fb-qr-reader button:focus-visible,
.fb-name-field input:focus-visible,
.fb-modal button:focus-visible,
.fb-modal input:focus-visible {
  outline: 3px solid var(--fb-focus);
  outline-offset: 2px;
}

.fb-back-button {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 56, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--fb-purple);
  font: 900 1rem/1 var(--fb-font);
  cursor: pointer;
}

.fb-view[hidden],
.fb-back-button[hidden] {
  display: none;
}

.fb-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
}

.fb-logo {
  display: block;
  width: 188px;
  height: auto;
}

.fb-memory-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  color: var(--fb-muted);
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: center;
}

.fb-memory-line::before,
.fb-memory-line::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #c6a66f;
}

.fb-hero-title {
  margin: 0 auto 28px;
  max-width: 292px;
  color: var(--fb-ink);
  font-size: 1.72rem;
  line-height: 1.08;
  font-weight: 900;
  text-align: left;
}

.fb-hero-line {
  display: block;
}

.fb-hero-title .fb-accent {
  color: var(--fb-purple);
}

.fb-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.fb-action-item {
  min-width: 0;
}

.fb-action-item p {
  min-height: 16px;
  margin: 6px 0 0;
  color: var(--fb-muted);
  font-size: 0.68rem;
  line-height: 1.28;
  text-align: center;
}

.fb-cta {
  width: 100%;
  min-height: 47px;
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  align-items: center;
  border: 2px solid var(--fb-purple);
  border-radius: 10px;
  font: 700 0.88rem/1.1 var(--fb-font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.fb-cta-secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--fb-purple);
}

.fb-cta-primary {
  background: var(--fb-purple);
  color: #fff;
}

.fb-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(86, 47, 160, 0.18);
}

.fb-cta-icon {
  display: grid;
  place-items: center;
}

.fb-cta svg,
.fb-step svg,
.fb-privacy-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-cta-arrow {
  font-weight: 900;
}

.fb-desktop-helper {
  display: none;
  margin: 15px 0 0;
  color: var(--fb-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.fb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 15px 0 0;
}

.fb-step {
  position: relative;
  min-width: 0;
  min-height: 103px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid rgba(188, 194, 212, 0.86);
  background: transparent;
  color: var(--fb-ink);
  cursor: pointer;
  font: inherit;
}

.fb-step:last-child {
  border-right: 0;
}

.fb-step-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--fb-purple-soft);
  color: var(--fb-purple);
}

.fb-step-number {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: var(--fb-purple);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.fb-step-text {
  display: block;
  color: var(--fb-ink);
  font-size: 0.68rem;
  line-height: 1.16;
  text-align: center;
}

.fb-divider {
  height: 1px;
  margin: 17px 0 16px;
  background: var(--fb-line);
}

.fb-privacy {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px 12px;
  align-items: center;
}

.fb-privacy-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--fb-purple);
}

.fb-privacy-icon svg {
  width: 46px;
  height: 46px;
  stroke-width: 2.3;
}

.fb-privacy-copy strong {
  display: block;
  color: var(--fb-ink);
  font-size: 0.79rem;
  line-height: 1.22;
}

.fb-privacy-copy p {
  margin: 4px 0 0;
  color: #3f3d48;
  font-size: 0.62rem;
  line-height: 1.22;
}

.fb-legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 11px;
  border-top: 1px solid rgba(196, 202, 220, 0.72);
  color: var(--fb-soft);
  font-size: 0.66rem;
  line-height: 1.2;
}

.fb-legal a {
  color: var(--fb-purple-dark);
  text-decoration: none;
}

.fb-legal a:hover {
  text-decoration: underline;
}

.fb-brand-event {
  margin-bottom: 15px;
}

.fb-panel[data-panel-state="event-entry"] {
  width: min(100%, 390px);
  padding: 70px 22px 24px;
}

.fb-view-event {
  --fb-flow-width: min(100%, 390px);
  display: grid;
  justify-items: center;
  width: 100%;
}

.fb-event-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 24px;
  color: var(--fb-ink);
  font-size: 1.58rem;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.fb-event-title::before,
.fb-event-title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(150, 144, 188, 0.68);
}

.fb-event-step {
  width: var(--fb-flow-width);
  min-width: 0;
}

.fb-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 154px;
  gap: 10px;
  padding: 20px 17px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(196, 108, 255, 0.98), rgba(61, 28, 216, 0.98));
  color: #fff;
  box-shadow: 0 12px 24px rgba(76, 41, 170, 0.28);
  transition: opacity 180ms ease, filter 180ms ease;
}

.fb-entry-card.completed {
  opacity: 0.58;
  filter: saturate(0.72);
  pointer-events: none;
}

.fb-entry-card.has-qr {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
}

.fb-entry-card.no-qr {
  grid-template-columns: minmax(0, 1fr);
}

.fb-entry-mode {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 0.84rem/1.18 var(--fb-font);
  text-align: center;
  cursor: pointer;
}

.fb-entry-mode[hidden] {
  display: none;
}

.fb-entry-card.no-qr .fb-entry-or {
  display: none;
}

.fb-entry-card.no-qr .fb-entry-mode-key {
  min-height: 112px;
}

.fb-entry-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.fb-entry-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-name-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-entry-or {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.fb-entry-or::before,
.fb-entry-or::after {
  content: "";
  width: 2px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.fb-entry-key-box {
  width: 100%;
  max-width: 128px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 17px;
  background: rgba(52, 39, 204, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fb-entry-key-box input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background: rgba(77, 45, 217, 0.38);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font: 900 0.92rem/1 var(--fb-font);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  opacity: 1;
}

.fb-entry-key-box input::placeholder {
  color: rgba(255, 255, 255, 0.82);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82);
  text-transform: none;
}

.fb-entry-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fb-qr-reader {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.fb-qr-reader[hidden] {
  display: none;
}

.fb-qr-reader video {
  width: 100%;
  max-height: 220px;
  border: 2px solid rgba(114, 56, 255, 0.7);
  border-radius: 12px;
  background: #111;
  object-fit: cover;
}

.fb-qr-reader button {
  min-height: 36px;
  border: 1px solid var(--fb-purple);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--fb-purple);
  font: 800 0.8rem/1 var(--fb-font);
  cursor: pointer;
}

.fb-event-status {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--fb-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}

.fb-event-status:empty {
  display: none;
}

.fb-event-status[data-status-state="success"] {
  color: #315f4e;
}

.fb-event-status[data-status-state="error"] {
  color: #a23a48;
}

.fb-flow-arrow {
  display: none;
  margin: 8px 0;
  color: var(--fb-purple);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.fb-panel.event-valid .fb-flow-arrow-name,
.fb-panel.album-ready .fb-flow-arrow-album {
  display: block;
}

.fb-name-step[hidden] {
  display: none;
}

.fb-name-field {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  padding: 5px 10px;
  border: 2px solid var(--fb-purple);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--fb-purple);
  box-shadow: 0 8px 18px rgba(76, 41, 170, 0.18);
}

.fb-name-icon {
  display: grid;
  place-items: center;
}

.fb-name-control {
  position: relative;
  min-width: 0;
  display: block;
}

.fb-name-placeholder {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  pointer-events: none;
  color: #514c5b;
  font-size: 0.82rem;
  line-height: 1.05;
  font-weight: 700;
  text-align: center;
}

.fb-name-placeholder span {
  display: block;
}

.fb-name-field input {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #514c5b;
  font: 700 0.86rem/1.14 var(--fb-font);
  text-align: center;
}

.fb-name-field.has-name .fb-name-placeholder {
  opacity: 0;
}

.fb-album-step[hidden] {
  display: none;
}

.fb-album-button {
  width: 100%;
  min-height: 182px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 22px 18px;
  border: 2px solid var(--fb-purple);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(221, 214, 242, 0.72));
  color: var(--fb-purple);
  box-shadow: 0 10px 20px rgba(76, 41, 170, 0.2);
  cursor: pointer;
}

.fb-album-icon {
  width: 68px;
  height: 68px;
  color: var(--fb-purple);
}

.fb-album-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-album-label {
  display: inline-block;
  border-bottom: 5px solid currentColor;
  color: var(--fb-purple);
  font-size: 1.74rem;
  line-height: 1;
  font-weight: 900;
}

.fb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 15, 28, 0.58);
}

.fb-modal-backdrop.open {
  display: flex;
}

.fb-modal {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--fb-ink);
  box-shadow: 0 28px 80px rgba(12, 12, 24, 0.28);
}

.fb-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: rgba(114, 56, 255, 0.1);
  color: var(--fb-purple);
  font: 900 1.2rem/1 var(--fb-font);
  cursor: pointer;
}

.fb-modal h2 {
  margin: 0 36px 10px 0;
  font-size: 1.4rem;
  line-height: 1.18;
}

.fb-modal p {
  margin: 0 0 18px;
  color: var(--fb-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.fb-modal-form {
  display: grid;
  gap: 10px;
}

.fb-modal-form label {
  color: var(--fb-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.fb-modal-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(114, 56, 255, 0.38);
  border-radius: 10px;
  background: #fff;
  color: var(--fb-ink);
  font: 500 1rem/1 var(--fb-font);
}

.fb-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.fb-modal-button {
  min-height: 45px;
  border: 1px solid var(--fb-purple);
  border-radius: 10px;
  font: 800 0.92rem/1 var(--fb-font);
  cursor: pointer;
}

.fb-modal-button-ghost {
  background: #fff;
  color: var(--fb-purple);
}

.fb-modal-button-primary {
  background: var(--fb-purple);
  color: #fff;
}

@media (min-width: 700px) {
  html {
    background-image: url("/img/fotobeacon/background-tablet-1024.jpg");
    background-image: image-set(
      url("/img/fotobeacon/background-tablet-1024.avif") type("image/avif"),
      url("/img/fotobeacon/background-tablet-1024.webp") type("image/webp"),
      url("/img/fotobeacon/background-tablet-1024.jpg") type("image/jpeg")
    );
  }

  body.fb-body {
    background-image: url("/img/fotobeacon/background-tablet-1024.jpg");
    background-image: image-set(
      url("/img/fotobeacon/background-tablet-1024.avif") type("image/avif"),
      url("/img/fotobeacon/background-tablet-1024.webp") type("image/webp"),
      url("/img/fotobeacon/background-tablet-1024.jpg") type("image/jpeg")
    );
  }

  .fb-page {
    padding: max(36px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(36px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  }

  .fb-panel {
    width: min(100%, 760px);
    padding: 78px 56px 30px;
    border-radius: 34px;
  }

  .fb-panel[data-panel-state="event-entry"] {
    width: min(100%, 760px);
    padding: 78px 56px 30px;
  }

  .fb-view-event {
    --fb-flow-width: min(100%, 520px);
  }

  .fb-lang {
    top: 36px;
    right: 54px;
    gap: 14px;
  }

  .fb-logo {
    width: 214px;
  }

  .fb-brand-event {
    margin-bottom: 18px;
  }

  .fb-memory-line {
    margin-bottom: 22px;
    font-size: 0.84rem;
  }

  .fb-memory-line::before,
  .fb-memory-line::after {
    width: 74px;
  }

  .fb-hero-title {
    max-width: none;
    margin-bottom: 28px;
    font-size: 2.35rem;
    line-height: 1.12;
    text-align: center;
  }

  .fb-hero-line {
    display: inline;
  }

  .fb-actions {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .fb-action-item p {
    display: none;
  }

  .fb-cta {
    min-height: 54px;
    grid-template-columns: 56px 1fr 42px;
    border-radius: 11px;
    font-size: 0.96rem;
  }

  .fb-desktop-helper {
    display: block;
    margin-top: 17px;
  }

  .fb-steps {
    margin-top: 20px;
  }

  .fb-step {
    min-height: 142px;
    padding: 0 16px;
  }

  .fb-step-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 13px;
  }

  .fb-step svg {
    width: 36px;
    height: 36px;
  }

  .fb-step-number {
    width: 18px;
    height: 18px;
    margin-bottom: 7px;
    font-size: 0.64rem;
  }

  .fb-step-text {
    max-width: 118px;
    margin: 0 auto;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .fb-divider {
    margin: 24px 0 18px;
  }

  .fb-privacy {
    grid-template-columns: 52px minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: center;
  }

  .fb-privacy-icon {
    width: 52px;
    height: 52px;
  }

  .fb-privacy-copy strong {
    font-size: 0.9rem;
  }

  .fb-privacy-copy p {
    max-width: 370px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .fb-legal {
    grid-column: auto;
    justify-content: flex-end;
    padding-top: 0;
    border-top: 0;
    font-size: 0.76rem;
  }

  .fb-event-title {
    margin-bottom: 30px;
    font-size: 2rem;
    gap: 28px;
  }

  .fb-event-title::before,
  .fb-event-title::after {
    width: 100px;
  }

  .fb-entry-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 20px 22px;
    border-radius: 14px;
  }

  .fb-entry-card.has-qr {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 12px;
  }

  .fb-entry-card.no-qr {
    grid-template-columns: minmax(0, 1fr);
  }

  .fb-entry-icon {
    width: 88px;
    height: 76px;
  }

  .fb-entry-mode {
    font-size: 0.92rem;
  }

  .fb-name-field {
    width: min(100%, 520px);
    min-height: 58px;
    margin: 0 auto;
    grid-template-columns: 62px 1fr;
    border-radius: 18px;
  }

  .fb-name-field input {
    font-size: 1rem;
  }
}

@media (min-width: 700px) and (orientation: landscape) {
  html {
    background-image: url("/img/fotobeacon/background-desktop-1920.jpg");
    background-image: image-set(
      url("/img/fotobeacon/background-desktop-1920.avif") type("image/avif"),
      url("/img/fotobeacon/background-desktop-1920.webp") type("image/webp"),
      url("/img/fotobeacon/background-desktop-1920.jpg") type("image/jpeg")
    );
  }

  body.fb-body {
    background-image: url("/img/fotobeacon/background-desktop-1920.jpg");
    background-image: image-set(
      url("/img/fotobeacon/background-desktop-1920.avif") type("image/avif"),
      url("/img/fotobeacon/background-desktop-1920.webp") type("image/webp"),
      url("/img/fotobeacon/background-desktop-1920.jpg") type("image/jpeg")
    );
  }
}

@media (min-width: 1100px) and (orientation: landscape) {
  .fb-panel {
    width: min(100%, 1000px);
    padding: 74px 92px 32px;
  }

  .fb-lang {
    top: 34px;
    right: 84px;
  }

  .fb-logo {
    width: 220px;
  }

  .fb-hero-title {
    font-size: 2.5rem;
  }

  .fb-actions {
    gap: 24px;
  }

  .fb-desktop-helper {
    margin-top: 17px;
  }

  .fb-steps {
    margin-top: 22px;
  }
}

@media (min-width: 700px) and (orientation: landscape) and (max-height: 860px) {
  .fb-page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .fb-panel {
    width: min(100%, 1000px);
    padding: 58px 76px 24px;
    border-radius: 32px;
  }

  .fb-lang {
    top: 30px;
    right: 70px;
  }

  .fb-logo {
    width: 164px;
  }

  .fb-brand-event {
    margin-bottom: 10px;
  }

  .fb-memory-line {
    margin-bottom: 15px;
  }

  .fb-hero-title {
    margin-bottom: 20px;
    font-size: 2.12rem;
  }

  .fb-cta {
    min-height: 48px;
  }

  .fb-desktop-helper {
    margin-top: 12px;
  }

  .fb-steps {
    margin-top: 16px;
  }

  .fb-step {
    min-height: 112px;
  }

  .fb-step-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 9px;
  }

  .fb-step svg {
    width: 30px;
    height: 30px;
  }

  .fb-divider {
    margin: 16px 0 14px;
  }

  .fb-event-title {
    margin-bottom: 18px;
    font-size: 1.62rem;
  }

  .fb-entry-card {
    width: min(100%, 560px);
    padding: 16px 18px;
  }

  .fb-entry-icon {
    width: 76px;
    height: 58px;
  }

  .fb-flow-arrow {
    margin: 5px 0;
    font-size: 1.7rem;
  }
}

@media (max-width: 360px) {
  .fb-panel {
    padding: 66px 16px 15px;
  }

  .fb-lang {
    top: 22px;
    right: 22px;
    gap: 8px;
  }

  .fb-logo {
    width: 172px;
  }

  .fb-hero-title {
    font-size: 1.8rem;
    margin-bottom: 22px;
  }

  .fb-cta {
    min-height: 44px;
  }

  .fb-step {
    min-height: 96px;
    padding: 0 4px;
  }

  .fb-step-icon {
    width: 40px;
    height: 40px;
  }

  .fb-privacy-copy p {
    font-size: 0.58rem;
  }

  .fb-event-title {
    font-size: 1.42rem;
    gap: 10px;
  }

  .fb-event-title::before,
  .fb-event-title::after {
    width: 34px;
  }

  .fb-panel[data-panel-state="event-entry"] {
    padding-right: 14px;
    padding-left: 14px;
  }

  .fb-entry-card {
    min-height: 136px;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 6px;
    padding: 14px 10px;
  }

  .fb-entry-card.has-qr {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  }

  .fb-entry-card.no-qr {
    grid-template-columns: minmax(0, 1fr);
  }

  .fb-entry-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .fb-entry-icon svg {
    width: 42px;
    height: 42px;
  }

  .fb-entry-or {
    gap: 8px;
    font-size: 0.72rem;
  }

  .fb-entry-or::before,
  .fb-entry-or::after {
    height: 26px;
  }

  .fb-entry-key-box {
    max-width: 100px;
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 14px;
  }

  .fb-entry-mode {
    gap: 8px;
    font-size: 0.73rem;
  }

  .fb-name-field {
    min-height: 54px;
    grid-template-columns: 48px 1fr;
    border-radius: 16px;
  }

  .fb-name-placeholder {
    font-size: 0.74rem;
  }

  .fb-album-button {
    min-height: 154px;
  }

  .fb-album-icon {
    width: 56px;
    height: 56px;
  }

  .fb-album-label {
    font-size: 1.42rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .fb-page {
    align-items: flex-start;
    overflow-y: auto;
    padding: max(6px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .fb-panel {
    width: min(100%, 760px);
    padding: 48px 28px 16px;
    border-radius: 22px;
  }

  .fb-panel[data-panel-state="event-entry"] {
    width: min(100%, 760px);
    padding: 48px 28px 16px;
  }

  .fb-view-event {
    --fb-flow-width: min(100%, 560px);
  }

  .fb-lang {
    top: 14px;
    right: 24px;
  }

  .fb-lang button {
    min-height: 30px;
  }

  .fb-logo {
    width: 132px;
  }

  .fb-brand-event {
    margin-bottom: 8px;
  }

  .fb-memory-line {
    display: none;
  }

  .fb-hero-title {
    margin-bottom: 14px;
    font-size: 1.55rem;
    text-align: center;
  }

  .fb-actions {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .fb-action-item p,
  .fb-desktop-helper {
    display: none;
  }

  .fb-cta {
    min-height: 43px;
    grid-template-columns: 42px 1fr 30px;
  }

  .fb-steps {
    margin-top: 12px;
  }

  .fb-step {
    min-height: 78px;
  }

  .fb-step-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 5px;
  }

  .fb-step svg {
    width: 23px;
    height: 23px;
  }

  .fb-step-number {
    display: none;
  }

  .fb-step-text {
    font-size: 0.66rem;
  }

  .fb-divider {
    margin: 11px 0 10px;
  }

  .fb-privacy {
    grid-template-columns: 32px 1fr auto;
    gap: 8px;
  }

  .fb-privacy-icon {
    width: 32px;
    height: 32px;
  }

  .fb-privacy-icon svg {
    width: 30px;
    height: 30px;
  }

  .fb-privacy-copy strong {
    font-size: 0.72rem;
  }

  .fb-privacy-copy p {
    display: none;
  }

  .fb-legal {
    grid-column: auto;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 0;
    border-top: 0;
    font-size: 0.62rem;
  }

  .fb-event-title {
    margin-bottom: 12px;
    font-size: 1.32rem;
  }

  .fb-entry-card {
    width: min(100%, 560px);
    min-height: 112px;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    padding: 12px;
  }

  .fb-entry-icon {
    width: 62px;
    height: 54px;
  }

  .fb-entry-icon svg {
    width: 36px;
    height: 36px;
  }

  .fb-name-icon svg {
    width: 28px;
    height: 28px;
  }

  .fb-entry-key-box {
    max-width: 112px;
    min-height: 40px;
    padding: 6px 9px;
  }

  .fb-entry-or {
    gap: 7px;
  }

  .fb-entry-or::before,
  .fb-entry-or::after {
    height: 22px;
  }

  .fb-event-status {
    min-height: 14px;
    margin-top: 5px;
    font-size: 0.62rem;
  }

  .fb-flow-arrow {
    margin: 4px 0;
    font-size: 1.35rem;
  }

  .fb-name-field {
    min-height: 42px;
    grid-template-columns: 40px 1fr;
  }

  .fb-name-field input {
    min-height: 28px;
    font-size: 0.72rem;
  }

  .fb-album-button {
    min-height: 118px;
    gap: 8px;
    padding: 14px;
  }

  .fb-album-icon {
    width: 44px;
    height: 44px;
  }

  .fb-album-label {
    border-bottom-width: 4px;
    font-size: 1.24rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fb-cta,
  .fb-lang button,
  .fb-step {
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
  }

  .fb-step:hover {
    transform: translateY(-1px);
  }
}

body:has(.fb-panel[data-panel-state="event-entry"]) {
  overflow: hidden;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-page {
  align-items: flex-start;
  min-height: 100dvh;
  overflow: hidden;
  padding-top: clamp(96px, 12.35dvh, 164px);
  padding-right: max(18px, env(safe-area-inset-right));
  padding-bottom: max(58px, env(safe-area-inset-bottom));
  padding-left: max(18px, env(safe-area-inset-left));
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-panel {
  width: min(calc(100dvh * 1080 / 2796), calc(100vw - 90px));
  min-height: calc(87.65dvh - 58px);
  padding: clamp(6px, 0.9dvh, 14px) clamp(20px, 4.4vw, 42px) clamp(18px, 2.2dvh, 30px);
  border-radius: clamp(24px, 5vw, 34px);
  background: rgba(255, 255, 255, 0.86);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-lang {
  top: clamp(-62px, -4.2dvh, -42px);
  right: clamp(4px, 2.2vw, 22px);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-back-button {
  top: clamp(-62px, -4.2dvh, -42px);
  left: clamp(4px, 2.2vw, 22px);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-view-event {
  --fb-flow-width: min(30dvh, 100%);
  min-height: calc(100dvh - clamp(96px, 12.35dvh, 164px) - 58px - clamp(36px, 4.4dvh, 60px));
  display: flex;
  flex-direction: column;
  align-items: center;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-brand-event {
  margin-bottom: clamp(10px, 1.7dvh, 22px);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-logo {
  width: min(360px, 27dvh);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-event-title {
  margin-bottom: clamp(22px, 3.2dvh, 40px);
  font-size: clamp(1.35rem, 2.4dvh, 2rem);
  gap: clamp(18px, 3.4dvh, 30px);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-event-title::before,
body:has(.fb-panel[data-panel-state="event-entry"]) .fb-event-title::after {
  width: min(86px, calc(var(--fb-flow-width) * 0.26));
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-event-step {
  width: var(--fb-flow-width);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-card {
  width: var(--fb-flow-width);
  min-height: clamp(116px, 13.5dvh, 180px);
  margin: 0 auto;
  padding: clamp(14px, 2.1dvh, 22px) clamp(16px, 2.6dvh, 24px);
  border-radius: clamp(8px, 1.25dvh, 14px);
  background: linear-gradient(135deg, #c579f2 0%, #763ee8 43%, #321cde 100%);
  box-shadow: 0 8px 18px rgba(63, 28, 165, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-card.completed {
  opacity: 1;
  filter: none;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-icon {
  width: clamp(74px, 8.4dvh, 110px);
  height: clamp(74px, 8.4dvh, 110px);
  max-width: 110px;
  max-height: 110px;
  border-radius: clamp(18px, 3.7dvh, 28px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-icon svg {
  width: 72%;
  height: 72%;
  stroke-width: 2.7;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-mode {
  font-size: clamp(0.56rem, 1.25dvh, 0.92rem);
  white-space: nowrap;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-key-box {
  max-width: clamp(96px, 11dvh, 132px);
  min-height: clamp(40px, 4dvh, 54px);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-key-box input {
  font-size: clamp(0.62rem, 1.3dvh, 0.92rem);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-name-field {
  width: var(--fb-flow-width);
  min-height: clamp(50px, 4.55dvh, 66px);
  margin: 0 auto;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-flow-arrow {
  margin: clamp(7px, 1.25dvh, 14px) 0;
  font-size: clamp(1.75rem, 3.4dvh, 2.35rem);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-album-step {
  width: var(--fb-flow-width);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-album-button {
  min-height: clamp(140px, 15.6dvh, 210px);
  border-radius: clamp(14px, 2.3dvh, 22px);
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-album-icon {
  width: clamp(54px, 5.1dvh, 76px);
  height: clamp(54px, 5.1dvh, 76px);
  max-width: 76px;
  max-height: 76px;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-album-label {
  font-size: clamp(1.12rem, 2.1dvh, 2rem);
  white-space: nowrap;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-view-event > .fb-divider {
  width: min(calc(100dvh * 906 / 2796), 100%);
  margin-top: auto;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-view-event > .fb-privacy {
  width: min(calc(100dvh * 906 / 2796), 100%);
  grid-template-columns: clamp(42px, 4.4dvh, 58px) 1fr;
  gap: 10px 14px;
}

body:has(.fb-panel[data-panel-state="event-entry"]) .fb-view-event .fb-legal {
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
  padding-top: 11px;
  border-top: 1px solid rgba(196, 202, 220, 0.72);
}

@media (min-width: 1100px) and (orientation: landscape) {
  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-panel {
    padding-top: 10px;
    padding-bottom: 14px;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-logo {
    width: min(210px, 19dvh);
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-brand-event {
    margin-bottom: 6px;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-event-title {
    margin-bottom: 14px;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-card {
    min-height: 12.4dvh;
    padding: 10px 14px;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-entry-icon {
    width: 7.2dvh;
    height: 7.2dvh;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-flow-arrow {
    margin: 2px 0;
    font-size: 1.45rem;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-name-field {
    min-height: 40px;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-album-button {
    min-height: 12.4dvh;
    gap: 6px;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-album-icon {
    width: 4.2dvh;
    height: 4.2dvh;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-view-event > .fb-divider {
    margin-top: auto;
    margin-bottom: 8px;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-privacy-copy strong {
    font-size: 0.72rem;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-privacy-copy p {
    font-size: 0.54rem;
    line-height: 1.14;
  }

  body:has(.fb-panel[data-panel-state="event-entry"]) .fb-view-event .fb-legal {
    padding-top: 7px;
    font-size: 0.56rem;
  }
}
