/* Concept screens: the interactive diorama, film overlays and phone mockups share these styles. */
html, body { height: 100%; }
body.stage-body {
  margin: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #fbf8f2 0%, #f1ebe0 58%, #e6ddcd 100%);
}
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
#scene:active { cursor: grabbing; }
.layer { position: fixed; inset: 0; pointer-events: none; }
.layer > * { pointer-events: auto; }

/* Place chips */
.chip {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(253, 252, 249, 0.94); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft);
  font: 600 14px/1 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s;
  will-change: transform, opacity;
}
.chip::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 1px; height: 7px; background: var(--line-strong);
}
.chip .num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 600 12px/1 var(--font-mono); font-style: normal;
}
.chip-arch, .chip-cafe { padding-left: 12px; font-weight: 500; font-size: 13px; }
.chip .status { display: none; font: 500 12px/1 var(--font-mono); letter-spacing: .02em; opacity: .9; }
.chip.after .status { display: inline; }
.chip.after.chip-colosseum, .chip.after.chip-forum { background: var(--terracotta); color: #fff; border-color: var(--terracotta-deep); }
.chip.after.chip-colosseum .num, .chip.after.chip-forum .num { background: #fff; color: var(--terracotta-deep); }
.chip.after.chip-colosseum .num, .chip.after.chip-forum .num { font-size: 0; }
.chip.after.chip-colosseum .num::before, .chip.after.chip-forum .num::before { content: "✓"; font-size: 13px; }
.chip.after.chip-palatine { background: rgba(253, 252, 249, 0.96); border: 1.5px dashed var(--ink-2); color: var(--ink); }
.chip.after.chip-palatine .num { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--ink-2); }
.chip.after.chip-cafe { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.after.chip-cafe::before { content: "+"; font: 600 14px/1 var(--font-mono); margin-right: -2px; }
.chip.after.chip-arch { display: none; }
.chip.selected { box-shadow: 0 0 0 3px rgba(217, 105, 62, 0.35), var(--shadow-soft); }

/* Interactive HUD */
.hud-tl { position: fixed; top: 20px; left: 20px; display: grid; gap: 14px; max-width: min(420px, calc(100vw - 40px)); }
.hud-brand { display: flex; align-items: center; gap: 12px; }
.title-card {
  background: rgba(253, 252, 249, 0.92); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px 18px; box-shadow: var(--shadow-soft); backdrop-filter: blur(6px);
}
.title-card .eyebrow { margin-bottom: 6px; }
.title-card h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.title-card h1 .dnum { color: var(--terracotta); margin-right: 10px; font-variation-settings: "SOFT" 100; }
.title-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.hud-tr { position: fixed; top: 20px; right: 20px; display: flex; gap: 10px; align-items: center; }
.seg {
  display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(253, 252, 249, 0.92);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.seg button {
  border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 var(--font-body); color: var(--ink-2); transition: background .3s, color .3s;
}
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg button.paint[aria-pressed="true"] { background: var(--terracotta); }
.ghost-btn {
  border: 1px solid var(--line); background: rgba(253, 252, 249, 0.92); border-radius: 999px; padding: 9px 14px;
  font: 600 13px/1 var(--font-mono); color: var(--ink-2); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-soft);
}

.daybar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(253, 252, 249, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.daybar button {
  border: 0; background: transparent; width: 46px; height: 38px; border-radius: 999px;
  font: 500 15px/1 var(--font-display); color: var(--muted); cursor: not-allowed;
}
.daybar button.on { background: var(--navy); color: #fff; cursor: default; }
.daybar .tip { padding: 0 14px 0 8px; font: 500 12px/1.2 var(--font-mono); color: var(--muted); white-space: nowrap; }

.sheet {
  position: fixed; left: 20px; bottom: 20px; width: min(380px, calc(100vw - 40px));
  background: rgba(253, 252, 249, 0.96); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-lift);
  transform: translateY(16px); opacity: 0; transition: transform .35s, opacity .35s; pointer-events: none;
}
.sheet.open { transform: none; opacity: 1; pointer-events: auto; }
.sheet .eyebrow { color: var(--terracotta-deep); }
.sheet h2 { margin: 4px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.sheet p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.sheet .close { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.memo { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.memo.show { display: block; }
.memo .row { display: flex; align-items: center; gap: 10px; }
.memo .play { width: 30px; height: 30px; border-radius: 50%; background: var(--terracotta); display: grid; place-items: center; flex: none; }
.memo .play::before { content: ""; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.memo q { quotes: none; font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.memo .meta { margin-top: 6px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }

.note { position: fixed; right: 20px; bottom: 26px; text-align: right; font: 500 11.5px/1.5 var(--font-mono); color: var(--muted); letter-spacing: .03em; }
.hint { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); font: 500 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; transition: opacity .6s; pointer-events: none; }

@media (max-width: 760px) {
  .hud-tl { top: 12px; left: 12px; right: 12px; max-width: none; }
  .title-card { padding: 12px 14px; }
  .title-card h1 { font-size: 20px; }
  .title-card p { font-size: 12.5px; }
  .hud-tr { top: auto; bottom: 74px; right: 50%; transform: translateX(50%); }
  .daybar { bottom: 14px; }
  .daybar .tip { display: none; }
  .daybar button { width: 40px; }
  .sheet { left: 12px; right: 12px; width: auto; bottom: 128px; }
  .note { display: none; }
  .hint { display: none; }
  .chip.after .status { display: none; }
  .chip { font-size: 12.5px; padding: 5px 10px 5px 5px; }
  .chip .num { width: 19px; height: 19px; font-size: 11px; }
}

/* Korean text falls back from the mono face with wide spaces; use the sans face instead. */
html:lang(ko) .pill, html:lang(ko) .chip .status, html:lang(ko) .f-caption .n, html:lang(ko) .daybar .tip, html:lang(ko) .note,
html:lang(ko) .hint, html:lang(ko) .meta, html:lang(ko) .side-copy .n, html:lang(ko) .poster-note, html:lang(ko) .tl .b,
html:lang(ko) .today .ticket, html:lang(ko) .rec .meta, html:lang(ko) .voice-pin .meta, html:lang(ko) .memo .meta { font-family: var(--font-body); letter-spacing: 0.01em; word-spacing: normal; }

/* ---------------------------------------------------------------- film overlays (1920×1080) */
.film { --ease: cubic-bezier(.2, .7, .2, 1); }
.film .chip, .film .chip * { transition: none !important; }
.f-scrim { position: fixed; left: 0; top: 0; width: 1100px; height: 420px; pointer-events: none;
  background: radial-gradient(100% 100% at 0% 0%, rgba(244, 239, 230, 0.96) 0%, rgba(244, 239, 230, 0.86) 38%, rgba(244, 239, 230, 0) 72%); }
.film .chip { font-size: 17px; padding: 8px 15px 8px 8px; }
.film .chip .num { width: 26px; height: 26px; font-size: 14px; }
.film .chip .status { font-size: 14px; }
.film .chip-arch, .film .chip-cafe { padding-left: 15px; font-size: 15px; }

.f-caption { position: fixed; left: 72px; top: 64px; display: grid; gap: 6px; }
.f-caption .n { font: 500 22px/1 var(--font-mono); color: var(--terracotta-deep); letter-spacing: .12em; }
.f-caption h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 54px; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
.f-caption p { margin: 4px 0 0; font-size: 21px; color: var(--ink-2); max-width: 560px; line-height: 1.5; }

.f-mark { position: fixed; right: 64px; bottom: 52px; }
.f-mark .pill { font-size: 13px; padding: 7px 14px; background: rgba(253, 252, 249, 0.85); }

.f-card {
  position: fixed; right: 72px; top: 150px; width: 430px; padding: 24px 26px;
  background: rgba(253, 252, 249, 0.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lift);
}
.f-card .eyebrow { font-size: 13px; margin-bottom: 4px; }
.f-card h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.f-day { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 18px; }
.f-day .d { font: 500 20px/1 var(--font-display); color: var(--muted); }
.f-day.on .d { color: var(--terracotta); }
.f-day.on b { font-weight: 600; }
.f-day small { display: block; font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.f-day .old { text-decoration: line-through; color: var(--muted); }
.f-day .new { color: var(--terracotta-deep); font-weight: 600; }
.f-day.flash { background: linear-gradient(90deg, rgba(217,105,62,.12), transparent); }

.f-bubble {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 22px;
  background: var(--navy); color: #fff; font-size: 23px; box-shadow: var(--shadow-lift); white-space: nowrap;
}
.f-bubble .av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.f-bubble .av svg { width: 24px; height: 24px; }

.f-toast {
  position: fixed; left: 50%; top: 64px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px;
  background: var(--terracotta); color: #fff; font-size: 22px; font-weight: 600; box-shadow: var(--shadow-lift);
}
.f-toast .tick { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--terracotta-deep); display: grid; place-items: center; font-size: 18px; }

.voice-pin {
  position: absolute; left: 0; top: 0; display: grid; gap: 8px; padding: 14px 18px; min-width: 330px;
  background: rgba(253, 252, 249, 0.97); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift);
}
.voice-pin::after { content: ""; position: absolute; left: 34px; bottom: -9px; width: 16px; height: 16px; background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.voice-pin .row { display: flex; align-items: center; gap: 12px; }
.voice-pin .play { width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); display: grid; place-items: center; flex: none; }
.voice-pin .play::before { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 4px; }
.wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.wave i { display: block; width: 4px; border-radius: 2px; background: var(--terracotta); }
.voice-pin q { quotes: none; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.voice-pin .meta { font: 500 14px/1 var(--font-mono); color: var(--muted); }

/* ---------------------------------------------------------------- phone mockups */
.phone-stage { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.phone-stage.solo { grid-template-columns: 1fr; place-items: center; background: transparent; }
.phone-wrap { display: grid; place-items: center; }
.phone {
  position: relative; width: 390px; height: 844px; border-radius: 58px; padding: 13px;
  background: #1b2228; box-shadow: 0 0 0 2px #3a444c inset, 0 40px 90px rgba(27, 39, 48, 0.28), 0 8px 20px rgba(27, 39, 48, 0.14);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--paper); }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #0d1114; z-index: 5; }
.status-bar { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 16px 30px 0; font: 600 16px/1 var(--font-body); color: var(--ink); }
.status-bar .icons { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; }
.app-head .brand b { font-size: 20px; }
.app-head .brand svg { width: 24px; height: 24px; }
.app-body { padding: 0 16px; display: grid; gap: 12px; }

.msg { max-width: 82%; padding: 12px 15px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.msg.me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { justify-self: start; background: var(--plaster); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: currentColor; vertical-align: -3px; margin-left: 1px; }
.shimmer { background: linear-gradient(90deg, var(--muted) 0%, var(--ink) 40%, var(--muted) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; }

.trip-card { background: var(--plaster); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.trip-card .thumb { height: 150px; background-size: cover; background-position: 50% 52%; }
.trip-card .body { padding: 12px 14px 14px; }
.trip-card h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.trip-card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.trip-card .rows { margin-top: 8px; display: grid; gap: 0; }
.trip-card .r { display: grid; grid-template-columns: 30px 1fr; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.trip-card .r .d { font: 500 14px/1.4 var(--font-display); color: var(--muted); }
.trip-card .r.on .d { color: var(--terracotta); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font-size: 12px; padding: 5px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }

.offline { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 9px 12px; border-radius: 12px; background: var(--paper-2); font-size: 13.5px; color: var(--ink-2); }
.offline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cypress); }
.today { background: var(--plaster); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-soft); }
.today .eyebrow { font-size: 11.5px; }
.today h4 { margin: 6px 0 2px; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.today .addr { font-size: 13.5px; color: var(--muted); }
.today .line { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.today .ticket { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 500 12.5px/1 var(--font-mono); color: var(--cypress); }
.today .mini { margin-top: 12px; height: 118px; border-radius: 12px; background-size: cover; background-position: 62% 50%; border: 1px solid var(--line); }
.big-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big-btn { position: relative; overflow: hidden; height: 92px; border-radius: 20px; border: 1.5px solid var(--ink); background: var(--plaster); display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 16px; color: var(--ink); }
.big-btn .ic { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.big-btn.done { background: var(--terracotta); border-color: var(--terracotta-deep); color: #fff; }
.big-btn .ripple { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: rgba(217, 105, 62, 0.35); }
.rec { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 34px; background: var(--plaster); border-top-left-radius: 26px; border-top-right-radius: 26px; box-shadow: 0 -12px 40px rgba(27,39,48,.16); }
.rec .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--paper-3); margin: 0 auto 12px; }
.rec .top { display: flex; justify-content: space-between; align-items: center; font: 600 14px/1 var(--font-body); }
.rec .top .live { display: inline-flex; align-items: center; gap: 8px; color: var(--terracotta-deep); }
.rec .top .live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); }
.rec .wave { height: 54px; margin: 14px 0; justify-content: center; }
.rec .wave i { width: 5px; }
.rec q { quotes: none; display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.rec .meta { margin-top: 6px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }

.memory .hero { height: 230px; border-radius: 18px; background-size: cover; background-position: 50% 50%; border: 1px solid var(--line); position: relative; }
.memory .hero .tag { position: absolute; left: 10px; top: 10px; }
.tl { display: grid; gap: 0; background: var(--plaster); border: 1px solid var(--line); border-radius: 18px; padding: 4px 14px; }
.tl .it { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.tl .it:first-child { border-top: 0; }
.tl .t { font: 500 13px/1 var(--font-mono); color: var(--muted); }
.tl .b { font: 500 12px/1 var(--font-mono); padding: 5px 8px; border-radius: 999px; }
.tl .b.v { background: var(--terracotta); color: #fff; }
.tl .b.m { border: 1.2px dashed var(--ink-2); color: var(--ink-2); }
.tl .b.u { background: var(--navy); color: #fff; }

.side-copy { padding-right: 120px; display: grid; gap: 14px; }
.side-copy .n { font: 500 22px/1 var(--font-mono); letter-spacing: .12em; color: var(--terracotta-deep); }
.side-copy h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 1.1; letter-spacing: -0.025em; }
.side-copy p { margin: 0; font-size: 24px; line-height: 1.55; color: var(--ink-2); max-width: 620px; }

.poster {
  position: fixed; right: 150px; top: 50%; width: 400px; padding: 22px; background: #fff;
  border: 14px solid #2a2622; box-shadow: var(--shadow-lift); transform: translateY(-50%) rotate(1.5deg);
}
.poster .img { height: 380px; background-size: cover; background-position: 50% 50%; }
.poster .cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.poster .cap b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.poster .cap span { font: 500 12px/1 var(--font-mono); color: var(--muted); }
.poster-note { position: fixed; right: 150px; bottom: 120px; font: 500 15px/1 var(--font-mono); color: var(--muted); }

.endcard { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; }
.endcard .inner { display: grid; justify-items: center; gap: 22px; }
.endcard .logo { width: 120px; height: 120px; }
.endcard .word { font-family: "Fraunces", serif; font-weight: 600; font-size: 92px; letter-spacing: -0.03em; line-height: 1; font-variation-settings: "SOFT" 100, "WONK" 1; }
.endcard .tag { font-family: var(--font-display); font-weight: 500; font-size: 36px; color: var(--ink-2); }
.endcard .url { font: 500 20px/1 var(--font-mono); letter-spacing: .1em; color: var(--muted); }
