/* עין גרפית · the course platform. Same world as the Pro AI films and sales page:
   cream station wall, black split-flap board, lime and coral, clay stickers, torn paper. */
@font-face { font-family: "Gveret Levin"; src: url("/assets/fonts/GveretLevin-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --cream: #fbf4e6;
  --wall: #f3e3c8;
  --paper: #fffaf0;
  --lime: #c8f04a;
  --lime-deep: #a9d22a;
  --coral: #ff7a66;
  --coral-ink: #e0533f;
  --ink: #1d1a2b;
  --board: #2b2725;
  --board-tile: #3a3532;
  --flap-text: #f6ecd8;
  --line: #e7dcc6;
  --muted: #5d5868;
  --radius: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Assistant, system-ui, sans-serif; font-size: 18px; line-height: 1.6;
  -webkit-tap-highlight-color: transparent; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 9vw, 76px); }
h2 { font-size: clamp(30px, 6vw, 48px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.hand { font-family: "Gveret Levin", Assistant, cursive; font-size: 30px; line-height: 1.2; margin: 0; text-wrap: balance; }
.kicker { font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 99; background: var(--lime); padding: 8px 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* buttons */
.btn {
  font: inherit; font-weight: 800; font-size: 19px; color: var(--ink); background: var(--lime);
  border: 2.5px solid var(--ink); border-radius: 999px; padding: 12px 26px; min-height: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
  box-shadow: 0 5px 0 var(--ink); transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .2s;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); } }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); border-color: var(--muted); box-shadow: 0 5px 0 var(--muted); cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--paper); }
.btn-coral { background: var(--coral); }
.btn-small { font-size: 16px; min-height: 44px; padding: 8px 18px; box-shadow: 0 3px 0 var(--ink); }
.btn-full { width: 100%; }
.link { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; background: none; border-top: 0; border-inline: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
:is(.btn, .link, a, button, input, summary):focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* torn paper labels, like in the films */
.tag {
  display: inline-block; font-weight: 800; padding: 6px 16px 8px; font-size: 18px; line-height: 1.3;
  clip-path: polygon(0 6%, 4% 0, 12% 5%, 22% 0, 33% 6%, 45% 1%, 58% 6%, 70% 0, 82% 5%, 92% 0, 100% 7%, 99% 92%, 94% 100%, 82% 95%, 70% 100%, 57% 94%, 44% 100%, 31% 95%, 19% 100%, 8% 95%, 0 100%);
}
.tag-lime { background: var(--lime); }
.tag-coral { background: var(--coral); }
.tag-paper { background: var(--paper); }
.tag-big { font-size: clamp(20px, 3.2vw, 26px); padding: 10px 22px 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.chip-lime { background: var(--lime); }
.chip-soon { background: transparent; border-style: dashed; color: var(--muted); border-color: var(--muted); }
.chip-coral { background: var(--coral); }

/* header */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--cream) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 86px; }
.brand b { font-size: 21px; font-weight: 800; padding-inline-start: 12px; border-inline-start: 2px solid var(--ink); line-height: 1.1; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.who { font-weight: 700; font-size: 15px; color: var(--muted); }

/* the station wall: lime stripe and charcoal baseboard, like the film background */
.wall-base { position: relative; }
.wall-base::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34px; pointer-events: none;
  background: linear-gradient(var(--lime) 0 7px, transparent 7px 20px, #3b3734 20px 100%);
  border-radius: 2px;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-scene { position: relative; aspect-ratio: 1920 / 1085; background: url("/assets/img/platform.webp") left center / cover no-repeat; }
.hero-heroine { position: absolute; width: 13%; bottom: 13%; inset-inline-end: 20%; filter: drop-shadow(0 10px 10px rgba(60, 40, 20, .18)); }
.hero-copy { padding: 34px 20px 48px; }
.hero-copy h1 { margin-bottom: 6px; }
.hero-copy .promise { font-size: clamp(22px, 4.6vw, 34px); font-weight: 800; margin: 0 0 18px; }
.hero-copy .tag { margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

@media (min-width: 900px) {
  .hero { min-height: min(86vh, 820px); background: url("/assets/img/platform.webp") left 72% / cover no-repeat; display: flex; align-items: center; }
  .hero-scene { position: absolute; inset: 0; aspect-ratio: auto; background: none; }
  .hero-heroine { width: auto; height: 62%; bottom: 9%; inset-inline-end: auto; left: 22%; }
  .hero-copy { position: relative; z-index: 1; width: min(640px, 52%); margin-inline-start: max(40px, calc((100vw - 1180px) / 2)); padding: 40px 0 80px; }
}

/* ---------- the departure board ---------- */
.board {
  position: relative; background: radial-gradient(120% 90% at 50% 0%, #34302d, var(--board) 70%);
  border-radius: 28px; padding: 22px 16px 18px; color: var(--flap-text);
  box-shadow: 0 2px 0 #46403c inset, 0 24px 40px -24px rgba(29, 26, 43, .7), 0 10px 0 #1c1917;
}
.board-head { display: flex; align-items: center; gap: 14px; margin: 0 4px 16px; }
.board-head .bar { flex: 1; height: 12px; border-radius: 99px; background: var(--lime); box-shadow: 0 2px 0 var(--lime-deep) inset; }
.board-head .train { width: 46px; height: 46px; flex: none; }
.board-title { font-weight: 800; font-size: 15px; letter-spacing: .08em; color: #cbbfa8; text-align: center; margin: -6px 0 12px; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li a, .board li > div { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: 12px; }
.board li a:focus-visible { outline-offset: 2px; }
.flap {
  position: relative; background: linear-gradient(#433d39, var(--board-tile) 50%, #34302d 50%, #3d3835);
  border-radius: 9px; padding: 9px 12px; box-shadow: 0 2px 0 #1c1917, 0 1px 0 #554e49 inset; overflow: hidden;
}
.flap::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(0, 0, 0, .55); box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.flap-num { text-align: center; font-weight: 800; font-size: 24px; padding: 8px 0; font-variant-numeric: tabular-nums; }
.flap-name { min-width: 0; }
.flap-name b { display: block; font-size: 19px; font-weight: 800; line-height: 1.25; }
.flap-name span { display: block; font-size: 14.5px; color: #cbbfa8; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .chip { border-color: transparent; }
.board .chip-lime { color: var(--ink); }
.board .chip-soon { color: #b7ab95; border-color: #6d655e; }
.board li.done .flap-num { background: var(--coral); color: var(--ink); }
.board li.open .flap-num { color: var(--lime); }
@media (hover: hover) { .board li a:hover .flap { background: linear-gradient(#4b4440, #403a36 50%, #3a3532 50%, #443e3a); } }
@media (min-width: 720px) {
  .board { padding: 30px 30px 26px; }
  .board li a, .board li > div { grid-template-columns: 70px 1fr 150px; gap: 12px; }
  .flap-name { display: flex; align-items: baseline; gap: 14px; }
  .flap-name b { font-size: 22px; white-space: nowrap; }
  .flap-name span { font-size: 16px; }
  .board .chip { justify-self: start; font-size: 15px; }
}
/* the flip when the board loads */
.board.flipping .flap-row > * { animation: flipIn .55s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); transform-origin: 50% 0; }
@keyframes flipIn { from { transform: perspective(500px) rotateX(-92deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- first car ---------- */
.firstcar { display: grid; gap: 30px; align-items: center; }
.firstcar figure { margin: 0; position: relative; }
.firstcar figure img { border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 10px 0 var(--ink); }
.firstcar figure .tag { position: absolute; top: -16px; inset-inline-start: 18px; rotate: -3deg; }
@media (min-width: 900px) { .firstcar { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* ---------- how the ride works ---------- */
.ride { display: grid; gap: 28px; align-items: center; }
.ride ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.ride li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.ride li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2.5px dashed var(--ink); font-weight: 800; font-size: 20px; background: var(--paper); }
.ride li b { display: block; font-size: 20px; }
.ride .finale-note { margin-top: 8px; font-weight: 700; }
@media (min-width: 900px) { .ride { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- the ticket ---------- */
.ticket { position: relative; width: 100%; max-width: 780px; margin: 0 auto; container-type: inline-size; }
.ticket > img { width: 100%; filter: drop-shadow(0 16px 18px rgba(60, 40, 20, .18)); }
.ticket { margin-block: 28px 8px; }
.slot {
  position: absolute; left: var(--x); top: var(--y); width: 10.44%; aspect-ratio: 1; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%; text-decoration: none; color: #8f8576;
  font-weight: 800; font-size: clamp(12px, 3.1cqw, 24px);
}
.slot .num { opacity: .9; }
.slot.next { box-shadow: 0 0 0 3px var(--lime), 0 0 0 6px rgba(200, 240, 74, .35); }
.mark {
  position: absolute; inset: -4%; border-radius: 50%; display: grid; place-items: center;
  border: max(3px, .55cqw) solid var(--coral-ink); color: var(--coral-ink); font-weight: 800; font-size: clamp(13px, 3.4cqw, 26px);
  background: radial-gradient(circle, rgba(255, 122, 102, .16), rgba(255, 122, 102, .08) 60%, transparent 62%);
  box-shadow: inset 0 0 0 max(2px, .35cqw) var(--paper), inset 0 0 0 max(3.5px, .6cqw) var(--coral-ink);
  rotate: var(--r, -12deg); mix-blend-mode: multiply; opacity: .92;
}
.slot.stamped .num { opacity: 0; }
.ticket-caption { text-align: center; font-weight: 800; font-size: 20px; margin: 14px 0 0; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; padding: 22px; box-shadow: 0 6px 0 var(--ink); }
.card h3 { margin-bottom: 6px; }
.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.st-card { position: relative; display: grid; gap: 6px; text-decoration: none; transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.st-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st-card .n { font-weight: 800; font-size: 15px; color: var(--muted); }
.st-card h3 { font-size: 23px; margin: 2px 0 0; }
.st-card .sub { font-weight: 700; margin: 0; }
.st-card .gate { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.st-card.soon { background: color-mix(in srgb, var(--paper) 55%, var(--cream)); border-style: dashed; box-shadow: none; }
.st-card.soon h3, .st-card.soon .sub { color: #4a4555; }
.st-card .start { position: absolute; top: -14px; inset-inline-end: 16px; rotate: 3deg; font-size: 15px; padding: 4px 12px 6px; }
@media (hover: hover) { .st-card:not(.soon):hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); } }

/* ---------- station page ---------- */
.crumbs { padding: 18px 0 0; }
.st-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 14px; }
.st-head .flap { color: var(--flap-text); font-weight: 800; font-size: 20px; padding: 8px 16px; border-radius: 10px; }
.st-head .flap.num { background: linear-gradient(#433d39, var(--board-tile) 50%, #34302d 50%, #3d3835); color: var(--lime); }
.st-title { margin-bottom: 14px; }
.gate-line { margin: 0 0 26px; text-wrap: balance; }
.video {
  position: relative; aspect-ratio: 16 / 9; border: 2.5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--board);
  box-shadow: 0 10px 0 var(--ink);
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--flap-text); text-align: center; padding: 20px; }
.video-soon img { width: clamp(70px, 12vw, 120px); }
.video-soon b { font-size: clamp(20px, 3.4vw, 30px); }
.video-soon span { color: #cbbfa8; font-size: 16px; }
.st-grid { display: grid; gap: 18px; margin: 34px 0; }
@media (min-width: 860px) { .st-grid { grid-template-columns: 1fr 1fr; } }
.punch-card { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; }
.punch-card .dot { width: 58px; height: 58px; border-radius: 50%; border: 3px dotted #8f8576; display: grid; place-items: center; font-weight: 800; color: #8f8576; font-size: 20px; }
.punch-card p { font-size: 21px; font-weight: 800; line-height: 1.35; margin: 0; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--cream); font-weight: 700; }

/* the stamp moment */
.stamp-zone { display: grid; gap: 24px; align-items: center; justify-items: center; text-align: center; padding: 34px 22px 30px; margin: 10px 0 34px; }
.stamp-zone h2 { font-size: clamp(26px, 4.6vw, 38px); margin: 0; }
.punch-target { position: relative; width: 150px; height: 150px; margin-top: 118px; }
.punch-target .hole { position: absolute; inset: 0; border-radius: 50%; border: 4px dotted #8f8576; display: grid; place-items: center; font-weight: 800; font-size: 46px; color: #8f8576; background: var(--cream); }
.punch-target .mark { inset: -6%; font-size: 52px; border-width: 6px; box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 9px var(--coral-ink); opacity: 0; scale: 1.25; }
.punch-target .rubber { position: absolute; width: 120px; left: 50%; bottom: calc(100% - 4px); translate: -50% 0; transform-origin: 50% 100%; rotate: -8deg; pointer-events: none; filter: drop-shadow(0 12px 10px rgba(60, 40, 20, .25)); }
.punch-target.stamped .hole { color: transparent; }
.punch-target.down .rubber { animation: rubberDown .9s var(--ease-in-out) both; }
.punch-target.down .mark, .punch-target.stamped .mark { animation: markIn .35s .42s var(--ease-out) both; }
.punch-target.stamped .rubber { opacity: 0; }
.punch-target.stamped .mark { animation-delay: 0s; }
@keyframes rubberDown {
  0% { transform: translateY(0) rotate(0deg); }
  42% { transform: translateY(70%) rotate(8deg) scaleY(.92); }
  55% { transform: translateY(70%) rotate(8deg) scaleY(.92); }
  100% { transform: translateY(-40%) rotate(14deg); opacity: 0; }
}
@keyframes markIn { from { opacity: 0; scale: 1.25; } to { opacity: .95; scale: 1; } }
.stamp-done { display: grid; gap: 14px; justify-items: center; }
.stamp-done .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.pager { display: flex; justify-content: space-between; gap: 12px; padding: 34px 0 40px; }

/* ---------- login ---------- */
.login-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 50px 20px 90px; }
.login-card { position: relative; width: min(460px, 100%); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 10px 0 var(--ink); padding: 34px 26px 28px; }
.login-card .passport { position: absolute; width: 92px; top: -46px; inset-inline-end: 18px; rotate: 10deg; }
.login-card h1 { font-size: clamp(32px, 7vw, 42px); }
.field { display: grid; gap: 6px; margin: 18px 0; }
.field label { font-weight: 800; }
.field input {
  font: inherit; font-size: 22px; font-weight: 700; padding: 12px 16px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--cream);
  width: 100%; direction: ltr; text-align: left; letter-spacing: .04em;
}
.field input.code { text-align: center; letter-spacing: .4em; font-size: 28px; }
.field input:focus { outline: 3px solid var(--lime); outline-offset: 0; border-color: var(--ink); background: #fff; }
.msg { min-height: 1.6em; margin: 10px 0 0; font-weight: 700; }
.msg.err { color: #b3311d; }
.msg.ok { color: #2f6b12; }
.login-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; font-size: 16px; }

/* ---------- finale ---------- */
.finale-hero { display: grid; gap: 28px; align-items: center; padding-top: 40px; }
.finale-hero img.train { border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 10px 0 var(--ink); }
@media (min-width: 900px) { .finale-hero { grid-template-columns: 1fr 1fr; gap: 56px; } }
.skill-card { display: grid; gap: 10px; justify-items: start; margin: 40px auto 0; max-width: 780px; }
.skill-card .chip { margin-bottom: 4px; }

/* ---------- footer ---------- */
.foot { padding: 30px 20px 70px; text-align: center; }
.sig { display: inline-flex; align-items: baseline; gap: 10px; background: var(--paper); padding: 6px 16px 8px; rotate: -2deg; box-shadow: 0 4px 10px -6px rgba(29, 26, 43, .4); }
.sig .hand { font-size: 28px; }
.sig b { font-size: 16px; }

/* ---------- admin ---------- */
.admin table { width: 100%; border-collapse: collapse; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; overflow: hidden; font-size: 16px; }
.admin th, .admin td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); }
.admin th { background: var(--ink); color: var(--paper); font-weight: 800; }
.admin .stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.admin form.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.admin form.inline .field { margin: 0; flex: 1 1 200px; }
.admin form.inline .field input { font-size: 18px; text-align: start; direction: rtl; letter-spacing: 0; }
.admin form.inline .field input[type="tel"] { direction: ltr; text-align: left; }
.table-wrap { overflow-x: auto; }

/* toast */
.toast { position: fixed; inset: auto 16px 20px; margin: 0 auto; max-width: 440px; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-weight: 700; text-align: center; z-index: 50; opacity: 0; translate: 0 10px; transition: opacity .2s, translate .2s var(--ease-out); pointer-events: none; }
.toast.on { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .punch-target.down .rubber { display: none; }
}

.lead { font-size: 21px; }
.admin form.inline .field input[type="email"] { direction: ltr; text-align: left; }
.admin td .ltr { display: inline-block; }

.btn-small { white-space: nowrap; }
@media (max-width: 719px) { .board .chip .long { display: none; } }
@media (max-width: 560px) {
  .who { display: none; }
  .brand img { width: 64px; }
  .brand { gap: 10px; }
  .brand b { font-size: 18px; white-space: nowrap; padding-inline-start: 10px; }
}
.admin table { min-width: 680px; }
.admin td { vertical-align: top; }

/* ---------- בוחן העין: the game under each station ---------- */
.game { margin: 34px 0 22px; padding: 22px 18px 26px; overflow: hidden; }
.game-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.game-top h2 { font-size: clamp(24px, 4.6vw, 32px); margin: 0; }
.dots-wrap { display: flex; align-items: center; gap: 10px; }
.dots { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2.5px dotted #8f8576; background: transparent; transition: background-color .25s, border-color .25s, transform .3s var(--ease-out); }
.dot.current { border: 2.5px solid var(--ink); background: var(--paper); transform: scale(1.15); box-shadow: 0 0 0 4px rgba(200, 240, 74, .55); }
.dot.done { border: 2.5px solid var(--ink); background: var(--lime); }
.dots-label { font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap; }
.game-stage { min-height: 300px; }

.g-intro { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 10px 0 6px; }
.g-intro .g-glass { width: 92px; }
.g-lead { font-size: 21px; font-weight: 700; max-width: 520px; margin: 0; line-height: 1.5; }

.g-flash { display: grid; justify-items: center; gap: 14px; }
.g-timer { display: flex; align-items: center; gap: 12px; width: min(100%, 380px); }
.g-timer .g-glass { width: 46px; flex: none; }
.g-glass.flip { animation: glassFlip .45s var(--ease-out) both; }
@keyframes glassFlip { from { transform: rotate(-180deg); } to { transform: none; } }
.g-bar { flex: 1; height: 14px; border-radius: 99px; background: var(--line); border: 2px solid var(--ink); overflow: hidden; }
.g-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--lime)); transform-origin: right center; }
[dir="rtl"] .g-bar i { transform-origin: right center; }
.g-frame { margin: 0; width: min(100%, 380px); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 2.5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); background: var(--board); transition: opacity .25s, transform .25s var(--ease-out); }
.g-frame img { width: 100%; height: 100%; object-fit: cover; }
.g-frame.gone { opacity: 0; transform: scale(.96); }
@media (min-width: 900px) { .g-frame, .g-timer { width: 420px; } }

.g-q { display: grid; gap: 14px; }
.g-question { font-size: clamp(22px, 4.4vw, 28px); margin: 0; outline: none; }
.g-opts { display: grid; gap: 10px; }
@media (min-width: 900px) { .g-opts.many { grid-template-columns: 1fr 1fr; } }
.g-opt {
  font: inherit; font-weight: 700; font-size: 18px; line-height: 1.35; text-align: start; color: var(--ink);
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 58px; width: 100%;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); cursor: pointer;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-color .2s;
}
.g-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (hover: hover) { .g-opt:not(:disabled):hover { background: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); } }
.g-opt:disabled { cursor: default; }
.g-opt:disabled:not(.ok):not(.no):not(.picked):not(.keep) { opacity: .55; }
.g-mark, .g-box { flex: none; width: 26px; height: 26px; border: 2.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--cream); }
.g-box { border-radius: 8px; }
.g-opt[aria-pressed="true"] { background: #f3fbd9; }
.g-opt[aria-pressed="true"] .g-box { background: var(--ink); }
.g-opt[aria-pressed="true"] .g-box::after { content: "✓"; color: var(--lime); }
.g-opt.ok, .g-opt.picked { background: var(--lime); }
.g-opt.ok .g-mark::after, .g-opt.ok .g-box::after { content: "✓"; color: var(--ink); }
.g-opt.ok .g-box { background: var(--paper); }
.g-opt.picked .g-mark { background: var(--ink); }
.g-opt.no { background: #ffd9d2; border-color: var(--coral-ink); box-shadow: 0 4px 0 var(--coral-ink); animation: shake .42s var(--ease-out); }
.g-opt.no .g-mark::after, .g-opt.no .g-box::after { content: "✕"; color: var(--coral-ink); }
.g-opt.no .g-box { background: var(--paper); border-color: var(--coral-ink); }
.g-opt.keep { background: #f3fbd9; }
@keyframes shake { 0%, 100% { translate: 0; } 20% { translate: -7px; } 40% { translate: 6px; } 60% { translate: -4px; } 80% { translate: 2px; } }
.pop { animation: pop .45s var(--ease-out); }
@keyframes pop { 0% { scale: 1; } 40% { scale: 1.04; } 100% { scale: 1; } }
.g-count { margin: 0; font-weight: 800; color: var(--muted); font-size: 15px; }
.g-feedback:empty { display: none; }
.fb { margin: 0; padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: 18px; line-height: 1.45; border: 2.5px solid var(--ink); animation: fbIn .3s var(--ease-out) both; }
.fb.ok { background: #f3fbd9; border-color: var(--ink); }
.fb.info { background: var(--cream); }
.fb.no { background: #fff1ee; border-color: var(--coral-ink); }
@keyframes fbIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.g-actions:empty { display: none; }

.g-pass { display: grid; justify-items: center; text-align: center; gap: 10px; padding-bottom: 4px; }
.g-pass-title { font-size: clamp(26px, 5vw, 36px); margin: 0; outline: none; }
.g-pass .punch-target { margin-top: 120px; }
.g-punch { font-size: 21px; font-weight: 800; max-width: 460px; margin: 14px 0 6px; line-height: 1.4; }
.g-pass .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 6px; }
.g-pass .replay { margin-top: 10px; font-size: 16px; }

/* the prompt and the task */
.prompt-card, .task-card { margin: 0 0 22px; }
.prompt-card h2, .task-card h2 { font-size: clamp(22px, 4.2vw, 28px); margin-bottom: 12px; }
.prompt-text {
  font-family: inherit; font-size: 17px; line-height: 1.65; white-space: pre-wrap; margin: 0 0 14px;
  background: var(--cream); border: 2px dashed #b9ad98; border-radius: 14px; padding: 14px 16px; direction: rtl; text-align: start;
}
.row-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.saved { font-weight: 800; color: #2f6b12; }
.note { margin: 12px 0 0; }
.task-q { font-size: 19px; font-weight: 700; }
.task-card textarea {
  width: 100%; font: inherit; font-size: 18px; line-height: 1.5; padding: 12px 14px; margin: 4px 0 14px;
  border: 2.5px solid var(--ink); border-radius: 14px; background: var(--cream); resize: vertical; min-height: 110px;
}
.task-card textarea:focus { outline: 3px solid var(--lime); outline-offset: 0; background: #fff; }
.video-soon .btn { margin-top: 6px; }

/* admin answers */
.admin td.acts { white-space: nowrap; }
.admin td.acts .link { margin-inline-end: 12px; }
.admin .ans-row td { background: var(--cream); }
.ans-station + .ans-station { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ans-head { margin: 0 0 6px; }
.ans-rounds { margin: 0 0 6px; padding-inline-start: 22px; display: grid; gap: 4px; }
.ans-task { margin: 0; white-space: pre-wrap; }
.video.is-soon { aspect-ratio: auto; min-height: 240px; display: grid; }
.video.is-soon .video-soon { position: relative; inset: auto; padding: 28px 20px; }
.g-pass.calm .punch-target { margin-top: 26px; }
.game-stage { max-width: 780px; margin-inline: auto; }

/* ---------- עובר האורח: glance, fix, test on a layered flyer ---------- */
.sound-toggle { font: inherit; font-size: 13px; font-weight: 800; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; background: var(--paper); cursor: pointer; }
.sound-toggle[aria-pressed="false"] { text-decoration: line-through; color: var(--muted); border-color: var(--muted); }
.game:has(.play) .game-stage { max-width: none; }

.play { display: grid; gap: 14px; grid-template-areas: "q" "fly" "side"; }
.play-q { grid-area: q; display: grid; gap: 8px; }
.play-fly { grid-area: fly; position: relative; z-index: 2; }
.play-fly.is-away { display: none; }
.play-side { grid-area: side; display: grid; gap: 12px; align-content: start; }
@media (min-width: 900px) {
  .play { grid-template-columns: 420px 1fr; grid-template-areas: "fly q" "fly side"; grid-template-rows: auto 1fr; column-gap: 34px; align-items: start; }
}
.play-q .g-timer { width: min(100%, 360px); margin-inline: auto; }
@media (min-width: 900px) { .play-q .g-timer { margin-inline: 0; } }

.fly {
  position: relative; width: min(100%, 360px); margin-inline: auto; aspect-ratio: 4 / 5; container-type: inline-size;
  border-radius: 16px; overflow: clip; border: 2.5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); background: #0f5a66;
  --pad: calc(2.5cqw + var(--air) * 6.5cqw); --gap: calc(var(--air) * 2.6cqw); --cp: calc(1.6cqw + var(--air) * 3cqw); --lh: 6.6cqw;
  --cardh: calc(3 * var(--lh) + 2 * var(--gap) + 2 * var(--cp));
}
@media (min-width: 900px) { .fly { width: 420px; } }
.fly.is-flying { overflow: visible; }
.fl-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; transition: opacity .35s, filter .35s; user-select: none; }
.fl-bg { position: absolute; inset: 0; background: none; border: 0; padding: 0; z-index: 0; border-radius: 13px; }
.fl-el {
  position: absolute; z-index: 2; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; line-height: 1.05; text-align: center;
  transition: top .55s var(--ease-out), right .55s var(--ease-out), left .55s var(--ease-out), width .55s var(--ease-out), font-size .55s var(--ease-out), rotate .55s var(--ease-out), opacity .3s, color .4s, filter .4s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.fl-el:enabled, .fl-bg:enabled { cursor: pointer; }
.fl-el > * { transition: opacity .3s; }
.fl-el svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fl-el.flying { z-index: 20; }
.fl-el.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* the cluttered flyer: everything loud, equal weight, near the edges */
.fl-burst { left: 2.5cqw; top: 2.5cqw; width: 29cqw; height: 29cqw; rotate: -10deg; }
.fl-burst span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 6.4cqw; color: #b3311d; direction: rtl; }
.fl-logo { right: 3.5cqw; top: 5cqw; font-size: 13cqw; font-weight: 800; rotate: -4deg; white-space: nowrap; }
.fl-logo span {
  background: linear-gradient(180deg, #fffbd0 0%, #ffd23f 40%, #ff8a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .45cqw #4b1660; filter: drop-shadow(0 .7cqw 0 #8a2aa0) drop-shadow(0 .7cqw 0 #5a1d6e) drop-shadow(0 1.4cqw 1.6cqw rgba(0, 0, 0, .35));
}
.fl-message { right: 3.5cqw; top: 25cqw; width: 64cqw; font-size: 5.4cqw; font-weight: 700; color: #fbf4e6; white-space: nowrap; text-shadow: 0 .4cqw 0 rgba(0, 0, 0, .3); }
.fl-ribbon { left: 0; top: 37cqw; rotate: -7deg; }
.fl-ribbon span { display: block; background: var(--coral); color: #fff; font-weight: 800; font-size: 5cqw; padding: 1.6cqw 6cqw 1.8cqw 3cqw; clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%); white-space: nowrap; }
.fl-arrow { left: 47cqw; top: 33cqw; width: 15cqw; height: 15cqw; }
.fl-sparkles { right: 2cqw; top: 36cqw; width: 36cqw; height: 15cqw; }
.fl-sparkles .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 1.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .35; scale: .6; } }
.k-detail { font-family: "Gveret Levin", Assistant, cursive; font-size: 7cqw; color: #fff8e6; white-space: nowrap; text-shadow: 0 .35cqw 0 #3b1f12, 0 0 1.4cqw rgba(0, 0, 0, .6); }
.fl-date { right: 3cqw; top: 113cqw; }
.fl-place { right: 64cqw; top: 113cqw; }
.fl-entry { right: 3cqw; top: 52cqw; rotate: 5deg; }
.fl-card { position: absolute; z-index: 1; right: var(--pad); top: calc(125cqw - var(--pad) - var(--cardh)); width: 46cqw; height: var(--cardh); background: #fbf4e6; border-radius: 3cqw; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .3); opacity: 0; transform: scale(.8); transform-origin: bottom right; transition: opacity .45s, transform .45s var(--ease-out), right .25s, top .25s, height .25s; }

/* step 1 of the fix: the message wins, the rest gets small */
.fly.is-first .fl-message { right: 7cqw; top: calc(16cqw + var(--air) * 5cqw); width: 86cqw; font-size: 10.6cqw; font-weight: 800; white-space: normal; line-height: 1.08; text-shadow: 0 .5cqw 1.6cqw rgba(0, 0, 0, .25); }
.fly.is-first .fl-logo { right: 39cqw; top: calc(5.5cqw + var(--air) * 3cqw); font-size: 4.6cqw; rotate: 0deg; }
.fly.is-first .fl-logo span { background: none; -webkit-text-fill-color: var(--lime); color: var(--lime); -webkit-text-stroke: 0; filter: none; }
.fly.is-first .k-detail { font-size: 5cqw; }
/* step 2: the details in one font, together in a card */
.fly.is-grouped .fl-card { opacity: 1; transform: none; }
.fly.is-grouped .k-detail { font-family: Assistant, sans-serif; font-weight: 700; font-size: 4.8cqw; color: var(--ink); text-shadow: none; rotate: 0deg; right: calc(var(--pad) + var(--cp) + 1cqw); line-height: var(--lh); transition-duration: .55s, .25s, .55s, .55s, .55s, .55s, .3s, .4s, .4s; }
.fly.is-grouped .fl-date { top: calc(125cqw - var(--pad) - var(--cardh) + var(--cp)); }
.fly.is-grouped .fl-place { top: calc(125cqw - var(--pad) - var(--cardh) + var(--cp) + var(--lh) + var(--gap)); }
.fly.is-grouped .fl-entry { top: calc(125cqw - var(--pad) - var(--cardh) + var(--cp) + 2 * (var(--lh) + var(--gap))); color: var(--coral-ink); font-weight: 800; }

/* glance: outlines after the two seconds, then the heat */
.fly.is-outline .fl-art { opacity: .22; filter: grayscale(.7); }
.fly.is-outline .fl-el > * { opacity: .22; }
.fly.is-outline .fl-el { outline: 2px dashed rgba(255, 255, 255, .9); outline-offset: 1cqw; border-radius: 2cqw; }
.fly.is-outline .fl-el:enabled { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { outline-color: rgba(255, 255, 255, .9); } 50% { outline-color: rgba(200, 240, 74, .95); } }
.fly.is-outline .fl-el.is-picked { outline: 3px solid var(--lime); }
.fly.is-outline .fl-el.is-picked > * { opacity: 1; }
.fly.is-heat .fl-el > * { opacity: .55; }
.heat {
  position: absolute; z-index: 5; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; filter: blur(2.4cqw);
  background: radial-gradient(closest-side, rgba(255, 70, 40, .95), rgba(255, 150, 30, .7) 45%, rgba(255, 220, 60, 0) 100%);
  animation: bloom 1.2s var(--ease-out) both;
}
@keyframes bloom { 0% { opacity: 0; scale: .2; } 60% { opacity: 1; scale: 1.15; } 100% { opacity: .9; scale: 1; } }
.fly.is-proud { animation: proud .6s var(--ease-out); }
@keyframes proud { 0% { scale: .94; } 60% { scale: 1.02; } 100% { scale: 1; } }

/* tap feedback */
.squish { animation: squish .32s var(--ease-out); }
@keyframes squish { 0% { scale: 1; } 35% { scale: .9; } 70% { scale: 1.06; } 100% { scale: 1; } }
.nope { animation: shake .42s var(--ease-out); }

/* the passer-by */
.passer { display: flex; align-items: flex-end; gap: 12px; min-height: 150px; }
.passer img { height: 150px; width: auto; flex: none; filter: drop-shadow(0 8px 8px rgba(60, 40, 20, .2)); }
@media (min-width: 900px) { .passer { min-height: 230px; } .passer img { height: 230px; } }
.passer.walk img { animation: walkIn .8s var(--ease-out) both; }
@keyframes walkIn {
  0% { translate: 120% 0; rotate: 4deg; } 25% { translate: 75% -6px; rotate: -3deg; } 50% { translate: 40% 0; rotate: 3deg; }
  75% { translate: 12% -5px; rotate: -2deg; } 100% { translate: 0 0; rotate: 0deg; }
}
.bubble {
  position: relative; margin: 0 0 70px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; padding: 10px 14px;
  font-weight: 800; font-size: 19px; line-height: 1.35; box-shadow: 0 4px 0 var(--ink); opacity: 0; scale: .6; transform-origin: 100% 100%;
}
.bubble::after { content: ""; position: absolute; bottom: -12px; inset-inline-start: 18px; width: 18px; height: 18px; background: var(--paper); border-inline-start: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: skewY(40deg); }
.bubble.on { animation: bubbleIn .35s var(--ease-out) both; }
@keyframes bubbleIn { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }

/* the fix: steps bar, suitcase, air slider */
.fix-steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: fs; }
.fix-steps li { counter-increment: fs; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.fix-steps li::before { content: ""; display: block; height: 8px; border-radius: 99px; background: var(--line); border: 2px solid var(--ink); margin-bottom: 5px; transition: background-color .3s; }
.fix-steps li.now { color: var(--ink); }
.fix-steps li.now::before { background: linear-gradient(90deg, var(--paper), var(--lime)); }
.fix-steps li.done::before { background: var(--lime); }
.fix-prompt { margin: 0; font-size: 18px; font-weight: 700; }
.suitcase-wrap { display: flex; align-items: center; gap: 14px; padding-top: 18px; }
.suitcase {
  position: relative; width: 104px; height: 74px; flex: none; border-radius: 16px; border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  background: radial-gradient(120% 100% at 30% 15%, #ffab9b, var(--coral) 55%, #e2553f);
}
.suitcase::before { content: ""; position: absolute; left: 50%; top: -19px; width: 38px; height: 17px; translate: -50% 0; border: 5px solid #3b3734; border-bottom: 0; border-radius: 12px 12px 0 0; }
.suitcase::after { content: ""; position: absolute; inset: 0 24%; border-inline: 8px solid #fbf4e6; }
.suitcase.bump { animation: bump .42s var(--ease-out); }
@keyframes bump { 0% { scale: 1; } 30% { scale: 1.12 .9; } 60% { scale: .96 1.05; } 100% { scale: 1; } }
.suit-count { margin: 0; font-weight: 800; }
.air { display: grid; gap: 8px; width: 100%; margin-bottom: 6px; }
.air-label { font-weight: 800; font-size: 18px; }
.air input[type="range"] { width: 100%; height: 34px; accent-color: var(--lime); cursor: pointer; }
.air input[type="range"]::-webkit-slider-thumb { width: 30px; height: 30px; }
.air-meter { position: relative; height: 30px; border-radius: 99px; border: 2.5px solid var(--ink); background: var(--line); overflow: hidden; display: grid; place-items: center; }
.air-fill { position: absolute; inset: 0; transform-origin: right center; transform: scaleX(var(--v, 0)); background: #ffc6ba; transition: transform .15s, background-color .25s; }
.air-meter.pass .air-fill { background: var(--lime); }
.air-state { position: relative; font-size: 15px; }
.play-act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play-act:empty { display: none; }
.play-fb:empty { display: none; }
.play-q .g-opts { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .fl-sparkles .tw { animation: none; }
  .passer.walk img { animation: none; }
}
.fly.is-first .fl-message { z-index: 4; }
@media (max-width: 899px) {
  .play.is-payoff .fly { width: min(78%, 300px); }
  .play.is-payoff .play-q { display: none; }
}
.fly.is-tossing .fl-message { pointer-events: none; }

/* ---------- the clay vignettes ---------- */
.board li a, .board li > div { grid-template-columns: 44px 52px 1fr auto; }
.flap-thumb { width: 52px; aspect-ratio: 4 / 3; height: auto; border-radius: 8px; object-fit: cover; border: 2px solid #1c1917; box-shadow: 0 2px 0 #1c1917; background: #3a3532; }
.board li.soon .flap-thumb { filter: saturate(.75) brightness(.9); }
@media (min-width: 720px) {
  .board li a, .board li > div { grid-template-columns: 70px 76px 1fr 150px; }
  .flap-thumb { width: 76px; border-radius: 10px; }
}
.st-main { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.st-main h3 { margin: 0; }
.st-main .sub { display: block; font-weight: 700; margin-top: 2px; }
.st-thumb { width: 96px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.st-card.soon .st-thumb { filter: saturate(.7); opacity: .85; }
.st-top { display: grid; gap: 18px; margin-top: 14px; }
.st-top .st-head { margin-top: 0; }
.st-hero { margin: 0; order: -1; }
.st-hero img { width: 100%; height: auto; border-radius: 22px; border: 2.5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
@media (min-width: 900px) {
  .st-top { grid-template-columns: 1fr 440px; align-items: center; gap: 40px; margin-top: 22px; }
  .st-hero { order: 0; }
}
.st-top { margin-bottom: 30px; }
.st-top .gate-line { margin-bottom: 0; }

/* ---------- the first car: "soon" or open (body[data-boarding], set from /api/board) ---------- */
body:not([data-boarding="open"]) [data-when="open"], body[data-boarding="open"] [data-when="soon"] { display: none !important; }
.soon-tag { rotate: -2deg; }
.soon-note { margin-top: 10px; }
.soon-note .lead { font-weight: 700; }

/* ---------- forms with free text ---------- */
.field textarea, .field select, .final-card .field input {
  font: inherit; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--cream);
  direction: rtl; text-align: start; letter-spacing: 0;
}
.field textarea { resize: vertical; min-height: 64px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-start: 40px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231d1a2b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 16px center; }
.field textarea:focus, .field select:focus, .final-card .field input:focus { outline: 3px solid var(--lime); outline-offset: 0; background-color: #fff; }
.field [aria-invalid="true"] { border-color: var(--coral-ink); background-color: #fff6f4; }
.field label { line-height: 1.35; }
.opt { font-weight: 600; font-size: 14px; color: var(--muted); margin-inline-start: 4px; white-space: nowrap; }
.field-err { margin: 0; color: #b3311d; font-weight: 700; font-size: 16px; }
.field-err:empty { display: none; }
.count { justify-self: end; font-size: 13px; font-weight: 700; color: var(--muted); direction: ltr; margin-top: -2px; }

/* a big, friendly checkbox */
.check { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; margin: 6px 0 4px; font-weight: 700; line-height: 1.45; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; margin: 0; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--cream); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 3.5px solid var(--ink); border-bottom: 3.5px solid var(--ink); rotate: -45deg; translate: 0 -2px; opacity: 0; transition: opacity .15s; }
.check input:checked { background: var(--lime); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: var(--coral-ink); background: #fff6f4; }

/* ---------- the ticket request (/boarding/) ---------- */
.board-card { width: min(560px, 100%); }
.board-card h1 { font-size: clamp(30px, 6.6vw, 40px); }
.board-lead { font-size: 19px; font-weight: 600; }
.board-card .field-text { margin-top: 22px; }
.board-card .btn-full { margin-top: 18px; }
.boarded { display: grid; justify-items: center; text-align: center; gap: 6px; }
.boarded h2 { font-size: clamp(28px, 6vw, 36px); margin: 4px 0 0; outline: none; }
.boarded .lead { display: grid; gap: 2px; margin: 0 0 12px; line-height: 1.35; }
.boarded .lead b { font-size: 22px; }
.boarded .lead span { font-size: 16px; font-weight: 700; color: var(--muted); }
.boarded .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.ticket.issued { margin: 8px 0 14px; rotate: -2deg; animation: issue .7s var(--ease-out) both; }
@keyframes issue { from { opacity: 0; translate: 0 18px; rotate: -8deg; } to { opacity: 1; translate: 0 0; rotate: -2deg; } }

/* ---------- the countdown on the ticket ---------- */
.deadline { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 6px 0 0; padding: 10px 18px 10px 16px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.deadline img { width: 46px; flex: none; }
.deadline p { margin: 0; display: grid; line-height: 1.3; }
.deadline b { font-size: 21px; }
.deadline span { font-size: 15.5px; color: var(--muted); font-weight: 700; }
.deadline.late { background: #fff6f4; }

/* ---------- feedback after a station ---------- */
.g-fb { max-width: 560px; margin: 0 auto; padding: 4px 0 6px; }
.fb-form { display: grid; gap: 4px; }
.fb-form .kicker { margin: 0; }
.fb-clarity { border: 0; margin: 0; padding: 0; min-width: 0; }
.fb-q { font-size: clamp(23px, 4.6vw, 30px); margin: 2px 0 14px; outline: none; }
.fb-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fb-opt { position: relative; cursor: pointer; }
.fb-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fb-opt span {
  display: grid; place-items: center; min-height: 64px; padding: 10px 8px; text-align: center; font-weight: 800; font-size: 19px; line-height: 1.2;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-color .2s;
}
.fb-opt input:checked + span { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.fb-clear input:checked + span { background: var(--lime); }
.fb-partial input:checked + span { background: #ffe08a; }
.fb-unclear input:checked + span { background: #ffb3a6; }
.fb-opt input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (hover: hover) { .fb-opt:hover input:not(:checked) + span { background: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); } }
.fb-clarity.invalid .fb-opt span { border-color: var(--coral-ink); }
.fb-clarity .field-err { margin-top: 10px; }
.fb-note { margin: 14px 0 0; }
.fb-form > .btn { justify-self: start; margin-top: 8px; }
.fb-form .msg:empty { display: none; }
.fb-card { margin: 0 0 22px; }
.fb-thanks { margin: 0; font-size: 19px; outline: none; }

/* ---------- the final feedback (finale) ---------- */
.final-card { display: grid; gap: 6px; justify-items: start; margin: 40px auto 0; max-width: 780px; }
.final-card h2 { margin: 6px 0 2px; }
.final-lead { font-size: 19px; margin: 0; }
.final-card form { width: 100%; }
.final-card .field { margin: 18px 0 0; }
.final-card .was { font-weight: 800; background: #f3fbd9; padding: 1px 0; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
.quote-ok { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.quote-ok legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.quote-ok .field-err { width: 100%; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; font-weight: 700; font-size: 17px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; }
.radio span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--cream); flex: none; }
.radio input:checked + span { background: var(--lime); }
.radio input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--lime); }
.radio input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 3px; }
.quote-ok[aria-invalid="true"] .radio span { border-color: var(--coral-ink); }
.final-card .msg:empty { display: none; }
.final-card form > .btn { margin-top: 20px; }

/* ---------- admin: the two views and the feedback ---------- */
.admin table { min-width: 980px; }
.tabs { display: flex; gap: 8px; margin: 6px 0 22px; border-bottom: 2.5px solid var(--ink); }
.tabs [role="tab"] { font: inherit; font-weight: 800; font-size: 18px; color: var(--muted); background: transparent; border: 2.5px solid transparent; border-bottom: 0; border-radius: 14px 14px 0 0; padding: 8px 20px; margin-bottom: -2.5px; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--paper); border-color: var(--ink); }
.tabs [role="tab"]:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.fb-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.fb-tools p { margin: 0; }
#fb-body h2 { font-size: clamp(24px, 4.4vw, 32px); margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
#fb-body .kicker + h2 { margin-top: 0; }
.fb-stations, .fb-finals { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .fb-stations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fb-stations { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .fb-finals { grid-template-columns: repeat(2, 1fr); } }
.fb-st h3 { font-size: 21px; margin: 0 0 6px; }
.fb-nums { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.fb-nums b { color: var(--ink); }
.clar-bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; border: 2px solid var(--ink); background: var(--line); }
.clar-bar i { display: block; min-width: 6px; }
.clar-bar i + i { border-inline-start: 2px solid var(--ink); }
.c-clear { background: var(--lime); }
.c-partial { background: #ffe08a; }
.c-unclear { background: #ffb3a6; }
.clar-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; font-size: 15px; font-weight: 700; }
.clar-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--ink); }
.notes, .fb-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.notes li { padding: 8px 12px; background: var(--cream); border-radius: 10px; font-size: 16px; line-height: 1.45; }
.fb-list li { padding: 10px 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; line-height: 1.5; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-who { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fb-who b { font-size: 19px; }
.fb-final dl { margin: 0; display: grid; gap: 2px; }
.fb-final dt { font-weight: 800; font-size: 14px; color: var(--muted); margin-top: 8px; }
.fb-final dd { margin: 0; line-height: 1.5; }
.fb-final dd .chip { margin-inline-start: 6px; font-size: 12.5px; }
.quotes { display: grid; gap: 14px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { margin: 0; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); padding: 18px 20px; position: relative; }
.quote blockquote { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.45; border-inline-start: 6px solid var(--coral); padding-inline-start: 14px; }
.quote figcaption { margin-top: 10px; font-weight: 800; color: var(--muted); }
.quote figcaption::before { content: "· "; }
/* the visually hidden header inside the table must stay inside its scroll box */
.table-wrap { position: relative; }
/* phones, dates and stamp counts stay on one line; the table scrolls sideways when it must */
.admin #rows td { padding: 10px 9px; font-size: 15.5px; }
.admin #rows .ltr, .admin td.nw { white-space: nowrap; }
.admin #rows td:nth-child(2) .ltr { white-space: normal; overflow-wrap: anywhere; }

/* ---------- the station page: the game is optional, the feedback is the stamp ---------- */
.video-hint { margin: 24px 2px 0; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.video-hint .link { color: var(--ink); white-space: nowrap; margin-inline-start: 2px; }
.video-hint + .game { margin-top: 20px; }
.game-badge { flex-basis: 100%; margin: 0 0 -2px; line-height: 1; }
.game-badge .chip { font-size: 13.5px; rotate: -2deg; padding: 3px 12px 4px; }

.stamp-card { margin: 12px 0 0; padding: 24px 20px 26px; scroll-margin-top: 84px; }
.stamp-card .fb-form { max-width: 560px; }
.stamp-card .stamp-moment { padding: 0 0 2px; }
.stamp-card .stamp-moment .punch-target { margin-top: 104px; }
.stamp-card > .kicker { margin: 0; }
.stamp-wait { display: none; }
.stamp-card .g-punch { outline: none; margin-top: 18px; }
.stamp-card .fb-thanks { margin: 0 0 16px; }
.stamp-compact { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 18px; }
.stamp-compact .punch-target { width: 76px; height: 76px; margin: 0; }
.stamp-compact .punch-target .rubber { display: none; }
.stamp-compact .punch-target .hole { font-size: 26px; border-width: 3px; }
.stamp-compact .punch-target .mark { font-size: 30px; border-width: 4px; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 6px var(--coral-ink); }
.stamp-done-line { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.35; outline: none; }
.stamp-compact .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 14px; }
@media (min-width: 900px) {
  .stamp-ask { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 40px; align-items: center; }
  .stamp-wait { display: grid; place-items: center; }
  .stamp-wait .punch-target { margin-top: 112px; }
}
@media (min-width: 760px) {
  .stamp-card { padding: 28px 32px 30px; }
  .stamp-compact { grid-template-columns: auto 1fr auto; }
  .stamp-compact .actions { grid-column: auto; }
}

/* ---------- admin: stations, a passenger's strip, how far the video was watched ---------- */
.chip-warn { background: #ffe08a; font-size: 12.5px; padding: 1px 10px; vertical-align: 1px; }
.meter { display: inline-block; width: 46px; height: 9px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--line); overflow: hidden; vertical-align: middle; margin-inline-end: 6px; }
.meter i { display: block; height: 100%; background: var(--lime); }
.clar-mini { display: inline-flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14.5px; font-weight: 700; }
.clar-mini > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.admin .st-table { min-width: 940px; }
.admin .st-table td { vertical-align: middle; }
.admin .st-table td.num { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.admin .st-table td.avg { white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin .st-table tr.soon td { color: var(--muted); }
.st-name { font-weight: 800; white-space: nowrap; }
.st-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-inline-end: 8px; border-radius: 50%; border: 2px dotted #8f8576; font-size: 15px; font-variant-numeric: tabular-nums; }
#view-stations > .small { margin: 0 0 12px; }

/* the name opens the passenger's strip of 12 stations */
.strip-toggle { font: inherit; font-weight: 800; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; text-align: start; }
.strip-toggle .caret { width: 0; height: 0; border-block: 5px solid transparent; border-inline-start: 7px solid currentColor; transition: rotate .18s var(--ease-out); flex: none; }
.strip-toggle[aria-expanded="true"] .caret { rotate: -90deg; }
@media (hover: hover) { .strip-toggle:hover { text-decoration: underline; text-underline-offset: 3px; } }
.admin .strip-row > td { background: var(--cream); padding: 12px 10px 14px; }
.strip-box { position: sticky; inset-inline-start: 10px; max-width: calc(100vw - 72px); }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sc { display: grid; gap: 3px; align-content: start; padding: 8px 10px 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.sc.off { border-style: dashed; border-color: #b9ad98; background: transparent; }
.sc-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px dotted #8f8576; color: #8f8576; font-size: 15px; margin-bottom: 3px; }
.sc-n.stamped { border: 3px solid var(--coral-ink); color: var(--coral-ink); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--coral-ink); rotate: -8deg; }
.sc-line { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.sc-line .sw { margin-inline-end: 6px; }
.sc .meter { width: 34px; }
.sc .g-finished { color: #2f6b12; }
.sc .g-none { color: var(--muted); }
.fb-about { color: var(--muted); }
.fb-about .chip { color: var(--ink); }
.fb-others { margin-top: 10px; }
.fb-others summary { cursor: pointer; font-weight: 800; font-size: 15px; color: var(--muted); width: fit-content; }
.fb-others[open] summary { margin-bottom: 2px; }
/* .section's padding used to cancel .wrap's side padding here: the admin touched the screen edge on a phone */
.admin > .wrap.section { padding-inline: 20px; }

/* ---------- the sales page (home, <main class="sale">): course.sale from /api/board ---------- */
.hero-copy .hero-kicker { margin: 0 0 16px; }
.hero-copy .hero-kicker .tag { margin: 0; font-size: 17px; padding: 5px 16px 7px; rotate: -1.5deg; }
.sale .hero-copy .lead { margin-bottom: 26px; text-wrap: pretty; }
.nw { white-space: nowrap; }
@media (max-width: 719px) { .sale .section { padding: 54px 0; } .sale .hero-copy { padding-bottom: 40px; } }
.sale .hero-ctas .btn { font-size: 21px; min-height: 60px; padding: 12px 30px; }
.have-ticket { font-size: 17px; }
.sale .hero-copy > * { animation: saleIn .8s var(--ease-out) both; }
.sale .hero-copy > :nth-child(2) { animation-delay: .06s; }
.sale .hero-copy > :nth-child(3) { animation-delay: .12s; }
.sale .hero-copy > :nth-child(4) { animation-delay: .18s; }
.sale .hero-copy > :nth-child(5) { animation-delay: .26s; }
@keyframes saleIn { from { opacity: 0; translate: 0 18px; } }

/* sections slide in once (ain.js reveal(); never with reduced motion) */
.motion [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease-out), translate .8s var(--ease-out); }
.motion [data-reveal].in { opacity: 1; translate: none; }

/* a picture in the course frame: ink outline, hard shadow */
.framed { margin: 0; position: relative; }
.framed img { width: 100%; border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 10px 0 var(--ink); }

/* the teaser: a screen on the station wall, in the teaser's own shape (9:16 by default) */
.sale .teaser-section { background: var(--wall); padding: 64px 0 104px; }
.teaser-wrap { display: grid; justify-items: center; }
.teaser-frame {
  --ar: 9 / 16;
  position: relative; max-width: 100%; padding: 10px;
  background: var(--board); border: 2.5px solid var(--ink); border-radius: 28px;
  box-shadow: 0 10px 0 var(--ink), 0 34px 50px -30px rgba(29, 26, 43, .6);
}
.teaser-frame video { display: block; aspect-ratio: var(--ar); width: min(76vw, 320px); height: auto; max-width: 100%; object-fit: contain; background: #000; border-radius: 18px; }
.teaser-frame.wide video { width: min(86vw, 880px); }
.teaser-tag { position: absolute; z-index: 2; top: -20px; inset-inline-start: 18px; margin: 0; font-size: 18px; rotate: -3deg; }
@media (min-width: 900px) { .teaser-frame:not(.wide) video { width: auto; height: min(72vh, 640px); } }

/* who it's for */
.fit-grid, .end-grid { display: grid; gap: 34px; align-items: center; }
.fit-text, .end-text { font-size: clamp(23px, 4.2vw, 32px); font-weight: 700; line-height: 1.45; margin: 0; text-wrap: pretty; }
.hl { background: linear-gradient(transparent 56%, var(--lime) 56% 94%, transparent 94%); padding-inline: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fit-tag { display: block; width: fit-content; margin-top: 18px; font-size: clamp(20px, 3.2vw, 25px); rotate: -1.5deg; }
@media (min-width: 900px) {
  .fit-grid { grid-template-columns: 1.08fr .92fr; gap: 70px; }
  .end-grid { grid-template-columns: .95fr 1.05fr; gap: 70px; }
}

/* at the end of the ride */
.end-tag { position: absolute; top: -18px; inset-inline-start: 18px; rotate: -3deg; }

/* the price: a ticket you can hold, with a tear line and notches, like the course ticket */
.sale .price { --tk-bg: var(--wall); background: var(--wall); padding: 64px 0 104px; }
.price-hand { text-align: center; font-size: clamp(34px, 6vw, 46px); margin: 0 0 34px; rotate: -2deg; }
.tk-wrap { position: relative; max-width: 900px; margin: 0 auto; perspective: 1400px; }
.tk {
  position: relative; display: grid; text-align: start;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .25 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  border: 2.5px solid var(--ink); border-radius: 26px;
  box-shadow: 0 10px 0 var(--ink), 0 44px 60px -38px rgba(29, 26, 43, .6);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out);
}
.tk.held { transition-duration: .15s; }
.tk::after {
  content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .7), transparent 42%); mix-blend-mode: soft-light;
}
.tk.held::after { opacity: 1; }
.tk-main { padding: 0 22px 24px; }
.tk-top {
  display: flex; justify-content: space-between; gap: 12px; margin: 0 -22px 22px; padding: 10px 22px 11px;
  background: var(--lime); border-bottom: 2.5px solid var(--ink); border-radius: 23.5px 23.5px 0 0;
  font-weight: 800; font-size: 15px; letter-spacing: .06em; line-height: 1.3;
}
.tk-title { font-size: clamp(30px, 6vw, 44px); margin: 0 0 18px; }
.tk-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.tk-list li { position: relative; padding-inline-start: 40px; font-weight: 700; font-size: 19px; line-height: 1.4; }
.tk-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.6l3 2.9 6.6-7' fill='none' stroke='%231d1a2b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.tk-holes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 300px; }
.tk-holes i { aspect-ratio: 1; border-radius: 50%; border: 2px dotted #8f8576; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #8f8576; }
.tk-stub {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 28px 22px 30px; text-align: center;
  border-top: 2.5px dashed var(--ink); border-radius: 0 0 23.5px 23.5px;
  background: repeating-linear-gradient(-45deg, transparent 0 11px, rgba(169, 210, 42, .16) 11px 13px);
}
.tk-train { width: 40px; height: 40px; color: var(--ink); opacity: .85; }
/* the notches where the ticket tears: half circles in the color behind the ticket */
.tk-stub::before, .tk-stub::after {
  content: ""; position: absolute; top: -14.75px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--tk-bg, var(--cream)); border: 2.5px solid var(--ink);
}
.tk-stub::before { left: -17.25px; clip-path: inset(0 0 0 calc(50% - 2px)); }
.tk-stub::after { right: -17.25px; clip-path: inset(0 calc(50% - 2px) 0 0); }
.tk-price { margin: 0; font-size: clamp(66px, 16vw, 92px); font-weight: 800; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tk-cur { font-size: .5em; }
.tk-buy { display: grid; width: 100%; max-width: 330px; }
.tk-buy .btn { width: 100%; }
.btn-soon, .btn-soon[aria-disabled="true"] { background: var(--paper); color: var(--muted); border: 2.5px dashed var(--muted); box-shadow: none; transform: none; cursor: not-allowed; font-size: 18px; }
@media (hover: hover) { .btn-soon:hover { transform: none; box-shadow: none; } }
@media (min-width: 760px) {
  .tk { grid-template-columns: 1fr 310px; }
  .tk-main { padding: 0 34px 30px; }
  .tk-top { margin: 0 -34px 26px; padding: 11px 34px 12px; border-radius: 0; border-start-start-radius: 23.5px; }
  .tk-stub { border-top: 0; border-inline-start: 2.5px dashed var(--ink); border-radius: 0; border-start-end-radius: 23.5px; border-end-end-radius: 23.5px; padding: 30px 28px 132px; }
  /* in RTL the stub is on the left, so the tear line is its right edge */
  .tk-stub::before, .tk-stub::after { left: auto; right: -14.75px; }
  .tk-stub::before { top: -17.25px; clip-path: inset(calc(50% - 2px) 0 0 0); }
  .tk-stub::after { top: auto; bottom: -17.25px; clip-path: inset(0 0 4.75px 0); }
}

/* the gift: a note with a coral rubber stamp, pressed when it comes into view */
.gift {
  position: relative; z-index: 2; width: min(330px, 90%); margin: -16px auto 0; padding: 20px 22px 18px;
  background: var(--paper); border-radius: 6px; text-align: center; rotate: -2.5deg;
  box-shadow: 0 12px 20px -12px rgba(29, 26, 43, .55);
}
.gift::before {
  content: ""; position: absolute; inset: 7px; border: 3px solid var(--coral-ink); border-radius: 5px; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--coral-ink); mix-blend-mode: multiply; opacity: .9;
}
.gift-ink { margin: 0 0 6px; font-weight: 800; font-size: 32px; line-height: 1; color: var(--coral-ink); letter-spacing: .02em; }
.gift-line { margin: 0 0 8px; font-weight: 700; font-size: 17px; line-height: 1.45; color: #9e2b19; text-wrap: balance; }
.gift-link { color: #9e2b19; font-size: 16px; }
.gift-rubber { position: absolute; z-index: 3; width: 92px; left: 50%; top: -78px; margin-left: -46px; transform-origin: 50% 100%; pointer-events: none; opacity: 0; filter: drop-shadow(0 12px 10px rgba(60, 40, 20, .25)); }
.gift.waiting .gift-ink, .gift.waiting::before { opacity: 0; }
.gift.pressing .gift-rubber { animation: giftRubber 1s var(--ease-in-out) both; }
.gift.pressing .gift-ink, .gift.pressing::before { animation: giftInk .4s .44s var(--ease-out) both; }
@keyframes giftRubber {
  0% { opacity: 0; transform: translateY(-46%) rotate(-10deg); }
  18% { opacity: 1; }
  44%, 58% { opacity: 1; transform: translateY(30%) rotate(0deg) scaleY(.92); }
  100% { opacity: 0; transform: translateY(-70%) rotate(12deg); }
}
@keyframes giftInk { from { opacity: 0; scale: 1.18; } to { opacity: .92; scale: 1; } }
@media (min-width: 760px) {
  .sale .price { padding-bottom: 150px; }
  .gift { position: absolute; inset-inline-end: -26px; bottom: -64px; width: 300px; margin: 0; rotate: -5deg; }
}

/* questions */
.faq { interpolate-size: allow-keywords; }
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 20px; border-radius: 15px; font-weight: 800; font-size: clamp(19px, 2.6vw, 22px); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--lime); transition: rotate .3s var(--ease-out), background-color .2s; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; border-radius: 2px; background: var(--ink); translate: -50% -50%; }
.faq-item summary i::after { rotate: 90deg; }
.faq-item[open] summary i { rotate: 45deg; background: var(--coral); }
@media (hover: hover) { .faq-item summary:hover i { background: #d6ff5c; } .faq-item[open] summary:hover i { background: var(--coral); } }
.faq-item > p { margin: 0; padding: 0 20px 18px; font-size: 18px; }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .32s var(--ease-out), content-visibility .32s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .sale .hero-copy > * { animation: none; }
  .tk { transform: none; transition: none; }
  .gift-rubber { display: none; }
}
