/* Youth Week 2026 — built from Figma "Site and Cards" (node 1497:2717).
   Desktop values follow the 1440 × 976 frame, scaled down for a calmer layout; smaller screens use clamp().
   Motion uses one duration token and one easing token per property (motion-system). */

:root {
  --cream: #FDF0CC;
  --navy: #03194A;
  --ink: #1A1A1A;
  --blue: #4C7ED6;
  --red: #FF613E;
  --green: #308F00;
  --paper: #FFFFE9;
  --wash: #F8F5EA;
  --field: rgba(26, 26, 26, .05);
  --line: rgba(26, 26, 26, .08);
  --muted: rgba(26, 26, 26, .55);

  --duration-xshort: 75ms;
  --duration-short: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-xslow: 600ms;
  --ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-out-quint: cubic-bezier(.23, 1, .32, 1);
  --ease-in-cubic: cubic-bezier(.55, .055, .675, .19);
  --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif; /* stand-in for Haas Grot Text */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------- Page ---------- */
.page {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bg {
  position: absolute; inset: 0;
  background: var(--cream) url("assets/site-bg.jpg") center bottom / cover no-repeat;
  animation: bg-in var(--duration-xslow) var(--ease-out-quint) both;
}
/* The plastic-wrap texture drifts slowly: two copies of it move at different speeds so the creases seem to flow. */
.sheen {
  position: absolute; inset: 0;
  mix-blend-mode: lighten;
  opacity: .54;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
.sheen::before, .sheen::after {
  content: "";
  position: absolute; inset: -6%;
  background: url("assets/site-overlay.jpg") center / cover no-repeat;
  will-change: transform;
}
.sheen::before { animation: sheen-a 26s var(--ease-in-out-cubic) infinite alternate; }
.sheen::after {
  mix-blend-mode: lighten;
  opacity: .55;
  transform: scaleX(-1);
  animation: sheen-b 34s var(--ease-in-out-cubic) infinite alternate;
}
@keyframes sheen-a {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02) rotate(-.4deg); }
  to   { transform: translate3d(1.5%, 1.2%, 0) scale(1.06) rotate(.5deg); }
}
@keyframes sheen-b {
  from { transform: scaleX(-1) translate3d(2%, 1%, 0) scale(1.08) rotate(.6deg); }
  to   { transform: scaleX(-1) translate3d(-2%, -1.5%, 0) scale(1.03) rotate(-.5deg); }
}
@keyframes bg-in { from { transform: scale(1.04); } to { transform: none; } }

/* ---------- Header ---------- */
.top {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(20px, min(3.4vw, 5svh), 46px) clamp(20px, 4vw, 56px) 0;
  animation: fade-in var(--duration-slow) var(--ease-out-cubic) both;
}
.lockup { display: flex; align-items: center; gap: 7px; color: var(--navy); }
.lockup-logos { display: flex; align-items: center; gap: 4px; }
.lockup-logos img:first-child { width: 22px; height: 33.5px; object-fit: contain; }
.lockup-logos img:last-child { width: 29px; height: 29px; object-fit: contain; }
.lockup-text { display: flex; flex-direction: column; gap: 3px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.lockup-text .l1 { font-size: clamp(11px, 1vw, 14px); letter-spacing: -0.04em; }
.lockup-text .l2 { font-size: clamp(10.5px, .94vw, 13px); letter-spacing: -0.04em; opacity: .85; }

.btn-detail {
  flex: none;
  height: 38px; padding: 0 16px;
  border: 0; border-radius: 10px; background: rgba(26, 26, 26, .08);
  font-size: clamp(13px, 1.08vw, 15px); letter-spacing: -0.03em; text-transform: uppercase; line-height: 1;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--duration-short) var(--ease-out-cubic), transform var(--duration-short) var(--ease-out-cubic);
}
@media (hover: hover) and (pointer: fine) {
  .btn-detail:hover { background: rgba(26, 26, 26, .15); }
}
.btn-detail:active { transform: scale(.98); transition-duration: var(--duration-xshort); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, min(2.3vw, 3.4svh), 32px);
  padding: 12px 20px clamp(36px, 9svh, 104px);
  min-height: 0;
}
/* Countdown: one blue strip, as in Figma */
.countdown {
  margin: 0;
  min-width: min(340px, 100%);
  max-width: 100%;
  padding: 9px 16px;
  white-space: nowrap;
  background: var(--blue);
  color: var(--paper);
  text-align: center;
  font-size: clamp(16px, 1.55vw, 22px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.countdown .u { color: rgba(255, 255, 233, .75); margin-right: .32em; }
.countdown .u:last-child { margin-right: 0; }

/* Trims only on short windows so the page stays one fold. */
.title {
  margin: 0;
  width: clamp(250px, min(35vw, (100svh - 360px) * 1.249), 500px);
  perspective: 900px;
}
.title img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
/* Tilts toward the pointer (script sets --rx / --ry); eases back to rest on leave. */
.tilt {
  display: block;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ts, 1));
  transition: transform var(--duration-slow) var(--ease-out-quint);
  will-change: transform;
}
.tilt.is-live { transition-duration: var(--duration-short); transition-timing-function: var(--ease-out-cubic); }

.actions {
  width: min(520px, 100%);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-register {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(130px, 13.4vw, 192px);
  height: clamp(44px, 3.8vw, 54px);
  background: var(--red) var(--noise);
  color: var(--paper);
  font-size: clamp(20px, 2.15vw, 30px);
  letter-spacing: -0.04em; line-height: 1;
  text-transform: uppercase; text-decoration: none;
  transition: transform var(--duration-short) var(--ease-out-cubic), box-shadow var(--duration-normal) var(--ease-out-cubic);
}
@media (hover: hover) and (pointer: fine) {
  .btn-register:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(255, 97, 62, .75); }
}
.btn-register:active { transform: scale(.98); box-shadow: none; transition-duration: var(--duration-xshort); }
/* Luma's embed stylesheet restyles anything with .luma-checkout--button (navy pill). Keep our own button. */
.btn-register.luma-checkout--button,
.btn-register.luma-checkout--button:hover {
  background: var(--red) var(--noise);
  color: var(--paper);
  border: 0; border-radius: 0; padding: 0;
  font-size: clamp(20px, 2.15vw, 30px); font-weight: 500;
  transition: transform var(--duration-short) var(--ease-out-cubic), box-shadow var(--duration-normal) var(--ease-out-cubic);
}
@media (hover: hover) and (pointer: fine) {
  .btn-register.luma-checkout--button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(255, 97, 62, .75); }
}
.btn-register.luma-checkout--button:active { transform: scale(.98); box-shadow: none; transition-duration: var(--duration-xshort); }

.btn-generate {
  display: inline-flex; align-items: center; gap: 4px;
  height: clamp(44px, 3.8vw, 54px);
  padding: 0 0 0 8px;
  border: 0; background: none; color: var(--ink);
  font-size: clamp(20px, 2.15vw, 30px);
  letter-spacing: -0.04em; line-height: 1;
  text-transform: uppercase;
  transition: transform var(--duration-short) var(--ease-out-cubic);
}
.btn-generate svg { width: clamp(32px, 3.2vw, 46px); height: auto; transition: transform var(--duration-normal) var(--ease-out-quart); }
@media (hover: hover) and (pointer: fine) {
  .btn-generate:hover svg { transform: translateX(6px); }
}
.btn-generate:active { transform: scale(.98); transition-duration: var(--duration-xshort); }

/* One orchestrated entrance on load */
.countdown { animation: rise var(--duration-slow) var(--ease-out-quart) .08s both; }
.title     { animation: pop-in var(--duration-xslow) var(--ease-out-quart) .16s both; }
.actions   { animation: rise var(--duration-slow) var(--ease-out-quart) .3s both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop-in {
  0%   { opacity: 0; transform: translateY(12px) scale(.94); }
  60%  { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Panels (Generate card / More detail) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(26, 26, 26, .42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity var(--duration-normal) var(--ease-in-cubic);
}
.scrim.is-open { opacity: 1; transition: opacity var(--duration-slow) var(--ease-out-cubic); }

/* A floating sheet inset from the screen edge (as in the Figma side nav). Phones get a bottom sheet below. */
.panel {
  position: fixed; z-index: 21;
  top: 20px; right: 20px; bottom: 20px;
  width: min(540px, calc(100vw - 40px));
  display: flex; flex-direction: column;
  background: #fff var(--noise);
  border-radius: 28px;
  box-shadow: 0 28px 70px -20px rgba(3, 25, 74, .4), 0 0 0 1px rgba(26, 26, 26, .04);
  overflow: hidden;
  transform: translateX(calc(100% + 40px));
  transition: transform var(--duration-normal) var(--ease-in-cubic);   /* exit: quicker, plain */
}
.panel.is-open { transform: none; transition: transform var(--duration-slow) var(--ease-out-quint); }
.panel.is-dragging { transition: none; }

.panel-grip { display: none; }
.panel-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px 24px 14px 32px;
}
.panel-title {
  margin: 0;
  font-size: 22px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1;
  text-transform: uppercase;
}
.panel-close {
  flex: none;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--field); color: var(--ink);
  transition: background-color var(--duration-short) var(--ease-out-cubic), transform var(--duration-short) var(--ease-out-cubic);
}
.panel-close svg { transition: transform var(--duration-normal) var(--ease-out-quart); }
@media (hover: hover) and (pointer: fine) {
  .panel-close:hover { background: rgba(26, 26, 26, .1); }
  .panel-close:hover svg { transform: rotate(90deg); }
}
.panel-close:active { transform: scale(.94); transition-duration: var(--duration-xshort); }

.panel-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 6px 32px 30px;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(26, 26, 26, .15) transparent;
}

/* Content rises in, one after another, the first time a panel opens. */
.panel.is-intro .rise {
  animation: rise var(--duration-slow) var(--ease-out-quart) both;
  animation-delay: calc(var(--i, 0) * 40ms + 140ms);
}

/* Card preview */
.preview {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, max(200px, 100svh - 310px));
  margin: 2px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 1px 2px rgba(3, 25, 74, .1), 0 18px 38px -20px rgba(3, 25, 74, .45);
  flex: none;
}
.preview canvas { width: 100%; height: 100%; display: block; }
/* The photo window sits at 339–745 × 402–808 on the 1080 card. */
.photo-hit {
  position: absolute;
  left: 31.76%; top: 37.42%; width: 36.62%; height: 36.62%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out-cubic);
}
.photo-hit:has(.photo-hint:not(.is-hidden)) {
  background: rgba(3, 25, 74, .3);
  outline: 2px dashed rgba(255, 255, 233, .85); outline-offset: -10px;
}
@media (hover: hover) and (pointer: fine) {
  .photo-hit:has(.photo-hint:not(.is-hidden)):hover { background: rgba(3, 25, 74, .42); }
}
.photo-hint {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--paper); text-align: center;
  font-size: clamp(11px, 2.4vw, 13.5px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15;
  animation: nudge 2.4s ease-in-out infinite;
  transition: transform var(--duration-normal) var(--ease-out-quart);
}
.photo-hit:hover .photo-hint { transform: scale(1.05); }
.photo-hint.is-hidden { display: none; }
.photo-hit:focus-within, #photo:focus-visible + .photo-hit { outline: 2px solid var(--navy); }

.change-photo {
  position: absolute; top: 39.5%; left: 50%; transform: translateX(-50%);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(26, 26, 26, .75); color: var(--paper);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-short) var(--ease-out-cubic);
}
.change-photo:hover { background: var(--ink); }

/* Name field */
.field { position: relative; margin-top: 16px; flex: none; }
.field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color var(--duration-short) var(--ease-out-cubic); }
.name-input {
  width: 100%; height: 52px;
  padding: 0 16px 0 46px;
  border: 1.5px solid transparent; border-radius: 14px;
  background: var(--field);
  font: inherit; font-size: 17px; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--ink);
  transition: background-color var(--duration-short) var(--ease-out-cubic), border-color var(--duration-short) var(--ease-out-cubic), box-shadow var(--duration-normal) var(--ease-out-cubic);
}
.name-input::placeholder { color: rgba(26, 26, 26, .35); text-transform: none; letter-spacing: -0.01em; }
.name-input:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(76, 126, 214, .2); }
.field:focus-within svg { color: var(--navy); }
.name-input.is-missing { border-color: var(--red); animation: shake .35s ease; }

@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.panel-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.btn-dark, .btn-light, .btn-outline {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; padding: 0 16px; gap: 8px;
  border-radius: 14px; text-decoration: none; text-transform: uppercase;
  font-size: 16px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
  transition: transform var(--duration-short) var(--ease-out-cubic), background-color var(--duration-short) var(--ease-out-cubic), box-shadow var(--duration-normal) var(--ease-out-cubic);
}
.btn-dark { border: 0; background: var(--ink); color: var(--paper); }
.btn-light, .btn-outline { border: 1.5px solid rgba(26, 26, 26, .14); background: #fff; color: var(--ink); }
.btn-outline { margin-top: 20px; flex: none; }
.btn-dark svg, .btn-light svg { flex: none; transition: transform var(--duration-normal) var(--ease-out-quart); }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(26, 26, 26, .6); }
  .btn-light:hover, .btn-outline:hover { background: var(--field); }
  .btn-dark:hover svg { transform: translateY(2px); }
  .btn-light:hover svg { transform: translateY(-2px); }
}
.btn-dark:active, .btn-light:active, .btn-outline:active { transform: scale(.98); box-shadow: none; transition-duration: var(--duration-xshort); }
.btn-dark[disabled], .btn-light[disabled] { opacity: .5; cursor: wait; }

/* Details */
.facts { margin: 4px 0 0; flex: none; }
.facts > div { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(26, 26, 26, .1); }
.facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(26, 26, 26, .5); padding-top: 4px; }
.facts dd { margin: 0; font-size: 19px; letter-spacing: -0.03em; line-height: 1.25; color: var(--navy); text-wrap: pretty; }
.facts .ref { white-space: nowrap; color: var(--blue); }

.sched { margin-top: 18px; border-top: 1px solid rgba(26, 26, 26, .1); padding-top: 18px; flex: none; }
.sched-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sched-head h3 { margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
.dot { width: 8px; height: 8px; display: inline-block; background: var(--blue); }

.days { margin: 0; padding: 0; list-style: none; }
.day {
  display: grid; grid-template-columns: 52px 1fr; align-items: center; column-gap: 14px;
  padding: 9px 0;
}
.day + .day { border-top: 1px dashed rgba(26, 26, 26, .12); }
.day.pre { padding-bottom: 12px; }
.day.pre + .day { border-top: 1px solid rgba(26, 26, 26, .22); padding-top: 12px; }
.date {
  margin: 0; display: flex; flex-direction: column; align-items: flex-start;
  font-size: 24px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.date span { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(26, 26, 26, .5); margin-bottom: 3px; }
.note { grid-column: 2; margin: 5px 0 0; font-size: 12.5px; letter-spacing: .01em; color: rgba(26, 26, 26, .55); }

.pills { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px 7px 10px;
  background: var(--cream); color: var(--navy);
  font-size: 14.5px; letter-spacing: -0.015em; line-height: 1.15;
  border-left: 3px solid var(--navy);
}
.pill.youth { border-left-color: var(--blue); }
.pill.sport { border-left-color: var(--red); }
.pill.sun { border-left-color: var(--green); }
.pill time { font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: rgba(3, 25, 74, .6); }

.days:not(.is-open) [data-more] { display: none; }
.days.is-open [data-more] { animation: rise var(--duration-slow) var(--ease-out-quart) both; }
.days.is-open [data-more]:nth-of-type(2) { animation-delay: 0ms; }
.days.is-open [data-more]:nth-of-type(5) { animation-delay: 40ms; }
.days.is-open [data-more]:nth-of-type(6) { animation-delay: 80ms; }
.days.is-open [data-more]:nth-of-type(7) { animation-delay: 120ms; }
.days.is-open [data-more]:nth-of-type(8) { animation-delay: 160ms; }
.days.is-open [data-more]:nth-of-type(9) { animation-delay: 200ms; }
.days-toggle {
  margin-top: 8px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; border: 1px solid rgba(26, 26, 26, .14); background: transparent;
  font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
  transition: background-color var(--duration-short) var(--ease-out-cubic), transform var(--duration-short) var(--ease-out-cubic);
}
@media (hover: hover) and (pointer: fine) {
  .days-toggle:hover { background: var(--field); }
}
.days-toggle:active { transform: scale(.98); transition-duration: var(--duration-xshort); }
.days-toggle svg { transition: transform var(--duration-normal) var(--ease-in-out-cubic); }
.days-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 40;
  transform: translate(-50%, 12px);
  padding: 13px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; letter-spacing: -0.015em;
  box-shadow: 0 14px 30px -12px rgba(26, 26, 26, .5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-short) var(--ease-in-cubic), transform var(--duration-short) var(--ease-in-cubic);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); transition: opacity var(--duration-normal) var(--ease-out-cubic), transform var(--duration-slow) var(--ease-out-quint); }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .top { padding: 18px 16px 0; }
  .lockup-text .l1, .lockup-text .l2 { font-size: 10.5px; }
  .lockup-logos img:first-child { width: 18px; height: 27px; }
  .lockup-logos img:last-child { width: 24px; height: 24px; }
  .btn-detail { height: 34px; padding: 0 12px; font-size: 12.5px; }

  .hero { gap: 14px; padding: 12px 20px clamp(28px, 8svh, 72px); }
  .title { width: clamp(220px, min(88vw, (100svh - 330px) * 1.249), 400px); }
  .countdown { min-width: 0; font-size: 17px; padding: 9px 14px; }
  .actions { flex-direction: column; gap: 2px; }
  .btn-register, .btn-register.luma-checkout--button { width: min(100%, 280px); height: 50px; font-size: 24px; }
  .btn-generate { font-size: 20px; height: 44px; }
  .btn-generate svg { width: 34px; }

  /* Floating bottom sheet: gaps on every side, as in the Figma side nav */
  .panel {
    top: auto; left: 10px; right: 10px; width: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-height: calc(100svh - 56px);
    border-radius: 28px;
    transform: translateY(calc(100% + 24px));
  }
  .panel.is-open { transform: none; }
  .panel-grip { display: block; flex: none; height: 24px; position: relative; touch-action: none; cursor: grab; }
  .panel-grip::after { content: ""; position: absolute; left: 50%; top: 10px; width: 36px; height: 4px; margin-left: -18px; border-radius: 99px; background: rgba(26, 26, 26, .16); }
  .panel-head { padding: 0 14px 8px 18px; touch-action: none; }
  .panel-title { font-size: 20px; }
  .panel-body { padding: 4px 18px 20px; }
  .preview { width: min(100%, 420px, max(180px, 100svh - 318px)); border-radius: 18px; }
  .field { margin-top: 12px; }
  .name-input { height: 50px; font-size: 16px; }   /* 16px stops iOS zooming in on focus */
  .panel-actions { margin-top: 10px; gap: 8px; }
  .btn-dark, .btn-light { height: 50px; font-size: 15px; padding: 0 10px; }
  .facts > div { grid-template-columns: 64px 1fr; gap: 10px; padding: 11px 0; }
  .facts dd { font-size: 16px; }
  .pill { font-size: 13.5px; }
  .toast { bottom: max(24px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tilt { transform: none !important; }
  .scrim, .panel { transition: opacity var(--duration-short) linear !important; }
  .panel, .panel.is-open { transform: none !important; opacity: 0; }
  .panel.is-open, .scrim.is-open { opacity: 1; }
  .toast { transition: opacity var(--duration-short) linear !important; transform: translate(-50%, 0); }
}
