:root{
  --wine:#741626;--wine2:#4b0e19;--navy:#081a2c;--teal:#075863;--teal2:#063941;
  --gold:#f3c85f;--gold2:#ffe7a0;--paper:#fff;--ink:#20242b;--muted:#7d838d;
  --red:#ed5757;--green:#119a70;--line:#e7e8ea;--soft:#f4f5f6;
  --safeT:env(safe-area-inset-top);--safeB:env(safe-area-inset-bottom)
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:#0c1724;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--ink)}
body{display:flex;justify-content:center}
button,input{font:inherit}button{touch-action:manipulation}img{display:block}
#app{width:100%;max-width:460px;min-height:100dvh;position:relative;overflow-x:hidden;background:#eef0f2}
.screen{display:none;min-height:100dvh;padding:calc(12px + var(--safeT)) 12px calc(20px + var(--safeB))}
.screen.active{display:block}
.world-bg{background:
 radial-gradient(circle at 75% 8%,#ffffff20 0 8%,transparent 24%),
 radial-gradient(circle at 20% 45%,#eb9b3c20,transparent 28%),
 linear-gradient(165deg,#811829 0%,#57101c 42%,#0a1c31 100%);color:#fff}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;color:#fff}
.brand{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:950;letter-spacing:.06em}
.ball{width:27px;height:27px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#dfe2e7 56%,#a8afb7);box-shadow:inset -5px -6px 8px #0002}
.pill,.timerPill{border:1px solid #ffffff30;background:#ffffff15;color:#fff;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;backdrop-filter:blur(8px)}
.timerPill{font-size:17px;color:var(--gold2);font-variant-numeric:tabular-nums;min-width:68px;text-align:center}
.kicker,.chapterNo{font-size:10px;font-weight:950;letter-spacing:.18em;color:var(--gold2)}
.btn{border:0;border-radius:14px;min-height:49px;font-weight:950;cursor:pointer}.wide{width:100%}.gold{background:linear-gradient(180deg,#ffe69a,#efc154);color:#493000;box-shadow:0 8px 22px #0002}.dark{background:#102f36;color:#fff}.glassBtn{background:#ffffff15;color:#fff;border:1px solid #ffffff1d}.smallbtn{min-height:38px;border-radius:11px;border:0;font-weight:850;padding:0 12px}
.fine{font-size:10px;color:#ffffffa8;line-height:1.5;text-align:center;margin-top:10px}
.glassCard{background:#ffffff12;border:1px solid #ffffff22;border-radius:20px;backdrop-filter:blur(12px)}
.activationHero{padding:54px 4px 28px}.wc-mark{font-size:54px;margin-bottom:13px}.activationHero h1,.introCopy h1{font-size:38px;line-height:1.08;letter-spacing:-.045em;margin:10px 0}.activationHero p{font-size:14px;line-height:1.8;color:#f6dfe3;margin:0}.activationCard{padding:16px}.activationCard label{font-size:11px;font-weight:900;display:block;margin-bottom:7px}.activationCard input{width:100%;height:52px;border:1px solid #ffffff25;background:#ffffff15;color:#fff;border-radius:13px;padding:0 12px;font-weight:900;letter-spacing:.05em;outline:none}.activationCard .btn{margin-top:10px}
.introScreen{position:relative;overflow:hidden}.introCopy{padding:72px 4px 8px}.introCopy p{font-size:14px;line-height:1.85;color:#f5dfe3;margin:14px 0}.introCopy b{color:#ffe28d}.introCopy .highlight{font-size:18px;font-weight:950;color:#fff;margin-top:20px}.introVisual{height:120px;position:relative;display:flex;align-items:center;justify-content:center}.trophy{font-size:66px;filter:drop-shadow(0 14px 24px #0005)}.timeline{position:absolute;bottom:0;left:12%;right:12%;height:3px;background:#ffffff30;display:flex;justify-content:space-between}.timeline i{width:10px;height:10px;border-radius:50%;background:var(--gold);transform:translateY(-3px)}.screenBottom{margin-top:auto;padding-top:22px}.introScreen.active{display:flex;flex-direction:column}
.memoryScreen{padding:0;background:
 radial-gradient(circle at 85% 6%,#ffffff1b 0 5%,transparent 18%),
 linear-gradient(180deg,#7b1526 0,#5b0f1e 38%,#12233b 70%,#071522 100%);color:#fff;min-height:100dvh}
.memorySticky{position:sticky;top:0;z-index:20;padding:calc(12px + var(--safeT)) 12px 11px;background:linear-gradient(180deg,#741526 0%,#741526ee 65%,#74152600 100%);backdrop-filter:blur(8px)}
.memoryLead{padding:11px 2px 4px}.memoryLead h2{font-size:28px;line-height:1.1;margin:6px 0}.memoryLead p{font-size:12px;line-height:1.65;color:#f5dce1;margin:0}
.memoryBody{padding:2px 12px 10px}.memoryStage{border:1px solid #ffffff22;background:#ffffff10;border-radius:18px;padding:12px;margin:10px 0;backdrop-filter:blur(8px)}.memoryStageTitle{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.memoryStageTitle h3{margin:0;font-size:18px;color:#ffe39a}.memoryStageTitle span{font-size:10px;color:#ffd6dd}.memoryDate{font-size:11px;color:#ffcfda;font-weight:900;margin:11px 0 6px}.memoryMatch{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center;background:#ffffff0d;border-radius:12px;padding:8px;margin:5px 0;font-size:11px;min-height:40px}.memoryTeam{display:flex;align-items:center;gap:6px;font-weight:800}.memoryTeam.right{justify-content:flex-end;text-align:right}.memoryTeam img{width:24px;height:16px;border-radius:2px;object-fit:cover;border:1px solid #ffffff35}.memoryScore{font-size:15px;font-weight:950;color:#ffe49a;white-space:nowrap}.memoryNote{font-size:9px;color:#ffffffaa;text-align:center;margin-top:3px}.memoryEnd{padding:20px 12px calc(28px + var(--safeB));text-align:center;background:#071522}.memoryEnd p{font-size:12px;color:#c9d3df;line-height:1.6}
.homeScreen{background:linear-gradient(180deg,#701525 0,#43111a 250px,#eef0f2 560px);color:#fff}.homeHero{padding:20px 2px 16px}.homeHero h1{font-size:32px;margin:7px 0 5px;line-height:1.08}.homeHero p{font-size:12px;color:#f2dce0;line-height:1.6;margin:0}.flagwall{display:flex;gap:7px;overflow:hidden;margin-top:14px}.flagwall img{width:31px;height:21px;object-fit:cover;border-radius:3px;box-shadow:0 1px 4px #0004;border:1px solid #ffffff55}.card{background:#fff;color:var(--ink);border-radius:18px;box-shadow:0 8px 22px #0c172018;border:1px solid #e9e9ea}.identityCard{padding:15px}.identity{display:flex;gap:12px;align-items:center}.avatar{width:76px;height:76px;border-radius:20px;background:linear-gradient(145deg,#f5dfb6,#fff7e6);display:grid;place-items:center;font-size:42px}.identity h2{font-size:22px;margin:0}.identity p{font-size:12px;color:var(--muted);line-height:1.55;margin:5px 0 0}.sub{font-size:10px;color:var(--muted);line-height:1.5}.progress{height:9px;background:#ece7de;border-radius:99px;overflow:hidden;margin-top:10px}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#b71f38,#f4c85c);border-radius:99px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.stat{background:#f8f7f4;padding:12px;border-radius:14px}.stat b{display:block;font-size:22px}.stat span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.daycard{padding:15px;margin-top:10px}.daytitle{display:flex;justify-content:space-between;align-items:flex-start}.daytitle h3{font-size:25px;margin:0}.dayCount{background:#741626;color:#fff;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:900}.stage{display:inline-block;background:#0c5763;color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;margin-top:8px}.dayFixtures{font-size:11px;color:#6f7580;line-height:1.65;margin:9px 0 12px}
.gameScreen{background:linear-gradient(180deg,#071f29 0,#083942 220px,#eef0f2 520px);color:#fff;padding-bottom:calc(110px + var(--safeB))}.gameBar{position:relative}.gameTop{padding:9px 2px 5px}.gameTop h2{font-size:26px;margin:3px 0}.gameTop p{margin:0;font-size:11px;line-height:1.55;color:#d1e5e6}.matchCard{background:#fff;color:var(--ink);border-radius:18px;margin:10px 0;overflow:hidden;box-shadow:0 8px 24px #14202618}.matchHeader{background:linear-gradient(90deg,var(--teal2),var(--teal));color:#fff;padding:9px 11px;display:flex;justify-content:space-between;align-items:center}.matchHeader b{font-size:12px}.matchHeader span{font-size:10px;color:#cbe3e5}.teams{display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;padding:12px 12px 8px;text-align:center}.teamFlag{width:52px;height:34px;object-fit:cover;margin:0 auto 6px;border-radius:4px;border:1px solid #d3d3d3;box-shadow:0 2px 5px #0002}.teamName{font-size:14px;font-weight:950}.vs{color:#a1a5aa;font-weight:900}.odds3{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e8e8e8;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8}.quickOpt{border:0;background:#fff;min-height:55px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2c3138}.quickOpt b{font-size:13px}.quickOpt small{font-size:12px;color:#747980;margin-top:3px}.quickOpt.selected{background:#fff0e7;color:#d83939;box-shadow:inset 0 0 0 2px #ef706a}.matchFoot{padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px}.pickSummary{font-size:10px;color:#747a82;line-height:1.45;flex:1}.expand{border:0;background:#f1f2f3;color:#343940;border-radius:10px;min-height:36px;padding:0 12px;font-weight:900}.perBet{padding:0 11px 11px}.perBetTitle{font-size:10px;color:#80858c;margin-bottom:6px}.stakes{display:flex;gap:6px;overflow:auto;scrollbar-width:none}.stakes::-webkit-scrollbar{display:none}.stake{border:1px solid #dedede;background:#fff;border-radius:10px;min-width:55px;height:36px;font-size:11px;font-weight:850}.stake.selected{background:#e94f54;border-color:#e94f54;color:#fff}.bottomAction{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(8px + var(--safeB));width:calc(min(460px,100%) - 24px);background:#0c4650;color:#fff;border-radius:17px;padding:10px;box-shadow:0 10px 30px #0003;z-index:50}.bottomAction .line{display:flex;align-items:center;justify-content:space-between;gap:10px}.bottomAction b{font-size:14px}.bottomAction small{font-size:10px;color:#bcd9dc}.bottomAction button{border:0;border-radius:13px;background:#ff5e5e;color:#fff;font-weight:950;min-height:45px;padding:0 20px}
.overlay{position:fixed;inset:0;background:#0009;z-index:999;display:none;align-items:center;justify-content:center;padding:calc(10px + var(--safeT)) 8px calc(10px + var(--safeB))}.overlay.open{display:flex}.sheet{width:min(100%,444px);height:min(93dvh,840px);background:#fff;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 70px #0007}.sheetTop{height:46px;flex:0 0 46px;display:flex;align-items:center;justify-content:center;padding:0 12px;color:#666;font-size:12px;border-bottom:1px solid #e8e8e8}.sheetHero{background:linear-gradient(90deg,#07505b,#087178);color:#fff;padding:12px 16px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;text-align:center;gap:8px}.sheetHero img{width:44px;height:29px;object-fit:cover;border-radius:4px;margin:auto;border:1px solid #ffffff55}.sheetHero b{font-size:16px;display:block;margin-top:5px}.sheetHero .v{font-size:12px;color:#b8e1e2}.sheetScroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:#fff;padding-bottom:12px}.marketSection{padding:14px 12px 4px}.sectionTitle{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.sectionTitle h3{margin:0;font-size:17px;display:flex;align-items:center;gap:7px}.sectionTitle h3:before{content:"";display:inline-block;width:3px;height:18px;border-radius:3px;background:#16b3a3}.marketHint{font-size:9px;color:#91969d}.optGrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.optGrid4{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.scoreGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.option{border:1px solid #ececec;background:linear-gradient(#fff,#fafafa);border-radius:9px;min-height:58px;padding:6px 3px;color:#30343a;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}.option b{font-size:14px}.option small{font-size:11px;color:#72777c;margin-top:3px}.option.selected{background:#fff0e9;border-color:#f06b62;box-shadow:inset 0 0 0 1px #f06b62;color:#d73535}.option.disabled{opacity:.35;cursor:not-allowed}.option.wide{grid-column:span 3}.dividerLabel{font-size:10px;color:#92979e;margin:10px 0 6px}.handicapLine{display:flex;align-items:center;gap:8px;background:#f4f7f7;border-radius:10px;padding:8px 10px;margin-bottom:8px;font-size:11px;color:#5c646c}.lineBubble{width:33px;height:33px;border-radius:50%;background:#e3f5ee;color:#20a579;display:grid;place-items:center;font-weight:950}.sheetPick{background:#f7f7f7;padding:9px 12px;font-size:10px;color:#626970;line-height:1.55;min-height:44px}.sheetFooter{flex:0 0 auto;border-top:1px solid #e6e6e6;background:#fff;padding:8px 10px calc(8px + var(--safeB));display:grid;grid-template-columns:92px 1fr;gap:8px}.sheetFooter button{border:0;border-radius:13px;min-height:48px;font-weight:950}.closeBtn{background:#f0f0f0;color:#333}.saveBtn{background:#e94f54;color:#fff}
.resultScreen{background:linear-gradient(180deg,#711726 0,#40111c 210px,#eef0f2 490px);color:#fff}.resultCard{background:#fff;color:var(--ink);border-radius:18px;padding:15px;margin-top:12px}.center{text-align:center}.bigDelta{text-align:center;font-size:44px;font-weight:950;color:#0b9b70;margin:10px 0}.bigDelta.bad{color:#d63c46}.resultList{margin-top:12px}.resultItem{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 0;border-top:1px solid #eee}.resultItem:first-child{border-top:0}.resultItem b{font-size:12px}.resultItem p{font-size:10px;color:#777;margin:3px 0 0;line-height:1.45}.gain{font-weight:950}.gain.bad{color:#d33}.gain.good{color:#09966a}
.toast{position:fixed;left:50%;bottom:calc(24px + var(--safeB));transform:translateX(-50%) translateY(20px);background:#1b2529;color:#fff;padding:10px 14px;border-radius:99px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;z-index:3000;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media (max-width:370px){.scoreGrid{grid-template-columns:repeat(4,1fr)}.homeHero h1,.gameTop h2{font-size:25px}.introCopy h1,.activationHero h1{font-size:34px}}
.bottomCopy{min-width:0;flex:1}.bottomBtns{display:flex;gap:7px;flex:0 0 auto}.bottomAction .allInBtn{background:#ffffff18;color:#fff;border:1px solid #ffffff28;padding:0 11px}.bottomAction #settleBtn{padding:0 15px}
.failureScreen.active{display:flex;flex-direction:column}.failureHero{padding:72px 4px 18px;text-align:center}.failureHero .fallen{font-size:66px;filter:grayscale(.25) drop-shadow(0 12px 24px #0005);transform:rotate(-12deg);margin-bottom:12px}.failureHero h1{font-size:36px;line-height:1.08;margin:10px 0 12px}.failureHero p{font-size:13px;line-height:1.75;color:#f2dce0;max-width:330px;margin:0 auto}.failureBalance{margin:28px auto 0;width:170px;height:96px;border-radius:20px;background:#ffffff10;border:1px solid #ffffff20;display:flex;flex-direction:column;align-items:center;justify-content:center}.failureBalance span{font-size:10px;color:#f1d6da}.failureBalance b{font-size:38px;color:#ffe396;line-height:1.1;margin-top:4px}.failureStats{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;color:#fff}.failureStats>div{background:#ffffff0a;border-radius:14px;padding:13px;text-align:center}.failureStats b{display:block;font-size:18px;color:#ffe396}.failureStats span{display:block;font-size:10px;color:#ead5d8;margin-top:4px}
@media (max-width:370px){.bottomBtns{gap:5px}.bottomAction .allInBtn,.bottomAction #settleBtn{padding:0 9px;font-size:11px}}
.perBetTitle{display:flex;align-items:center;justify-content:space-between}.perBetTitle span{font-size:9px;color:#a0a4aa;font-weight:700}
.multiplierRow{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}.multiplierControl{display:grid;grid-template-columns:34px 54px 34px;border:1px solid #dedede;border-radius:10px;overflow:hidden;background:#fff}.multBtn{border:0;background:#f4f5f6;height:36px;font-size:18px;font-weight:900;color:#364047}.multInput{width:54px;height:36px;border:0;border-left:1px solid #e4e4e4;border-right:1px solid #e4e4e4;text-align:center;font-size:13px;font-weight:950;color:#20242b;outline:none;background:#fff}.quickMult{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}.quickMult::-webkit-scrollbar{display:none}.multPreset{border:1px solid #e2e2e2;background:#fff;border-radius:9px;height:36px;min-width:47px;padding:0 7px;font-size:10px;font-weight:850;color:#555}.multPreset.selected{background:#fff0e7;border-color:#ef706a;color:#d83939}.matchAllIn{border:0;background:#0c5964;color:#fff;border-radius:10px;height:36px;padding:0 10px;font-size:10px;font-weight:950;white-space:nowrap}.matchAllIn.disabled{opacity:.35}.bottomBtns{display:flex;gap:7px;flex:0 0 auto}.bottomAction #settleBtn{padding:0 17px}
@media (max-width:390px){.multiplierRow{grid-template-columns:auto 1fr}.matchAllIn{grid-column:1/-1;width:100%}.quickMult{justify-content:flex-end}}
