:root{--ink:#101015;--panel:#211a25;--panel-l:#382b36;--panel-d:#17131d;--gold:#e4bd66;--gold-l:#fff0b6;--gold-d:#977135;--green:#8de0ad;--red:#f04470;--muted:#b8acbb;--safe:clamp(18px,3vw,48px)}
html,body{background:#101015;color:#fff;touch-action:none;font-family:Rubik,system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ffe6a5;outline-offset:4px}button:disabled{cursor:default;opacity:.5}.num{font-family:Rubik,system-ui,sans-serif;font-weight:750;letter-spacing:-.03em}.ol{text-shadow:0 2px 10px #0009}.px{border:1px solid #ffffff20;border-radius:20px;background:#211a25f5;box-shadow:0 24px 80px #0007}.btn,.btn.ghost,.step,.btn.green{border:1px solid #ffffff2d;box-shadow:none;border-radius:13px;background:#211b26ec;color:#fff;min-height:46px;padding:12px 20px;font:600 14px Rubik,system-ui;margin:0;transition:background .18s,transform .18s}.btn:hover,.step:hover{background:#44323e}.btn:active,.btn.green:active{transform:scale(.98);box-shadow:none}.btn.green,.btn.primary{background:linear-gradient(110deg,#f32d62,#b81043);border-color:#ff8093;box-shadow:0 8px 28px #df174742}.btn.gold{background:linear-gradient(110deg,#f5d883,#bf8d32);color:#25190b;border-color:#f6df9f}.btn.big{font-size:18px;padding:16px 30px;min-height:56px}.btn.ghost{background:#1c1922e8}.btn img.ic{width:21px}.lbl{font-size:10px;letter-spacing:.13em;color:#ddd1d8;font-weight:600}
#windBrand{position:fixed;z-index:12;top:var(--safe);left:var(--safe);display:flex;align-items:center;gap:10px;pointer-events:none;text-shadow:0 2px 12px #000b}#windBrand img{width:43px;height:43px;filter:drop-shadow(0 3px 7px #0008)}#windBrand strong{display:block;letter-spacing:.17em;color:#f4d688;font-size:12px}#windBrand small{font-size:11px;color:#e3dce7;display:block;margin-top:5px}#windToolbar{position:fixed;top:var(--safe);right:var(--safe);display:flex;gap:8px;z-index:13}#windToolbar button{min-width:46px;padding:11px 15px;background:#19131fde;backdrop-filter:blur(9px)}#setBtn1{display:none}.screen .logo{top:clamp(105px,14vh,160px);left:var(--safe);transform:none;text-align:left;white-space:normal}.screen .title{font-family:"Russo One",Rubik,sans-serif;max-width:560px;font-size:clamp(43px,6vw,80px);line-height:1.04;color:#fff;text-shadow:0 3px 0 #6d2541,0 8px 28px #120b16a8;letter-spacing:-.035em}.tagline{font-family:Rubik,sans-serif;font-weight:500;font-size:13px;letter-spacing:.04em;color:#ffe6ae;background:#241723dc;box-shadow:none;border:1px solid #f1c76c3d;border-radius:8px;padding:8px 12px;margin-top:14px}.menuStory{color:#fff;max-width:330px;font-size:15px;line-height:1.6;text-shadow:0 2px 8px #000;margin:15px 0 20px}.menuStats{display:flex;gap:24px}.menuStats b{display:block;color:#f9dc92;font-size:21px}.menuStats span{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#fff}.menuFeatures{display:flex;gap:9px;align-items:center;margin-top:20px}.menuFeatures .btn{background:#241524e8}.featureCount{color:#f4d68c;font-size:11px}.screen .msg{bottom:152px;font-size:17px;width:90%;white-space:normal;text-align:center}.bottombar.px{border:0;border-radius:0;background:transparent;box-shadow:none}.bottombar{bottom:var(--safe);width:calc(100% - 2 * var(--safe));max-width:1250px;padding:0;display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;align-items:end}.bottombar .cell{padding:12px 16px;background:#17121ddc;backdrop-filter:blur(12px);border:1px solid #ffffff24;border-radius:14px;min-height:85px}.bottombar .cell:nth-child(2){text-align:center}.bottombar .val{font-size:23px;color:#fff}.bottombar .lbl{margin-bottom:8px}.stepper{justify-content:space-between;gap:6px}.step{width:35px;height:35px;min-height:35px;padding:0;background:#43323dc9;border-radius:9px;font-size:20px}.stepper .val{min-width:60px}.bottombar #playBtn{width:100%;font-size:18px;min-height:59px;margin:0}.playArea{display:flex;flex-direction:column;gap:7px;text-align:center}.playCost{font-size:11px;color:#fff;text-shadow:0 1px 5px #000}.demoBadge{position:fixed;bottom:9px;left:50%;transform:translateX(-50%);z-index:11;pointer-events:none;font-size:9px;letter-spacing:.07em;color:#fff9;text-shadow:0 1px 4px #000}
#hud{z-index:9}#topL{top:108px;left:var(--safe)}#nickHud{font-size:12px;color:#ffe2a8}#powers{gap:6px}.pw .bar{width:65px;height:7px;padding:1px;border-radius:5px}.pw img.ic{width:22px}#multCard{top:103px;left:50%;padding:10px 18px;background:#1e1723d6;border:1px solid #e9bf6740;border-radius:14px;backdrop-filter:blur(8px);min-width:165px}#multTxt{font-size:32px;color:#f4d184}#betTxt{font-size:10px;font-weight:500}#dist{top:108px;right:var(--safe);font-size:18px;background:#211924d6;padding:10px 13px;border:1px solid #ffffff29;border-radius:10px}#runBar{height:5px;padding:0;width:135px;margin-top:10px;border-radius:6px;overflow:hidden}#runBar i{background:#efc46c}#heroBal{font-size:23px;opacity:.96}#windRunBottom{position:absolute;bottom:var(--safe);left:var(--safe);right:var(--safe);display:flex;justify-content:space-between;align-items:end;gap:16px;pointer-events:none}.runInfo{display:flex;gap:10px;align-items:end}.runPanel{background:#1c1622e0;backdrop-filter:blur(10px);border:1px solid #ffffff28;border-radius:13px;padding:12px 16px;color:#fff;max-width:240px}.runPanel span{font-size:10px;display:block;color:#cbbac9;margin-bottom:6px}.runPanel b{font-size:15px}.chaseBar{height:4px;background:#ffffff23;border-radius:4px;width:150px;margin-top:9px;overflow:hidden}.chaseBar i{display:block;height:100%;background:#f3446f;transition:width .2s}.runActions{display:flex;gap:8px;pointer-events:auto}.runActions .btn{background:#211623ed;min-height:52px}#cashoutBtn{background:linear-gradient(110deg,#f6d580,#bd8b31);color:#241606;font-size:15px;min-width:170px}.activeFeatures{display:flex;gap:7px;flex-wrap:wrap;max-width:250px;margin-top:8px}.activeFeatures em{font-style:normal;font-size:10px;background:#3c2b30;border:1px solid #dcbd735e;padding:6px 9px;border-radius:7px;color:#fce5a9}
.windOverlay{position:fixed;inset:0;z-index:25;padding:28px;display:grid;place-items:center;background:#0d0817ac;backdrop-filter:blur(10px);touch-action:auto;overflow:auto}.windModal{position:relative;width:min(870px,100%);max-height:calc(100dvh - 56px);overflow:auto;background:linear-gradient(135deg,#2b202d,#19151f 65%);border:1px solid #bf96574a;border-radius:24px;padding:32px;box-shadow:0 35px 100px #0008;color:#fff;text-align:left;scrollbar-width:thin;scrollbar-color:#70444f transparent}.modalHead{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:600;color:#dab865;text-transform:uppercase;margin-bottom:8px}.windModal h2{font-size:29px;letter-spacing:-.04em;line-height:1.15;margin:0 0 9px}.windModal p{font-size:13px;line-height:1.65;color:#c7bacb;margin:8px 0}.windModal .x{width:40px;min-width:40px;padding:0;font-size:24px}.featureGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.featureCard{border:1px solid #ffffff1c;border-radius:17px;background:#ffffff04;padding:20px;display:flex;flex-direction:column;gap:10px;min-width:0}.featureCard.selected{border-color:#e5bd70;background:linear-gradient(140deg,#b8862530,#f2276510);box-shadow:inset 0 0 0 1px #e5bd7060}.featureCard .symbol{height:60px;width:60px;display:grid;place-items:center;font-size:27px;font-weight:800;color:#f8dd94;background:radial-gradient(#d9a34c29,#c47d1700);border:1px solid #e0b96350;border-radius:17px;margin-bottom:5px}.featureCard h3{font-size:16px;margin:0;line-height:1.3;min-height:42px}.featureCard p{font-size:12px;margin:0;flex:1}.featurePrice{font-size:21px;color:#f4d17c;font-weight:700}.featurePrice small{display:block;font-size:10px;color:#b5a9b8;font-weight:400;margin-top:5px}.featureCard .btn{width:100%}.shopFooter{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px;padding-top:22px;border-top:1px solid #ffffff12}.shopFooter strong{display:block;color:#ffe5a0;font-size:22px;margin-top:5px}.shopFooter small{color:#c6b4c4}.rulesGrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ruleBlock{padding:18px;border:1px solid #ffffff14;border-radius:14px;background:#ffffff03}.ruleBlock h3{font-size:15px;margin:0 0 10px;color:#f4d17e}.keys{display:flex;gap:8px;margin-top:15px}.keys kbd{background:#ffffff0b;border:1px solid #ffffff35;border-radius:7px;padding:8px 12px;font-family:inherit}.finePrint{font-size:11px!important;color:#b3a2b5!important}.historyTools{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.historyTools select{background:#2d2432;color:#fff;border:1px solid #ffffff2a;border-radius:10px;padding:9px;min-height:42px;font-size:12px}.historyTable{width:100%;border-collapse:collapse;font-size:12px}.historyTable th{color:#b7a9be;text-align:left;font-size:10px;font-weight:500;padding:12px 8px;border-bottom:1px solid #ffffff20}.historyTable td{padding:15px 8px;border-bottom:1px solid #ffffff0e}.historyTable .btn{font-size:10px;min-height:30px;padding:6px 10px}.positive{color:#8ee6ae}.negative{color:#ff8d9f}.historyEmpty{padding:50px 20px;text-align:center;color:#baa9bd;font-size:14px}.historyNet{text-align:right;white-space:nowrap}.chestTitle{text-align:center}.chestTitle h2{font-size:35px}.chestValue{text-align:center;font-size:13px;margin:14px 0 23px;color:#cbbdd0}.chestValue b{font-size:26px;color:#ffe5a3;display:block;margin-top:7px}.chestGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;padding:15px 0 25px}.chestChoice{border:1px solid #d3aa5b54;background:radial-gradient(ellipse at 50% 40%,#bc793624,#19131e);border-radius:17px;min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#eadcba;transition:transform .3s,border .3s}.chestChoice:not(:disabled):hover{transform:translateY(-6px);border-color:#f1d285}.chestArt{width:85px;height:64px;position:relative;background:linear-gradient(90deg,#493019,#946039 25%,#573620 70%,#382114);border:4px solid #c39950;border-radius:10px 10px 6px 6px;box-shadow:inset 0 -5px #27150e,0 12px 25px #0008}.chestArt:before{content:'';position:absolute;left:-4px;right:-4px;height:6px;top:23px;background:#d2a356}.chestArt:after{content:'W';position:absolute;left:calc(50% - 10px);top:20px;width:20px;height:24px;background:#f4d67a;border-radius:3px;color:#775020;font-size:13px;line-height:24px;font-weight:800}.chestChoice.revealed .chestArt{transform:perspective(200px) rotateX(-18deg);filter:drop-shadow(0 0 16px #eac76b80)}.chestChoice.chosen{border:2px solid #f1cf7d;background:radial-gradient(#b17f3c4d,#1a131f);opacity:1}.chestChoice span{font-size:12px}.chestChoice strong{font-size:17px;color:#f6d98e;min-height:22px}.chestFoot{color:#ac9caf;text-align:center;font-size:11px;line-height:1.7}.chestResult{text-align:center;min-height:50px;font-size:19px;font-weight:700;color:#f7d68d}.chestContinue{display:block;margin:0 auto!important;min-width:190px}.portalToast{position:fixed;z-index:15;top:31%;left:50%;transform:translateX(-50%);padding:18px 30px;border:1px solid #ca8fff99;border-radius:16px;background:#261435e8;box-shadow:0 0 50px #a840ef50;text-align:center;pointer-events:none}.portalToast span{color:#d3adee;font-size:10px;letter-spacing:.2em}.portalToast b{display:block;font-size:40px;color:#fff;margin-top:4px}.portalToast.bad{border-color:#f97393}.portalToast.bad b{color:#ff91ad}
#windLoading{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:radial-gradient(ellipse at 50% 30%,#3e1e35,#100e16 70%);color:#fff;transition:opacity .35s}#windLoading img{width:74px;filter:drop-shadow(0 0 26px #e7c76a25)}#windLoading h1{font:32px "Russo One",sans-serif;margin:0}#windLoading p{font-size:12px;color:#b7a1b5}.loadRail{width:min(260px,60vw);height:3px;background:#ffffff15;border-radius:5px;overflow:hidden}.loadRail i{display:block;width:15%;height:100%;background:linear-gradient(90deg,#f13263,#edcc77);transition:width .25s}.overlay{background:#0f0a17bb;backdrop-filter:blur(10px);padding:28px;gap:15px;touch-action:auto;overflow:auto}.overlay .sub{font-size:32px;max-width:90%;text-align:center}.overlay .bigamt{font-size:38px}.overlay .card{min-width:min(320px,100%)}.overlay .row{gap:10px}.overlay .why{font-size:13px;max-width:480px;line-height:1.6}.panel h3{font:700 25px Rubik;margin-bottom:25px}.panel .close{left:auto;right:15px;top:15px}.set input,.set select{background:#18131f;color:#fff;border:1px solid #ffffff25;border-radius:8px;min-height:38px;font-size:13px}.set input:focus,.set select:focus{background:#251e2c}.set .t{font-size:13px}.tile{box-shadow:none;border-radius:10px;background:#ffffff08;width:38px;height:38px}.tile img.ic{width:25px}.switch{border:1px solid #fff2;box-shadow:none;border-radius:20px;height:28px;width:54px}.switch:after{border-radius:50%;width:18px;height:18px;box-shadow:none}.switch.on:after{left:30px}.switch.on{background:#a87a36}#dealRisk{display:none}.dealTitle{font-size:28px}.dealText{font-size:16px}.deal{padding:28px}#banner{font-size:40px;white-space:normal;text-align:center;width:85%}
@media(max-width:700px){:root{--safe:18px}#windBrand{top:18px}#windBrand img{width:34px;height:34px}#windBrand strong{font-size:9px}#windBrand small{font-size:9px}#windToolbar{gap:5px;top:17px}#windToolbar button{font-size:11px;padding:9px;min-width:38px;min-height:38px}#windToolbar .long{display:none}.screen .logo{top:98px;left:22px}.screen .title{font-size:43px;max-width:300px}.tagline{font-size:10px;margin-top:10px}.menuStory{font-size:12px;max-width:255px;margin:10px 0 16px}.menuStats{gap:20px}.menuStats b{font-size:18px}.menuStats span{font-size:8px}.menuFeatures{margin-top:13px}.menuFeatures .btn{font-size:11px;padding:10px 14px;min-height:40px}.bottombar{grid-template-columns:1fr 1fr;gap:10px;bottom:28px}.bottombar .cell{padding:10px 12px;min-height:76px}.bottombar .val{font-size:19px}.bottombar .lbl{font-size:8px;letter-spacing:.08em}.playArea{grid-column:1/-1}.bottombar #playBtn{min-height:53px;font-size:16px}.playCost{font-size:10px}.screen .msg{bottom:203px;font-size:13px}#topL{top:80px;left:18px}#nickHud{display:none}#multCard{top:76px;padding:9px 13px;min-width:125px}#multTxt{font-size:27px}#betTxt{font-size:9px}#runBar{width:100px}#dist{top:80px;font-size:13px;padding:8px 10px}#powers{gap:7px}.pw .bar{display:none}.pw img.ic{width:24px}#windRunBottom{bottom:27px;gap:10px;display:grid;grid-template-columns:1fr}.runInfo{justify-content:space-between;align-items:stretch;gap:9px}.runPanel{padding:10px 12px;border-radius:11px;max-width:none;flex:1}.runPanel span{font-size:8px;margin-bottom:5px}.runPanel b{font-size:12px}.chaseBar{width:100%;max-width:135px}.activeFeatures{margin-top:6px;max-width:100%;gap:4px}.activeFeatures em{font-size:8px;padding:4px}.runActions{display:flex;gap:8px}.runActions .btn{min-height:47px}.runActions #cashoutBtn{flex:1;font-size:13px}.runActions #pauseBtn{padding:10px 15px}#heroBal{font-size:19px}.windOverlay{padding:14px}.windModal{padding:23px 18px;border-radius:20px;max-height:calc(100dvh - 28px)}.modalHead{margin-bottom:18px}.windModal h2{font-size:23px}.windModal p{font-size:12px}.featureGrid{grid-template-columns:1fr;gap:9px}.featureCard{padding:14px;display:grid;grid-template-columns:48px 1fr auto;gap:7px 12px;align-items:center}.featureCard .symbol{grid-row:1/4;width:47px;height:52px;font-size:24px;margin:0}.featureCard h3{font-size:13px;min-height:0;grid-column:2/-1}.featureCard p{font-size:10px;grid-column:2/-1}.featurePrice{font-size:16px;grid-column:2;align-self:center}.featurePrice small{display:none}.featureCard .btn{grid-column:3;font-size:11px;min-height:34px;padding:8px 12px}.shopFooter{margin-top:17px;padding-top:16px}.shopFooter .btn{font-size:12px;padding:12px;min-height:45px}.shopFooter strong{font-size:20px}.shopFooter small{font-size:10px}.rulesGrid{grid-template-columns:1fr;gap:10px}.ruleBlock{padding:14px}.ruleBlock h3{font-size:13px}.chestTitle h2{font-size:25px}.chestGrid{gap:8px;padding-top:5px}.chestChoice{min-height:155px;gap:13px;border-radius:13px}.chestArt{width:60px;height:49px;border-width:3px}.chestArt:before{top:17px;left:-3px;right:-3px}.chestArt:after{top:15px;height:20px;line-height:20px}.chestChoice strong{font-size:12px}.chestChoice span{font-size:10px}.chestValue b{font-size:23px}.chestResult{font-size:17px}.historyTable{font-size:10px}.historyTable th,.historyTable td{padding:11px 4px}.historyTable .btn{padding:5px;font-size:9px;max-width:62px;overflow:hidden;text-overflow:ellipsis}.historyTools{flex-wrap:wrap;gap:7px}.historyTools select{font-size:10px}.historyTable .optional{display:none}.historyTools p{margin:0}.overlay .sub{font-size:26px}.overlay .bigamt{font-size:32px}.overlay .kv{font-size:13px}.overlay .btn.big{font-size:15px}#banner{font-size:29px}.portalToast{padding:14px 25px;top:29%}.portalToast b{font-size:33px}}
@media(max-height:620px) and (min-width:701px){.screen .logo{top:87px}.screen .title{font-size:46px}.menuStory{font-size:12px;margin:8px 0}.menuStats,.menuFeatures{margin-top:9px}.bottombar .cell{min-height:70px}.bottombar{bottom:22px}.screen .msg{bottom:110px}.menuStats b{font-size:17px}.windModal{padding:22px}.featureCard{padding:14px}.featureCard .symbol{height:43px;width:43px}.featureCard h3{font-size:14px;min-height:30px}#multCard{top:88px}#topL,#dist{top:93px}}
.menuFeatures .btn.gold{background:linear-gradient(110deg,#f5d883,#bf8d32);color:#25190b;pointer-events:auto}.featureCount{text-shadow:0 1px 6px #000}
@media(max-width:700px){.bottombar{grid-template-columns:.85fr 1.15fr}.bottombar .stepper{gap:4px}.bottombar .stepper .val{min-width:36px;font-size:18px;flex:1}.bottombar .step{width:32px;min-width:32px;flex-shrink:0}}
@media(max-width:360px){.bottombar .cell:first-child .val{font-size:15px}.screen .title{font-size:38px}.screen .logo{right:18px}.menuFeatures{gap:7px}.featureCount{font-size:9px}}
@media(max-height:560px) and (min-width:701px){:root{--safe:16px}#windBrand{top:16px}#windBrand img{width:32px;height:32px}#windToolbar{top:16px}.screen .logo{top:80px}.screen .title{font-size:36px}.screen .tagline,.menuStory,.menuStats{display:none}.menuFeatures{margin-top:12px}.bottombar{bottom:18px;gap:15px}.bottombar .cell{min-height:65px;padding:10px 14px}.bottombar #playBtn{min-height:45px}.bottombar .val{font-size:20px}.bottombar .lbl{font-size:8px;margin-bottom:5px}.playCost{font-size:9px}.screen .msg{bottom:90px;font-size:12px}#multCard{top:16px;min-width:110px;padding:6px 12px}#multTxt{font-size:22px}#betTxt{font-size:8px}#runBar{width:100px;margin-top:5px}#topL,#dist{top:77px}#windRunBottom{bottom:18px}.runPanel{padding:9px 12px}.runPanel span{font-size:8px}.runPanel b{font-size:11px}.chaseBar{width:110px}.runActions .btn{min-height:44px;font-size:12px}.activeFeatures em{font-size:8px}.demoBadge{bottom:3px;font-size:7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.portalToast,.chestChoice{transition:none!important}}

/* The canvas owns swipes; dialogs retain native vertical touch scrolling. */
html,body{overscroll-behavior:none;touch-action:manipulation;-webkit-touch-callout:none}
body>canvas{touch-action:none;overscroll-behavior:none}
.windOverlay,.overlay{touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
.windModal,.panel{touch-action:pan-y pinch-zoom;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#fullscreenBtn{min-width:48px;font-size:22px;padding:9px 12px}

/* Gilded chest: the lid, lock, treasure and burst animate independently. */
.chestGrid{gap:16px;padding:20px 0 24px}
.chestChoice{position:relative;overflow:hidden;min-height:265px;gap:12px;background:radial-gradient(ellipse at 50% 55%,#7c492a25,transparent 65%),linear-gradient(160deg,#30212f,#18141d);border-color:#d6ad5a4f;box-shadow:inset 0 1px #ffe3ac0f,0 12px 30px #0003;isolation:isolate}
.chestChoice:not(:disabled):hover{border-color:#f5d991;background:radial-gradient(ellipse at 50% 55%,#be83353c,transparent 65%),linear-gradient(160deg,#372431,#211821);box-shadow:0 0 25px #c78c2820,inset 0 1px #ffe4af2d}
.chestChoice:not(:disabled):hover .chestArt{transform:translateY(-4px) rotate(-2deg)}
.chestArt{position:relative;width:160px;height:145px;max-width:90%;background:none;border:0;border-radius:0;box-shadow:none;transform:none;transition:transform .35s ease;perspective:500px;isolation:isolate}
.chestArt:before,.chestArt:after{display:none}
.chestShadow{position:absolute;left:9%;right:2%;height:15%;bottom:0;border-radius:50%;background:#07050be0;filter:blur(5px);transform:rotate(-4deg)}
.chestBase{position:absolute;left:8%;right:8%;bottom:9%;height:45%;border:3px solid #c69b4d;border-radius:3px 3px 10px 10px;background:linear-gradient(90deg,#2b121a,#6b2330 22%,#3d1523 60%,#1c111a);box-shadow:inset 0 6px #110912,inset 0 -7px #1d101b,4px 5px 0 #5c421e,0 12px 18px #0006;transform:perspective(500px) rotateY(-14deg);z-index:3}
.chestBase:before,.chestBase:after,.chestLid:before,.chestLid:after{content:'';position:absolute;top:0;bottom:0;width:12%;background:linear-gradient(90deg,#8c6429,#edcc78 45%,#ab7d32);border-left:1px solid #ffedb04d;border-right:1px solid #543913}
.chestBase:before,.chestLid:before{left:12%}.chestBase:after,.chestLid:after{right:12%}
.chestBase i{position:absolute;inset:6px 4px 8px;border:1px solid #e7b96130;border-radius:2px;background:repeating-linear-gradient(0deg,transparent 0 14px,#03010744 15px 16px)}
.chestLid{position:absolute;left:8%;right:8%;top:14%;height:39%;border:3px solid #dfb963;border-bottom:5px solid #f2cb76;border-radius:26px 26px 3px 3px;background:linear-gradient(180deg,#a34743,#532032 50%,#351225);box-shadow:inset 0 4px #ffb58230,3px 3px 0 #775629;transform-origin:50% 100%;transform:rotateY(-14deg);z-index:6;transition:transform .85s cubic-bezier(.2,.8,.2,1);transition-delay:var(--reveal-delay)}
.chestLid i{position:absolute;inset:6px 5px;border:1px solid #d5a55980;border-radius:20px 20px 0 0;background:radial-gradient(ellipse at 50% 0,#eec98030,transparent 60%)}
.chestLock{position:absolute;z-index:8;left:calc(50% - 13px);top:48%;width:26px;height:32px;border:2px solid #ffe6a2;border-radius:5px;background:linear-gradient(100deg,#af7b2d,#f1ce75 55%,#b98939);box-shadow:0 4px 7px #0007;color:#533119;font-size:14px;line-height:28px;font-weight:900;transition:transform .4s,opacity .4s;transition-delay:var(--reveal-delay)}
.chestTreasure{position:absolute;left:14%;right:14%;top:46%;height:25%;opacity:0;z-index:2;transition:opacity .3s;transition-delay:calc(var(--reveal-delay) + 150ms);background:radial-gradient(ellipse,#fff7c5,#f2c963 30%,#ffc95500 74%);filter:drop-shadow(0 0 13px #f9c657)}
.chestTreasure i{position:absolute;bottom:10%;left:10%;width:25%;height:24%;border:2px solid #fff0a3;border-radius:50%;background:#dca237;box-shadow:0 -4px #bf8334,0 -7px #f8d981}
.chestTreasure i:nth-child(2){left:32%;bottom:22%}.chestTreasure i:nth-child(3){left:57%;bottom:6%}.chestTreasure i:nth-child(4){left:47%;bottom:42%}.chestTreasure i:nth-child(5){left:12%;bottom:37%}
.chestRay{position:absolute;width:160%;height:160%;left:-30%;top:-40%;background:repeating-conic-gradient(from 10deg,#fbd98200 0deg 15deg,#fbeab529 18deg 20deg,#fbd98200 27deg 45deg);border-radius:50%;opacity:0;filter:blur(2px);z-index:0}
.coinBurst{position:absolute;inset:0;z-index:10;pointer-events:none}.coinBurst i{position:absolute;left:calc(50% - 5px);top:53%;width:10px;height:13px;border:2px solid #ffedb7;background:#dab459;border-radius:50%;opacity:0;box-shadow:0 0 10px #ffd75d55}
.chestChoice.revealed .chestArt{transform:none;filter:none}
.chestChoice.revealed .chestLid{transform:rotateY(-14deg) rotateX(-112deg) translateY(-5px)}
.chestChoice.revealed .chestLock{transform:translateY(14px) rotate(28deg);opacity:0}
.chestChoice.revealed[data-prize=win] .chestTreasure{opacity:1}
.chestChoice.revealed[data-prize=win] .chestRay{animation:chestRays 5s linear infinite;animation-delay:var(--reveal-delay)}
.chestChoice.chosen[data-prize=win] .coinBurst i{animation:chestCoin 1.1s cubic-bezier(.15,.7,.25,1) both;animation-delay:calc(var(--delay) + 200ms)}
.chestChoice.revealed:not(.chosen){opacity:.53}
.chestChoice.chosen{border-color:#f8df9d;box-shadow:0 0 0 1px #f5d78280,0 0 40px #e7a32929,inset 0 0 45px #fbc26a10}
.chestChoice.revealed[data-prize=empty] .chestBase{background:linear-gradient(90deg,#211524,#442036,#231421)}
.chestChoice span{color:#e1caaa;font-size:11px;position:relative;z-index:12}
.chestChoice strong{font-size:15px;min-height:23px;position:relative;z-index:12}
.chestChoice.revealed strong{animation:chestLabel .8s both;animation-delay:var(--reveal-delay)}
@keyframes chestRays{from{opacity:.75;transform:rotate(0)}to{opacity:.75;transform:rotate(360deg)}}
@keyframes chestCoin{0%{opacity:0;transform:translate(0,0) scale(.4)}18%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(var(--tx),var(--ty)) rotate(var(--rotate)) scale(.65)}}
@keyframes chestLabel{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.chestGrid{gap:8px;padding:10px 0 20px}.chestChoice{min-height:191px;gap:10px;border-radius:13px}.chestArt{width:106px;height:106px;max-width:96%}.chestBase,.chestLid{border-width:2px}.chestLid{border-bottom-width:4px;border-radius:19px 19px 2px 2px}.chestLock{left:calc(50% - 10px);width:20px;height:26px;font-size:11px;line-height:22px}.chestChoice span{font-size:9px}.chestChoice strong{font-size:11px;max-width:95%;line-height:1.5}.chestChoice .chestShadow{bottom:0}.chestTitle h2{font-size:24px}.chestValue{margin:10px 0 15px}.chestValue b{font-size:23px}.chestFoot{font-size:10px}.chestContinue{min-height:45px}.coinBurst i{width:7px;height:10px;border-width:1px}}
@media(prefers-reduced-motion:reduce){.chestChoice *{animation:none!important;transition-duration:.01ms!important;transition-delay:0ms!important}.chestChoice.revealed strong{opacity:1}.chestChoice.revealed[data-prize=win] .chestRay{opacity:.4}}

.metroLogo{width:min(400px,65vw);height:auto;max-height:28vh;object-fit:contain}.returnGames{position:fixed;z-index:12;top:max(12px,env(safe-area-inset-top));left:12px;color:#efdbb0;text-decoration:none;font:600 12px Rubik;background:#17141ecc;padding:10px;border:1px solid #ae884a66;border-radius:10px}#windBrand{left:90px}#netNotice{position:fixed;z-index:80;top:80px;left:50%;transform:translateX(-50%);max-width:90vw;background:#261e2c;color:#fff2db;border:1px solid #a77c42;padding:12px 18px;border-radius:12px;font:500 14px Rubik}.demoBadge{font-size:10px}

@media(max-width:480px){#windBrand small{display:none}#windBrand{left:83px;max-width:140px}#windBrand strong{font-size:10px}}

/* Metro welcome card: all geometry is relative to the viewport, outside the live HUD. */
#menu .logo{top:clamp(84px,10vh,118px);width:340px;max-width:calc(100vw - 2 * var(--safe));left:var(--safe);display:flex;flex-direction:column;align-items:flex-start;gap:12px}#menu .title{margin:0;line-height:0;width:100%;text-shadow:none}#menu .metroLogo{display:block;width:280px;max-width:100%;height:auto;max-height:200px;object-fit:contain;object-position:left center;filter:drop-shadow(0 8px 18px #0005)}
.metroWelcome{width:100%;box-sizing:border-box;padding:20px;border:1px solid #cba65870;border-radius:20px;background:linear-gradient(135deg,#2a1a29f7,#14121cf5 80%);box-shadow:0 14px 38px #0005,inset 0 1px #fff1;backdrop-filter:blur(12px);color:#f5edf3;pointer-events:none;text-shadow:none}.metroWelcome .tagline{display:block;margin:0;padding:0;border:0;background:none;box-shadow:none;color:#e5c47e;font-size:10px;font-weight:800;line-height:1.4;letter-spacing:.1em;border-radius:0}.metroWelcome .menuStory{max-width:none;color:#f2e9ef;text-shadow:none;font-size:13px;line-height:1.55;letter-spacing:0;font-weight:500;margin:11px 0 16px}.metroWelcome .menuStats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0}.metroWelcome .menuStats>div{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:11px 12px;border:1px solid #ba915741;background:#0e0c1594;border-radius:12px}.metroWelcome .menuStats .statIcon{position:absolute;right:11px;top:11px;color:#caa65d;font-size:14px;line-height:1}.metroWelcome .menuStats b{font-size:21px;line-height:1.12;letter-spacing:-.03em;color:#ffe0a0;padding-right:12px}.metroWelcome .menuStats span:not(.statIcon){display:block;margin-top:6px;font-size:9px;font-weight:500;line-height:1.35;letter-spacing:0;text-transform:none;color:#c2b5c4}.metroWelcome .menuFeatures{display:flex;flex-direction:column;gap:7px;align-items:stretch;margin:15px 0 0}.metroWelcome .menuFeatures .btn.gold{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:11px 12px;min-height:44px;background:linear-gradient(110deg,#ffe3a0,#d6a644);border-color:#f3d58e;border-radius:11px;color:#241805;font-size:12px;font-weight:750;line-height:1.2;box-shadow:0 5px 17px #b77a1529}.metroWelcome .featureCount{display:block;text-align:center;font-size:9px;color:#bcaebe;text-shadow:none;font-weight:400;line-height:1.3}
@media(min-width:1100px) and (min-height:820px){#menu .logo{width:360px;gap:16px}#menu .metroLogo{width:305px}.metroWelcome{padding:22px}.metroWelcome .menuStory{font-size:14px}}
@media(max-width:700px){#menu .logo{left:18px;top:78px;width:300px;max-width:calc(100vw - 36px);gap:9px}#menu .metroLogo{width:220px;max-height:148px}.metroWelcome{padding:15px 16px;border-radius:17px}.metroWelcome .tagline{font-size:9px}.metroWelcome .menuStory{font-size:12px;line-height:1.5;margin:9px 0 12px}.metroWelcome .menuStats{gap:8px}.metroWelcome .menuStats>div{padding:10px}.metroWelcome .menuStats b{font-size:20px}.metroWelcome .menuStats span:not(.statIcon){font-size:8px}.metroWelcome .menuFeatures{margin-top:12px;gap:6px}.metroWelcome .menuFeatures .btn.gold{font-size:12px;min-height:43px}.metroWelcome .featureCount{font-size:9px}}
@media(max-width:700px) and (max-height:720px){#menu .logo{top:72px;width:284px;gap:7px}#menu .metroLogo{width:190px;max-height:100px}.metroWelcome{padding:12px 14px;border-radius:15px}.metroWelcome .menuStory{font-size:11px;line-height:1.45;margin:8px 0 10px}.metroWelcome .menuStats>div{padding:9px}.metroWelcome .menuStats b{font-size:18px}.metroWelcome .menuStats span:not(.statIcon){margin-top:4px;font-size:8px}.metroWelcome .menuFeatures{margin-top:10px;gap:5px}.metroWelcome .menuFeatures .btn.gold{min-height:40px;padding:9px}.metroWelcome .featureCount{font-size:8px}}
@media(min-width:701px) and (max-height:760px){#menu .logo{top:78px;gap:9px;width:310px}#menu .metroLogo{width:215px;max-height:125px}.metroWelcome{padding:15px}.metroWelcome .tagline,.metroWelcome .menuStory{display:block}.metroWelcome .menuStats{display:grid}.metroWelcome .menuStory{font-size:12px;margin:9px 0 12px}.metroWelcome .menuStats b{font-size:19px}.metroWelcome .menuFeatures{margin-top:12px}}
@media(min-width:480px) and (max-height:500px){#menu .logo{top:70px;left:18px;right:auto;width:560px;max-width:calc(100vw - 36px);display:grid;grid-template-columns:160px minmax(0,300px);gap:18px;align-items:center}#menu .metroLogo{width:160px;max-height:125px}.metroWelcome{padding:12px 14px;border-radius:15px}.metroWelcome .tagline{display:block;font-size:8px}.metroWelcome .menuStory{display:none}.metroWelcome .menuStats{display:grid;margin-top:8px;gap:8px}.metroWelcome .menuStats>div{padding:8px 10px}.metroWelcome .menuStats b{font-size:18px}.metroWelcome .menuStats span:not(.statIcon){font-size:8px;margin-top:4px}.metroWelcome .menuFeatures{margin-top:9px;gap:5px}.metroWelcome .menuFeatures .btn.gold{min-height:38px;padding:8px;font-size:11px}.metroWelcome .featureCount{font-size:8px}.bottombar{grid-template-columns:1fr 1fr 1fr;bottom:16px;gap:12px}.playArea{grid-column:auto}.bottombar .cell{min-height:62px;padding:8px 12px}.bottombar #playBtn{min-height:44px}.screen .msg{bottom:93px}}
@media(max-width:479px) and (max-height:600px){#menu .logo{top:68px;gap:6px}#menu .metroLogo{max-height:82px}.metroWelcome{padding:10px 12px}.metroWelcome .menuStory{margin:7px 0 8px}.metroWelcome .menuStats>div{padding:8px}.metroWelcome .menuFeatures{margin-top:8px}}
@media(min-width:480px) and (max-height:350px){#menu .logo{top:60px;grid-template-columns:145px minmax(0,290px);gap:14px}.metroWelcome{padding:9px 12px}.metroWelcome .menuStats>div{padding:6px 8px}.metroWelcome .menuFeatures{margin-top:7px;gap:4px}.metroWelcome .menuFeatures .btn.gold{min-height:34px;padding:7px}#menu .metroLogo{width:145px;max-height:110px}}

#runBar[hidden]{display:none!important}.metroWelcome .menuStats>div:last-child b{line-height:1.15}.activeFeatures em{font-variant-numeric:tabular-nums}

/* START3: countdown stays inside the playfield and never captures swipes. */
.launchCountdown{position:fixed;inset:0;z-index:85;display:grid;place-items:center;pointer-events:none;text-align:center;padding:24px;color:#fff}
.launchCountdown>div{width:min(360px,80vw);padding:24px;border:1px solid #e9bd6e70;border-radius:24px;background:linear-gradient(145deg,#281c29ee,#100f1ce6);box-shadow:0 16px 70px #0007;backdrop-filter:blur(8px)}
.launchCountdown span{font-size:12px;font-weight:800;letter-spacing:.22em;color:#f4ce84}
.launchCountdown b{display:block;font:800 clamp(64px,14vw,100px)/1.1 Rubik,system-ui,sans-serif;color:#ffe3a2;text-shadow:0 4px 24px #efb63e40;margin:12px 0}
.launchCountdown p{font-size:14px;line-height:1.65;margin:0;color:#e5dce8}
.launchCountdown.hidden{display:none}
@media(max-height:480px){.launchCountdown>div{padding:14px}.launchCountdown b{font-size:60px;margin:2px}.launchCountdown p{font-size:12px}}
.launchCountdown small{display:block;color:#f1cb7f;font-size:12px;font-weight:700;margin-top:10px}
