/* echivo.app/ruleta — "Ruleta Muzicală" vote page (v33). Concept + motion rules: /assets/ruleta/DESIGN.md.
   Loads after /assets/tickets/v2/tokens.css + components.css; everything page-specific is prefixed .rz- and lives here.
   CSP-safe: no inline styles in the markup — JS sets --g / --p / --rot / --x / --y with el.style.setProperty().
   Motion: transform + opacity only. html.lite and prefers-reduced-motion: no animation at all (state = colour + text + icon).
   html.rz-hidden (tab in the background): CSS loops paused. */

[hidden] { display: none !important; }
.rz {
  --bg: #140B3B; --deep: #0B0820; --plum: #2A1360;
  --gold: #F5C882; --rose-hi: #FF7A8A; --mint-hi: #5EE6B5;
  --text: #F6F3EC; --text-2: rgba(246, 243, 236, .74); --text-3: rgba(246, 243, 236, .60);
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .085); --line: rgba(255, 255, 255, .12);
  --wheel: 128px;
  --e-out: cubic-bezier(.16, 1, .3, 1); --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  margin: 0; min-height: 100svh; overflow-x: hidden; color: var(--text); background: var(--bg);
  font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  position: relative; isolation: isolate;
}
html:has(body.rz) { background: var(--deep, #0B0820); }
/* the site's dusk, one static fixed layer (no moving background) */
.rz::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
    radial-gradient(70vmax 60vmax at 110% -10%, rgba(245, 200, 130, .22), transparent 62%),
    radial-gradient(70vmax 70vmax at -20% 105%, rgba(255, 90, 138, .18), transparent 64%),
    radial-gradient(60vmax 50vmax at 50% 40%, rgba(157, 123, 255, .16), transparent 70%),
    linear-gradient(180deg, #24105A 0%, var(--bg) 38%, var(--deep) 100%);
}
.rz ::selection { background: var(--gold); color: #1A1206; }
.rz button { font: inherit; color: inherit; margin: 0; }

/* ---------- header ---------- */
.rz-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: calc(100% - 2 * var(--gutter)); max-width: var(--content-max); margin-inline: auto;
  height: 56px; padding-top: var(--safe-t); box-sizing: content-box;
}
.rz-head .ee { font-size: 22px; padding: 13px 4px; margin: -13px -4px; border-radius: 6px; }
.rz-head .ee__logo { background: #FFFFFF; }
.rz-head .ee:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rz-head__end { display: flex; align-items: center; gap: 8px; }
.rz-live, .rz-net {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.rz-live { color: #EFFFF8; background: rgba(94, 230, 181, .14); box-shadow: inset 0 0 0 1px rgba(94, 230, 181, .45); }
.rz-live__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-hi); }
.rz-live__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--mint-hi); opacity: 0; animation: rz-ping 2s var(--e-out) infinite; }
@keyframes rz-ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.rz-net { color: #FFE9EC; background: rgba(255, 122, 138, .14); box-shadow: inset 0 0 0 1px rgba(255, 122, 138, .5); letter-spacing: .02em; text-transform: none; font-weight: 700; font-size: 13px; }
.rz-net { max-width: 62vw; overflow: hidden; }
.rz-net__retry { color: rgba(255, 233, 236, .75); font-weight: 600; }
@media (max-width: 400px) { .rz-net__retry { display: none; } }
.rz-net__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose-hi); }

/* ---------- column ---------- */
.rz-main { display: flex; flex-direction: column; width: calc(100% - 2 * var(--gutter)); max-width: var(--content-max); margin-inline: auto; padding: 6px 0 var(--sp-4); }
.rz-main > * + * { margin-top: 12px; }
.rz-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 28px; }
.rz-h1 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.rz-title__kick { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- stage ---------- */
.rz-stage {
  position: relative; padding: 16px 18px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03) 60%);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 48px -24px rgba(0, 0, 0, .7);
}
.rz-stage::after { /* urgency rim: opacity only */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1.5px var(--rose-hi), 0 0 32px -8px rgba(255, 122, 138, .7);
  transition: opacity .3s var(--e-out);
}
.rz-stage.is-urgent::after { opacity: 1; }
.rz-stage__row { display: grid; grid-template-columns: var(--wheel) minmax(0, 1fr); align-items: center; gap: 18px; height: 142px; }
.rz-stage__info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.rz-stage__kick { margin: 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-stage__big {
  margin: 4px 0 0; height: 60px; display: flex; align-items: center; transform-origin: left center;
  font-size: 58px; line-height: 1; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text);
  transition: color .3s var(--e-out), opacity .3s var(--e-out);
}
.rz-stage__big.is-live { color: var(--gold); letter-spacing: -.03em; }
.rz-stage__big.is-name {
  font-size: 28px; line-height: 30px; letter-spacing: -.02em; color: var(--g, var(--text));
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding-top: 0;
}
.rz-stage__big.is-name, .rz-stage__big.is-none { height: 60px; align-content: center; }
.rz-stage__big.is-none { font-size: 26px; line-height: 30px; letter-spacing: -.02em; color: var(--text-2); }
.rz-stage__label { margin: 4px 0 0; min-height: 20px; font-size: 15px; line-height: 20px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-stage__sub:empty { display: none; }
.rz-stage__sub { margin: 6px 0 0; min-height: 18px; font-size: 13px; line-height: 18px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-fuse { margin-top: 8px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.rz-fuse i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #E9B86A, var(--gold)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.rz-stage.is-urgent .rz-stage__big { color: var(--rose-hi); }
.rz-stage.is-urgent .rz-fuse i { background: var(--rose-hi); }
.rz-stage.is-paused .rz-stage__big:not(.is-name):not(.is-none) { opacity: .5; }
.rz-stage.is-paused .rz-fuse i { background: rgba(255, 255, 255, .4); }
.rz-stage.is-paused .rz-stage__label::before { content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 8px; vertical-align: -1px; border-inline: 3px solid currentColor; box-sizing: border-box; }
/* between rounds with the clock: words small, digits big */
.rz-stage.is-two .rz-stage__big { height: 56px; font-size: 26px; line-height: 28px; }
.rz-stage.is-two .rz-stage__label { margin-top: 6px; white-space: normal; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--text-2); }
.rz-stage.is-two .rz-stage__label b { display: block; font-size: 28px; line-height: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--text); }
.rz-stage.is-two.is-paused .rz-stage__label b { opacity: .5; }
/* text states (before the party / the day after): the title wraps, the copy runs full width under the row */
.rz-stage.is-text .rz-stage__row { height: auto; min-height: 142px; } /* = the clock row: the wheel stays where the skeleton put it */
.rz-stage.is-text .rz-stage__big { height: auto; margin-top: 6px; font-size: 24px; line-height: 28px; letter-spacing: -.02em; display: block; text-wrap: balance; }
.rz-stage.is-text .rz-stage__label, .rz-stage.is-text .rz-stage__sub { display: none; }
.rz-stage.is-text .rz-stage__kick { white-space: normal; }
.rz-nw { white-space: nowrap; }
.rz-stage__more { margin-top: 14px; }
.rz-stage__text { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-2); }
.rz-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--gold); text-decoration: none; }
.rz-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (hover: hover) { .rz-link:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* skeleton (static, no shimmer) */
.rz-skel { display: block; height: 12px; width: 70%; border-radius: 6px; background: rgba(255, 255, 255, .09); }
.rz-skel--big { height: 44px; width: 62%; border-radius: 10px; }
.rz-skel--sm { display: inline-block; height: 10px; width: 40%; vertical-align: middle; }

/* ---------- the wheel ---------- */
.rz-wheel { position: relative; width: var(--wheel); aspect-ratio: 1; transition: opacity .2s; }
.rz-wheel__disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transform: rotate(var(--rot, 0deg));
  background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 10px 30px -10px rgba(0, 0, 0, .8);
}
.rz-wheel__disc.is-ease { transition: transform 1.2s var(--e-out); }
.rz-wheel__disc svg { display: block; width: 100%; height: 100%; }
.rz-wheel__sep { stroke: rgba(11, 8, 32, .55); stroke-width: .8; }
.rz-wheel__rim { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.rz-wheel__hub {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2A1C55, #0E0A24 70%);
  box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(0, 0, 0, .6);
  font-size: 17px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums;
}
.rz-wheel__ptr { /* gold pointer at 12 o'clock */
  position: absolute; left: 50%; top: -7px; width: 22px; height: 24px; margin-left: -11px; transform-origin: 50% 30%;
  background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}
.rz-wheel.is-away { opacity: 0; }
.rz-wheel.is-idle svg { animation: rz-spin 2.6s linear 4; }
@keyframes rz-spin { to { transform: rotate(360deg); } }

/* ---------- the line: what to do / your vote ---------- */
.rz-line { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; height: 60px; margin: 0; padding: 0 4px; }
.rz-line__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: background-color .25s var(--e-out); }
.rz-line__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rz-line__text { display: flex; flex-direction: column; min-width: 0; }
.rz-line b { font-size: 17px; line-height: 22px; font-weight: 750; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-line small { font-size: 13px; line-height: 17px; color: var(--text-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rz-line[data-k="mine"] .rz-line__icon, .rz-line[data-k="pending"] .rz-line__icon { background: var(--g); color: #0B0820; box-shadow: 0 0 0 4px color-mix(in srgb, var(--g) 28%, transparent); }
.rz-line[data-k="mine"] .rz-line__icon svg, .rz-line[data-k="pending"] .rz-line__icon svg { stroke-width: 3; }
.rz-line[data-k="pending"] .rz-line__icon svg { opacity: .45; }
.rz-line[data-k="hurry"] b { color: var(--rose-hi); }
.rz-line[data-k="hurry"] .rz-line__icon { background: rgba(255, 122, 138, .2); color: var(--rose-hi); box-shadow: inset 0 0 0 1px rgba(255, 122, 138, .6); }
.rz-line[data-k="tap"] .rz-line__icon { color: var(--gold); }
.rz-line[data-k="error"] .rz-line__icon { background: rgba(255, 122, 138, .2); }

/* ---------- how it works (before the party, first-timers) ---------- */
.rz-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rz-how__step { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 14px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.rz-how__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1A1206; font-size: 13px; font-weight: 900; }
.rz-how__t { font-size: 13px; line-height: 18px; color: var(--text-2); text-wrap: balance; }
.is-seen .rz-how { display: none; }

/* ---------- genres ---------- */
.rz-sec { margin: 4px 0 10px; font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.rz-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.rz-tile {
  --g: #9B7BFF;
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px;
  height: 58px; padding: 0 14px 0 12px; border: 0; border-radius: 16px; text-align: left; cursor: pointer; overflow: hidden;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: transform .08s ease-out, box-shadow .25s var(--e-out), background-color .25s var(--e-out);
  animation: rz-in .42s var(--e-out) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes rz-in { from { opacity: 0; transform: translateY(12px); } }
.rz-tile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--g); }
.rz-tile > * { position: relative; }
.rz-tile__fill, .rz-tile__glow { position: absolute !important; inset: 0; pointer-events: none; }
.rz-tile__fill { background: linear-gradient(90deg, color-mix(in srgb, var(--g) 22%, transparent), color-mix(in srgb, var(--g) 42%, transparent)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--e-out); }
.rz-tile__glow { background: color-mix(in srgb, var(--g) 45%, transparent); opacity: 0; }
.rz-tile__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--g); color: #0B0820; transition: background-color .2s var(--e-out); }
.rz-tile__dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .2s var(--e-out), transform .35s var(--e-spring); }
.rz-tile__label { display: flex; flex-direction: column; min-width: 0; }
.rz-tile__name { font-size: 17px; line-height: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-tile__votes { font-size: 12px; line-height: 16px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rz-tile__pct { min-width: 3.1ch; text-align: right; font-size: 22px; line-height: 24px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.rz-tile__pct small { font-size: 13px; font-weight: 700; margin-left: 1px; color: var(--text); }
.rz-tile__star { width: 20px; height: 20px; display: none; }
.rz-tile__star svg { display: block; width: 20px; height: 20px; fill: var(--gold); }
.rz-tile.is-lead .rz-tile__star { display: block; }
@media (hover: hover) { .rz-tile:not(:disabled):hover { background: var(--glass-2); } }
.rz-tile:not(:disabled):active { transform: scale(.975); }
.rz-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* leader: gold rim + star */
.rz-tile.is-lead { box-shadow: inset 0 0 0 1.5px rgba(245, 200, 130, .75), 0 0 26px -10px color-mix(in srgb, var(--g) 80%, transparent); }
/* yours: solid ring in its colour, filled check */
.rz-tile.is-mine { background: color-mix(in srgb, var(--g) 22%, rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 2.5px var(--g), 0 0 34px -8px var(--g); }
.rz-tile.is-mine .rz-tile__dot { background: var(--g); }
.rz-tile.is-mine .rz-tile__votes { color: var(--text); font-weight: 750; }
.rz-tile.is-mine::before { width: 6px; }
.rz-tile.is-mine .rz-tile__dot svg { opacity: 1; transform: none; }
.rz-tile.is-pending .rz-tile__dot svg { opacity: .45; }
/* a vote just landed here: the number hops once */
.rz-tile.is-up .rz-tile__pct { animation: rz-bump .5s var(--e-out); }
@keyframes rz-bump { 35% { transform: translateY(-4px) scale(1.08); } }
.rz-ripple { position: absolute !important; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--g); opacity: 0; pointer-events: none; }
.rz-tile--skel { display: block; cursor: default; animation: none; }
.rz-tile--skel::before { background: rgba(255, 255, 255, .12); }
.rz-grid__empty { margin: 0; padding: 20px; text-align: center; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 14px; }

/* ---------- no open round: the genres as colour chips ---------- */
.rz-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rz-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 650; color: var(--text); }
.rz-pill__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--g); }
.rz-pill.is-now { background: color-mix(in srgb, var(--g) 20%, rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 2px var(--g); font-weight: 800; }
.rz-pill__now { height: 22px; padding: 0 8px; margin-right: -6px; border-radius: 999px; background: var(--g); color: #0B0820; font-size: 11px; line-height: 22px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- winners of the night: a row of records ---------- */
.rz-hist__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rz-hist__meta { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rz-hist__list {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; border-radius: 4px;
}
.rz-hist__list::-webkit-scrollbar { display: none; }
.rz-hist__list:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rz-hist__item { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; scroll-snap-align: start; }
.rz-hist__disc { /* a record: black grooves, the winner's colour as the label, round number in the middle */
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: #0B0820; font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle, var(--g, #6B6485) 0 34%, #0B0820 35% 37%, transparent 38%),
    repeating-radial-gradient(circle, #15102C 0 2px, #0C0920 2px 3.4px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(0, 0, 0, .8);
}
.rz-hist__win { font-size: 13px; line-height: 17px; font-weight: 700; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rz-hist__time { font-size: 12px; line-height: 16px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rz-hist__item.is-none .rz-hist__disc { color: var(--text-2); background: repeating-radial-gradient(circle, #15102C 0 2px, #0C0920 2px 3.4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.rz-hist__item.is-none .rz-hist__win { color: var(--text-3); font-weight: 600; font-style: italic; }
.rz-hist__item.is-now .rz-hist__disc { box-shadow: 0 0 0 2px var(--gold), 0 0 22px -4px var(--g); }
.rz-hist__item.is-now .rz-hist__time { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rz-hist__item.is-new { animation: rz-drop .6s var(--e-spring) both; }
@keyframes rz-drop { from { opacity: 0; transform: translateY(-14px) scale(.7); } }



/* ---------- ticket banner ---------- */
.rz-ticket {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin-top: 20px !important;
  padding: 12px 16px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--text);
  transition: transform .08s ease-out;
}
.rz-ticket:active { transform: scale(.98); }
.rz-ticket:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rz-ticket__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rz-ticket__title { font-size: 15px; line-height: 20px; font-weight: 700; }
.rz-ticket__sub { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; }
.rz-ticket__sub .v2-badge { padding: 2px 6px; font-size: 12px; line-height: 16px; }
.rz-ticket__go { flex: none; font-size: 15px; font-weight: 700; color: var(--gold); white-space: nowrap; }
@media (hover: hover) { .rz-ticket:hover { background: var(--glass-2); } }

/* ---------- footer on the dusk ---------- */
.rz-foot { background: transparent; border-top-color: var(--line); margin-top: 40px; }

/* ---------- toast (top, out of the thumb zone) ---------- */
.rz-toast {
  position: fixed; left: 50%; top: calc(64px + var(--safe-t)); z-index: 90; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 2 * var(--gutter)); padding: 12px 16px; border-radius: 14px;
  background: #F6F3EC; color: #0B0820; font-size: 15px; line-height: 20px; font-weight: 650; box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  transform: translateX(-50%); animation: rz-toast .3s var(--e-out);
}
@keyframes rz-toast { from { opacity: 0; transform: translate(-50%, -10px); } }
.rz-toast__icon { display: none; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #D64561; position: relative; }
.rz-toast__icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 900; }
.rz-toast.is-bad .rz-toast__icon { display: block; }
.rz-nojs { padding: var(--gutter); text-align: center; }

/* ---------- motion layers ---------- */
.rz-burst { position: fixed; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 95; pointer-events: none; }
.rz-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rz-burst i:nth-child(3n) { width: 6px; height: 10px; border-radius: 2px; }
.rz-reveal { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rz-reveal__veil { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 42%, color-mix(in srgb, var(--g) 26%, #1A0F45) 0%, rgba(11, 8, 32, .97) 62%); }
.rz-reveal > :not(.rz-reveal__veil) { position: relative; }
.rz-reveal__head { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rz-wheel--big { --wheel: min(74vw, 46vh, 340px); width: var(--wheel); }
.rz-wheel--big .rz-wheel__ptr { width: 34px; height: 38px; margin-left: -17px; top: -12px; }
.rz-wheel--big .rz-wheel__hub { font-size: 30px; box-shadow: 0 0 0 3px var(--gold), 0 6px 20px rgba(0, 0, 0, .6); }
.rz-wheel--big .rz-wheel__disc { box-shadow: 0 0 0 5px rgba(255, 255, 255, .1), 0 0 60px -10px color-mix(in srgb, var(--g) 60%, transparent), 0 20px 50px -10px rgba(0, 0, 0, .9); will-change: transform; }
.rz-reveal__out { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-height: 112px; opacity: 0; }
.rz-reveal__kick { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.rz-reveal__name { font-size: clamp(34px, 11vw, 52px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; color: var(--g); text-wrap: balance; max-width: 14ch; }
.rz-reveal__sub { font-size: 16px; font-weight: 700; color: var(--text); }
.rz-reveal__skip { position: absolute !important; bottom: calc(20px + var(--safe-b)); font-size: 13px; color: var(--text-3); }

/* ---------- wider screens: a centred column, bigger wheel ---------- */
@media (max-width: 379px) {
  .rz { --wheel: 112px; }
  .rz-stage { padding: 14px 14px; }
  .rz-stage__row { gap: 14px; }
  .rz-stage__big { font-size: 52px; }
  .rz-stage__label { font-size: 14px; }
  .rz-h1 { font-size: 20px; }
}
@media (min-width: 480px) { .rz { --wheel: 140px; } .rz-stage { padding: 18px 22px; } .rz-stage__row { height: 150px; gap: 24px; } .rz-stage.is-text .rz-stage__row { min-height: 150px; } }
@media (min-width: 768px) {
  .rz-main { padding-top: 20px; }
  .rz-h1 { font-size: 26px; line-height: 32px; }
  .rz-tile { height: 60px; }
}

/* ---------- no motion: lite (weak phones), reduced motion, hidden tab ---------- */
html.lite .rz *, html.lite .rz *::before, html.lite .rz *::after { animation: none !important; transition: none !important; }
html.lite .rz-stage, html.lite .rz-wheel__disc { box-shadow: inset 0 0 0 1px var(--line); }
html.lite .rz-tile.is-lead, html.lite .rz-tile.is-mine { box-shadow: inset 0 0 0 2px var(--g); }
html.lite .rz-tile.is-lead { box-shadow: inset 0 0 0 2px var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .rz *, .rz *::before, .rz *::after { animation: none !important; transition: none !important; }
}
html.rz-hidden .rz *, html.rz-hidden .rz *::before, html.rz-hidden .rz *::after { animation-play-state: paused !important; }

/* cross-document View Transitions between the Heart2Heart pages. CSS-only, CSP-safe. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* first paint: only the header, stage, line and genre skeleton. The footer and the ticket banner join with the first
   data, so they appear in their final place instead of moving when a shorter state replaces the skeleton. */
body.is-loading .rz-foot, body.is-loading .rz-ticket { display: none; }
