/* NanumSquare is a subset font: it maps every CJK ideograph (and the katakana
   mark "ー") to BLANK outlines. A blank glyph still counts as a cmap hit, so the
   browser never falls back and the text paints as nothing. Restricting the face
   to the codepoints it actually draws lets the Noto CJK/Thai faces take over.
   Range generated by scripts/derive-font-unicode-range.cjs — do not hand-edit. */
@font-face {
  font-family: "Photogenie Sans";
  src: url("assets/fonts/NanumSquareR.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 699;
  font-display: swap;
  unicode-range: U+0-2F, U+21-7E, U+A1-A5, U+A7-AD, U+B0-B4, U+B6-BF, U+C6, U+D0, U+D7-D8, U+DE-DF, U+E6, U+F0, U+F7-F8, U+FE, U+111, U+126-127, U+131-133, U+138, U+13F-142, U+149-14B, U+152-153, U+166-167, U+2C7, U+2D0, U+2D8-2DD, U+391-3A1, U+3A3-3A9, U+3B1-3C1, U+3C3-3C9, U+401, U+410-44F, U+451, U+2010, U+2013-2016, U+2018-2019, U+201C-201D, U+2020-2021, U+2025-2026, U+2030, U+2032-2033, U+203B, U+203E, U+2074, U+207F, U+2081-2084, U+20A9, U+2103, U+2109, U+2113, U+2116, U+2121-2122, U+2126, U+212B, U+2153-2154, U+215B-215E, U+2160-2169, U+2170-2179, U+2190-2199, U+21D2, U+21D4, U+2200, U+2202-2203, U+2207-2208, U+220B, U+220F, U+2211, U+221A, U+221D-221E, U+2220, U+2227-222C, U+222E, U+2234-2236, U+223C-223D, U+2252, U+2260-2261, U+2264-2265, U+226A-226B, U+2282-2283, U+2286-2287, U+2299, U+22A5, U+22EF, U+2312, U+2460-246E, U+2474-2482, U+249C-24B5, U+24D0-24E9, U+2500-2503, U+250C-254B, U+2592, U+25A0-25A1, U+25A3-25A9, U+25B2-25B3, U+25B6-25B7, U+25BC-25BD, U+25C0-25C1, U+25C6-25C9, U+25CB, U+25CE-25D1, U+2605-2606, U+260E-260F, U+261C, U+261E, U+2640, U+2642, U+2660-2661, U+2663-2665, U+2667-266A, U+266C-266D, U+3131-3163, U+3165-318E, U+3200-321C, U+3260-327B, U+327F, U+3380-3384, U+3388-33CA, U+33CF-33D0, U+33D3, U+33D6, U+33D8, U+33DB-33DD, U+1100-11FF, U+AC00-D7A3;
}

@font-face {
  font-family: "Photogenie Sans";
  src: url("assets/fonts/NanumSquareB.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 950;
  font-display: swap;
  unicode-range: U+0-2F, U+21-7E, U+A1-A5, U+A7-AD, U+B0-B4, U+B6-BF, U+C6, U+D0, U+D7-D8, U+DE-DF, U+E6, U+F0, U+F7-F8, U+FE, U+111, U+126-127, U+131-133, U+138, U+13F-142, U+149-14B, U+152-153, U+166-167, U+2C7, U+2D0, U+2D8-2DD, U+391-3A1, U+3A3-3A9, U+3B1-3C1, U+3C3-3C9, U+401, U+410-44F, U+451, U+2010, U+2013-2016, U+2018-2019, U+201C-201D, U+2020-2021, U+2025-2026, U+2030, U+2032-2033, U+203B, U+203E, U+2074, U+207F, U+2081-2084, U+20A9, U+2103, U+2109, U+2113, U+2116, U+2121-2122, U+2126, U+212B, U+2153-2154, U+215B-215E, U+2160-2169, U+2170-2179, U+2190-2199, U+21D2, U+21D4, U+2200, U+2202-2203, U+2207-2208, U+220B, U+220F, U+2211, U+221A, U+221D-221E, U+2220, U+2227-222C, U+222E, U+2234-2236, U+223C-223D, U+2252, U+2260-2261, U+2264-2265, U+226A-226B, U+2282-2283, U+2286-2287, U+2299, U+22A5, U+22EF, U+2312, U+2460-246E, U+2474-2482, U+249C-24B5, U+24D0-24E9, U+2500-2503, U+250C-254B, U+2592, U+25A0-25A1, U+25A3-25A9, U+25B2-25B3, U+25B6-25B7, U+25BC-25BD, U+25C0-25C1, U+25C6-25C9, U+25CB, U+25CE-25D1, U+2605-2606, U+260E-260F, U+261C, U+261E, U+2640, U+2642, U+2660-2661, U+2663-2665, U+2667-266A, U+266C-266D, U+3131-3163, U+3165-318E, U+3200-321C, U+3260-327B, U+327F, U+3380-3384, U+3388-33CA, U+33CF-33D0, U+33D3, U+33D6, U+33D8, U+33DB-33DD, U+1100-11FF, U+AC00-D7A3;
}

:root {
  --ink: #07080a;
  --paper: #f4f1ea;
  --text: #f7f5ef;
  --muted: rgba(247, 245, 239, 0.62);
  --line: rgba(255, 255, 255, 0.15);
  --panel: rgba(255, 255, 255, 0.065);
  --acid: #d9ff53;
  --coral: #ff664f;
  --sky: #73e7ff;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: dark;
  /* Face for the script in use. The brand font is unicode-range limited to
     Latin/Hangul, so it leads and the Noto face picks up everything else.
     Overridden per [lang] below; the default lists every family for untagged
     copy. */
  --script-font: "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai";
  font-family: "Photogenie Sans", var(--script-font), Inter, Pretendard, ui-sans-serif, system-ui, sans-serif;
}

/* Simplified and Traditional Chinese need their own families, not the Japanese
   one: Noto Sans JP has no glyph for "简" (U+7B80) and gives shared ideographs
   Japanese regional shapes. Keyed off [lang] rather than html[lang] so it also
   covers the language menu, which shows every script at once. */
[lang="ja"] { --script-font: "Noto Sans JP"; }
[lang="zh-Hans"] { --script-font: "Noto Sans SC"; }
[lang="zh-Hant"] { --script-font: "Noto Sans TC"; }
[lang="th"] { --script-font: "Noto Sans Thai"; }
/* font-family inherits as a computed value, so a nested [lang] must redeclare
   it for its --script-font override to take effect. */
[lang="ja"], [lang="zh-Hans"], [lang="zh-Hant"], [lang="th"] {
  font-family: "Photogenie Sans", var(--script-font), Inter, Pretendard, ui-sans-serif, system-ui, sans-serif;
}

html[lang="ko"] { word-break: keep-all; }
html[lang="ja"], html[lang^="zh"] { word-break: normal; line-break: strict; }
html[lang="th"] { word-break: normal; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; background: var(--ink); color: var(--text); }
button { font: inherit; }
button:focus-visible { outline: 4px solid #fff4b0; outline-offset: 4px; }
button.kiosk-roving:focus {
  outline: 6px solid var(--acid);
  outline-offset: 5px;
  box-shadow: 0 0 0 11px rgba(217, 255, 83, 0.24), 0 0 34px rgba(217, 255, 83, 0.5);
}
[tabindex="-1"]:focus { outline: none; }
button:disabled { cursor: not-allowed; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.055em; }

/* Server-authorized event access gate. Korean-first operational copy remains
   separate from the guest journey translations, with one English aid line. */
body.entry-gate-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.entry-gate-locked .language-picker {
  visibility: hidden;
  pointer-events: none;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  isolation: isolate;
  display: grid;
  width: 100vw;
  height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: clamp(16px, 3vmin, 42px);
  background:
    radial-gradient(circle at 16% 8%, rgba(217, 255, 83, 0.16), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(115, 231, 255, 0.17), transparent 38%),
    linear-gradient(145deg, #07080a 0%, #0a0c10 58%, #07080a 100%);
  opacity: 1;
  transform: translateY(0);
  transition: transform 620ms var(--ease), opacity 620ms ease;
  will-change: transform, opacity;
}

.entry-gate.is-unlocking {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

/* 부팅 중에는 카드를 그리지 않는다. 행사 설정을 읽기 전에 카드를 먼저 칠하면
   행사와 무관한 기본 카피가 한 프레임 번쩍이고 곧바로 교체돼 보인다. */
.entry-gate[data-state="booting"] .entry-gate-card {
  visibility: hidden;
}

/* 행사 스플래시가 떠 있는 동안에는 그 아래 화면이 스크롤·조작되지 않는다. */
body.badge-intro-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.badge-intro-open .language-picker {
  visibility: hidden;
  pointer-events: none;
}

.entry-gate-glow {
  position: absolute;
  z-index: -1;
  width: min(62vmax, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(90px);
  pointer-events: none;
}

.entry-gate-glow-acid {
  top: -42%;
  left: -26%;
  background: rgba(217, 255, 83, 0.28);
}

.entry-gate-glow-sky {
  right: -30%;
  bottom: -48%;
  background: rgba(115, 231, 255, 0.28);
}

.entry-gate-card {
  position: relative;
  display: grid;
  width: min(720px, 90vw);
  max-height: calc(100dvh - clamp(32px, 6vmin, 84px));
  gap: clamp(8px, 1.1vh, 14px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: clamp(18px, 2vh, 32px) clamp(20px, 2.5vw, 38px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.095), var(--panel));
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.58), 0 0 80px rgba(115, 231, 255, 0.055);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.entry-gate-heading {
  display: grid;
  justify-items: center;
  gap: clamp(5px, 0.75vh, 10px);
}

.entry-gate-brand {
  margin: 0;
  color: var(--text);
  font-size: clamp(17px, 1.35vw, 25px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.entry-gate-brand strong { font-weight: 950; }

.entry-gate-heading h1 {
  max-width: 12.7em;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.entry-gate-heading > p:last-child {
  margin: 0;
  color: var(--sky);
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 800;
  letter-spacing: 0.035em;
}

.entry-gate-dots {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  gap: clamp(4px, 0.72vw, 10px);
  padding: 4px;
}

.entry-code-dot {
  position: relative;
  display: block;
  width: min(100%, clamp(48px, 6vw, 84px));
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease);
}

.entry-code-dot::after {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 22px rgba(217, 255, 83, 0.72);
  content: "";
  opacity: 0;
  transform: scale(0.3);
}

.entry-code-dot.is-filled {
  border-color: rgba(217, 255, 83, 0.58);
  background: rgba(217, 255, 83, 0.08);
  animation: entry-dot-fill 240ms var(--ease);
}

.entry-code-dot.is-filled::after {
  opacity: 1;
  transform: scale(1);
}

.entry-code-dot.is-current::before {
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(217, 255, 83, 0.78);
  border-radius: inherit;
  content: "";
  animation: entry-current-pulse 1.25s ease-in-out infinite;
}

.entry-gate-feedback {
  min-height: clamp(25px, 2.5vh, 34px);
  display: grid;
  place-items: center;
}

.entry-gate-feedback p {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 800;
}

#entry-gate-status { color: rgba(247, 245, 239, 0.72); }
#entry-gate-lockout { color: var(--coral); }

.entry-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.9vh, 14px);
}

.entry-keypad button {
  min-width: 0;
  min-height: clamp(84px, 9vh, 120px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(18px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 30px rgba(0, 0, 0, 0.16);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms var(--ease);
}

.entry-keypad button:active:not(:disabled) { transform: scale(0.965); }

.entry-keypad button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.entry-keypad .entry-key-delete {
  color: var(--sky);
  font-size: clamp(25px, 2.5vw, 38px);
}

.entry-delete-icon {
  width: clamp(31px, 2.6vw, 43px);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.entry-keypad .entry-key-confirm {
  border-color: rgba(217, 255, 83, 0.72);
  background: var(--acid);
  color: #101407;
  font-size: clamp(19px, 1.7vw, 28px);
}

.entry-keypad .entry-key-confirm:disabled {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(247, 245, 239, 0.54);
}

.entry-keypad .entry-key-clear {
  min-height: 52px;
  grid-column: 1 / -1;
  border-color: rgba(115, 231, 255, 0.28);
  background: rgba(115, 231, 255, 0.065);
  color: var(--sky);
  font-size: clamp(15px, 1.25vw, 21px);
}

.entry-gate-keyboard-hint {
  margin: 0;
  color: rgba(247, 245, 239, 0.42);
  font-size: clamp(11px, 0.78vw, 14px);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.entry-gate[data-state="error"] .entry-gate-card { animation: entry-card-shake 420ms ease; }
.entry-gate[data-state="error"] #entry-gate-status { color: var(--coral); }
.entry-gate[data-state="error"] .entry-code-dot {
  border-color: rgba(255, 102, 79, 0.82);
  background: rgba(255, 102, 79, 0.14);
  box-shadow: 0 0 22px rgba(255, 102, 79, 0.16);
}
.entry-gate[data-state="error"] .entry-code-dot::after {
  background: var(--coral);
  box-shadow: 0 0 22px rgba(255, 102, 79, 0.76);
}

.entry-gate[data-state="success"] #entry-gate-status {
  color: var(--acid);
  font-size: clamp(18px, 1.5vw, 25px);
  text-shadow: 0 0 24px rgba(217, 255, 83, 0.62);
  animation: entry-welcome-flash 620ms var(--ease);
}

.entry-gate[data-state="success"] .entry-code-dot {
  border-color: var(--acid);
  background: rgba(217, 255, 83, 0.2);
  box-shadow: 0 0 24px rgba(217, 255, 83, 0.28);
}

.entry-gate[data-state="lockout"] .entry-code-dot { border-color: rgba(255, 102, 79, 0.34); }

.attract-brand {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* In-page replacement for browser-native confirm(), sized for touch and the
   cabinet's physical navigation buttons. */
.relock-dialog {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(20px);
}

.relock-card {
  width: min(780px, 94vw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  padding: clamp(38px, 4.5vw, 76px);
  background: linear-gradient(150deg, #16191f, #0d0f13);
  box-shadow: 0 44px 130px rgba(0, 0, 0, 0.7);
  text-align: center;
}
.relock-card > .step-label { margin-bottom: 12px; color: var(--acid); }
.relock-card h2 { margin: 0; font-size: clamp(38px, 4vw, 66px); line-height: 1.02; }
.relock-card > p:not(.step-label) { margin: 20px auto 32px; color: var(--muted); font-size: clamp(16px, 1.25vw, 22px); line-height: 1.5; }
.relock-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.relock-actions button { min-height: 88px; padding-inline: 22px; }
body.relock-dialog-open .language-picker { visibility: hidden; pointer-events: none; }

@keyframes entry-dot-fill {
  0% { opacity: 0.45; transform: scale(0.72); }
  70% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes entry-current-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes entry-card-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-15px); }
  40% { transform: translateX(12px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(5px); }
}

@keyframes entry-welcome-flash {
  0% { opacity: 0; transform: scale(0.86); }
  45% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .entry-keypad button:hover:not(:disabled) {
    border-color: rgba(217, 255, 83, 0.62);
    background: rgba(217, 255, 83, 0.115);
    transform: translateY(-2px);
  }
  .entry-keypad .entry-key-confirm:hover:not(:disabled) {
    background: #e4ff82;
  }
}

@media (orientation: landscape) and (max-height: 800px) {
  .entry-gate-card {
    gap: 7px;
    padding-block: 14px;
  }
  .entry-gate-heading { gap: 3px; }
  .entry-gate-heading h1 { font-size: clamp(28px, 4.8vh, 42px); }
  .entry-code-dot { width: min(100%, clamp(42px, 7vh, 58px)); }
  .entry-keypad { gap: 7px; }
  .entry-keypad button { min-height: clamp(64px, 10vh, 80px); }
  .entry-keypad .entry-key-clear { min-height: 46px; }
  .entry-gate-keyboard-hint { display: none; }
}

/* Tall portrait kiosks are the primary install target. The base card is sized
   to survive small/landscape screens, which leaves roughly half of a 1080x1920
   panel empty. Here every block is re-stated in vh so the card keeps a fixed
   ~80vh footprint on any tall screen instead of a fixed pixel height. */
@media (orientation: portrait) and (min-height: 1000px) {
  .entry-gate-card {
    width: min(880px, 92vw);
    gap: 1.5vh;
    border-radius: 52px;
    padding: 3.4vh clamp(28px, 4.4vw, 60px);
  }
  .entry-gate-heading { gap: 1vh; }
  .entry-gate-brand { font-size: clamp(20px, 2vw, 30px); }
  .entry-gate-heading h1 { font-size: clamp(34px, 4.6vw, 64px); }
  .entry-gate-heading > p:last-child { font-size: clamp(16px, 1.6vw, 24px); }
  .entry-code-dot { width: min(100%, clamp(56px, 7.6vw, 92px)); }
  .entry-gate-feedback { min-height: 2.2vh; }
  .entry-gate-feedback p { font-size: clamp(16px, 1.5vw, 23px); }
  .entry-keypad { gap: 1.4vh; }
  .entry-keypad button {
    min-height: 10.4vh;
    border-radius: clamp(22px, 2.4vw, 34px);
    font-size: clamp(34px, 3.8vw, 58px);
  }
  .entry-keypad .entry-key-confirm { font-size: clamp(24px, 2.4vw, 38px); }
  .entry-keypad .entry-key-clear { min-height: 5vh; font-size: clamp(18px, 1.8vw, 28px); }
  .entry-delete-icon { width: clamp(38px, 3.4vw, 56px); }
  .entry-gate-keyboard-hint { font-size: clamp(13px, 1.1vw, 18px); }
}

@media (max-width: 520px), (max-height: 700px) {
  .entry-gate { padding: 10px; }
  .entry-gate-card {
    width: min(720px, 94vw);
    max-height: calc(100dvh - 20px);
    border-radius: 28px;
    padding-inline: 16px;
  }
  .entry-gate-heading h1 { font-size: clamp(27px, 8vw, 36px); }
  .entry-gate-keyboard-hint { display: none; }
}

/* Event access experience
   Public event metadata can change this surface's copy and color, but an
   access secret is never rendered into the document. */
.entry-gate {
  --event-accent: #d9ff53;
  --event-secondary: #73e7ff;
}

.entry-gate-card {
  width: min(1540px, 95vw);
  grid-template-columns: minmax(0, 1.12fr) minmax(480px, .88fr);
  gap: 0;
  padding: 0;
  text-align: left;
}

.entry-event-visual {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 2.4vh, 34px);
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 54px);
  background: #11151a;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--event-accent) 18%, transparent), transparent 42%),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--event-secondary) 28%, transparent), transparent 30%),
    linear-gradient(155deg, #11151a 0%, #090b0e 72%);
  isolation: isolate;
}

.entry-event-key-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(.86) contrast(1.08);
}

.entry-event-visual:has(.entry-event-key-visual:not([hidden]))::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .94) 4%, rgba(7, 9, 12, .64) 52%, rgba(7, 9, 12, .2)),
    linear-gradient(0deg, rgba(7, 9, 12, .86), transparent 58%);
  content: "";
}

.entry-event-visual::before {
  position: absolute;
  top: 22%;
  right: -14%;
  z-index: -1;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--event-accent) 42%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px color-mix(in srgb, var(--event-secondary) 5%, transparent),
    0 0 0 88px color-mix(in srgb, var(--event-accent) 4%, transparent);
  content: "";
}

.entry-event-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.entry-event-topline > span,
.entry-access-chip {
  border: 1px solid rgba(217, 255, 83, .52);
  border: 1px solid color-mix(in srgb, var(--event-accent) 52%, transparent);
  border-radius: 999px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--event-accent) 9%, transparent);
  color: var(--event-accent);
  font-size: clamp(9px, .64vw, 12px);
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.entry-event-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: min(34vw, 580px);
}

.entry-event-copy > p:first-child {
  margin: 0 0 12px;
  color: var(--event-accent);
  font-size: clamp(11px, .75vw, 14px);
  font-weight: 950;
  letter-spacing: .18em;
}

.entry-event-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: clamp(54px, 5.15vw, 92px);
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.075em;
  text-wrap: balance;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.entry-event-copy > p:last-child {
  display: -webkit-box;
  overflow: hidden;
  max-width: 34em;
  margin: 22px 0 0;
  color: rgba(247, 245, 239, .7);
  font-size: clamp(14px, 1vw, 19px);
  font-weight: 700;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.entry-event-gallery {
  position: absolute;
  right: clamp(18px, 2.2vw, 38px);
  bottom: clamp(88px, 9vh, 118px);
  z-index: 2;
  width: min(24vw, 390px);
  height: min(38vh, 390px);
  pointer-events: none;
}

.entry-event-gallery figure {
  position: absolute;
  width: 58%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0;
  border: clamp(3px, .28vw, 5px) solid #f5f0e8;
  border-radius: 7px;
  background: #16191f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .56);
}

.entry-event-gallery figure:nth-child(1) { right: 3%; bottom: 2%; transform: rotate(7deg); }
.entry-event-gallery figure:nth-child(2) { right: 34%; bottom: 9%; transform: rotate(-8deg); }
.entry-event-gallery figure:nth-child(3) { right: 18%; bottom: 31%; transform: rotate(1deg); }
.entry-event-gallery img { width: 100%; height: 100%; object-fit: cover; }
.entry-event-visual.has-key-visual .entry-event-gallery { opacity: .18; }

.entry-event-meta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: end;
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
}

.entry-event-meta div { display: grid; gap: 5px; }
.entry-event-meta dt {
  color: var(--event-accent);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .18em;
}
.entry-event-meta dd {
  max-width: 18em;
  margin: 0;
  overflow: hidden;
  color: rgba(247, 245, 239, .82);
  font-size: clamp(11px, .76vw, 14px);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-access-panel {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: clamp(8px, 1.1vh, 14px);
  padding: clamp(22px, 2.3vw, 40px);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--event-secondary) 8%, transparent), transparent 38%),
    rgba(8, 10, 13, .92);
  text-align: center;
}

.entry-gate-mobile-brand { display: none; }
.entry-access-chip { justify-self: center; }
.entry-gate-heading h1 { font-size: clamp(27px, 2.4vw, 43px); }
.entry-code-dot { width: min(100%, clamp(38px, 3.7vw, 58px)); }
.entry-keypad button { min-height: clamp(62px, 7.2vh, 84px); }
.entry-keypad .entry-key-clear { min-height: 44px; }

/* 모듈을 불러오는 첫 화면부터 행사 설정 확인이 끝날 때까지 코드 입력부를
   노출하지 않는다. 무코드 행사는 키패드가 한 프레임도 나타나지 않는다. */
body:not(.entry-gate-ready) .entry-access-panel > * {
  display: none;
}

body:not(.entry-gate-ready) .entry-access-panel::after {
  justify-self: center;
  color: var(--event-secondary);
  font-size: clamp(15px, 1.25vw, 21px);
  font-weight: 850;
  content: "행사 정보를 확인하고 있어요";
}

.entry-gate[data-state="booting"] .entry-access-panel {
  place-content: center;
  cursor: progress;
}

.entry-gate[data-state="booting"] .entry-gate-heading,
.entry-gate[data-state="booting"] .entry-gate-dots,
.entry-gate[data-state="booting"] .entry-keypad,
.entry-gate[data-state="booting"] .entry-gate-keyboard-hint,
.entry-gate[data-state="success"] .entry-gate-heading,
.entry-gate[data-state="success"] .entry-gate-dots,
.entry-gate[data-state="success"] .entry-keypad,
.entry-gate[data-state="success"] .entry-gate-keyboard-hint {
  display: none;
}

.entry-gate[data-state="booting"] .entry-gate-feedback {
  min-height: 0;
}

.entry-gate[data-state="booting"] #entry-gate-status {
  color: var(--event-secondary);
  font-size: clamp(15px, 1.25vw, 21px);
}

.entry-gate[data-state="checking"] .entry-access-panel { cursor: progress; }
.entry-gate[data-state="checking"] .entry-keypad button {
  opacity: .36;
  pointer-events: none;
}
.entry-gate[data-state="checking"] #entry-gate-status { color: var(--event-secondary); }

/* 종료된 행사는 입장 수단이나 행사 메타정보를 남기지 않고 감사 인사만 보여준다.
   게이트가 명찰·키오스크 화면을 계속 inert로 붙잡으므로 뒤 화면도 조작할 수 없다. */
.entry-closed-message {
  display: none;
}

.entry-gate[data-state="closed"] .entry-gate-card {
  width: min(720px, 92vw);
  min-height: min(520px, calc(100dvh - 40px));
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border-color: color-mix(in srgb, var(--event-secondary) 32%, rgba(255, 255, 255, .14));
  text-align: center;
}

.entry-gate[data-state="closed"] .entry-event-visual,
.entry-gate[data-state="closed"] .entry-gate-heading,
.entry-gate[data-state="closed"] .entry-gate-dots,
.entry-gate[data-state="closed"] .entry-gate-feedback,
.entry-gate[data-state="closed"] .entry-keypad,
.entry-gate[data-state="closed"] .entry-gate-keyboard-hint {
  display: none;
}

.entry-gate[data-state="closed"] .entry-access-panel {
  min-height: inherit;
  place-content: center;
  padding: clamp(34px, 7vw, 76px);
  background:
    radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--event-secondary) 18%, transparent), transparent 44%),
    radial-gradient(circle at 85% 95%, color-mix(in srgb, var(--event-accent) 12%, transparent), transparent 38%),
    rgba(8, 10, 13, .96);
}

.entry-gate[data-state="closed"] .entry-closed-message {
  display: grid;
  max-width: 560px;
  justify-items: center;
  gap: clamp(16px, 2.4vh, 28px);
}

.entry-closed-chip {
  border: 1px solid color-mix(in srgb, var(--event-secondary) 54%, transparent);
  border-radius: 999px;
  padding: 8px 13px;
  background: color-mix(in srgb, var(--event-secondary) 9%, transparent);
  color: var(--event-secondary);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 950;
  letter-spacing: .16em;
}

.entry-closed-message h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.entry-closed-message p {
  max-width: 27em;
  margin: 0;
  color: rgba(247, 245, 239, .72);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 750;
  line-height: 1.65;
  text-wrap: balance;
}

@media (max-width: 1100px), (orientation: portrait) {
  .entry-gate-card {
    width: min(900px, 94vw);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(170px, .44fr) minmax(0, 1fr);
  }
  .entry-event-visual {
    grid-template-rows: auto 1fr;
    padding: clamp(22px, 3.4vw, 42px);
  }
  .entry-event-copy { align-self: end; max-width: 68%; }
  .entry-event-copy h2 { font-size: clamp(42px, 7vw, 74px); }
  .entry-event-copy > p:last-child { margin-top: 12px; }
  .entry-event-gallery {
    right: 2.5%;
    bottom: 5%;
    width: min(34vw, 290px);
    height: 74%;
  }
  .entry-event-meta { display: none; }
  .entry-access-panel { padding: clamp(18px, 3vw, 38px); }
}

@media (orientation: portrait) and (min-height: 1000px) {
  .entry-gate-card {
    width: min(900px, 92vw);
    height: min(96vh, 1800px);
    grid-template-rows: minmax(190px, .24fr) minmax(0, .76fr);
    border-radius: 52px;
    padding: 0;
  }
  .entry-event-visual { padding: 3vh clamp(28px, 4.4vw, 60px); }
  .entry-event-copy h2 { font-size: clamp(48px, 7.5vw, 82px); }
  .entry-access-panel {
    align-content: center;
    gap: 1vh;
    padding: 2.4vh clamp(28px, 4.4vw, 60px);
  }
  .entry-gate-heading { gap: .55vh; }
  .entry-gate-heading h1 { font-size: clamp(30px, 3.5vw, 48px); }
  .entry-gate-heading > p:last-child { font-size: clamp(13px, 1.35vw, 20px); }
  .entry-code-dot { width: min(100%, clamp(46px, 6vw, 74px)); }
  .entry-gate-feedback { min-height: 1.8vh; }
  .entry-gate-feedback p { font-size: clamp(14px, 1.3vw, 20px); }
  .entry-keypad { gap: .78vh; }
  .entry-keypad button {
    min-height: calc(10vh + 1px);
    border-radius: clamp(18px, 2.2vw, 30px);
    font-size: clamp(30px, 3.3vw, 48px);
  }
  .entry-keypad .entry-key-confirm { font-size: clamp(21px, 2.2vw, 33px); }
  .entry-keypad .entry-key-clear {
    min-height: clamp(44px, 3.4vh, 58px);
    font-size: clamp(16px, 1.6vw, 24px);
  }
}

@media (max-width: 520px) {
  .entry-gate {
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }
  .entry-gate-card {
    width: 100%;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    grid-template-rows: 154px minmax(0, 1fr);
    border-radius: 26px;
    padding: 0;
  }
  .entry-event-visual { gap: 4px; padding: 17px 18px; }
  .entry-event-topline > span { display: none; }
  .entry-event-copy { max-width: 71%; }
  .entry-event-copy > p:first-child { margin-bottom: 5px; font-size: 8px; }
  .entry-event-copy h2 { font-size: clamp(31px, 9.6vw, 42px); line-height: .92; }
  .entry-event-copy > p:last-child { display: none; }
  .entry-event-gallery { right: 0; bottom: 0; width: 36vw; height: 128px; }
  .entry-event-gallery figure { width: 61%; border-width: 2px; }
  .entry-access-panel { gap: 5px; padding: 10px 14px 12px; }
  .entry-gate-mobile-brand {
    display: block;
    margin: 0 0 1px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.04em;
  }
  .entry-gate-mobile-brand strong { font-weight: 950; }
  .entry-access-chip { padding: 4px 8px; font-size: 7px; }
  .entry-gate-heading { gap: 2px; }
  .entry-gate-heading h1 { max-width: 19em; font-size: clamp(19px, 5.7vw, 25px); line-height: 1.06; }
  .entry-gate-heading > p:last-child { font-size: 10px; }
  .entry-gate-dots { max-width: 330px; justify-self: center; gap: 5px; padding: 1px; }
  .entry-code-dot { width: min(100%, 34px); }
  .entry-gate-feedback { min-height: 18px; }
  .entry-gate-feedback p { font-size: 11px; }
  .entry-keypad { gap: 5px; }
  .entry-keypad button {
    min-height: 64px;
    border-radius: 15px;
    font-size: 23px;
  }
  .entry-keypad .entry-key-confirm { font-size: 16px; }
  .entry-keypad .entry-key-clear { min-height: 38px; font-size: 13px; }
  .entry-delete-icon { width: 28px; }
}

.event-mode .attract-edition {
  border-color: color-mix(in srgb, var(--event-accent, var(--acid)) 48%, transparent);
  background: color-mix(in srgb, var(--event-accent, var(--acid)) 12%, rgba(5, 6, 8, .7));
}

.kiosk-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 0%, rgba(115, 231, 255, 0.1), transparent 34rem),
    radial-gradient(circle at 96% 96%, rgba(255, 102, 79, 0.12), transparent 38rem),
    #090a0d;
}

.screen {
  position: absolute;
  inset: 0;
  width: min(100%, 1920px);
  height: 100%;
  margin: auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 280ms ease, transform 430ms var(--ease);
}

.screen.is-active { opacity: 1; transform: translateY(0); }
.screen[hidden] { display: none !important; }

.step-label {
  margin-bottom: 6px;
  color: var(--acid);
  font-size: clamp(11px, 0.77vw, 15px);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kiosk-header {
  display: grid;
  min-height: clamp(82px, 9.2vh, 108px);
  grid-template-columns: minmax(140px, 0.72fr) minmax(400px, 2.4fr) minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  padding: clamp(14px, 1.8vh, 23px) clamp(26px, 3vw, 58px) 10px;
}

.kiosk-header > div { min-width: 0; }
.kiosk-header > div h1 {
  margin: 0;
  font-size: clamp(30px, 2.45vw, 47px);
  line-height: 1;
}

.header-guide { display: grid; min-width: 0; justify-items: end; gap: 5px; margin: 0; text-align: right; }
.header-guide > b { font-size: clamp(14px, 1vw, 19px); }
.header-guide > span { color: var(--muted); font-size: clamp(12px, 0.82vw, 16px); }
.brand-wordmark { font-size: clamp(17px, 1.15vw, 23px); font-weight: 400; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.brand-wordmark strong { font-weight: 950; }

.back-button,
.primary-button,
.secondary-button,
.text-button,
.add-theme-button,
.shutter-button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

.back-button {
  justify-self: start;
  min-width: 118px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 850;
}

.primary-button,
.secondary-button {
  min-height: 76px;
  border-radius: 999px;
  padding: 0 34px;
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 900;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.primary-button { border: 1px solid var(--acid); background: var(--acid); color: #101407; box-shadow: 0 0 32px rgba(217, 255, 83, 0.13); }
.primary-button:disabled { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.secondary-button { border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); color: var(--text); }
.primary-button.compact, .secondary-button.compact { min-height: 64px; padding-inline: 27px; font-size: clamp(15px, 1.05vw, 20px); }
.primary-button small { margin-left: 6px; font-size: 0.63em; opacity: 0.58; }

.text-button {
  min-height: 64px;
  border: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(14px, 0.92vw, 18px);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .back-button:hover, .primary-button:not(:disabled):hover, .secondary-button:hover, .add-theme-button:not(:disabled):hover { transform: translateY(-2px); }
}

.back-button:active, .primary-button:not(:disabled):active, .secondary-button:active, .add-theme-button:not(:disabled):active { transform: scale(0.98); }

/* Attract */
.attract-screen { background: #050608; }
/* 랜딩 몽타주 — 실제 solo/duo/group 컨셉 사진이 컬럼별로 다른 속도로 흐르며 반짝인다. */
.attract-reel { position: absolute; inset: -6%; z-index: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1vw, 20px); overflow: hidden; background: #0a0b0e; opacity: 1; transform: rotate(-4deg) scale(1.16); transition: opacity 420ms ease; }
.attract-key-visual { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .82; }
.attract-key-visual[hidden] { display: none; }
.attract-screen.has-key-visual .attract-reel { opacity: 0; pointer-events: none; }
.reel-column { display: grid; align-content: start; gap: clamp(10px, 1vw, 20px); animation: reel-scroll var(--reel-duration, 34s) linear infinite; animation-delay: var(--reel-delay, 0s); animation-direction: var(--reel-direction, normal); will-change: transform; }
.reel-frame { aspect-ratio: 3 / 2; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5); filter: saturate(1.02) brightness(.82); animation: reel-spark 4.8s ease-in-out infinite; animation-delay: var(--spark-delay, 0s); }
/* 반짝임 — 프레임이 순간적으로 밝아지며 광고 컷처럼 튄다. */
@keyframes reel-spark {
  0%, 78%, 100% { filter: saturate(1.02) brightness(.82); }
  84% { filter: saturate(1.35) brightness(1.32); }
  90% { filter: saturate(1.1) brightness(.95); }
}
@keyframes reel-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* 스파클 — 화면 위를 떠다니는 작은 별빛. */
.attract-sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.attract-sparkles i { position: absolute; width: 14px; height: 14px; background: #fff; opacity: 0; clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%); animation: sparkle-twinkle 3.4s ease-in-out infinite; }
.attract-sparkles i:nth-child(1) { top: 16%; left: 12%; animation-delay: 0s; }
.attract-sparkles i:nth-child(2) { top: 68%; left: 22%; animation-delay: .6s; transform: scale(1.5); }
.attract-sparkles i:nth-child(3) { top: 28%; left: 38%; animation-delay: 1.2s; }
.attract-sparkles i:nth-child(4) { top: 78%; left: 52%; animation-delay: 1.9s; transform: scale(.8); }
.attract-sparkles i:nth-child(5) { top: 12%; left: 64%; animation-delay: 2.4s; transform: scale(1.3); }
.attract-sparkles i:nth-child(6) { top: 54%; left: 78%; animation-delay: .3s; }
.attract-sparkles i:nth-child(7) { top: 34%; left: 88%; animation-delay: 1.6s; transform: scale(1.6); }
.attract-sparkles i:nth-child(8) { top: 86%; left: 84%; animation-delay: 2.9s; }
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-column, .reel-frame, .attract-sparkles i { animation: none; }
  .reel-frame { filter: saturate(1.02) brightness(.82); }
}
.attract-shade { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at center, rgba(0,0,0,.5) 12%, rgba(2,3,5,.28) 62%), linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.1) 52%, rgba(0,0,0,.66)); }
.attract-hitarea { position: relative; z-index: 2; display: grid; width: 100%; height: 100%; border: 0; padding: clamp(30px, 4vw, 72px); background: transparent; color: inherit; cursor: pointer; }
.attract-brand { position: absolute; top: clamp(30px, 3.5vw, 64px); left: clamp(34px, 4vw, 74px); font-size: clamp(24px, 2vw, 38px); font-weight: 400; line-height: 1; letter-spacing: -0.055em; white-space: nowrap; }
.attract-brand strong { font-weight: 950; }
.attract-edition { position: absolute; top: clamp(45px, 4.2vw, 77px); right: clamp(34px, 4vw, 74px); color: rgba(255,255,255,.64); font-size: clamp(12px, .83vw, 16px); font-weight: 900; letter-spacing: .14em; }
.attract-copy { align-self: center; justify-self: center; display: grid; justify-items: center; text-align: center; }
.attract-copy > small { margin-bottom: 20px; color: var(--acid); font-size: clamp(13px, 1vw, 19px); font-weight: 950; letter-spacing: .24em; }
.attract-copy strong { width: min(92vw, 14em); max-width: none; font-size: clamp(62px, 6.1vw, 116px); line-height: 1.4; letter-spacing: -.08em; text-shadow: 0 7px 36px rgba(0,0,0,.6); }
.attract-copy > span { margin-top: 26px; color: rgba(255,255,255,.78); font-size: clamp(17px, 1.35vw, 26px); font-weight: 700; }
/* The take-home count, stated before anyone commits to a session. Sits above
   the bottom row (journey note left, start pulse right) and centred between
   them, so it reads without crowding either. */
.attract-deliverable {
  position: absolute;
  bottom: clamp(118px, 9vw, 158px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(9px, .85vw, 15px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: clamp(8px, .7vw, 12px) clamp(16px, 1.5vw, 26px);
  background: rgba(5,6,8,.6);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}
.deliverable-item { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.deliverable-item b { font-size: clamp(19px, 1.45vw, 28px); font-weight: 950; line-height: 1; }
.deliverable-item small { color: rgba(255,255,255,.7); font-size: clamp(11px, .78vw, 15px); font-weight: 800; }
.deliverable-op { color: rgba(255,255,255,.42); font-size: clamp(12px, .9vw, 17px); font-style: normal; font-weight: 900; }
.deliverable-total b, .deliverable-total small { color: var(--acid); }
.journey-note { position: absolute; bottom: clamp(32px, 4.2vw, 76px); left: clamp(34px, 4vw, 74px); display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.62); font-size: clamp(12px, .85vw, 16px); font-weight: 800; }
.journey-note i { width: 4px; height: 4px; border-radius: 50%; background: var(--acid); }
.start-pulse { position: absolute; right: clamp(34px, 4vw, 74px); bottom: clamp(26px, 3.3vw, 60px); display: flex; min-width: 300px; min-height: 82px; align-items: center; gap: 16px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; padding: 10px 28px 10px 12px; background: rgba(5,6,8,.68); backdrop-filter: blur(18px); animation: start-glow 1.45s ease-in-out infinite; }
.start-pulse > span:last-child { display: grid; gap: 2px; text-align: left; }
.start-pulse b { font-size: clamp(17px, 1.18vw, 23px); letter-spacing: .08em; }
.start-pulse small { color: var(--muted); font-size: 13px; font-weight: 700; }
.touch-ripple { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--acid); }
.touch-ripple i { width: 22px; height: 28px; border: 4px solid #151a08; border-radius: 12px 12px 16px 16px; transform: rotate(-16deg); }

/* People picker */
.people-screen { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.people-intro { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); align-items: center; gap: 28px; padding: clamp(12px, 1.8vh, 24px) clamp(26px, 3vw, 58px) clamp(18px, 2.1vh, 30px); }
.people-intro > p { margin: 0; color: var(--acid); font-size: 12px; font-weight: 950; letter-spacing: .16em; }
.people-intro > span { max-width: 70ch; color: var(--muted); font-size: clamp(13px, .92vw, 18px); font-weight: 680; line-height: 1.48; }
.people-grid { display: grid; min-height: 0; grid-template-columns: repeat(var(--people-card-count, 3), minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 23px); padding: 0 clamp(26px, 3vw, 58px) clamp(18px, 2.4vh, 32px); }
.people-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 0; background: #111317; color: #fff; cursor: pointer; isolation: isolate; text-align: left; transition: border-color 180ms ease, transform 220ms var(--ease), box-shadow 180ms ease; }
.people-card::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.02) 25%, rgba(3,4,6,.93) 92%); content: ""; }
/* 포토부스 연출 — 커튼 안에서 네 컷이 차례로 찰칵찰칵 찍히는 장면. */
.booth-scene { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #16101d, #0a0810 60%); }
.booth-curtain { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(120,26,58,.95) 0 14px, rgba(74,12,34,.95) 14px 30px); box-shadow: inset 0 0 90px rgba(0,0,0,.75); }
.booth-curtain::after { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 18%, rgba(255,238,180,.28), transparent 62%); content: ""; }
.booth-strip { position: absolute; top: 50%; left: 50%; display: grid; width: min(62%, 200px); gap: 5px; padding: 7px; border-radius: 6px; background: #f7f5ee; box-shadow: 0 26px 60px rgba(0,0,0,.62); transform: translate(-50%, -50%) rotate(-2.5deg); }
.booth-frame { aspect-ratio: 3 / 2; border-radius: 3px; background-color: #14161a; opacity: 0; animation: booth-develop 4.4s ease-in-out infinite; animation-delay: var(--booth-delay, 0s); }
/* 각 컷이 플래시와 함께 떠오른다. */
@keyframes booth-develop {
  0%, 5% { opacity: 0; }
  9% { opacity: 1; filter: brightness(2.6) saturate(.35); }
  16%, 96% { opacity: 1; filter: brightness(1) saturate(1); }
  100% { opacity: 1; filter: brightness(1); }
}
.booth-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: booth-flash 4.4s ease-out infinite; }
@keyframes booth-flash {
  0%, 100% { opacity: 0; }
  3% { opacity: .5; }
  9% { opacity: 0; }
  25% { opacity: .42; }
  31% { opacity: 0; }
  47% { opacity: .42; }
  53% { opacity: 0; }
  69% { opacity: .42; }
  75% { opacity: 0; }
}
.booth-shutter { position: absolute; top: 13px; left: 50%; display: grid; width: 46px; height: 30px; place-items: center; border-radius: 6px; background: #14161a; box-shadow: 0 5px 16px rgba(0,0,0,.55); transform: translateX(-50%); }
.booth-shutter i { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; }
.booth-shutter::after { position: absolute; inset: 0; border-radius: 6px; box-shadow: 0 0 0 0 rgba(217,255,83,.7); animation: booth-shutter-pulse 4.4s ease-out infinite; content: ""; }
@keyframes booth-shutter-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,255,83,0); }
  3% { box-shadow: 0 0 0 7px rgba(217,255,83,.6); }
  12% { box-shadow: 0 0 0 16px rgba(217,255,83,0); }
}
@media (prefers-reduced-motion: reduce) {
  .booth-frame { opacity: 1; animation: none; }
  .booth-flash, .booth-shutter::after { animation: none; }
}
.people-card.is-featured { border-color: rgba(217,255,83,.56); box-shadow: inset 0 0 0 1px rgba(217,255,83,.18); }
.people-number { position: absolute; z-index: 3; top: 18px; left: 20px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 950; letter-spacing: .1em; }
.people-badge { position: absolute; z-index: 3; top: 14px; right: 15px; border-radius: 999px; padding: 8px 11px; background: var(--acid); color: #111507; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.people-copy { position: absolute; z-index: 3; right: 24px; bottom: 25px; left: 24px; display: grid; gap: 7px; }
.people-copy small { color: var(--acid); font-size: 11px; font-weight: 950; letter-spacing: .15em; }
.people-copy b { font-size: clamp(28px, 2.25vw, 43px); letter-spacing: -.055em; }
.people-copy em { color: rgba(255,255,255,.68); font-size: clamp(13px, .88vw, 17px); font-style: normal; font-weight: 700; }
.people-arrow { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: none; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: var(--acid); color: #111507; font-size: 23px; }
.people-footnote { display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.people-footnote > b { color: #fff; }
@media (hover: hover) and (pointer: fine) { .people-card:hover { border-color: rgba(255,255,255,.8); transform: translateY(-5px); box-shadow: 0 22px 55px rgba(0,0,0,.28); } .people-card:hover .booth-scene { filter: saturate(1.12) brightness(1.08); } }

/* Theme browser */
.theme-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) clamp(112px, 13.2vh, 146px); }
.theme-workspace { display: grid; grid-template-columns: minmax(600px, .82fr) minmax(600px, 1.18fr); min-height: 0; gap: clamp(14px, 1.4vw, 27px); padding: 4px clamp(26px, 3vw, 58px) clamp(10px, 1.4vh, 16px); }
.catalog-panel { display: flex; min-height: 0; flex-direction: column; }
.panel-heading { display: flex; min-height: 28px; align-items: center; justify-content: space-between; }
.panel-heading h2 { margin: 0; font-size: clamp(13px, .9vw, 17px); letter-spacing: .12em; }
.panel-heading span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.confirmed-raw-strip { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.confirmed-raw-strip:empty { display: none; }
.confirmed-raw-strip::before { margin-right: 4px; color: var(--acid); content: attr(data-label); white-space: pre-line; font-size: 9px; font-weight: 950; line-height: 1.08; letter-spacing: .06em; }
.confirmed-raw-strip img { width: 38px; height: 28px; border: 1px solid rgba(217,255,83,.5); border-radius: 4px; object-fit: cover; }
.panel-heading > span { margin-left: 10px; }
.theme-keyboard-hint {
  margin: 6px 0 0;
  border: 1px solid rgba(217,255,83,.18);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(217,255,83,.06);
  color: rgba(247,245,239,.62);
  font-size: clamp(11px,.78vw,14px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.25;
  text-align: center;
}
.theme-carousel { display: grid; min-height: 0; flex: 1; grid-template-rows: minmax(0, 1fr) 64px; gap: 6px; margin-top: 8px; }
.theme-carousel-viewport { min-width: 0; min-height: 0; overflow: hidden; border-radius: 10px; scroll-behavior: smooth; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
.theme-grid { display: flex; width: 100%; height: 100%; min-height: 0; transform: translate3d(0, 0, 0); transition: transform 360ms var(--ease); will-change: transform; }
.theme-page { display: grid; min-width: 0; min-height: 0; flex: 0 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: clamp(6px, .52vw, 10px); scroll-snap-align: start; scroll-snap-stop: always; }
.theme-page-nav { display: grid; grid-template-columns: 64px auto 64px; align-items: center; justify-content: center; gap: 10px; }
.theme-page-button { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; padding: 0; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease; }
.theme-page-button:disabled { opacity: .28; cursor: default; }
.theme-page-dots { display: flex; min-width: 44px; align-items: center; justify-content: center; gap: 8px; }
.theme-carousel-dot { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 999px; padding: 0; background: transparent; cursor: pointer; }
.theme-carousel-dot::after { width: 24px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.28); content: ""; transition: width 180ms var(--ease), background 180ms ease; }
.theme-carousel-dot.is-active::after { width: 36px; background: var(--acid); }
@media (hover: hover) and (pointer: fine) { .theme-page-button:not(:disabled):hover { border-color: var(--acid); background: rgba(217,255,83,.12); } }
.theme-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; padding: 0; background: #121418; color: #fff; cursor: pointer; isolation: isolate; transition: border-color 170ms ease, transform 170ms var(--ease), box-shadow 170ms ease; }
.theme-tile::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 46%, rgba(0,0,0,.9)); content: ""; }
/* 인물 사진은 절대 잘리지 않게 contain으로 전체를 보여주고,
   남는 여백은 같은 이미지의 블러 확대본으로 채운다.
   ::before(블러 채움) → ::after(선명한 전체 이미지) → 자식 배지(z-index 2) 순으로 쌓인다.
   요소 자체의 background-image를 쓰면 filter/animation이 만든 스택 컨텍스트 안에서
   음수 z-index 레이어가 배경 위로 올라와 이미지를 덮으므로, 두 레이어 모두 의사요소로 그린다. */
.theme-art { position: relative; overflow: hidden; background-color: #111317; }
.theme-art::before, .theme-art::after { position: absolute; inset: 0; background-image: var(--theme-image); background-repeat: no-repeat; content: ""; }
.theme-art::before { z-index: 0; background-position: center; background-size: cover; filter: blur(22px) saturate(1.25) brightness(.5); transform: scale(1.18); }
.theme-art::after { z-index: 1; background-position: var(--theme-position, center); background-size: var(--theme-size, contain); }
.theme-tile .theme-art { position: absolute; inset: 0; transition: filter 320ms var(--ease); }
.theme-tile b { position: absolute; right: 9px; bottom: 8px; left: 9px; z-index: 2; overflow: hidden; font-size: clamp(12px, .8vw, 15px); line-height: 1.15; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.theme-tile .selected-order { position: absolute; top: 7px; right: 7px; z-index: 3; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--acid); color: #111507; font-size: 17px; font-weight: 950; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.theme-tile.is-active { border-color: rgba(255,255,255,.9); box-shadow: 0 0 0 2px rgba(255,255,255,.28); }
.theme-tile.is-selected { border-color: var(--acid); box-shadow: 0 0 0 2px rgba(217,255,83,.34), 0 0 24px rgba(217,255,83,.18); }
button.theme-tile.kiosk-roving:focus { z-index: 4; border: 6px solid var(--acid); box-shadow: 0 0 28px rgba(217,255,83,.58); }
@media (hover: hover) and (pointer: fine) { .theme-tile:hover .theme-art { filter: saturate(1.1) brightness(1.06); } .theme-tile:hover { border-color: rgba(255,255,255,.65); } }

.theme-detail { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #111317; isolation: isolate; }
.detail-image { position: absolute; inset: 0; transition: opacity 180ms ease; }
.detail-shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 25%, rgba(0,0,0,.12)), linear-gradient(180deg, rgba(0,0,0,.08) 32%, rgba(4,5,7,.92) 92%); }
.detail-topline { position: absolute; z-index: 2; top: clamp(16px, 1.4vw, 27px); right: clamp(18px, 1.6vw, 30px); left: clamp(18px, 1.6vw, 30px); display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.hot-chip { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 9px 14px; background: rgba(5,6,8,.55); color: var(--acid); backdrop-filter: blur(12px); }
.detail-copy { position: absolute; z-index: 2; right: clamp(20px, 2.2vw, 42px); bottom: clamp(20px, 2.1vw, 40px); left: clamp(20px, 2.2vw, 42px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 24px; }
.detail-copy > p:first-child { grid-column: 1; margin: 0 0 7px; color: var(--acid); font-size: clamp(11px, .78vw, 15px); font-weight: 950; letter-spacing: .16em; }
.detail-copy h2 { grid-column: 1; margin: 0; font-size: clamp(38px, 3.35vw, 64px); line-height: .92; }
.detail-copy > p:nth-of-type(2) { grid-column: 1; max-width: 34ch; margin: 12px 0 0; color: rgba(255,255,255,.78); font-size: clamp(14px, 1.02vw, 20px); font-weight: 680; line-height: 1.42; }
.detail-tags { grid-column: 1; display: flex; gap: 7px; margin-top: 13px; }
.detail-tags span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 11px; background: rgba(0,0,0,.34); color: rgba(255,255,255,.78); font-size: 11px; font-weight: 800; }
.add-theme-button { grid-column: 2; grid-row: 1 / span 4; display: flex; min-width: clamp(210px, 15vw, 286px); min-height: 84px; align-items: center; gap: 14px; border: 1px solid var(--acid); border-radius: 999px; padding: 10px 24px 10px 10px; background: var(--acid); color: #121607; text-align: left; transition: transform 180ms var(--ease), background 180ms ease; }
.add-theme-button .add-icon { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; border-radius: 50%; background: #101407; color: var(--acid); font-size: 39px; font-weight: 500; line-height: 1; }
.add-theme-button > span:last-child { display: grid; gap: 3px; }
.add-theme-button b { font-size: clamp(17px, 1.15vw, 22px); }
.add-theme-button small { font-size: 12px; font-weight: 750; opacity: .62; }
.add-theme-button.is-remove { border-color: rgba(255,255,255,.38); background: rgba(8,9,11,.72); color: #fff; }
.add-theme-button.is-remove .add-icon { background: rgba(255,255,255,.13); color: #fff; transform: rotate(45deg); }
.add-theme-button:disabled { border-color: rgba(255,255,255,.18); background: rgba(12,13,16,.78); color: rgba(255,255,255,.46); }
.add-theme-button:disabled .add-icon { background: rgba(255,255,255,.08); color: rgba(255,255,255,.35); }

.theme-cart { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(580px, 2.35fr) minmax(280px, .85fr); align-items: center; gap: clamp(16px, 1.6vw, 30px); border-top: 1px solid var(--line); padding: clamp(10px, 1.2vh, 16px) clamp(26px, 3vw, 58px); background: rgba(5,6,8,.88); backdrop-filter: blur(18px); }
.cart-intro { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 12px; }
.cart-intro p { grid-column: 1 / -1; margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.cart-intro strong { color: var(--acid); font-size: clamp(27px, 2vw, 38px); letter-spacing: -.05em; }
.cart-intro > span { align-self: center; color: var(--muted); font-size: clamp(11px, .75vw, 14px); line-height: 1.3; }
.cart-slots { display: grid; min-height: 82px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.cart-slot { position: relative; display: grid; min-width: 0; overflow: hidden; grid-template-columns: 78px minmax(0, 1fr) 56px; align-items: center; gap: 10px; border: 1px dashed rgba(255,255,255,.2); border-radius: 10px; padding: 7px; background: rgba(255,255,255,.035); }
.cart-slot.is-filled { border-style: solid; border-color: rgba(217,255,83,.42); }
.cart-slot .cart-thumb { width: 78px; height: 52px; border-radius: 7px; }
.cart-slot .slot-empty { grid-column: 1 / -1; justify-self: center; color: rgba(255,255,255,.27); font-size: 12px; font-weight: 850; }
.cart-slot .slot-copy { min-width: 0; display: grid; gap: 3px; }
.cart-slot .slot-copy b { overflow: hidden; font-size: clamp(11px, .72vw, 14px); text-overflow: ellipsis; white-space: nowrap; }
.cart-slot .slot-copy small { color: var(--acid); font-size: 10px; font-weight: 900; }
.remove-theme { display: grid; width: 56px; height: 56px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.09); color: #fff; font-size: 25px; cursor: pointer; }
.cart-cta { display: grid; min-width: 0; min-height: 78px; align-content: center; gap: 2px; border-radius: 14px; }
.cart-cta span { font-size: clamp(17px, 1.2vw, 23px); }
.cart-cta small { font-size: 11px; font-weight: 800; opacity: .58; }

/* Detail-style picker */
.style-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) clamp(112px, 13.5vh, 146px); }
.style-workspace { display: grid; min-height: 0; grid-template-columns: minmax(330px, .4fr) minmax(760px, 1.6fr); gap: clamp(12px, 1.25vw, 24px); padding: 4px clamp(26px, 3vw, 58px) clamp(12px, 1.7vh, 19px); }
.style-theme-tabs { display: grid; min-height: 0; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 9px; }
.style-theme-tab { position: relative; display: grid; min-height: 0; overflow: hidden; grid-template-columns: clamp(84px, 5.4vw, 104px) minmax(0, 1fr) 34px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 8px 10px 8px 8px; background: rgba(255,255,255,.045); color: #fff; cursor: pointer; text-align: left; transition: border-color 160ms ease, background 160ms ease; }
.style-theme-tab .theme-art { width: 100%; height: 100%; min-height: 76px; border-radius: 8px; }
.style-theme-tab > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.style-theme-tab b { overflow: hidden; font-size: clamp(14px, .95vw, 18px); text-overflow: ellipsis; white-space: nowrap; }
.style-theme-tab small { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.style-theme-tab i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: rgba(255,255,255,.36); font-size: 13px; font-style: normal; font-weight: 950; }
.style-theme-tab.is-active { border-color: #fff; background: rgba(255,255,255,.1); }
.style-theme-tab.is-complete { border-color: rgba(217,255,83,.5); }
.style-theme-tab.is-complete i { border-color: var(--acid); background: var(--acid); color: #111507; }
.variant-panel { display: grid; min-height: 0; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.variant-heading { display: grid; grid-template-columns: 100px minmax(260px, .8fr) minmax(320px, 1fr); align-items: end; gap: 20px; padding: clamp(16px, 1.5vw, 27px) clamp(18px, 1.8vw, 34px) 14px; }
.variant-heading > span { align-self: start; color: var(--acid); font-size: 11px; font-weight: 950; letter-spacing: .13em; }
.variant-heading p { margin: 0; }
.variant-heading div p { margin-bottom: 4px; color: var(--acid); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.variant-heading h2 { margin: 0; font-size: clamp(32px, 2.55vw, 49px); line-height: 1; }
.variant-heading > p { color: var(--muted); font-size: clamp(12px, .82vw, 16px); line-height: 1.45; }
.variant-grid { display: grid; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 12px 12px; }
.variant-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; padding: 0; background: #111317; color: #fff; cursor: pointer; isolation: isolate; text-align: left; transition: border-color 170ms ease, box-shadow 170ms ease, transform 180ms var(--ease); }
.variant-card::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.92)); content: ""; }
.variant-card .theme-art { position: absolute; inset: 0; transition: filter 330ms var(--ease); }
.variant-card-copy { position: absolute; z-index: 2; right: 15px; bottom: 13px; left: 15px; display: grid; gap: 3px; }
.variant-card-copy small { color: var(--acid); font-size: 9px; font-weight: 950; letter-spacing: .11em; }
.variant-card-copy b { font-size: clamp(16px, 1.2vw, 23px); }
.variant-card-copy span { overflow: hidden; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.variant-check { position: absolute; z-index: 3; top: 11px; right: 11px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(4,5,7,.58); font-weight: 950; backdrop-filter: blur(10px); }
.variant-card.is-selected { border-color: var(--acid); box-shadow: inset 0 0 0 2px var(--acid), 0 0 28px rgba(217,255,83,.14); }
.variant-card.is-selected .variant-check { border-color: var(--acid); background: var(--acid); color: #111507; }
@media (hover: hover) and (pointer: fine) { .variant-card:hover { border-color: rgba(255,255,255,.7); transform: translateY(-2px); } .variant-card:hover .theme-art { filter: saturate(1.1) brightness(1.06); } }
.style-dock { display: grid; grid-template-columns: minmax(620px, 2fr) minmax(380px, .9fr); align-items: center; gap: 28px; border-top: 1px solid var(--line); padding: 12px clamp(26px, 3vw, 58px); background: rgba(5,6,8,.88); backdrop-filter: blur(18px); }
.style-dock > div > p { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.style-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.style-summary-item { min-width: 0; display: grid; gap: 3px; border-left: 2px solid rgba(255,255,255,.18); padding-left: 10px; }
.style-summary-item.is-complete { border-color: var(--acid); }
.style-summary-item b, .style-summary-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.style-summary-item b { font-size: 12px; }
.style-summary-item span { color: var(--muted); font-size: 10px; }
.style-dock .primary-button { display: grid; min-height: 78px; align-content: center; gap: 3px; border-radius: 14px; }
.style-dock .primary-button span { font-size: clamp(16px, 1.15vw, 22px); }
.style-dock .primary-button small { margin: 0; font-size: 11px; }

/* Pose guide */
.pose-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pose-layout { display: grid; grid-template-columns: minmax(300px, .86fr) minmax(440px, 1.14fr) minmax(270px, .64fr); min-height: 0; align-items: stretch; gap: clamp(24px, 2.4vw, 46px); padding: clamp(24px, 3vh, 48px) clamp(40px, 4.2vw, 80px); }
.pose-hero { align-self: center; min-width: 0; }
.pose-kicker { margin-bottom: 12px; color: var(--acid); font-size: 13px; font-weight: 950; letter-spacing: .15em; }
.pose-hero h2 { margin: 0 0 18px; font-size: clamp(42px, 3.8vw, 72px); line-height: .96; }
.pose-hero > p:not(.pose-kicker) { max-width: 34ch; margin-bottom: 26px; color: var(--muted); font-size: clamp(16px, 1.15vw, 22px); line-height: 1.5; }
.pose-theme-strip { display: flex; gap: 10px; }
/* 네 컷의 포즈 참고 썸네일 — 인물이 잘리지 않게 contain. */
.pose-strip-thumb { position: relative; width: 92px; aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid rgba(217,255,83,.5); border-radius: 9px; }
.pose-strip-thumb i { position: absolute; z-index: 2; top: 4px; left: 5px; border-radius: 4px; padding: 2px 5px; background: rgba(5,6,8,.72); color: var(--acid); font-size: 10px; font-style: normal; font-weight: 950; }
.pose-strip-thumb.is-empty { border-style: dashed; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.pose-cards { display: grid; min-height: 0; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pose-cards li { display: grid; min-height: 0; grid-template-columns: 62px clamp(104px, 8vw, 148px) 1fr; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: clamp(10px, 1.1vh, 16px) clamp(14px, 1.4vw, 26px); background: rgba(255,255,255,.045); }
.pose-number { align-self: start; color: var(--acid); font-size: 14px; font-weight: 950; }
/* 포즈 카드 — 추상 실루엣 대신 그 테마의 실제 포즈 사진을 보여준다. */
.pose-figure { position: relative; width: 100%; aspect-ratio: 3 / 2; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.pose-figure.is-empty { border-style: dashed; background: rgba(255,255,255,.05); }
.pose-cards li > div:last-child { display: grid; gap: 8px; }
.pose-cards b { font-size: clamp(19px, 1.35vw, 26px); }
.pose-cards small { color: var(--muted); font-size: clamp(13px, .92vw, 18px); line-height: 1.4; }
.pose-start-action { align-self: center; justify-self: end; display: grid; width: min(100%, 380px); gap: clamp(18px, 2.2vh, 28px); padding-left: clamp(18px, 2vw, 38px); border-left: 1px solid var(--line); }
.pose-start-action p { display: grid; gap: 7px; margin: 0; text-align: right; }
.pose-start-action p > b { font-size: clamp(17px, 1.12vw, 22px); }
.pose-start-action p > span { color: var(--muted); font-size: clamp(13px, .86vw, 17px); line-height: 1.5; }
.pose-start-action .primary-button { width: 100%; min-height: clamp(112px, 13vh, 148px); border-radius: 999px; padding-inline: clamp(34px, 3vw, 58px); font-size: clamp(24px, 1.8vw, 34px); }

/* Capture */
.capture-screen { background: #020304; }
.camera-stage, #camera-preview, .camera-fallback, .camera-vignette, .camera-grid, .camera-flash { position: absolute; inset: 0; width: 100%; height: 100%; }
#camera-preview { object-fit: cover; transform: scaleX(-1); }
.camera-fallback { overflow: hidden; background: #0c0e12; isolation: isolate; }
.camera-fallback::before,
.camera-fallback::after { position: absolute; inset: 0; background-image: var(--capture-guide-image); background-position: center; background-repeat: no-repeat; content: ""; }
.camera-fallback::before { opacity: .34; background-size: cover; filter: blur(28px) brightness(.48) saturate(1.08); transform: scale(1.12); }
.camera-fallback::after { opacity: .38; background-size: contain; filter: saturate(.82) brightness(.72); }
.fallback-head, .fallback-body { display: none; }
.camera-vignette { background: linear-gradient(180deg, rgba(0,0,0,.62), transparent 30%, transparent 60%, rgba(0,0,0,.78)), radial-gradient(ellipse, transparent 28%, rgba(0,0,0,.48)); }
.camera-grid { opacity: .14; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.333% 33.333%; }
.pose-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pose-midshot-frame { position: absolute; top: 17%; left: 50%; width: min(38vw, 58vh); height: min(59vw, 68vh); transform: translateX(-50%); transition: width 220ms var(--ease), height 220ms var(--ease); }
.pose-overlay[data-people="duo"] .pose-midshot-frame { width: min(53vw, 82vh); height: min(43vw, 62vh); }
.pose-overlay[data-people="group"] .pose-midshot-frame { width: min(69vw, 112vh); height: min(40vw, 58vh); }
.pose-frame-corner { position: absolute; width: clamp(32px, 3vw, 54px); height: clamp(32px, 3vw, 54px); border-color: var(--acid); border-style: solid; filter: drop-shadow(0 2px 8px rgba(0,0,0,.52)); }
.pose-frame-top-left { top: 0; left: 0; border-width: 5px 0 0 5px; border-radius: 14px 0 0; }
.pose-frame-top-right { top: 0; right: 0; border-width: 5px 5px 0 0; border-radius: 0 14px 0 0; }
.pose-frame-bottom-left { bottom: 0; left: 0; border-width: 0 0 5px 5px; border-radius: 0 0 0 14px; }
.pose-frame-bottom-right { right: 0; bottom: 0; border-width: 0 5px 5px 0; border-radius: 0 0 14px; }
.pose-overlay-label { position: absolute; right: 50%; bottom: clamp(132px, 15vh, 176px); display: grid; max-width: min(78vw, 620px); justify-items: center; gap: 4px; margin: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; padding: 11px 18px; background: rgba(4,5,7,.64); color: #fff; font-size: clamp(11px, .78vw, 14px); font-weight: 850; line-height: 1.35; text-align: center; transform: translateX(50%); backdrop-filter: blur(10px); }
.pose-overlay-label > b { color: var(--acid); font-size: clamp(13px, .9vw, 17px); letter-spacing: .01em; }
.pose-overlay-label > span { color: rgba(255,255,255,.76); }
.camera-flash { z-index: 20; background: #fff; opacity: 0; pointer-events: none; }
.camera-flash.flash { animation: camera-flash 460ms ease-out; }
/* 촬영 화면 상단 — 이번 컷의 포즈를 참고할 수 있게 네 컷 썸네일을 띄운다. */
.capture-pose-strip { position: absolute; z-index: 4; top: clamp(112px, 12vh, 152px); left: 50%; display: flex; gap: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 10px; background: rgba(5,6,8,.62); backdrop-filter: blur(16px); transform: translateX(-50%); }
.capture-pose-thumb { position: relative; width: clamp(94px, 8vw, 132px); aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid rgba(255,255,255,.2); border-radius: 9px; opacity: .5; transition: opacity 200ms ease, border-color 200ms ease, transform 200ms var(--ease); }
.capture-pose-thumb i { position: absolute; z-index: 2; top: 4px; left: 5px; border-radius: 4px; padding: 2px 5px; background: rgba(5,6,8,.72); color: #fff; font-size: 10px; font-style: normal; font-weight: 950; }
.capture-pose-thumb b { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 9px 6px 4px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.88)); font-size: 10px; font-weight: 900; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
/* 이미 찍은 컷 — ::after는 이미지 레이어라 배지(i)로 완료를 표시한다. */
.capture-pose-thumb.is-done { opacity: .4; border-color: rgba(217,255,83,.4); }
.capture-pose-thumb.is-done i { background: var(--acid); color: #111507; }
/* 이번에 찍을 컷 — 크게 강조하고 아크로 테두리를 준다. */
.capture-pose-thumb.is-current { opacity: 1; border-color: var(--acid); transform: scale(1.08); box-shadow: 0 0 22px rgba(217,255,83,.34); }
.capture-pose-thumb.is-empty { border-style: dashed; background: rgba(255,255,255,.05); }

.capture-header { position: absolute; z-index: 8; top: 0; right: 0; left: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: clamp(20px, 2.4vw, 42px) clamp(28px, 3.2vw, 60px); }
.glass { background: rgba(5,6,8,.48); backdrop-filter: blur(16px); }
.capture-progress { display: flex; align-items: center; gap: 14px; margin: 0; }
.capture-progress > span { color: var(--acid); font-size: 12px; font-weight: 950; letter-spacing: .15em; }
.capture-progress b { font-size: clamp(24px, 1.9vw, 36px); }
.capture-progress i { font-style: normal; }
.demo-badge { justify-self: end; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 11px 15px; background: rgba(0,0,0,.45); color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.capture-copy { position: absolute; z-index: 6; top: 22%; left: clamp(34px, 5vw, 94px); max-width: 31vw; }
.capture-copy h1 { margin: 8px 0 16px; font-size: clamp(48px, 4.4vw, 84px); line-height: .93; }
.capture-copy > p:last-child { max-width: 27ch; color: rgba(255,255,255,.75); font-size: clamp(16px, 1.15vw, 22px); font-weight: 680; line-height: 1.45; }
.countdown { position: absolute; inset: 0; z-index: 18; display: grid; place-items: center; background: rgba(0,0,0,.13); font-size: clamp(190px, 24vw, 430px); font-weight: 950; letter-spacing: -.11em; text-shadow: 0 14px 80px rgba(0,0,0,.7); }
.countdown.pop { animation: countdown-pop 720ms var(--ease); }
/* 컷 사이 안내 — 사용자의 터치를 기다리는 동안 뜨므로 화면을 가리지 않는 토스트로 두고,
   셔터 버튼 터치를 절대 가로채지 않는다. */
.between-shots { position: absolute; z-index: 17; bottom: clamp(150px, 15vh, 200px); left: 50%; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(217,255,83,.45); border-radius: 999px; padding: 14px 28px; background: rgba(5,6,8,.76); backdrop-filter: blur(16px); pointer-events: none; transform: translateX(-50%); }
.between-shots > b { color: var(--acid); font-size: clamp(20px, 1.5vw, 28px); line-height: 1; }
.between-shots > span { color: rgba(255,255,255,.82); font-size: clamp(13px, .95vw, 18px); font-weight: 760; }
.capture-dock { position: absolute; z-index: 8; right: clamp(28px, 3.2vw, 60px); bottom: clamp(24px, 3vw, 54px); left: clamp(28px, 3.2vw, 60px); display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 18px; }
.capture-filmstrip { display: flex; gap: 9px; }
.capture-filmstrip > span { position: relative; display: grid; width: clamp(86px, 7vw, 132px); aspect-ratio: 4/3; place-items: center; overflow: hidden; border: 1px dashed rgba(255,255,255,.28); border-radius: 8px; background: rgba(5,6,8,.46); color: rgba(255,255,255,.42); backdrop-filter: blur(10px); }
.capture-filmstrip i { font-style: normal; font-size: 12px; font-weight: 900; }
.capture-filmstrip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.capture-filmstrip > span.is-current { border-color: var(--acid); box-shadow: 0 0 0 2px rgba(217,255,83,.18); }
.shutter-button { display: flex; min-width: 310px; min-height: 92px; align-items: center; justify-content: center; gap: 18px; border: 2px solid rgba(255,255,255,.78); border-radius: 999px; padding: 0 32px 0 12px; background: rgba(5,6,8,.7); color: #fff; font-size: clamp(19px, 1.35vw, 26px); backdrop-filter: blur(16px); }
.shutter-button > span { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: #fff; }
.shutter-button > span i { width: 52px; height: 52px; border-radius: 50%; background: var(--coral); box-shadow: inset 0 0 0 4px #fff; }
.shutter-button:disabled { opacity: .42; }

/* Review */
.review-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.review-layout { display: grid; min-height: 0; grid-template-columns: minmax(0, 1.42fr) minmax(420px, .58fr); gap: clamp(30px, 4vw, 76px); padding: clamp(22px, 2.3vh, 38px) clamp(38px, 4.7vw, 88px) clamp(34px, 4vh, 66px); }
.review-photos { display: grid; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.review-photo { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #111; box-shadow: 0 28px 74px rgba(0,0,0,.32); }
.review-photo img { width: 100%; height: 100%; object-fit: contain; }
.review-photo span { position: absolute; right: 14px; bottom: 14px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(5,6,8,.68); font-size: 13px; font-weight: 950; backdrop-filter: blur(12px); }
.review-summary { min-width: 0; align-self: center; }
.review-summary h2 { margin: 10px 0 24px; font-size: clamp(37px, 3vw, 57px); line-height: .98; }
.review-summary ul { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; color: var(--muted); font-size: clamp(14px, .95vw, 18px); }
.review-summary li { display: flex; align-items: center; gap: 10px; }
.review-summary li > span[aria-hidden="true"] { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: rgba(217,255,83,.13); color: var(--acid); font-size: 12px; font-weight: 950; }
.review-summary li > span[aria-hidden="true"]::after { width: 8px; height: 4px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); content: ""; }
.review-question-copy { min-width: 0; }
.review-summary .primary-button { width: 100%; }
.review-summary .text-button { width: 100%; }

/* Payment */
.pay-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.secure-chip { justify-self: end; border: 1px solid rgba(115,231,255,.35); border-radius: 999px; padding: 13px 18px; background: rgba(115,231,255,.08); color: var(--sky); font-size: clamp(12px, .82vw, 16px); font-weight: 900; }
.pay-layout { display: grid; min-height: 0; grid-template-columns: 1.08fr .92fr; gap: clamp(38px, 5vw, 96px); padding: clamp(18px, 2vh, 32px) clamp(40px, 5vw, 96px) clamp(34px, 4vh, 68px); }
.order-summary { align-self: center; }
.pay-theme-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 14px 0 18px; }
.pay-theme-card { position: relative; min-width: 0; aspect-ratio: 3/2; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.pay-theme-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.84)); content: ""; }
.pay-theme-card b { position: absolute; z-index: 2; right: 9px; bottom: 8px; left: 9px; overflow: hidden; font-size: clamp(10px, .7vw, 13px); text-overflow: ellipsis; white-space: nowrap; }
.order-includes { border-top: 1px solid var(--line); }
.order-includes > div { display: flex; min-height: 58px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.order-includes span { color: var(--muted); font-size: clamp(14px, .95vw, 18px); }
.order-includes b { font-size: clamp(17px, 1.15vw, 22px); }
.same-price-note { margin: 14px 0 0; color: var(--acid); font-size: clamp(11px, .77vw, 15px); font-weight: 760; line-height: 1.4; }
.price-row { display: flex; align-items: end; justify-content: space-between; margin-top: 20px; }
.price-row > span { display: grid; gap: 4px; color: var(--muted); font-size: clamp(15px, 1vw, 19px); font-weight: 760; }
.price-row > span small { font-size: 11px; }
.price-row strong { font-size: clamp(51px, 4.2vw, 80px); line-height: .82; letter-spacing: -.06em; }
.price-row strong small { margin-left: 6px; font-size: .33em; }
.payment-panel { align-self: stretch; display: flex; min-height: 0; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2vw, 36px); background: rgba(255,255,255,.045); text-align: center; }
.payment-panel h2 { margin: 5px 0 14px; font-size: clamp(32px, 2.55vw, 48px); line-height: 1; }
.qr-wrap { position: relative; display: grid; width: clamp(220px, 17vw, 320px); aspect-ratio: 1; place-items: center; overflow: hidden; border: 10px solid #fff; border-radius: 12px; background: #fff; box-shadow: 0 22px 54px rgba(0,0,0,.35); }
.qr-wrap canvas { display: block; width: 100% !important; height: 100% !important; }
.qr-wrap.is-disabled::after { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,8,10,.86); color: #fff; font-size: 19px; font-weight: 900; line-height: 1.35; text-align: center; white-space: pre-line; content: attr(data-confirmed-label); }
.qr-placeholder { color: #090b0d; font-size: 72px; font-weight: 950; }
.status-line { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: clamp(12px, .8vw, 16px); font-weight: 700; }
.status-line.is-error { color: #ffad9e; }
.status-line.is-success { color: var(--acid); }
.order-id, .gallery-url { margin: 5px 0 7px; overflow-wrap: anywhere; color: rgba(255,255,255,.38); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; }
.demo-actions, .retry-actions { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.retry-actions { width: min(100%, 480px); grid-template-columns: 1fr 1fr; }
.retry-actions:not([hidden]) { display: grid; }

/* Generation + claim */
.generating-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.generating-layout { display: grid; min-height: 0; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 4.2vw, 80px); padding: clamp(14px, 1.6vh, 26px) clamp(38px, 4.8vw, 90px) clamp(28px, 3.5vh, 60px); }
.generation-stage { align-self: center; }
.generation-visual { position: relative; height: clamp(160px, 21vh, 226px); margin-bottom: 4px; }
.ai-core { position: absolute; top: 50%; left: 22%; display: grid; width: clamp(120px, 9vw, 170px); aspect-ratio: 1; place-items: center; transform: translate(-50%, -50%); }
.ai-core::before { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fff, var(--acid) 22%, #3d4922 52%, #090a0d 72%); box-shadow: 0 0 65px rgba(217,255,83,.32); content: ""; }
.ai-core span { position: absolute; inset: 0; border: 1px dashed rgba(217,255,83,.52); border-radius: 50%; animation: orbit-spin 5s linear infinite; }
.ai-core i { position: relative; z-index: 2; color: #101407; font-style: normal; font-size: 28px; font-weight: 950; }
.generation-orbit-cards { position: absolute; inset: 0 0 0 34%; display: flex; align-items: center; gap: 10px; }
.generation-orbit-cards span { width: clamp(86px, 7vw, 132px); aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 10px; filter: saturate(.78); animation: floating-card 2.8s ease-in-out infinite alternate; }
.generation-orbit-cards span:nth-child(2) { animation-delay: -.7s; }
.generation-orbit-cards span:nth-child(3) { animation-delay: -1.4s; }
.generation-orbit-cards span:nth-child(4) { animation-delay: -2.1s; }
.generation-stage h2 { margin: 7px 0 14px; font-size: clamp(43px, 3.8vw, 72px); line-height: .94; }
.generation-message { min-height: 27px; margin-bottom: 11px; color: var(--muted); font-size: clamp(15px, 1.08vw, 21px); font-weight: 680; }
.generation-provider-row { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; color: rgba(255,255,255,.66); font-size: clamp(11px, .76vw, 14px); font-weight: 800; }
.generation-provider-status { border: 1px solid rgba(115,231,255,.32); border-radius: 999px; padding: 6px 10px; background: rgba(115,231,255,.08); color: var(--sky); }
.generation-provider-status.is-fallback { border-color: rgba(255,191,98,.38); background: rgba(255,191,98,.1); color: #ffd29a; }
.generation-provider-status.is-ready { border-color: rgba(217,255,83,.38); background: rgba(217,255,83,.1); color: var(--acid); }
.generation-provider-row > b { color: #fff; letter-spacing: .04em; }
.progress-row { display: flex; align-items: center; gap: 18px; }
.progress-track { flex: 1; height: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acid), #fff); box-shadow: 0 0 23px rgba(217,255,83,.38); transition: width 180ms ease; }
.progress-row strong { min-width: 60px; font-size: clamp(23px, 1.8vw, 34px); }
.claim-panel { align-self: stretch; display: flex; min-height: 0; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2vw, 36px); background: rgba(255,255,255,.045); }
.claim-ready-chip { align-self: flex-start; border-radius: 999px; padding: 8px 13px; background: var(--acid); color: #101407; font-size: 11px; font-weight: 950; }
.claim-panel > h2 { margin: 11px 0 15px; font-size: clamp(31px, 2.55vw, 48px); line-height: 1; }
.claim-row { display: grid; grid-template-columns: clamp(150px, 13vw, 245px) 1fr; align-items: center; gap: clamp(15px, 1.5vw, 28px); }
.claim-qr-wrap { width: 100%; }
.claim-row ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.claim-row li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: clamp(11px, .78vw, 15px); font-weight: 700; line-height: 1.3; }
.claim-row li b { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid rgba(217,255,83,.42); border-radius: 50%; color: var(--acid); font-size: 11px; }
.claim-status { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.claim-status.is-claimed { color: var(--acid); font-weight: 800; }
.claim-simulate { align-self: flex-start; min-height: 64px; padding: 0 12px; font-size: 11px; }
.claim-panel > .delivery-scan { display: contents; }
.delivery-direct { display: grid; }
.mobile-delivery .delivery-scan { display: none !important; }
.claim-delivery-direct {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(217,255,83,.35);
  border-radius: 14px;
  padding: clamp(18px, 1.5vw, 26px);
  background: rgba(217,255,83,.08);
}
.delivery-direct-icon {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #101407;
  font-size: 24px;
  font-weight: 950;
}
.claim-delivery-direct p { margin: 0; font-size: clamp(16px, 1.12vw, 21px); font-weight: 850; line-height: 1.35; }
.bonus-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.bonus-panel > div:first-child { display: grid; gap: 3px; }
.bonus-panel > div:first-child > b { font-size: clamp(13px, .9vw, 17px); }
.bonus-panel > div:first-child > span { color: var(--muted); font-size: clamp(10px, .7vw, 13px); }
.live-strip { display: flex; gap: 5px; }
.live-strip > span { position: relative; display: grid; width: clamp(48px, 3.6vw, 68px); aspect-ratio: 4/3; place-items: center; overflow: hidden; border: 1px dashed rgba(255,255,255,.23); border-radius: 6px; color: rgba(255,255,255,.28); font-size: 11px; }
.live-strip img { width: 100%; height: 100%; object-fit: cover; }
.live-strip span.is-shooting::after { position: absolute; inset: 0; background: #fff; content: ""; animation: mini-flash 420ms ease-out; }
.bonus-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.bonus-actions .secondary-button { min-height: 48px; padding-inline: 19px; font-size: 13px; }
.bonus-actions .text-button { min-height: 64px; font-size: 12px; }
.result-button { width: 100%; margin-top: 8px; }

/* Reveal */
.reveal-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.reveal-layout { display: grid; min-height: 0; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .6fr); gap: clamp(22px, 2.7vw, 50px); padding: clamp(12px, 1.4vh, 23px) clamp(32px, 4vw, 76px) clamp(28px, 3.4vh, 58px); }
.result-grid { display: grid; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-grid.count-1 { grid-template-columns: minmax(0, .72fr); grid-template-rows: 1fr; justify-content: center; }
.result-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.result-grid.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr; }
/* 최종 갤러리팩 8장 — 촬영 원본 4장(기본 보정) + AI 테마 4장. */
/* 행 높이를 내용에 맡기고 세로 가운데 정렬 — 카드가 3:2를 유지해 레터박스가 최소가 된다.
   (height:100%를 주면 aspect-ratio가 무시돼 카드가 세로로 길어진다.) */
.result-grid.count-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: center; gap: 10px; }
.result-grid.count-8 .result-card { aspect-ratio: 3 / 2; }
.result-grid.count-8 .result-card figcaption { right: 9px; bottom: 8px; left: 9px; }
.result-grid.count-8 .result-card figcaption b { font-size: clamp(11px, .72vw, 14px); }
.result-grid.count-8 .result-card figcaption small { font-size: 8px; }
/* 기본 보정 원본은 AI 컷과 구분되게 표시. */
.result-card.is-retouched { border-color: rgba(255,255,255,.3); }
.result-card.is-retouched figcaption small { color: rgba(255,255,255,.66); }
.result-card { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; margin: 0; background-color: #111; }
.result-card > img { display: block; width: 100%; height: 100%; object-fit: contain; animation: result-image-enter 620ms var(--ease) both; }
.result-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.82)); content: ""; }
.result-card figcaption { position: absolute; z-index: 2; right: 15px; bottom: 13px; left: 15px; display: flex; align-items: end; justify-content: space-between; }
.result-card figcaption span { display: grid; gap: 3px; }
.result-card figcaption small { color: var(--acid); font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.result-card figcaption b { font-size: clamp(16px, 1.2vw, 23px); }
.result-card figcaption > i { font-style: normal; font-size: 12px; font-weight: 900; }
/* 리뷰 2단계 — OK로 확정한 뒤 "다음 단계로 넘어가기"를 눌러야 결제 QR로 간다. */
#review-check-panel, #review-next-panel { display: grid; gap: 14px; }
.next-pack-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 6px; }
.next-pack-summary > div { display: grid; gap: 4px; border: 1px solid rgba(217,255,83,.4); border-radius: 12px; padding: 14px; background: rgba(217,255,83,.07); text-align: center; }
.next-pack-summary b { color: var(--acid); font-size: clamp(24px, 1.9vw, 34px); }
.next-pack-summary span { color: var(--muted); font-size: clamp(11px, .76vw, 14px); font-weight: 700; }

.delivery-panel { align-self: stretch; display: flex; min-height: 0; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 18px; padding: clamp(17px, 1.8vw, 34px); background: rgba(255,255,255,.045); text-align: center; }
.delivery-panel h2 { margin: 6px 0 13px; font-size: clamp(31px, 2.55vw, 49px); line-height: 1; }
.delivery-qr-wrap { width: clamp(190px, 15vw, 280px); }
.delivery-panel > p:not(.step-label, .gallery-url) { max-width: 31ch; margin: 11px 0 3px; color: var(--muted); font-size: clamp(11px, .76vw, 15px); line-height: 1.4; }
.delivery-panel .primary-button { width: 100%; margin-top: 6px; }
.delivery-direct-actions { width: 100%; gap: 12px; }
.delivery-direct-actions > h2 { margin-bottom: 4px; }
.delivery-direct-actions > .primary-button { min-height: 76px; }
/* QR을 그리지 않는 모바일 전달에서는 QR 자리만큼의 여백을 두지 않는다. */
.mobile-delivery .delivery-panel { min-height: 0; }
.live-bonus-summary { display: flex; min-height: 40px; align-items: center; gap: 11px; color: var(--acid); font-size: 10px; font-weight: 900; }
.live-bonus-summary span { display: flex; gap: 3px; }
.live-bonus-summary img { width: 38px; height: 28px; border-radius: 4px; object-fit: cover; }

/* Completion + mobile claim */
.thankyou-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at center, rgba(217,255,83,.12), transparent 36rem); }
.thankyou-check { position: relative; display: grid; width: 112px; aspect-ratio: 1; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 70px rgba(217,255,83,.26); }
.thankyou-check span { width: 42px; height: 22px; border-bottom: 9px solid #121607; border-left: 9px solid #121607; transform: translateY(-6px) rotate(-45deg); }
.thankyou-screen h1 { margin: 10px 0 17px; font-size: clamp(58px, 5.2vw, 98px); line-height: .92; }
.thankyou-screen > p:not(.step-label) { color: var(--muted); font-size: clamp(16px, 1.15vw, 22px); }
.thankyou-progress { display: block; width: 310px; height: 5px; margin-top: 25px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.thankyou-progress::after { display: block; width: 100%; height: 100%; background: var(--acid); transform-origin: left; animation: thankyou-progress 3s linear forwards; content: ""; }
.claim-screen { position: relative; width: min(100%, 620px); height: 100svh; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 24px 20px 44px; background: #090a0d; }
.claim-screen header { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.claim-mobile-copy { margin: 54px 0 26px; }
.claim-mobile-copy h1 { margin: 14px 0 13px; font-size: 48px; line-height: .96; }
.claim-mobile-copy p { color: var(--muted); line-height: 1.5; }
.mobile-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.mobile-result-grid .result-card { min-height: 270px; margin: 0; }
.claim-screen > .primary-button { width: 100%; }
.claim-expiry { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: center; }

/* Idle */
.idle-dialog { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 30px; background: rgba(0,0,0,.78); backdrop-filter: blur(17px); }
.idle-card { width: min(650px, 92vw); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: clamp(38px, 4vw, 68px); background: #111319; box-shadow: 0 40px 110px rgba(0,0,0,.6); text-align: center; }
.idle-card h2 { margin: 10px 0 17px; font-size: clamp(46px, 4vw, 74px); line-height: .98; word-break: keep-all; }
.idle-card h2 strong { display: block; color: var(--coral); }
.idle-card > p:not(.step-label) { margin-bottom: 27px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.idle-card .primary-button { width: 100%; }

@keyframes reel-drift { to { margin-top: -2%; filter: saturate(1.08) brightness(.88); } }
@keyframes start-glow { 50% { border-color: rgba(217,255,83,.84); box-shadow: 0 0 0 12px rgba(217,255,83,0), 0 0 38px rgba(217,255,83,.16); transform: scale(1.02); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes floating-card { to { transform: translateY(-9px) rotate(1deg); } }
@keyframes countdown-pop { 0% { opacity: 0; transform: scale(1.5); } 28% { opacity: 1; } 100% { opacity: .08; transform: scale(.72); } }
@keyframes camera-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mini-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes result-image-enter { from { opacity: 0; transform: scale(1.08); filter: blur(10px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes thankyou-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 1420px) {
  .kiosk-header { grid-template-columns: minmax(120px,.55fr) minmax(380px,2fr) minmax(220px,.9fr); }
  .theme-workspace { grid-template-columns: minmax(520px,.88fr) minmax(500px,1.12fr); }
  .detail-copy { grid-template-columns: 1fr auto; }
  .add-theme-button { min-width: 200px; }
  .cart-slot { grid-template-columns: 62px minmax(0,1fr) 56px; gap: 7px; }
  .cart-slot .cart-thumb { width: 62px; height: 42px; }
}

@media (max-aspect-ratio: 1.45/1), (max-width: 1100px) {
  html, body { overflow: auto; }
  .kiosk-shell { height: auto; min-height: 100svh; overflow: visible; }
  .screen { position: relative; height: auto; min-height: 100svh; overflow: visible; }
  .attract-hitarea { min-height: 100svh; }
  .kiosk-header { grid-template-columns: auto 1fr; padding: 18px 180px 18px 20px; }
  .kiosk-header > div { text-align: right; }
  .kiosk-header .header-guide, .kiosk-header .secure-chip, .kiosk-header > .brand-wordmark { display: none; }
  .people-screen, .theme-screen, .style-screen { grid-template-rows: auto auto auto; }
  .people-intro { grid-template-columns: 1fr; padding: 24px 20px; }
  .people-intro > p { display: none; }
  .people-grid { grid-template-columns: 1fr; padding: 0 20px 24px; }
  .people-card { min-height: 460px; }
  .people-footnote { padding: 16px 20px; text-align: center; }
  .theme-workspace { grid-template-columns: 1fr; padding: 0 20px 18px; }
  .catalog-panel { min-height: 720px; }
  .theme-detail { min-height: 640px; }
  .theme-cart { position: sticky; z-index: 30; bottom: 0; grid-template-columns: 1fr; padding: 12px 20px; }
  .cart-intro { display: none; }
  .cart-cta { min-height: 68px; }
  .style-workspace { grid-template-columns: 1fr; padding: 0 20px 18px; }
  .style-theme-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; }
  .style-theme-tab { grid-template-columns: 1fr 30px; min-height: 110px; }
  .style-theme-tab .theme-art { display: none; }
  .variant-panel { min-height: 760px; }
  .style-dock { position: sticky; z-index: 30; bottom: 0; grid-template-columns: 1fr; padding: 12px 20px; }
  .style-dock > div { display: none; }
  .pose-screen { grid-template-rows: auto auto; }
  .pose-layout, .review-layout, .pay-layout, .generating-layout, .reveal-layout { grid-template-columns: 1fr; }
  .pose-layout { padding: 32px 24px; }
  .pose-start-action { justify-self: stretch; width: 100%; padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .pose-start-action p { text-align: left; }
  .review-layout, .pay-layout, .generating-layout, .reveal-layout { padding: 24px 20px 42px; }
  .review-photos { min-height: 620px; }
  .payment-panel, .claim-panel, .delivery-panel { min-height: 680px; }
  .result-grid { min-height: 760px; }
  .capture-screen { position: fixed; inset: 0; height: 100svh; }
}

@media (max-width: 680px) {
  .kiosk-header { min-height: 82px; }
  .kiosk-header > div h1 { font-size: 27px; }
  .back-button { min-width: 92px; min-height: 56px; padding-inline: 16px; }
  .attract-edition, .journey-note { display: none; }
  .attract-copy strong { font-size: clamp(48px, 15vw, 72px); }
  .attract-copy > span { font-size: 16px; }
  .start-pulse { right: 16px; bottom: 24px; left: 16px; min-width: 0; justify-content: center; }
  .attract-brand { top: 24px; left: 22px; font-size: clamp(20px, 5.4vw, 26px); }
  .people-card { min-height: 390px; }
  .theme-carousel { min-height: 660px; }
  .theme-page { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(4, 150px); }
  .catalog-panel { min-height: auto; }
  .theme-detail { min-height: 570px; }
  .detail-copy { grid-template-columns: 1fr; }
  .add-theme-button { grid-column: 1; grid-row: auto; width: 100%; margin-top: 18px; }
  .cart-slots { grid-template-columns: repeat(4, 1fr); min-height: 68px; }
  .cart-slot { display: grid; grid-template-columns: 1fr; padding: 4px; }
  .cart-slot .cart-thumb { width: 100%; height: 58px; }
  .cart-slot .slot-copy, .cart-slot .remove-theme { display: none; }
  .style-theme-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-theme-tab { min-height: 82px; }
  .variant-heading { grid-template-columns: 1fr; gap: 7px; }
  .variant-heading > span, .variant-heading > p { display: none; }
  .variant-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 250px); }
  .variant-panel { min-height: auto; }
  .pose-hero { padding: 0; }
  .pose-cards li { grid-template-columns: 36px 78px 1fr; }
  .pose-figure { width: 100%; }
  .pose-start-action .primary-button { width: 100%; min-height: 96px; }
  .capture-copy { top: 18%; left: 22px; max-width: 86vw; }
  .capture-copy h1 { font-size: 48px; }
  .capture-header { grid-template-columns: 1fr auto; padding: 17px; }
  .capture-header .demo-badge { display: none; }
  .capture-dock { right: 16px; bottom: 20px; left: 16px; grid-template-columns: 1fr; }
  .capture-filmstrip { justify-content: center; }
  .shutter-button { width: 100%; min-width: 0; min-height: 80px; }
  .capture-dock .secondary-button { width: 100%; }
  .review-photos { min-height: 1100px; grid-template-columns: 1fr; }
  .pay-theme-list { grid-template-columns: repeat(2, 1fr); }
  .claim-row { grid-template-columns: 1fr; }
  .claim-qr-wrap { width: min(100%, 280px); justify-self: center; }
  .bonus-panel { grid-template-columns: 1fr; }
  .bonus-panel .live-strip { justify-self: start; }
  .result-grid, .result-grid.count-1, .result-grid.count-2, .result-grid.count-3 { min-height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .result-grid.count-8 {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
  }
  .result-grid.count-8 .result-card { min-height: 0; }
  .result-card { min-height: 520px; }
}

/* Localized copy: render only the language selected in the kiosk picker. */
.i18n-localized > .i18n-primary {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
  color: inherit;
  font: inherit;
}
.i18n-localized > .i18n-primary.i18n-multiline { white-space: pre-line; }
.back-button.i18n-localized,
.primary-button.i18n-localized,
.secondary-button.i18n-localized,
.text-button.i18n-localized { line-height: 1.02; }
.theme-tile > b.i18n-localized { line-height: 1.55; }

/* Landing language board.
   The on-screen keycaps mirror the booth's physical LEFT / RIGHT buttons. All
   supported languages remain visible while the current and next choices carry
   the selection and demo cues. */
.landing-language {
  position: absolute;
  z-index: 8;
  bottom: clamp(124px, 12.5vh, 148px);
  left: 50%;
  display: grid;
  width: min(1500px, calc(100% - 120px));
  gap: 9px;
  color: #fff;
  transform: translateX(-50%);
  font-family: "Photogenie Sans", var(--script-font), Inter, ui-sans-serif, system-ui, sans-serif;
}

.lang-rail-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 11px;
  text-shadow: 0 2px 15px rgba(0,0,0,.75);
}
.lang-rail-heading > span { color: var(--acid); font-size: 11px; font-weight: 950; letter-spacing: .24em; }
.lang-rail-heading > p { margin: 0; font-size: 15px; font-weight: 900; }

.lang-rail {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 16px;
}

.lang-keycap {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 104px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(155deg, rgba(255,255,255,.2), rgba(255,255,255,.07));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -8px 16px rgba(0,0,0,.24),
    0 8px 0 #14161a,
    0 18px 32px rgba(0,0,0,.46);
  cursor: pointer;
  transform: translateY(-4px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 120ms ease;
  touch-action: manipulation;
}
.lang-keycap b { font-size: 38px; line-height: 1; }
.lang-keycap small { color: rgba(255,255,255,.62); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.lang-keycap:active,
.landing-language.is-demoing .lang-keycap-next {
  border-color: var(--acid);
  background: linear-gradient(155deg, rgba(217,255,83,.36), rgba(217,255,83,.11));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -4px 10px rgba(0,0,0,.18),
    0 3px 0 #171b0d,
    0 10px 30px rgba(217,255,83,.27);
  color: var(--acid);
  transform: translateY(1px);
}

.lang-board {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 30px;
  padding: 7px;
  background: rgba(5,6,8,.68);
  box-shadow: inset 0 0 46px rgba(0,0,0,.52), 0 18px 50px rgba(0,0,0,.34);
  outline: none;
  backdrop-filter: blur(20px);
}
.landing-language.is-engaged .lang-board,
.lang-board:focus-visible {
  border-color: rgba(217,255,83,.72);
  box-shadow: inset 0 0 46px rgba(0,0,0,.52), 0 0 0 3px rgba(217,255,83,.18), 0 18px 50px rgba(0,0,0,.34);
}

.lang-board-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(96px, 9vw, 150px), 1fr));
  gap: 10px;
}
.lang-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 82px;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  padding: 10px 20px;
  background: rgba(255,255,255,.08);
  color: #fff;
  opacity: .72;
  cursor: pointer;
  transform: scale(1);
  transition: opacity 320ms var(--ease), transform 430ms var(--ease), border-color 260ms ease, background 260ms ease;
  text-align: center;
  touch-action: manipulation;
}
.lang-chip b {
  overflow: hidden;
  font-size: clamp(15px, 1.05vw, 21px);
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-chip small {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.2em;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lang-chip.is-current {
  z-index: 2;
  border-color: rgba(217,255,83,.78);
  background: linear-gradient(135deg, rgba(217,255,83,.2), rgba(255,255,255,.1));
  box-shadow: 0 0 32px rgba(217,255,83,.15);
  opacity: 1;
  transform: scale(1.06);
}
.lang-chip.is-current small { color: var(--acid); }
@media (hover: hover) and (pointer: fine) {
  .lang-chip:not(.is-current):hover { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.14); opacity: .92; }
  .lang-keycap:hover { border-color: rgba(217,255,83,.75); }
}

.lang-rail-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 52px;
}
.lang-rail-instruction {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0,0,0,.75);
}
.lang-rail-instruction strong { overflow-wrap: anywhere; font-size: clamp(13px, .92vw, 18px); line-height: 1.2; }
.lang-rail-instruction span { color: rgba(255,255,255,.56); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.lang-rail-position {
  min-width: 72px;
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.lang-rail-position b { color: #fff; font-size: 21px; }
.lang-rail-position small { font-size: inherit; }
.lang-select-hint {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 10px;
  margin: 0;
  text-align: left;
}
.lang-select-hint kbd {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(217,255,83,.72);
  border-radius: 13px;
  background: rgba(217,255,83,.16);
  color: var(--acid);
  box-shadow: 0 4px 0 rgba(15,18,8,.9);
  font: inherit;
  font-size: 16px;
}
.lang-select-hint > span { display: grid; min-width: 0; gap: 1px; }
.lang-select-hint strong { font-size: 13px; line-height: 1.12; }
.lang-select-hint small { color: rgba(255,255,255,.52); font-size: 9px; font-weight: 850; letter-spacing: .08em; }

/* The headline and take-home summary make room for the language rail at the
   bottom without losing the original full-screen campaign composition. */
.kiosk-shell[data-screen="attract"] .attract-copy { transform: translateY(clamp(-118px, -9vh, -72px)); }
.kiosk-shell[data-screen="attract"] .attract-deliverable { bottom: clamp(350px, 34vh, 400px); }
.start-pulse > span:last-child > b { display: none; }
.start-physical-label {
  font-size: clamp(17px, 1.18vw, 23px);
  font-weight: 950;
  letter-spacing: .025em;
  line-height: 1.12;
}

@keyframes lang-demo-keypress {
  0%, 100% { filter: brightness(1); }
  35%, 62% { filter: brightness(1.4); }
}
@keyframes lang-demo-target {
  0%, 100% { border-color: rgba(255,255,255,.22); box-shadow: none; opacity: .72; }
  35%, 62% { border-color: var(--acid); box-shadow: 0 0 26px rgba(217,255,83,.32); opacity: 1; }
}
.landing-language.is-demoing .lang-keycap-next { animation: lang-demo-keypress 900ms var(--ease); }
.landing-language.is-demoing .lang-chip.is-demo-target { animation: lang-demo-target 900ms var(--ease); }

/* The menu remains available throughout the journey, but the landing rail is
   the only language control shown on the attract screen. */
.kiosk-shell[data-screen="attract"] ~ .language-picker {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Persistent kiosk language control. */
.language-picker {
  position: fixed;
  z-index: 1200;
  top: 14px;
  right: 18px;
  color: #f7f5ef;
  font-family: "Photogenie Sans", var(--script-font), Inter, ui-sans-serif, system-ui, sans-serif;
}
.language-trigger {
  display: grid;
  min-width: 142px;
  min-height: 52px;
  grid-template-columns: 28px 1fr 15px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(5,6,8,.78);
  color: inherit;
  box-shadow: 0 10px 32px rgba(0,0,0,.24);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(18px);
}
.language-trigger > span:first-child { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--acid); color: #101407; font-size: 13px; font-weight: 950; }
.language-current { display: grid; line-height: 1.02; }
.language-current b { font-size: 13px; }
.language-trigger > i { width: 8px; height: 8px; border-right: 1.5px solid rgba(255,255,255,.64); border-bottom: 1.5px solid rgba(255,255,255,.64); color: transparent; font-size: 0; font-style: normal; transform: translateY(-2px) rotate(45deg); }
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(370px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 14px;
  background: rgba(10,11,14,.97);
  box-shadow: 0 26px 80px rgba(0,0,0,.48);
  backdrop-filter: blur(24px);
}
.language-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.language-menu-title { margin: 0; font-size: 17px; font-weight: 900; }
.language-close { width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.06); color: inherit; cursor: pointer; font-size: 28px; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.language-options button { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.045); color: inherit; text-align: left; cursor: pointer; }
.language-options button.is-active { border-color: rgba(217,255,83,.72); background: rgba(217,255,83,.1); }
.language-options button > span { display: grid; min-width: 0; gap: 2px; }
.language-options button b { font-size: 15px; }
.language-options button small {
  overflow: hidden;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.language-options button > i { color: var(--acid); font-style: normal; opacity: 0; }
.language-options button.is-active > i { opacity: 1; }

@media (min-width: 1101px) {
  .kiosk-header { padding-right: clamp(178px, 11vw, 224px); }
  .attract-edition { right: clamp(184px, 12vw, 230px); }
  .capture-header { padding-right: 180px; }
  .claim-screen > header { padding-right: 175px; }
}

@media (max-aspect-ratio: 1.45/1), (max-width: 1100px) {
  .landing-language { bottom: 126px; width: min(850px, calc(100% - 36px)); }
  .lang-rail { grid-template-columns: 86px minmax(0, 1fr) 86px; gap: 11px; }
  .lang-keycap { min-height: 94px; border-radius: 20px; }
  .lang-board-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kiosk-shell[data-screen="attract"] .attract-copy { transform: translateY(-130px); }
  .kiosk-shell[data-screen="attract"] .attract-deliverable { bottom: 355px; }
  .journey-note { display: none; }
}

@media (max-width: 680px) {
  .language-picker { top: 10px; right: 10px; }
  .language-trigger { min-width: 84px; min-height: 46px; grid-template-columns: 24px 1fr; padding: 6px 10px; }
  .language-trigger > span:first-child { width: 24px; height: 24px; }
  .language-trigger > i { display: none; }
  .language-menu { width: min(340px, calc(100vw - 20px)); }
  .language-options { grid-template-columns: 1fr; }
  .kiosk-header { padding-right: 104px; }
  .landing-language { bottom: 126px; width: calc(100% - 22px); gap: 6px; }
  .lang-rail-heading { gap: 7px; }
  .lang-rail-heading > span { font-size: 9px; }
  .lang-rail-heading > p { font-size: 13px; }
  .lang-rail { grid-template-columns: 58px minmax(0, 1fr) 58px; gap: 7px; }
  .lang-keycap { min-height: 82px; border-radius: 17px; padding: 6px; box-shadow: 0 5px 0 #14161a, 0 12px 24px rgba(0,0,0,.42); }
  .lang-keycap b { font-size: 27px; }
  .lang-keycap small { font-size: 7px; }
  .lang-board { border-radius: 22px; padding: 6px; }
  .lang-board-track { gap: 7px; }
  .lang-chip { min-height: 82px; border-radius: 17px; padding-inline: 9px; }
  .lang-chip b { font-size: 15px; }
  .lang-chip small { font-size: 8px; }
  .lang-rail-footer { grid-template-columns: 1fr auto; gap: 8px; min-height: 48px; }
  .lang-rail-instruction strong { font-size: 12px; }
  .lang-rail-instruction span { font-size: 7px; }
  .lang-select-hint { display: none; }
  .lang-rail-position { min-width: 52px; font-size: 11px; }
  .lang-rail-position b { font-size: 17px; }
  .kiosk-shell[data-screen="attract"] .attract-copy { transform: translateY(-178px); }
  .kiosk-shell[data-screen="attract"] .attract-copy > span { display: none; }
  .kiosk-shell[data-screen="attract"] .attract-deliverable { display: none; }
}

@media (max-width: 480px) {
  .lang-rail { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 5px; }
  .lang-keycap { padding-inline: 3px; }
  .lang-keycap b { font-size: 22px; }
  .lang-keycap small { font-size: 6px; letter-spacing: .06em; }
  .lang-board { padding: 5px; }
  .lang-board-track { gap: 5px; }
  .lang-chip { padding-inline: 4px; }
  .lang-chip small { font-size: 7px; letter-spacing: .025em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
}
