:root {
  --bg: #0a0c1a; --bg2: #0f1226; --panel: #151935; --panel2: #1c2146; --panel3: #252b58; --line: #2a3163;
  --text: #eef0ff; --muted: #8e95c7; --dim: #5d6496;
  --violet: #8c6bff; --violet2: #b39cff; --cyan: #3ad8ff; --mint: #2ef2a6; --mint2: #12c987; --gold: #ffcb52; --red: #ff4d6d; --pink: #ff6fcf;
  --win: var(--mint); --lose: var(--red);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --glow: 0 0 0 1px rgba(140, 107, 255, .25), 0 12px 40px rgba(90, 60, 220, .25);
  --r1: 8px; --r2: 14px; --r3: 20px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --num: Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  --side: 248px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #eef0fa; --bg2: #ffffff; --panel: #ffffff; --panel2: #f1f3fb; --panel3: #e4e7f6; --line: #dde1f2;
  --text: #171a35; --muted: #5d6390; --dim: #9aa0c4;
  --mint: #0fbf82; --mint2: #0a9e6b; --gold: #e7a419; --red: #e8395a; --cyan: #0aa7d6; --violet: #6f4cf0; --violet2: #6f4cf0;
  --shadow: 0 10px 30px rgba(40, 50, 120, .12); --glow: 0 0 0 1px rgba(111, 76, 240, .2), 0 12px 30px rgba(111, 76, 240, .15);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--violet2); }
.ic { width: 20px; height: 20px; flex: none; }
.coin { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.pos { color: var(--win); } .neg { color: var(--lose); } .mut { color: var(--muted); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

#boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1b1747, #07081a 70%); transition: opacity .5s, visibility .5s; }
#boot.out { opacity: 0; visibility: hidden; }
.boot-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.boot-in > img { width: 92px; height: 92px; animation: floaty 2.2s ease-in-out infinite; filter: drop-shadow(0 12px 30px rgba(140, 107, 255, .5)); }
.boot-name { font-size: 34px; font-weight: 300; letter-spacing: 1px; color: #fff; }
.boot-name b { font-weight: 800; background: linear-gradient(90deg, #ffe08a, #ffb648); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-bar { width: 180px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #8c6bff, #3ad8ff); animation: load 1s ease-in-out infinite; }
.boot-nova { display: flex; align-items: center; gap: 8px; color: #8e95c7; font-size: 12px; margin-top: 18px; }
.boot-nova img { width: 18px; height: 18px; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

#shell { display: flex; height: 100%; }
#side { width: var(--side); flex: none; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; z-index: 30; transition: transform .3s; }
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; cursor: pointer; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-size: 21px; font-weight: 300; letter-spacing: .5px; white-space: nowrap; }
.brand-name b { font-weight: 800; background: linear-gradient(90deg, var(--gold), #ffb648); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-sec { padding: 6px 12px 10px; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--dim); padding: 10px 12px 8px; font-weight: 700; }
.nav-a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r1); color: var(--muted); font-weight: 600; text-align: left; transition: background .15s, color .15s; position: relative; white-space: nowrap; }
.nav-a:hover { background: var(--panel); color: var(--text); }
.nav-a.on { background: linear-gradient(90deg, rgba(140, 107, 255, .22), rgba(140, 107, 255, .04)); color: var(--text); }
.nav-a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--violet); }
.nav-a .gdot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.nav-a .gdot .ic { width: 16px; height: 16px; color: #fff; }
.nav-a .badge { margin-left: auto; }
.side-promo { margin: 8px 16px 16px; padding: 16px; border-radius: var(--r2); background: linear-gradient(135deg, rgba(140, 107, 255, .3), rgba(58, 216, 255, .12)); border: 1px solid rgba(140, 107, 255, .35); cursor: pointer; transition: transform .2s; }
.side-promo:hover { transform: translateY(-2px); }
.side-promo .sp-t { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.side-promo .sp-d { font-size: 13px; color: var(--muted); margin-top: 6px; }
.side-foot { margin-top: auto; padding: 16px 20px 20px; font-size: 11px; color: var(--dim); line-height: 1.5; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }

#scrim { display: none; }
#main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
#top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); min-height: 68px; }
.top-l, .top-r { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-r { justify-content: flex-end; }
.ibtn { width: 42px; height: 42px; border-radius: var(--r1); display: grid; place-items: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); position: relative; transition: color .15s, background .15s, transform .15s; flex: none; }
.ibtn:hover { color: var(--text); background: var(--panel2); }
.ibtn:active { transform: scale(.95); }
.ibtn .badge { position: absolute; top: -6px; right: -6px; }
#menuBtn { display: none; }
.wallet { display: flex; align-items: stretch; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.wallet .bal { display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 18px; font-weight: 700; min-width: 150px; justify-content: center; position: relative; }
.wallet .bal .coin { width: 22px; height: 22px; }
.wallet .bal.up { animation: balUp .6s; } .wallet .bal.down { animation: balDown .4s; }
@keyframes balUp { 30% { color: var(--mint); transform: scale(1.06); } }
@keyframes balDown { 30% { color: var(--red); } }
.wallet .wbtn { padding: 0 16px; height: 46px; display: flex; align-items: center; gap: 8px; font-weight: 700; background: linear-gradient(135deg, var(--violet), #6a4be0); color: #fff; position: relative; }
.wallet .wbtn:hover { filter: brightness(1.12); }
.wallet .wbtn .badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; background: var(--mint); color: #062a1c; }
.fly { position: fixed; z-index: 60; pointer-events: none; font-family: var(--num); font-weight: 800; font-size: 16px; animation: flyUp 1.2s ease-out forwards; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
@keyframes flyUp { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -36px) scale(1); } }
.vipchip { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: background .15s; min-width: 0; }
.vipchip:hover { background: var(--panel2); }
.vipchip .ring { width: 32px; height: 32px; flex: none; }
.vipchip .vt { font-size: 12px; line-height: 1.25; white-space: nowrap; }
.vipchip .vt b { display: block; font-size: 13px; }

#view { flex: 1; padding: 24px; width: 100%; max-width: 1400px; margin: 0 auto; }
.view-in { animation: viewIn .35s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
#foot { padding: 18px 24px 26px; text-align: center; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); line-height: 1.6; }
#foot .sig { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
#foot .sig img { width: 14px; height: 14px; }

.h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.3px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.sec-h { display: flex; align-items: center; gap: 10px; margin: 32px 0 14px; }
.sec-h h2 { font-size: 18px; margin: 0; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sec-h h2 .ic { color: var(--violet2); }
.sec-h .more { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r3); padding: 20px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r1); font-weight: 700; background: var(--panel2); border: 1px solid var(--line); transition: transform .12s, filter .15s, background .15s, opacity .15s; white-space: nowrap; }
.btn:hover { background: var(--panel3); }
.btn:active { transform: scale(.97); }
.btn.pri { background: linear-gradient(180deg, #35f7b0, var(--mint2)); color: #04281a; border: 0; box-shadow: 0 6px 22px rgba(46, 242, 166, .28); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.vio { background: linear-gradient(135deg, var(--violet), #6a4be0); color: #fff; border: 0; }
.btn.gold { background: linear-gradient(180deg, #ffe08a, #f5b02e); color: #3a2300; border: 0; box-shadow: 0 6px 22px rgba(255, 203, 82, .25); }
.btn.red { background: linear-gradient(180deg, #ff6d86, #e8395a); color: #fff; border: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn.big { height: 54px; font-size: 16px; width: 100%; border-radius: var(--r2); }
.seg { display: flex; padding: 4px; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); }
.seg button { flex: 1; height: 36px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; padding: 0 10px; }
.seg button.on { background: var(--panel3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }

.hero { position: relative; border-radius: 24px; overflow: hidden; padding: 38px 40px; min-height: 250px; display: flex; align-items: center; background: radial-gradient(circle at 85% 30%, rgba(58, 216, 255, .35), transparent 45%), radial-gradient(circle at 70% 90%, rgba(255, 111, 207, .3), transparent 45%), linear-gradient(120deg, #2a1d7a, #4a2bb5 55%, #1c3f8a); color: #fff; box-shadow: var(--glow); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 90% 85%, #fff, transparent), radial-gradient(1.5px 1.5px at 10% 70%, #fff, transparent); opacity: .7; animation: twinkle 4s ease-in-out infinite; pointer-events: none; }
@keyframes twinkle { 50% { opacity: .25; } }
.hero-t { position: relative; z-index: 2; max-width: 560px; }
.hero-k { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 14px 0 10px; font-weight: 900; letter-spacing: -.8px; }
.hero h1 span { white-space: nowrap; background: linear-gradient(90deg, #ffe08a, #ffb648); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 0 22px; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.5; }
.hero .hbtns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn:not(.gold) { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.hero-art { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 360px; height: 260px; z-index: 1; pointer-events: none; }
.hero-art .moon { position: absolute; right: 40px; top: 6px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6d6, #ffcf6a 55%, #e0962a); box-shadow: 0 0 80px rgba(255, 203, 82, .55); animation: floaty 6s ease-in-out infinite; }
.hero-art .moon::after { content: ""; position: absolute; width: 140px; height: 140px; right: -24px; top: -18px; border-radius: 50%; background: #3b2aa0; opacity: .0; }
.hero-art .fc { position: absolute; animation: floaty 4s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.hero-art .fc .coin { width: 100%; height: 100%; }
.hero-art .dice3d { position: absolute; width: 74px; height: 74px; border-radius: 18px; background: linear-gradient(145deg, #fff, #d9dcf5); left: 40px; bottom: 20px; transform: rotate(-16deg); box-shadow: 0 16px 30px rgba(0, 0, 0, .35); animation: spinFloat 5s ease-in-out infinite; display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px; gap: 3px; }
.dice3d i { width: 10px; height: 10px; border-radius: 50%; background: #5b3fe0; place-self: center; }
.dice3d i.x { visibility: hidden; }
@keyframes spinFloat { 50% { transform: rotate(-4deg) translateY(-12px); } }

.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.qcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r3); padding: 18px; display: flex; gap: 14px; align-items: center; cursor: pointer; transition: transform .2s, border-color .2s; min-width: 0; position: relative; overflow: hidden; }
.qcard:hover { transform: translateY(-3px); border-color: var(--violet); }
.qcard .qi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.qcard .qi .ic { width: 24px; height: 24px; }
.qcard .ql { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.qcard .qv { font-size: 20px; font-weight: 800; margin-top: 2px; line-height: 1.15; display: flex; align-items: center; gap: 6px; }
.qcard.ready::after { content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(46, 242, 166, .7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46, 242, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 242, 166, 0); } }
.mini-bar { height: 6px; border-radius: 6px; background: var(--panel3); overflow: hidden; margin-top: 8px; width: 100%; }
.mini-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width .6s; }

.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; padding-top: 6px; }
.gcard { position: relative; border-radius: var(--r3); aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .3, 1.3), box-shadow .25s; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); isolation: isolate; }
.gcard:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 0 2px rgba(255, 255, 255, .35); }
.gcard .gbg { position: absolute; inset: 0; z-index: -1; }
.gcard .gart { position: absolute; inset: 0 0 26% 0; display: grid; place-items: center; transition: transform .4s; }
.gcard:hover .gart { transform: scale(1.08) rotate(-2deg); }
.gcard .gart svg { width: 74%; height: 74%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.gcard .gname { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 16px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent); }
.gcard .gname b { display: block; font-size: 20px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; }
.gcard .gname span { font-size: 12px; opacity: .85; font-weight: 600; }
.gcard .gtag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 20px; font-size: 10px; font-weight: 900; letter-spacing: 1px; background: rgba(0, 0, 0, .35); color: #fff; backdrop-filter: blur(6px); }
.gcard .gtag.hot { background: linear-gradient(90deg, #ff6d3a, #ff3d7a); }
.gcard .gtag.new { background: linear-gradient(90deg, #2ef2a6, #12b8c9); color: #032a20; }
.gcard .gplay { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #1a1540; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s; }
.gcard:hover .gplay { opacity: 1; transform: scale(1); }
.gcard .gplay svg { width: 16px; height: 16px; margin-left: 2px; }
.gcard::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); transition: left .6s; z-index: 3; pointer-events: none; }
.gcard:hover::after { left: 130%; }
.gcard .gplayers { position: absolute; left: 16px; bottom: 62px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #fff; font-weight: 700; opacity: .9; }
.gcard .gplayers i { width: 7px; height: 7px; border-radius: 50%; background: #2ef2a6; box-shadow: 0 0 8px #2ef2a6; }

.ticker { overflow: hidden; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); margin-top: 22px; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-in { display: flex; gap: 12px; padding: 12px; width: max-content; animation: tick 50s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--panel2); border-radius: 12px; white-space: nowrap; font-size: 13px; }
.tk .tg { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.tk .tg .ic { width: 17px; height: 17px; color: #fff; }
.tk b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

.tabs-line { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs-line button { padding: 9px 16px; border-radius: 30px; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); transition: all .15s; white-space: nowrap; }
.tabs-line button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 700; padding: 4px 14px; text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; }
.tbl td { background: var(--panel); padding: 11px 14px; white-space: nowrap; }
.tbl td:first-child { border-radius: 12px 0 0 12px; }
.tbl td:last-child { border-radius: 0 12px 12px 0; }
.tbl .r, .tbl th.r { text-align: right; }
.tbl tr.new td { animation: rowIn .45s ease-out; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: var(--panel3); } }
.tbl .gcell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tbl .gcell .tg { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.tbl .gcell .tg .ic { width: 14px; height: 14px; color: #fff; }
.tbl .who { display: flex; align-items: center; gap: 8px; }
.tbl .who .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.tbl .me { color: var(--violet2); font-weight: 800; }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty img { width: 54px; height: 54px; opacity: .9; }

#toasts { position: fixed; right: 20px; top: 84px; z-index: 70; display: flex; flex-direction: column; gap: 10px; pointer-events: none; width: 340px; max-width: calc(100vw - 40px); }
.toast { pointer-events: auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: toastIn .45s cubic-bezier(.2, .9, .3, 1.3); position: relative; overflow: hidden; }
.toast.out { animation: toastOut .35s forwards; }
.toast .ti { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--gold), #f59e2b); color: #3a2300; }
.toast .ti .ic { width: 24px; height: 24px; }
.toast.ok .ti { background: linear-gradient(135deg, var(--mint), var(--mint2)); color: #032a1c; }
.toast.bad .ti { background: linear-gradient(135deg, #ff6d86, var(--red)); color: #fff; }
.toast.info .ti { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; }
.toast .tt { font-weight: 800; font-size: 14px; }
.toast .td { font-size: 13px; color: var(--muted); margin-top: 2px; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); animation: toastBar 4s linear forwards; }
.toast.ok::after { background: var(--mint); } .toast.bad::after { background: var(--red); } .toast.info::after { background: var(--violet); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }
@keyframes toastBar { from { width: 100%; } to { width: 0; } }

#modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(5, 6, 18, .7); backdrop-filter: blur(6px); padding: 20px; }
#modal.on { display: grid; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.mbox { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); position: relative; }
.mbox.wide { max-width: 620px; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(20px); } }
.mhead { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; }
.mhead h3 { margin: 0; font-size: 19px; font-weight: 800; flex: 1; }
.mbody { padding: 18px 22px 22px; }
.rw { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r2); background: var(--panel2); margin-bottom: 12px; border: 1px solid var(--line); }
.rw .ri { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.rw .ri .ic { width: 24px; height: 24px; }
.rw .rt { flex: 1; min-width: 0; }
.rw .rt b { display: block; font-size: 15px; }
.rw .rt span { font-size: 13px; color: var(--muted); }
.rw .btn { height: 40px; padding: 0 16px; min-width: 110px; }

.lvlup { text-align: center; padding: 34px 26px 26px; }
.lvlup .medal { width: 130px; height: 130px; margin: 0 auto 10px; animation: medalIn .8s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes medalIn { from { transform: scale(0) rotate(-180deg); } }
.lvlup h2 { margin: 8px 0 6px; font-size: 26px; font-weight: 900; }
.lvlup p { color: var(--muted); margin: 0 0 20px; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }


.setrow { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.setrow:last-child { border-bottom: 0; }
.setrow .sl { flex: 1; min-width: 200px; }
.setrow .sl b { display: block; }
.setrow .sl span { font-size: 13px; color: var(--muted); }
.setrow .seg { min-width: 260px; }
.tog { width: 52px; height: 30px; border-radius: 30px; background: var(--panel3); position: relative; transition: background .2s; flex: none; }
.tog::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2, .9, .3, 1.3); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.tog.on { background: var(--mint2); }
.tog.on::after { transform: translateX(22px); }
input[type=range].vol { width: 200px; accent-color: var(--violet); }

.about { text-align: center; max-width: 560px; margin: 20px auto; }
.about img.ai { width: 96px; height: 96px; filter: drop-shadow(0 14px 30px rgba(140, 107, 255, .45)); }
.about h1 { margin: 14px 0 4px; font-size: 32px; font-weight: 300; }
.about h1 b { font-weight: 900; }
.about .ver { display: inline-block; padding: 4px 12px; border-radius: 20px; background: var(--panel2); color: var(--muted); font-size: 13px; font-weight: 700; }
.about p { color: var(--muted); line-height: 1.6; }
.about .by { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; }
.about .by img { width: 20px; height: 20px; }

@media (max-width: 1500px) { .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); } .quick > .qcard { grid-column: span 2; } .quick > .qcard:nth-child(-n+2) { grid-column: span 3; } }
@media (max-width: 1180px) {
  .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); } .quick > .qcard { grid-column: span 2; } .quick > .qcard:nth-child(-n+2) { grid-column: span 3; }
  .hero-art { opacity: .45; right: -40px; }
}
@media (max-width: 900px) {
  #side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  body.drawer #side { transform: none; }
  body.drawer #scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .5); }
  #menuBtn { display: grid; }
  #top { padding: 10px 14px; }
  #view { padding: 16px; }
  .vipchip .vt { display: none; }
  .vipchip { padding: 6px; }
  .hero { padding: 28px 24px; }
  .hero h1 { font-size: 30px; }
  .hero-art { display: none; }
}
@media (max-width: 560px) {
  .quick { grid-template-columns: minmax(0, 1fr); } .quick > .qcard, .quick > .qcard:nth-child(-n+2) { grid-column: auto; }
  .ggrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gcard .gname b { font-size: 16px; }
  .wallet .bal { min-width: 0; padding: 0 12px; font-size: 16px; }
  .wallet .wbtn span { display: none; }
  .top-l .ibtn.snd { display: none; }
  .h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
