/* ==========================================================================
   Z7Game design system — light, game-lobby style
   Display: Lilita One (titles, numbers, buttons) · Body: Outfit
   ========================================================================== */
:root {
  /* core palette */
  --ink: #17123a; --ink2: #4a4570; --mute: #8a86a8; --line: #ebe7f8; --line2: #f3f0fb;
  --bg: #f4f2fb; --card: #ffffff;
  --vio: #6d3cf0; --vio-d: #4b22c9; --vio-l: #f1ecff;
  --gold: #ffc83d; --gold-d: #e08a00; --gold-l: #fff6dc;
  --mint: #16c47f; --mint-d: #0b9259; --mint-l: #e7fbf2;
  --rose: #ff4d6d; --rose-d: #d92c4c; --rose-l: #ffe8ec;
  --sky: #3a7bff; --sky-l: #e8f0ff; --orange: #ff7a1a;
  /* legacy aliases used inline across pages */
  --p: var(--vio); --p2: var(--vio-d); --p3: #a48bff; --p4: #ddd3ff; --pl: var(--vio-l);
  --y: var(--gold); --y2: var(--gold-d); --g: var(--mint-d); --g2: var(--mint); --gl: var(--mint-l);
  --r: var(--rose); --rl: var(--rose-l); --b: var(--sky); --bl: var(--sky-l); --o: var(--orange); --pk: #ec4899;
  --grad: linear-gradient(150deg, #8a5cff 0%, #6d3cf0 50%, #4b22c9 100%);
  --grad-y: linear-gradient(#ffd75e, var(--gold));
  --grad-g: linear-gradient(#2fe09a, var(--mint));
  --disp: 'Lilita One', 'Outfit', system-ui, sans-serif;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rad: 22px; --rad-s: 14px;
  --sh: 0 1px 0 rgba(23, 18, 58, .04), 0 14px 34px -18px rgba(60, 30, 150, .28);
  --sh-l: 0 2px 0 rgba(23, 18, 58, .04), 0 28px 60px -24px rgba(60, 30, 150, .45);
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 88% -12%, #e9e0ff 0%, transparent 60%), radial-gradient(700px 520px at -10% 112%, #fff1d6 0%, transparent 55%); }
a { color: var(--vio); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 20px; }
h4 { font-size: 15px; font-weight: 800; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
::selection { background: #e2d6ff; }

/* utilities */
.muted { color: var(--mute); } .small { font-size: 13px; } .xs { font-size: 11.5px; }
.green { color: var(--mint-d); } .red { color: var(--rose); } .purple { color: var(--vio); } .gold { color: var(--gold-d); }
.bold { font-weight: 800; } .center { text-align: center; } .right { text-align: right; }
.mt0 { margin-top: 0 } .mt1 { margin-top: 8px } .mt2 { margin-top: 16px } .mt3 { margin-top: 24px } .mb0 { margin-bottom: 0 } .mb1 { margin-bottom: 8px } .mb2 { margin-bottom: 16px }
.flex { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 10px; }
.hide { display: none !important; }
.num, .h-num { font-family: var(--disp); font-weight: 400; letter-spacing: .01em; line-height: 1; font-variant-numeric: tabular-nums; }
.eyebrow, .h-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.h-title { font-family: var(--disp); font-weight: 400; font-size: 24px; letter-spacing: .01em; line-height: 1.05; margin: 2px 0 0; color: var(--ink); }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h-link { font-size: 13px; font-weight: 700; color: var(--vio); white-space: nowrap; }
.h-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 16px 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.sidebar .side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--sh); padding: 14px 10px; }
.logo { display: flex; align-items: center; justify-content: center; padding: 4px 8px 12px; border-bottom: 1px solid var(--line2); margin-bottom: 8px; }
.logo img { height: 58px; filter: drop-shadow(0 6px 10px rgba(109, 60, 240, .25)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover img { transform: rotate(-4deg) scale(1.06); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; color: var(--ink2); font-weight: 600; font-size: 14.5px; position: relative; transition: background .15s, color .15s; }
.nav a i { width: 22px; text-align: center; font-size: 16px; color: #aaa4cc; transition: color .15s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.nav a:hover { background: #f8f6ff; color: var(--ink); }
.nav a:hover i { color: var(--vio); transform: scale(1.15); }
.nav a.active { background: var(--vio-l); color: var(--vio-d); font-weight: 700; }
.nav a.active i { color: var(--vio); }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 4px; border-radius: 4px; background: var(--vio); }
.nav .count { margin-left: auto; background: var(--rose); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; padding: 0 6px; box-shadow: 0 2px 0 var(--rose-d); }
.nav .hot { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--rose); padding: 3px 7px; border-radius: 7px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.nav .hot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.help-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--rad); background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh); }
.help-card i { width: 38px; height: 38px; border-radius: 12px; background: var(--vio-l); color: var(--vio); display: grid; place-items: center; font-size: 17px; }

.main { min-width: 0; padding: 14px 24px 48px 14px; }
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; position: sticky; top: 0; z-index: 30; padding: 8px 0; background: rgba(244, 242, 251, .82); backdrop-filter: blur(14px); }
.ticker { flex: 1; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--ink2); white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.ticker > span:first-child { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #fff; background: var(--rose); border-radius: 7px; padding: 3px 7px; }
.ticker .tk-track { display: inline-flex; gap: 40px; animation: marquee 34s linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
.ticker .tk-item b { color: var(--mint-d); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh); display: grid; place-items: center; color: var(--ink2); font-size: 17px; cursor: pointer; transition: transform .15s, color .15s; flex: none; }
.icon-btn:hover { transform: translateY(-2px); color: var(--vio); }
.icon-btn .dot { position: absolute; top: -5px; right: -5px; background: var(--rose); color: #fff; font-size: 10.5px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 7px; display: grid; place-items: center; border: 2px solid #fff; animation: pop .4s; }
.icon-btn.ring i { animation: ring 2.6s infinite; transform-origin: 50% 0; }
.user-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); padding: 5px 12px 5px 5px; cursor: pointer; position: relative; flex: none; }
.user-chip .av { width: 36px; height: 36px; border-radius: 11px; }
.user-chip .bal { font-family: var(--disp); color: var(--mint-d); font-size: 15px; line-height: 1.1; }
.user-chip .nm { font-weight: 700; font-size: 13px; line-height: 1.15; display: flex; align-items: center; gap: 6px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-l); min-width: 240px; padding: 8px; display: none; z-index: 60; animation: dropIn .18s ease; cursor: default; }
.dropdown.open { display: block; }
.dropdown a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; color: var(--ink2); font-weight: 600; }
.dropdown a:hover { background: #f8f6ff; color: var(--ink); }
.notif-list { max-height: 380px; overflow-y: auto; width: 340px; }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 12px; }
.notif.unread { background: var(--vio-l); }
.notif .ni { width: 36px; height: 36px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--vio); display: grid; place-items: center; flex: none; }
.notif b { display: block; font-size: 13.5px; color: var(--ink); } .notif span { font-size: 12.5px; color: var(--mute); }
.tb-spacer { display: none; }
.bottom-nav { display: none; }

/* ---------------------------------------------------------------- surfaces */
.card, .h-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--sh); position: relative; }
.card { padding: 20px 22px; }
.h-panel { overflow: hidden; }
.h-pad { padding: 20px 22px; }
.card.pad-s { padding: 14px 16px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; flex: none; background: var(--vio-l); color: var(--vio); }
.card-h h3 { margin: 0; font-size: 21px; } .card-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--mute); }
.card-h .link { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.card-h .link:hover { text-decoration: underline; }
/* tinted icon tiles (headers, tiles) vs solid icon chips (list rows) */
.ci.bg-g, .ti.bg-g { background: var(--mint-l); color: var(--mint-d); } .ci.bg-o, .ti.bg-o { background: #fff0e3; color: #e2620a; }
.ci.bg-b, .ti.bg-b { background: var(--sky-l); color: var(--sky); } .ci.bg-y, .ti.bg-y { background: var(--gold-l); color: #c77700; }
.ci.bg-pk, .ti.bg-pk { background: #fde8f3; color: #d4307f; } .ci.bg-t, .ti.bg-t { background: #e2f8f6; color: #0f8f86; }
.ci.bg-r, .ti.bg-r { background: var(--rose-l); color: var(--rose-d); } .ci.bg-p, .ti.bg-p { background: var(--vio-l); color: var(--vio); }
.bg-p { background: var(--vio); color: #fff; } .bg-g { background: var(--mint); color: #fff; } .bg-o { background: var(--orange); color: #fff; } .bg-b { background: var(--sky); color: #fff; }
.bg-pk { background: #ec4899; color: #fff; } .bg-y { background: #f5b301; color: #fff; } .bg-t { background: #14b8a6; color: #fff; } .bg-r { background: var(--rose); color: #fff; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; }

/* page header: a quiet hero panel with a soft colour wash */
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--sh); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px 140px at 0% 0%, #ece4ff 0%, transparent 70%), radial-gradient(320px 160px at 100% 0%, #fff3d1 0%, transparent 70%); }
.page-head > * { position: relative; }
.page-head h1 { margin: 0; font-size: 36px; }
.page-head p { margin: 4px 0 0; color: var(--ink2); max-width: 640px; }
.page-head .ph-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--grad); box-shadow: 0 4px 0 var(--vio-d), inset 0 2px 0 rgba(255, 255, 255, .3); flex: none; }

/* ---------------------------------------------------------------- buttons (chunky, pressable) */
.btn, .hb { --face: var(--vio); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px 10px; border-radius: 14px; border: 0;
  font: 400 16px var(--disp); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden; white-space: nowrap; user-select: none; text-decoration: none;
  transition: transform .08s, filter .15s, box-shadow .08s; }
.btn:hover, .hb:hover { filter: brightness(1.06); }
.btn:active, .hb:active { transform: translateY(3px); }
.btn:disabled, .btn.disabled, .hb[disabled] { filter: grayscale(.6); opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary, .hb-vio { background: linear-gradient(#8a5cff, var(--vio)); color: #fff; box-shadow: 0 4px 0 var(--vio-d), inset 0 2px 0 rgba(255, 255, 255, .25); }
.btn-primary:active, .hb-vio:active { box-shadow: 0 1px 0 var(--vio-d); }
.btn-yellow, .hb-gold { background: var(--grad-y); color: #4a2a00; box-shadow: 0 4px 0 var(--gold-d), inset 0 2px 0 rgba(255, 255, 255, .6); }
.btn-yellow:active, .hb-gold:active { box-shadow: 0 1px 0 var(--gold-d); }
.btn-green, .hb-mint { background: var(--grad-g); color: #fff; box-shadow: 0 4px 0 var(--mint-d), inset 0 2px 0 rgba(255, 255, 255, .3); text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.btn-green:active, .hb-mint:active { box-shadow: 0 1px 0 var(--mint-d); }
.btn-red { background: linear-gradient(#ff6f8a, var(--rose)); color: #fff; box-shadow: 0 4px 0 var(--rose-d), inset 0 2px 0 rgba(255, 255, 255, .3); }
.btn-red:active { box-shadow: 0 1px 0 var(--rose-d); }
.btn-ghost { background: #fff; color: var(--vio-d); box-shadow: 0 3px 0 #dcd2ff, inset 0 0 0 2px #e4dbff; }
.btn-ghost:active { box-shadow: 0 1px 0 #dcd2ff, inset 0 0 0 2px #e4dbff; }
.btn-soft, .hb-ghost { background: var(--vio-l); color: var(--vio-d); box-shadow: 0 3px 0 #dcd2ff; }
.btn-soft:active, .hb-ghost:active { box-shadow: 0 1px 0 #dcd2ff; }
.hb-glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38); }
.btn-sm, .hb-sm { padding: 8px 14px 7px; font-size: 14px; border-radius: 11px; }
.btn-xs { padding: 6px 10px 5px; font-size: 12.5px; border-radius: 9px; }
.btn-lg, .hb-lg { padding: 15px 28px 13px; font-size: 20px; border-radius: 17px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn.shine::after, .hb .glint { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shine 3.2s infinite; pointer-events: none; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s linear; pointer-events: none; }

/* ---------------------------------------------------------------- tags */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge-ok { background: var(--mint-l); color: var(--mint-d); } .badge-warn { background: var(--gold-l); color: #b46800; } .badge-bad { background: var(--rose-l); color: var(--rose-d); }
.badge-info { background: var(--sky-l); color: #1f5fd6; } .badge-mute { background: #f1f0f7; color: #77739a; } .badge-p { background: var(--vio-l); color: var(--vio-d); }
.badge-fire { background: var(--rose); color: #fff; box-shadow: 0 2px 0 var(--rose-d); }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 8px 13px; border-radius: 12px; font-weight: 700; font-size: 13.5px; box-shadow: var(--sh); }
.chip-g { color: var(--mint-d); }
.lvl { display: inline-flex; align-items: center; font-family: var(--disp); font-size: 12px; letter-spacing: .03em; background: var(--grad-y); color: #4a2a00; padding: 2px 7px 1px; border-radius: 7px; box-shadow: 0 2px 0 var(--gold-d); }
.h-chip { font-family: var(--disp); font-size: 15px; color: var(--mint-d); background: var(--mint-l); padding: 5px 9px 4px; border-radius: 9px; white-space: nowrap; }
.h-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .94); color: var(--ink); }
.h-pill.hot { background: var(--rose); color: #fff; }

/* ---------------------------------------------------------------- game art tiles (shared) */
.g-art { display: block; }
.h-game { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 11; color: #fff; display: block; box-shadow: var(--sh); isolation: isolate; }
.h-game .g-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transition: transform .5s; }
.h-game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(10, 6, 40, .8)); }
.h-game:hover .g-art { transform: scale(1.08) rotate(-1deg); }
.h-game .info { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.h-game h4 { font-family: var(--disp); font-weight: 400; font-size: 22px; margin: 0; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.h-game .rw { font-size: 12px; font-weight: 800; color: #7dffc4; }
.h-game .left { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .94); color: var(--ink); }
.h-game .left.none { background: rgba(23, 18, 58, .75); color: #fff; }
.h-game .play { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--vio); font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .2s; flex: none; }
.h-game:hover .play { transform: scale(1.12); }

/* ---------------------------------------------------------------- progress */
.progress { height: 12px; background: #efebfb; border-radius: 8px; overflow: hidden; position: relative; box-shadow: inset 0 2px 0 rgba(23, 18, 58, .05); }
.progress .bar { height: 100%; border-radius: 8px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0 8px, transparent 8px 16px), linear-gradient(90deg, #8a5cff, var(--vio)); width: 0; transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.progress.y .bar { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px), linear-gradient(90deg, #ffb703, var(--gold)); }
.progress.g .bar { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--mint), #6ff0bd); }
.progress.lg { height: 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }

/* ---------------------------------------------------------------- lists & tables */
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .15s, background .15s; color: var(--ink); }
a.li:hover { border-color: #d9cfff; background: #fcfbff; }
.li .lic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 17px; flex: none; }
.li .lit { flex: 1; min-width: 0; } .li .lit b { display: block; font-size: 14.5px; } .li .lit span { font-size: 12.5px; color: var(--mute); }
.li .amt { font-family: var(--disp); color: var(--mint-d); white-space: nowrap; font-size: 16px; }
.h-list { display: flex; flex-direction: column; }
.h-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line2); color: var(--ink); }
.h-row:last-child { border-bottom: 0; }
.h-row .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; }
.h-row .tx { flex: 1; min-width: 0; }
.h-row .tx b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-row .tx span { font-size: 12px; color: var(--mute); }
.h-empty { text-align: center; color: var(--mute); padding: 26px 8px; font-size: 14px; }
.table-wrap { overflow-x: auto; border-radius: var(--rad-s); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: #fbfaff; }
.empty { text-align: center; padding: 36px 12px; color: var(--mute); }
.empty i { font-size: 34px; color: #cfc4f7; display: block; margin-bottom: 12px; }
.empty b { color: var(--ink); font-size: 16px; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink2); }
.input, select.input, textarea.input { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid #e3ddf7; background: #fbfaff; font: 500 15px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.input::placeholder { color: #aaa6c4; }
.input:focus { outline: none; border-color: var(--vio); background: #fff; box-shadow: 0 0 0 4px rgba(109, 60, 240, .14); }
textarea.input { min-height: 100px; resize: vertical; }
.input-group { display: flex; gap: 8px; } .input-group .input { flex: 1; min-width: 0; }
.input-icon { position: relative; } .input-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #aaa4cc; }
.input-icon .input { padding-left: 42px; }
.file-drop { display: block; border: 2px dashed #d9cfff; border-radius: 16px; padding: 22px; text-align: center; cursor: pointer; background: #fcfbff; transition: .15s; position: relative; }
.file-drop:hover, .file-drop.drag { border-color: var(--vio); background: var(--vio-l); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop > i { font-size: 26px; color: var(--vio); width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: inline-grid; place-items: center; margin-bottom: 8px; }
.file-drop img.preview { max-height: 160px; border-radius: 12px; margin: 10px auto 0; display: block; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--vio); flex: none; }
.alert { padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; border: 1px solid transparent; }
.alert > i { margin-top: 2px; }
.alert-info { background: var(--sky-l); color: #1d4fb8; border-color: #d4e2ff; } .alert-warn { background: var(--gold-l); color: #8a5300; border-color: #ffe7a6; }
.alert-ok { background: var(--mint-l); color: #0a7a4b; border-color: #c9f3e0; } .alert-err { background: var(--rose-l); color: #b0203e; border-color: #ffd0d9; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; background: #ebe7f8; padding: 5px; border-radius: 16px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button, .tabs label { flex: 1; text-align: center; padding: 10px 14px; border-radius: 12px; font: 700 14px var(--font); color: var(--ink2); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: .15s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tabs a:hover { color: var(--ink); }
.tabs .active { background: #fff; color: var(--vio-d); box-shadow: 0 2px 0 #dcd2ff, 0 6px 14px -8px rgba(60, 30, 150, .4); }

/* ---------------------------------------------------------------- modals */
.modal-bg { position: fixed; inset: 0; background: rgba(23, 18, 58, .5); backdrop-filter: blur(6px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; animation: fadeIn .18s; }
.modal { background: #fff; border-radius: 26px; width: 100%; max-width: 440px; padding: 26px; position: relative; animation: modalIn .38s cubic-bezier(.3, 1.4, .5, 1); max-height: 92vh; overflow-y: auto; box-shadow: var(--sh-l); }
.modal h3 { font-size: 26px; margin-right: 40px; }
.modal .x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink2); cursor: pointer; font-size: 15px; z-index: 2; }
.modal .x:hover { color: var(--vio); }
/* victory screen */
.reward-modal { text-align: center; overflow: visible; color: #fff; padding: 30px 26px 26px;
  background: radial-gradient(300px 200px at 50% 0%, rgba(255, 200, 61, .35), transparent 70%), linear-gradient(170deg, #7b4dff 0%, #4b22c9 60%, #2c1280 100%); box-shadow: 0 30px 80px -20px rgba(43, 18, 128, .7), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.reward-modal .rm-img { width: 132px; height: 132px; object-fit: cover; margin: -96px auto 10px; display: block; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 6px rgba(255, 200, 61, .7), 0 18px 30px rgba(0, 0, 0, .3); animation: hBob 2.4s ease-in-out infinite; background: #fff; }
.reward-modal .rm-title { font-family: var(--disp); font-weight: 400; font-size: 30px; color: #fff3b8; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); margin-bottom: 4px; }
.reward-modal .rm-amt { font-family: var(--disp); font-size: 60px; line-height: 1; color: #7dffc4; margin: 6px 0 10px; text-shadow: 0 4px 0 rgba(0, 0, 0, .22); }
.reward-modal .rm-amt small { font-size: 22px !important; color: #fff; opacity: .85; }
.reward-modal .rm-sub { color: rgba(255, 255, 255, .85) !important; margin-bottom: 18px; }
.reward-modal .rays { position: absolute; left: 50%; top: -60px; width: 420px; height: 420px; margin-left: -210px; background: repeating-conic-gradient(rgba(255, 220, 120, .16) 0 9deg, transparent 9deg 18deg); border-radius: 50%; animation: spin 18s linear infinite; z-index: -1; pointer-events: none;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.reward-modal .rm-btn { width: 100%; }

/* toasts */
.toasts { position: fixed; top: 84px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 370px; padding: 11px 16px 11px 11px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-l); font-weight: 600; font-size: 14px; animation: toastIn .45s cubic-bezier(.3, 1.4, .5, 1); }
.toast.out { animation: toastOut .3s forwards; }
.toast i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex: none; background: var(--vio-l); color: var(--vio); }
.toast.ok i { background: var(--mint-l); color: var(--mint-d); } .toast.err i { background: var(--rose-l); color: var(--rose-d); }
.toast.coin { background: linear-gradient(#2fe09a, var(--mint)); color: #fff; border: 0; box-shadow: 0 4px 0 var(--mint-d), var(--sh-l); }
.toast.coin i { background: rgba(255, 255, 255, .22); color: #fff; }
.float-txt { position: fixed; z-index: 300; pointer-events: none; font-family: var(--disp); font-size: 26px; color: var(--mint); -webkit-text-stroke: 1px #0b6b42; text-shadow: 0 3px 0 #0b6b42; animation: floatUp 1.4s ease-out forwards; white-space: nowrap; }
.fly-coin { position: fixed; z-index: 300; width: 28px; height: 28px; pointer-events: none; }
/* live payouts: slim pill that drops in under the top bar */
.live-pop { position: fixed; top: 74px; left: calc(50% + 124px); z-index: 90; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border: 1px solid var(--line); padding: 5px 6px 5px 5px; border-radius: 30px; box-shadow: var(--sh-l); font-size: 13px; white-space: nowrap; max-width: min(440px, calc(100vw - 32px));
  transform: translate(-50%, -30px); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.live-pop.show { transform: translate(-50%, 0); opacity: 1; }
.live-pop img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.live-pop .lp-txt { overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.live-pop .lp-txt b { color: var(--ink); }
.live-pop .lp-amt { font-family: var(--disp); font-size: 14px; color: #fff; background: var(--mint); border-radius: 20px; padding: 3px 9px 2px; flex: none; }

/* ---------------------------------------------------------------- countdown */
.cd, .h-cd { display: flex; gap: 8px; }
.cd > div, .h-cd > div { background: #fff; color: var(--ink); border-radius: 12px; padding: 7px 0 6px; width: 62px; text-align: center; box-shadow: 0 3px 0 rgba(23, 18, 58, .12); border: 1px solid var(--line); }
.cd b, .h-cd b { display: block; font-family: var(--disp); font-weight: 400; font-size: 26px; line-height: 1; }
.cd span, .h-cd span { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }

/* ---------------------------------------------------------------- leaderboards */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.pod { text-align: center; border-radius: 20px 20px 14px 14px; padding: 18px 10px 14px; position: relative; background: #fbfaff; border: 1px solid var(--line); }
.pod img { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px #cbd2e2; }
.pod.p1 { padding-top: 30px; background: linear-gradient(180deg, #fff6dc, #fff); border-color: #ffe6a3; }
.pod.p1 img { width: 86px; height: 86px; box-shadow: 0 0 0 4px var(--gold), 0 10px 24px rgba(224, 138, 0, .3); }
.pod.p3 img { box-shadow: 0 0 0 3px #f3a46b; }
.pod .crown { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 30px; animation: hBob 2.4s ease-in-out infinite; }
.pod b { display: block; margin-top: 8px; font-size: 14px; }
.pod .amt { font-family: var(--disp); color: var(--mint-d); font-size: 18px; }
.pod .place { font-family: var(--disp); font-size: 28px; color: #c9c3e3; line-height: 1; margin-top: 4px; }
.pod.p1 .place { color: var(--gold-d); }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); }
.rank-row + .rank-row { border-top: 1px solid var(--line2); border-radius: 0; }
.rank-row.me, .h-row.me { background: var(--vio-l); border: 0 !important; border-radius: 14px !important; position: sticky; bottom: 8px; box-shadow: 0 0 0 2px #d9cfff; margin-top: 6px; }
.rank-row .rk, .h-pos { min-width: 30px; font-family: var(--disp); font-size: 18px; text-align: center; color: var(--mute); flex: none; }
.rank-row img { width: 38px; height: 38px; border-radius: 50%; }
.rank-row .amt { margin-left: auto; font-family: var(--disp); color: var(--mint-d); white-space: nowrap; font-size: 16px; }
.h-pos.p1 { color: #e0a100; } .h-pos.p2 { color: #8f9bb3; } .h-pos.p3 { color: #d9783d; }
.h-row img { width: 36px; height: 36px; border-radius: 50%; }

/* ---------------------------------------------------------------- game screen */
.game-stage { position: relative; background: #0f0a24; border-radius: 26px; overflow: hidden; aspect-ratio: 3/4; max-height: 80vh; margin: 0 auto; box-shadow: 0 30px 60px -24px rgba(23, 18, 58, .6), 0 0 0 6px #fff, 0 0 0 7px var(--line); touch-action: none; user-select: none; width: 100%; }
.game-stage canvas { width: 100%; height: 100%; display: block; }
.game-hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 12px; color: #fff; pointer-events: none; z-index: 3; }
.game-hud .hud-b { background: rgba(10, 6, 40, .42); backdrop-filter: blur(8px); padding: 7px 12px 6px; border-radius: 12px; font-family: var(--disp); font-size: 17px; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.game-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 24px; isolation: isolate; }
.game-overlay .ov-art { position: absolute; inset: 0; z-index: -2; }
.game-overlay .ov-art .g-art { width: 100%; height: 100%; filter: saturate(1.1); }
.game-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 40%, rgba(23, 12, 70, .35), rgba(10, 6, 40, .88)); }
.game-overlay h2 { font-size: 46px; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); margin: 6px 0 8px; }
.game-overlay .ov-help { max-width: 300px; opacity: .92; font-size: 14.5px; }
.game-overlay .ov-stats { display: flex; gap: 8px; margin: 14px 0 20px; }
.game-overlay .ov-stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); min-width: 86px; }
.game-overlay .ov-stats small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; opacity: .75; text-transform: uppercase; }
.game-overlay .ov-stats b { font-family: var(--disp); font-weight: 400; font-size: 20px; }
.game-overlay .cdn { font-family: var(--disp); font-size: 130px; line-height: 1; color: #fff3b8; text-shadow: 0 8px 0 rgba(0, 0, 0, .3); animation: cdPop .6s ease-out; }
.game-overlay .res-amt { font-family: var(--disp); font-size: 58px; line-height: 1; color: #7dffc4; text-shadow: 0 5px 0 rgba(0, 0, 0, .3); margin: 6px 0; }
.game-overlay .res-amt small { font-size: 20px; color: #fff; opacity: .85; }
.game-overlay .newbest { font-family: var(--disp); font-size: 15px; letter-spacing: .06em; background: var(--grad-y); color: #4a2a00; padding: 6px 12px 5px; border-radius: 10px; box-shadow: 0 3px 0 var(--gold-d); animation: hBob 1.6s infinite; }
.game-overlay .res-av { width: 104px; height: 104px; border-radius: 50%; border: 5px solid #fff; margin: 12px 0 6px; animation: hBob 2.4s ease-in-out infinite; }
@keyframes cdPop { 0% { transform: scale(1.8); opacity: 0 } 60% { transform: scale(.92); opacity: 1 } 100% { transform: scale(1) } }

/* ---------------------------------------------------------------- spin & scratch */
.wheel-wrap { position: relative; width: min(340px, 84vw); aspect-ratio: 1; margin: 34px auto 30px; }
.wheel-wrap canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 9px #fff, 0 0 0 15px var(--vio), 0 0 0 17px var(--vio-d), 0 24px 44px -10px rgba(75, 34, 201, .55); transition: transform 5.5s cubic-bezier(.12, .8, .1, 1); }
.wheel-wrap .pin { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 46px; color: var(--rose); z-index: 3; filter: drop-shadow(0 4px 0 var(--rose-d)); }
.wheel-wrap .hub { position: absolute; inset: 38%; border-radius: 50%; background: var(--grad-y); display: grid; place-items: center; font-family: var(--disp); font-size: 20px; color: #4a2a00; box-shadow: 0 5px 0 var(--gold-d), 0 10px 20px rgba(0, 0, 0, .25); z-index: 2; border: 5px solid #fff; cursor: pointer; }
.wheel-lights { position: absolute; inset: -16px; border-radius: 50%; pointer-events: none; }
.wheel-lights i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff3b8; box-shadow: 0 0 10px var(--gold); animation: blink 1s infinite; }
.scratch-wrap { position: relative; width: min(340px, 84vw); aspect-ratio: 16/10; margin: 12px auto; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), var(--sh-l); }
.scratch-wrap .prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 30%, #fffbe8, #ffe9a8); }
.scratch-wrap .prize b { font-family: var(--disp); font-weight: 400; font-size: 34px; color: var(--mint-d); }
.scratch-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }

/* ---------------------------------------------------------------- daily streak */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { border-radius: 18px; padding: 12px 4px 10px; text-align: center; background: #fff; border: 2px solid var(--line); font-size: 12px; font-weight: 800; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; position: relative; transition: transform .2s; }
.day .di { font-size: 24px; display: block; margin: 6px 0; color: #c9c2e8; text-transform: none; }
.day b { display: block; font-family: var(--disp); font-weight: 400; font-size: 15px; color: var(--ink); letter-spacing: .01em; }
.day.done { background: var(--grad-g); border-color: transparent; color: rgba(255, 255, 255, .85); box-shadow: 0 4px 0 var(--mint-d); }
.day.done .di, .day.done b { color: #fff; }
.day.today { background: var(--grad-y); border-color: transparent; color: #7a4800; box-shadow: 0 4px 0 var(--gold-d); animation: hBob 1.8s ease-in-out infinite; }
.day.today .di, .day.today b { color: #4a2a00; }
.day.big:not(.done):not(.today) { border-color: #ffe0a0; background: var(--gold-l); }
.day.big:not(.done):not(.today) .di { color: var(--gold-d); }

/* ---------------------------------------------------------------- mining gauge (shared) */
.h-gauge { position: relative; width: 210px; height: 210px; margin: 2px auto 10px; }
.h-gauge svg { width: 100%; height: 100%; }
.h-gauge .spin { transform-origin: 100px 100px; animation: spin 12s linear infinite; }
.h-gauge.full .spin { animation: none; opacity: .3; }
.h-gauge .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.h-gauge .center .h-num { font-size: 30px; color: var(--ink); }
.h-gauge .center small { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--mute); }
.h-gauge .center .pw { margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--vio); background: var(--vio-l); padding: 4px 9px; border-radius: 8px; }
.h-gauge.lg { width: 270px; height: 270px; } .h-gauge.lg .center .h-num { font-size: 31px; }

/* ---------------------------------------------------------------- captcha */
.captcha { border: 1.5px solid #e3ddf7; border-radius: 16px; padding: 12px; background: #fbfaff; user-select: none; }
.captcha .cap-img { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300/160; margin: 0 auto; border-radius: 12px; overflow: hidden; background: var(--vio-l); }
.captcha .cap-img img.cbg { width: 100%; height: 100%; display: block; }
.captcha .cap-img img.cpiece { position: absolute; left: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.captcha .cap-track { position: relative; height: 46px; border-radius: 14px; background: #ebe7f8; margin: 10px auto 0; width: 300px; max-width: 100%; overflow: hidden; box-shadow: inset 0 2px 0 rgba(23, 18, 58, .05); }
.captcha .cap-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ddd3ff, #b8a2ff); border-radius: 14px; }
.captcha .cap-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--vio-d); pointer-events: none; }
.captcha .cap-knob { position: absolute; top: 3px; left: 3px; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(#8a5cff, var(--vio)); color: #fff; display: grid; place-items: center; cursor: grab; box-shadow: 0 3px 0 var(--vio-d); touch-action: none; z-index: 2; }
.captcha.ok .cap-knob { background: var(--grad-g); box-shadow: 0 3px 0 var(--mint-d); } .captcha.ok .cap-fill { background: linear-gradient(90deg, #c9f3e0, #6ff0bd); }
.captcha.fail { animation: shake .4s; }
.cap-refresh { border: 0; background: none; color: var(--vio); cursor: pointer; font-weight: 700; font-size: 12.5px; }

/* ---------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: radial-gradient(500px 300px at 100% 0%, rgba(255, 200, 61, .35), transparent 60%), linear-gradient(160deg, #7b4dff 0%, #4b22c9 55%, #24106b 100%); }
.auth-art .logo-big { width: 220px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.auth-art h1 { font-size: 52px; line-height: .95; margin: 0; text-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.auth-art h1 em { font-style: normal; color: #ffd75e; }
.auth-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-4deg); margin: 0 -10px; }
.auth-collage .h-game { aspect-ratio: 4 / 3; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
.auth-collage .h-game:nth-child(2) { transform: translateY(18px); } .auth-collage .h-game:nth-child(5) { transform: translateY(18px); }
.auth-stats { display: flex; gap: 12px; }
.auth-stats div { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); border-radius: 16px; padding: 12px 16px; flex: 1; }
.auth-stats b { font-family: var(--disp); font-weight: 400; font-size: 28px; display: block; line-height: 1; }
.auth-stats span { font-size: 12px; opacity: .8; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-form .card { width: 100%; max-width: 440px; padding: 30px; }
.auth-form h2 { font-size: 32px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.perk { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.perk i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-y); color: #4a2a00; box-shadow: 0 3px 0 var(--gold-d); flex: none; }

/* ---------------------------------------------------------------- referral & events */
.ref-link, .h-share { display: flex; gap: 8px; }
.ref-link { background: #fbfaff; border: 1px dashed #d6ccff; padding: 6px; border-radius: 14px; }
.ref-link input { flex: 1; border: 0; background: transparent; font: 600 14px var(--font); color: var(--ink2); padding: 0 8px; min-width: 0; }
.ref-link input:focus { outline: none; }
.share-btns, .h-soc { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btns a, .h-soc a { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 18px; transition: transform .15s; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.share-btns a:hover, .h-soc a:hover { transform: translateY(-2px); }
.tier { border-radius: 16px; padding: 14px 10px; text-align: center; border: 2px solid var(--line); background: #fff; position: relative; }
.tier b { display: block; font-family: var(--disp); font-weight: 400; font-size: 28px; color: var(--ink); line-height: 1.1; }
.tier span { font-size: 12px; color: var(--mute); font-weight: 700; }
.tier.on { background: var(--grad-g); border-color: transparent; box-shadow: 0 4px 0 var(--mint-d); } .tier.on b, .tier.on span, .tier.on div { color: #fff !important; }
.tier.next { background: var(--gold-l); border-color: var(--gold); animation: glowY 1.8s infinite; }
.milestones { display: flex; align-items: flex-start; position: relative; padding-top: 6px; }
.milestones::before { content: ""; position: absolute; left: 24px; right: 24px; top: 32px; height: 6px; border-radius: 3px; background: #efebfb; }
.milestones .ms-fill { position: absolute; left: 24px; top: 32px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #ffe08a); transition: width 1.4s; }
.ms { flex: 1; text-align: center; position: relative; z-index: 1; min-width: 0; }
.ms .ms-ic { width: 54px; height: 54px; border-radius: 17px; margin: 0 auto 8px; display: grid; place-items: center; font-size: 20px; background: #fff; border: 2px solid var(--line); color: #c0b9df; }
.ms.reached .ms-ic { background: var(--grad-y); border-color: transparent; color: #4a2a00; box-shadow: 0 4px 0 var(--gold-d); animation: hBob 1.8s infinite; }
.ms.claimed .ms-ic { background: var(--grad-g); border-color: transparent; color: #fff; box-shadow: 0 4px 0 var(--mint-d); }
.ms b { display: block; font-size: 13px; } .ms span { font-family: var(--disp); font-size: 15px; color: var(--mint-d); }

/* coin picker */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.coin-opt { border: 2px solid var(--line); border-radius: 15px; padding: 10px; display: flex; align-items: center; gap: 9px; cursor: pointer; background: #fff; transition: .15s; font-weight: 800; font-size: 14px; line-height: 1.1; }
.coin-opt img { width: 34px; height: 34px; border-radius: 50%; }
.coin-opt small { display: block; font-size: 11px; color: var(--mute); font-weight: 700; }
.coin-opt:hover { border-color: #cdbfff; }
.coin-opt.active { border-color: var(--vio); background: var(--vio-l); box-shadow: 0 3px 0 #cdbfff; }
.qr { background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--line); display: inline-block; box-shadow: var(--sh); }

/* tickets */
.msgs { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 12px 15px; border-radius: 18px; background: #f6f3ff; border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border: 0; border-bottom-right-radius: 6px; }
.msg.admin { border-bottom-left-radius: 6px; }
.msg .meta { font-size: 11.5px; opacity: .7; margin-top: 4px; }

/* legacy blocks kept for admin & misc pages */
.stat-pill { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sh); text-align: center; }
.stat-pill b { display: block; font-family: var(--disp); font-weight: 400; font-size: 28px; color: var(--ink); }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--rad); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); color: var(--ink); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile .ti { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; flex: none; }
.bal-card .bal { font-family: var(--disp); font-size: 40px; color: var(--mint-d); line-height: 1.05; }
.bal-card .bal small { font-size: 18px; }
.bal-card.dark { background: radial-gradient(260px 160px at 100% 0%, rgba(255, 200, 61, .32), transparent 60%), linear-gradient(150deg, #7b4dff, #4b22c9); color: #fff; border: 0; }
.bal-card.dark .bal { color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.banner { display: block; border-radius: var(--rad); overflow: hidden; }

/* ---------------------------------------------------------------- motion */
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes shine { 0% { left: -60% } 55%, 100% { left: 130% } }
@keyframes ripple { to { transform: scale(4); opacity: 0 } }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0) } 75% { transform: rotate(18deg) } 80% { transform: rotate(-16deg) } 85% { transform: rotate(12deg) } 90% { transform: rotate(-8deg) } 95% { transform: rotate(4deg) } }
@keyframes pop { 0% { transform: scale(0) } 70% { transform: scale(1.3) } 100% { transform: scale(1) } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes hBob { 50% { transform: translateY(-4px) } }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0) } 84% { transform: rotate(-10deg) scale(1.08) } 88% { transform: rotate(10deg) scale(1.08) } 92% { transform: rotate(-6deg) } 96% { transform: rotate(4deg) } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalIn { 0% { opacity: 0; transform: scale(.85) translateY(24px) } 100% { opacity: 1; transform: none } }
@keyframes toastIn { from { opacity: 0; transform: translateX(110%) } to { opacity: 1; transform: none } }
@keyframes toastOut { to { opacity: 0; transform: translateX(110%) } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(.6) } 15% { opacity: 1; transform: translateY(-10px) scale(1.2) } 100% { opacity: 0; transform: translateY(-90px) scale(1) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes blink { 50% { opacity: .25 } }
@keyframes glowY { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 61, .5) } 50% { box-shadow: 0 0 0 7px rgba(255, 200, 61, 0) } }
@keyframes shake { 0%, 100% { transform: translateX(0) } 20%, 60% { transform: translateX(-8px) } 40%, 80% { transform: translateX(8px) } }
.pulse { animation: hBob 2s infinite; } .float { animation: floaty 3s ease-in-out infinite; } .wig { animation: wiggle 2.5s infinite; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 8px 16px 110px; }
  .topbar .ticker { display: none; }
  .topbar .tb-logo { display: block !important; }
  .tb-spacer { display: block; }
  .g-main, .g3 { grid-template-columns: minmax(0, 1fr); }
  /* floating pill tab bar */
  .bottom-nav { display: flex; align-items: center; position: fixed; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; padding: 6px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -14px rgba(43, 18, 128, .45); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 52px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--mute); position: relative; transition: color .15s, background .15s; }
  .bottom-nav a i { font-size: 18px; }
  .bottom-nav a.active { color: var(--vio-d); background: var(--vio-l); }
  .bottom-nav a.active i { animation: pop .35s; }
  .bottom-nav a.center { flex: 0 0 64px; height: 52px; background: none; color: var(--ink); font-size: 0; }
  .bottom-nav a.center i { width: 58px; height: 58px; margin-top: -22px; border-radius: 50%; background: var(--grad-y); color: #4a2a00; display: grid; place-items: center; font-size: 22px;
    box-shadow: 0 4px 0 var(--gold-d), 0 12px 22px rgba(224, 138, 0, .4); border: 4px solid #fff; }
  .bottom-nav a.center.active i { animation: pop .35s; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .live-pop { top: 66px; left: 50%; }
  .page-head { padding: 18px; } .page-head h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .g2, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g4.keep2, .g2.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 16px; }
  .user-chip .nm-wrap { display: none; }
  .days { gap: 6px; } .day { padding: 9px 2px 8px; font-size: 9.5px; border-radius: 14px; } .day .di { font-size: 18px; } .day b { font-size: 12.5px; }
  .toasts { left: 12px; right: 12px; } .toast { max-width: none; min-width: 0; }
  .notif-list { width: calc(100vw - 32px); }
  .dropdown { position: fixed; left: 16px; right: 16px; top: 64px; }
  .cd > div, .h-cd > div { width: 52px; } .cd b, .h-cd b { font-size: 21px; }
  .podium { gap: 6px; } .pod img { width: 50px; height: 50px; } .pod.p1 img { width: 64px; height: 64px; }
  .msg { max-width: 92%; }
  .ms .ms-ic { width: 42px; height: 42px; font-size: 16px; border-radius: 13px; } .milestones::before, .milestones .ms-fill { top: 27px; } .ms b { font-size: 11.5px; } .ms span { font-size: 13px; }
  .page-head .ph-icon { width: 50px; height: 50px; font-size: 22px; }
  .game-overlay h2 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* summary stat cards: big display numbers */
.card.pad-s.center b { font-family: var(--disp); font-weight: 400; display: block; line-height: 1.1; margin-top: 4px; }
.card.pad-s.center .xs { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.h-event .h-cd { margin-top: 16px; }
/* phones: compact page headers (no subtitle), one-line card subtitles */
@media (max-width: 640px) {
  .page-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 14px 16px; }
  .page-head .ph-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 20px; }
  .page-head h1 { font-size: 27px; }
  .page-head p { display: none; }
  .page-head > :nth-child(n+3) { grid-column: 1 / -1; justify-self: start; }
  .card-h { margin-bottom: 12px; }
  .card-h > div:last-child { min-width: 0; }
  .card-h p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-h h3 { font-size: 19px; }
}

/* ---------------------------------------------------------------- daily streak (today tile + road) */
.sk { padding: 20px 22px 22px; }
.sk-top { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.sk-today { position: relative; aspect-ratio: 1; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #4a2a00; overflow: hidden; isolation: isolate;
  background: var(--grad-y); box-shadow: 0 5px 0 var(--gold-d), inset 0 2px 0 rgba(255, 255, 255, .6); }
.sk-today::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: repeating-conic-gradient(rgba(255, 255, 255, .28) 0 10deg, transparent 10deg 20deg); animation: spin 16s linear infinite; }
.sk-today .sk-day { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.sk-today .sk-ico { font-size: 38px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); animation: hBob 2s ease-in-out infinite; }
.sk-today .h-num { font-size: 26px; }
.sk-today.claimed { background: var(--grad-g); color: #fff; box-shadow: 0 5px 0 var(--mint-d), inset 0 2px 0 rgba(255, 255, 255, .3); }
.sk-today.claimed .sk-ico { animation: none; }
.sk-info .sk-streak { font-family: var(--disp); font-size: 30px; line-height: 1.05; margin: 2px 0 4px; }
.sk-info .sk-streak i { color: var(--orange); }
.sk-info .sk-next { font-size: 13.5px; color: var(--ink2); margin-bottom: 14px; }
.sk-info .sk-next b { color: var(--mint-d); }
.sk-road { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 22px; padding-top: 2px; }
.sk-road .sk-line, .sk-road .sk-fill { position: absolute; top: 17px; left: calc(100% / 14); height: 5px; border-radius: 3px; }
.sk-road .sk-line { right: calc(100% / 14); background: #efebfb; }
.sk-road .sk-fill { background: linear-gradient(90deg, var(--mint), #6ff0bd); }
.sk-n { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sk-n .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-family: var(--disp); font-size: 15px; color: #b3add3; }
.sk-n small { font-size: 11.5px; font-weight: 800; color: var(--mute); }
.sk-n.done .dot { background: var(--mint); border-color: var(--mint); color: #fff; font-size: 13px; }
.sk-n.done small { color: var(--mint-d); }
.sk-n.today .dot { border: 3px solid var(--gold); color: #c77700; box-shadow: 0 0 0 5px rgba(255, 200, 61, .25); }
.sk-n.today small { color: #c77700; }
.sk-n.big .dot { width: 40px; height: 40px; margin-top: -2px; background: var(--gold-l); border-color: #ffd98a; color: var(--gold-d); font-size: 16px; }
.sk-n.big.done .dot { background: var(--mint); border-color: var(--mint); color: #fff; }
@media (max-width: 640px) {
  .sk { padding: 16px; }
  .sk-top { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .sk-today { border-radius: 20px; } .sk-today .sk-ico { font-size: 30px; } .sk-today .h-num { font-size: 21px; }
  .sk-info .sk-streak { font-size: 25px; } .sk-info .sk-next { font-size: 12.5px; margin-bottom: 10px; }
  .sk-n .dot { width: 30px; height: 30px; font-size: 13px; } .sk-n.big .dot { width: 34px; height: 34px; }
  .sk-road .sk-line, .sk-road .sk-fill { top: 14px; }
  .sk-n small { font-size: 10px; }
}
/* sticky header spans the full content width so nothing scrolls visibly beside it */
.topbar { margin: -14px -24px 18px -14px; padding: 14px 24px 10px 14px; background: rgba(244, 242, 251, .9); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
@media (max-width: 1000px) { .topbar { margin: -8px -16px 14px; padding: 10px 16px; } }
/* brand wordmark in the sidebar */
.logo img { height: 34px; width: auto; filter: none; }
.auth-art .logo-big { width: 112px; border-radius: 26px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }

@media (max-width: 640px) { .toasts { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); left: 14px; right: 14px; flex-direction: column-reverse; } }

.g-icon { width: 100%; height: 100%; display: block; }

/* hide browser scrollbars everywhere (scrolling still works) */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* game names always stay on one line */
.h-game h4, .gl-card h3, .fx-info h2, .ar-card .gname, .gl-body h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .gl-card h3 { font-size: 18px; } .h-game h4 { font-size: 18px; } }
.reward-modal .rm-badge { width: 120px; height: 130px; margin: -104px auto 6px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); animation: hBob 2.4s ease-in-out infinite; }
.reward-modal .rm-badge svg { width: 100%; height: 100%; display: block; }

.game-hud .hud-l { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.game-hud .hud-usdt { color: #7dffc4; background: rgba(10, 60, 40, .45); }
.game-hud .hud-usdt small { font-size: 11px; opacity: .8; }

/* ---------------------------------------------------------------- auth v2 */
.auth { grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-art { padding: 36px 48px 44px; justify-content: space-between; }
.aa-brand img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
.aa-stage { position: relative; height: 300px; margin: 10px 0; }
.aa-card { position: absolute; left: 50%; top: 50%; width: 330px; aspect-ratio: 16 / 10; margin: -103px 0 0 -165px; border-radius: 24px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px rgba(10, 4, 40, .5); transform: rotate(-4deg); }
.aa-card .g-art { width: 100%; height: 100%; }
.aa-ic { position: absolute; width: 74px; height: 74px; z-index: 2; filter: drop-shadow(0 14px 18px rgba(10, 4, 40, .45)); animation: floaty 4s ease-in-out infinite; }
.aa-ic0 { left: 4%; top: 2%; transform: rotate(-12deg); } .aa-ic1 { right: 6%; top: 0; animation-delay: .8s; transform: rotate(10deg); }
.aa-ic2 { left: 0; bottom: 4%; animation-delay: 1.6s; transform: rotate(8deg); } .aa-ic3 { right: 2%; bottom: 0; animation-delay: 2.2s; transform: rotate(-8deg); }
.aa-ic4 { left: 44%; top: -6%; width: 58px; height: 58px; animation-delay: 1.2s; }
.auth-art h1 { font-size: 50px; }
.aa-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.aa-perks span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 13.5px; }
.aa-perks i { color: #ffd75e; }
.auth-form .card { max-width: 430px; padding: 26px 28px 28px; }
.auth-brand { display: none; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.auth-brand img { height: 40px; border-radius: 12px; } .auth-brand .wm { height: 24px; border-radius: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #ebe7f8; padding: 5px; border-radius: 16px; margin-bottom: 20px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 12px; font-family: var(--disp); font-size: 16px; letter-spacing: .02em; color: var(--ink2); }
.auth-tabs a.active { background: #fff; color: var(--vio-d); box-shadow: 0 2px 0 #dcd2ff; }
.auth-form h2 { font-size: 30px; margin-bottom: 8px; }
.auth-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.auth-perks span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; background: var(--mint-l); color: var(--mint-d); padding: 6px 10px; border-radius: 10px; }
.auth-perks span:nth-child(2) { background: #fde8f3; color: #c42b80; } .auth-perks span:nth-child(3) { background: var(--sky-l); color: #1f5fd6; }
@media (max-width: 1000px) {
  .auth-brand { display: flex; }
  .auth-form { align-items: flex-start; padding: 22px 14px 40px; }
  .auth-form .card { padding: 22px 18px; }
}

/* ---------------------------------------------------------------- auth on phones: hero + sheet */
.auth-m-hero { display: none; }
@media (max-width: 1000px) {
  .auth { min-height: 100vh; background: #fff; grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-form { display: block; padding: 0; }
  .auth-m-hero { display: block; position: relative; overflow: hidden; text-align: center; color: #fff; padding: 30px 20px 64px;
    background: radial-gradient(260px 180px at 85% 0%, rgba(255, 200, 61, .45), transparent 65%), radial-gradient(240px 200px at 0% 100%, rgba(73, 230, 170, .25), transparent 60%), linear-gradient(165deg, #7b4dff 0%, #4b22c9 60%, #2c1280 100%); }
  .auth-m-hero::after { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 255, 255, .06) 0 8deg, transparent 8deg 16deg); pointer-events: none; }
  .mh-logo img { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 14px 30px rgba(10, 4, 40, .45), 0 0 0 4px rgba(255, 255, 255, .25); position: relative; z-index: 2; animation: hBob 3s ease-in-out infinite; }
  .auth-m-hero h1 { position: relative; z-index: 2; font-size: 36px; margin: 14px 0 6px; text-shadow: 0 4px 0 rgba(0, 0, 0, .22); }
  .auth-m-hero h1 em { font-style: normal; color: #ffd75e; }
  .auth-m-hero p { position: relative; z-index: 2; margin: 0; font-size: 13.5px; font-weight: 600; opacity: .88; }
  .mh-ic { position: absolute; width: 50px; height: 50px; z-index: 1; filter: drop-shadow(0 10px 14px rgba(10, 4, 40, .45)); animation: floaty 4s ease-in-out infinite; opacity: .95; }
  .mh-ic0 { left: 18px; top: 26px; transform: rotate(-14deg); } .mh-ic1 { right: 20px; top: 18px; transform: rotate(12deg); animation-delay: 1s; }
  .mh-ic2 { left: -6px; top: 118px; width: 42px; height: 42px; transform: rotate(10deg); animation-delay: 2s; } .mh-ic3 { right: -4px; top: 124px; width: 44px; height: 44px; transform: rotate(-10deg); animation-delay: 1.5s; }
  .auth-form .card { max-width: none; width: 100%; margin: -36px 0 0; border: 0; border-radius: 30px 30px 0 0; padding: 22px 20px 36px; box-shadow: 0 -14px 30px -10px rgba(43, 18, 128, .35); position: relative; z-index: 3; min-height: calc(100vh - 230px); }
  .auth-form .card::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #e3ddf7; }
  .auth-brand { display: none; }
  .auth-tabs { margin-top: 10px; }
  .auth-form h2 { display: none; }
  .auth-form .auth-perks { display: none; }
  .auth-form > .card > h2 + p.muted { display: none; }
  .auth-form .input { padding: 14px 14px 14px 42px; border-radius: 15px; }
  .auth-form .btn-lg { padding: 16px 20px 14px; }
  .auth-form .captcha .cap-img, .auth-form .captcha .cap-track { width: 100%; }
}

/* captcha modal */
.cap-modal { max-width: 380px; padding: 22px; }
.cap-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding-right: 36px; }
.cap-head h3 { margin: 0 0 2px; font-size: 22px; }
.cap-head p { margin: 0; font-size: 13px; color: var(--mute); }
.cap-ic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--grad); box-shadow: 0 4px 0 var(--vio-d); }
.cap-modal .captcha { border: 0; padding: 0; background: none; }
.cap-modal .captcha .cap-img, .cap-modal .captcha .cap-track { width: 100%; }
@media (max-width: 640px) { .modal-bg#capModal { align-items: flex-end; padding: 0; } .cap-modal { max-width: none; border-radius: 26px 26px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .35s cubic-bezier(.3, 1.2, .5, 1); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* login: freebies + games to fill the card */
.lg-extra { margin-top: 6px; }
.lg-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.lg-free > div { background: #fbfaff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px 10px; text-align: center; }
.lg-free .i { width: 40px; height: 40px; border-radius: 13px; margin: 0 auto 8px; display: grid; place-items: center; color: #fff; font-size: 17px; }
.lg-free b { display: block; font-size: 12.5px; white-space: nowrap; }
.lg-free small { font-family: var(--disp); font-size: 13px; color: var(--mint-d); }
.lg-games { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.lg-games span { width: 44px; height: 44px; filter: drop-shadow(0 5px 8px rgba(43, 18, 128, .25)); }
