/* dinra.app hero: the app's onboarding dinner wheel (owner 05.12: "like the wheel in the onboarding").
   Ported from the app mockup (onb4 .spw-* and the onboarding overrides .o3w): the stone table and rim, thin dividers,
   seven plates on one ring (one per day), the front (bottom) plate bigger, the Dinra medallion in the middle,
   the red drop pointer under the table, the app's one soft plate shadow (--uni-sh).
   The pick: the plate at the drop grows in its own place and «Tonight: …» fades in under the drop. Only transform / opacity change while it moves (GPU). */
.hero .spw { --uni-sh: 0 1px 2px rgba(40, 28, 16, .14), 0 5px 12px -3px rgba(40, 28, 16, .22);
  --accent: #E3262E; position: relative; width: min(460px, 100%); }
.hero .spw-tbl { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; touch-action: pan-y; cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.hero .spw-tbl:active { cursor: grabbing; }
.hero .spw-rot { position: absolute; inset: 0; }
.hero .spw.is-spin .spw-rot { will-change: transform; }
/* the table: the app's stone top with its wooden rim and soft inner shading */
.hero .spw-disc { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #E4D9C8 0%, #D6C8B3 46%, #C9B9A1 82%, #BFAE95 100%);
  box-shadow: inset 0 0 0 4px #C99B66, inset 0 0 0 5px rgba(110, 70, 30, .30), inset 0 1px 0 4px rgba(255, 238, 210, .55),
    inset 0 -16px 24px -12px rgba(90, 64, 36, .16), 0 40px 52px -26px rgba(84, 58, 30, .46), 0 10px 18px -8px rgba(84, 58, 30, .22),
    inset 0 2px 0 rgba(255, 255, 255, .35), 0 22px 40px -18px rgba(90, 55, 20, .38); }
.hero .spw-div { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .spw-div line { stroke: rgba(110, 75, 40, .22); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
/* plates: the centre of each seat on the ring (left/top in %); size --pd and front scale --fk come from the app's formula */
.hero .spw-sl { position: absolute; width: 0; height: 0; }
.hero .spw-sl .plate { position: absolute; left: calc(var(--pd) / -2); top: calc(var(--pd) / -2); width: var(--pd); height: var(--pd);
  display: block; max-width: none; border-radius: 50%; box-shadow: var(--uni-sh); transition: transform .45s cubic-bezier(.3, 1.25, .5, 1), box-shadow .35s; }
/* the pick (owner 05.12, variant A): the plate at the drop grows to 1.2x in its own place with the app's front-plate shadow */
.hero .spw-sl.is-win .plate { transform: scale(1.2); box-shadow: 3px 5px 8px rgba(70, 46, 20, .24), 14px 24px 32px -8px rgba(70, 46, 20, .40); z-index: 3; }
/* day tags stay upright (JS counter-turns them) just outside each plate; the front plate's tag hides */
.hero .spw-chip { position: absolute; z-index: 2; transition: opacity .2s; padding: 1px 7px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 3px rgba(27, 27, 31, .12); font: 600 10px/14px var(--sans); color: var(--ink); white-space: nowrap; pointer-events: none; }
.hero .spw-chip.is-off { opacity: 0; }
/* the Dinra medallion in the middle is the spin button */
.hero .spw-hub { position: absolute; left: 50%; top: 50%; z-index: 3; width: 22%; height: 22%; margin: -11% 0 0 -11%; padding: 0; border: 0;
  border-radius: 50%; overflow: hidden; background: none; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 6px 14px -6px rgba(0, 0, 0, .35); transition: transform .12s, opacity .3s; }
.hero .spw-hub img { display: block; width: 100%; height: 100%; }
.hero .spw-hub:active { transform: scale(.94); }
.hero .spw-hub:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* idle pulse (the app's o5-ping values, repeated): the medallion breathes, a faint red halo spreads and fades.
   `scale` is a separate property, so the press effect (transform: scale(.94)) still works during the pulse. */
.hero .spw-ring { position: absolute; left: 50%; top: 50%; z-index: 2; width: 22%; height: 22%; margin: -11% 0 0 -11%; border-radius: 50%;
  background: rgba(227, 38, 46, .28); opacity: 0; pointer-events: none; }
.hero .spw.is-idle .spw-hub { animation: spw-breathe 2s ease-in-out infinite; }
.hero .spw.is-idle .spw-ring { animation: spw-halo 2s ease-out infinite; }
@keyframes spw-breathe { 0%, 100% { scale: 1; } 30% { scale: 1.06; } 60% { scale: .99; } }
@keyframes spw-halo { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
/* the pointer: a small rounded red tab under the table with a flexible tip pointing up (the app's "drop") */
.hero .spw-ptr { position: absolute; left: 50%; bottom: -14px; z-index: 4; width: 20px; height: 22px; margin-left: -10px; transition: opacity .2s; }
.hero .spw-ptr::before { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 12px; border-radius: 6px; background: var(--accent); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.hero .spw-ptr > i { position: absolute; left: 6px; bottom: 9px; width: 8px; height: 14px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 2px; transform-origin: 50% 100%; }
/* «Tonight: …» under the table (the app's .spw-tag) + the dish label; empty until a dish is picked, so nothing jumps */
.hero .spw-tag { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 30px 0 0; min-height: 34px; text-align: center; opacity: 0; }
.hero .spw.is-done .spw-tag { animation: spw-in .35s .1s ease-out both; }
.hero .spw-tag b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 8px 24px rgba(27, 27, 31, .10); font: 700 15px/20px var(--sans); color: var(--ink); }
.hero .spw-tag svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--green-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero .spw-tag span { font-size: 14px; color: var(--muted); }
@keyframes spw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .spw-sl .plate { transition: none; }
  .hero .spw.is-idle .spw-hub, .hero .spw.is-idle .spw-ring { animation: none; }
  .hero .spw.is-done .spw-tag { animation: none; opacity: 1; }
}
/* owner 05.12: the wheel and its caption sit a little lower (phones: more air under the App Store line; desktop: lower
   against the headline). The caption moves with the wheel, so its gap to the red drop stays the same. */
.hero .spw { margin-top: 28px; }
/* desktop / tablet (owner 05.12): the first screen is exactly the hero — it fills the screen under the sticky 64 px header,
   its content sits in the middle, and the next (beige) section starts just below the fold. The wheel is sized by the
   screen height, so the whole wheel and its caption always fit (it gets a bit smaller on short screens, never bigger
   than 460 px on tall ones). 152 px = top + bottom padding (2 x 24) + the wheel's top margin + the drop + the caption. */
@media (min-width: 900px) {
  .hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 24px 0; box-sizing: border-box; }
  html .hero > .wrap { width: 100%; align-items: center; }   /* the two columns are centred on each other (html: beats site.css, which loads later) */
  html .hero .hero-art { place-items: center; }
  .hero .spw { margin-top: 0; width: min(460px, 100%, calc(100vh - 64px - 48px - 152px)); width: min(460px, 100%, calc(100svh - 64px - 48px - 152px)); }
  .hero h1 { font-size: clamp(44px, min(7.4vw, 9.6vh), 92px); }
  /* owner 05.12: «the wheel in the middle of the text on the right» — the caption hangs below the wheel and does not
     count in the layout, so the wheel's own centre lines up with the centre of the text block */
  .hero .spw-tag { position: absolute; left: -40px; right: -40px; top: calc(100% + 30px); margin: 0; }
}
