:root {
  --bone: #E7EEE8;
  --ink: #12332A;
  --butter: #FF8A6B;
  --grey: #55695F;
  --line: #CCD8CF;
  --sos: #C42B2B;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --gutter: 20px;
  --ease: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; background: var(--bone); }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bone);
  overflow: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--bone); display: flex; align-items: flex-end; justify-content: space-between; padding: var(--gutter); }
.loader-word { font-weight: 900; font-size: clamp(44px, 11vw, 180px); line-height: .82; letter-spacing: -0.05em; }
.loader-pct { font-weight: 700; font-size: clamp(18px, 2.4vw, 32px); font-variant-numeric: tabular-nums; }
html:not(.js) .loader { display: none; }

/* ---------- Stage ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; height: 100vh; height: 100svh; }

.labels { position: absolute; left: var(--gutter); top: calc(var(--gutter) + env(safe-area-inset-top)); z-index: 4; }
.label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; white-space: nowrap; }
.label .lt { display: flex; flex-direction: column; font-weight: 800; font-size: clamp(22px, 2.6vw, 38px); line-height: .9; letter-spacing: -0.03em; }
.label .lt > span, .label .ls { display: block; overflow: hidden; }
.label .ls { margin-top: 8px; font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; }
.label:not(.is-active) { visibility: hidden; }
html.anim .label { visibility: visible; }

.frames { position: absolute; inset: 0; z-index: 1; }
/* .frame is a still mask; .fi slides inside it and the photo counter-slides (curtain reveal) */
.frame { position: absolute; margin: 0; overflow: hidden; }
.fi { width: 100%; height: 100%; overflow: hidden; will-change: transform; }
.frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.shutter { position: absolute; inset: 0; z-index: 2; pointer-events: none; visibility: hidden; will-change: transform; }
html.anim .shutter { visibility: visible; }
.shutter.mint, .shutter.butter { background: var(--butter); }
.shutter.ink, .shutter.black { background: var(--ink); }
html:not(.anim) .shutter { display: none; }
/* Compositions, phone first */
.l-a { right: 0; top: 14svh; width: 80vw; height: 40svh; }
.l-b { left: 15vw; top: 15svh; width: 58vw; height: 44svh; }
.l-c { left: 0; top: 18svh; width: 84vw; height: 34svh; }
.l-d { right: 8vw; top: 21svh; width: 64vw; height: 32svh; }
html.js .frame { visibility: hidden; }
html.js .frame:first-child, html.anim .frame { visibility: visible; }

.word {
  position: absolute; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 3;
  display: flex; justify-content: center; padding: 0 var(--gutter);
  font-weight: 900; font-size: 15.2vw; line-height: .76; letter-spacing: -0.055em; white-space: nowrap;
  pointer-events: none;
}
.word .w { display: inline-block; overflow: hidden; padding: 0 .01em; margin: 0 -.01em; perspective: 900px; }
.word .wi { display: inline-block; will-change: transform; transform-origin: 50% 50% -0.3em; backface-visibility: hidden; }

.meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 4;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.meta-place { display: none; }
.meta-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.sound {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 12px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 700;
}
.sound[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] .bars i { height: 12px; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .sound[aria-pressed="true"] .bars i { animation: eq 1.1s ease-in-out infinite; }
  .sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.4s; }
  .sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.7s; }
  .sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.2s; }
  @keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
}
html:not(.anim) .sound { display: inline-flex; }
.pause { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; }
.pause svg { fill: var(--ink); }
.pause .pl { display: none; }
.pause[aria-pressed="true"] .p1, .pause[aria-pressed="true"] .p2 { display: none; }
.pause[aria-pressed="true"] .pl { display: block; }
html:not(.anim) .pause, html:not(.anim) .meta-count { display: none; }

/* ---------- Menu button ---------- */
.menu-btn {
  position: fixed; top: calc(var(--gutter) + env(safe-area-inset-top)); right: var(--gutter); z-index: 250;
  width: 72px; height: 50px; border: 0; border-radius: 10px; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  transition: transform .2s;
}
.menu-btn:active { transform: scale(.95); }
.menu-btn span { width: 34px; height: 3px; border-radius: 2px; background: var(--butter); transition: transform .45s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
.menu-btn:focus-visible { outline-color: var(--butter); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--bone); isolation: isolate;
  display: flex; flex-direction: column; padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu[hidden] { display: none; }
html.anim .menu { background: transparent; }
.blinds { position: fixed; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.blinds i { background: var(--ink); transform-origin: 50% 0; }
html:not(.anim) .blinds { display: none; }
.preview {
  position: fixed; left: 0; top: 0; z-index: 1; width: 300px; aspect-ratio: 4 / 5; overflow: hidden;
  pointer-events: none; opacity: 0; border-radius: 4px;
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 1023px) { .preview { display: none; } }
.sl { display: inline-block; overflow: hidden; vertical-align: top; }
.si { display: inline-block; will-change: transform; }
.menu-links .si { text-shadow: 0 .86em 0 var(--butter); }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--bone); }
.menu-links { list-style: none; padding: 0; }
.menu-links a {
  display: flex; align-items: baseline; gap: 14px; text-decoration: none;
  font-weight: 900; font-size: clamp(64px, 19vw, 220px); line-height: .86; letter-spacing: -0.05em;
  transition: color .25s;
}
.menu-links a:hover, .menu-links a:focus-visible { color: var(--butter); }
.menu-links a:focus-visible { outline-color: var(--butter); }
.menu-links li { overflow: hidden; }
.menu-info { margin-top: auto; padding-top: 40px; display: grid; gap: 18px; font-size: 15px; color: #B9B9B0; }
.menu-info strong { color: var(--bone); font-weight: 700; }
.menu-info a { color: var(--butter); text-underline-offset: 3px; }
.menu-note { margin-top: 28px; font-size: 12px; color: #7D7D75; }
.menu-note a { color: #B9B9B0; }

/* ---------- Pages ---------- */
.page {
  position: fixed; inset: 0; z-index: 150; background: var(--bone);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.page[hidden] { display: none; }
.page-inner { padding: calc(110px + env(safe-area-inset-top)) var(--gutter) 120px; max-width: 1440px; margin: 0 auto; }
.page-title { font-weight: 900; font-size: clamp(76px, 22vw, 300px); line-height: .8; letter-spacing: -0.055em; outline: none; }
.page-lead { margin-top: 24px; max-width: 36ch; font-size: 18px; font-weight: 500; }
.page-statement { margin-top: 28px; max-width: 18ch; font-weight: 800; font-size: clamp(30px, 6vw, 72px); line-height: .98; letter-spacing: -0.035em; }
.page-img { margin: 44px calc(var(--gutter) * -1); overflow: hidden; aspect-ratio: 16 / 10; background: #DADAD0; }
.page-img { position: relative; }
.pi { width: 100%; height: 100%; overflow: hidden; }
.page-img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.page-title .sl { line-height: .8; }
.reveal { will-change: transform, opacity; }
.page-close {
  position: fixed; left: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 160;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bone);
  font-weight: 700; font-size: 15px;
}

.menu-groups { display: grid; gap: 40px; }
.mg h3 { font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.mg ul { list-style: none; padding: 0; }
.mg li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mg li span { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.mg li em { grid-column: 1; font-style: normal; color: var(--grey); font-size: 15px; }
.mg li b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.story-cols { display: grid; gap: 20px; font-size: 18px; max-width: 70ch; }
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 2px solid var(--ink); padding-top: 20px; }
.facts div { display: flex; flex-direction: column-reverse; gap: 6px; }
.facts dt { font-size: 13px; color: var(--grey); }
.facts dd { font-weight: 900; font-size: clamp(30px, 7vw, 80px); line-height: .9; letter-spacing: -0.04em; }

.visit-grid { margin-top: 44px; display: grid; gap: 28px; font-size: 17px; }
.visit-grid h3 { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.visit-grid a { text-underline-offset: 3px; }
.pill { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bone); text-decoration: none; font-weight: 700; font-size: 15px; }
.amenities { list-style: none; padding: 0; display: grid; gap: 0; }
.amenities li { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line); }
.amenities strong { font-weight: 800; }
.amenities span { color: var(--grey); }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .meta { grid-template-columns: auto 1fr auto auto; gap: 20px; }
  .meta-place { display: block; }
  .menu-groups { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
  .story-cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .amenities { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .menu-btn { width: 88px; height: 58px; }
  .l-a { right: 0; top: 0; width: 46vw; height: 60svh; }
  .l-b { left: 38vw; top: 9svh; width: 24vw; height: 52svh; }
  .l-c { left: 0; top: 16svh; width: 40vw; height: 42svh; }
  .l-d { right: 6vw; top: 8svh; width: 34vw; height: 46svh; }
  .word { font-size: min(15.6vw, 36svh); bottom: calc(60px + env(safe-area-inset-bottom)); justify-content: flex-start; }
  .menu { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 40px; padding-top: 120px; }
  .menu-links { flex: 1 1 60%; }
  .menu-info { flex: 0 0 300px; margin: 0; }
  .menu-note { flex: 1 1 100%; }
  .page-img { margin: 64px 0; border-radius: 0; }
  .page-close { left: auto; right: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-btn span { transition: none; }
}

/* ---------- Token chip ---------- */
.token {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 14px 4px 4px; justify-self: start;
  border-radius: 999px; background: var(--ink); color: var(--bone); text-decoration: none; font-size: 13px; font-weight: 600;
}
.token-num {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: var(--butter); color: var(--ink); font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums;
}
.token.closed .token-num { background: #2A3A55; color: #9AA8BC; }
.token-text { max-width: 22ch; line-height: 1.2; }

/* ---------- Menu extras ---------- */
.menu-info .sos { color: #F2A7A7; }
.menu-info .sos a { color: #FFC9C9; font-weight: 800; }

/* ---------- Booking form ---------- */
.book-form { margin-top: 44px; max-width: 760px; }
.step { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; padding: 0; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bone); font-size: 14px; }
.visit-types { display: grid; gap: 10px; }
.vt { position: relative; }
.vt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vt span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 16px 18px; min-height: 68px; border: 2px solid var(--line); background: #fff; }
.vt b { font-weight: 800; }
.vt em { font-style: normal; font-weight: 800; grid-row: 1 / span 2; grid-column: 2; }
.vt small { color: var(--grey); font-size: 14px; }
.vt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.vt input:checked + span small { color: #B9C4D2; }
.vt input:focus-visible + span { outline: 3px solid var(--butter); outline-offset: 2px; }
.dates { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 72px; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); font: inherit; color: var(--ink); cursor: pointer; }
.date .dow { font-size: 13px; color: var(--grey); }
.date .dom { font-size: 24px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.date .mon { font-size: 12px; color: var(--grey); }
.date[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.date[aria-checked="true"] .dow, .date[aria-checked="true"] .mon { color: #B9C4D2; }
.date[disabled] { opacity: .4; cursor: not-allowed; }
.session + .session { margin-top: 18px; }
.session h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; display: flex; justify-content: space-between; }
.session h4 span { font-weight: 500; color: var(--grey); }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { min-height: 46px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"] { background: var(--butter); border-color: var(--ink); }
.slot:disabled { background: transparent; color: #A6B0BE; text-decoration: line-through; cursor: not-allowed; }
.slots-empty { padding: 16px; background: #fff; color: var(--grey); }
.field-row { display: grid; grid-template-columns: 1fr 100px; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: 15px; }
.field .opt { font-weight: 500; color: var(--grey); }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 0; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--sos); }
.error { color: var(--sos); font-size: 14px; font-weight: 600; }
.error:empty { display: none; }
.summary { padding: 16px 18px; background: #fff; border-left: 4px solid var(--butter); margin-bottom: 16px; font-size: 15px; }
.summary:empty { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.wide { width: 100%; }
.note, .sos-note { margin-top: 16px; font-size: 14px; color: var(--grey); }
.note a, .sos-note a { color: var(--sos); font-weight: 800; }
.done { margin-top: 44px; max-width: 760px; padding: 28px var(--gutter); background: #fff; border-top: 6px solid var(--butter); }
.done:focus { outline: none; }
.done h3 { font-weight: 900; font-size: 28px; letter-spacing: -0.03em; }
.done p { margin-top: 8px; color: var(--grey); }
.done-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 20px 0; }
.done-list dt { color: var(--grey); }
.done-list dd { font-weight: 800; }
.done-actions { display: grid; gap: 10px; }
.text-btn { background: none; border: 0; padding: 12px 0; min-height: 44px; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); cursor: pointer; }
.list-title { margin-top: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mg li { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .visit-types { grid-template-columns: repeat(3, 1fr); }
  .vt span { grid-template-columns: 1fr; height: 100%; }
  .vt em { grid-row: auto; grid-column: auto; }
  .slot-grid { grid-template-columns: repeat(6, 1fr); }
  .done-actions { grid-template-columns: auto auto; justify-content: start; }
  .menu-groups { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 719px) {
  .meta-place { display: none; }
}

/* Clinic: the nine-letter wordmark needs a little more room above the token chip on phones */
@media (max-width: 1023px) {
  .word { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .l-a { top: 15svh; height: 48svh; }
  .l-b { top: 15svh; height: 52svh; }
  .l-c { top: 18svh; height: 44svh; }
  .l-d { top: 19svh; height: 42svh; }
}

/* ---------- Clinic identity: serif display, sage / forest / coral ---------- */
.shutter.coral { background: var(--butter); }
.shutter.forest { background: var(--ink); }
.word, .loader-word, .label .lt, .menu-links a, .page-title, .page-statement, .facts dd, .done h3, .step legend {
  font-family: var(--display); font-variation-settings: "opsz" 144;
}
.word { font-weight: 700; letter-spacing: -0.04em; font-style: italic; }
.label .lt { font-weight: 700; letter-spacing: -0.02em; }
.menu-links a, .page-title { font-weight: 700; font-style: italic; letter-spacing: -0.04em; }
.token-num { color: #fff; }
.token.closed .token-num { background: #2E5546; color: #B8CCC1; }
.slot[aria-pressed="true"] { color: #fff; }

/* =========================================================
   Clinic v3: deep blue, Anton display, tickers + camera roll
   ========================================================= */
:root {
  --bone: #0B2A6F;          /* page: deep blue */
  --ink: #F3EFE6;           /* text: cream */
  --butter: #8CC8FF;        /* accent: sky */
  --grey: #B9C6E4;
  --line: rgba(243, 239, 230, .18);
  --font: "Inter", system-ui, sans-serif;
  --display: "Anton", Impact, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
body { color: var(--ink); background: var(--bone); }
.word, .loader-word, .label .lt, .menu-links a, .page-title, .page-statement, .facts dd, .done h3, .step legend, .hello-name, .sticker b {
  font-family: var(--display); font-style: normal; font-weight: 400; font-variation-settings: normal; letter-spacing: 0;
}
.loader { background: var(--bone); color: var(--ink); }
.menu, html.anim .menu .blinds i { background: #061A47; }
.blinds i { background: #061A47; }
.menu-btn { background: var(--ink); }
.menu-btn span { background: var(--bone); }
.menu-links a:hover { color: var(--butter); }
.menu-links .si { text-shadow: 0 .86em 0 var(--butter); }
.page { background: #F3EFE6; color: #0B2A6F; }
.page { --ink: #0B2A6F; --line: #D6DCE8; --grey: #4F5E80; }
.page-title { color: #0B2A6F; }

/* Stage */
.hello { position: absolute; left: var(--gutter); top: calc(var(--gutter) + env(safe-area-inset-top)); z-index: 5; }
.hello-name { font-size: clamp(26px, 3.2vw, 46px); line-height: .9; text-transform: uppercase; }
.hello-sub { margin-top: 6px; font-family: var(--serif); font-size: clamp(17px, 1.6vw, 22px); color: var(--grey); }
.hello-sub em { color: var(--butter); }

.tickers { position: absolute; left: -10vw; right: -10vw; top: 52%; z-index: 2; pointer-events: none; }
.ticker { overflow: hidden; white-space: nowrap; padding: 10px 0; font-family: var(--display); font-size: clamp(20px, 3vw, 40px); letter-spacing: .01em; }
.ticker.t1 { background: var(--butter); color: #0B2A6F; transform: rotate(-4deg); }
.ticker.t2 { background: var(--ink); color: #0B2A6F; transform: rotate(3deg) translateY(-14px); }
.track { display: inline-flex; will-change: transform; }
.track span { padding-right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .t1 .track { animation: tick 38s linear infinite; }
  .t2 .track { animation: tick 46s linear infinite reverse; }
  @keyframes tick { to { transform: translateX(-50%); } }
  html.paused .track, html.paused .sticker { animation-play-state: paused; }
}

.roll { position: absolute; left: 0; right: 0; top: 17svh; z-index: 3; overflow: hidden; touch-action: pan-y; cursor: grab; padding: 18px 0 30px; }
.roll:active { cursor: grabbing; }
.roll-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.card { flex: none; width: min(56vw, 300px); margin: 0; padding: 8px 8px 12px; background: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.card:nth-child(3n+1) { transform: rotate(-3deg); }
.card:nth-child(3n+2) { transform: rotate(2.5deg) translateY(16px); }
.card:nth-child(3n) { transform: rotate(-1deg) translateY(-6px); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; pointer-events: none; user-select: none; }
.card figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: #0B2A6F; display: flex; gap: 10px; }
.card figcaption span { opacity: .5; }

.stickers { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sticker {
  position: absolute; width: clamp(86px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  background: var(--butter); color: #0B2A6F; box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.sticker b { font-size: clamp(28px, 3.2vw, 44px); line-height: .9; font-weight: 400; }
.s1 { right: 6vw; top: 13svh; }
.s2 { left: 4vw; top: 47svh; background: var(--ink); }
.s3 { right: 10vw; top: 60svh; background: #FF8A6B; }
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: wobble 6s ease-in-out infinite; }
  .s2 { animation-delay: -2s; } .s3 { animation-delay: -4s; }
  @keyframes wobble { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(12deg) scale(1.06); } }
}

.word { color: var(--ink); font-size: 24vw; line-height: .8; letter-spacing: -0.01em; z-index: 3; bottom: calc(70px + env(safe-area-inset-bottom)); }
.meta-place { font-family: var(--mono); font-size: 12px; color: var(--grey); }
.pause { border-color: var(--ink); }
.pause svg { fill: var(--ink); }
.token { background: var(--ink); color: #0B2A6F; }
.token-num { background: #0B2A6F; color: var(--butter); }
.labels, .frames { display: none; }

@media (min-width: 1024px) {
  .word { font-size: min(21vw, 46svh); bottom: calc(54px + env(safe-area-inset-bottom)); }
  .roll { top: 11svh; }
  .card { width: min(20vw, 300px); }
  .tickers { top: 50%; }
}
.token.closed .token-num { background: #0B2A6F; color: #8CC8FF; }
