/* HALVE base styles — Visual v3 "glow glass". Class reference for feature stylesheets and views:
   Buttons   .pill-action (+ .wide, child .btn-ico) bright action, ONE per screen · .btn-quiet glass (+ .btn-ico) · .icon-btn round glass · .chip-btn small tappable chip
             (all get press scale + haptic; add data-haptic to any other element for the same haptic)
   Surfaces  .card (+ .hero corner arc, .active, .tile, .flat) / .glass · .sheet (+ .closing) · .stack · .bottom-actions · .dock (sticky bottom bar, safe-area padded)
   Heads     ui.js topbar() .topbar > .tb-left/.tb-right · heroHead() .hero-head · sheetHead() .sheet-head · hud() .hud (+ .hud-mode, .hud-top panel)
   Sections  .sec-card > .sec-head (+ .sec-ico, .sec-title) + .sec-row (.sec-ico, .sec-label, .sec-val, .sec-chev, .switch)
   Chips     .chip (+ data-tier, child icon) · .chip.sm
   Lists     .list (stack) > .list-row > .avatar + .list-main (.list-title, .list-sub) + .list-end · .list-row.me highlights the player
             (use <button class="list-row"> for tappable rows)
   Tabs      .seg > button[aria-pressed|aria-selected=true | .on] (optional leading icon; glass track, active pill slides: set --seg-n and --seg-i on .seg)
   Avatars   .avatar (use ui.js avatar(n, size))
   Loading   .skeleton .sk-card / .sk-rows / .sk-line (use ui.js skeleton())
   Empty     .empty-state (use ui.js emptyState({mascot|icon, title, text, action}))
   Toast     #toast.toast[data-kind=info|ok|error] (use ui.js toast())
   Result    .result-pop / .result-fade animation helpers used by views/result.js
   Tokens    --card-fill --card-border --card-border-hot --glow-card --glow-hot --r-card --r-hero --r-tile --violet --pink --magenta --action-grad --action-glow --ink-line
*/
/* ---- Fonts: Inter (OFL), variable latin subset, self-hosted ---- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
}

/* ---- Tokens ---- */
:root {
  --bg-top: #261C66;
  --bg-bottom: #120C34;
  --glass: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .14);
  --halve-a: #FF9A5C;
  --halve-b: #FF4F7B;
  --cool-a: #5CE1E6;
  --cool-b: #9B6BFF;
  --action-a: #FFE7CF;
  --action-b: #FFC2CF;
  --ink: #241B4D;
  --mint: #6EE7B7;
  --text: #F5F3FF;
  --quiet: #A8A3C7;
  --t-perfect: #8BD3FF;
  --t-great: #6EE7B7;
  --t-good: #FCD34D;
  --t-ok: #FB923C;
  --t-miss: #F43F5E;
  /* v3 glow glass */
  --violet: #B28CFF;
  --pink: #FF6AD5;
  --magenta: #C13BFF;
  --r-card: 24px;
  --r-hero: 28px;
  --r-tile: 20px;
  --radius-card: var(--r-card);
  --card-fill: radial-gradient(120% 60% at 0 0, rgba(255, 255, 255, .10), transparent 60%), linear-gradient(160deg, rgba(118, 92, 255, .28), rgba(118, 92, 255, .20) 55%, rgba(60, 40, 150, .30));
  --card-border: linear-gradient(135deg, rgba(178, 140, 255, .70), rgba(255, 106, 213, .55) 52%, rgba(92, 225, 230, .70));
  --card-border-hot: linear-gradient(135deg, #C9A8FF, #FF6AD5 52%, #5CE1E6);
  --neon-border: var(--card-border);
  --glow-card: 0 0 28px rgba(184, 77, 255, .28);
  --glow-hot: 0 0 34px rgba(193, 59, 255, .55);
  --ink-line: rgba(255, 255, 255, .08);
  --action-grad: linear-gradient(90deg, #FFE7CF, #FFC2CF 55%, #FFD0B0);
  --action-glow: 0 0 24px rgba(255, 120, 170, .55), 0 10px 32px rgba(255, 79, 170, .40);
  --gold: #FCD34D;
  --sp: 8px;
  --fs-xs: 12px;
  --fs-s: 14px;
  --fs-m: 17px;
  --fs-l: 22px;
  --fs-xl: 32px;
  --fs-hero: 48px;
  --fs-score: 60px;
  --tap: 44px;
  --t-fast: 120ms;
  --t-base: 220ms;
  --t-slow: 360ms;
  --e-out: cubic-bezier(.33, 1, .68, 1);
  --e-in: cubic-bezier(.32, 0, .67, 0);
  --e-back: cubic-bezier(.34, 1.56, .64, 1);
  --safe-t: env(safe-area-inset-top);
  --safe-r: env(safe-area-inset-right);
  --safe-b: env(safe-area-inset-bottom);
  --safe-l: env(safe-area-inset-left);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--fs-m);
  line-height: 1.4;
  color: var(--text);
  background:
    radial-gradient(75% 38% at 0% 100%, rgba(255, 61, 154, .34), transparent 72%),
    radial-gradient(75% 38% at 100% 100%, rgba(107, 91, 255, .38), transparent 72%),
    radial-gradient(70% 5% at 50% 79%, rgba(255, 106, 213, .22), transparent 80%),
    radial-gradient(130% 95% at 50% -10%, var(--bg-top), #1A1244 55%, var(--bg-bottom) 100%) fixed var(--bg-bottom);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
/* ---- Backdrop: static planet arc (html::before), neon floor (body::before), faint crystals (body::after), motes (html::after) ---- */
html::before {
  content: "";
  position: fixed;
  z-index: -1;
  left: 50%;
  top: 7dvh;
  width: 180vw;
  max-width: 900px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 80%, rgba(193, 59, 255, .14) 92%, rgba(236, 150, 255, .18) 99%, transparent 100%),
    radial-gradient(closest-side at 50% 0%, rgba(193, 59, 255, .34), transparent 62%);
  -webkit-mask-image: linear-gradient(#000 0, #000 18%, transparent 42%);
  mask-image: linear-gradient(#000 0, #000 18%, transparent 42%);
  pointer-events: none;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  left: -40%;
  right: -40%;
  bottom: 0;
  height: 26dvh;
  background:
    repeating-linear-gradient(90deg, rgba(190, 140, 255, .85) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255, 106, 213, .8) 0 1px, transparent 1px 28px);
  transform: perspective(240px) rotateX(58deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .45), #000 55%, rgba(0, 0, 0, .8));
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .45), #000 55%, rgba(0, 0, 0, .8));
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 844' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23B28CFF' stop-opacity='.2'/%3E%3Cstop offset='1' stop-color='%236B5BFF' stop-opacity='.02'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%237DF3FF' stop-opacity='.17'/%3E%3Cstop offset='1' stop-color='%233B82F6' stop-opacity='.02'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-10 690 40 640 95 700 70 780 0 790Z' fill='url(%23a)'/%3E%3Cpath d='M300 710 360 650 400 690 410 790 330 800Z' fill='url(%23b)'/%3E%3Cpath d='M318 120 352 96 372 140 340 164Z' fill='url(%23b)'/%3E%3Cpath d='M30 210 66 190 82 236 44 252Z' fill='url(%23a)'/%3E%3C/svg%3E") center / cover no-repeat;
  pointer-events: none;
}
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
canvas, .app { user-select: none; -webkit-user-select: none; }

.app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.row { display: flex; align-items: center; gap: calc(var(--sp) * 1.5); }

.pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--action-grad);
  color: var(--ink);
  font-weight: 800;
  font-size: var(--fs-l);
  box-shadow: var(--action-glow), 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 2px 0 rgba(255, 255, 255, .55) inset;
  transition: transform var(--t-fast) var(--e-out), filter var(--t-fast) var(--e-out), box-shadow var(--t-base) var(--e-out);
}
.pill-action.wide { width: 100%; }
.pill-action:hover { box-shadow: 0 0 30px rgba(255, 120, 170, .65), 0 10px 36px rgba(255, 79, 170, .48), 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 2px 0 rgba(255, 255, 255, .6) inset; }
.pill-action:active { transform: scale(.97); filter: brightness(.94); }
.btn-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; line-height: 1; }
.btn-ico > svg, .btn-ico > img { width: 100%; height: 100%; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(124, 77, 255, .18), rgba(255, 255, 255, .04));
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-s);
  box-shadow: 0 0 18px rgba(155, 107, 255, .16);
  transition: transform var(--t-fast) var(--e-out), filter var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out);
}
.btn-quiet .btn-ico { width: 20px; height: 20px; color: #E6D9FF; }
.btn-quiet:active, .chip-btn:active { transform: scale(.97); filter: brightness(1.15); }

.glass {
  background: var(--card-fill);
  border-radius: var(--r-card);
  padding: 20px;
}

/* ---- Layout primitives ---- */
.screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.bottom-actions { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-bottom: env(safe-area-inset-bottom); }
.card {
  background: var(--card-fill);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--glow-card), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.card.flat { background: rgba(255, 255, 255, .04); box-shadow: none; }
.card.tile { border-radius: var(--r-tile); padding: 14px; }
.card.hero {
  border-radius: var(--r-hero);
  box-shadow: var(--glow-hot), inset 0 1px 0 rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle 150px at 108% 114%, rgba(193, 59, 255, .17) 0 92%, rgba(255, 170, 255, .42) 94.5%, rgba(255, 106, 213, 0) 100%),
    var(--card-fill);
}
.card.hero.calm { background: var(--card-fill); }
.card.active, .card[aria-pressed="true"] { box-shadow: var(--glow-hot), inset 0 1px 0 rgba(255, 255, 255, .14); }
.card.active::before, .card[aria-pressed="true"]::before { background: var(--card-border-hot); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(124, 77, 255, .22), rgba(255, 255, 255, .05));
  color: var(--text);
  font-size: var(--fs-m);
  box-shadow: 0 0 16px rgba(155, 107, 255, .22);
}
/* gradient border without hiding the glass fill (masked ::before): 1.5 px on cards/sheets/buttons/seg, 1 px on small round/chip parts */
.glass, .card, .btn-quiet, .icon-btn, .chip, .chip-btn, .sheet { position: relative; }
.glass::before, .card::before, .btn-quiet::before, .icon-btn::before, .chip::before, .chip-btn::before, .sheet::before, .seg::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--card-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.icon-btn::before, .chip::before, .chip-btn::before { padding: 1px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(124, 77, 255, .18), rgba(255, 255, 255, .04));
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chip[data-tier] { background: var(--tier); color: #0E0B22; }
.chip[data-tier]::before { display: none; }
.icon-btn { transition: transform var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out); }
.icon-btn:active { filter: brightness(1.25); transform: scale(.97); }
.pill-action:disabled { background: linear-gradient(rgba(255, 231, 207, .35), rgba(255, 231, 207, .35)), #2A1F55; box-shadow: none; color: rgba(36, 27, 77, .75); }
.pill-action:disabled, .btn-quiet:disabled, .icon-btn:disabled, [aria-disabled="true"].pill-action { opacity: .4; cursor: default; transform: none; pointer-events: none; }
a.pill-action, a.btn-quiet { text-decoration: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
/* ---- Bottom sheet ---- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 6, 20, .6); animation: fade-in var(--t-base) var(--e-out); }
.sheet {
  position: fixed;
  z-index: 41;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 64' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23FFB36B' stop-opacity='.0'/%3E%3Cstop offset='.3' stop-color='%23FFE7C8' stop-opacity='.95'/%3E%3Cstop offset='.7' stop-color='%23FF8BD8' stop-opacity='.9'/%3E%3Cstop offset='1' stop-color='%23B28CFF' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 46C80 20 150 58 240 40S400 24 480 42' fill='none' stroke='url(%23w)' stroke-width='2.4'/%3E%3Cpath d='M0 54C90 34 170 62 250 50S410 36 480 52' fill='none' stroke='url(%23w)' stroke-width='1' opacity='.6'/%3E%3C/svg%3E") bottom / 100% 64px no-repeat,
    radial-gradient(100% 40px at 50% 100%, rgba(255, 79, 190, .60), transparent 100%),
    linear-gradient(180deg, #2B1E6B, #170F3B 62%, #120B2E);
  box-shadow: 0 -24px 56px rgba(0, 0, 0, .5), 0 -8px 48px rgba(184, 77, 255, .38);
  border-radius: 32px 32px 0 0;
  animation: slide-up 280ms var(--e-out);
}
.sheet::after { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, .28); pointer-events: none; }
.sheet.closing { animation: slide-down var(--t-base) var(--e-in) forwards; }
.sheet-backdrop.closing { animation: fade-out var(--t-base) var(--e-in) forwards; }
@keyframes slide-down { to { transform: translateY(100%); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- Type ---- */
.label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--quiet); }
.title { font-weight: 800; font-size: var(--fs-l); }
.display { font-weight: 800; font-size: var(--fs-hero); line-height: 1; letter-spacing: -.02em; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.quiet { color: var(--quiet); }

/* One tier hook: data-tier="perfect|great|good|ok|miss" sets --tier; elements pick it up below. */
[data-tier="perfect"] { --tier: var(--t-perfect); }
[data-tier="great"] { --tier: var(--t-great); }
[data-tier="good"] { --tier: var(--t-good); }
[data-tier="ok"] { --tier: var(--t-ok); }
[data-tier="miss"] { --tier: var(--t-miss); }
.tier-sq { display: inline-block; width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; background: var(--tier); }
.tier-sq[data-tier="perfect"] { transform: rotate(45deg) scale(.8); }
.label[data-tier] { color: var(--tier); }

.stars { display: inline-flex; gap: 2px; font-size: var(--fs-m); line-height: 1; letter-spacing: 0; color: rgba(255, 255, 255, .2); }
.stars .on { color: var(--t-good); }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; font-weight: 800; letter-spacing: .14em; line-height: 1; color: var(--text); user-select: none; }
.logo-a { width: .86em; height: .86em; margin: 0 .04em 0 -.02em; overflow: visible; filter: drop-shadow(0 0 .22em rgba(255, 79, 123, .55)); }

/* ---- HUD (js/hud.js): optional mode row, then ONE glass panel (button | title + dots | timer ring) ---- */
.hud { display: flex; flex-direction: column; gap: 6px; }
.hud-mode { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.hud-mode .chip { min-height: 30px; padding: 0 12px; box-shadow: 0 0 16px rgba(193, 59, 255, .35); }
.hud-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 6px 10px 6px 8px;
  border-radius: 26px;
  background: var(--card-fill);
  box-shadow: var(--glow-card), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.hud-top::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--card-border); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.hud-top > .icon-btn { width: 44px; height: 44px; flex: none; }
.hud-spacer { width: 44px; height: 44px; flex: none; }
.hud-center { align-self: stretch; margin: 4px 0; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .12); flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.hud-titlerow { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.hud-title { color: var(--text); font-weight: 800; font-size: var(--fs-s); letter-spacing: .18em; text-align: center; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hud-badge { flex: none; min-height: 22px; padding: 0 8px; }
.hud-badge[data-kind="boss"] { color: var(--gold); }
.hud-badge[data-kind="boss"]::before { background: linear-gradient(135deg, var(--gold), #FF9A5C); }
.hud-badge[data-kind="hard"] { color: #C4B0FF; }
.hud-badge[data-kind="hard"]::before { background: linear-gradient(135deg, #B28CFF, #6B5BFF); }
.hud-row { display: flex; align-items: center; justify-content: center; min-height: 14px; }
.hud-dots { display: flex; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .2s, box-shadow .2s; }
.dot[data-tier] { background: var(--tier); box-shadow: 0 0 8px var(--tier); }
.dot[data-state="current"] { background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .7); }
.hud-end { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 60px; min-height: 60px; }
.hud-right { display: flex; align-items: center; justify-content: flex-end; min-height: 48px; flex: none; }
.hud-timer { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03) 70%); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-l); line-height: 1; font-variant-numeric: tabular-nums; }
.hud-timer svg { position: absolute; inset: 0; width: 60px; height: 60px; transform: rotate(-90deg); overflow: visible; filter: drop-shadow(0 0 5px rgba(255, 138, 209, .55)); }
.hud-timer .ring-bg { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 4; }
.hud-timer .ring-fg { fill: none; stroke-width: 4; stroke-linecap: round; }
.hud-timer.low { color: var(--t-miss); animation: timer-pulse 1s ease-in-out infinite; }
.hud-timer.low .ring-fg { stroke: var(--t-miss); }
@keyframes timer-pulse { 50% { transform: scale(1.08); } }
/* Route cross-fade: the incoming view only (router.js adds .route-in); list stagger helper (<= 8 children, 40 ms steps). */
.route-in { animation: route-in 180ms var(--e-out) backwards; }
@keyframes route-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: route-in var(--t-base) var(--e-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.stagger > :nth-child(1) { --i: 0; } .stagger > :nth-child(2) { --i: 1; } .stagger > :nth-child(3) { --i: 2; } .stagger > :nth-child(4) { --i: 3; }
.stagger > :nth-child(5) { --i: 4; } .stagger > :nth-child(6) { --i: 5; } .stagger > :nth-child(7) { --i: 6; } .stagger > :nth-child(n+8) { --i: 7; }

/* ---- Toast + splash ---- */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(72, 44, 150, .94), rgba(26, 17, 66, .95));
  border: 1px solid var(--toast-c, rgba(255, 255, 255, .22));
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45), 0 0 22px -2px var(--toast-c, transparent);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-s);
  animation: toast-in var(--t-base) var(--e-out);
}
.toast.out { opacity: 0; transform: translateX(-50%) translateY(6px); transition: opacity var(--t-fast) var(--e-in), transform var(--t-fast) var(--e-in); }
.toast[data-kind="ok"] { --toast-c: var(--mint); }
.toast[data-kind="error"] { --toast-c: var(--t-miss); }
.toast[data-kind="info"] { --toast-c: #9B6BFF; }
.toast-ico { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--toast-c); color: #0E0B22; font-size: var(--fs-xs); font-weight: 800; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%); } }
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-bottom);
  transition: opacity .3s ease-out;
}
#splash.done { opacity: 0; pointer-events: none; }

/* ---- Avatars ---- */
.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  line-height: 1;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--av-l) 55%, transparent), color-mix(in srgb, var(--av-d) 35%, transparent) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--av-l) 70%, transparent) inset, 0 0 14px -2px color-mix(in srgb, var(--av-d) 70%, transparent);
  user-select: none;
}

/* ---- Skeletons ---- */
.skeleton { display: flex; flex-direction: column; gap: 12px; }
.sk {
  display: block;
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .05) 70%) 0 0 / 220% 100% rgba(255, 255, 255, .05);
  animation: sk-sweep 1.4s linear infinite;
}
@keyframes sk-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sk-card { height: 120px; border-radius: var(--radius-card); }
.sk-line { height: 14px; width: 100%; }
.sk-line.short { width: 55%; }
.sk-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, .04); }
.sk-orb { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-end { width: 48px; height: 20px; flex: none; }
.sk-row .sk-line { height: 12px; }

/* ---- Empty state ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px; text-align: center; }
.empty-state .quiet { max-width: 30ch; color: #CFC8EE; }
.empty-state .pill-action, .empty-state .btn-quiet { margin-top: 8px; }
.empty-mascot { display: grid; place-items: center; min-height: 120px; }
.empty-orb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: var(--fs-xl); background: radial-gradient(circle at 32% 28%, rgba(193, 59, 255, .5), rgba(107, 91, 255, .14) 70%); box-shadow: 0 0 0 1px rgba(178, 140, 255, .55) inset, 0 0 32px -2px rgba(193, 59, 255, .7); }

/* ---- Lists ---- */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, .05); }
.list-row.me { background: rgba(255, 154, 92, .12); box-shadow: 0 0 0 1px rgba(255, 154, 92, .45) inset; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub { font-size: var(--fs-s); color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-end { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
button.list-row { width: 100%; text-align: left; transition: transform .12s ease, background .15s ease; }
button.list-row:active { transform: scale(.985); background: rgba(255, 255, 255, .09); }

/* ---- Segmented control ---- */
.seg { --seg-i: 0; --seg-n: 2; position: relative; display: grid; grid-template-columns: repeat(var(--seg-n), 1fr); padding: 4px; border-radius: 999px; background: linear-gradient(160deg, rgba(124, 77, 255, .14), rgba(255, 255, 255, .03)); box-shadow: 0 0 22px rgba(155, 107, 255, .18); }
.seg::after { padding: 1px; }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--seg-n)); border-radius: 999px; background: linear-gradient(135deg, #8E5BFF, #B84DFF 60%, #7A5CFF); box-shadow: 0 0 20px rgba(184, 77, 255, .6), 0 0 0 1px rgba(255, 255, 255, .28) inset, 0 1px 0 rgba(255, 255, 255, .35) inset; transform: translateX(calc(var(--seg-i) * 100%)); transition: transform .22s cubic-bezier(.3, 1.2, .5, 1); }
.seg > button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: none; color: var(--quiet); font-weight: 700; font-size: var(--fs-s); white-space: nowrap; transition: color .15s; }
.seg > button > svg, .seg > button > img { width: 20px; height: 20px; flex: none; }
.seg > button[aria-pressed="true"], .seg > button[aria-selected="true"], .seg > button.on { color: #fff; }

/* ---- Misc primitives ---- */
.chip.sm { padding: 2px 8px; font-size: var(--fs-xs); }
.chip-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); min-width: var(--tap); justify-content: center; padding: 0 14px; border-radius: 999px; background: linear-gradient(160deg, rgba(124, 77, 255, .18), rgba(255, 255, 255, .04)); color: var(--text); font-size: var(--fs-s); font-weight: 700; box-shadow: 0 0 16px rgba(155, 107, 255, .16); }
.dock { position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(11, 8, 32, .92) 60%, transparent); display: flex; flex-direction: column; gap: 12px; }
.pill-action:focus-visible, .btn-quiet:focus-visible { outline-offset: 4px; }

/* ---- Result (views/result.js) ---- */
.result-pop { animation: result-pop .42s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes result-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.result-fade { animation: fade-in .4s ease-out both; }

/* ---- Tap targets (>= 44 px) + card grammar ---- */
.chip-btn, .chip.chip-link, .icon-btn, .tab, button.tab, [role="tab"] { min-height: var(--tap); min-width: var(--tap); }
.chip.chip-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; cursor: pointer; }
.card-label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--quiet); }
.card-value { font-size: var(--fs-l); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.card-value.xl { font-size: var(--fs-xl); }
.card-note { font-size: var(--fs-s); color: var(--quiet); }
.hud-right { display: flex; align-items: center; justify-content: flex-end; min-width: 48px; min-height: 48px; flex: none; }
.toast.action { cursor: pointer; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .sk { background: rgba(255, 255, 255, .09); }
}

/* ---- Neon motes (always on; tinted + one themed glyph per event via html[data-event], set by app.js).
   Generated by tools: scratchpad neon_decor.py. Two parallax tiles rising slowly from the neon floor and fading out by 30 % height (never behind the glass cards' text), glow = layered strokes (no filters/blur), off under reduced motion. ---- */
html::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 0%, #000 10%, transparent 30%); mask-image: linear-gradient(to top, #000 0%, #000 10%, transparent 30%); background-repeat: repeat, repeat; background-size: 380px 700px, 300px 520px; opacity: .75; animation: motes-rise 150s linear infinite, motes-twinkle 7s ease-in-out infinite alternate; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='700' viewBox='0 0 380 700'%3E%3Cg transform='translate(69 108) rotate(0) scale(1.30)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%237DF3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%237DF3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%237DF3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(339 182) rotate(15) scale(0.96)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(144 409) rotate(15) scale(0.91)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(330 375) rotate(45) scale(0.97)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%235CE1E6' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%235CE1E6' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(94 610) rotate(45) scale(1.26)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%237DF3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%237DF3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%237DF3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(326 618) rotate(-20) scale(1.12)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='520' viewBox='0 0 300 520'%3E%3Cg transform='translate(118 127) rotate(30) scale(0.88)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(217 143) rotate(0) scale(0.87)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(47 254) rotate(0) scale(0.66)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(271 193) rotate(45) scale(0.81)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%235CE1E6' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%235CE1E6' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(59 418) rotate(0) scale(0.66)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%237DF3FF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%237DF3FF' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(174 414) rotate(-20) scale(0.69)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3C/svg%3E"); }
@keyframes motes-rise { from { background-position: 0 0, 40px 0; } to { background-position: 0 -700px, 40px -1040px; } }
@keyframes motes-twinkle { from { opacity: .55; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { html::after { animation: none; opacity: .6; } }
html[data-event="harvest"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='700' viewBox='0 0 380 700'%3E%3Cg transform='translate(51 130) rotate(45) scale(1.12)'%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FFB36B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FFB36B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FFB36B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(234 42) rotate(15) scale(1.25)'%3E%3Cpath d='M0 -6L5.2 3H-5.2Z M0 -1.5L2.2 2H-2.2Z' fill='none' stroke='%23FF4F7B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -6L5.2 3H-5.2Z M0 -1.5L2.2 2H-2.2Z' fill='none' stroke='%23FF4F7B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -6L5.2 3H-5.2Z M0 -1.5L2.2 2H-2.2Z' fill='none' stroke='%23FF4F7B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(121 356) rotate(0) scale(0.98)'%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FCD34D' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FCD34D' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FCD34D' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(289 443) rotate(0) scale(1.28)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(127 491) rotate(0) scale(1.26)'%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FFB36B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FFB36B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FFB36B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(282 654) rotate(45) scale(0.81)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF4F7B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF4F7B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF4F7B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='520' viewBox='0 0 300 520'%3E%3Cg transform='translate(59 127) rotate(0) scale(0.79)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FFB36B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FFB36B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FFB36B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(190 38) rotate(0) scale(0.73)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF4F7B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF4F7B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF4F7B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(112 223) rotate(0) scale(0.61)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FCD34D' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FCD34D' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FCD34D' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(200 199) rotate(0) scale(0.58)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(85 384) rotate(30) scale(0.61)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FFB36B' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FFB36B' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(226 488) rotate(0) scale(0.69)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF4F7B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF4F7B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF4F7B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-event="winter"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='700' viewBox='0 0 380 700'%3E%3Cg transform='translate(40 180) rotate(30) scale(0.98)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(325 41) rotate(0) scale(1.25)'%3E%3Cpath d='M0 -6V6M-5.2 -3L5.2 3M-5.2 3L5.2 -3M-1.6 -4.6L0 -3L1.6 -4.6M-1.6 4.6L0 3L1.6 4.6' fill='none' stroke='%237DF3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -6V6M-5.2 -3L5.2 3M-5.2 3L5.2 -3M-1.6 -4.6L0 -3L1.6 -4.6M-1.6 4.6L0 3L1.6 4.6' fill='none' stroke='%237DF3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -6V6M-5.2 -3L5.2 3M-5.2 3L5.2 -3M-1.6 -4.6L0 -3L1.6 -4.6M-1.6 4.6L0 3L1.6 4.6' fill='none' stroke='%237DF3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(105 367) rotate(15) scale(1.22)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FFFFFF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FFFFFF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FFFFFF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(287 309) rotate(-20) scale(1.19)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(52 589) rotate(0) scale(1.15)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%238BD3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%238BD3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%238BD3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(260 497) rotate(0) scale(1.16)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%237DF3FF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%237DF3FF' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='520' viewBox='0 0 300 520'%3E%3Cg transform='translate(89 50) rotate(45) scale(0.85)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(221 94) rotate(30) scale(0.74)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(124 260) rotate(0) scale(0.85)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FFFFFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FFFFFF' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(270 244) rotate(0) scale(0.58)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(52 370) rotate(0) scale(0.63)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%238BD3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(225 453) rotate(0) scale(0.84)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%237DF3FF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%237DF3FF' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-event="sweethearts"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='700' viewBox='0 0 380 700'%3E%3Cg transform='translate(154 187) rotate(0) scale(0.86)'%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-6 0H6' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(319 129) rotate(30) scale(1.25)'%3E%3Cpath d='M0 5C-9 -2 -5 -8 0 -3.5C5 -8 9 -2 0 5Z' fill='none' stroke='%23FF4F7B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 5C-9 -2 -5 -8 0 -3.5C5 -8 9 -2 0 5Z' fill='none' stroke='%23FF4F7B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 5C-9 -2 -5 -8 0 -3.5C5 -8 9 -2 0 5Z' fill='none' stroke='%23FF4F7B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(42 292) rotate(-20) scale(1.12)'%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FFB3C8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FFB3C8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FFB3C8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(251 408) rotate(30) scale(1.28)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(139 511) rotate(0) scale(0.95)'%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(326 533) rotate(-20) scale(1.12)'%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FF4F7B' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FF4F7B' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5L4.3 -2.5V2.5L0 5L-4.3 2.5V-2.5Z' fill='none' stroke='%23FF4F7B' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='520' viewBox='0 0 300 520'%3E%3Cg transform='translate(46 132) rotate(15) scale(0.61)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(209 90) rotate(30) scale(0.87)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF4F7B' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF4F7B' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(125 265) rotate(15) scale(0.88)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FFB3C8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FFB3C8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FFB3C8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(260 202) rotate(0) scale(0.63)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(105 383) rotate(30) scale(0.78)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(193 373) rotate(30) scale(0.66)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF4F7B' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF4F7B' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-event="spring"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='700' viewBox='0 0 380 700'%3E%3Cg transform='translate(111 76) rotate(45) scale(0.96)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23FF9ACB' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23FF9ACB' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23FF9ACB' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(283 152) rotate(0) scale(1.25)'%3E%3Cpath d='M0 0C-1 -6 3 -7 3 -3C7 -4 6 1 1.5 1C4 5 -1 6 -1 2C-6 4 -6 -1 -2 -1C-6 -5 -1 -6 0 0Z' fill='none' stroke='%236EE7B7' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 0C-1 -6 3 -7 3 -3C7 -4 6 1 1.5 1C4 5 -1 6 -1 2C-6 4 -6 -1 -2 -1C-6 -5 -1 -6 0 0Z' fill='none' stroke='%236EE7B7' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 0C-1 -6 3 -7 3 -3C7 -4 6 1 1.5 1C4 5 -1 6 -1 2C-6 4 -6 -1 -2 -1C-6 -5 -1 -6 0 0Z' fill='none' stroke='%236EE7B7' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(154 267) rotate(0) scale(0.97)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%23B28CFF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(321 357) rotate(45) scale(1.02)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%237DF3FF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%237DF3FF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(84 620) rotate(-20) scale(1.24)'%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%23FF9ACB' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%23FF9ACB' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%23FF9ACB' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(280 665) rotate(30) scale(1.13)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%236EE7B7' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%236EE7B7' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%236EE7B7' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='520' viewBox='0 0 300 520'%3E%3Cg transform='translate(127 90) rotate(15) scale(0.56)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF9ACB' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF9ACB' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(192 68) rotate(0) scale(0.87)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%236EE7B7' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%236EE7B7' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(116 208) rotate(45) scale(0.65)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(243 285) rotate(45) scale(0.68)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%237DF3FF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%237DF3FF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(37 472) rotate(0) scale(0.58)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF9ACB' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FF9ACB' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(228 395) rotate(30) scale(0.77)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%236EE7B7' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%236EE7B7' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-event="summer"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='700' viewBox='0 0 380 700'%3E%3Cg transform='translate(79 54) rotate(15) scale(1.06)'%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%236EE7B7' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%236EE7B7' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-5 -4H-7V4H-5M5 -4H7V4H5' fill='none' stroke='%236EE7B7' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(349 173) rotate(0) scale(1.25)'%3E%3Cpath d='M5 0A5 5 0 1 1 -5 0A5 5 0 1 1 5 0M0 -8V-6.5M0 6.5V8M-8 0H-6.5M6.5 0H8' fill='none' stroke='%23FCD34D' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 0A5 5 0 1 1 -5 0A5 5 0 1 1 5 0M0 -8V-6.5M0 6.5V8M-8 0H-6.5M6.5 0H8' fill='none' stroke='%23FCD34D' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 0A5 5 0 1 1 -5 0A5 5 0 1 1 5 0M0 -8V-6.5M0 6.5V8M-8 0H-6.5M6.5 0H8' fill='none' stroke='%23FCD34D' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(141 270) rotate(45) scale(0.86)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%237DF3FF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%237DF3FF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(235 435) rotate(30) scale(1.01)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FF8BD8' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FF8BD8' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(42 525) rotate(15) scale(0.92)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%236EE7B7' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%236EE7B7' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(228 556) rotate(30) scale(1.10)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FCD34D' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FCD34D' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FCD34D' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='520' viewBox='0 0 300 520'%3E%3Cg transform='translate(89 136) rotate(15) scale(0.58)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%236EE7B7' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%236EE7B7' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%236EE7B7' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(185 59) rotate(0) scale(0.59)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FCD34D' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23FCD34D' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(42 329) rotate(15) scale(0.71)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%237DF3FF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(229 305) rotate(-20) scale(0.91)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(84 460) rotate(45) scale(0.57)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%236EE7B7' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%236EE7B7' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(276 400) rotate(15) scale(0.84)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FCD34D' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FCD34D' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-event="spooky"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='700' viewBox='0 0 380 700'%3E%3Cg transform='translate(79 142) rotate(45) scale(0.92)'%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M-1.6 -1.6H1.6V1.6H-1.6Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(329 140) rotate(30) scale(1.25)'%3E%3Cpath d='M0 -1C-3 -5 -8 -4 -10 0C-7 -1 -6 1 -5 2C-4 0 -2 1 0 2C2 1 4 0 5 2C6 1 7 -1 10 0C8 -4 3 -5 0 -1Z' fill='none' stroke='%236EE7B7' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -1C-3 -5 -8 -4 -10 0C-7 -1 -6 1 -5 2C-4 0 -2 1 0 2C2 1 4 0 5 2C6 1 7 -1 10 0C8 -4 3 -5 0 -1Z' fill='none' stroke='%236EE7B7' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -1C-3 -5 -8 -4 -10 0C-7 -1 -6 1 -5 2C-4 0 -2 1 0 2C2 1 4 0 5 2C6 1 7 -1 10 0C8 -4 3 -5 0 -1Z' fill='none' stroke='%236EE7B7' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(32 363) rotate(0) scale(1.20)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FF8BD8' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(261 258) rotate(30) scale(1.09)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FB923C' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FB923C' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%23FB923C' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(30 537) rotate(0) scale(1.24)'%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M-4 0H4M0 -4V4' fill='none' stroke='%23B28CFF' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(331 615) rotate(-20) scale(1.03)'%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%236EE7B7' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%236EE7B7' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 -5.5L5 3.2H-5Z' fill='none' stroke='%236EE7B7' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='520' viewBox='0 0 300 520'%3E%3Cg transform='translate(75 152) rotate(0) scale(0.69)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(177 32) rotate(-20) scale(0.66)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%236EE7B7' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%236EE7B7' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(58 310) rotate(30) scale(0.82)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FF8BD8' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FF8BD8' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(248 299) rotate(0) scale(0.76)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FB923C' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23FB923C' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(55 394) rotate(-20) scale(0.79)'%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23B28CFF' opacity='.18' transform='scale(2.2)'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23B28CFF' opacity='.55'/%3E%3Cpath d='M0 -2.4L2.4 0L0 2.4L-2.4 0Z' fill='%23fff' opacity='.5' transform='scale(.45)'/%3E%3C/g%3E%3Cg transform='translate(238 482) rotate(0) scale(0.87)'%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%236EE7B7' stroke-width='6.0' opacity='.12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%236EE7B7' stroke-width='2.64' opacity='.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 0A4 4 0 1 1 -4 0A4 4 0 1 1 4 0' fill='none' stroke='%236EE7B7' stroke-width='1.2' opacity='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---- Accessibility (Settings > Accessibility; attributes set by applyA11y() in views/settings.js) ---- */
html[data-text="large"] { --fs-xs: 13.8px; --fs-s: 16.1px; --fs-m: 19.6px; --fs-l: 25.3px; --fs-xl: 36.8px; --fs-hero: 55.2px; }
html[data-hand="left"] .hud-top > :first-child { order: 3; justify-self: end; }
html[data-hand="left"] .hud-top > :last-child { order: 1; justify-self: start; }
html[data-hand="left"] .hud-top > .hud-center { order: 2; border-left: 0; border-right: 1px solid rgba(255, 255, 255, .12); padding-left: 0; padding-right: 10px; } /* back/pause on the right, level badge on the left */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ---- Visual v3 components: top bar, hero head, sheet head, section cards, switch ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-left { flex: none; }
.tb-right { justify-content: flex-end; flex: 0 1 auto; }
.tb-right > .chip, .tb-right > .chip-btn { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-back { width: 44px; height: 44px; flex: none; }
.tb-streak { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 6px; font-size: var(--fs-s); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.tb-me { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: none; color: var(--text); }
.tb-me .avatar { box-shadow: 0 0 0 2px rgba(178, 140, 255, .95), 0 0 0 4px rgba(193, 59, 255, .22), 0 0 18px rgba(193, 59, 255, .6); }
.tb-ph { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); }

.hero-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero-orb { margin: 0 14px 0 10px; position: relative; flex: none; display: grid; place-items: center; width: 76px; height: 76px; }
.hero-head.compact .hero-orb { width: 56px; height: 56px; margin: 0 12px 0 8px; }
.hero-head.compact .hero-title { font-size: var(--fs-l); }
.hero-head.compact .hero-sub { font-size: var(--fs-s); margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-head.compact { max-height: 72px; }
.hero-orb > .orbit, .hero-orb > svg.orbit { position: absolute; left: 50%; top: 50%; width: 132%; height: 132%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-text { flex: 1; min-width: 0; }
.hero-title { font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero-sub { margin-top: 4px; font-size: var(--fs-s); color: #D6CEF5; }
.hero-sub.caps { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--quiet); }
.hero-sub.caps > i { flex: 1; height: 1px; min-width: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06)); }
.hero-sub.caps > i:first-child { flex: 0 0 12px; }
.hero-sub.caps > span { flex: none; white-space: nowrap; }
.hero-art, .sheet-head .sh-art { flex: none; display: grid; place-items: center; filter: drop-shadow(0 0 16px rgba(255, 140, 190, .45)); }
.hero-art > img, .sh-art > img { display: block; max-width: 96px; max-height: 96px; }
.hero-right { flex: none; display: flex; align-items: center; }

.sheet-head { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0 0 14px; padding-right: 48px; }
.sheet-head .sh-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; color: #FF8BD8; filter: drop-shadow(0 0 8px rgba(255, 106, 213, .6)); }
.sheet-head .sh-text { flex: 1; min-width: 0; }
.sheet-head .sh-title { font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.sheet-head .sh-sub { margin-top: 2px; font-size: var(--fs-s); color: #D6CEF5; }
.sheet-head .sh-close { position: absolute; top: -8px; right: -4px; width: 44px; height: 44px; }
.sheet-head .sh-art { position: absolute; right: 56px; top: 8px; margin: 0; pointer-events: none; }
.sheet-head .sh-art > img { max-width: 96px; max-height: 96px; }
/* Art is absolutely positioned: the text block keeps clear of it (title and subtitle wrap instead of sliding under the art). */
.sheet-head:has(.sh-art) .sh-text { padding-right: 104px; }
@media (max-width: 380px) { .sheet-head:has(.sh-art) .sh-text { padding-right: 76px; } .sheet-head .sh-art > img, .sheet-head .sh-art > svg { max-width: 68px; max-height: 68px; } }

.sec-card { position: relative; border-radius: var(--r-card); padding: 6px 16px 6px; background: var(--card-fill); box-shadow: var(--glow-card), inset 0 1px 0 rgba(255, 255, 255, .18); }
.sec-card::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--card-border); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.sec-head { display: flex; align-items: center; gap: 12px; min-height: 28px; padding: 4px 0 4px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #E6D9FF; }
.sec-head .sec-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: #C9B8FF; }
.sec-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 44px; padding: 4px 0; border-top: 1px solid var(--ink-line); background: none; color: var(--text); text-align: left; font-size: var(--fs-m); font-weight: 500; }
.sec-card > .sec-row:first-child { border-top: 0; }
.sec-row .sec-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: #D9CBFF; }
.sec-row .sec-label { flex: 1; min-width: 0; }
.sec-row .sec-val { flex: none; color: var(--quiet); font-size: var(--fs-m); }
.sec-row .sec-chev { flex: none; display: grid; place-items: center; width: 20px; height: 20px; color: #D9CBFF; }
button.sec-row { cursor: pointer; }
button.sec-row:active { background: rgba(255, 255, 255, .05); }
.sec-note { margin: 4px 0 8px; padding: 10px 12px; border-radius: 14px; background: rgba(60, 40, 140, .35); box-shadow: 0 0 0 1px rgba(125, 150, 255, .35) inset; font-size: var(--fs-s); color: #D6CEF5; }

/* Toggle: parent carries aria-checked (role=switch) or the switch carries .on. html + doubled class beats the older .set-row rules in home.css. */
html .switch { position: relative; flex: none; width: 50px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .10); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; transition: background .15s, box-shadow .15s; pointer-events: none; }
html .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #F3EFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .15s, background .15s; }
html [aria-checked="true"] .switch.switch, html .switch.switch.on { background: linear-gradient(90deg, #5CE1E6, #7C6BFF); box-shadow: 0 0 16px rgba(92, 225, 230, .55), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
html [aria-checked="true"] .switch.switch::after, html .switch.switch.on::after { transform: translateX(22px); background: radial-gradient(circle at 40% 35%, #fff, #D9FBFF 70%); box-shadow: 0 0 10px rgba(180, 250, 255, .95); }

.btn-quiet small, .btn-quiet .sub, .btn-quiet .list-sub { font-weight: 400; color: var(--quiet); }
.scroll-y { overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.scroll-y::-webkit-scrollbar, .sheet::-webkit-scrollbar { display: none; }
.sheet { scrollbar-width: none; }

.sheet:focus { outline: none; }
html[data-text="large"] { --fs-score: 66px; }
@media (max-width: 380px) { html[data-text="large"] .sheet-head .sh-art { display: none; } }
html:has(.hud)::before { opacity: .3; }
@media (max-height: 700px) { .hud-mode { display: none !important; } }
