:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    --ink: #F7F5F2;
    --muted: rgba(247, 245, 242, .62);
    --hair: rgba(247, 245, 242, .14);
    --ambient: #B48397;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { background: #E9E6EF; font-family: "Archivo", system-ui, sans-serif; padding: 28px 16px 60px; color: #1d1a22; }
  .stage { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: flex-start; }
  .notes { max-width: 330px; font-size: 14px; line-height: 1.5; color: #4b4556; }
  .notes h1 { font-size: 22px; color: #1d1a22; margin: 0 0 10px; font-stretch: 112%; font-weight: 800; }
  .notes li { margin-bottom: 7px; }

  /* ---------- phone ---------- */
  .phone { width: 390px; max-width: 100%; height: 820px; border-radius: 50px; border: 11px solid #050506;
    box-shadow: 0 40px 80px -30px rgba(30, 10, 50, .5); position: relative; overflow: hidden; isolation: isolate;
    background: color-mix(in oklab, var(--ambient) 30%, #09080C); transition: background-color 700ms ease; color: var(--ink); }
  .screen { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 110px; }
  .screen::-webkit-scrollbar { display: none; }
  /* Apple Music style backdrop: tiny pre-blurred copy of the focused cover, upscaled, slowly drifting */
  .bgart { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .bgart img { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; opacity: 0;
    transition: opacity 900ms ease; animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
  .bgart img.on { opacity: 1; }
  .bgart::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(9,8,12,.05) 0%, rgba(9,8,12,.22) 45%, rgba(9,8,12,.42) 100%); }
  @keyframes drift { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.18) rotate(7deg) translate(3%, -3%); } }

  header.bar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 14px; }
  .mark { font-weight: 900; font-stretch: 118%; font-size: 19px; letter-spacing: -.01em; }
  .where-small { font-size: 13px; color: var(--muted); }

  /* ---------- carousel ---------- */
  .rail { position: relative; z-index: 2; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    --capw: clamp(176px, 27svh, 236px);   /* cover shrinks on short screens so the title + blurb stay above the Book bar */
    padding: 6px calc((100% - var(--capw)) / 2) 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rail::-webkit-scrollbar { display: none; }
  .cap { flex: none; width: var(--capw); aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; scroll-snap-align: center;
    position: relative; border: 0; padding: 0; background: #111; cursor: pointer;
    transform: scale(.9); opacity: .55; transition: transform 420ms var(--ease-out), opacity 420ms ease, box-shadow 420ms ease; }
  .cap.on { transform: scale(1); opacity: 1; box-shadow: 0 26px 50px -18px rgba(0,0,0,.7); }
  .cap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .count { position: relative; z-index: 2; text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 0; font-variant-numeric: tabular-nums; }

  .info { position: relative; z-index: 2; padding: 16px 22px 6px; min-height: 196px; }
  .info h2 { margin: 0; font-size: 32px; line-height: 1.02; font-weight: 850; font-stretch: 108%; letter-spacing: -.02em; }
  .info .meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
  .info .blurb { margin: 10px 0 18px; font-size: 16px; line-height: 1.45; max-width: 34ch; }
  .age { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 5px; font-size: 12px; font-weight: 800; color: #FFD08A; }
  .swap { animation: swap 360ms var(--ease-out); }
  @keyframes swap { from { opacity: 0; transform: translateY(6px); } }

  .pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
    padding: 14px 22px; border-radius: 999px; font: 700 16px "Archivo"; background: var(--ink); color: #0B0A0E;
    transition: transform 160ms var(--ease-out), background 200ms ease; -webkit-tap-highlight-color: transparent; }
  .pill:active { transform: scale(.97); }
  .pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  section { position: relative; z-index: 2; padding: 34px 22px 6px; }
  section h3 { margin: 0 0 14px; font-size: 24px; font-weight: 850; font-stretch: 108%; letter-spacing: -.015em; }
  .sub { color: var(--muted); margin: -6px 0 16px; font-size: 14px; }

  .rates { width: 100%; border-collapse: collapse; font-size: 16px; }
  .rates th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 0 0 8px; }
  .rates th:not(:first-child), .rates td:not(:first-child) { text-align: right; }
  .rates td { padding: 13px 0; border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
  .rates td:first-child { font-weight: 700; }

  /* ---------- wishlist ---------- */
  .search { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(255,255,255,.06);
    color: var(--ink); font: 500 16px "Archivo"; margin-bottom: 8px; }
  .search::placeholder { color: var(--muted); }
  .wish { list-style: none; margin: 0; padding: 0; }
  .wish li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .wish img { width: 92px; height: 43px; object-fit: cover; border-radius: 6px; display: block; background: #222; }
  .wish .nm { font-weight: 650; font-size: 15px; line-height: 1.2; }
  .wish .votes { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; font-variant-numeric: tabular-nums; }
  .want { border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; font: 700 13px "Archivo"; color: var(--ink);
    background: rgba(255,255,255,.1); transition: transform 160ms var(--ease-out), background 200ms ease, color 200ms ease; min-width: 76px; }
  .want:active { transform: scale(.95); }
  .want[aria-pressed="true"] { background: var(--ink); color: #0B0A0E; }
  .addrow { display: flex; gap: 8px; margin-top: 12px; align-items: center; color: var(--muted); font-size: 14px; }
  .addrow button { flex: none; }
  .addrow[hidden] { display: none; }
  .placeholder-art { width: 92px; height: 43px; border-radius: 6px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 11px; color: var(--muted); }

  .find p { margin: 0 0 6px; }
  .find .row { display: flex; gap: 10px; margin-top: 16px; }
  .find .row .pill { flex: 1; padding: 13px 10px; font-size: 14px; text-decoration: none; }
  .wa-btn { white-space: nowrap; }
  .wa-ico { width: 18px; height: 18px; flex: none; }
  footer { position: relative; z-index: 2; padding: 30px 22px 20px; color: var(--muted); font-size: 12px; }

  /* sticky CTA */
  .dock { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 16px 22px 26px; transition: transform 320ms var(--ease-out), opacity 240ms ease;
    background: rgba(9,8,12,.5); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px); mask-image: linear-gradient(180deg, transparent 0, #000 22px);
    padding-top: 26px !important; }
  /* short fade above the bar so text slides under it instead of being cut */

  .dock { display: flex; justify-content: center; }
  .dock { padding-top: 6px; }
  .dock .pill { width: auto; height: 60px; padding: 0 34px; border-radius: 999px; flex-direction: column; gap: 2px; font: 850 21px "Archivo"; font-stretch: 108%; letter-spacing: -.01em;
    box-shadow: 0 10px 30px -8px color-mix(in oklab, var(--ambient) 70%, transparent); }
  .dock .pill small { font: 600 12.5px "Archivo"; letter-spacing: 0; color: rgba(11,10,14,.55); }
  .dock .pill b { font: inherit; display: block; }

  /* ---------- booking takeover ---------- */
  .book { position: absolute; inset: 0; z-index: 10; background: #F7F5F2; color: #0B0A0E; display: flex; flex-direction: column; }
  .book[hidden] { display: none; }
  .book-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 6px; }
  .icon { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(11,10,14,.07); cursor: pointer; display: grid; place-items: center;
    transition: transform 160ms var(--ease-out), opacity 200ms ease; }
  .icon:active { transform: scale(.92); }
  .icon[disabled] { opacity: 0; pointer-events: none; }
  .step-no { font-size: 13px; color: rgba(11,10,14,.55); font-variant-numeric: tabular-nums; }

  .ticket { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 22px 0; min-height: 40px; }
  .ticket span { display: inline-block; padding: 6px 11px; border-radius: 999px; background: #0B0A0E; color: #F7F5F2; font-size: 13px; font-weight: 650; }

  .q { flex: 1; overflow-y: auto; padding: 18px 22px 120px; view-transition-name: question; scrollbar-width: none; }
  .q::-webkit-scrollbar { display: none; }
  .q h4 { margin: 0 0 22px; font-size: 46px; line-height: .98; font-weight: 900; font-stretch: 112%; letter-spacing: -.035em; }
  .q .hint { margin: -10px 0 18px; color: rgba(11,10,14,.6); font-size: 15px; }

  .big { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 0;
    font: 850 40px/1.05 "Archivo"; font-stretch: 106%; letter-spacing: -.03em; color: rgba(11,10,14,.88);
    border-bottom: 1px solid rgba(11,10,14,.1); transition: color 180ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
  .big small { font: 500 15px "Archivo"; letter-spacing: 0; color: rgba(11,10,14,.5); margin-left: 10px; }
  .big:active { transform: scale(.985); }
  .big[aria-pressed="true"] { color: #D1336B; }
  .big:disabled { color: rgba(11,10,14,.22); text-decoration: line-through; text-decoration-thickness: 3px; cursor: not-allowed; }
  @media (hover: hover) and (pointer: fine) { .big:not(:disabled):hover { color: #0B0A0E; } }

  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tile { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font: 650 12px "Archivo"; color: #0B0A0E;
    transition: transform 160ms var(--ease-out); }
  .tile img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px;
    outline: 3px solid transparent; outline-offset: 2px; transition: outline-color 180ms ease; }
  .tile[aria-pressed="true"] img { outline-color: #D1336B; }
  .tile:active { transform: scale(.96); }
  .tile .later { width: 100%; aspect-ratio: 2/3; border-radius: 10px; background: rgba(11,10,14,.07); display: grid; place-items: center; margin-bottom: 6px; font-size: 13px; text-align: center; padding: 8px; }

  .field-big { width: 100%; border: 0; border-bottom: 3px solid #0B0A0E; background: none; padding: 6px 0 10px; color: #0B0A0E;
    font: 850 40px "Archivo"; font-stretch: 106%; letter-spacing: -.02em; border-radius: 0; }
  .field-big::placeholder { color: rgba(11,10,14,.22); }
  .field-big:focus-visible { outline: none; border-bottom-color: #D1336B; }
  .phone-row { display: flex; align-items: baseline; gap: 10px; }
  .phone-row span { flex: none; font: 850 clamp(26px, 8.6vw, 36px) "Archivo"; color: rgba(11,10,14,.35); }
  .phone-row .field-big { flex: 1; min-width: 0; font-size: clamp(26px, 8.6vw, 36px); font-stretch: 100%; letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 15px; line-height: 1.4; }
  .agree input { width: 24px; height: 24px; accent-color: #D1336B; flex: none; margin: 0; }
  .err { color: #C4224F; font-size: 14px; margin: 14px 0 0; min-height: 20px; }

  .book-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 22px 26px; background: linear-gradient(180deg, rgba(247,245,242,0), #F7F5F2 40%); }
  .book-foot .pill { width: 100%; padding: 18px; font-size: 17px; background: #0B0A0E; color: #F7F5F2; }
  .book-foot .pill[hidden] { display: none; }

  .sum { font-size: 22px; line-height: 1.35; font-weight: 600; }
  .sum b { font-weight: 850; }
  .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(11,10,14,.12); }
  .total b { font-size: 40px; font-weight: 900; font-stretch: 110%; }

  /* ---------- done: the pass ---------- */
  .book.is-done { background: #0B0A0E; color: #F7F5F2; }
  .book.is-done .ticket, .book.is-done #back { display: none; }
  .book.is-done .icon { background: rgba(255,255,255,.14); }
  .book.is-done .icon svg { stroke: #F7F5F2; }
  .book.is-done .book-foot { background: none; }
  .book.is-done .book-foot .pill { background: #F7F5F2; color: #0B0A0E; }
  .book.is-done .q { view-transition-name: none; }
  .pass-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .pass-bg img { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; animation: drift 26s ease-in-out infinite alternate; }
  .pass-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,8,12,.15), rgba(9,8,12,.55)); }
  .book.is-done { isolation: isolate; }
  .pass-note { margin: 0 0 16px; font-size: 15px; line-height: 1.4; color: rgba(247,245,242,.78); }
  .pass { --cut: 318px; position: relative; border-radius: 26px; overflow: hidden; color: #F7F5F2;
    background: color-mix(in oklab, var(--pass) 58%, #0B0A0E);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
    -webkit-mask: radial-gradient(circle 13px at 0 var(--cut), #0000 98%, #000) , radial-gradient(circle 13px at 100% var(--cut), #0000 98%, #000);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    animation: pass-in 760ms var(--ease-out) both; transform-origin: 50% 0; }
  @keyframes pass-in { from { opacity: 0; transform: perspective(1200px) translateY(70px) rotateX(-18deg) scale(.94); } }
  .pass::after { content: ""; position: absolute; inset: 0; pointer-events: none;   /* one light sweep as it lands */
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
    transform: translateX(-120%); animation: shine 1100ms 520ms var(--ease-out) forwards; }
  @keyframes shine { to { transform: translateX(120%); } }
  .pass-art { position: relative; height: 150px; }
  .pass-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pass-art::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, transparent 40%, color-mix(in oklab, var(--pass) 58%, #0B0A0E) 100%); }
  .pass-later { height: 100%; background: radial-gradient(120% 120% at 20% 10%, #D1336B, #4E2A6B 55%, #0B0A0E); }
  .pass-brand { position: absolute; z-index: 1; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
  .pass-brand b { font-weight: 900; font-stretch: 118%; font-size: 15px; }
  .pass-game { position: relative; z-index: 1; margin: -34px 18px 0; font-size: 30px; line-height: 1; font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
  .pass-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px 18px 22px; }
  .pass-fields span { display: block; font-size: 12px; font-weight: 600; color: rgba(247,245,242,.6); margin-bottom: 3px; }
  .pass-fields b { font-size: 22px; font-weight: 850; font-stretch: 106%; letter-spacing: -.01em; }
  .pass-tear { height: 0; margin: 0 20px; border-top: 2px dashed rgba(247,245,242,.25); }
  .pass-stub { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 18px 20px; }
  .pass-stub span { display: block; font-size: 12px; font-weight: 600; color: rgba(247,245,242,.6); margin-bottom: 2px; }
  .pass-code { font-size: clamp(26px, 8vw, 34px); font-weight: 900; font-stretch: 105%; letter-spacing: 0; white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
  .pass-pay { text-align: right; } .pass-pay b { font-size: 22px; font-weight: 850; }
  .pass-bars { display: block; width: calc(100% - 36px); height: 46px; margin: 0 18px 18px; border-radius: 8px; background: #F7F5F2; padding: 6px 10px; box-sizing: border-box; }
  @media (prefers-reduced-motion: reduce) { .pass, .pass::after, .pass-bg img { animation: none; } }


  /* ---------- calendar ---------- */
  .cal-m { margin-bottom: 30px; }
  .cal-name { margin: 0 0 14px; font-size: 26px; font-weight: 850; font-stretch: 112%; letter-spacing: -.02em; }
  .cal-name span { font-weight: 500; color: rgba(11,10,14,.4); margin-left: 6px; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; }
  .cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: rgba(11,10,14,.42); padding-bottom: 6px; }
  .cal-wd.we { color: #D1336B; }
  .day { position: relative; aspect-ratio: 1; border: 0; background: none; padding: 0 0 6px; cursor: pointer; border-radius: 50%;
    font: 800 21px "Archivo"; font-stretch: 104%; font-variant-numeric: tabular-nums; color: #0B0A0E;
    display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
    transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
  .day.we { color: #D1336B; }
  .day:active { transform: scale(.9); }
  .day i { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
  .day i b { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }
  .day.today::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(11,10,14,.18); }
  .day[aria-pressed="true"] { background: #0B0A0E; color: #F7F5F2; }
  .day:disabled { cursor: default; color: rgba(11,10,14,.2); }
  .day.full { text-decoration: line-through; text-decoration-thickness: 2px; color: rgba(11,10,14,.28); }
  @media (hover: hover) and (pointer: fine) { .day:not(:disabled):not([aria-pressed="true"]):hover { background: rgba(11,10,14,.06); } }
  .cal-key { display: flex; gap: 18px; font-size: 13px; color: rgba(11,10,14,.55); margin: -6px 0 22px; }
  .cal-key span { display: inline-flex; align-items: center; gap: 6px; }
  .cal-key b { display: inline-flex; gap: 2px; } .cal-key b i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }


  /* ---------- time picker ---------- */
  .tg { margin-bottom: 22px; }
  .tg-name { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: rgba(11,10,14,.5); }
  .tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tslot { border: 0; cursor: pointer; padding: 14px 0 12px; border-radius: 16px; background: rgba(11,10,14,.05); color: #0B0A0E;
    font: 850 25px "Archivo"; font-stretch: 104%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1;
    transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
  .tslot small { display: block; margin-top: 4px; font: 600 12px "Archivo"; letter-spacing: 0; color: rgba(11,10,14,.5); }
  .tslot:active { transform: scale(.94); }
  .tslot[aria-pressed="true"] { background: #0B0A0E; color: #F7F5F2; }
  .tslot[aria-pressed="true"] small { color: rgba(247,245,242,.6); }
  .tslot:disabled { cursor: default; background: none; color: rgba(11,10,14,.22); text-decoration: line-through; box-shadow: inset 0 0 0 1px rgba(11,10,14,.08); }

  /* view transitions */
  ::view-transition-group(booking), ::view-transition-group(pick) { animation-duration: 460ms; animation-timing-function: var(--ease-drawer); }
  ::view-transition-old(booking), ::view-transition-new(booking) { animation-duration: 300ms; height: 100%; object-fit: cover; }
  ::view-transition-old(question) { animation: q-out 220ms var(--ease-out) both; }
  ::view-transition-new(question) { animation: q-in 380ms var(--ease-out) 60ms both; }
  .back-dir::view-transition-old(question) { animation-name: q-out-back; }
  .back-dir::view-transition-new(question) { animation-name: q-in-back; }
  @keyframes q-out { to { opacity: 0; transform: translateX(-28px); } }
  @keyframes q-in { from { opacity: 0; transform: translateX(36px); } }
  @keyframes q-out-back { to { opacity: 0; transform: translateX(28px); } }
  @keyframes q-in-back { from { opacity: 0; transform: translateX(-36px); } }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }

  @media (prefers-reduced-motion: reduce) {
    .bgart img { animation: none; }
    .cap, .phone, .bgart img { transition: none; }
    .swap { animation: none; }
  }

  /* --- full-screen device build --- */
  html, body { height: 100%; overflow: hidden; }
  body { padding: 0; background: #09080C; }
  .stage { display: block; }
  .phone { width: 100%; max-width: none; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  header.bar { padding-top: calc(16px + env(safe-area-inset-top)); }
  .dock { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .book-top { padding-top: calc(14px + env(safe-area-inset-top)); }
  .book-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .screen { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  @media (min-width: 600px) { .phone { max-width: 480px; margin: 0 auto; } }
