/* OAKBERRY onboarding flow — KIOSK build
   Full-screen, no nav chrome, tap anywhere to advance.
   Brand purple sampled from the welcome mockup: #481A59
   Design system: Material 3 (Roboto, primary #6750A4, mint accent #00C8B3) */

/* self-hosted Roboto (design-system font) */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/roboto-var.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/roboto-italic.woff2") format("woff2");
}

:root {
  --oak-purple: #4e2464;         /* main colour — matches the screen artwork backgrounds */
  --oak-purple-deep: #2d1038;
  --oak-primary: #6750a4;
  --oak-mint: #00c8b3;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  color: #fff;
  background: var(--oak-purple);   /* clean, flat main colour on every page */
  overflow: hidden;              /* kiosk: never scroll */
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---- dev footer: filename + debug toggle (remove for production) ---- */
.dev-bar {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.file-tag {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}
.debug-toggle,
.restart-btn {
  pointer-events: auto;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.debug-toggle:hover,
.restart-btn:hover { background: rgba(0, 0, 0, 0.55); }
.debug-toggle[aria-pressed="true"] {
  color: #05201d;
  background: var(--oak-mint);
  border-color: var(--oak-mint);
}

/* on small/touch screens, hide the dev-only pills — keep just a clean restart */
@media (max-width: 560px) {
  .dev-bar .file-tag,
  .dev-bar .debug-toggle { display: none; }
}

/* ---- Build-Your-Own Bowl (after-loading ordering screen) ---- */
.bowl {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;             /* phone-width on big screens */
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--oak-purple);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}
.bowl-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bowl-back {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.08);
}
.bowl-head-title {
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.bowl-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bowl-hero {
  display: grid;
  place-items: center;
  background: #f3ede2;
  padding: 14px;
}
.bowl-hero img { height: clamp(150px, 24vh, 230px); width: auto; }

/* result screen: recommended toppings with reasons (no checkboxes) */
.result-intro { padding: 20px 22px 4px; text-align: center; }
.result-intro h1 { margin: 0; font-size: clamp(22px, 4.8vw, 30px); font-weight: 800; font-style: italic; line-height: 1.1; }
.result-intro p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.picks { list-style: none; margin: 10px 0 0; padding: 0; }
.pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pick .thumb {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.pick .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pick-name { font-size: 17px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.pick-price { font-size: 14px; font-weight: 600; color: var(--oak-mint); }
.pick-reason { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.72); }
.pick-empty { padding: 44px 24px; text-align: center; color: rgba(255, 255, 255, 0.6); list-style: none; }
/* live "why this bowl" paragraph (OpenAI via the Worker) */
.why {
  margin: 8px 20px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 200, 179, 0.1);
  border: 1px solid rgba(0, 200, 179, 0.28);
  color: #eafffb;
  font-size: 15px;
  line-height: 1.5;
}
.why.loading { color: rgba(255, 255, 255, 0.55); font-style: italic; }
.bowl-info { padding: 18px 20px 4px; }
.bowl-info h1 { margin: 0; font-size: clamp(20px, 3.6vw, 26px); font-weight: 700; }
.bowl-info .cal { color: rgba(255, 255, 255, 0.6); font-size: 14px; margin-top: 4px; }
.bowl-info .desc { color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.45; margin: 10px 0; }
.contains { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.contains em {
  font-style: normal;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
}
.stepper { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent; color: #fff; font-size: 22px; cursor: pointer;
}
.stepper #qty { font-size: 18px; min-width: 18px; text-align: center; }
.ai-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 200, 179, 0.14);
  border: 1px solid rgba(0, 200, 179, 0.4);
  color: #bff6ee;
  font-size: 14px;
  font-weight: 500;
}
.cat-head {
  padding: 20px 20px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.top-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
}
.top-row.on { background: rgba(0, 200, 179, 0.07); }
.top-row .chk-input { position: absolute; opacity: 0; pointer-events: none; }
.top-row .chk {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  display: grid;
  place-items: center;
}
.top-row.on .chk { background: var(--oak-mint); border-color: var(--oak-mint); }
.top-row.on .chk::after { content: "\2713"; color: #05201d; font-size: 15px; font-weight: 800; }
.top-row .thumb {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.top-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.top-name { font-size: 16px; font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}
.top-price { flex: none; font-size: 15px; font-weight: 600; color: var(--oak-mint); }
.bowl-foot-space { height: 10px; }
.bowl-actions {
  flex: none;
  display: flex;
  gap: 12px;
  margin: 12px 16px calc(14px + env(safe-area-inset-bottom));
}
.bowl-redo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.bowl-redo .redo-ico { font-size: 20px; line-height: 1; }
.bowl-redo:active { transform: scale(0.98); }
.bowl-cart {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #5a2d78;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.bowl-cart:active { transform: scale(0.99); }
/* subtle fade when the bowl swaps on Redo */
.picks.swap { animation: pick-fade 0.28s ease; }
@keyframes pick-fade { from { opacity: 0.15; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .picks.swap { animation: none; } }
.bowl-toast {
  position: fixed;
  left: 50%;
  bottom: 42%;
  transform: translate(-50%, 20px);
  background: var(--oak-mint);
  color: #05201d;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 26px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.bowl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- debug mode: reveal + label every interactive area ---- */
.debug .screen-link,
.debug .hotspot {
  outline: 2px dashed var(--oak-mint);
  outline-offset: -2px;
  background: rgba(0, 200, 179, 0.14);
}
.debug .screen-link::after,
.debug .hotspot::after {
  content: "→ " attr(href);
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
  font: 600 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #05201d;
  background: var(--oak-mint);
  padding: 4px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* the full-screen advance link: pin its label top-center so it's obvious */
.debug .screen-link::after { left: 50%; transform: translateX(-50%); }

/* ---- full-screen stage ---- */
.stage {
  position: fixed;
  inset: 0;
}

.phone {                          /* now a full-viewport screen, not a device frame */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;           /* show the whole design; purple fills any letterbox */
}

/* whole screen is the tap target that advances the flow */
.screen-link {
  position: fixed;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* ---- aspect-accurate frame + tappable hotspots ----
   .frame is sized to exactly match the contained image (no letterbox guess),
   so percentage-positioned .hotspot links line up with the artwork. */
.fit {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}
/* top-align the screen: artwork flush to the top, main colour fills the rest */
.fit.top { align-items: start; }

/* welcome splash: logo centered at a capped size on the brand purple (never stretches) */
body[data-step="welcome"] { background: #481a59; }
.welcome { display: grid; place-items: center; }
.welcome .logo {
  width: min(72vw, 400px);
  max-height: 78vh;
  height: auto;
  object-fit: contain;
}
.frame {
  position: relative;
  /* the classic object-fit:contain box, as a positioned element */
  width: min(100vw, calc(100vh * var(--w) / var(--h)));
  aspect-ratio: var(--w) / var(--h);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hotspot {
  position: absolute;
  z-index: 3;
  cursor: pointer;
  border-radius: 24px;
  /* debug outline — uncomment to see hotspot boxes:
  outline: 2px dashed rgba(0,200,179,0.9); */
}

/* ---- Normal Selection Flow screen ---- */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  z-index: -1;                 /* behind content, above the purple background */
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(56px, 15vw, 200px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.06);
}
.sel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vh, 56px);
  padding: 6vh 6vw;
  text-align: center;
}
.sel h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sel .sub {
  margin: 10px 0 0;
  font-size: clamp(15px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.7);
}
.toppings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(12px, 2vw, 20px);
  width: min(900px, 90vw);
  pointer-events: none; /* placeholder: tapping anywhere goes back for now */
}
.topping {
  padding: 22px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(15px, 1.8vw, 19px);
}
.topping span { display: block; font-size: 2em; margin-bottom: 8px; }

/* ---- About You: cover the baked NEXT + real button placed lower ---- */
.field-cover {
  position: absolute;
  z-index: 3;
  background: #4e2464;         /* matches the About You background */
}
.next-btn {
  /* fixed to the viewport so it stays in the same place across every screen
     (no jumping between scenes) */
  position: fixed;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  border-radius: 999px;
  background: var(--oak-mint);
  color: #fff;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.next-btn::before { content: "\203A"; font-size: 1.35em; line-height: 1; }
.next-btn:hover { filter: brightness(1.06); }
.next-btn:active { transform: translateX(-50%) scale(0.97); }
/* disabled until required inputs are complete */
.next-btn.is-disabled {
  pointer-events: none;
  opacity: 0.4;
  filter: grayscale(0.7);
  cursor: not-allowed;
}

/* ---- Loading (native): title + animated ring + pulsing parrot ---- */
.loadscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 6vh, 58px);
  padding: 8vh 8vw;
  text-align: center;
}
.load-title {
  margin: 0;
  font-size: clamp(30px, 7.2vw, 56px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  max-width: 14ch;
}
.load-sub {
  margin: 0;
  font-size: clamp(15px, 2.4vw, 22px);
  color: rgba(255, 255, 255, 0.8);
}
.loader-wrap {
  position: relative;
  width: min(300px, 66vw);
  aspect-ratio: 1;
  margin-top: clamp(8px, 2vh, 30px);
}
.loader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.loader .spin {
  transform-box: fill-box;      /* iOS Safari: rotate around the circle's own centre */
  transform-origin: center;
  animation: loader-rot 1.05s linear infinite;
}
@keyframes loader-rot { to { transform: rotate(360deg); } }

.parrot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  animation: parrot-pulse 1.6s ease-in-out infinite;
}
@keyframes parrot-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  /* keep the spinner — it's functional loading feedback; only drop the decorative pulse */
  .parrot { animation: none; }
}

/* ---- Zigzag "spikes" top decoration (scalable, matches the mockups) ---- */
.spikes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(64px, 11vh, 120px);
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* ---- Diet toggles screen (nutritional-2) ---- */
.diet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 6vh, 60px);
  padding: 8vh 8vw 20vh;   /* bottom padding clears the fixed NEXT button */
  text-align: center;
}
.diet-title {
  margin: 0;
  font-size: clamp(26px, 5.2vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 16ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 20px);
  max-width: 680px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip:active { transform: scale(0.97); }
.chip.on {
  background: var(--oak-mint);
  border-color: var(--oak-mint);
  color: #05201d;
  font-weight: 700;
}
.chip.on::before { content: "\2713"; font-weight: 800; }

/* ---- Nutritional-1 (How are you feeling today) native layout ---- */
.feel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 30px);
  padding: clamp(88px, 15vh, 150px) 7vw 17vh;  /* top clears spikes, bottom clears NEXT */
  text-align: center;
}
.feel-title {
  margin: 0;
  font-size: clamp(28px, 6.4vw, 54px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  max-width: 15ch;
}
.feel-sub {
  margin: 0;
  font-size: clamp(14px, 2.1vw, 19px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}
.feel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3.4vh, 38px) clamp(24px, 7vw, 70px);
  margin-top: clamp(6px, 1.5vh, 20px);
}
.feel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.feel-label { font-size: clamp(15px, 2vw, 22px); font-weight: 500; }

/* ---- Star rating rows (nutritional score) ---- */
.stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.4vw, 14px);
  padding: 6px 4px;                 /* bigger drag target */
  cursor: pointer;
  touch-action: none;               /* drag sets the rating instead of scrolling */
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.star {
  cursor: pointer;
  line-height: 1;
  font-size: clamp(22px, 4.6vw, 42px);
  color: rgba(255, 255, 255, 0.26);
  transition: color 0.12s ease, transform 0.08s ease;
  user-select: none;
  -webkit-user-select: none;
}
.star.on { color: #fff; }                          /* filled = font colour */
.star.preview { color: rgba(255, 255, 255, 0.6); } /* hover preview (source order beats .on) */
.star:active { transform: scale(0.86); }

/* ---- About You: iOS-style age picker ---- */
/* About You native layout */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 44px);
  padding: 6vh 7vw 18vh;
  text-align: center;
}
.about-title {
  margin: 0;
  font-size: clamp(34px, 9vw, 68px);
  font-weight: 800;
  font-style: italic;
}
.about-sub {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 19px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
}

.age-card {
  --card: #40204f;
  width: min(440px, 86vw);
  height: clamp(220px, 34vh, 300px);
  display: flex;
  flex-direction: column;
  padding: 14px 18px 10px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.age-label {
  flex: none;
  text-align: center;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.66);
}
.wheel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  perspective: 700px;
  overflow: hidden;
  margin-top: 6px;
  cursor: grab;
  touch-action: none;          /* we handle drag via pointer events */
}
.wheel.is-dragging { cursor: grabbing; }
.wheel-list {
  transform-style: preserve-3d;
  will-change: transform;         /* JS translates this to move the wheel */
}
.wheel-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: #fff;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
/* center selection band */
.wheel-band {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
  border-top: 1.5px solid rgba(0, 200, 179, 0.85);
  border-bottom: 1.5px solid rgba(0, 200, 179, 0.85);
}
/* top/bottom fades toward the card colour */
.wheel::before,
.wheel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 38%;
  z-index: 2;
  pointer-events: none;
}
.wheel::before { top: 0; background: linear-gradient(#40204f, rgba(64, 32, 79, 0)); }
.wheel::after { bottom: 0; background: linear-gradient(rgba(64, 32, 79, 0), #40204f); }

/* ---- "press anywhere" attract prompt (welcome only) ---- */
.press-hint {
  position: fixed;
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  font-size: clamp(16px, 2.4vw, 24px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  animation: pulse 1.8s ease-in-out infinite;
}
.press-hint::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 5px, transparent 6px);
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.04); }
}

/* back variant: a ‹ arrow instead of the tap dot */
.press-hint.back::before {
  content: "‹";
  border: none;
  background: none;
  width: auto;
  height: auto;
  margin-bottom: 6px;
  font-size: 40px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .press-hint { animation: none; opacity: 0.9; }
}
