/* Zeus Gorgor — November 2026 dark redesign (Figma 7n2Qwy82NfUGrBM3PFGF72, 435 px phone frames; PC is an adaptation)
   Every Figma px = var(--U). Phones: the frame scales with the screen. PC: fixed 1.5 px per Figma px inside a centred column.
   Readability (user's decision 2026-11-03): text never shrinks below ~11 px on phones (font-size: max(11px, …) after each small font),
   while the layout keeps the Figma proportions; boxes that hold such text grow with it. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
:root {
  --U: min(calc(100vw / 435), 1.287px);   /* fills any phone width; tablets / PC: the frame is a 560 px centred column (reference: shenwah-playground, 2026-11-03), i.e. 1.287 px per Figma px */
  --bg: #010818;
  --ink: #fdfdfe;
  --muted: #bdbdbd;
  --blue: #68b0fb;
  --f: "Wix Madefor Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --f2: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --panel: linear-gradient(180deg, #140d23 0%, #041328 100%);
  --panel-border: #3f0b67;
  --nav-h: calc(82 * var(--U));
}
html, body { overscroll-behavior-x: none; }   /* a swipe past the first / last slide or card row must never trigger the browser back / forward gesture */
body { background: var(--bg); color: var(--ink); font-family: var(--f); min-height: 100vh; overflow-x: hidden; }
body.v2 { padding-bottom: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }   /* the bottom menu is in the page flow; on short pages it is pushed to the screen bottom */
body.v2 > #__nuxt { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }   /* the Nuxt mount point wraps .shell + .bnav */
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
/* two soft radial glows behind everything, as in the frames */
.v2::before, .v2::after { content: ""; position: fixed; width: calc(499 * var(--U)); height: calc(498 * var(--U)); border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(32,96,200,.32) 0%, rgba(13,40,110,.14) 45%, rgba(1,8,24,0) 70%); }
.v2::before { left: calc(138 * var(--U)); top: calc(-260 * var(--U)); }
.v2::after { left: calc(-289 * var(--U)); top: calc(331 * var(--U)); }
.shell { position: relative; z-index: 1; width: 100%; max-width: calc(435 * var(--U)); margin: 0 auto; overflow-x: clip; flex: 1 0 auto; }   /* clips like the Figma artboard (wheel background is 461 wide) */

/* ---------- gradient text ---------- */
.gt { background: linear-gradient(90deg, #fdfdfe 0%, #68b0fb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.gt--red { background-image: linear-gradient(90deg, #fdfdfe, #fb6868); }
.gt--gold { background-image: linear-gradient(90deg, #fdfdfe, #fbcc68); }
.gt--amber { background-image: linear-gradient(90deg, #fdfdfe, #fbb668); }
.gt--pink { background-image: linear-gradient(90deg, #fdfdfe, #f468fb); }
.gt--green { background-image: linear-gradient(90deg, #fdfdfe, #68fbbb); }
.gt--lime { background-image: linear-gradient(90deg, #fdfdfe, #1fba00); }
.gt--rose { background-image: linear-gradient(90deg, #fdfdfe, #ec6cb4); }
.gt--cream { background-image: linear-gradient(90deg, #fdfdfe, #ffe09a); }

/* ---------- header ---------- */
.hd { position: relative; height: calc(86 * var(--U)); display: flex; align-items: center; justify-content: center; }   /* 2026-11-03: taller for the bigger logos */
.hd .burger { position: absolute; left: calc(24 * var(--U)); top: calc(40 * var(--U)); width: calc(17 * var(--U)); height: calc(14 * var(--U)); padding: 0; border: 0; background: none; display: flex; flex-direction: column; justify-content: space-between; }
.hd .burger i { display: block; height: 2px; border-radius: 50px; background: #d9d9d9; }
.hd .logos { display: flex; align-items: center; gap: calc(8 * var(--U)); margin-top: calc(4 * var(--U)); }
.hd .logos .z { height: calc(58 * var(--U)); width: auto; }
.hd .logos .x { font: 400 calc(15 * var(--U))/1 var(--f2); color: #fff; }
.hd .logos .w { height: calc(38 * var(--U)); width: auto; }
.hd .pcnav { display: none; }
/* drawer: see MOTION section at the end */

/* ---------- secondary nav (promo / rankings, also PC main nav) ---------- */
.subnav { position: relative; display: flex; align-items: center; justify-content: space-evenly; height: calc(29 * var(--U)); margin: 0 calc(20 * var(--U)) 0 calc(26 * var(--U)); }
.subnav::before, .subnav::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(104,176,251,0) 0%, rgba(104,176,251,.9) 15%, rgba(104,176,251,.9) 85%, rgba(104,176,251,0) 100%); }
.subnav::before { top: 0; } .subnav::after { bottom: 0; }
.subnav a { position: relative; display: flex; align-items: center; gap: calc(4 * var(--U)); height: 100%; padding: 0 calc(8 * var(--U)); font: 400 calc(12 * var(--U))/1 var(--f2); font-size: max(12px, calc(12 * var(--U))); color: #fff; white-space: nowrap; }
.subnav a img { width: calc(12 * var(--U)); height: calc(12 * var(--U)); }
.subnav a.on { color: #fee98c; background: linear-gradient(180deg, #080806 0%, #32210e 69.7%, #32210e 84.6%, #feeb9c 99.5%); border-radius: 3px; }

/* 2026-11-03: the user hid the 首页 / 优惠 / 排行榜 / 亲爱的宙斯 row on 优惠 (the burger menu and bottom nav already cover it); delete this line to bring it back */
.subnav { display: none; }

/* ---------- pill tabs ---------- */
.pills { display: flex; align-items: stretch; height: calc(22 * var(--U)); border: 1px solid #68b0fb; border-radius: 50px; background: linear-gradient(90deg, #061328, #09263e); padding: 0; }
.pills button, .pills a { flex: 1 1 0; border: 0; background: none; border-radius: 50px; font: 600 calc(10 * var(--U))/1 var(--f); font-size: max(11px, calc(10 * var(--U))); color: rgba(120,184,251,.6); white-space: nowrap; padding: 0 calc(6 * var(--U)); display: flex; align-items: center; justify-content: center; }
.pills .on { background: linear-gradient(90deg, #5da6ef, #00579f); color: #fff; font-weight: 800; box-shadow: 0 0 0 1px #68b0fb inset; }
.pills--green .on { background: linear-gradient(90deg, #8cdb7d, #21bb02); color: #010c1d; }
.pills--pink .on { background: linear-gradient(90deg, #ffffff, #fa80c4); color: #041328; }
.pills--purple .on { background: linear-gradient(90deg, #c9a5ff, #7d3cff); color: #0d0520; }
.pills--amber .on { background: linear-gradient(90deg, #ffe09a, #e5a230); color: #2a1600; }

/* ---------- panels (purple→navy cards with glowing corner lines) ---------- */
.panel { position: relative; background: var(--panel); border: .8px solid var(--panel-border); border-radius: calc(8 * var(--U)); overflow: hidden; }
.panel::before, .panel::after { content: ""; position: absolute; width: calc(131 * var(--U)); height: calc(130 * var(--U)); pointer-events: none; mix-blend-mode: screen; background: url("../img/v2/glow-b.svg") no-repeat center / 100% 100%; }
.panel::before { right: 0; top: 0; }
.panel::after { left: 0; bottom: 0; transform: rotate(180deg); background-image: url("../img/v2/glow-c.svg"); }

/* ---------- section titles ---------- */
.stitle { font: 700 calc(15 * var(--U))/1.2 var(--f); font-size: max(14px, calc(15 * var(--U))); text-align: center; margin: 0; }

/* ---------- inputs ---------- */
.uidrow { display: flex; align-items: center; gap: calc(8 * var(--U)); }
.uidrow input { flex: 1 1 auto; min-width: 0; height: calc(34 * var(--U)); min-height: 40px; border-radius: 50px; border: 1px solid #85bffc; background: #0a183e; color: #fff; padding: 0 calc(16 * var(--U)); font: 400 max(16px, calc(11 * var(--U)))/1 var(--f); outline: none; }   /* 2026-11-03: taller than Figma's 24 px so it is a comfortable touch target */
.uidrow input::placeholder { color: rgba(253,253,254,.33); }
.uidrow input:focus { box-shadow: 0 0 0 2px rgba(133,191,252,.35); }
.uidrow button { flex: 0 0 auto; width: calc(78 * var(--U)); height: calc(34 * var(--U)); min-height: 40px; border-radius: 50px; border: 1px solid #85bffc; background: #4d99e1; color: #fdfdfe; font: 700 calc(11 * var(--U))/1 var(--f); font-size: max(13px, calc(11 * var(--U))); padding: 0 calc(8 * var(--U)); white-space: nowrap; }
.uidrow button[disabled] { opacity: .6; cursor: progress; }

/* ---------- bottom nav (phones) ---------- */
/* bottom nav, layer-for-layer from Figma 64:71 (home frame, 435 wide): group top 741, height 82; dividers 42.4 tall at the item boundaries
   (x 126.4 / 190.9 / 270.2 / 332.8, top +14.7); active card 80.16×82 gradient #140d23→#041328 border .55 #3f0b67 r6 + glow mask;
   icons bottom-aligned ≈54.5 from the top (active ≈58), labels Inter 11.06 #cfd9ee at +59 (active bold at +61.7) */
.bnav { position: sticky; bottom: 0; z-index: 80; margin-top: calc(28 * var(--U)); width: 100%; flex: 0 0 auto;   /* 2026-11-03: sticks to the screen bottom while scrolling (sticky, not fixed: no jump when the phone's address bar hides) */ padding: calc(8 * var(--U)) 0 env(safe-area-inset-bottom, 0px); background: linear-gradient(180deg, rgba(1,8,24,0) 0%, rgba(1,8,24,.94) 18%, #010818 100%); display: flex; justify-content: center; align-items: flex-end; }   /* 2026-11-03: sits on the screen bottom (only the iPhone home-bar inset below it) */
.bnav .inner { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: calc(4 * var(--U)); width: 100%; max-width: calc(435 * var(--U)); padding: 0 calc(10 * var(--U)); }   /* five equal columns across the full width */
.bnav a { position: relative; flex: 1 1 0; min-width: 0; height: var(--nav-h); display: block; border-radius: 6px; }
.bnav a[data-nav="dz"] { flex-basis: 0; }
.bnav a.on { flex-basis: 0; background: var(--panel); border: .55px solid rgba(63,11,103,.55); }   /* Figma's .555 stroke blends to about half strength; 1 device px here */
@media (min-resolution: 2dppx) { .bnav a.on { border-color: var(--panel-border); } }   /* phones draw a real hairline */
.bnav a.on::after { content: ""; position: absolute; inset: -.6px; border-radius: 6px; background: url("../img/v2/glow-a.svg") no-repeat center / 100% 100%; pointer-events: none; }   /* the glow also covers the stroke, as in the Figma mask group */
.bnav a + a::before { content: ""; position: absolute; left: -.5px; top: calc(14.7 * var(--U)); width: 1px; height: calc(42.4 * var(--U)); background: linear-gradient(180deg, rgba(184,204,225,0) 2%, rgba(184,204,225,.5) 36%, rgba(133,191,252,.5) 65%, rgba(133,191,252,0) 95%); }   /* Figma Vector 7 */
.bnav a.on::before, .bnav a.on + a::before { display: none; }   /* the dividers at the card edges lie under the card in Figma */
.bnav a img { position: absolute; left: 50%; bottom: calc(27.5 * var(--U)); transform: translateX(-50%); height: auto; width: calc(37 * var(--U)); object-fit: contain; transform-origin: 50% 100%; }
.bnav a[data-nav="dz"] img { width: calc(39.6 * var(--U)); }
.bnav a[data-nav="rank"] img { width: calc(42.5 * var(--U)); }
.bnav a[data-nav="wheel"] img { width: calc(36.8 * var(--U)); }
/* active icon, frame by frame: home 53.8 wide (×1.454, Figma 1:2), 优惠 49 (×1.324, 52:114), 排行榜 58 (×1.365, 46:31), 轮盘 stays 36.8 (68:172 does not enlarge it) */
.bnav a[data-nav="home"].on img { bottom: calc(25.3 * var(--U)); transform: translateX(-50%) scale(1.454); }
.bnav a[data-nav="promo"].on img { bottom: calc(23 * var(--U)); transform: translateX(-50%) scale(1.324); }
.bnav a[data-nav="rank"].on img { bottom: calc(21 * var(--U)); transform: translateX(-50%) scale(1.365); }
.bnav a[data-nav="wheel"].on img, .bnav a[data-nav="dz"].on img { transform: translateX(-50%); }
.bnav a span { position: absolute; left: 0; right: 0; top: calc(59 * var(--U)); text-align: center; font: 400 calc(11.06 * var(--U))/1.2 var(--f2); font-size: max(11px, calc(11.06 * var(--U))); color: #cfd9ee; white-space: nowrap; }
.bnav a.on span { top: calc(61.7 * var(--U)); font-weight: 700; }
.bnav a[data-nav="rank"] span { font-weight: 700; }   /* bold in every Figma frame */
.bnav a[data-nav="dz"] span { text-transform: uppercase; letter-spacing: 0; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: calc(15 * var(--U)) 0 calc(10 * var(--U)); }
.foot p { margin: 0 0 calc(8 * var(--U)); font: 400 calc(9 * var(--U))/1.4 var(--f); font-size: max(11px, calc(9 * var(--U))); color: #cfd9ee; }

/* ---------- horizontal card rows (activity cards / prize cards) ---------- */
.hrow { display: flex; gap: calc(6 * var(--U)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(14 * var(--U)); scroll-padding: 0 calc(14 * var(--U)); overscroll-behavior-x: contain; }   /* 2026-11-03: rows start with a whole card at the left edge; the last card peeks in to show it scrolls */
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { flex: 0 0 calc(98 * var(--U)); scroll-snap-align: start; }
.dots { display: flex; justify-content: center; gap: 6px; height: 4px; margin: calc(8 * var(--U)) 0 0; }
#przDots { margin-top: calc(17 * var(--U)); }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(104,176,251,.35); }
.dots i.on { background: #68b0fb; }

/* ---------- PC adaptation ---------- */

/* =====================================================================
   PAGE STYLES. Blocks whose inner layout must scale with their own width
   (hero banner, activity / prize cards, promo cards) use container units:
   inside such a block 1 Figma px = 100 / block-width-in-Figma-px  cqw.
   ===================================================================== */

/* ---------- HOME: button bar ---------- */
.btnbar { display: flex; gap: calc(4 * var(--U)); margin: calc(2 * var(--U)) calc(26 * var(--U)) 0; }   /* Figma 83:38: 383 wide at x=26, y=67 */
.btnbar a { flex: 0 0 calc(125 * var(--U)); min-width: 0; }
.btnbar a:first-child { flex-basis: calc(127 * var(--U)); }
.btnbar img { width: 100%; height: auto; }
.btnbar a { position: relative; }
.btnbar .ico { position: absolute; left: 10%; top: 50%; width: 19%; height: auto; transform: translateY(-50%); filter: drop-shadow(0 0 6px rgba(104,176,251,.6)); }
.btnbar span { position: absolute; left: 34%; right: 14%; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font: 700 calc(12.5 * var(--U))/1 var(--f); font-size: max(11px, calc(12.5 * var(--U))); color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,20,80,.6); pointer-events: none; }

/* ---------- HOME: hero banner (418 Figma px wide → 1 px = .2392cqw) ---------- */
/* .herow = the neon frame picture (static) + the Zeus character (static, slide 1 only). .heros = the frame's inner window, in which the slides scroll. */
.herow[hidden], .dots[hidden] { display: none; }
.herow { position: relative; margin: calc(12 * var(--U)) calc(9 * var(--U)) 0 calc(9 * var(--U)); container-type: inline-size; aspect-ratio: 1248 / 462; border-radius: calc(16 * var(--U)); background: #061a3a; border: 2px solid #6ab4ff; box-shadow: 0 0 14px rgba(104,176,251,.75), 0 0 1px #c4e3ff; }   /* 2026-11-03: neon blue frame drawn in CSS (the old frame picture + Zeus character are gone); same shape as the Figma banner pictures in img/v2/banners (1248 x 462) */
.herow > .char { display: none; }
.herow.char-off > .char { opacity: 0; transform: translateX(-12%); }
.heros { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overscroll-behavior-x: contain; touch-action: pan-x pan-y; display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: calc(14 * var(--U)); cursor: grab; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(#000, #000); }
.heros::-webkit-scrollbar { display: none; }
.heros.dragging { cursor: grabbing; scroll-snap-type: none; }
.hero { position: relative; flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%; overflow: hidden; scroll-snap-align: start; }   /* no snap-stop: a strong flick may pass several slides */
.hero > .bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }   /* a title / countdown slide shows the Zeus picture as its own background */
.hero.custom > .bg { object-position: center; }
/* banner slides (the 8 Figma banners) fill the frame window edge to edge; the Zeus character overlay is hidden for them (char-off) */

.hero .title { position: absolute; left: 39.6cqw; top: 4.9cqw; margin: 0; font-weight: 800; font-size: 5.15cqw; line-height: 1.1; white-space: nowrap; }
.hero .dates { position: absolute; left: 67.5cqw; top: 6.6cqw; font: 700 5.4cqw/1.1 var(--f); font-size: max(20px, 5.4cqw); color: #fff; white-space: nowrap; transform: scale(.5); transform-origin: 0 0; }
/* countdown, built layer-for-layer (drawn at 2× and scaled to .5 so no text falls under Chrome's 12 px minimum font size) from Figma 1:2 (positions in cqw of the 418 px banner, minus the inner-window offset 2.3 / 4.29):
   14:69 pill 83×23 at 162,171 rgba(10,41,98,.68) r5 (behind)  ·  14:70 panel 167×39 at 240,163 rgba(10,41,98,.84) r5  ·  boxes 21.9×18.4 #001543 border .35 #5a73a9 r3.5
   digits Inter 400 10.4  ·  dots Inter 14  ·  units Inter 400 9.2  ·  label Inter 600 10 */
.hero .cd { position: absolute; left: 32cqw; top: 11.5cqw; width: 117.2cqw; height: 18.6cqw; font-family: var(--f2); transform: scale(.54); transform-origin: 0 0; }   /* drawn at 2x and shown at .54 (was .5): slightly larger digits on phones, right edge still inside the window */
.hero .cd .lab { position: absolute; left: 0; top: 3.8cqw; width: 39.8cqw; height: 11cqw; display: flex; align-items: center; justify-content: center; font: 600 4.8cqw/1 var(--f2); color: #fff; white-space: nowrap; background: rgba(10,41,98,.84); border-radius: 2.4cqw 0 0 2.4cqw; }
.hero .cd .boxes { position: absolute; left: 37.32cqw; top: 0; width: 80cqw; height: 18.6cqw; background: rgba(10,41,98,.84); border-radius: 2.4cqw; }
.hero .cd .u { position: absolute; top: 2.88cqw; width: 10.48cqw; display: flex; flex-direction: column; align-items: center; }
.hero .cd .u:nth-of-type(1) { left: 9.1cqw; } .hero .cd .u:nth-of-type(2) { left: 27.2cqw; } .hero .cd .u:nth-of-type(3) { left: 43.2cqw; } .hero .cd .u:nth-of-type(4) { left: 60.4cqw; }
.hero .cd .u b { width: 10.48cqw; height: 8.8cqw; display: flex; align-items: center; justify-content: center; background: #001543; border: 1px solid #5a73a9; border-radius: 1.7cqw; font: 400 4.96cqw/1 var(--f2); color: #fff; font-variant-numeric: tabular-nums; }
.hero .cd .u i { margin-top: 0.5cqw; font: 400 4.4cqw/1.2 var(--f2); font-style: normal; color: #fff; }
.hero .cd .sep { font-style: normal; position: absolute; top: 2.88cqw; width: 2cqw; height: 8.8cqw; display: flex; align-items: center; justify-content: center; font: 400 6.7cqw/1 var(--f2); color: #fff; }
.hero .cd .sep:nth-of-type(1) { left: 22cqw; } .hero .cd .sep:nth-of-type(2) { left: 39.8cqw; } .hero .cd .sep:nth-of-type(3) { left: 56.4cqw; }
.hero .go { position: absolute; left: 45.3cqw; top: 22.8cqw; width: 39.5cqw; height: 8.4cqw; display: flex; align-items: center; justify-content: center; border-radius: 50px; background: linear-gradient(180deg, #0b1236 0%, #082864 100%); border: 1px solid rgba(106,168,245,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); font: 700 3.35cqw/1 var(--f); color: #fff; white-space: nowrap; }
.hero.ended .cd .u { opacity: .55; }
.hero .hit { position: absolute; inset: 0; z-index: 2; }
/* caption lines on a picture slide — Figma text layers of the dark banners: centred at x 196/404, small line Wix Madefor Bold 14.93 at y 39,
   big line Bold/ExtraBold 32.36 at y 54, gradient #fdfdfe → tone colour (gold #e69600 / blue #68b0fb,#9dcdff / purple #db81ff) */
.hero .cap, .hero .big { position: absolute; left: 50cqw; transform: translateX(-50%); white-space: nowrap; line-height: 1.26; font-family: var(--f);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; background-image: linear-gradient(90deg, #fdfdfe, #e69600); }
.hero .cap { top: 9.3cqw; font-size: 3.57cqw; font-weight: 700; }
.hero .big { top: 12.5cqw; font-size: 7.74cqw; font-weight: 800; }
.hero .big.tone-gold { font-weight: 700; }
.hero .cap.tone-blue { background-image: linear-gradient(90deg, #fdfdfe, #68b0fb); }
.hero .big.tone-blue { background-image: linear-gradient(90deg, #fdfdfe, #9dcdff); }
.hero .tone-purple { background-image: linear-gradient(90deg, #fdfdfe, #db81ff); }
.hero .tone-white { background-image: linear-gradient(90deg, #fdfdfe, #fdfdfe); }   /* picture-only slide with a link: the whole banner is the link */
.herow + .dots { margin-top: calc(6 * var(--U)); }

/* ---------- HOME: query ---------- */
.qrow { margin: calc(5 * var(--U)) calc(25 * var(--U)) 0; }
.herow[hidden] ~ .qrow { margin-top: calc(14 * var(--U)); }   /* while the banner is switched off */
.qrow .uidrow { gap: calc(5 * var(--U)); }
.qrow .labs { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 calc(2 * var(--U)) calc(5 * var(--U)) calc(11 * var(--U)); font: 600 calc(9 * var(--U))/1.2 var(--f); font-size: max(11px, calc(9 * var(--U))); color: #fff; }
.qrow .labs span:last-child { font-weight: 400; color: #cfd9ee; text-align: right; }
.qres { display: none; margin: calc(10 * var(--U)) 0 0; padding: calc(12 * var(--U)) calc(14 * var(--U)); font: 500 calc(10 * var(--U))/1.5 var(--f); font-size: max(11px, calc(10 * var(--U))); }
.qres.show { display: block; }
.qres h4 { margin: 0 0 calc(4 * var(--U)); font: 800 calc(11.5 * var(--U))/1.2 var(--f); font-size: max(12px, calc(11.5 * var(--U))); }
.qres .line { display: flex; justify-content: space-between; gap: 12px; padding: calc(5 * var(--U)) 0; border-bottom: 1px solid rgba(104,176,251,.12); }
.qres .line:last-child { border-bottom: 0; }
.qres .line b { color: #8ec8ff; font-weight: 800; white-space: nowrap; text-align: right; }
.qres .none { color: #bdbdbd; text-align: center; padding: calc(4 * var(--U)) 0; }

/* ---------- HOME: activity cards (98 Figma px wide) ---------- */
.sec-title { margin: calc(14 * var(--U)) 0 calc(10 * var(--U)); }
body[data-page="home"] .sec-title { margin-top: calc(5 * var(--U)); }
#actDots { margin-top: calc(6 * var(--U)); }
#actRow { scroll-snap-type: x mandatory; }
.acard { container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: center; aspect-ratio: 98 / 93; background: var(--panel); border: .6px solid var(--panel-border); border-radius: 8px; overflow: hidden; }
.acard::after { content: ""; position: absolute; inset: 0; background: url("../img/v2/glow-a.svg") no-repeat center / 100% 100%; pointer-events: none; mix-blend-mode: screen; }
.acard img { height: 55cqw; width: auto; margin-top: 8cqw; }
.acard span { margin-top: auto; margin-bottom: 11cqw; font: 800 11.8cqw/1 var(--f); font-size: max(11px, 11.8cqw); white-space: nowrap; }

/* ---------- HOME: tutorial ---------- */
.tut-head { display: flex; justify-content: center; align-items: center; gap: calc(12 * var(--U)); margin: calc(11 * var(--U)) 0 calc(12 * var(--U)); }
.tut-head .pills { width: auto; min-width: calc(214 * var(--U)); }   /* grows a little on narrow phones so the 11 px labels fit */
.tut-box { margin: 0 calc(16 * var(--U)) 0 calc(13 * var(--U)); aspect-ratio: 406 / 186; }
.tut-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }

/* ---------- WHEEL ---------- */
.wbg { position: absolute; left: 50%; top: calc(18 * var(--U)); width: calc(461 * var(--U)); max-width: none; transform: translateX(-50%); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(175 * var(--U)), #000 calc(475 * var(--U)), transparent calc(767 * var(--U))); mask-image: linear-gradient(180deg, transparent 0, #000 calc(175 * var(--U)), #000 calc(475 * var(--U)), transparent calc(767 * var(--U))); }
.wmain { position: relative; z-index: 1; }
.hd { z-index: 2; }
.wtitle { margin: calc(14 * var(--U)) 0 0; font-size: calc(21.5 * var(--U)); font-weight: 700; text-align: center; }
.wheel { position: relative; width: calc(450 * var(--U)); height: calc(419 * var(--U)); margin: calc(20 * var(--U)) 0 0 calc(50% - 225 * var(--U)); container-type: inline-size; }
.wheel .glow { position: absolute; left: 50.15%; top: 50.99%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 calc(46 * var(--U)) rgba(70,150,255,.5); z-index: 0; }
@property --rot { syntax: "<number>"; inherits: true; initial-value: 0; }
/* the sunburst disc is pure CSS: 12 alternating cyan / royal-blue wedges, thin gold spokes, light centre, deeper rim (colours sampled from the design) */
.wheel .disc { position: absolute; width: 71.4%; aspect-ratio: 1; left: 50.05%; top: 51.4%; margin-left: -35.7%; margin-top: calc(-35.7% * 450 / 419); --rot: 0;   /* 2026-11-03: hole in wheel-wreath.webp measured at centre 50.05 / 51.4 %, inner radius ~34.4 % of the width; the disc is drawn 71.4 % wide so its edge is always under the gold ring */ transform: rotate(calc(var(--rot) * 1deg)); z-index: 1; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #ffe24a 0 1.6%, rgba(255,226,74,0) 1.9%),
    repeating-conic-gradient(from -15.25deg, #f9cd0d 0 .5deg, transparent .5deg 29.5deg, #f9cd0d 29.5deg 30deg),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.26) 0, rgba(255,255,255,.12) 26%, rgba(255,255,255,0) 44%),
    radial-gradient(circle at 50% 50%, #ffffff 0 40%, #9fdcf8 62%, #3b78d6 84%, #2a63c8 100%),   /* no dark navy rim: any sliver outside the ring stays wedge-blue */
    conic-gradient(from -15deg, #9ef8fb 0 30deg, #0273fa 30deg 60deg, #9ef8fb 60deg 90deg, #0273fa 90deg 120deg, #9ef8fb 120deg 150deg, #0273fa 150deg 180deg, #9ef8fb 180deg 210deg, #0273fa 210deg 240deg, #9ef8fb 240deg 270deg, #0273fa 270deg 300deg, #9ef8fb 300deg 330deg, #0273fa 330deg 360deg);
  background-blend-mode: normal, normal, normal, multiply, normal;
  box-shadow: inset 0 0 0 1px rgba(249,205,13,.9); }
.wheel .seg { position: absolute; left: 50%; top: 50%; width: 42%; height: 14%; margin-top: -7%; padding: 0; transform-origin: 0 50%; transform: rotate(calc(var(--a) - 90deg)); display: flex; align-items: center; justify-content: flex-end; font: 800 2.8cqw/1 var(--f); font-size: max(11px, 2.8cqw); white-space: nowrap; pointer-events: none; }
.wheel .seg b { display: block; font-weight: inherit; }
.wheel .seg.f b { transform: rotate(180deg); }   /* left-half labels turned so they are never upside down */
.wheel .seg.v { width: 35.5%; }   /* the label under the pointer sits inward so the pointer does not cut it */
.wheel .seg.l { color: #043aa5; }
.wheel .seg.d { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.wheel .wreath { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.wheel .medal { position: absolute; width: 26%; height: 27%; left: 50.15%; top: 50.99%; transform: translate(-50%, -50%); z-index: 3; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); transition: transform .2s cubic-bezier(.2,.8,.2,1), filter .2s; -webkit-tap-highlight-color: transparent; }   /* a tap on the medal spins (asks for the UID first) */
.wheel .medal img { width: 100%; height: 100%; object-fit: contain; }
.wheel .medal:hover { transform: translate(-50%, -50%) scale(1.06); filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)) drop-shadow(0 0 14px rgba(255,220,120,.8)); }
.wheel .medal:active { transform: translate(-50%, -50%) scale(.95); }
.wheel .medal[disabled] { cursor: default; }
.wheel .medal:focus-visible { outline: 2px solid #fee98c; outline-offset: 4px; }
/* idle hint: a breathing gold halo behind the medal; stops while the wheel turns */
.wheel .medal::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; box-shadow: 0 0 0 0 rgba(254,233,140,.75), 0 0 24px rgba(254,233,140,.55); animation: medalhalo 1.6s ease-out infinite; pointer-events: none; z-index: -1; }
@keyframes medalhalo { 0% { box-shadow: 0 0 0 0 rgba(254,233,140,.75), 0 0 24px rgba(254,233,140,.55); } 100% { box-shadow: 0 0 0 18px rgba(254,233,140,0), 0 0 24px rgba(254,233,140,.35); } }
.wheel.spinning .medal::before, .wheel .medal[disabled]::before { animation: none; opacity: 0; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .wheel .medal::before { animation: none; } }
.uidrow input.nudge { animation: uidnudge .9s cubic-bezier(.36,.07,.19,.97); border-color: #fee98c; box-shadow: 0 0 0 3px rgba(254,233,140,.35), 0 0 18px rgba(254,233,140,.5); }
@keyframes uidnudge { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.wheel .pointer { position: absolute; width: 12.7%; height: 12.9%; object-fit: contain; left: 50%; top: 10%; transform: translateX(-50%); z-index: 4; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.wcap { position: relative; display: flex; align-items: center; justify-content: center; width: calc(201 * var(--U)); height: calc(67 * var(--U)); margin: calc(-34 * var(--U)) auto 0; padding: 0; border: 0; background: url("../img/v2/btn-capsule.webp") no-repeat center / 100% 100%; font: 800 calc(17.5 * var(--U))/1 var(--f); color: #fff; text-shadow: 0 1px 3px rgba(0,40,120,.6); z-index: 3; }
.wform { margin: 0 calc(55 * var(--U)) 0 calc(56 * var(--U)); }
.wnote { margin: calc(10 * var(--U)) calc(20 * var(--U)) 0; text-align: center; font: 400 calc(9 * var(--U))/1.4 var(--f); font-size: max(11px, calc(9 * var(--U))); color: #fff; }
.wnote a { text-decoration: underline; cursor: pointer; }
.wstat { display: none; margin: calc(10 * var(--U)) calc(21 * var(--U)) 0; padding: calc(8 * var(--U)) calc(14 * var(--U)); align-items: center; justify-content: space-between; gap: 10px; font: 600 calc(10 * var(--U))/1.3 var(--f); font-size: max(11px, calc(10 * var(--U))); }
.wstat.show { display: flex; }
.wstat b { font-size: calc(16 * var(--U)); color: #8ec8ff; font-weight: 800; }
.wstat .uid { color: #cfd9ee; font-weight: 500; }
.prow { margin-top: calc(14 * var(--U)); }
.pcard { container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: center; aspect-ratio: 98 / 105; background: var(--panel); border: .6px solid var(--panel-border); border-radius: 8px; overflow: hidden; }
.pcard::after { content: ""; position: absolute; inset: 0; background: url("../img/v2/glow-a.svg") no-repeat center / 100% 100%; pointer-events: none; mix-blend-mode: screen; }
.pcard img { width: 58cqw; margin-top: 8cqw; }
.pcard small { margin-top: auto; font: 600 7.5cqw/1 var(--f); font-size: max(10px, 7.5cqw); color: #cfd9ee; }
.pcard span { margin: 3cqw 0 9cqw; font: 800 11.8cqw/1 var(--f); font-size: max(11px, 11.8cqw); }
.wtabs { width: calc(261 * var(--U)); margin: calc(8 * var(--U)) auto 0; }
.wlist { margin: calc(10 * var(--U)) calc(14 * var(--U)) 0; height: calc(186 * var(--U)); }
.scrollbox { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(142,200,255,.55) transparent; }
.scrollbox::-webkit-scrollbar { width: 3px; }
.scrollbox::-webkit-scrollbar-track { background: transparent; }
.scrollbox::-webkit-scrollbar-thumb { background: rgba(142,200,255,.55); border-radius: 2px; }
/* bottom fade = "more below"; script adds .has-more to the panel while the box can still scroll down */
.panel .fade { position: absolute; left: 0; right: 0; bottom: 0; height: calc(70 * var(--U)); background: linear-gradient(180deg, rgba(4,19,40,0) 0%, rgba(4,19,40,.92) 70%, #041328 100%); pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s; }
.panel .fade::after { content: ""; position: absolute; left: 50%; bottom: calc(8 * var(--U)); width: calc(8 * var(--U)); height: calc(8 * var(--U)); border-right: 2px solid #8ec8ff; border-bottom: 2px solid #8ec8ff; transform: translateX(-50%) rotate(45deg); animation: fadechev 1.4s ease-in-out infinite; }
@keyframes fadechev { 0%, 100% { transform: translate(-50%, 0) rotate(45deg); opacity: .9; } 50% { transform: translate(-50%, 4px) rotate(45deg); opacity: .4; } }
.panel.has-more .fade { opacity: 1; }
.wlist .scrollbox { padding: calc(8 * var(--U)) calc(18 * var(--U)); }
.wlist .r { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; height: calc(25 * var(--U)); font: 800 calc(10 * var(--U))/1 var(--f); font-size: max(11px, calc(10 * var(--U))); }
.wlist .r time { color: #bdbdbd; font-weight: 500; }
.wlist .r span { text-align: center; color: #fff; }
.wlist .r b { text-align: right; color: #8ec8ff; }
.wlist .r.mine span, .wlist .r.mine b, .wlist .r.mine time { color: #fee98c; }
.wlist .empty, .rempty { text-align: center; color: #bdbdbd; font: 500 calc(10 * var(--U))/1.5 var(--f); font-size: max(11px, calc(10 * var(--U))); padding: calc(60 * var(--U)) calc(20 * var(--U)) 0; }
.wterms { margin: calc(10 * var(--U)) calc(14 * var(--U)) 0; padding: calc(16 * var(--U)) calc(18 * var(--U)); font: 400 calc(8 * var(--U))/1.8 var(--f); font-size: max(11px, calc(8 * var(--U))); color: #fff; white-space: pre-line; }
.wmodal { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; background: rgba(1,8,24,.8); }
.wmodal.show { display: flex; }
.wmodal .card { width: min(86vw, 360px); padding: 28px 22px 22px; text-align: center; }
.wmodal h3 { margin: 0 0 6px; font: 800 18px/1.2 var(--f); color: #fff; }
.wmodal .amt { font: 800 42px/1.1 var(--f); }
.wmodal p { margin: 8px 0 0; font: 400 12px/1.5 var(--f); color: #cfd9ee; }
.wmodal button { margin-top: 18px; height: 36px; padding: 0 30px; border-radius: 50px; border: 0; background: #4d99e1; color: #fff; font: 700 13px/1 var(--f); }
.uidwarn { margin: calc(8 * var(--U)) calc(55 * var(--U)) 0 calc(56 * var(--U)); padding: calc(7 * var(--U)) calc(12 * var(--U)); border-radius: 50px; text-align: center; font: 700 max(12px, calc(10 * var(--U)))/1.3 var(--f); color: #fff; background: linear-gradient(90deg, #c8102e, #ff3b55); border: 1px solid #ffe08a; box-shadow: 0 4px 14px rgba(200,16,46,.45); }
.uidwarn.qwarn { margin: calc(8 * var(--U)) 0 0; }
.warn-enter-active, .warn-leave-active { transition: opacity .25s, transform .25s; }
.warn-enter-from, .warn-leave-to { opacity: 0; transform: translateY(-6px); }
.wclosed { margin: calc(10 * var(--U)) calc(21 * var(--U)) 0; padding: calc(8 * var(--U)); text-align: center; font: 600 calc(10 * var(--U))/1.4 var(--f); font-size: max(11px, calc(10 * var(--U))); color: #fbcc68; display: none; }
.wclosed.show { display: block; }

/* ---------- PROMO (cards 386 Figma px wide → 1 px = .259cqw) ---------- */
.ptabs { width: calc(307 * var(--U)); margin: calc(8 * var(--U)) auto 0; }   /* sits right under the header now that the sub-nav is hidden */
.plist { margin: calc(14 * var(--U)) calc(24 * var(--U)) 0 calc(25 * var(--U)); display: flex; flex-direction: column; gap: calc(13 * var(--U)); }
.pc { container-type: inline-size; position: relative; display: none; border-radius: calc(13 * var(--U)); overflow: hidden; background: transparent; }   /* Figma 386 x 149: picture 134 tall, strip 39 tall over its bottom; the strip grows when the text needs it */
.pc.show { display: block; }
.pc:hover .pic img { filter: brightness(1.08); }
.pc .pic { position: relative; width: 100%; height: 34.72cqw; border-radius: 3.37cqw; overflow: hidden; }
.pc .pic img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.pc .pic h3 { position: absolute; left: 6.2cqw; top: 9.3cqw; margin: 0; font: 700 5.57cqw/1.15 var(--f); white-space: nowrap; }
.pc .pic h4 { position: absolute; left: 6.2cqw; top: 16.7cqw; margin: 0; font: 700 2.95cqw/1.2 var(--f); font-size: max(11px, 2.95cqw); color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.pc .strip { position: relative; margin-top: -6.22cqw; min-height: 10.1cqw; display: flex; align-items: flex-start; justify-content: space-between; gap: 4cqw; padding: 2.07cqw 2.6cqw 1.9cqw 6.2cqw; background: #041328; border-radius: 0 0 2.6cqw 2.6cqw; }
.pc .strip::before, .pc .strip::after { content: ""; position: absolute; bottom: 0; width: 30.8cqw; height: 100%; pointer-events: none; opacity: .55; }
.pc .strip::before { left: 0; background: url("../img/v2/strip-glow-l.svg") no-repeat left bottom / contain; }
.pc .strip::after { right: 0; background: url("../img/v2/strip-glow-r.svg") no-repeat right bottom / contain; }
.pc .strip p { margin: 0; flex: 1 1 52cqw; max-width: 70cqw; font: 400 2.33cqw/1.33 var(--f); font-size: max(11px, 2.33cqw); color: #fff; }
.pc .strip .tag { font: 500 2.33cqw/1.33 var(--f); font-size: max(11px, 2.33cqw); white-space: nowrap; }

/* ---------- RANKINGS ---------- */
.rtabs { width: calc(311 * var(--U)); margin: calc(7 * var(--U)) auto 0; }
.rtitle { margin: calc(12 * var(--U)) 0 0; font-weight: 800; }
.rpanel { margin: calc(10 * var(--U)) calc(14 * var(--U)) 0; height: calc(491 * var(--U)); border-color: var(--rb, #0b2b67); }
.rpanel .scrollbox { padding: calc(6 * var(--U)) calc(16 * var(--U)) calc(70 * var(--U)); }
.rpanel .fade { height: calc(116 * var(--U)); }
.rr { display: grid; grid-template-columns: calc(78 * var(--U)) minmax(0, 1fr) calc(128 * var(--U)) calc(28 * var(--U)); align-items: center; min-height: calc(31 * var(--U)); border-bottom: 1px solid rgba(104,176,251,.13); font: 800 calc(10 * var(--U))/1 var(--f); font-size: max(11px, calc(10 * var(--U))); color: #fff; }
.rr .rk { display: flex; align-items: center; font-weight: 500; color: #bdbdbd; }
.rr .rk img { width: calc(28 * var(--U)); height: auto; }
.rr .nm { display: flex; align-items: center; gap: calc(3 * var(--U)); min-width: 0; }
.rr .nm img { width: calc(17 * var(--U)); height: auto; border-radius: 50%; }
.rr .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr .am { color: #bdbdbd; white-space: nowrap; font-weight: 500; }
.rr .am small { display: block; margin-top: 2px; font: 500 calc(8 * var(--U))/1.2 var(--f); font-size: max(10px, calc(8 * var(--U))); color: #9db3d6; white-space: normal; }
.rr .ct { text-align: right; color: var(--rc, #64ef5d); }
.rr.top .am { color: var(--rc, #64ef5d); font-weight: 800; }
.rempty { padding-top: calc(200 * var(--U)); }
.rupd { margin: calc(10 * var(--U)) 0 0; text-align: center; font: 400 calc(9 * var(--U))/1 var(--f); font-size: max(11px, calc(9 * var(--U))); color: #cfd9ee; min-height: calc(9 * var(--U)); }
body[data-page="rank"] .sec-title { margin-bottom: calc(7 * var(--U)); }   /* panel top at 688 as in Figma 46:31 */
.rterms { margin: 0 calc(14 * var(--U)) 0 calc(15 * var(--U)); min-height: calc(186 * var(--U)); padding: calc(14 * var(--U)) calc(18 * var(--U)); font: 400 calc(8 * var(--U))/1.35 var(--f); font-size: max(11px, calc(8 * var(--U))); color: #fff; white-space: pre-line; }
body.t1 { --rc: #fb75bf; --rb: #0b2b67; }
body.t7 { --rc: #c9a5ff; --rb: #3d0b67; }
body.t8 { --rc: #64ef5d; --rb: #3e670b; }
body.t2 { --rc: #fbcc68; --rb: #67470b; }

/* ---------- PC adaptation of the pages ---------- */

/* =====================================================================
   MOTION + PC LAYOUT (Nov 2026, second pass)
   ===================================================================== */
/* layout wrappers are invisible on phones (DOM order = Figma order) and become grids on PC */
.hometop, .wtop, .wleft, .wright, .wbot, .wbot > section, .rgrid, .rmain, .rside, .tv { display: contents; }
.tut-box .tv video { display: none; }
.tut-box .tv.on video { display: block; }
.tut-box figcaption { display: none; }

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.hrow.rv > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.hrow.rv.in > * { opacity: 1; transform: none; }
.hrow.rv.in > :nth-child(1) { transition-delay: .05s; } .hrow.rv.in > :nth-child(2) { transition-delay: .12s; } .hrow.rv.in > :nth-child(3) { transition-delay: .19s; }
.hrow.rv.in > :nth-child(4) { transition-delay: .26s; } .hrow.rv.in > :nth-child(5) { transition-delay: .33s; }

/* ---------- hover / press motion ---------- */
.acard, .pcard, .pc, .btnbar a, .hero .go, .uidrow button, .wcap, .pills button, .pills a, .bnav a img, .bnav a, .dfoot .dcta, .hd .pcnav a { transition: flex-basis .3s cubic-bezier(.2,.8,.2,1),  transform .28s cubic-bezier(.2, .8, .2, 1), filter .28s, box-shadow .28s, background .25s, color .25s, border-color .25s; }
.acard:hover, .pc:hover { transform: translateY(-5px); filter: none; box-shadow: 0 14px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(104, 176, 251, .35); }
.pcard:hover { transform: translateY(-4px); }
.btnbar a:hover, .wcap:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.12); }
.btnbar a:active, .wcap:active, .hero .go:active, .uidrow button:active { transform: scale(.97); }
.hero .go:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 0 18px rgba(106, 168, 245, .8), inset 0 0 8px rgba(106, 168, 245, .35); }
.uidrow button:hover { filter: brightness(1.12); }
.uidrow input { transition: box-shadow .25s, border-color .25s; }
.bnav a:active img { transform: translateX(-50%) scale(.9); }
.bnav a.on:active img { transform: translateX(-50%) scale(1.3); }
.hd .pcnav a:hover { transform: translateY(-1px); }

/* countdown digit tick */
@keyframes dflip { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* promo tab change */
.pc.show { animation: cardin .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes cardin { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }

/* rankings rows */
.rr { animation: rowin .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes rowin { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.rtitle { transition: color .3s; }

/* query result */
.qres.show { animation: cardin .45s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- wheel motion ---------- */
.wheel .glow { transition: box-shadow .4s; }
.wheel.spinning .glow { animation: wglow 1.1s ease-in-out infinite; }
@keyframes wglow { 0%, 100% { box-shadow: 0 0 calc(46 * var(--U)) rgba(70, 150, 255, .5); } 50% { box-shadow: 0 0 calc(70 * var(--U)) rgba(120, 190, 255, .85); } }
.wheel .pointer { transform-origin: 50% 20%; }
.wheel .pointer.tick { animation: ptick .13s ease-in-out infinite alternate; }
.wheel .pointer.tick.slow { animation-duration: .32s; }
@keyframes ptick { from { transform: translateX(-50%) rotate(-9deg); } to { transform: translateX(-50%) rotate(5deg); } }
.wheel.won .medal { animation: medalpop .7s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes medalpop { 0% { transform: translate(-50%, -50%) scale(1); } 40% { transform: translate(-50%, -50%) scale(1.22); filter: drop-shadow(0 0 22px rgba(255, 230, 140, .9)); } 100% { transform: translate(-50%, -50%) scale(1); } }
.wheel.won .wreath { animation: wreathflash .7s ease-out; }
@keyframes wreathflash { 30% { filter: brightness(1.5) drop-shadow(0 0 18px rgba(255, 220, 120, .8)); } 100% { filter: none; } }
.wmodal { transition: opacity .3s; }
.wmodal .card { animation: pop .5s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes pop { from { opacity: 0; transform: scale(.78) translateY(24px); } to { opacity: 1; transform: none; } }
.wmodal .amt { animation: amtglow 1.6s ease-in-out infinite alternate; }
@keyframes amtglow { from { filter: drop-shadow(0 0 4px rgba(251, 204, 104, .3)); } to { filter: drop-shadow(0 0 16px rgba(251, 204, 104, .85)); } }
.wstat.show { animation: cardin .4s cubic-bezier(.2, .8, .2, 1) both; }
.wstat b { transition: transform .3s; }
.wstat b.flip { animation: dflip .4s; }

/* ---------- side menu (slides in from the LEFT, under the burger) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .45s; }
.drawer .dim { position: absolute; inset: 0; background: rgba(1, 8, 24, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.drawer .box { position: absolute; top: 0; left: 0; right: auto; height: 100%; width: min(82vw, 340px); padding: 0; background: linear-gradient(160deg, #0e1f4f 0%, #06123a 42%, #02081c 100%); transform: translateX(-104%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; overflow: hidden; box-shadow: 16px 0 44px rgba(0, 0, 0, .6); }
.drawer .box::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: linear-gradient(180deg, rgba(104, 176, 251, 0), #68b0fb 25%, #68b0fb 75%, rgba(104, 176, 251, 0)); box-shadow: 0 0 18px #68b0fb; z-index: 3; }
.drawer .box::after { content: ""; position: absolute; width: 280px; height: 280px; left: -130px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(93, 166, 239, .38), transparent 70%); pointer-events: none; }
.drawer .dhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 14px 6px 22px; position: relative; z-index: 1; }
.drawer .dhead img { height: 48px; width: auto; filter: drop-shadow(0 0 10px rgba(104, 176, 251, .35)); }
.drawer .x { margin: 0; align-self: auto; background: rgba(255, 255, 255, .06); border: 1px solid rgba(104, 176, 251, .35); border-radius: 50%; width: 36px; height: 36px; color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform .3s, background .2s; }
.drawer .x:hover { transform: rotate(90deg); background: rgba(104, 176, 251, .2); }
.drawer .dmenu { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; position: relative; z-index: 1; }
.drawer .dmenu a { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border: 0; border-radius: 14px; color: #dfe8ff; font: 600 16px/1.15 var(--f); opacity: 0; transform: translateX(-28px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s; }
.drawer .dmenu a i { flex: 0 0 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #140d23, #041328); border: 1px solid #3f0b67; box-shadow: inset 0 0 12px rgba(104, 176, 251, .15); transition: border-color .25s, box-shadow .25s, transform .3s; }
.drawer .dmenu a i img { width: 30px; height: 30px; object-fit: contain; }
.drawer .dmenu a span { display: flex; flex-direction: column; gap: 3px; }
.drawer .dmenu a small { font: 400 10.5px/1 var(--f2); color: rgba(207, 217, 238, .55); letter-spacing: .08em; text-transform: uppercase; }
.drawer .dmenu a.on { color: #fee98c; background: linear-gradient(90deg, rgba(254, 233, 140, .14), rgba(254, 233, 140, 0)); }
.drawer .dmenu a.on i { border-color: #feeb9c; box-shadow: 0 0 16px rgba(254, 235, 156, .45), inset 0 0 12px rgba(254, 235, 156, .2); }
.drawer .dmenu a:hover i { transform: scale(1.08); }
.drawer .dmenu a:active { background: rgba(104, 176, 251, .14); }
.drawer .dfoot { margin-top: auto; position: relative; height: 210px; flex: 0 0 auto; }
.drawer .dfoot .dcta { position: absolute; left: 22px; bottom: 30px; z-index: 2; padding: 12px 20px; border-radius: 50px; background: linear-gradient(90deg, #5da6ef, #00579f); color: #fff; font: 800 14px/1 var(--f); box-shadow: 0 0 20px rgba(93, 166, 239, .6); opacity: 0; transform: translateY(16px); transition: opacity .4s .35s, transform .5s .35s cubic-bezier(.2, .8, .2, 1), filter .25s; }
.drawer .dfoot .dcta:hover { filter: brightness(1.12); }
.drawer .dfoot .dzeus { position: absolute; right: -34px; bottom: -8px; height: 220px; width: auto; max-width: none; opacity: 0; transform: translateX(30px); transition: opacity .6s .3s, transform .7s .3s cubic-bezier(.2, .8, .2, 1); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
body.menu-open .drawer { visibility: visible; transition-delay: 0s; }
body.menu-open .drawer .dim { opacity: 1; }
body.menu-open .drawer .box { transform: none; }
body.menu-open .drawer .dmenu a { opacity: 1; transform: none; }
body.menu-open .drawer .dmenu a:nth-child(1) { transition-delay: .12s; } body.menu-open .drawer .dmenu a:nth-child(2) { transition-delay: .17s; }
body.menu-open .drawer .dmenu a:nth-child(3) { transition-delay: .22s; } body.menu-open .drawer .dmenu a:nth-child(4) { transition-delay: .27s; }
body.menu-open .drawer .dmenu a:nth-child(5) { transition-delay: .32s; } body.menu-open .drawer .dmenu a:nth-child(6) { transition-delay: .37s; }
body.menu-open .drawer .dfoot .dcta, body.menu-open .drawer .dfoot .dzeus { opacity: 1; transform: none; }
body.menu-open .drawer .dfoot .dzeus { opacity: .92; }
.hd .burger i { transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; transform-origin: center; }
body.menu-open .hd .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hd .burger i:nth-child(2) { opacity: 0; }
body.menu-open .hd .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .rv, .hrow.rv > * { opacity: 1; transform: none; transition: none; }
  .rr, .pc.show, .wmodal .card, .qres.show { animation: none; }
}

/* ---------- PC: real two-column layouts ---------- */

body.menu-open .bnav { opacity: 0; pointer-events: none; transition: opacity .3s; }
.bnav { transition: opacity .3s; }

/* =====================================================================
   PC / tablet: the Figma phone design itself, centred (user's decision 2026-11-02).
   Only the scale changes: 1 Figma px = 1.3 px → a 565 px frame. Header, side menu,
   bottom nav and every block stay exactly as on phones.
   ===================================================================== */
@media (min-width: 761px) {
  :root { --U: 1.287px; }   /* PC: 560 px column, same layout as the phone */
  .hd .pcnav { display: none; }
  .v2::before { left: calc(50vw + (138 - 217.5) * var(--U)); }
  .v2::after { left: calc(50vw + (-289 - 217.5) * var(--U)); }
  .uidrow input { font-size: max(14px, calc(11 * var(--U))); }
  .drawer .box { width: 360px; }
  .wbg { width: calc(461 * var(--U)); max-width: none; height: auto; top: calc(18 * var(--U)); object-fit: fill; }
}

/* ---------- tabs big enough to tap (2026-11-03; every width, since PC now shows the phone frame) ---------- */
@media (min-width: 0) {
  .pills { height: calc(30 * var(--U)); min-height: 36px; }
  .pills button, .pills a { font-size: max(13px, calc(11 * var(--U))); padding: 0 calc(8 * var(--U)); }
  .ptabs, .rtabs { width: auto; margin-left: calc(14 * var(--U)); margin-right: calc(14 * var(--U)); }
  .tut-head .pills { min-width: 0; flex: 0 1 auto; }
  .subnav { height: calc(36 * var(--U)); min-height: 42px; }
  .subnav a { font-size: max(14px, calc(12 * var(--U))); gap: calc(5 * var(--U)); padding: 0 calc(10 * var(--U)); }
  .subnav a img { width: max(14px, calc(12 * var(--U))); height: max(14px, calc(12 * var(--U))); }
  .bnav a span { font-size: max(12px, calc(11.06 * var(--U))); }
  .bnav a[data-nav="dz"] span { font-size: max(11px, calc(10.5 * var(--U))); letter-spacing: -.01em; }
}

/* ---------- 双11红包雨 lucky draw landing (double11.html, Figma 109:53) ---------- */
.ldhero { position: relative; margin: 0 calc(9 * var(--U)); height: calc(158.7 * var(--U)); border-radius: calc(15.5 * var(--U)); overflow: hidden; background: var(--panel); border: .9px solid var(--panel-border); }
.ldhero img { position: absolute; left: calc(-9 * var(--U)); top: calc(-15.5 * var(--U)); width: calc(440 * var(--U)); height: calc(184 * var(--U)); max-width: none; object-fit: cover; }
.ldhero h1 { position: absolute; left: calc(192 * var(--U)); top: calc(65 * var(--U)); margin: 0; font: 700 calc(21.5 * var(--U))/1.2 var(--f); white-space: nowrap; }
.ldcards { display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-top: calc(18.3 * var(--U)); padding: 0; scroll-snap-type: none; }
.ldc.l, .ldc.r { margin-top: calc(14.9 * var(--U)); }
.ldcards::-webkit-scrollbar { display: none; }
.ldc { position: relative; flex: 0 0 calc(160.5 * var(--U)); height: calc(162.75 * var(--U)); border-radius: calc(9.1 * var(--U)); background: var(--panel); border: .9px solid var(--panel-border); overflow: hidden; text-align: center; scroll-snap-align: center; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.ldc::after { content: ""; position: absolute; inset: 0; background: url("../img/v2/glow-a.svg") no-repeat center / 100% 100%; mix-blend-mode: screen; pointer-events: none; }
.ldc:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(104,176,251,.35); }
.ldc.big { flex-basis: calc(179.5 * var(--U)); height: calc(182 * var(--U)); border-radius: calc(10.2 * var(--U)); z-index: 2; }
.ldc.l { margin-right: calc(-19 * var(--U)); }
.ldc.r { margin-left: calc(-19 * var(--U)); }
.ldc h3 { position: absolute; left: 0; right: 0; top: calc(7 * var(--U)); margin: 0; font: 800 calc(20 * var(--U))/1.2 var(--f); }   /* Figma: WISH, HELP, Story (as written) */
.ldc h4 { position: absolute; left: 0; right: 0; top: calc(30.5 * var(--U)); margin: 0; font: 500 calc(11.4 * var(--U))/1.2 var(--f); font-size: max(11px, calc(11.4 * var(--U))); background: linear-gradient(90deg, #fff, #6fb3fb); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; white-space: nowrap; }
.ldc img { position: absolute; left: 50%; top: calc(48 * var(--U)); height: calc(71.6 * var(--U)); width: auto; transform: translateX(-50%); }
.ldc p { position: absolute; left: 0; right: 0; top: calc(123.6 * var(--U)); margin: 0; font: 400 calc(9.8 * var(--U))/1.6 var(--f); font-size: max(10px, calc(9.8 * var(--U))); color: #fff; white-space: nowrap; }
.ldc.big h3 { top: calc(7.9 * var(--U)); font-size: calc(22.4 * var(--U)); }
.ldc.big h4 { top: calc(34 * var(--U)); font-size: max(11.5px, calc(12.7 * var(--U))); }
.ldc.big img { top: calc(54 * var(--U)); height: calc(83.8 * var(--U)); }
.ldc.big p { top: calc(138 * var(--U)); font-size: max(11px, calc(11 * var(--U))); }
.ldterms-title { margin-top: calc(235 * var(--U)); }   /* Figma 109:53 leaves this space between the cards (end 429) and 活动条款 (664) */
.ldterms { margin: calc(6 * var(--U)) calc(14 * var(--U)) 0 calc(15 * var(--U)); min-height: calc(186 * var(--U)); padding: calc(14 * var(--U)) calc(18 * var(--U)); font: 400 calc(8 * var(--U))/1.35 var(--f); font-size: max(11px, calc(8 * var(--U))); color: #fff; white-space: pre-line; }
/* wheel page vertical rhythm = Figma 68:172 */
.wmain .sec-title { margin: calc(8 * var(--U)) 0 calc(7 * var(--U)); }
.wmain #terms { margin: calc(11 * var(--U)) 0 calc(11 * var(--U)); }
.wlist { margin-top: 0; }
.wterms { margin-top: 0; }
/* drag-to-scroll */
.hrow, .ldcards { cursor: grab; }
.hero img { -webkit-user-drag: none; user-select: none; }
.hrow.dragging, .ldcards.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.hrow img, .ldcards img { -webkit-user-drag: none; user-select: none; }

/* ---------- page changes: handled by the Nuxt app (cross-fade + gliding bottom-nav card), nothing cross-document here ---------- */

/* ---------- 活动条款 text (admin free text → numbered items with hanging indent, sub-bullets, as in the Figma panels) ---------- */
.terms .tl { display: flex; gap: .45em; margin: 0 0 calc(11 * var(--U)); }   /* Figma: 22 px pitch between one-line items */
.terms .tl:last-child { margin-bottom: 0; }
.terms .tl b { flex: 0 0 auto; min-width: 1.6em; text-align: right; font-weight: inherit; }
.terms .tl span { flex: 1 1 auto; }
.terms .tl.sub { margin: calc(-11 * var(--U)) 0 calc(11 * var(--U)) 2.3em; }   /* collapses to 0 against the item above / the sub-bullet above */
.terms .tl.sub b { min-width: .6em; text-align: left; }
.terms .th { margin: calc(4 * var(--U)) 0 calc(11 * var(--U)) 1.25em; font-weight: 700; }
.terms .tp { margin: 0 0 calc(11 * var(--U)); }


/* ---------- floating layer: 雷神红包 (top-left), FREE50 / Ez8 / DEAR ZEUS icons (bottom-left), live chat (bottom-right) - all pages, brought back 2026-11-03 ---------- */
.floats { --fw: 96px; --fb: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)); position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.floats > * { pointer-events: auto; }
.ficons { position: absolute; left: 8px; bottom: var(--fb); display: flex; flex-direction: column; gap: 6px; width: var(--fw); }
.ficons .fi { display: block; transition: transform .15s; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.ficons .fi:hover { transform: scale(1.06); }
.ficons .fi img { width: 100%; height: auto; }
.livechat { position: absolute; right: 12px; bottom: calc(var(--fb) + 4px); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #2bb0ec 0%, #1a8fd0 100%); border: 2px solid #e9c27a; box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s, filter .15s; }
.livechat:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.08); }
.livechat svg { width: 30px; height: 30px; display: block; }
.livechat::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #2bb0ec; animation: lcpulse 2s ease-out infinite; pointer-events: none; }
.livechat::after { content: ""; position: absolute; right: 1px; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: #2ee27a; border: 2px solid #fff; }
@keyframes lcpulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
/* angpao: a half-pill tab on the left screen edge (packet + countdown side by side); clickable only while open */
.angpao { position: absolute; left: 0; top: calc(150 * var(--U)); display: flex; align-items: center; gap: 0; padding: 4px 8px 4px 5px; border-radius: 0 50px 50px 0; text-decoration: none; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, #0a2d6e, #04173f); border: 1px solid #e6bd6a; border-left: 0; box-shadow: 0 3px 10px rgba(0,8,40,.6), 0 0 0 1px rgba(111,76,18,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.angpao .pic { position: relative; display: block; width: 36px; flex: 0 0 36px; }
.angpao .pic img { width: 100%; height: auto; filter: drop-shadow(0 0 5px rgba(80,170,255,.55)); animation: apglow 1.8s ease-in-out infinite; }
.angpao .pic i { position: absolute; width: 30%; aspect-ratio: 3 / 4; pointer-events: none; opacity: .9; animation: apbolt 1.1s steps(1, end) infinite; filter: drop-shadow(0 0 4px #9ff3ff);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M15 0 3 18h8l-3 14L22 12h-8z' fill='%23fffbe6'/%3E%3C/svg%3E") center / contain no-repeat; }
.angpao .pic .b1 { left: -12%; top: 0; transform: rotate(-18deg); }
.angpao .pic .b2 { right: -14%; top: 40%; transform: rotate(14deg) scaleX(-1); animation-delay: .4s; }
@keyframes apbolt { 0%, 100% { opacity: 0; } 50% { opacity: .95; } }
@keyframes apglow { 0%, 100% { filter: drop-shadow(0 0 5px rgba(80,170,255,.55)); } 50% { filter: drop-shadow(0 0 10px rgba(120,210,255,.95)) drop-shadow(0 0 3px rgba(255,230,120,.8)); } }
/* collapsed = packet + arrow only; .expanded reveals the text block (max-width transition) */
.angpao .cd { display: block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s cubic-bezier(.22,1,.36,1), opacity .2s, margin .3s; }
.angpao.expanded .cd { max-width: 150px; opacity: 1; margin-left: 7px; }
.angpao .cd .in { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding-right: 2px; }
.angpao .cd b { font: 700 9.5px/1.2 var(--f); color: #ffe9a8; letter-spacing: .03em; white-space: nowrap; }
.angpao .cd em { font: 800 14px/1.2 var(--f2); font-style: normal; color: #ffd84f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.angpao .cd small { font: 600 9px/1.2 var(--f); color: #9ec2ff; white-space: nowrap; }
.angpao .arrow { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: rgba(255,255,255,.1); color: #ffe9a8; flex: 0 0 18px; transition: transform .3s; }
.angpao .arrow svg { width: 12px; height: 12px; }
.angpao.expanded .arrow { transform: rotate(180deg); }
.angpao:not(.open) .pic img { filter: saturate(.85) brightness(.95) drop-shadow(0 0 4px rgba(80,170,255,.45)); }
.angpao.open { background: linear-gradient(180deg, #ff3b55, #a80d26); border-color: #ffe08a; animation: appulse .6s ease-in-out infinite; transform-origin: left center; }
.angpao.open .pic img { animation: apshake .5s ease-in-out infinite; filter: brightness(1.12) drop-shadow(0 0 8px rgba(255,220,90,.95)); }
.angpao.open .cd b, .angpao.open .cd em, .angpao.open .cd small { color: #fff; }
@keyframes apshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg) scale(1.04); } 75% { transform: rotate(6deg) scale(1.04); } }
@keyframes appulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .angpao .pic img, .angpao .pic i, .angpao.open, .livechat::before { animation: none; } }
@media (min-width: 761px) { .floats { --fw: 120px; } .ficons { left: 20px; bottom: calc(var(--nav-h) + 24px); } .livechat { right: 24px; bottom: calc(var(--nav-h) + 28px); width: 64px; height: 64px; } .angpao { top: 110px; } .angpao .pic { width: 44px; flex-basis: 44px; } .angpao .cd em { font-size: 16px; } .angpao.expanded .cd { max-width: 170px; } }   /* PC: the frame is centred, the floats sit in the free corners */
/* scroll dock (phones): while scrolling, the floats slide 65 % into their edge at half opacity; they come back when the page stops */
.angpao, .ficons, .livechat { transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.angpao { transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
@media (max-width: 760px) {
  .floats.docked .angpao, .floats.docked .ficons, .floats.docked .livechat { opacity: .5; }
  .floats.docked .angpao, .floats.docked .ficons { transform: translateX(-65%); }
  .floats.docked .livechat { transform: translateX(65%); }
}
@media (prefers-reduced-motion: reduce) { .angpao, .ficons, .livechat { transition: none; } }

/* ---------- one gutter for every block (user 2026-11-03: same width + even gaps on phones). --gx = 14 Figma px on both sides ---------- */
:root { --gx: calc(14 * var(--U)); --gy: calc(16 * var(--U)); }
.btnbar { margin: calc(4 * var(--U)) var(--gx) 0; gap: calc(6 * var(--U)); }
.btnbar a, .btnbar a:first-child { flex: 1 1 0; }
.herow { margin: var(--gy) var(--gx) 0; }
.herow + .dots { margin-top: calc(8 * var(--U)); }
.qrow { margin: var(--gy) var(--gx) 0; }
.herow[hidden] ~ .qrow { margin-top: var(--gy); }
.qrow .labs { margin-left: calc(6 * var(--U)); margin-right: calc(2 * var(--U)); }
.sec-title, body[data-page="home"] .sec-title { margin: calc(20 * var(--U)) 0 calc(10 * var(--U)); }
.hrow { padding-left: var(--gx); padding-right: var(--gx); scroll-padding: 0 var(--gx); }
.tut-head { margin: calc(20 * var(--U)) var(--gx) calc(10 * var(--U)); justify-content: space-between; gap: calc(10 * var(--U)); }
.tut-head .stitle { flex: 0 0 auto; text-align: left; }
.tut-head .pills { flex: 1 1 auto; min-width: 0; max-width: calc(262 * var(--U)); }
.tut-box { margin: 0 var(--gx); }
.foot { padding: calc(18 * var(--U)) var(--gx) calc(10 * var(--U)); }
/* promo */
.ptabs, .rtabs { width: auto; margin-left: var(--gx); margin-right: var(--gx); }
.plist { margin: var(--gy) var(--gx) 0; gap: var(--gy); }
/* rankings + double11 */
.rpanel { margin: var(--gy) var(--gx) 0; }
.rterms, .ldterms { margin: 0 var(--gx); }
.ldhero { margin: 0 var(--gx); }
/* wheel */
.wform { margin: 0 var(--gx); }
.wnote { margin: calc(10 * var(--U)) var(--gx) 0; }
.wstat, .wclosed { margin-left: var(--gx); margin-right: var(--gx); }
.uidwarn { margin-left: var(--gx); margin-right: var(--gx); }
.wlist, .wterms { margin-left: var(--gx); margin-right: var(--gx); }
.wmain #terms { margin: calc(20 * var(--U)) 0 calc(10 * var(--U)); }
.wmain .sec-title { margin: calc(20 * var(--U)) 0 calc(10 * var(--U)); }

/* ---------- 优惠 popup (PromoModal.vue; content from admin -> 优惠活动) ---------- */
body.modal-open { overflow: hidden; }
.pmodal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(1,8,24,.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pmodal .box { position: relative; width: min(100%, 440px); max-height: min(88vh, 88dvh); display: flex; flex-direction: column; border-radius: 18px; border-color: #68b0fb; box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 0 1px rgba(104,176,251,.25), 0 0 28px rgba(104,176,251,.3); }
.pmodal .box::before, .pmodal .box::after { opacity: .6; }
.pmodal .x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(104,176,251,.5); background: rgba(1,8,24,.6); color: #fff; font: 400 22px/1 var(--f2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pmodal .scroll { position: relative; z-index: 2; overflow-y: auto; padding: 22px 18px 14px; scrollbar-width: thin; scrollbar-color: rgba(142,200,255,.55) transparent; }
.pmodal .scroll::-webkit-scrollbar { width: 4px; } .pmodal .scroll::-webkit-scrollbar-thumb { background: rgba(142,200,255,.55); border-radius: 2px; }
.pmodal h3 { margin: 0 32px 0 0; font: 800 20px/1.25 var(--f); }
.pmodal .sub { margin: 4px 0 0; font: 700 13px/1.4 var(--f); color: #fff; }
.pmodal .ban { width: 100%; height: auto; border-radius: 12px; margin-top: 14px; border: 1px solid rgba(104,176,251,.35); }
.pmodal .dates { margin: 8px 0 0; text-align: center; font: 500 11.5px/1.4 var(--f2); color: #9db3d6; }
.pmodal .blurb { margin: 12px 0 0; font: 400 13px/1.6 var(--f); color: #e9f0fb; }
.pmodal h4 { margin: 18px 0 8px; font: 800 14px/1.3 var(--f); color: #fff; }
.pmodal h4 small { font: 500 11px/1 var(--f2); color: #8ec8ff; margin-left: 6px; }
.pmodal .tblwrap { overflow-x: auto; border: 1px solid rgba(104,176,251,.3); border-radius: 10px; }
.pmodal table { width: 100%; border-collapse: collapse; font: 500 12px/1.4 var(--f); text-align: center; }
.pmodal th { padding: 8px 10px; background: rgba(104,176,251,.14); color: #cfe0ff; font-weight: 700; border-bottom: 1px solid rgba(104,176,251,.3); white-space: nowrap; }
.pmodal td { padding: 9px 10px; border-bottom: 1px solid rgba(104,176,251,.12); color: #fff; }
.pmodal tr:last-child td { border-bottom: 0; }
.pmodal th + th, .pmodal td + td { border-left: 1px solid rgba(104,176,251,.12); }
.pmodal ol { margin: 0; padding-left: 22px; font: 400 13px/1.6 var(--f); color: #e9f0fb; }
.pmodal ol li { margin: 0 0 6px; padding-left: 2px; }
.pmodal ol li::marker { color: #8ec8ff; font-weight: 700; }
.pmodal .terms p { margin: 0 0 5px; font: 400 12px/1.55 var(--f); color: #cfd9ee; }
.pmodal .terms p.sub { margin-left: 14px; }
.pmodal .foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 14px; border-top: 1px solid rgba(104,176,251,.2); background: rgba(4,19,40,.85); }
.pmodal .cta { flex: 0 0 auto; padding: 11px 24px; border-radius: 50px; background: linear-gradient(90deg, #5da6ef, #00579f); border: 1px solid rgba(104,176,251,.6); color: #fff; font: 800 14px/1 var(--f); box-shadow: 0 0 16px rgba(93,166,239,.5); transition: transform .15s, filter .15s; }
.pmodal .cta:hover { transform: translateY(-1px); filter: brightness(1.1); }
.pmodal .tag { font: 600 11.5px/1.3 var(--f); text-align: right; }
.pm-enter-active, .pm-leave-active { transition: opacity .25s; }
.pm-enter-active .box, .pm-leave-active .box { transition: transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .25s; }
.pm-enter-from, .pm-leave-to { opacity: 0; }
.pm-enter-from .box, .pm-leave-to .box { transform: translateY(24px) scale(.96); opacity: 0; }
.pc { cursor: pointer; }

/* close buttons: the X is an SVG, so it sits exactly in the middle of the circle on every font / device (2026-11-03) */
.drawer .x, .pmodal .x { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 0; font-size: 0; }
.drawer .x .xi, .pmodal .x .xi { width: 16px; height: 16px; display: block; }
.pmodal .x .xi { width: 15px; height: 15px; }

/* ranking / winners panels grow with their rows and only scroll past the Figma height (2026-11-03: no empty space under short lists) */
.rpanel, .wlist { height: auto; }
.rpanel .scrollbox, .wlist .scrollbox { position: relative; inset: auto; max-height: none; overflow: visible; padding-bottom: calc(10 * var(--U)); }   /* height = the rows, no inner scrolling (user 2026-11-03) */
.rpanel .fade, .wlist .fade { display: none; }
.rterms, .ldterms, .wterms { min-height: 0; }
.rpanel .rempty { padding-top: calc(60 * var(--U)); padding-bottom: calc(60 * var(--U)); }

/* ---------- menu, Nov 2026 redesign: full-screen themed overlay (replaces the left drawer with the character) ---------- */
.drawer .box { left: 0; right: 0; width: 100%; max-width: none; padding: 0; background: #010818; box-shadow: 16px 0 44px rgba(0,0,0,.6); transform: translateX(-104%); opacity: 1; transition: transform .4s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.drawer .box::before, .drawer .box::after { content: ""; position: absolute; width: calc(499 * var(--U)); height: calc(498 * var(--U)); border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(32,96,200,.32) 0%, rgba(13,40,110,.14) 45%, rgba(1,8,24,0) 70%); box-shadow: none; left: auto; top: auto; bottom: auto; right: auto; }
.drawer .box::before { left: calc(138 * var(--U)); top: calc(-260 * var(--U)); }
.drawer .box::after { left: calc(-289 * var(--U)); top: calc(331 * var(--U)); }
body.menu-open .drawer .box { transform: none; opacity: 1; }
body.menu-open .floats { opacity: 0; pointer-events: none; }
.floats { transition: opacity .25s; }
.drawer .dhead { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: calc(16 * var(--U)) var(--gx) calc(6 * var(--U)); }
.drawer .dhead img { height: calc(56 * var(--U)); width: auto; filter: drop-shadow(0 0 12px rgba(104,176,251,.4)); }
.drawer .x { position: absolute; right: var(--gx); top: calc(16 * var(--U)); margin: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(104,176,251,.45); background: rgba(104,176,251,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 0; line-height: 0; transition: transform .3s, background .2s; }
.drawer .x:hover { transform: rotate(90deg); background: rgba(104,176,251,.2); }
.drawer .dgrid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: calc(10 * var(--U)); padding: calc(12 * var(--U)) var(--gx) 0; }
.drawer .dcard { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(3 * var(--U)); aspect-ratio: 170 / 110; background: var(--panel); border: 1px solid var(--panel-border); border-radius: calc(12 * var(--U)); overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s; }
.drawer .dcard::after { content: ""; position: absolute; inset: 0; background: url("../img/v2/glow-a.svg") no-repeat center / 100% 100%; mix-blend-mode: screen; pointer-events: none; }
.drawer .dcard img { height: calc(46 * var(--U)); width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.drawer .dcard span { font: 800 max(14px, calc(15 * var(--U)))/1.2 var(--f); }
.drawer .dcard small { font: 500 max(10px, calc(9.5 * var(--U)))/1.2 var(--f2); color: #cfd9ee; letter-spacing: .1em; text-transform: uppercase; }
.drawer .dcard.on { border-color: #fee98c; box-shadow: 0 0 20px rgba(254,233,140,.35), inset 0 0 16px rgba(254,233,140,.12); }
.drawer .dcard.on span { background-image: linear-gradient(90deg, #fdfdfe, #fee98c); }
.drawer .dcard:active { transform: scale(.97); }
body.menu-open .drawer .dcard { opacity: 1; transform: none; }
body.menu-open .drawer .dcard:nth-child(1) { transition-delay: .08s; } body.menu-open .drawer .dcard:nth-child(2) { transition-delay: .13s; } body.menu-open .drawer .dcard:nth-child(3) { transition-delay: .18s; }
body.menu-open .drawer .dcard:nth-child(4) { transition-delay: .23s; } body.menu-open .drawer .dcard:nth-child(5) { transition-delay: .28s; } body.menu-open .drawer .dcard:nth-child(6) { transition-delay: .33s; }
.drawer .dcta { position: relative; z-index: 1; display: flex; gap: calc(8 * var(--U)); padding: calc(14 * var(--U)) var(--gx) 0; }
.drawer .dcta a { flex: 1 1 0; height: calc(40 * var(--U)); min-height: 42px; border-radius: 50px; display: flex; align-items: center; justify-content: center; font: 800 max(13px, calc(13 * var(--U)))/1 var(--f); color: #fff; transition: transform .15s, filter .15s; }
.drawer .dcta a:active { transform: scale(.97); }
.drawer .dcta .reg { background: linear-gradient(90deg, #5da6ef, #00579f); border: 1px solid rgba(104,176,251,.6); box-shadow: 0 0 18px rgba(93,166,239,.45); }
.drawer .dcta .login { background: rgba(104,176,251,.08); border: 1px solid #68b0fb; }
.drawer .dsoc { position: relative; z-index: 1; display: flex; gap: calc(8 * var(--U)); padding: calc(10 * var(--U)) var(--gx) 0; }
.drawer .dsoc a { flex: 1 1 0; height: calc(36 * var(--U)); min-height: 40px; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--U)); font: 600 max(12px, calc(11.5 * var(--U)))/1 var(--f); color: #cfe0ff; background: var(--panel); border: 1px solid var(--panel-border); }
.drawer .dsoc img { width: calc(18 * var(--U)); height: calc(18 * var(--U)); object-fit: contain; }
.drawer .dfoot { position: relative; z-index: 1; height: auto; flex: 0 0 auto; margin: auto 0 0; padding: calc(20 * var(--U)) var(--gx) calc(18 * var(--U) + env(safe-area-inset-bottom, 0px)); text-align: center; font: 400 max(10px, calc(9 * var(--U)))/1.4 var(--f); color: #9db3d6; }
@media (min-width: 761px) { .drawer .box { left: 0; right: auto; width: calc(435 * var(--U)); transform: translateX(-104%); border-right: 1px solid rgba(104,176,251,.2); } }   /* PC: slides in from the left edge too */

/* bottom nav icons: one 36U box for every icon, centred on the same line; the active one just scales up (2026-11-03) */
.bnav a img, .bnav a[data-nav="dz"] img, .bnav a[data-nav="rank"] img, .bnav a[data-nav="wheel"] img { width: calc(36 * var(--U)); height: calc(36 * var(--U)); object-fit: contain; bottom: calc(27 * var(--U)); transform: translateX(-50%); transform-origin: 50% 100%; }
.bnav a.on img, .bnav a[data-nav="home"].on img, .bnav a[data-nav="promo"].on img, .bnav a[data-nav="rank"].on img, .bnav a[data-nav="wheel"].on img, .bnav a[data-nav="dz"].on img { bottom: calc(27 * var(--U)); transform: translateX(-50%) scale(1.28); }
.bnav a:active img { transform: translateX(-50%) scale(.92); }
.bnav a.on:active img { transform: translateX(-50%) scale(1.18); }
.bnav a span, .bnav a.on span { top: calc(60 * var(--U)); }

/* tutorial switch: smaller text than the page tabs (2026-11-03) */
.tut-head .pills { height: calc(28 * var(--U)); min-height: 32px; max-width: calc(236 * var(--U)); }
.tut-head .pills button { font-size: max(11px, calc(9.5 * var(--U))); padding: 0 calc(8 * var(--U)); }

/* wheel 获奖名单: scrolls inside after ~8 rows (user 2026-11-03); rankings panels still grow with their rows */
.wlist .scrollbox { max-height: calc(220 * var(--U)); overflow-y: auto; padding-bottom: calc(8 * var(--U)); }
.wlist .fade { display: block; height: calc(50 * var(--U)); }

/* FREE50 + Ez8: one half-pill tab on the left edge, collapsed = gift icon + arrow, tap = both icons slide out (2026-11-03; the Dear Zeus float was removed) */
.ficons { left: 0; width: auto; flex-direction: row; align-items: center; gap: 0; padding: 4px 8px 4px 5px; border-radius: 0 50px 50px 0;
  background: linear-gradient(180deg, #0a2d6e, #04173f); border: 1px solid #e6bd6a; border-left: 0; box-shadow: 0 3px 10px rgba(0,8,40,.6), 0 0 0 1px rgba(111,76,18,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.ficons .ftab { display: block; padding: 0; border: 0; background: none; width: 36px; height: 36px; cursor: pointer; }
.ficons .ftab img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 6px rgba(104,176,251,.6)); }
.ficons .fin { display: flex; align-items: center; gap: 6px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s cubic-bezier(.22,1,.36,1), opacity .2s, margin .3s; }
.ficons.expanded .fin { max-width: 200px; opacity: 1; margin-left: 8px; }
.ficons .fi { filter: none; }
.ficons .fi img { width: auto; height: 38px; }
.ficons .arrow { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #ffe9a8; flex: 0 0 18px; cursor: pointer; transition: transform .3s; }
.ficons .arrow svg { width: 12px; height: 12px; }
.ficons.expanded .arrow { transform: rotate(180deg); }
@media (min-width: 761px) { .ficons { left: 0; } .ficons .ftab { width: 42px; height: 42px; } .ficons .fi img { height: 44px; } }

/* FREE50 + Ez8 tab, vertical version (user 2026-11-03): the icons open UPWARDS above the gift tab, stacked; the arrow points up / down */
.ficons { flex-direction: column-reverse; align-items: center; padding: 6px 6px 6px 5px; border-radius: 0 16px 16px 0; }
.ficons .fin { flex-direction: column; align-items: center; gap: 6px; max-width: none; width: auto; max-height: 0; margin: 0; transition: max-height .35s cubic-bezier(.22,1,.36,1), opacity .2s, margin .3s; }
.ficons.expanded .fin { max-width: none; max-height: 160px; opacity: 1; margin: 0 0 6px; }
.ficons .fi img { height: 40px; width: auto; }
.ficons .arrow { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); margin: 0; background: #0a2d6e; border: 1px solid #e6bd6a; width: 20px; height: 20px; }
.ficons.expanded .arrow { transform: translateY(-50%) rotate(180deg); }
@media (min-width: 761px) { .ficons .fi img { height: 46px; } }

/* FREE50 + Ez8 tab, final (user 2026-11-03): slides out SIDEWAYS from the left edge like the red packet, with the two icons stacked one above the other */
.ficons { flex-direction: row; align-items: center; padding: 5px 8px 5px 5px; border-radius: 0 50px 50px 0; }
.ficons .fin { flex-direction: column; align-items: flex-start; gap: 4px; max-height: 0; max-width: 0; margin: 0; transition: max-width .3s cubic-bezier(.22,1,.36,1), max-height .3s cubic-bezier(.22,1,.36,1), opacity .2s, margin .3s; }
.ficons.expanded .fin { max-width: 160px; max-height: 100px; opacity: 1; margin: 0 0 0 8px; }
.ficons .fi img { height: 38px; width: auto; }
.ficons .arrow { position: static; transform: none; margin-left: 6px; background: rgba(255,255,255,.1); border: 0; width: 18px; height: 18px; }
.ficons.expanded .arrow { transform: rotate(180deg); }
@media (min-width: 761px) { .ficons .fi img { height: 44px; } }

/* FREE50 + Ez8, card version (2026-11-03): the tab is a small half-pill with the gift + 福利; opening pops two equal cards above it */
.ficons { flex-direction: column; align-items: flex-start; gap: 0; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.ficons .ftab { position: relative; width: auto; height: auto; display: flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px; border-radius: 0 50px 50px 0;
  background: linear-gradient(180deg, #0a2d6e, #04173f); border: 1px solid #e6bd6a; border-left: 0; box-shadow: 0 3px 10px rgba(0,8,40,.6), 0 0 0 1px rgba(111,76,18,.6), inset 0 1px 0 rgba(255,255,255,.18); cursor: pointer; }
.ficons .ftab img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(104,176,251,.6)); }
.ficons .ftab b { font: 800 12px/1 var(--f); color: #ffe9a8; }
.ficons .ftab .arrow { position: static; transform: none; margin-left: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.1); color: #ffe9a8; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.ficons .ftab .arrow svg { width: 12px; height: 12px; }
.ficons.expanded .ftab .arrow { transform: rotate(180deg); }
.ficons .fin { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 8px 8px; max-width: none; max-height: none; overflow: visible; opacity: 1; pointer-events: none; }
.ficons.expanded .fin { margin: 0 0 8px 8px; pointer-events: auto; }
.ficons .fi { width: 118px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--panel); border: 1px solid #e6bd6a; box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 12px rgba(104,176,251,.25); opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .25s, transform .3s cubic-bezier(.2,.9,.3,1.3); }
.ficons .fi img { width: 100%; height: 100%; max-height: 50px; object-fit: contain; }
.ficons.expanded .fi { opacity: 1; transform: none; }
.ficons.expanded .fi:nth-child(1) { transition-delay: .06s; }
@media (min-width: 761px) { .ficons .fi { width: 136px; height: 64px; } .ficons .fi img { max-height: 58px; } .ficons .ftab img { width: 38px; height: 38px; } }

/* FREE50 + Ez8, plain version (2026-11-03): no text, no cards - the two badges float above the gift tab with clear spacing */
.ficons .ftab { padding: 4px 8px 4px 5px; }
.ficons .fin { gap: 8px; margin: 0 0 12px 6px; }
.ficons.expanded .fin { margin: 0 0 12px 6px; }
.ficons .fi { width: 104px; height: auto; border: 0; background: none; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.55)); }
.ficons .fi img { width: 100%; height: auto; max-height: none; }
.ficons .fin { max-height: 0; overflow: hidden; margin-bottom: 0; transition: max-height .3s cubic-bezier(.22,1,.36,1), margin .3s; }
.ficons.expanded .fin { max-height: 160px; overflow: visible; margin-bottom: 12px; }
@media (min-width: 761px) { .ficons .fi { width: 124px; height: auto; } }

/* FREE50 + Ez8 open / close animation (2026-11-03): the badges spring out of the gift one after another and shrink back into it */
.ficons .fin { max-height: none; overflow: visible; margin: 0 0 12px 6px; visibility: hidden; transition: visibility 0s .35s; }
.ficons.expanded .fin { visibility: visible; transition-delay: 0s; }
.ficons .fi { opacity: 0; transform: translateY(28px) scale(.4); transform-origin: 20% 100%; transition: opacity .22s ease, transform .3s cubic-bezier(.3,.6,.4,1); }
.ficons .fi:nth-child(1) { transition-delay: .04s; }
.ficons .fi:nth-child(2) { transition-delay: 0s; }
.ficons.expanded .fi { opacity: 1; transform: none; transition: opacity .25s ease, transform .5s cubic-bezier(.2,1.4,.4,1); }
.ficons.expanded .fi:nth-child(2) { transition-delay: .05s; }
.ficons.expanded .fi:nth-child(1) { transition-delay: .14s; }
.ficons .ftab img { transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.ficons.expanded .ftab img { transform: rotate(-12deg) scale(1.1); }
.ficons .ftab:active img { transform: scale(.9); }
@media (prefers-reduced-motion: reduce) { .ficons .fi, .ficons.expanded .fi, .ficons .ftab img { transition: none; } }

/* gift tab uses the gold lightning gift picture (user 2026-11-03) */
.ficons .ftab img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(255,210,80,.7)) drop-shadow(0 2px 4px rgba(0,10,40,.5)); animation: apglow 1.8s ease-in-out infinite; }
.ficons.expanded .ftab img { animation: none; }
@media (min-width: 761px) { .ficons .ftab img { width: 46px; height: 46px; } }

/* floating tabs follow the theme (2026-11-03): panel gradient + blue border / glow instead of gold on navy */
.angpao, .ficons .ftab { background: var(--panel); border-color: var(--blue); box-shadow: 0 0 0 1px rgba(104,176,251,.25), 0 0 14px rgba(104,176,251,.45), 0 4px 12px rgba(0,8,24,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.angpao .cd b, .angpao .arrow, .ficons .ftab .arrow { color: #cfe0ff; }
.angpao .cd em { color: #fff; }
.angpao .cd small { color: #8ec8ff; }
.angpao .arrow, .ficons .ftab .arrow { background: rgba(104,176,251,.16); }
.angpao.open { background: linear-gradient(180deg, #ff3b55, #a80d26); border-color: #ffe08a; box-shadow: 0 0 0 1px rgba(255,224,138,.3), 0 0 16px rgba(255,80,90,.8); }
.livechat { border-color: var(--blue); background: linear-gradient(90deg, #5da6ef, #00579f); box-shadow: 0 0 0 1px rgba(104,176,251,.25), 0 0 14px rgba(104,176,251,.5), 0 6px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.livechat::before { border-color: var(--blue); }

/* menu: no visible scrollbar on phones (still scrolls if the screen is very short) */
.drawer .box { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.drawer .box::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* PC: a slimmer bottom menu (user 2026-11-03) - phones keep the Figma size */
@media (min-width: 761px) {
  .bnav { --nav-h: 72px; padding-top: 4px; }
  .bnav a { height: 72px; }
  .bnav a img, .bnav a[data-nav="dz"] img, .bnav a[data-nav="rank"] img, .bnav a[data-nav="wheel"] img { width: 34px; height: 34px; bottom: 26px; }
  .bnav a.on img, .bnav a[data-nav="home"].on img, .bnav a[data-nav="promo"].on img, .bnav a[data-nav="rank"].on img, .bnav a[data-nav="wheel"].on img, .bnav a[data-nav="dz"].on img { bottom: 26px; transform: translateX(-50%) scale(1.2); }
  .bnav a span, .bnav a.on span { top: 50px; font-size: 11.5px; }
  .bnav a + a::before { top: 15px; height: 40px; }
  .bnav .inner { padding-bottom: 4px; }
  .ficons { bottom: calc(72px + 24px); }
  .livechat { bottom: calc(72px + 28px); }
}

/* PC: a shorter header with smaller logos (user 2026-11-03) - phones keep theirs */
@media (min-width: 761px) {
  .hd { height: 72px; }
  .hd .burger { top: 29px; left: 26px; width: 18px; height: 14px; }
  .hd .logos { margin-top: 2px; gap: 10px; }
  .hd .logos .z { height: 46px; }
  .hd .logos .x { font-size: 14px; }
  .hd .logos .w { height: 31px; }
  .btnbar { margin-top: 0; }
  .angpao { top: 120px; }
}

/* the "x" between the logos is a drawn cross, optically centred between the two marks (user 2026-11-03) */
.hd .logos { align-items: center; }
.hd .logos .x { display: flex; align-items: center; justify-content: center; width: calc(12 * var(--U)); height: calc(12 * var(--U)); color: #fff; opacity: .9; font-size: 0; margin-top: calc(1 * var(--U)); }
.hd .logos .x svg { width: 100%; height: 100%; display: block; }
@media (min-width: 761px) { .hd .logos .x { width: 14px; height: 14px; margin-top: 1px; } }

/* PC: touch-sized controls come back down to mouse size (user 2026-11-03: "everything seems too big"); text sizes stay close to the 560px reference */
@media (min-width: 761px) {
  .btnbar { gap: 8px; justify-content: center; }
  .btnbar a { flex: 1 1 0; max-width: 150px; }
  .btnbar span { font-size: 13px; }
  .btnbar .ico { width: 17%; }
  .uidrow input, .uidrow button { height: 38px; min-height: 38px; }
  .uidrow input { font-size: 14px; }
  .uidrow button { font-size: 13px; width: 90px; }
  .qrow .labs { font-size: 12px; }
  .pills { height: 32px; min-height: 32px; }
  .pills button, .pills a { font-size: 12.5px; }
  .tut-head .pills { height: 28px; min-height: 28px; max-width: 250px; }
  .tut-head .pills button { font-size: 11.5px; }
  .stitle { font-size: 17px; }
  .acard span { font-size: 13px; }
  .pcard span { font-size: 13px; }
  .pc .pic h3 { font-size: 20px; }
  .pc .pic h4 { font-size: 12px; }
  .pc .strip p, .pc .strip .tag { font-size: 11.5px; }
  .rr { font-size: 12.5px; min-height: 36px; }
  .wtitle { font-size: 24px; }
  .wcap { font-size: 18px; }
  .uidwarn { font-size: 12px; }
}

/* PC: a narrower menu with smaller cards (user 2026-11-03) */
@media (min-width: 761px) {
  .drawer .box { width: 400px; }
  .drawer .dhead { padding: 16px 20px 6px; }
  .drawer .dhead img { height: 48px; }
  .drawer .x { right: 16px; top: 16px; width: 34px; height: 34px; }
  .drawer .dgrid { gap: 10px; padding: 10px 20px 0; }
  .drawer .dcard { aspect-ratio: 170 / 96; border-radius: 12px; }
  .drawer .dcard img { height: 38px; }
  .drawer .dcard span { font-size: 14px; }
  .drawer .dcard small { font-size: 9.5px; }
  .drawer .dcta { gap: 8px; padding: 12px 20px 0; }
  .drawer .dcta a { height: 38px; min-height: 38px; font-size: 13px; }
  .drawer .dsoc { gap: 8px; padding: 8px 20px 0; }
  .drawer .dsoc a { height: 34px; min-height: 34px; font-size: 12px; }
  .drawer .dsoc img { width: 16px; height: 16px; }
  .drawer .dfoot { padding: 16px 20px 16px; font-size: 10px; }
}
/* hero slider: the picture follows the finger / mouse 1:1 and lets go with proximity snapping (user 2026-11-03) */
.heros { scroll-snap-type: x proximity; }
.heros.dragging { scroll-snap-type: none; }

/* ---------- boot curtain: covers the first paint until the page's pictures are decoded (plugins/preload.client.ts adds html.ready); auto-hides after 2.5 s as a safety net ---------- */
.boot { position: fixed; inset: 0; z-index: 200; background: #010818; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .4s ease, visibility 0s .4s; animation: bootaway 0s 2.5s forwards; }
.boot img { height: 64px; width: auto; filter: drop-shadow(0 0 16px rgba(104,176,251,.5)); animation: bootpulse 1.2s ease-in-out infinite; }
.boot i { width: 120px; height: 3px; border-radius: 3px; background: rgba(104,176,251,.15); overflow: hidden; position: relative; }
.boot i::after { content: ""; position: absolute; left: -40%; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #5da6ef, #fee98c); animation: bootbar 1s ease-in-out infinite; }
html.ready .boot { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes bootaway { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes bootpulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes bootbar { to { left: 100%; } }
/* pictures never pop in: they fade from the panel colour once decoded */
.shell img, .floats img, .drawer img { backface-visibility: hidden; }

/* rankings panel: about 11 rows tall, then scrolls inside with the fade + arrow (user 2026-11-03) */
.rpanel .scrollbox { max-height: calc(360 * var(--U)); overflow-y: auto; padding-bottom: calc(60 * var(--U)); }
.rpanel .fade { display: block; height: calc(90 * var(--U)); }

/* rankings: every name starts at the same x - rows without an avatar keep an empty avatar slot (user 2026-11-03, Figma) */
.rr .nm { display: grid; grid-template-columns: calc(17 * var(--U)) minmax(0, 1fr); gap: calc(3 * var(--U)); align-items: center; }
.rr .nm img { width: calc(17 * var(--U)); height: calc(17 * var(--U)); }
.rr .nm span { grid-column: 2; }

/* ---------- wheel result / notice popup, in the site theme (user 2026-11-03) ---------- */
.wmodal { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 16px; }
.wmodal .card { position: relative; width: min(100%, 340px); padding: 30px 22px 22px; border-radius: 18px; border-color: #68b0fb; box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 0 1px rgba(104,176,251,.25), 0 0 28px rgba(104,176,251,.35); overflow: visible; }
.wmodal .card::before, .wmodal .card::after { opacity: .6; border-radius: inherit; }
.wmodal .x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 32px; height: 32px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(104,176,251,.5); background: rgba(1,8,24,.6); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0; line-height: 0; }
.wmodal .x .xi { width: 14px; height: 14px; display: block; }
.wmodal .ico { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8ec8ff; background: rgba(104,176,251,.12); border: 1px solid rgba(104,176,251,.4); }
.wmodal .ico svg { width: 30px; height: 30px; }
.wmodal .coin { position: relative; width: 96px; height: 96px; margin: -62px auto 6px; }
.wmodal .coin img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(254,233,140,.7)); animation: coinpop .7s cubic-bezier(.2,.9,.3,1.4); }
.wmodal .coin i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(254,233,140,.6); animation: ring 1.6s ease-out infinite; }
.wmodal .coin i.r2 { animation-delay: .5s; border-color: rgba(104,176,251,.6); }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes coinpop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.wmodal h3 { margin: 0; font: 800 17px/1.3 var(--f); color: #fff; }
.wmodal.win h3 { font-size: 15px; font-weight: 700; }
.wmodal .amt { margin: 2px 0 4px; font: 800 46px/1.1 var(--f); letter-spacing: -.01em; }
.wmodal p { margin: 10px 0 0; font: 400 12.5px/1.6 var(--f); color: #cfd9ee; }
.wmodal .go { margin-top: 18px; height: 42px; padding: 0 34px; border-radius: 50px; border: 1px solid rgba(104,176,251,.6); background: linear-gradient(90deg, #5da6ef, #00579f); color: #fff; font: 800 14px/1 var(--f); box-shadow: 0 0 18px rgba(93,166,239,.5); transition: transform .15s, filter .15s; }
.wmodal .go:hover { transform: translateY(-1px); filter: brightness(1.1); }
.wmodal .go:active { transform: scale(.97); }
.wmodal.win .go { background: linear-gradient(180deg, #fee98c, #e9c44a); color: #21150a; border-color: #fff4c4; box-shadow: 0 0 18px rgba(254,233,140,.45); }

/* scroll dock, evened out (user 2026-11-03): every float slides the same 40 px into its edge, so the gift tab does not vanish deeper than the others */
@media (max-width: 760px) {
  .floats.docked .angpao, .floats.docked .ficons { transform: translateX(-40px); }
  .floats.docked .livechat { transform: translateX(40px); }
}

/* rankings: the right-hand column holds "RM 10,888"-style rewards too, so it is wider and never wraps (2026-11-04) */
.rr { grid-template-columns: calc(64 * var(--U)) minmax(0, 1fr) calc(118 * var(--U)) calc(72 * var(--U)); column-gap: calc(8 * var(--U)); }   /* fixed amount + reward columns, both left-aligned (user 2026-11-04) */
.rr .am { text-align: left; }
.rr .ct { white-space: nowrap; text-align: left; margin-left: 0; }
body.t2 .rr .am { color: #cfd9ee; font-weight: 600; }   /* 回馈奖金: the game name in the middle column */

/* rankings: rank numbers in digits (user 2026-11-04), centred under the badges; rank column narrower */
.rr { grid-template-columns: calc(44 * var(--U)) minmax(0, 1fr) calc(118 * var(--U)) calc(72 * var(--U)); }
.rr .rk { justify-content: center; }
.rr .rk .no { font: 700 max(12px, calc(12 * var(--U)))/1 var(--f2); color: #cfd9ee; }

/* ---------- 查询我的奖励 result: a UID header card + one card per event (user 2026-11-04) ---------- */
.qres { padding: 0; background: none; border: 0; }
.qres > .panel.none, .qres .qcards { margin-top: calc(10 * var(--U)); }
.qres .none { padding: calc(14 * var(--U)); }
.quser { display: flex; align-items: center; gap: calc(10 * var(--U)); margin-top: calc(10 * var(--U)); padding: calc(10 * var(--U)) calc(14 * var(--U)); }
.quser img { width: calc(34 * var(--U)); height: calc(34 * var(--U)); object-fit: contain; }
.quser small { display: block; font: 500 max(10px, calc(9 * var(--U)))/1.2 var(--f); color: #9db3d6; letter-spacing: .06em; }
.quser h4 { margin: 2px 0 0; font: 800 max(16px, calc(15 * var(--U)))/1.2 var(--f); }
.quser .qn { margin-left: auto; padding: 4px 10px; border-radius: 50px; font: 700 max(10px, calc(9.5 * var(--U)))/1.2 var(--f); color: #9db3d6; background: rgba(104,176,251,.1); border: 1px solid rgba(104,176,251,.3); white-space: nowrap; }
.quser .qn.ok { color: #68fbbb; border-color: rgba(104,251,187,.4); background: rgba(104,251,187,.1); }
.qcards { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--U)); }
.qcard { padding: calc(10 * var(--U)) calc(12 * var(--U)); animation: cardin .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.qcard .qh { display: flex; align-items: center; gap: calc(6 * var(--U)); margin-bottom: calc(6 * var(--U)); padding-bottom: calc(6 * var(--U)); border-bottom: 1px solid rgba(104,176,251,.15); }
.qcard .qh img { width: calc(22 * var(--U)); height: calc(22 * var(--U)); object-fit: contain; }
.qcard .qh b { font: 800 max(12px, calc(11.5 * var(--U)))/1.2 var(--f); }
.qcard .qtag { margin-left: auto; font: 700 max(10px, calc(9 * var(--U)))/1.2 var(--f); color: #fee98c; white-space: nowrap; }
.qcard .qr { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font: 500 max(11px, calc(10 * var(--U)))/1.4 var(--f); color: #cfd9ee; }
.qcard .qr b { color: #fff; font-weight: 800; white-space: nowrap; }
.qcard .qr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .qcards { grid-template-columns: 1fr; } }

/* 查询我的奖励 v2 (user 2026-11-04): one outer panel holds the UID header and the event cards; no icons; titles on one line */
.qres.panel { background: var(--panel); border: .8px solid var(--panel-border); padding: calc(12 * var(--U)) calc(12 * var(--U)) calc(12 * var(--U)); margin-top: calc(10 * var(--U)); }
.qres .none { padding: calc(10 * var(--U)) 0 0; }
.quser { margin: 0; padding: 0 calc(2 * var(--U)) calc(10 * var(--U)); border-bottom: 1px solid rgba(104,176,251,.18); }
.quser img { display: none; }
.qres .qcards { margin-top: calc(10 * var(--U)); }
.qcard { background: rgba(1,8,24,.45); border: 1px solid rgba(104,176,251,.22); border-radius: calc(10 * var(--U)); }
.qcard::before, .qcard::after { display: none; }
.qcard .qh { align-items: baseline; gap: calc(8 * var(--U)); }
.qcard .qh b { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard .qtag { flex: 0 0 auto; margin-left: 0; }
.qcard .qr { align-items: baseline; }

/* 查询我的奖励: not registered -> message + register button (user 2026-11-04) */
.qres .qreg p { margin: 0 0 calc(10 * var(--U)); color: #cfd9ee; }
.qres .qreg b { color: #fee98c; }
.qres .qbtn { display: inline-flex; align-items: center; justify-content: center; height: calc(36 * var(--U)); min-height: 38px; padding: 0 calc(22 * var(--U)); border-radius: 50px; background: linear-gradient(90deg, #5da6ef, #00579f); border: 1px solid rgba(104,176,251,.6); color: #fff; font: 800 max(13px, calc(12 * var(--U)))/1 var(--f); box-shadow: 0 0 16px rgba(93,166,239,.5); transition: transform .15s, filter .15s; }
.qres .qbtn:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* ---------- 排行榜 新人榜 tab (card 10, Figma 179:26, user 2026-11-04) ---------- */
body.t10 { --rc: #fbda91; --rb: #0b3c67; }
.rtabs button { padding-left: calc(3 * var(--U)); padding-right: calc(3 * var(--U)); }   /* five tabs now share the pill */
.nbhero { position: relative; margin: calc(10 * var(--U)) var(--gx, calc(14 * var(--U))) 0; border: 1px solid #062558; border-radius: calc(15 * var(--U)); overflow: hidden; aspect-ratio: 405 / 128; background: #041328; }
.nbhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.nbhero .txt { position: absolute; left: calc(31 * var(--U)); top: calc(26 * var(--U)); right: 40%; }
.nbhero h3 { margin: 0; font: 700 max(18px, calc(24.5 * var(--U)))/1.25 var(--f); background-image: linear-gradient(90deg, #fdfdfe, #5da6ef); white-space: nowrap; }
.nbhero p { margin: calc(4 * var(--U)) 0 0; font: 500 max(11px, calc(11.4 * var(--U)))/1.4 var(--f); color: #fff; white-space: pre-line; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.nbnote { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--U)); margin: calc(10 * var(--U)) var(--gx, calc(14 * var(--U))) 0 calc(var(--gx, calc(14 * var(--U))) + calc(10 * var(--U))); font: 400 max(10px, calc(10 * var(--U)))/1.3 var(--f); letter-spacing: .06em; color: #fff; }
.nbnote a { flex: 0 0 auto; color: #fee98c; text-decoration: underline; text-underline-offset: 2px; }
.nb7 { display: block; width: calc(100% - 2 * var(--gx, calc(14 * var(--U)))); height: auto; margin: calc(6 * var(--U)) auto 0; }
.ntiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(5 * var(--U)); margin: calc(6 * var(--U)) var(--gx, calc(14 * var(--U))) 0; }
.ntier { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(5 * var(--U)) calc(4 * var(--U)) calc(6 * var(--U)); border-radius: calc(5.5 * var(--U)); border: 1px solid rgba(104,176,251,.45); background: radial-gradient(90% 60% at 50% 0%, rgba(93,166,239,.22), transparent 70%), linear-gradient(180deg, #0a1b3a, #041328); box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.03); overflow: hidden; }
.ntier small { font: 500 max(9px, calc(6.9 * var(--U)))/1.2 var(--f); background-image: linear-gradient(90deg, #fff, #6fb3fb); }
.ntier > b { margin-top: 2px; font: 800 max(12px, calc(12.1 * var(--U)))/1.2 var(--f); white-space: nowrap; }
.ntier img { width: calc(45 * var(--U)); height: auto; margin: calc(3 * var(--U)) 0 calc(2 * var(--U)); filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.ntier span { font: 400 max(10px, calc(9.3 * var(--U)))/1.2 var(--f); color: #fff; white-space: nowrap; }
.ntier span b { font: 800 max(12px, calc(13 * var(--U)))/1.2 var(--f); }
/* newbie rows: rank | name | 注册 | 截止 | 流水 - dates white, amount gold for the top 3 like the other boards */
body.t10 .rr { grid-template-columns: calc(44 * var(--U)) minmax(0, 1fr) calc(40 * var(--U)) calc(40 * var(--U)) calc(74 * var(--U)); column-gap: calc(6 * var(--U)); }
.rr .dt { color: #fdfdfe; font-weight: 800; white-space: nowrap; }
body.t10 .rr .am { white-space: nowrap; }
@media (max-width: 760px) {
  .rtabs button { font-size: max(12px, calc(10.5 * var(--U))); padding: 0 2px; }
  .ntier img { width: calc(40 * var(--U)); }
}
/* newbie hero is a link to the register page; the rules link scrolls to the terms */
.nbhero { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.nbhero:active { transform: scale(.995); }
.nbnote a { cursor: pointer; }
/* terms panel: title line + group gaps for promo-style rules (user 2026-11-04) */
.terms .tt { margin: 0 0 calc(11 * var(--U)); font-weight: 800; font-size: 1.1em; color: #fee98c; }
.terms .tg { height: calc(4 * var(--U)); }
.terms .th { margin-left: 0; }
.terms .tt + .tg, .terms .th + .tg { height: 0; }

/* ---------- 查询我的奖励: progress bar toward the next 门槛 on each event card (user 2026-11-04) ---------- */
.qbar { margin-top: calc(7 * var(--U)); padding-top: calc(6 * var(--U)); border-top: 1px dashed rgba(104,176,251,.2); }
.qbar .ql { display: flex; justify-content: space-between; gap: 8px; font: 600 max(10px, calc(9 * var(--U)))/1.3 var(--f); color: #9db3d6; white-space: nowrap; }
.qbar .ql span:first-child { color: #fff; }
.qbar .qtrack { position: relative; height: calc(7 * var(--U)); min-height: 7px; margin: calc(4 * var(--U)) 0; border-radius: 50px; background: rgba(104,176,251,.14); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(104,176,251,.18); }
.qbar .qtrack i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 50px; background: linear-gradient(90deg, #5da6ef, #fee98c); box-shadow: 0 0 10px rgba(254,233,140,.5); transition: width .9s cubic-bezier(.2,.8,.2,1); animation: qbarin .9s cubic-bezier(.2,.8,.2,1) both; }
.qbar.done .qtrack i { background: linear-gradient(90deg, #68fbbb, #21bb02); box-shadow: 0 0 10px rgba(104,251,187,.5); }
.qbar p { margin: 0; font: 700 max(10px, calc(9.5 * var(--U)))/1.4 var(--f); color: #fee98c; }
.qbar.done p { color: #68fbbb; }
@keyframes qbarin { from { transform: scaleX(0); transform-origin: left; } to { transform: none; } }
.qbar .ql { flex-wrap: wrap; white-space: normal; }
.qbar .ql span:last-child { margin-left: auto; text-align: right; }
/* 新人榜 rows: fixed name + date columns as in Figma 179:26 (name 112→198, dates 198→260→321); the amount takes the rest (user 2026-11-04: gap too big) */
body.t10 .rr { grid-template-columns: calc(44 * var(--U)) calc(92 * var(--U)) calc(46 * var(--U)) calc(46 * var(--U)) minmax(0, 1fr); column-gap: calc(6 * var(--U)); }
body.t10 .rr .am { overflow: visible; }
/* rankings rows: the name column hugs the names (fit-content), the amount column takes the spare width, so no dead gap after the name (user 2026-11-04 'still need adjust') */
.rr { grid-template-columns: calc(44 * var(--U)) fit-content(calc(120 * var(--U))) minmax(0, 1fr) calc(72 * var(--U)); column-gap: calc(10 * var(--U)); }
body.t10 .rr { grid-template-columns: calc(44 * var(--U)) fit-content(calc(120 * var(--U))) calc(46 * var(--U)) calc(46 * var(--U)) minmax(0, 1fr); column-gap: calc(10 * var(--U)); }
.rr .nm { padding-right: calc(4 * var(--U)); }
/* promo popup picture: title + subtitle drawn over it exactly like .pc .pic on the 优惠 page (user 2026-11-04) */
.pmodal .ban { position: relative; overflow: hidden; container-type: inline-size; padding: 0; line-height: 0; }
.pmodal .ban img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; margin: 0; }
.pmodal .ban h3 { position: absolute; left: 6.2cqw; top: 9.3cqw; margin: 0; font: 700 5.57cqw/1.15 var(--f); font-size: max(18px, 5.57cqw); white-space: nowrap; line-height: 1.15; }
.pmodal .ban h4 { position: absolute; left: 6.2cqw; top: 16.7cqw; margin: 0; font: 700 2.95cqw/1.2 var(--f); font-size: max(11px, 2.95cqw); color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.5); line-height: 1.2; }
/* rankings rows, final (user 2026-11-04 'make gap nicely'): columns share the row proportionally - name 1.2 / amount 1.5 / reward 1 - so the gaps are even on every board; amount + reward never shrink below their text */
.rr { grid-template-columns: calc(44 * var(--U)) minmax(0, 1.2fr) minmax(max-content, 1.5fr) minmax(max-content, 1fr); column-gap: calc(8 * var(--U)); }
body.t10 .rr { grid-template-columns: calc(44 * var(--U)) minmax(0, 1.2fr) minmax(max-content, .75fr) minmax(max-content, .75fr) minmax(max-content, 1.3fr); column-gap: calc(8 * var(--U)); }
.rr .nm { padding-right: 0; }
/* rankings rows, space-between (user 2026-11-04 devtools: display flex, justify-content space-between): the list is one grid, every row a subgrid,
   so the free space is shared evenly between the columns AND the columns stay aligned from row to row */
.rpanel .scrollbox { display: grid; grid-template-columns: calc(44 * var(--U)) minmax(0, max-content) max-content max-content; justify-content: space-between; align-content: start; column-gap: calc(8 * var(--U)); }
body.t10 .rpanel .scrollbox { grid-template-columns: calc(44 * var(--U)) minmax(0, max-content) max-content max-content max-content; }
.rpanel .scrollbox > .rr { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: inherit; }
.rpanel .scrollbox > .rempty { grid-column: 1 / -1; }
/* wheel: the slice of the biggest prize is GOLD (user 2026-11-04): an overlay inside the disc, under the labels, filling the wedge exactly between the
   disc's own 0.5deg gold separator lines (lines sit at a-15.25..a-14.75 and a+14.75..a+15.25), shaded light-centre to deep-rim like the blue wedges, no rim */
.wheel .disc .gw { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle closest-side at 50% 50%, #fff4bd 0 26%, #ffdf5c 48%, #f8c52e 72%, #e4a11c 92%, #d08f14 100%);
  -webkit-mask: conic-gradient(from calc(var(--a) - 14.75deg), #000 0 29.5deg, transparent 29.5deg 360deg); mask: conic-gradient(from calc(var(--a) - 14.75deg), #000 0 29.5deg, transparent 29.5deg 360deg);
  animation: goldwedge 1.6s ease-in-out infinite alternate; }
@keyframes goldwedge { from { filter: brightness(1); } to { filter: brightness(1.14) saturate(1.08); } }
@media (prefers-reduced-motion: reduce) { .wheel .disc .gw { animation: none; } }
.wheel .seg { z-index: 1; }
.wheel .seg.g { color: #3a2300; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
/* (wheel pegs + peg-driven pointer flicks removed 2026-11-05 at the user's request; the pointer ticks on a timer again) */
/* wheel page: today's turnover progress under the UID box + the rule line (每日轮盘规则, 2026-11-05) */
.wstat.show { display: block; }
.wstat .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wstat .wprog { margin-top: calc(8 * var(--U)); padding-top: calc(7 * var(--U)); border-top: 1px dashed rgba(104,176,251,.2); }
.wstat .wprog .ql { display: flex; justify-content: space-between; gap: 8px; font: 600 max(10px, calc(9 * var(--U)))/1.3 var(--f); color: #9db3d6; }
.wstat .wprog .ql span:first-child { color: #fff; }
.wstat .wprog .qtrack { position: relative; height: calc(7 * var(--U)); min-height: 7px; margin: calc(4 * var(--U)) 0; border-radius: 50px; background: rgba(104,176,251,.14); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(104,176,251,.18); }
.wstat .wprog .qtrack i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 50px; background: linear-gradient(90deg, #5da6ef, #fee98c); box-shadow: 0 0 10px rgba(254,233,140,.5); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.wstat .wprog.done .qtrack i { background: linear-gradient(90deg, #68fbbb, #21bb02); }
.wstat .wprog p { margin: 0; font: 700 max(10px, calc(9.5 * var(--U)))/1.4 var(--f); color: #fee98c; }
.wstat .wprog.done p { color: #68fbbb; }
.wrule { margin: calc(6 * var(--U)) var(--gx, calc(21 * var(--U))) 0; text-align: center; font: 500 max(10px, calc(8.5 * var(--U)))/1.4 var(--f); color: #9db3d6; }

