/* Rollwave: the 3D track is one canvas filling the stage; the HUD, the title menu, panels, toasts and the countdown are
   HTML over it. Rocket Games house style (dark glass, 1px lines, warm primary buttons, cyan accents) with a synthwave
   personality: magenta and cyan glows, a striped sun gradient on the logo. */
.rv { display: flex; flex-direction: column; color: #e8ecff; --rv-cyan: #55d6ff; --rv-pink: #ff4fd8; --rv-gold: #ffd166; --rv-line: #1c2b4a; --rv-glass: rgba(8, 9, 28, 0.86); --rv-glass2: rgba(12, 14, 40, 0.92); }
.rv-stage { position: relative; width: 100%; height: min(86vh, 800px); min-height: 480px; background: #05020f; overflow: hidden; outline: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
@media (max-width: 600px) { .rv-stage { height: auto; aspect-ratio: 9 / 15.5; max-height: 88vh; min-height: 0; } }
.rv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.rv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv kbd { background: #16213a; color: #bfe9ff; border-radius: 4px; padding: 1px 6px; font-family: inherit; font-size: 0.9em; border: 1px solid #2a3c66; }
.rv .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .rv .hint-kb { display: none; } .rv .hint-touch { display: inline; } }
.rv-vig { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(4, 0, 16, 0.55) 100%); transition: background .4s; }
.rv-slowmo .rv-vig { background: radial-gradient(ellipse at 50% 45%, rgba(120, 80, 255, 0.05) 40%, rgba(70, 30, 160, 0.55) 100%); }
.rv-ghost .rv-vig { background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(140, 255, 245, 0.22) 100%); }

/* ---------- HUD ---------- */
.rv-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rv-hud[hidden] { display: none; }
.rv-top { position: absolute; left: 10px; right: 10px; top: max(10px, env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 8px; }
.rv-top > * { pointer-events: auto; }
.rv-sp { flex: 1 1 auto; }
.rv-chip { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: var(--rv-glass); border: 1px solid var(--rv-line);
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #cfe8ff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 0 14px color-mix(in srgb, var(--zc, #55d6ff) 25%, transparent); }
.rv-ibtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--rv-line); background: var(--rv-glass); color: #cfe0ff; cursor: pointer; padding: 0; touch-action: manipulation; }
.rv-ibtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rv-ibtn .spk { fill: currentColor; stroke: none; }
#rv-snd .off { display: none; } #rv-snd[aria-pressed="true"] { color: #6d76a8; } #rv-snd[aria-pressed="true"] .on { display: none; } #rv-snd[aria-pressed="true"] .off { display: inline; }
@media (hover: hover) { .rv-ibtn:hover { border-color: var(--rv-cyan); color: #fff; } }
.rv-ibtn:focus-visible, .rv-btn:focus-visible, .rv-tile:focus-visible, .rv-cont:focus-visible, .rv-sbtn:focus-visible { outline: 2px solid var(--rv-cyan); outline-offset: 2px; }
.rv-main { position: absolute; left: 0; right: 0; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 46px); text-align: center; line-height: 1; text-shadow: 0 0 18px rgba(255, 79, 216, 0.55), 0 2px 0 rgba(0,0,0,0.4); }
.rv-main b { font-size: clamp(34px, 7vw, 54px); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: #fff; }
.rv-main span { margin-left: 5px; font-size: 16px; font-weight: 800; color: #ffd1f5; letter-spacing: 0.05em; }
.rv-sub { position: absolute; left: 0; right: 0; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 100px); display: flex; justify-content: center; gap: 12px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: #dfe9ff; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.rv-sub span { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(6, 6, 22, 0.55); }
.rv-sub i { font-style: normal; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb1d8; }
.rv-sub .rv-g { color: var(--rv-gold); } .rv-sub .rv-ok { color: #5dffb0; } .rv-sub .rv-bad { color: #ff9a8a; }
.rv-sub .rv-gh { border: 1px solid rgba(255,255,255,0.22); } .rv-sub .rv-gh.rv-ok { border-color: rgba(93, 255, 176, 0.45); } .rv-sub .rv-gh.rv-bad { border-color: rgba(255, 154, 138, 0.4); }
.rv-banner.rv-card .rv-cardgh { font-size: 12.5px; font-weight: 800; color: #e8ecff; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); }
.rv-prog { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top, 0px)) + 130px); width: min(70%, 420px); height: 6px; border-radius: 6px; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.rv-prog[hidden] { display: none; }
.rv-prog [data-bar] { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--rv-cyan), var(--rv-pink)); box-shadow: 0 0 10px rgba(255, 79, 216, 0.6); }
.rv-prog s { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: rgba(255,255,255,0.5); text-decoration: none; }
.rv-prog [data-dots] b { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); border: 1.5px solid rgba(0,0,0,0.5); }
.rv-prog [data-dots] b.me { width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #fff; z-index: 2; }
.rv-board { position: absolute; left: 10px; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 52px); margin: 0; padding: 6px; list-style: none; width: 152px; border-radius: 12px; background: rgba(6, 7, 22, 0.66); border: 1px solid var(--rv-line); font-size: 12px; }
.rv-board[hidden] { display: none; }
.rv-narrow .rv-board { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 146px); width: 128px; padding: 4px; font-size: 11.5px; }
.rv-narrow .rv-board li { grid-template-columns: 8px 12px 1fr auto; gap: 4px; } .rv-narrow .rv-board li i { width: 8px; height: 8px; } .rv-narrow .rv-board li small { font-size: 10.5px; }
.rv-board li { display: grid; grid-template-columns: 10px 14px 1fr auto; align-items: center; gap: 5px; padding: 2px 3px; border-radius: 6px; color: #cfd8f5; font-variant-numeric: tabular-nums; }
.rv-board li i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 5px var(--c); }
.rv-board li b { font-weight: 900; color: #fff; } .rv-board li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rv-board li small { font-size: 11px; color: #9fb1d8; } .rv-board li.me { background: rgba(85, 214, 255, 0.16); color: #fff; } .rv-board li.out { opacity: 0.5; }
.rv-pows { position: absolute; right: 10px; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 52px); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.rv-pchip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--rv-glass); border: 1px solid var(--pc, var(--rv-cyan)); color: var(--pc, var(--rv-cyan)); box-shadow: 0 0 12px color-mix(in srgb, var(--pc, #55d6ff) 40%, transparent); animation: rv-pin .25s ease-out; }
.rv-pchip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rv-pchip b { font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.rv-p-shield { --pc: #55d6ff; } .rv-p-magnet { --pc: #ff6b7a; } .rv-p-ghost { --pc: #e8ecff; } .rv-p-slow { --pc: #b9a0ff; } .rv-p-surge { --pc: #ffd166; }
@keyframes rv-pin { from { opacity: 0; transform: scale(0.6); } }
.rv-combo { position: absolute; left: 12px; bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 4px); display: flex; align-items: baseline; gap: 5px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.rv-combo.on { opacity: 1; transform: none; }
.rv-combo b { font-size: 30px; font-weight: 900; color: var(--rv-gold); text-shadow: 0 0 14px rgba(255, 209, 102, 0.7); font-variant-numeric: tabular-nums; }
.rv-combo span { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ffe8b0; }
.rv-combo i { position: absolute; left: 0; bottom: -6px; height: 3px; width: calc(var(--k) * 100%); min-width: 0; background: var(--rv-gold); border-radius: 3px; box-shadow: 0 0 6px var(--rv-gold); }
.rv-speed { position: absolute; right: 12px; bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 4px); text-align: right; line-height: 1; text-shadow: 0 0 12px rgba(85, 214, 255, 0.6); }
.rv-speed b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; } .rv-speed span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #9fe6ff; margin-top: 2px; }
.rv-pops { position: absolute; inset: 0; overflow: hidden; }
.rv-pop { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 15px; font-weight: 900; letter-spacing: 0.04em; color: #fff; text-shadow: 0 0 10px currentColor, 0 2px 0 rgba(0,0,0,0.5); animation: rv-popup .9s ease-out forwards; }
.rv-pop-near { color: #9ff0ff; } .rv-pop-air { color: #ffd166; } .rv-pop-pow { color: #ffb0f0; font-size: 17px; } .rv-pop-flow { color: #ffd166; font-size: 18px; }
@keyframes rv-popup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.06); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
/* split screen */
.rv-hsplit .rv-main, .rv-hsplit .rv-sub, .rv-hsplit .rv-speed, .rv-hsplit .rv-combo, .rv-hsplit .rv-pows { display: none; }
.rv-split { position: absolute; inset: 0; }
.rv-split[hidden] { display: none; }
.rv-sv { position: absolute; display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 12px; background: var(--rv-glass); border: 1px solid var(--rv-line); font-variant-numeric: tabular-nums; }
.rv-sv b { font-weight: 900; font-size: 13px; letter-spacing: 0.1em; } .rv-sv span { font-weight: 900; font-size: 20px; color: #fff; } .rv-sv small { font-size: 12px; color: #9fb1d8; font-weight: 700; }
.rv-sv0 b { color: var(--rv-cyan); } .rv-sv1 b { color: var(--rv-pink); }
.rv-sv0 { left: 12px; top: 58px; } .rv-sv1 { left: 12px; top: calc(50% + 10px); }
.rv-landscape .rv-sv1 { left: calc(50% + 12px); top: 58px; }
.rv-landscape .rv-hsplit .rv-sv0, .rv-landscape .rv-hsplit .rv-sv1 { top: 58px; }
.rv-hsplit::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--rv-cyan), var(--rv-pink)); box-shadow: 0 0 10px rgba(255, 79, 216, 0.6); }
.rv-landscape .rv-hsplit::after { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; background: linear-gradient(180deg, var(--rv-cyan), var(--rv-pink)); }

/* touch zones: a faint glow on the side you hold */
.rv-touch { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.rv-touch[hidden] { display: none; }
.rv-touch i { position: absolute; bottom: 0; width: 50%; height: 34%; opacity: 0; transition: opacity .12s; }
.rv-touch i[data-z="0l"] { left: 0; background: radial-gradient(ellipse at 0% 100%, rgba(85, 214, 255, 0.28), transparent 70%); }
.rv-touch i[data-z="0r"] { right: 0; background: radial-gradient(ellipse at 100% 100%, rgba(255, 79, 216, 0.28), transparent 70%); }
.rv-touch i[data-z="1l"], .rv-touch i[data-z="1r"] { display: none; }
.rv-touch i.on { opacity: 1; }
.rv-touch::before, .rv-touch::after { content: ''; position: absolute; bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 46px); width: 26px; height: 26px; border: solid rgba(255,255,255,0.28); border-width: 0 0 3px 3px; }
.rv-touch::before { left: 22px; transform: rotate(45deg); } .rv-touch::after { right: 22px; transform: rotate(-135deg); }
.rv-touch.rv-drag::before, .rv-touch.rv-drag::after { display: none; }
.rv-touch.rv-split2::before, .rv-touch.rv-split2::after { display: none; }
.rv-touch.rv-split2 i { height: 50%; }
.rv-touch.rv-split2 i[data-z="0l"], .rv-touch.rv-split2 i[data-z="0r"] { top: 0; bottom: auto; }
.rv-touch.rv-split2 i[data-z="1l"], .rv-touch.rv-split2 i[data-z="1r"] { display: block; bottom: 0; }
.rv-touch.rv-split2 i[data-z="1l"] { left: 0; background: radial-gradient(ellipse at 0% 100%, rgba(255, 79, 216, 0.28), transparent 70%); }
.rv-touch.rv-split2 i[data-z="1r"] { right: 0; background: radial-gradient(ellipse at 100% 100%, rgba(255, 79, 216, 0.28), transparent 70%); }
.rv-landscape .rv-touch.rv-split2 i { width: 25%; height: 100%; top: 0; }
.rv-landscape .rv-touch.rv-split2 i[data-z="0l"] { left: 0; } .rv-landscape .rv-touch.rv-split2 i[data-z="0r"] { left: 25%; right: auto; }
.rv-landscape .rv-touch.rv-split2 i[data-z="1l"] { left: 50%; } .rv-landscape .rv-touch.rv-split2 i[data-z="1r"] { left: 75%; right: auto; }

/* "press to roll", the countdown and banners */
.rv-go { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 16px; background: var(--rv-glass); border: 1px solid rgba(85, 214, 255, 0.4);
  box-shadow: 0 0 26px rgba(85, 214, 255, 0.22); text-align: center; pointer-events: none; animation: rv-breathe 1.8s ease-in-out infinite; max-width: calc(100% - 32px); }
.rv-go[hidden] { display: none; }
.rv-go b { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: 0.02em; } .rv-go span[data-what] { font-size: 13px; color: #a9bde4; }
@keyframes rv-breathe { 50% { box-shadow: 0 0 40px rgba(255, 79, 216, 0.35); border-color: rgba(255, 79, 216, 0.6); } }
.rv-count { position: absolute; left: 50%; top: 38%; z-index: 5; transform: translate(-50%, -50%); font-size: clamp(70px, 20vw, 150px); font-weight: 900; color: #fff; pointer-events: none; opacity: 0;
  text-shadow: 0 0 30px var(--rv-pink), 0 0 60px rgba(85, 214, 255, 0.6); }
.rv-count.on { animation: rv-count .9s ease-out forwards; }
@keyframes rv-count { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); } }
.rv-banner { position: absolute; left: 50%; top: 43%; z-index: 4; transform: translate(-50%, -50%); width: min(calc(100% - 32px), 460px); text-align: center; pointer-events: none; opacity: 0; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.rv-banner.rv-card { gap: 7px; padding: 14px 16px 13px; border-radius: 18px; background: rgba(8, 9, 28, 0.78); border: 1px solid rgba(85, 214, 255, 0.28); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 79, 216, 0.16); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.rv-banner.rv-card span { background: none; padding: 0; text-shadow: none; color: #c9d6f5; }
.rv-banner.rv-card em { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; text-shadow: none; }
.rv-banner.rv-card em i { font-style: normal; white-space: nowrap; }
.rv-banner.on { animation: rv-ban 2.4s ease-out forwards; }
.rv-banner small { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #9fe6ff; }
.rv-banner b { font-size: clamp(26px, 6vw, 38px); font-weight: 900; color: #fff; text-shadow: 0 0 22px rgba(255, 79, 216, 0.7); letter-spacing: 0.01em; }
.rv-banner span { font-size: 14px; color: #dfe6ff; text-shadow: 0 1px 6px #000; padding: 6px 12px; border-radius: 12px; background: rgba(8, 9, 28, 0.6); line-height: 1.35; }
.rv-banner em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--rv-gold); letter-spacing: 0.02em; text-shadow: 0 1px 6px #000; }
/* (the race countdown's title card: below the big numbers, above the starting grid) */
.rv-banner.rv-low { top: 56%; }
@keyframes rv-ban { 0% { opacity: 0; transform: translate(-50%, -40%); } 12% { opacity: 1; transform: translate(-50%, -50%); } 82% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- the title screen ---------- */
.rv-title { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(5, 2, 15, 0.55) 0%, transparent 32%, transparent 48%, rgba(5, 2, 15, 0.82) 78%); }
.rv-title[hidden] { display: none; }
.rv-ttop { display: flex; flex-direction: column; align-items: center; }
.rv-logo { margin-top: 2vh; display: flex; flex-direction: column; align-items: center; line-height: 0.86; font-size: clamp(50px, 12vw, 92px); font-weight: 900; letter-spacing: 0.04em; font-style: italic; }
.rv-logo span { background: linear-gradient(180deg, #fff6b0 0%, #ffd166 30%, #ff7ab6 58%, #ff2fd0 78%, #8f3dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 47, 208, 0.55)) drop-shadow(0 3px 0 rgba(30, 0, 60, 0.8)); }
.rv-logo span + span { background: linear-gradient(180deg, #e6fdff 0%, #55d6ff 45%, #2d6dff 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 14px rgba(85, 214, 255, 0.55)) drop-shadow(0 3px 0 rgba(0, 20, 60, 0.8)); }
.rv-best { display: flex; gap: 14px; margin: 10px 0 0; font-size: 13px; color: #c6d3f2; text-shadow: 0 1px 6px #000; flex-wrap: wrap; justify-content: center; }
.rv-best b { color: #fff; font-variant-numeric: tabular-nums; }
.rv-menu { width: min(100%, 520px); display: flex; flex-direction: column; gap: 10px; }
.rv-cont { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 18px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; font: inherit; color: #1a0f00;
  background: linear-gradient(135deg, #ffe58a, #ffd166 45%, #ffad5c); box-shadow: 0 8px 26px rgba(255, 170, 70, 0.32), inset 0 1px 0 rgba(255,255,255,0.6); touch-action: manipulation; transition: transform .1s, filter .15s; }
.rv-cont svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.rv-cont span { display: flex; flex-direction: column; min-width: 0; } .rv-cont small { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.rv-cont b { font-size: 18px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .rv-cont:hover { filter: brightness(1.06); } }
.rv-cont:active, .rv-tile:active, .rv-btn:active { transform: translateY(1px); }
.rv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rv-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 86px; padding: 13px 4px 10px; border-radius: 14px; border: 1px solid var(--rv-line); background: var(--rv-glass); color: #e8ecff; cursor: pointer; font: inherit; touch-action: manipulation; transition: border-color .15s, box-shadow .15s, transform .1s; }
.rv-tile svg { width: 26px; height: 26px; fill: none; stroke: var(--rv-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(85, 214, 255, 0.5)); }
.rv-tile b { font-size: 14px; font-weight: 900; } .rv-tile small { font-size: 11px; color: #96a8cf; text-align: center; line-height: 1.2; text-wrap: balance; }
.rv-tile:nth-child(2) svg { stroke: var(--rv-pink); filter: drop-shadow(0 0 6px rgba(255, 79, 216, 0.5)); } .rv-tile:nth-child(3) svg { stroke: var(--rv-gold); filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.5)); } .rv-tile:nth-child(4) svg { stroke: #3dffb5; filter: drop-shadow(0 0 6px rgba(61, 255, 181, 0.5)); }
@media (hover: hover) { .rv-tile:hover { border-color: var(--rv-cyan); box-shadow: 0 0 18px rgba(85, 214, 255, 0.2); } }
.rv-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rv-pink); box-shadow: 0 0 8px var(--rv-pink); }
.rv-dot[hidden] { display: none; }
.rv-smalls { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.rv-sbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rv-line); background: var(--rv-glass); color: #cfd8f5; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; touch-action: manipulation; }
.rv-sbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .rv-sbtn:hover { border-color: var(--rv-cyan); color: #fff; } }
.rv-title button:disabled { opacity: 0.6; cursor: default; }

/* ---------- panels ---------- */
.rv-overlay { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(3, 1, 12, 0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.rv-overlay[hidden] { display: none; }
.rv-panel { position: relative; width: min(100%, 520px); max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: 18px 18px 16px; border-radius: 18px; background: var(--rv-glass2); border: 1px solid rgba(85, 214, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255, 79, 216, 0.12); animation: rv-up .28s cubic-bezier(.2,.9,.25,1.1); outline: none; touch-action: pan-y; scrollbar-width: thin; }
.rv-k-result .rv-panel, .rv-k-pause .rv-panel { width: min(100%, 440px); text-align: center; }
@keyframes rv-up { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.rv-panel h3 { margin: 0; font-size: 21px; font-weight: 900; color: #fff; letter-spacing: 0.01em; }
.rv-rt { font-size: 24px !important; background: linear-gradient(90deg, #fff, #ffd1f5); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.rv-psub { margin: 5px 0 0; font-size: 13.5px; line-height: 1.45; color: #a9b8db; }
.rv-phead { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; margin-bottom: 10px; text-align: left; }
.rv-x { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--rv-line); background: rgba(255,255,255,0.04); color: #cfd8f5; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.rv-x:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) { .rv-x:hover:not(:disabled) { border-color: var(--rv-cyan); color: #fff; } }
.rv-h4 { margin: 14px 0 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8fa6d1; text-align: left; }
.rv-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--rv-line); background: rgba(255,255,255,0.05); color: #e8ecff; cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; touch-action: manipulation; transition: border-color .15s, background .15s, transform .1s; }
@media (hover: hover) { .rv-btn:hover:not(:disabled) { border-color: var(--rv-cyan); background: rgba(85, 214, 255, 0.08); } }
.rv-btn:disabled { opacity: 0.4; cursor: default; }
.rv-primary { border: 0; color: #1a0f00; background: linear-gradient(135deg, #ffe58a, #ffd166 50%, #ffad5c); box-shadow: 0 6px 20px rgba(255, 170, 70, 0.28); }
@media (hover: hover) { .rv-primary:hover:not(:disabled) { background: linear-gradient(135deg, #fff0b0, #ffdb7a 50%, #ffbb70); } }
.rv-wide { flex: 1 1 100%; } .rv-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.rv-tg { margin-top: 12px; } .rv-tgl[aria-pressed="false"] { color: #8d98bd; }
/* a result's buttons stay in sight at the panel's foot when the panel has to scroll (a short screen, or the coin card) */
.rv-acts { position: sticky; bottom: -16px; z-index: 2; margin: 0 -18px -16px; padding: 2px 18px 16px; background: linear-gradient(180deg, rgba(11, 12, 34, 0), #0b0c22 14px); }
.rv-acts + .rv-unl { margin-top: 26px; }
.rv-note { margin: 6px 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 209, 102, 0.08); border: 1px solid rgba(255, 209, 102, 0.3); color: #ffe7b0; font-size: 14px; line-height: 1.45; text-align: left; }

/* results */
.rv-bignum { margin: 10px 0 2px; line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap; }
.rv-bignum b { font-size: 60px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(255, 79, 216, 0.6); }
.rv-bignum span { font-size: 20px; font-weight: 800; color: #ffd1f5; }
.rv-new { flex-basis: 100%; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #1a0f00; justify-self: center; }
.rv-new::before { content: ''; } .rv-bignum .rv-new { display: block; width: max-content; margin: 8px auto 0; padding: 4px 10px; border-radius: 999px; background: var(--rv-gold); box-shadow: 0 0 16px rgba(255, 209, 102, 0.6); }
.rv-stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.rv-stat { padding: 8px 4px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--rv-line); text-align: center; }
.rv-stat b { display: block; font-size: 18px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-stat span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa6d1; }
.rv-dline { margin: 10px 0 0; font-size: 13px; color: #a9b8db; } .rv-dline:empty { display: none; }
.rv-stars { display: flex; justify-content: center; gap: 10px; margin: 12px 0 6px; font-size: 50px; line-height: 1; }
.rv-stars span { color: rgba(255,255,255,0.14); }
.rv-stars span.on { color: var(--rv-gold); text-shadow: 0 0 20px rgba(255, 209, 102, 0.75); animation: rv-star .5s cubic-bezier(.3,1.6,.5,1) backwards; }
@keyframes rv-star { from { transform: scale(0.2) rotate(-40deg); opacity: 0; } }
.rv-goals { list-style: none; margin: 6px auto 0; padding: 0; display: flex; flex-direction: column; gap: 5px; max-width: 320px; text-align: left; }
.rv-goals li { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 700; color: #b8c4e4; }
.rv-goals li i { font-style: normal; color: rgba(255,255,255,0.3); } .rv-goals li.ok { color: #fff; } .rv-goals li.ok i { color: var(--rv-gold); }
.rv-goals small { color: #8193bd; font-weight: 600; margin-left: auto; padding-left: 8px; }
.rv-unl { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 79, 216, 0.08); border: 1px solid rgba(255, 79, 216, 0.3); font-size: 13.5px; color: #ffd8f6; text-align: left; }
.rv-unl b { color: #fff; }
.rv-podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 14px 0 6px; height: 156px; }
.rv-pod { flex: 0 1 120px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 9px 6px 6px; overflow: hidden; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid var(--rv-line); animation: rv-rise .5s cubic-bezier(.2,.9,.3,1.2) backwards; }
.rv-pod > * { flex: none; }
.rv-pod1 { height: 100%; border-color: rgba(255, 209, 102, 0.6); box-shadow: 0 0 22px rgba(255, 209, 102, 0.2); animation-delay: .15s; } .rv-pod2 { height: 88%; animation-delay: .3s; } .rv-pod3 { height: 78%; animation-delay: .45s; }
.rv-pod i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, #000 120%); box-shadow: 0 0 14px var(--c); }
.rv-pod b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 900; color: #fff; }
.rv-pod span { font-size: 18px; font-weight: 900; color: var(--rv-gold); } .rv-pod2 span, .rv-pod3 span { color: #cfd8f5; }
.rv-pod em { font-style: normal; font-size: 12px; color: #9fb1d8; font-variant-numeric: tabular-nums; }
.rv-pod.me { border-color: var(--rv-cyan); }
@keyframes rv-rise { from { transform: translateY(40px); opacity: 0; } }
.rv-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.rv-list li { display: grid; grid-template-columns: 22px 12px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 14px; font-variant-numeric: tabular-nums; }
.rv-list li b { font-weight: 900; color: #fff; text-align: center; } .rv-list li i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.rv-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } .rv-list li small { margin-left: 6px; font-size: 11px; color: #8fa6d1; font-weight: 700; }
.rv-list li em { font-style: normal; color: #c6d3f2; font-weight: 700; } .rv-list li.me { background: rgba(85, 214, 255, 0.12); outline: 1px solid rgba(85, 214, 255, 0.35); }

/* campaign */
.rv-worlds { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.rv-wtab { flex: 0 0 auto; scroll-snap-align: center; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 104px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--rv-line); background: rgba(255,255,255,0.03); color: #cfd8f5; cursor: pointer; font: inherit; text-align: left; position: relative; overflow: hidden; }
.rv-wtab::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--a), var(--b)); }
.rv-wtab b { font-size: 11px; color: #8fa6d1; font-weight: 800; } .rv-wtab span { font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap; } .rv-wtab small { font-size: 11px; color: #9fb1d8; }
.rv-wtab.on { border-color: color-mix(in srgb, var(--a) 70%, transparent); background: color-mix(in srgb, var(--a) 12%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--a) 25%, transparent); }
.rv-wtab.locked { opacity: 0.5; }
.rv-wcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 90%, #000), color-mix(in srgb, var(--a) 30%, #0a0420)); border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); text-align: left; }
.rv-wcard b { display: block; font-size: 17px; font-weight: 900; color: #fff; } .rv-wcard span { display: block; margin-top: 3px; font-size: 13px; color: #e2e7ff; line-height: 1.4; }
.rv-wcard em { flex: none; font-style: normal; font-weight: 900; color: var(--rv-gold); font-size: 15px; }
.rv-lgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.rv-lv { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 84px; padding: 8px 4px 6px; border-radius: 12px; border: 1px solid var(--rv-line); background: rgba(255,255,255,0.035); color: #e8ecff; cursor: pointer; font: inherit; touch-action: manipulation; }
.rv-lv b { font-size: 20px; font-weight: 900; } .rv-lv span { font-size: 11.5px; font-weight: 700; color: #b5c2e6; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-lv i { font-style: normal; font-size: 13px; color: var(--rv-gold); letter-spacing: 1px; } .rv-lv i u { text-decoration: none; color: rgba(255,255,255,0.18); }
.rv-lv small { font-size: 10.5px; color: #8fa6d1; font-variant-numeric: tabular-nums; }
.rv-lv.done { border-color: rgba(85, 214, 255, 0.35); } .rv-lv.gaunt { background: linear-gradient(180deg, rgba(255, 79, 216, 0.12), rgba(255,255,255,0.02)); }
.rv-lv.locked { opacity: 0.45; cursor: default; }
@media (hover: hover) { .rv-lv:not(.locked):hover, .rv-wtab:hover { border-color: var(--rv-cyan); } }
/* daily */
.rv-dhero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(255, 79, 216, 0.16), rgba(85, 214, 255, 0.1)); border: 1px solid rgba(255, 79, 216, 0.3); text-align: left; }
.rv-dhero small { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #ffc6f2; } .rv-dhero b { display: block; font-size: 26px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; } .rv-dhero span { font-size: 12.5px; color: #c6d3f2; }
.rv-streak { flex: none; text-align: center; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,0.25); } .rv-streak b { font-size: 30px; color: var(--rv-gold); } .rv-streak span, .rv-streak small { display: block; font-size: 11px; color: #c6d3f2; }
.rv-cal { margin-top: 14px; }
.rv-calh { display: flex; align-items: center; justify-content: space-between; } .rv-calh b { font-size: 15px; font-weight: 900; color: #fff; }
.rv-calw, .rv-calg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.rv-calw span { text-align: center; font-size: 11px; font-weight: 800; color: #7f91ba; }
.rv-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; padding: 2px; border-radius: 9px; border: 1px solid var(--rv-line); background: rgba(255,255,255,0.03); color: #cfd8f5; font: inherit; cursor: pointer; }
.rv-day b { font-size: 13px; font-weight: 800; } .rv-day small { font-size: 9.5px; color: var(--rv-gold); font-weight: 800; }
.rv-day.done { background: rgba(255, 79, 216, 0.16); border-color: rgba(255, 79, 216, 0.4); } .rv-day.prac { border-style: dashed; border-color: rgba(85, 214, 255, 0.4); } .rv-day.prac small { color: #9fe6ff; } .rv-day.today { outline: 2px solid var(--rv-cyan); outline-offset: -1px; }
.rv-day:disabled { opacity: 0.3; cursor: default; }
/* races */
.rv-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--rv-line); }
.rv-tab { position: relative; flex: 1 1 0; min-height: 38px; padding: 0 4px; border: 0; border-radius: 9px; background: transparent; color: #a9b8db; font: inherit; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.rv-tab.on { background: rgba(85, 214, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(85, 214, 255, 0.4); }
.rv-live { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #2fbf71; color: #04210f; font-style: normal; font-size: 10px; font-weight: 900; line-height: 16px; }
.rv-live[hidden] { display: none; }
.rv-courses { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.rv-course { flex: 0 0 auto; min-width: 120px; padding: 10px 11px 9px; border-radius: 12px; border: 1px solid var(--rv-line); background: linear-gradient(160deg, color-mix(in srgb, var(--a) 18%, transparent), rgba(255,255,255,0.02)); color: #fff; font: inherit; cursor: pointer; text-align: left; position: relative; overflow: hidden; }
.rv-course::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--a), var(--b)); }
.rv-course b { display: block; font-size: 13.5px; font-weight: 900; white-space: nowrap; } .rv-course small { font-size: 11.5px; color: #b5c2e6; }
.rv-course.on { border-color: var(--rv-gold); box-shadow: 0 0 14px rgba(255, 209, 102, 0.25); }
.rv-seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(0,0,0,0.25); border: 1px solid var(--rv-line); flex-wrap: wrap; }
.rv-seg button { flex: 1 1 0; min-height: 36px; min-width: 0; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #a9b8db; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.rv-seg button small { font-size: 10.5px; color: #7fd7a8; margin-left: 3px; } .rv-seg button.on { background: rgba(255, 209, 102, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.5); }
.rv-inl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; } .rv-inl > span { flex: none; font-size: 13px; font-weight: 800; color: #c6d3f2; } .rv-inl .rv-seg { flex: 1 1 230px; }
.rv-open { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rv-open li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.035); border: 1px solid var(--rv-line); text-align: left; }
.rv-open li span { display: flex; flex-direction: column; min-width: 0; } .rv-open li b { font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rv-open li small { font-size: 12px; color: #9fb1d8; }
.rv-open .rv-empty { display: block; color: #8fa6d1; font-size: 13px; line-height: 1.45; }
.rv .ol-code { margin-top: 12px; text-align: left; }
.rv .ol-code { margin: 4px 0 2px; text-align: left; }
.rv .ol-code label { display: block; font-size: 13px; font-weight: 800; color: #cfe0ff; margin: 14px 0 6px; }
.rv .ol-code-row { display: flex; gap: 6px; }
.rv .ol-code input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #24375e; background: #060c1c; color: #fff; text-transform: uppercase; letter-spacing: 0.14em; font: inherit; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; outline: none; }
.rv .ol-code input::placeholder { color: #3d5276; letter-spacing: 0.14em; }
.rv .ol-code input:focus { border-color: var(--rv-cyan); box-shadow: 0 0 0 3px rgba(85, 214, 255, 0.15); }
.rv .ol-code .ol-btn { min-width: 76px; height: 44px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 900; color: #1a0f00; background: linear-gradient(135deg, #ffe58a, #ffd166 45%, #ffad5c); touch-action: manipulation; }
.rv .ol-code .ol-btn:disabled { cursor: default; color: #7f8db0; background: rgba(255,255,255,0.06); border: 1px solid var(--rv-line); }
.rv-code { margin: 6px 0 10px; padding: 12px; border-radius: 14px; background: rgba(85, 214, 255, 0.06); border: 1px dashed rgba(85, 214, 255, 0.4); text-align: center; }
.rv-code > span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #9fe6ff; }
.rv-code > b { display: block; margin: 4px 0 2px; font-size: 30px; font-weight: 900; letter-spacing: 0.08em; color: #fff; font-variant-numeric: tabular-nums; }
.rv-seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rv-seats li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 11px; background: rgba(255,255,255,0.04); border: 1px solid var(--rv-line); text-align: left; min-width: 0; }
.rv-seats li i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.rv-seats li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; color: #fff; } .rv-seats li small { margin-left: auto; font-size: 11px; color: #9fb1d8; white-space: nowrap; }
.rv-seats li.empty { opacity: 0.5; border-style: dashed; } .rv-seats li.empty i { background: transparent; box-shadow: inset 0 0 0 1.5px #5a6a92; } .rv-seats li.me { border-color: rgba(85, 214, 255, 0.5); } .rv-seats li.away { opacity: 0.6; }
.rv-auto { margin: 10px 0 0; font-size: 14px; color: #c6d3f2; } .rv-auto:empty { display: none; } .rv-auto b { color: var(--rv-gold); font-size: 18px; }
.rv-net { font-size: 12px; color: #ffb38a; } .rv-net[hidden] { display: none; }
.rv-wait { display: grid; place-items: center; padding: 22px; }
.rv-spin, .rv-loading i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(85, 214, 255, 0.2); border-top-color: var(--rv-cyan); animation: rv-spin .8s linear infinite; }
@keyframes rv-spin { to { transform: rotate(360deg); } }
/* style */
.rv-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; }
.rv-skin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; border: 1px solid var(--rv-line); background: rgba(255,255,255,0.03); color: #e8ecff; cursor: pointer; font: inherit; min-width: 0; }
.rv-skin b { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rv-skin.on { border-color: var(--rv-gold); box-shadow: 0 0 14px rgba(255, 209, 102, 0.25); background: rgba(255, 209, 102, 0.06); }
.rv-skin.locked { opacity: 0.6; } .rv-skin.locked .rv-sw, .rv-skin.locked .rv-tsw { filter: grayscale(0.85) brightness(0.6); }
.rv-need { font-size: 10.5px; line-height: 1.25; color: #9fb1d8; text-align: center; }
.rv-sw { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.85), transparent 18%), radial-gradient(circle at 50% 50%, var(--b), var(--a) 75%); box-shadow: 0 0 0 2px var(--r), 0 0 16px var(--r); }
.rv-sw1 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.8), transparent 16%), repeating-linear-gradient(0deg, var(--a) 0 7px, var(--b) 7px 14px); }
.rv-sw2 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.7), transparent 16%), repeating-linear-gradient(0deg, transparent 0 8px, var(--b) 8px 10px), repeating-linear-gradient(90deg, var(--a) 0 8px, var(--b) 8px 10px); }
.rv-sw3 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.9), transparent 16%), conic-gradient(var(--a), var(--b), var(--a), var(--b), var(--a), var(--b), var(--a)); }
.rv-sw4 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.8), transparent 16%), repeating-radial-gradient(circle at 50% 50%, var(--a) 0 6px, var(--b) 6px 8px); }
.rv-sw5 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.7), transparent 16%), repeating-conic-gradient(var(--a) 0 25%, var(--b) 0 50%) 50% / 16px 16px; }
.rv-sw6 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.8), transparent 16%), conic-gradient(from 30deg, var(--a), var(--b) 30%, var(--a) 55%, var(--b) 80%, var(--a)); }
.rv-sw7 { background: radial-gradient(circle at 50% 50%, var(--b), var(--a) 40%, var(--b) 70%, var(--a)); }
.rv-sw8 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.7), transparent 16%), linear-gradient(180deg, var(--b) 0 48%, var(--r) 48% 52%, var(--a) 52%); }
.rv-sw9 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.8), transparent 16%), conic-gradient(#ff4f6d, #ffd166, #3dffb5, #55d6ff, #a98bff, #ff4fd8, #ff4f6d); }
.rv-tsw { width: 70px; height: 20px; border-radius: 10px; background: linear-gradient(90deg, transparent, var(--c)); box-shadow: 0 0 10px var(--c); }
.rv-ts1 { clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%); } .rv-ts2 { height: 26px; opacity: 0.85; } .rv-ts3 { background: radial-gradient(circle, var(--c) 0 2px, transparent 3px) 0 0 / 9px 9px; box-shadow: none; }
.rv-ts4 { background: linear-gradient(90deg, transparent, #ff4f6d, #ffd166, #3dffb5, #55d6ff, #ff4fd8); } .rv-ts5 { background: repeating-linear-gradient(90deg, transparent 0 4px, var(--c) 4px 10px); border-radius: 2px; }
.rv-ts6 { clip-path: polygon(0 50%, 15% 20%, 30% 70%, 45% 15%, 60% 80%, 75% 25%, 90% 65%, 100% 40%, 100% 60%, 90% 85%, 75% 45%, 60% 100%, 45% 35%, 30% 90%, 15% 40%, 0 60%); }
.rv-ts7 { height: 14px; background: linear-gradient(transparent 0 30%, var(--c) 30% 40%, transparent 40% 60%, var(--c) 60% 70%, transparent 70%); box-shadow: none; }
/* goals, stats, settings, help */
.rv-glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-glist li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--rv-line); text-align: left; }
.rv-glist li > i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #4a5a82; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; color: #04210f; }
.rv-glist li.ok > i { background: #3dffb5; border-color: #3dffb5; box-shadow: 0 0 10px rgba(61, 255, 181, 0.5); }
.rv-glist li div { flex: 1 1 auto; min-width: 0; } .rv-glist b { display: block; font-weight: 800; color: #fff; font-size: 14px; } .rv-glist span { display: block; font-size: 12.5px; color: #a9b8db; }
.rv-glist u { display: block; height: 5px; margin-top: 6px; border-radius: 5px; background: rgba(255,255,255,0.08); overflow: hidden; } .rv-glist u s { display: block; height: 100%; background: linear-gradient(90deg, var(--rv-cyan), var(--rv-pink)); }
.rv-glist small { display: block; margin-top: 3px; font-size: 11px; color: #7f91ba; font-variant-numeric: tabular-nums; }
.rv-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rv-sgrid.rv-sg4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 420px) { .rv-sgrid.rv-sg4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-sgrid .rv-stat b { font-size: 16px; }
.rv-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(28, 43, 74, 0.7); cursor: pointer; text-align: left; position: relative; }
.rv-set > span { display: flex; flex-direction: column; min-width: 0; } .rv-set b { font-size: 14.5px; font-weight: 800; color: #fff; } .rv-set small { font-size: 12px; color: #9fb1d8; }
.rv-set input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-swi { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #233154; position: relative; transition: background .15s; }
.rv-swi::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfd8f5; transition: transform .15s; }
.rv-set input:checked + .rv-swi { background: var(--rv-cyan); } .rv-set input:checked + .rv-swi::after { transform: translateX(18px); background: #fff; }
.rv-set input:focus-visible + .rv-swi { outline: 2px solid var(--rv-cyan); outline-offset: 2px; } .rv-set input:disabled + .rv-swi { opacity: 0.5; }
.rv-set .rv-seg { flex: 0 1 260px; }
.rv-help2 p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #c6d3f2; text-align: left; } .rv-help2 b { color: #fff; }

/* toast, fade, loading */
.rv-toast { position: absolute; left: 50%; top: 20%; z-index: 9; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 12px; background: var(--rv-glass2); border: 1px solid rgba(85, 214, 255, 0.35); color: #fff; font-size: 14px; font-weight: 700; text-align: center; pointer-events: none; }
.rv-toast[hidden] { display: none; } .rv-toast.on { animation: rv-drop .22s ease-out; }
@keyframes rv-drop { from { opacity: 0; transform: translate(-50%, -8px); } }
.rv-fade { position: absolute; inset: 0; z-index: 10; background: #05020f; opacity: 0; pointer-events: none; transition: opacity .18s; } .rv-fade.on { opacity: 1; }
.rv-loading { position: absolute; inset: 0; z-index: 11; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #05020f; color: #9fb1d8; font-size: 14px; }
.rv-loading[hidden] { display: none; }
.rv-nogl { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; padding: 20px; background: #05020f; text-align: center; color: #cfd8f5; }
.rv-nogl[hidden] { display: none; }

/* ---------- full screen and small screens ---------- */
.stage.is-immersive .stage-body > .rv { min-height: 0; flex: 1 1 auto; }
.stage.is-immersive .rv-stage { flex: 1 1 auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; }
.stage.is-immersive .rv-help { display: none; }
@media (max-width: 600px) {
  .rv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-tile { min-height: 70px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 12px; text-align: left; }
  .rv-tile b { font-size: 15px; } .rv-tile small { display: block; text-align: left; }
  .rv-tile { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 8px; row-gap: 2px; align-items: center; }
  .rv-tile svg { grid-row: span 2; }
  .rv-sbtn span { display: none; } .rv-sbtn { width: 44px; height: 44px; padding: 0; justify-content: center; } .rv-sbtn svg { width: 20px; height: 20px; }
  .rv-panel { padding: 14px 13px 12px; } .rv-lgrid { gap: 5px; } .rv-lv { min-height: 76px; } .rv-acts { bottom: -12px; margin: 0 -13px -12px; padding: 2px 13px 12px; }
  .rv-lv span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11px; line-height: 1.15; }
  .rv-tab { font-size: 13px; }
  .rv-stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-board { width: 132px; font-size: 11.5px; } .rv-sub { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 96px); }
  .rv-bignum b { font-size: 52px; }
  .rv-banner.rv-low { top: 52%; }
}
@media (max-width: 380px) { .rv-lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rv-best { gap: 8px; font-size: 12px; } .rv-chip { max-width: 44%; } }
@media (orientation: landscape) and (max-height: 520px) {
  .rv-title { flex-direction: row; align-items: center; justify-content: center; gap: 24px; padding: 10px 16px; background: linear-gradient(90deg, rgba(5, 2, 15, 0.75), rgba(5, 2, 15, 0.35) 45%, rgba(5, 2, 15, 0.8)); }
  .rv-logo { margin: 0; font-size: 54px; } .rv-best { margin-top: 8px; font-size: 12px; }
  .rv-menu { width: min(56%, 460px); gap: 7px; } .rv-cont { min-height: 48px; } .rv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rv-tile { min-height: 64px; display: flex; flex-direction: column; justify-content: center; padding: 6px 3px; } .rv-tile small { display: none; }
  .rv-main { top: 10px; } .rv-main b { font-size: 36px; } .rv-sub { top: 54px; } .rv-prog { top: 82px; } .rv-board, .rv-pows { top: 56px; }
  .rv-count { font-size: 92px; } .rv-banner.rv-low { top: 68%; }
  .rv-overlay { padding: 6px; } .rv-panel { max-height: 100%; padding: 12px 14px; } .rv-acts { bottom: -12px; margin: 0 -14px -12px; padding: 2px 14px 12px; }
  .rv-podium { height: 116px; margin: 8px 0 4px; } .rv-pod { padding: 6px 6px 4px; gap: 1px; } .rv-pod i { width: 20px; height: 20px; } .rv-pod span { font-size: 15px; } .rv-pod b { font-size: 12.5px; } .rv-pod em { font-size: 11px; } .rv-stars { font-size: 38px; margin: 6px 0 2px; } .rv-bignum b { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-go, .rv-pop, .rv-panel, .rv-pod, .rv-stars span.on, .rv-banner.on, .rv-count.on, .rv-pchip, .rv-toast.on { animation-duration: 0.01s !important; }
  .rv-banner.on { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}
