
:root{--bg:#f7f4ee;--panel:#fffefa;--text:#222321;--muted:#77776e;--line:#e8e4dc;--green:#a43c21;--accent:#a43c21;--soft:#f5e4da;--ink:#222b27;--hero:#e9e2d4;--gold:#e9b76c;--outer:#d8d4cb;--white:#fffefa;--nav:#fffefa}
html[data-theme=jade]{--bg:#edf2ec;--panel:#fcfdf9;--text:#20382f;--muted:#65786c;--line:#dce6dc;--green:#235d48;--accent:#235d48;--soft:#dcece2;--ink:#163e32;--hero:#dce8dc;--gold:#c8e4ae;--outer:#cdd9cf;--nav:#fcfdf9}
html[data-theme=obsidian]{--bg:#f0f2f6;--panel:#fff;--text:#202b40;--muted:#687388;--line:#e0e5ee;--green:#3959ad;--accent:#3959ad;--soft:#e3eafa;--ink:#202e50;--hero:#e1e7f3;--gold:#d5e1ff;--outer:#d2d9e6;--nav:#fff}
*{box-sizing:border-box} [hidden]{display:none!important}body{margin:0;background:var(--outer);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,'Noto Sans CJK SC','PingFang SC','Microsoft YaHei',sans-serif;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:active{transform:scale(.985)}p,h1,h2{margin:0}svg{display:block}.app{max-width:430px;margin:auto;background:var(--bg);min-height:100dvh;padding-bottom:90px;box-shadow:0 0 65px #00000012}.top{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 23px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{font-size:26px;letter-spacing:-1.7px;font-weight:900;line-height:1}.brand b{color:var(--accent)}.top .pill{font-size:9px;padding:3px 7px;border:1px solid var(--line);background:transparent;color:var(--muted)}.top-tools{display:flex;gap:7px}.top-tools button{width:37px;height:37px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--panel)}.top-tools svg{width:18px;height:18px}.page{display:none;padding:0 22px 20px;animation:arrive .25s ease-out}.page.active{display:block}@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.page-heading{margin:4px 0 22px}.page-heading:before{content:attr(data-kicker);font:700 10px/1.4 Arial,sans-serif;letter-spacing:2.3px;color:var(--accent);display:block;margin-bottom:8px}h1{font-size:30px;line-height:1.25;letter-spacing:-1px;font-weight:850}h2{font-size:15px;font-weight:750}.page-heading .muted{margin-top:5px}.muted{font-size:12px;color:var(--muted)}.tiny{font-size:10px;color:var(--muted)}.pill{display:inline-block;padding:4px 9px;background:var(--soft);color:var(--accent);border-radius:100px;font-size:10px;font-weight:650;white-space:nowrap}.card{padding:18px;border-radius:20px;background:var(--panel);border:1px solid var(--line);margin-top:12px}.hero{position:relative;overflow:hidden;border-radius:22px;background:var(--ink);color:var(--white);padding:22px;margin-top:12px;isolation:isolate}.hero .muted,.hero .tiny{color:#d6ded7}.hero .pill{background:#ffffff19;color:#fff}.hero .amount{font-size:40px;font-weight:800;letter-spacing:-2px;font-variant-numeric:tabular-nums;line-height:1.2;margin:15px 0 5px;position:relative;z-index:1}.hero .amount small{font-size:12px;font-weight:600;letter-spacing:0;color:#d6ded7}.hero .divider{height:1px;background:#ffffff28;margin:17px 0 13px}.hero .stat{font-size:17px;font-weight:750;margin-top:3px}.hero>.row:last-of-type{justify-content:flex-start;gap:34px}.hero-art{position:absolute;width:114px;height:114px;right:1px;top:39px;pointer-events:none;z-index:-1;opacity:.85}.hero h2,.hero .row,.hero p{position:relative;z-index:1}#home .hero{padding:19px 20px}#home .hero .amount{font-size:38px}#home .hero .hero-art{width:100px;height:100px;right:10px;top:40px}.clock{padding:20px 20px 16px;margin-top:0;position:relative}.clock .row h2{font-size:17px}.clock .label{text-align:center;margin:20px 0 7px;font-size:11px;color:var(--muted)}.digits{display:flex;justify-content:center;align-items:center;gap:7px;font:750 32px/1.25 Arial,sans-serif;color:var(--text);font-variant-numeric:tabular-nums}.digits span{min-width:73px;text-align:center;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:11px 4px}.time-units{display:flex;justify-content:center;gap:52px;color:var(--muted);font-size:10px;margin:6px 0 16px}.timebar{height:4px;border-radius:4px;background:var(--line);overflow:hidden}.timebar i{display:block;height:100%;background:var(--accent);border-radius:4px;transition:width .5s}.primary{background:var(--accent);color:white;font-weight:700;font-size:15px;width:100%;border-radius:13px;padding:14px;margin-top:16px;transition:transform .16s,background .16s}.primary:disabled{background:var(--soft);color:var(--accent);cursor:default}.clock .tiny{text-align:center;margin-top:10px}.strip{display:flex;align-items:center;gap:13px;padding:13px 15px}.avatars{display:flex;align-items:center;flex:none;padding-left:0}.avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:var(--soft);border:2px solid var(--panel);font-size:14px;margin-left:-7px}.avatar:first-child{margin-left:0}.strip .right{margin-left:auto;font-size:20px;color:var(--muted)}.rules{display:block;padding:12px 0;color:var(--muted);font-size:12px;text-align:center;width:100%}.game-banner{background:linear-gradient(135deg,var(--hero),var(--panel));color:var(--text);min-height:138px;padding:18px 18px 16px;border-radius:24px}.game-banner .muted{color:var(--muted)}.game-banner .pill{background:var(--panel);color:var(--accent)}.game-banner .hero-art{width:126px;height:126px;top:10px;right:2px;opacity:1}.games-page{display:grid;gap:12px}.game-chip-row{display:flex;gap:8px;overflow:auto;padding-bottom:2px;scrollbar-width:none}.game-chip-row::-webkit-scrollbar{display:none}.game-chip{padding:9px 13px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}.game-chip.active{background:var(--ink);color:var(--white);border-color:var(--ink)}.feature-game{position:relative;overflow:hidden;padding:19px;border-radius:22px;background:var(--ink);color:var(--white);min-height:180px}.feature-game .pill{background:#ffffff1b;color:#fff}.feature-game .muted{color:#d8dfdb}.feature-game h2{font-size:27px;line-height:1.2;margin:12px 0 6px;color:#fff}.feature-game p{max-width:58%}.feature-game .meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.feature-game .meta span{font-size:11px;padding:6px 10px;border-radius:999px;background:#ffffff14;color:#fff}.feature-game .enter{margin-top:16px;display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:13px;background:#fff;color:var(--ink);font-weight:800}.feature-art-lg{position:absolute;right:8px;bottom:6px;width:148px;height:148px;opacity:.97}.mini-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mini-stat{padding:14px 12px;border-radius:18px;background:var(--panel);border:1px solid var(--line)}.mini-stat strong{display:block;font-size:18px;line-height:1.2;margin-top:5px}.mini-stat small{display:block;color:var(--muted);font-size:11px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:8px;margin:8px 2px 2px}.section-head h2{font-size:18px}.section-head .muted{font-size:11px}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.game{position:relative;display:block;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;padding:9px 9px 13px;min-width:0;box-shadow:0 1px 0 #00000005}.game.featured{grid-column:span 2;display:grid;grid-template-columns:1.2fr .9fr;align-items:center;padding:12px 12px 12px 14px}.game.featured .gameicon{height:148px}.gameicon{height:112px;border-radius:16px;display:grid;place-items:center}.gameicon svg{width:72px;height:72px}.game.featured .gameicon svg{width:95px;height:95px}.gamecopy{padding:11px 8px 0}.game.featured .gamecopy{padding:2px 2px 2px 0}.game b{display:block;font-size:16px;line-height:1.25}.game.featured b{font-size:24px;line-height:1.1}.game .muted{margin-top:4px;font-size:11px}.game.featured .muted{font-size:12px;max-width:210px}.game .tag{display:inline-flex;font-size:10px;color:var(--accent);margin-top:8px;padding:5px 9px;background:var(--soft);border-radius:999px;font-weight:700}.game .go{position:absolute;bottom:14px;right:14px;font-size:17px;color:var(--accent)}.game.featured .go{top:14px;right:14px;bottom:auto}.note-card{padding:16px 17px;border-radius:20px;background:var(--panel);border:1px dashed var(--line);color:var(--muted);font-size:12px;line-height:1.6}.note-card b{color:var(--text)}.levels{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ffffff25;border-radius:12px;overflow:hidden;margin-top:17px}.level{text-align:center;background:var(--ink);padding:10px 2px}.level strong{display:block;font-size:22px;letter-spacing:-.4px;line-height:1.3;color:var(--white)}.qr{width:108px;height:108px;background:white;padding:5px;border:1px solid var(--line);border-radius:10px;flex:none}.qr svg{width:100%;height:100%}.smallbtn{font-size:11px;font-weight:700;color:var(--accent);background:var(--soft);padding:8px 12px;border-radius:8px}.invite-link{font-size:10px;color:var(--muted);background:var(--bg);border-radius:9px;padding:10px;margin-top:12px;overflow-wrap:anywhere}.member{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.member:last-child{border-bottom:0;padding-bottom:0}.member .avatar{margin:0;width:36px;height:36px}.member .data{flex:1}.member .points{font-weight:700;color:var(--accent)}.profile{display:flex;align-items:center;gap:14px;text-align:left;width:100%;padding:0 2px 8px}.bigavatar{width:64px;height:64px;background:var(--ink);display:grid;place-items:center;border-radius:20px;flex:none}.bigavatar svg{width:34px;height:34px}.grow{flex:1}.profile strong{font-size:20px;font-weight:800}.profile .muted{margin-top:2px}.wallet{background:var(--ink);color:var(--white);padding:21px}.wallet .muted,.wallet .balance small{color:#d6ded7!important}.wallet .smallbtn{background:#ffffff18;color:white}.balance{font-size:36px;letter-spacing:-1.2px;font-weight:800;margin:8px 0 13px;font-variant-numeric:tabular-nums}.actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.actions button{border:1px solid #ffffff45;border-radius:11px;color:white;padding:12px;font-weight:700}.actions button:first-child{background:var(--white);color:var(--ink)}.group-label{font-size:11px;color:var(--muted);margin:19px 0 7px;letter-spacing:.5px}.menu{padding:0 14px;margin-top:0;border-radius:16px}.menu button{display:flex;gap:11px;align-items:center;text-align:left;width:100%;padding:12px 0;border-bottom:1px solid var(--line);font-weight:550}.menu button:last-child{border:0}.sym{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:var(--soft);color:var(--accent)}.sym svg{width:18px;height:18px}.arrow{margin-left:auto;color:var(--muted);font-size:20px}.footnote,.record-note{font-size:10px;color:var(--muted);text-align:center;margin:16px 0}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,430px);display:grid;grid-template-columns:repeat(4,1fr);background:var(--nav);border-top:1px solid var(--line);padding:9px 14px max(12px,env(safe-area-inset-bottom));z-index:10}.nav button{display:grid;place-items:center;gap:4px;font-size:10px;color:var(--muted);font-weight:550}.ni{display:grid;place-items:center;width:48px;height:33px;border-radius:11px}.ni svg{width:22px;height:22px}.nav button.active{color:var(--accent);font-weight:750}.nav button.active .ni{background:var(--soft)}.theme-panel{margin:0 22px 15px;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:15px}.theme-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.theme-head small{color:var(--muted);font-size:10px}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.theme-options button{border:1px solid var(--line);border-radius:10px;padding:7px 4px;display:grid;gap:4px;justify-items:center;font-size:10px}.theme-options button.active{border-color:var(--accent);background:var(--soft)}.theme-options i{width:36px;height:17px;border-radius:5px;background:linear-gradient(90deg,var(--sw) 50%,var(--sw2) 50%)}.theme-options small{font-size:9px;color:var(--muted)}.modal{display:none;position:fixed;inset:0;background:#0007;z-index:20;align-items:center;justify-content:center;padding:22px}.modal.open{display:flex}.dialog{max-width:360px;width:100%;padding:24px;border-radius:22px;background:var(--panel);box-shadow:0 20px 50px #0002}.dialog h2{font-size:20px;margin-bottom:10px}.dialog p{color:var(--muted);white-space:pre-line}.toast{display:none;position:fixed;bottom:87px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:12px;padding:12px 16px;z-index:30;white-space:nowrap}.toast.show{display:block}.record-back{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--accent);padding:0 0 14px}.record-back svg{width:17px;height:17px}.record-filters{display:flex;gap:6px;margin-top:16px}.record-filters button{padding:9px 13px;border:1px solid var(--line);border-radius:9px;background:var(--panel);font-size:12px}.record-filters button[aria-pressed=true]{background:var(--soft);color:var(--accent);border-color:var(--accent)}.record-list{padding:5px 15px}.record-item{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.record-item:last-of-type{border:0}.record-mark{width:36px;height:36px;display:grid;place-items:center;background:var(--soft);color:var(--accent);border-radius:10px}.record-body{flex:1}.record-body small,.record-value small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.record-value{text-align:right;font-weight:650}.credit{color:var(--accent)}.record-empty{padding:16px;text-align:center;color:var(--muted)}@media(max-width:360px){.page{padding-left:15px;padding-right:15px}.top{padding:0 15px}.digits span{min-width:62px}.time-units{gap:40px}.hero .amount{font-size:34px!important}.hero-art{width:85px!important;height:85px!important}.gameicon{height:85px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

:root{--bg:#f5f4f8;--panel:#fff;--text:#1d2030;--muted:#72758a;--line:#e7e6ee;--green:#5745df;--accent:#5745df;--soft:#edeaff;--ink:#252141;--hero:#e3e0ff;--gold:#dbf689;--outer:#e4e3ea;--white:#fff;--nav:#fff;--hero2:#c8c2f8;--accent2:#d9f594}
html[data-theme=jade]{--bg:#f3f6f3;--panel:#fff;--text:#202d27;--muted:#64756b;--line:#e1e9e1;--accent:#176b50;--green:#176b50;--soft:#e1f2e6;--ink:#173d32;--hero:#d4eadc;--gold:#dcf1aa;--outer:#dce5dc;--white:#fff;--nav:#fff;--hero2:#b7d8c5;--accent2:#e4f6ac}
html[data-theme=obsidian]{--bg:#f7f3ef;--panel:#fff;--text:#292a32;--muted:#77717d;--line:#ece5e1;--accent:#a43e60;--green:#a43e60;--soft:#fae7ee;--ink:#482d3c;--hero:#f4dbe5;--gold:#f9dfa1;--outer:#e5dfdc;--white:#fff;--nav:#fff;--hero2:#efc4d6;--accent2:#f8e2a4}
body{font-size:14px;letter-spacing:.05px}.app{max-width:448px;padding-bottom:98px;box-shadow:0 12px 65px #27264012}.top{height:69px;padding:0 23px}.brand{font-size:27px;letter-spacing:-2px;font-weight:900;display:flex;align-items:center}.brand b{font-size:32px;color:var(--accent)}.top .pill{font-size:10px;border:0;background:var(--soft);color:var(--accent);padding:5px 8px;font-weight:600}.top-tools button{background:transparent;border:0;border-radius:12px;width:36px;height:36px}.top-tools button:hover{background:var(--soft)}.page{padding:0 21px 16px}.page-heading{margin:5px 0 17px}.page-heading:before{font-size:9px;letter-spacing:2px;margin-bottom:5px}.page-heading h1{font-size:29px;letter-spacing:-1.2px}.page-heading .muted{font-size:12px;margin-top:5px}.card{border:1px solid var(--line);border-radius:21px;padding:17px;box-shadow:0 3px 12px #25214104}.hero{border-radius:24px;background:var(--ink);padding:20px;box-shadow:none}.hero .amount{font-family:Arial,sans-serif;font-size:40px;letter-spacing:-1.8px}.primary{border-radius:14px;padding:13px;min-height:48px;box-shadow:0 6px 14px color-mix(in srgb,var(--accent) 15%,transparent)}.primary:disabled{box-shadow:none}.nav{max-width:448px;width:min(100%,448px);background:var(--nav);border-top:1px solid var(--line);box-shadow:0 -5px 22px #25214108;padding:8px 15px calc(14px + env(safe-area-inset-bottom,0px));gap:8px}.nav button{font-size:11px;color:var(--muted);padding:4px 0}.nav button .ni{width:48px;height:34px;border-radius:12px;display:grid;place-items:center;margin:auto}.nav button.active{color:var(--accent);font-weight:750}.nav button.active .ni{background:var(--soft);color:var(--accent)}.nav button.active .ni:after{display:none}.nav svg{width:21px;height:21px}
#home .hero{padding:19px 19px 17px;background:var(--hero);color:var(--text);height:192px;margin:0 0 14px;border:1px solid color-mix(in srgb,var(--hero2) 50%,transparent);isolation:isolate}#home .hero .muted,#home .hero .tiny{color:var(--muted)}#home .hero .pill{color:var(--text);background:#ffffff9c;font-size:10px}#home .hero .amount{font-size:39px;letter-spacing:-2.2px;margin:16px 0 4px;line-height:1;color:var(--text)}#home .hero .amount small{font-size:12px;color:var(--muted)}#home .hero .pool-copy{position:relative;z-index:2;max-width:75%}#home .hero .hero-art{width:158px;height:158px;right:-5px;top:24px;opacity:1;z-index:0}#home .hero .divider{background:#25214117;margin:15px 0 10px}#home .hero .stat{font-size:15px}#home .hero .pool-stats{display:flex;gap:22px;position:relative;z-index:1}#home .clock{margin-top:0;padding:17px 18px}#home .clock .row h2{font-size:16px}#home .clock .label{text-align:left;margin:12px 0 7px}#home .digits{gap:5px;justify-content:flex-start;font-size:31px;color:var(--text);line-height:1}#home .digits span{flex:1;min-width:0;padding:10px 0;background:var(--bg);border:0;border-radius:12px}#home .time-units{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:center;margin:7px 0 13px}#home .clock .primary{margin-top:12px}#home .clock .tiny{margin-top:9px}#home .strip{margin-top:12px;padding:13px;box-shadow:none}#home .strip .avatar{border:2px solid white;width:32px;height:32px}#home .rules{font-size:11px;padding:12px 0 0}
#games .g-intro{margin:0 0 19px;position:relative;background:var(--ink);border-radius:24px;padding:19px;color:white;min-height:200px;overflow:hidden;isolation:isolate}#games .g-intro .g-copy{position:relative;z-index:1;width:63%}#games .g-intro .g-label{font:700 10px Arial;letter-spacing:2px;color:#ffffffaa}#games .g-intro h2{font-size:27px;letter-spacing:-1px;line-height:1.2;margin:12px 0 8px}#games .g-intro p{font-size:12px;color:#ffffffb8;line-height:1.6}#games .g-intro .g-btn{display:inline-flex;gap:8px;align-items:center;background:var(--accent2);color:#1e2620;padding:10px 13px;border-radius:10px;font-size:12px;font-weight:750;margin-top:16px}#games .g-art{position:absolute;right:-16px;bottom:-2px;width:184px;height:184px;z-index:0}#games .g-title{display:flex;justify-content:space-between;align-items:baseline;margin:17px 0 11px}#games .g-title h2{font-size:17px;letter-spacing:-.4px}#games .g-title small{font-size:11px;color:var(--muted)}#games .g-list{display:grid;gap:10px}#games .g-item{display:grid;grid-template-columns:74px 1fr 27px;gap:13px;align-items:center;text-align:left;width:100%;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:10px}#games .g-thumb{height:70px;border-radius:13px;display:grid;place-items:center;overflow:hidden}#games .g-thumb svg{width:64px;height:64px}#games .g-item strong{font-size:15px;display:block;margin-bottom:4px}#games .g-item small{color:var(--muted);font-size:11px}#games .g-arrow{color:var(--muted);font-size:20px;line-height:1}#games .g-note{font-size:11px;color:var(--muted);line-height:1.6;text-align:center;margin:14px 0 0}
#invite .hero{margin-top:0;background:var(--ink);min-height:180px;position:relative;overflow:hidden}#invite .hero::after{content:'';position:absolute;width:260px;height:260px;border:1px solid #ffffff15;border-radius:50%;right:-125px;top:-175px;box-shadow:0 0 0 20px #ffffff08,0 0 0 40px #ffffff08;pointer-events:none}#invite .hero .levels{margin-top:14px;background:#ffffff10;gap:1px}#invite .hero .level{background:#ffffff08;padding:9px 2px}#invite .level strong{font:750 23px/1.35 Arial}#invite .card{margin-top:13px}#invite .qr{width:106px;height:106px;border:0;box-shadow:0 0 0 1px var(--line);border-radius:13px;padding:8px}#invite .member{padding:11px 0}#invite .member .avatar{border:0}#invite .smallbtn{background:var(--accent);color:white;padding:9px 12px}#invite .invite-link{background:var(--bg);font-size:10px;padding:10px;line-height:1.5}
#me .page-heading{margin-bottom:14px}#me .profile{background:var(--panel);padding:13px;border:1px solid var(--line);border-radius:19px;gap:12px}#me .bigavatar{height:54px;width:54px;border-radius:17px;background:var(--soft);color:var(--accent)}#me .bigavatar svg{stroke:var(--accent);fill:none;width:30px;height:30px}#me .profile strong{font-size:18px}#me .wallet{margin-top:12px;border:none;background:var(--hero);color:var(--text);position:relative;overflow:hidden;padding:16px 18px}#me .wallet .muted,#me .wallet .balance small{color:var(--muted)!important}#me .wallet .smallbtn{background:#ffffff9c;color:var(--text)}#me .wallet .balance{font:750 34px/1.2 Arial;margin:10px 0 12px;letter-spacing:-1px}#me .actions button{border:1px solid #ffffff88;padding:10px;background:#ffffff95;color:var(--text)}#me .actions button:first-child{background:var(--accent);color:white;border-color:var(--accent)}#me .group-label{font-size:11px;margin:16px 0 7px;font-weight:650}#me .menu{padding:0 12px;border-radius:17px}#me .menu button{padding:9px 0;font-size:13px}#me .sym{width:32px;height:32px;border-radius:10px;background:var(--soft)}#me .sym svg{width:17px;height:17px}#me .arrow{font-size:18px}#me .footnote{margin:15px 0 0}
.record-summary{background:var(--ink)}.record-filters button[aria-pressed=true]{background:var(--accent);color:white}.theme-panel{max-width:400px}.theme-options button{border-radius:14px}.dialog{border-radius:24px}@media(max-width:350px){.page{padding-left:15px;padding-right:15px}#home .hero .amount{font-size:32px}#home .hero .hero-art{width:130px;height:130px}#games .g-art{width:150px;height:150px}#games .g-intro h2{font-size:24px}#home .hero .pool-stats{gap:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.hero .pool-copy{position:relative;z-index:1}.coupon-overview{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:14px 15px}.coupon-ticket{position:relative;min-width:98px;height:64px;border-radius:16px;background:linear-gradient(135deg,var(--accent),var(--ink));color:#fff;display:grid;place-items:center;overflow:hidden}.coupon-ticket:before,.coupon-ticket:after{content:"";position:absolute;top:50%;width:12px;height:12px;border-radius:50%;background:var(--bg);transform:translateY(-50%)}.coupon-ticket:before{left:-6px}.coupon-ticket:after{right:-6px}.coupon-ticket b{font-size:24px;line-height:1}.coupon-ticket small{display:block;font-size:10px;letter-spacing:.7px;opacity:.9}.coupon-copy{flex:1}.coupon-copy b{display:block;font-size:14px;margin-bottom:3px}.coupon-copy .muted{font-size:11px;line-height:1.5}.coupon-count{font-size:20px;color:var(--accent);font-weight:800}.coupon-tip{margin-top:8px;padding:12px 14px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}.coupon-tip .row{align-items:flex-start}.coupon-tip strong{font-size:13px}.coupon-tip .muted{font-size:11px;line-height:1.55}.coupon-rule{font-size:10px;color:var(--muted);margin-top:7px}.menu-meta{margin-left:auto;margin-right:8px;font-size:11px;color:var(--muted);white-space:nowrap}.coupon-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;background:var(--soft);color:var(--accent);font-size:10px;font-weight:700}.coupon-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ffffff25;border-radius:12px;overflow:hidden;margin-top:17px}.coupon-summary-grid .level{background:var(--ink)}.coupon-actions{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:14px}.coupon-actions .smallbtn{padding:9px 11px}.coupon-note{font-size:10px;color:var(--muted);text-align:center;margin:14px 0 0}.record-mark.ticket{font-size:15px;font-weight:800}.record-mark.expired{background:#eee;color:#7e7e7e}.record-mark.used{background:#e8f0ea;color:#2f7a57}.g-coupon{margin:0 0 14px;padding:14px 15px;border-radius:18px;background:var(--panel);border:1px solid var(--line)}.g-coupon h3{margin:0 0 4px;font-size:14px}.g-coupon .muted{font-size:11px;line-height:1.5}.g-coupon .row{align-items:center}.g-chip{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--soft);font-size:10px;color:var(--accent);font-weight:700}.g-item .badgeline{display:flex;gap:6px;align-items:center;margin-top:5px;flex-wrap:wrap}.g-item .badgeline .g-chip{padding:3px 7px}.g-intro .g-copy .coupon-badge{margin-top:12px;background:#ffffff16;color:#fff}.wallet-subline{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.wallet-subline .coupon-badge{background:#ffffff19;color:#fff}.wallet-subline .muted{color:#d6ded7;font-size:11px}

#home .hero .usdt-mark{width:92px!important;height:92px!important;right:18px;top:34px;opacity:1;filter:drop-shadow(0 5px 9px #174e3920)}#home .hero .pool-copy{max-width:100%;padding-right:76px}#home .hero .amount{white-space:nowrap}#home .hero .pool-stats{gap:18px}.coupon-overview{gap:10px;flex-wrap:wrap}.coupon-overview .coupon-ticket{min-width:74px;width:74px}.coupon-copy{min-width:116px}.coupon-links{display:flex;gap:6px;flex-direction:column;align-items:stretch;margin-left:auto}.coupon-use{border-radius:9px;background:var(--accent);color:white;font-size:12px;font-weight:700;padding:8px 10px;white-space:nowrap}.coupon-use:disabled{opacity:.45;cursor:default}.coupon-detail{font-size:11px;color:var(--accent);padding:3px 2px}.record-value .coupon-use{display:block;margin-top:5px}.record-body{min-width:0}.record-body strong{font-size:12px}.coupon-tip .coupon-badge{white-space:normal;max-width:115px}.coupon-tip .row>div{flex:1}#battleEntry{scroll-margin-top:12px}#battleEntry:focus{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:350px){#home .hero .usdt-mark{width:72px!important;height:72px!important;right:10px;top:42px}#home .hero .pool-copy{padding-right:64px}#home .hero .amount{font-size:30px!important}.coupon-links{flex-direction:row;width:100%;justify-content:flex-end}}
.coupon-timer{font-variant-numeric:tabular-nums;font-weight:750;color:var(--accent)!important;letter-spacing:.2px}.coupon-timer.coupon-urgent{color:#b64a29!important}.coupon-tip .row,.g-coupon .row{flex-wrap:wrap}.coupon-tip .coupon-badge,.g-coupon .g-chip,#walletCouponExpiry,#couponNearestExpiry{font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}.coupon-tip .coupon-badge,.g-coupon .g-chip{max-width:100%}

/* V6.4: restrained, integrated pool illustration */
#home .hero .usdt-mark{width:104px!important;height:104px!important;top:24px;right:12px;opacity:.94;filter:none;}
#home .hero .pool-copy{padding-right:96px;max-width:100%;}
#home .hero .amount{font-size:clamp(28px,9vw,39px);}
@media(max-width:360px){#home .hero .usdt-mark{width:80px!important;height:80px!important;right:10px;top:36px;}#home .hero .pool-copy{padding-right:68px;}#home .hero .amount{font-size:30px!important;}}

.language-panel{position:fixed;top:66px;left:50%;transform:translateX(-50%);width:min(calc(100% - 30px),398px);z-index:40;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:15px;box-shadow:0 12px 45px #13132325}.language-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.language-options button{border:1px solid var(--line);border-radius:10px;text-align:start;padding:10px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.language-options button[aria-pressed=true]{background:var(--soft);color:var(--accent);border-color:var(--accent);font-weight:750}.language-close{font-size:24px;line-height:1;width:28px;height:28px}.language-panel .row{align-items:center}.top-tools{flex-shrink:0}.top-tools button{flex-shrink:0}.coupon-copy,.record-body,.grow,.g-coupon .row>div{min-width:0}.coupon-overview .coupon-copy{flex:1;overflow-wrap:anywhere}.coupon-badge{white-space:normal;max-width:100%;overflow-wrap:anywhere}.coupon-tip .row,.g-coupon .row{flex-wrap:wrap}.coupon-tip .row>div,.g-coupon .row>div{flex:1 1 180px}.record-filters{flex-wrap:wrap}.record-filters button{flex:1 1 auto}.record-item{min-width:0}.record-value{max-width:40%;overflow-wrap:anywhere}.record-body{overflow-wrap:anywhere}.toast{white-space:normal;max-width:calc(100% - 28px);text-align:center;width:max-content}.page-heading h1{overflow-wrap:break-word}.nav button{font-size:11px;min-width:0;line-height:1.25}.menu button{min-width:0}.menu-meta{font-size:10px}.coupon-use,.coupon-detail{white-space:normal}.coupon-links{max-width:105px}.digits,.hero .amount,.balance,.coupon-timer,.coupon-count,.stat,.invite-link,.brand{direction:ltr;unicode-bidi:isolate}.g-intro .g-copy{text-align:start}.level strong{direction:ltr;unicode-bidi:isolate}.page{overflow-wrap:break-word}.qr{flex-shrink:0}.hero .pool-copy{max-width:72%}.hero .pool-copy .row{flex-wrap:wrap}.hero .pool-copy .pill{white-space:normal}.hero .pool-copy .amount{white-space:nowrap}.hero .pool-copy .amount small{display:block;margin-top:3px}.wallet-subline{flex-wrap:wrap}.record-summary .amount{white-space:normal}.coupon-actions{flex-wrap:wrap}.theme-options button{min-width:0;overflow-wrap:anywhere}.nav{direction:inherit}html[dir=rtl] .hero-art{right:auto!important;left:4px!important}html[dir=rtl] #games .g-art{right:auto;left:-16px}html[dir=rtl] .g-arrow,html[dir=rtl] .arrow,html[dir=rtl] .right,html[dir=rtl] .record-back svg{transform:scaleX(-1)}html[dir=rtl] .arrow,html[dir=rtl] .strip .right{margin-left:0;margin-right:auto}html[dir=rtl] .avatars .avatar{margin-left:0;margin-right:-7px}html[dir=rtl] .avatars .avatar:first-child{margin-right:0}html[dir=rtl] .menu-meta{margin-left:8px;margin-right:auto}html[dir=rtl] .profile{text-align:right}html[dir=rtl] #games .g-item{text-align:right}html[dir=rtl] .record-value{text-align:left}html[dir=rtl] .hero .pool-copy .amount{text-align:right}html[dir=rtl] .wallet .balance{text-align:right}html[dir=rtl] .coupon-copy{text-align:right}html[dir=rtl] .coupon-links{text-align:right}html[dir=rtl] .language-options button[data-lang-choice=he]{direction:rtl}html[dir=rtl] .g-intro .g-copy{margin-left:auto;margin-right:0}html[dir=rtl] .g-intro .g-copy{margin-inline-start:0;margin-inline-end:auto}html[dir=rtl] .menu button{text-align:right}@media(max-width:375px){.top{padding:0 13px}.top-tools{gap:4px}.top-tools button{width:32px;height:32px}.top .row{gap:5px}.coupon-ticket{min-width:68px!important}.coupon-overview{gap:8px!important;padding:11px!important}.coupon-links{max-width:82px}.record-item{gap:7px}.record-mark{width:28px;height:28px;flex-shrink:0}.record-value{font-size:11px}.wallet .actions button{padding:11px 5px}.nav button{font-size:10px}.hero .pool-copy .amount{font-size:32px!important}} 

/* V7.1: intrinsic-height pool card with separate text and artwork columns. */
#home .hero{display:grid;grid-template-columns:minmax(0,1fr) clamp(64px,21vw,94px);grid-template-areas:"copy coin" "line line" "stats stats";align-items:center;column-gap:10px;row-gap:0;height:auto!important;min-height:192px;padding:18px 18px 16px;}
#home .hero .pool-copy{grid-area:copy;min-width:0;max-width:none!important;padding:0!important;text-align:start;}
#home .hero .pool-copy .row{flex-wrap:wrap;justify-content:flex-start;gap:6px!important;align-items:center;}
#home .hero .pool-copy h2,#home .hero .pool-copy .pill{max-width:100%;overflow-wrap:anywhere;white-space:normal;}
#home .hero .pool-copy .amount{font-size:clamp(28px,8.5vw,38px)!important;line-height:1.15;letter-spacing:-1.5px;white-space:normal;overflow-wrap:normal;margin:12px 0 5px;text-align:start;direction:inherit;}
#home .hero .pool-copy .amount small{display:block;white-space:normal;line-height:1.4;margin-top:4px;}
#home .hero .pool-copy p{overflow-wrap:anywhere;line-height:1.5;}
#home .hero .usdt-mark{grid-area:coin;position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-width:94px;aspect-ratio:1;justify-self:center;align-self:center;z-index:0;}
#home .hero .divider{grid-area:line;width:100%;margin:13px 0 11px;}
#home .hero .pool-stats{grid-area:stats;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px!important;align-items:start;}
#home .hero .pool-stats>div{min-width:0;overflow-wrap:anywhere;}
#home .hero .pool-stats .stat{white-space:normal;direction:inherit;line-height:1.4;}
@media(max-width:350px){#home .hero{padding:15px 13px;grid-template-columns:minmax(0,1fr) 64px;column-gap:8px;}#home .hero .pool-copy .amount{font-size:28px!important;}}

/* ============ 登录/注册覆盖层 ============ */
#authOverlay{position:fixed;inset:0;background:linear-gradient(160deg,var(--ink),#101520);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}
#authOverlay .auth-card{width:100%;max-width:380px;background:var(--panel);border-radius:26px;padding:30px 26px;box-shadow:0 25px 70px #00000055}
.auth-logo{font-size:30px;letter-spacing:-2px;font-weight:900;line-height:1;color:var(--text)}
.auth-logo b{color:var(--accent)}
.auth-sub{font-size:11px;color:var(--muted);margin:6px 0 20px;letter-spacing:1px}
#authOverlay h2{font-size:22px;margin-bottom:16px}
.auth-err{font-size:12px;color:#c0392b;min-height:18px;margin-bottom:6px}
#authOverlay input{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;font-size:15px;background:var(--bg);color:var(--text);box-sizing:border-box}
#authOverlay input:focus{outline:2px solid var(--accent);outline-offset:1px}
.auth-btn{width:100%;padding:14px;border-radius:13px;background:var(--accent);color:white;font-weight:750;font-size:16px;margin-top:4px}
.auth-btn:disabled{opacity:.6}
.auth-switch{text-align:center;margin-top:16px;font-size:13px;color:var(--accent);cursor:pointer;font-weight:600}
.auth-langs{margin-top:20px;text-align:center}
.auth-langs select{padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font-size:13px;max-width:100%}
#authOverlay{display:none}
#authOverlay.show{display:flex}

/* ============ 游戏 iframe 覆盖层 ============ */
#gameFrameWrap{display:none;position:fixed;inset:0;z-index:60;background:#000}
#gameFrameWrap.show{display:flex;flex-direction:column}
#gameFrameWrap .back-bar{position:fixed;top:0;left:0;right:0;z-index:61;display:flex;padding:10px 14px;background:linear-gradient(#000c,#0000)}
#gameFrameWrap .back-bar button{display:flex;align-items:center;gap:4px;background:#00000090;color:#fff;border:1px solid #ffffff30;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600}
#gameFrameWrap .back-bar svg{width:18px;height:18px}
#gameFrame{flex:1;width:100%;border:0;background:#000}

/* ============ 补充 ============ */
.hidden{display:none!important}
#app.hidden{display:none}
.toast.err{background:#c0392b}
.credit{color:#2f9e6e}
html,body{overflow-x:hidden}
.app{width:100%;max-width:448px;min-height:100vh;min-height:100dvh;padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
img,svg,iframe{max-width:100%}


/* ============ 打卡规则 ============ */
.rule-entry{cursor:pointer}
.rule-entry:active{transform:scale(.97)}
.rule-entry .stat{transition:color .2s}
.rules-list{display:flex;flex-direction:column;gap:10px;text-align:left}
.rule-item{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--soft,#f5f4f8);border:1px solid var(--line,#e8e4dc)}
.rule-item .rule-num{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--gold));color:#fff;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px #0002}
.rule-item b{display:block;font-size:13px}
.rule-item p{margin:3px 0 0;font-size:12px;color:var(--muted);line-height:1.55}
.rule-entry .stat::after{content:" ›";font-weight:700}

.swap-box{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:6px 12px}
.swap-box input{flex:1;border:0;background:transparent;font-size:20px;font-weight:700;padding:8px 0;outline:none;color:var(--text);width:100%;min-width:0}
.swap-bal{font-size:11px;color:var(--muted);white-space:nowrap}
.swap-box.out{padding:12px;font-size:20px;font-weight:700;color:var(--text);min-height:46px}
.swap-flip{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--bg);font-size:18px;cursor:pointer;color:var(--text);line-height:1}

.coin-btn{flex:1;padding:10px 4px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);cursor:pointer;font-size:14px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1.1}
.coin-btn small{font-size:10px;color:var(--muted);font-weight:400}
.coin-btn.active{border-color:#f0b90b;background:#f0b90b;color:#1a1a1a}
.coin-btn.active small{color:rgba(26,26,26,.75)}

.stake-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.coin-btn.custom{background:transparent;border-style:dashed}

.swap-all{flex-shrink:0;padding:4px 9px;border:1px solid #f0b90b;border-radius:6px;background:transparent;color:#f0b90b;font-size:12px;font-weight:700;cursor:pointer}

.modal-btns{display:flex;gap:8px;margin-top:12px}
.modal-btns .primary{flex:1;width:auto;margin-top:0}
.ghost{flex:1;width:auto;padding:13px;min-height:48px;border:1px solid var(--line);border-radius:14px;background:transparent;color:var(--text);font-size:15px;font-weight:700;cursor:pointer}

.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.modal-head h2{margin:0}
.modal-x{width:32px;height:32px;border:none;background:transparent;color:var(--muted);font-size:26px;line-height:1;cursor:pointer;font-weight:300}

/* 榜单 tab 切换 */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.lb-tab { flex: 1; padding: 10px 0; background: var(--panel, #1a2030); border: 1px solid var(--border, #2a3348); border-radius: 10px; color: var(--muted, #8a93a6); font-size: 14px; font-weight: 600; cursor: pointer; }
.lb-tab.active { background: var(--gold, #e8c15a); color: #000; border-color: var(--gold, #e8c15a); }
.lb-pane { max-height: 60vh; overflow: auto; }
