@import url('/fonts.css');
:root{--blue:#0863ec;--deep:#071d63;--panel:#0b3187;--line:#2583ff;--yellow:#ffdc39;--purple:#7e30e9;--muted:#b6ccff;--green:#62ef9c;--red:#ff668f;--safe:env(safe-area-inset-bottom,0px);font-family:Inter,Arial,system-ui,sans-serif;color:white;background:#061541;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 50% 0,#167bff 0,#083aa8 42%,#05183f 100%);background-attachment:fixed}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;filter:saturate(.35);opacity:.6}button,a,input{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,.arcade{font-weight:950;letter-spacing:-.04em;text-shadow:0 3px 0 #061333;line-height:1.05}h1{font-size:32px}h2{font-size:25px}h3{font-size:17px}small,.muted{color:var(--muted)}small{font-size:12px;line-height:1.5}a{color:#bce7ff;text-underline-offset:3px}#app{max-width:520px;min-height:100dvh;margin:auto;background:linear-gradient(155deg,#0752c8,#082b83 50%,#08226b);box-shadow:0 0 100px #0009;position:relative;overflow:hidden}#app:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.1;background-image:radial-gradient(#50adff 2px,transparent 3px);background-size:28px 28px}.desktop-glow{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 8% 15%,#7c3aff30,transparent 30%),radial-gradient(circle at 90% 70%,#05baff25,transparent 30%)}.shell{position:relative;padding-bottom:calc(94px + var(--safe))}.topbar{padding:15px 18px 12px;position:sticky;top:0;z-index:5;background:#082a85f2;backdrop-filter:blur(16px);border-bottom:1px solid #1972e8}.topline,.row,.between,.walletline{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.topline{margin-bottom:12px}.brand{font-size:20px;font-weight:950;letter-spacing:-1px;line-height:1}.brand small{display:block;font-size:9px;font-weight:600;letter-spacing:1.7px;text-transform:uppercase;margin-top:5px}.me-button{display:flex;align-items:center;gap:9px;background:transparent;border:0;color:white;padding:0;text-align:left;min-width:0}.nick{max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800}.avatar{width:40px;height:40px;border-radius:13px;border:2px solid #ffd647;background:#7745ce;display:inline-block;flex-shrink:0;overflow:hidden}.avatar .portrait{height:100%;width:100%;border:0;border-radius:0}.balance{display:flex;align-items:center;gap:8px;background:#061b5a;border:1px solid #2f77e5;border-radius:13px;padding:8px 13px;color:white;min-width:162px;text-align:left}.balance strong{font-size:24px;line-height:1;letter-spacing:-.8px}.balance small{font-size:9px;display:block;margin-top:4px}.gem{width:21px;height:25px;display:inline-block;vertical-align:middle;background:linear-gradient(130deg,#d7ff96 0 28%,#85e633 29% 55%,#32b735 56%);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);filter:drop-shadow(0 2px 0 #092d27);flex-shrink:0}.gem.tiny{width:13px;height:16px;margin-right:3px}.token{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:#26b8ff;border:3px solid #9be8ff;color:#073f8c;font-size:12px;font-weight:900}.icon-btn{border:1px solid #2d7eff;color:white;background:#105bc6;border-radius:12px;min-width:40px;min-height:40px;display:inline-grid;place-items:center;font-size:19px}.topbadge{border:0;background:linear-gradient(#ffe977,#ffc31a);box-shadow:0 3px 0 #a96614;color:#241b09;border-radius:10px;padding:9px 12px;font-weight:900;font-size:13px;white-space:nowrap}.page{padding:18px 16px 0;animation:page-in .15s ease}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:2px;color:#a9cfff;font-weight:800;display:block;margin-bottom:6px}.stack{display:grid;gap:12px}.panel{border:1px solid #3d80f4;background:linear-gradient(145deg,#13489e,#0b2d77);box-shadow:0 3px 0 #041a50;border-radius:16px;padding:15px}.panel.purple{background:linear-gradient(125deg,#963dee,#5a1eb8);border-color:#c780ff}.panel.gold{border-color:#ffe773;background:linear-gradient(130deg,#70512a,#41387c)}.panel.flat{box-shadow:none;background:#071f62}.daily-banner{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:16px;border:1px solid #c274ff;background:linear-gradient(110deg,#7332d9,#a231d7);box-shadow:0 4px 0 #371274}.daily-banner .gift-icon{font-size:37px}.daily-banner .btn{font-size:12px;padding:11px 12px;min-height:38px;white-space:nowrap}.daily-banner strong{font-size:17px}.daily-banner small{font-size:11px;color:#ecd6ff}.btn{border:0;border-radius:12px;padding:14px 16px;min-height:48px;color:#1e210f;background:linear-gradient(#ffe96a,#ffc719);box-shadow:0 4px 0 #ae7016,inset 0 1px 0 #fff9;font-weight:900;letter-spacing:-.2px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;text-decoration:none}.btn.block{width:100%}.btn.blue{color:white;background:linear-gradient(#229aff,#0860dd);box-shadow:0 4px 0 #07378f}.btn.purple{color:white;background:linear-gradient(#ab4bff,#7424ce);box-shadow:0 4px 0 #42108d}.btn.ghost{color:#c7dcff;background:#123c8b;border:1px solid #377be0;box-shadow:none}.btn.red{color:white;background:linear-gradient(#fa6a97,#da2e60);box-shadow:0 4px 0 #8d1841}.btn.sm{min-height:37px;padding:9px 12px;font-size:12px;border-radius:9px}.btn.link{box-shadow:none;background:transparent;color:#b5d8ff;padding:8px}.two{display:grid;grid-template-columns:1fr 1fr;gap:11px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.tap-area{position:relative;height:255px;display:flex;align-items:center;justify-content:center;user-select:none;-webkit-user-select:none}.tap-rays{position:absolute;width:260px;height:260px;border-radius:50%;background:repeating-conic-gradient(from 0deg,#4eb5ff00 0deg 17deg,#4eb5ff55 18deg 30deg);mask-image:radial-gradient(black,transparent 70%);animation:rotate 50s linear infinite;pointer-events:none}.tap-target{border:0;background:none;padding:0;width:255px;height:245px;position:relative;touch-action:manipulation;outline-offset:-15px!important}.box-art{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 12px #020e4570);pointer-events:none}.tap-target:active .box-art,.tap-target.pressed .box-art{transform:scale(.93) rotate(-3deg);filter:drop-shadow(0 0 22px #ffdf55)}.tap-caption{text-align:center;font-weight:950;font-size:24px;text-shadow:0 3px #081641;margin-top:-7px;margin-bottom:14px}.float-tap{position:absolute;color:#fff79f;font-size:30px;font-weight:950;pointer-events:none;text-shadow:0 2px #102c67;animation:tap-float .8s ease-out forwards;z-index:2}.progress{height:11px;background:#041845;border:1px solid #3973be;border-radius:20px;overflow:hidden;margin-top:9px}.progress>i{height:100%;display:block;background:linear-gradient(#ffe788,#ffbe2a);border-radius:inherit;transition:width .25s}.progress.green>i{background:linear-gradient(#9dffb5,#3ce78b)}.progress.purple>i{background:linear-gradient(#c787ff,#993cf1)}.progress-label{font-size:12px;display:flex;justify-content:space-between;gap:5px;color:#cbddff}.target-card{display:flex;align-items:center;gap:12px}.target-card .big-icon{font-size:35px}.fineprint{font-size:10px;line-height:1.6;color:#a5bdef;text-align:center;margin-top:17px}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);display:flex;z-index:15;border-top:1px solid #3b82ef;background:#061c5bf5;backdrop-filter:blur(16px);padding:8px 8px calc(9px + var(--safe));gap:4px}.nav button{border:0;flex:1;min-width:0;border-radius:12px;background:transparent;color:#a8c4ff;font-size:9px;font-weight:700;padding:6px 0;min-height:51px}.nav b{display:block;font-size:22px;line-height:24px;margin-bottom:3px}.nav button.active{color:#ffe24c;background:linear-gradient(#155adc,#0a348e);box-shadow:inset 0 0 0 1px #287bff}.segmented{display:flex;gap:4px;background:#061d5f;border:1px solid #397ce6;padding:4px;border-radius:13px;margin-bottom:13px}.segmented button{background:none;border:0;color:#c0d4ff;flex:1;min-width:0;min-height:38px;padding:8px 5px;font-size:12px;font-weight:700;border-radius:9px}.segmented button.active{background:linear-gradient(#ffe773,#ffca1b);color:#24200e;box-shadow:0 2px #b48316}.case-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.case-card{position:relative;padding:13px 10px 12px;border:1px solid #4986eb;border-radius:16px;background:linear-gradient(150deg,#184fa8,#0c2b74);box-shadow:0 3px 0 #061944;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:190px;color:white;overflow:hidden}.case-card .case-img{height:103px;width:125px;object-fit:contain;filter:drop-shadow(0 6px 7px #0007)}.case-card h3{font-size:14px;margin-bottom:7px}.case-card .price{font-size:17px;font-weight:900;display:flex;align-items:center;gap:4px}.case-card small{font-size:9px;margin-top:5px}.case-card.gold{background:linear-gradient(140deg,#e4a329,#9b4f16);border-color:#ffe18c}.case-card.purple{background:linear-gradient(140deg,#a040ed,#47147d);border-color:#c376ff}.case-card.red{background:linear-gradient(140deg,#dd345f,#761a4a);border-color:#ff83a2}.case-card.rainbow{background:linear-gradient(140deg,#704cff,#28b8a1 50%,#e29d39)}.badge{display:inline-block;font-size:10px;line-height:1.3;padding:5px 8px;border-radius:8px;background:#214ba4;color:#d4e6ff;font-weight:800}.badge.green{background:#175d55;color:#96ffbf}.badge.gold{background:#9d6517;color:#ffe889}.badge.red{background:#7d2347;color:#ffb6d0}.case-card .badge{position:absolute;right:6px;top:6px}.search{width:100%;color:white;background:#061f64;border:1px solid #4d8be9;border-radius:12px;padding:13px 14px;min-height:46px;outline:none}.search:focus{border-color:#ffe45f;box-shadow:0 0 0 3px #ffe45f15}.search::placeholder{color:#8ba9df}.filters{display:flex;gap:7px;overflow:auto;padding-bottom:9px;margin:12px 0 3px;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid #4a7dde;background:#0d358c;border-radius:9px;color:#d3e0ff;padding:8px 11px;font-size:11px;min-height:34px}.chip.active{background:#ffe05a;color:#222348;border-color:#ffe578;font-weight:900}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.card-tile{padding:0;border:2px solid var(--rarity,#b277ff);border-radius:13px;overflow:hidden;background:linear-gradient(#7e53bd,#191c60);color:white;text-align:center;position:relative;min-height:130px}.portrait{width:100%;aspect-ratio:1;background-image:url('/assets/portraits-v10.webp');background-size:600% 600%;background-repeat:no-repeat;background-color:#41278f;display:block}.portrait.missing{filter:brightness(.16) saturate(.4)}.card-name{display:block;padding:7px 3px;background:#061c61c9;font-weight:800;font-size:11px;min-height:29px}.card-tile .lock{position:absolute;top:35%;left:0;right:0;font-size:22px}.card-tile .owned-mark{position:absolute;top:5px;left:5px;background:#2dcf70;color:#062e22;border:2px solid white;border-radius:50%;width:20px;height:20px;font-size:12px;display:grid;place-items:center}.empty{text-align:center;padding:40px 15px;color:#bed0f2}.empty .big{font-size:48px;display:block;margin-bottom:14px}.empty p{font-size:13px;line-height:1.6;margin-top:8px}.mini-stat{background:#08266d;border:1px solid #3273cf;border-radius:13px;padding:12px 6px;text-align:center;min-width:0}.mini-stat strong{font-size:24px;display:block;letter-spacing:-.7px}.mini-stat small{font-size:10px;display:block;margin-top:5px}.list{display:grid;gap:9px}.list-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#0a2b78;border:1px solid #2d6bd5;border-radius:13px;padding:12px;color:white;min-height:60px}.list-row .grow{flex:1;min-width:0}.list-row strong{font-size:13px;display:block;overflow-wrap:anywhere}.list-row small{font-size:10px;display:block;margin-top:4px}.list-row .right{text-align:right;font-size:14px;font-weight:800}.list-row .emoji{font-size:28px}.podium{display:flex;align-items:flex-end;justify-content:center;gap:10px;padding:30px 6px 18px}.podium>button{width:31%;border:1px solid #8b7cdd;border-radius:15px 15px 8px 8px;background:linear-gradient(#4d3698,#1b2d82);color:white;padding:12px 5px 10px;position:relative}.podium>button.first{padding-top:24px;min-height:162px;border-color:#ffdd67;background:linear-gradient(#957131,#5a3890)}.podium .avatar{width:56px;height:56px;border-radius:16px;display:block;margin:auto auto 7px}.podium strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis}.podium .crown{position:absolute;top:-24px;left:0;right:0;font-size:31px}.podium .place{font-weight:950;font-size:25px;display:block}.podium .score{font-size:12px;display:block;margin-top:7px}.own-rank{position:sticky;bottom:85px;z-index:3;border:1px solid #ffe284;background:linear-gradient(#ffe46f,#ffc424);color:#252229;box-shadow:0 4px #815528;font-weight:900}.own-rank small{color:#634e22}.rank-number{font-size:19px;font-weight:900;width:32px;flex-shrink:0;text-align:center;color:#ffd94a}.rank-number.mine{color:#383128}.ref-art{height:120px;margin:auto;display:block}.gift-days{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.gift-day{padding:13px 4px;border:1px solid #3677d9;background:#0b2b76;border-radius:12px;text-align:center;font-size:11px;color:#afc7ef;min-height:92px}.gift-day.today{border:2px solid #ffe46b;background:linear-gradient(#9c44ed,#6431bb);color:white}.gift-day.done{background:#134f65;border-color:#59cfa5}.gift-day .day-icon{font-size:25px;display:block;margin:8px 0}.gift-day.seventh{grid-column:span 2}.task-progress{font-size:11px;color:#e0e9ff;margin-top:7px}.switch{appearance:none;-webkit-appearance:none;width:45px;height:26px;border-radius:25px;background:#49608c;border:1px solid #9badd5;position:relative;flex-shrink:0;cursor:pointer}.switch:checked{background:#2ddf85;border-color:#87ffc1}.switch:before{content:'';position:absolute;top:3px;left:3px;border-radius:50%;height:18px;width:18px;background:white;transition:transform .15s}.switch:checked:before{transform:translateX(18px)}.divider{height:1px;background:#2d60b5;margin:16px 0}.label{font-size:12px;font-weight:700;color:#dbe8ff;display:block;margin-bottom:8px}.field{position:relative}.field .counter{position:absolute;right:11px;top:14px;font-size:11px;color:#98b9e9}.field .search{padding-right:55px}.form-message{min-height:20px;font-size:12px;margin-top:7px;color:#98ffba;line-height:1.5}.form-message.error{color:#ff9fb9}.error-panel{background:#791f48;border-color:#e36592;color:#ffd6e5}.onboarding{padding:30px 22px 35px;position:relative;min-height:100dvh}.onboarding .brand-title{text-align:center;margin-bottom:25px}.brand-title h1{font-size:44px;color:#ffdf39;-webkit-text-stroke:1px #493227;text-shadow:0 5px #1a1448}.brand-title p{font-size:10px;letter-spacing:2.2px;color:#b1d6ff;margin-top:9px}.avatar-picker{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:16px 0 24px}.avatar-picker button{padding:0;border:2px solid #4d79d0;border-radius:12px;overflow:hidden;background:#381b79}.avatar-picker button.selected{border:3px solid #ffe155;box-shadow:0 0 15px #ffe15565}.avatar-picker .portrait{aspect-ratio:1}.onboarding .hero-welcome{height:165px;display:block;margin:-10px auto 10px;max-width:100%;object-fit:contain}.modal-backdrop{position:fixed;inset:0;z-index:40;background:#020b2bd9;backdrop-filter:blur(6px);display:flex;align-items:flex-end;justify-content:center;padding-top:40px;animation:fade-in .15s}.modal{width:min(100%,520px);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(160deg,#1049b3,#08266f 70%);border:1px solid #5d94ff;border-radius:24px 24px 0 0;padding:22px 20px calc(24px + var(--safe));box-shadow:0 -10px 100px #00113f80;position:relative}.modal-handle{width:44px;height:4px;border-radius:3px;background:#6689c2;margin:-9px auto 20px}.modal-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.modal .close{border:1px solid #4e83d2;background:#0b2c76;color:white;border-radius:50%;width:33px;height:33px;flex-shrink:0;font-size:20px}.modal .hero-result{width:200px;aspect-ratio:1;border:3px solid var(--rarity);border-radius:24px;overflow:hidden;margin:20px auto 12px;box-shadow:0 0 45px color-mix(in srgb,var(--rarity),transparent 55%)}.result-title{text-align:center;font-size:32px;margin:10px 0}.center{text-align:center}.opening-stage{position:relative;display:grid;place-items:center;height:260px}.opening-stage img{height:240px;width:240px;object-fit:contain;animation:box-shake .2s infinite alternate}.opening-stage:before{content:'';position:absolute;inset:0;background:repeating-conic-gradient(#ffe17a00 0deg 15deg,#ffe17a77 16deg 30deg);mask-image:radial-gradient(#000,transparent 65%);animation:rotate 9s linear infinite}.timeline{display:flex;justify-content:space-between;gap:6px;margin:25px 0}.step{flex:1;text-align:center;font-size:10px;color:#a6bfe9}.step:before{content:'';width:24px;height:24px;border:2px solid #6c8dbb;border-radius:50%;display:block;margin:0 auto 7px;background:#173b7c}.step.done:before{background:#49e38b;border-color:#acffd0}.notice{padding:12px 13px;font-size:12px;line-height:1.6;border-radius:11px;background:#071d5c;color:#c7d9ff;border:1px solid #2d61ae}.notice.warn{background:#62491d;color:#ffedbe;border-color:#ad8440}.splash{position:relative;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.splash h1{font-size:48px;color:#ffe15b}.splash p{font-size:13px;color:#bad1ff}.brand-star{font-size:85px;color:#ffdc38;filter:drop-shadow(0 5px 0 #a36d0f)}.spinner{width:26px;height:26px;border:3px solid #7eafe233;border-top-color:#ffd74c;border-radius:50%;animation:rotate .8s linear infinite;display:inline-block}.skeleton{height:63px;border-radius:13px;background:linear-gradient(90deg,#164291,#2a60af,#164291);background-size:200%;animation:shimmer 1.2s linear infinite;margin-bottom:10px}#toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(95px + var(--safe));z-index:80;width:min(92%,440px);pointer-events:none;display:grid;gap:8px}.toast{background:#102553ef;border:1px solid #6797ea;padding:14px 17px;border-radius:13px;color:white;font-size:13px;box-shadow:0 10px 30px #0006;animation:page-in .18s}.toast.error{border-color:#ff779e;background:#582242f5}#offline{position:fixed;top:0;left:0;right:0;z-index:100;padding:11px;background:#712943;color:white;text-align:center;font-size:11px}#offline button{background:#ffdb4e;border:0;border-radius:6px;color:#24243e;font-weight:800;padding:5px 8px}.badge-grid{display:flex;justify-content:space-around;text-align:center;gap:10px}.badge-item{flex:1;background:#163f8b;border:1px solid #4d80cc;border-radius:12px;padding:15px 6px}.badge-item.locked{opacity:.4}.badge-item .medal{font-size:35px;display:block}.badge-item strong{display:block;font-size:23px}.badge-item small{font-size:10px}.odds-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #4266ae;font-size:13px}.odds-row span:before{content:'★';color:var(--rarity);margin-right:8px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px}.toggle-row label{font-size:13px;flex:1}.faq summary{cursor:pointer;font-weight:800;font-size:13px;padding:14px 0}.faq p{font-size:12px;color:#b9cff5;line-height:1.7;padding-bottom:15px}.spacer{height:16px}.check-label{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5}.check-label input{width:21px;height:21px;accent-color:#ffd942;flex-shrink:0}.mini-box{width:60px;height:55px;object-fit:contain;flex-shrink:0}.earned-amount{color:#85ffb2}.expense-amount{color:#ff98b7}.info-list{display:grid;gap:12px}.info-line{display:flex;justify-content:space-between;gap:15px;font-size:13px}.info-line span{color:#b2caf0}.info-line strong{text-align:right;overflow-wrap:anywhere}.back-title{display:flex;align-items:center;gap:10px}.mini-balance{font-size:12px;color:#a9c4f4}.dev-label{background:#1c4081;color:#aecdff;font-size:9px;padding:3px 7px;border-radius:5px;letter-spacing:.5px}.share-preview{border-radius:17px;background:radial-gradient(#a845ff,#112e87);padding:20px;text-align:center}.share-preview .portrait{width:125px;height:125px;margin:auto;border:3px solid #ffde60;border-radius:18px}.share-preview h3{font-size:24px;margin:15px 0 6px}.link-field{font-size:11px;overflow-wrap:anywhere;padding:11px;border:1px solid #376cb9;border-radius:9px;background:#071d5b;color:#a8d9ff}.select{padding:12px;background:#0c2c71;border:1px solid #4e83d5;border-radius:10px;color:white;width:100%}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes tap-float{to{transform:translateY(-90px) scale(1.2);opacity:0}}@keyframes page-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes shimmer{to{background-position:-200% 0}}@keyframes box-shake{from{transform:rotate(-5deg) scale(.96)}to{transform:rotate(5deg) scale(1.02)}}@media(min-width:650px){#app{margin:25px auto;min-height:calc(100dvh - 50px);border:1px solid #3a7cff;border-radius:24px}.nav{bottom:25px;border-radius:0 0 23px 23px}.modal-backdrop{align-items:center;padding:25px}.modal{border-radius:23px;max-height:90dvh}.shell{min-height:calc(100dvh - 50px)}.topbar{border-radius:23px 23px 0 0}.onboarding{min-height:calc(100dvh - 50px)}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduced *,body.reduced *:before{animation:none!important;transition:none!important}body.busy .modal .btn,body.busy .page .btn{pointer-events:none}button svg{width:20px;height:20px}

.me-button small{display:block;font-size:10px;margin-top:4px}.me-button .nick{display:block}

/* Premium arcade art direction */
:root{--blue:#1768f5;--deep:#07143d;--panel:#10295d;--line:#4a91ff;--yellow:#ffe26a;--muted:#c3d4f3}
body{background:radial-gradient(ellipse at 50% -12%,#476dff 0,#172b78 35%,#080f2d 78%);background-attachment:fixed}
#app{background:linear-gradient(180deg,#152b72 0,#111b4a 44%,#0d1437 100%);box-shadow:0 0 120px #000b}
#app:before{opacity:.17;background-image:radial-gradient(#b5d8ff 1px,transparent 1.8px);background-size:24px 24px;mask-image:linear-gradient(#000,transparent 70%)}
.topbar{background:#101b45ed;border-bottom:1px solid #ffffff20;box-shadow:0 8px 30px #050a2580}
.balance{background:linear-gradient(140deg,#263c79,#111d48);border-color:#ffffff25;box-shadow:inset 0 1px #ffffff14,0 5px 18px #05091e70}
.page{padding-top:20px}
.panel{background:linear-gradient(145deg,#1b3674,#111f4b);border-color:#ffffff24;box-shadow:0 8px 22px #03091f66,inset 0 1px #ffffff16;border-radius:19px}
.panel.flat{background:linear-gradient(145deg,#0e1a40,#101f4c)}
.panel.purple{background:linear-gradient(135deg,#7841d8,#3d287d);border-color:#c59bff70}
.panel.gold{background:linear-gradient(135deg,#725329,#363050);border-color:#ffe77380}
.daily-banner{background:linear-gradient(110deg,#5730b2,#9236bd);border-color:#e0b2ff70;box-shadow:0 8px 24px #190d4266,inset 0 1px #fff4;border-radius:18px}
.tap-area{height:280px;margin-top:5px;isolation:isolate}
.tap-area:before{content:'';position:absolute;width:246px;height:246px;border-radius:50%;background:radial-gradient(circle,#5caaff58 0,#7364ff32 43%,transparent 72%);filter:blur(8px);z-index:-1;animation:core-pulse 3s ease-in-out infinite}
.tap-rays{width:310px;height:310px;background:repeating-conic-gradient(from 0deg,#ffdf6a00 0deg 15deg,#8acbff42 16deg 24deg);mask-image:radial-gradient(black,transparent 69%);animation:rotate 70s linear infinite}
.tap-target{width:280px;height:270px;filter:drop-shadow(0 20px 20px #03071c99);transition:transform .15s,filter .15s}
.box-art{filter:drop-shadow(0 0 12px #7dcdff55) drop-shadow(0 17px 10px #0008);animation:box-hover 3.4s ease-in-out infinite}
.tap-target:active .box-art,.tap-target.pressed .box-art{animation:none;transform:scale(.91) rotate(-4deg);filter:drop-shadow(0 0 28px #ffe477)}
.tap-caption{letter-spacing:.045em;font-size:20px;color:#fff2be;text-shadow:0 2px #121b42,0 0 18px #ffc96b55}
.progress{height:12px;background:#080f2c;border-color:#ffffff27}
.nav{background:#0d1538f5;border-top-color:#ffffff24;box-shadow:0 -8px 25px #05091d66}
.nav button.active{background:linear-gradient(#344f9e,#1a2a60);box-shadow:inset 0 0 0 1px #94b6ff55}
.case-card{background:linear-gradient(145deg,#1a3975,#101d45);border-color:#ffffff35;box-shadow:0 8px 22px #03091f88,inset 0 1px #ffffff22;border-radius:18px}
.case-card.gold{background:linear-gradient(145deg,#91652c,#513d35)}.case-card.purple{background:linear-gradient(145deg,#7740b8,#38215f)}.case-card.red{background:linear-gradient(145deg,#9f3557,#4d2048)}
.icon-btn,.list-row,.mini-stat{background:linear-gradient(145deg,#1b3470,#111f49);border-color:#ffffff25;box-shadow:inset 0 1px #ffffff12}
.btn{transition:transform .12s,filter .12s;filter:drop-shadow(0 5px 8px #0003)}.btn:active{transform:translateY(2px) scale(.985);filter:brightness(1.12)}
@keyframes box-hover{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1deg)}}
@keyframes core-pulse{0%,100%{transform:scale(.94);opacity:.75}50%{transform:scale(1.06);opacity:1}}
@media(prefers-reduced-motion:reduce){.box-art,.tap-area:before{animation:none}}

/* Arcade redesign: readable mobile surfaces and illustrated depth */
#app{background:radial-gradient(ellipse at 50% 17%,#1784ff 0,#0754d1 29%,#07328b 62%,#071b51 100%)}
#app:before{opacity:.19;background-image:radial-gradient(#8ad8ff 1.5px,transparent 2px),linear-gradient(135deg,transparent 48%,#83bdff 49%,transparent 51%);background-size:32px 32px,120px 120px}
.topbar{background:linear-gradient(180deg,#061d55fa,#092967f5);border-bottom:2px solid #1688e6}
.brand{font-size:23px;color:#ffdc37;letter-spacing:-1.3px;text-shadow:0 3px #a35c08,2px 4px #071439;font-weight:900}
.brand small{color:#b9d5ff;text-shadow:none;letter-spacing:1px}
.balance{border:2px solid #3285f0;background:#071c4e;box-shadow:inset 0 2px #fff2,0 4px 0 #04163b}
.avatar{border:3px solid #ffe35b;box-shadow:0 3px 0 #8f5a12}
h1,h2,.tap-caption{font-weight:900;letter-spacing:-.035em;text-shadow:0 3px 0 #051c55,2px 4px 0 #051c55}
.eyebrow{color:#8de2ff;letter-spacing:.13em}
.panel,.list-row,.mini-stat{background:linear-gradient(160deg,#124db2,#092861);border:2px solid #418df0;box-shadow:inset 0 2px #ffffff29,0 4px 0 #061e52}
.panel.flat{background:linear-gradient(#0b2f72,#082356)}
.daily-banner{background:linear-gradient(110deg,#862be0,#bc33d5);border:2px solid #e79aff;box-shadow:inset 0 2px #fff5,0 4px 0 #481488}
.btn{border:2px solid #ffed91;background:linear-gradient(#fff18a 0%,#ffd627 52%,#ffaf09);box-shadow:inset 0 2px #fff9,0 4px 0 #a85b08;color:#29200e;text-shadow:0 1px #fff7}
.btn.blue{background:linear-gradient(#3cb8ff,#0861ed);border-color:#86d4ff;color:white;box-shadow:inset 0 2px #fff6,0 4px #063f9c;text-shadow:0 2px #14509a}
.btn.ghost,.btn.link{border-color:#609df1;text-shadow:none}
.tap-area{height:300px}.tap-rays{width:330px;height:330px;background:repeating-conic-gradient(#46bfff00 0deg 12deg,#a4f4ff9c 13deg 22deg);mask-image:radial-gradient(black,transparent 70%)}
.tap-area:after{content:'✦              ✦';position:absolute;inset:40px 5% auto;color:#fff479;font-size:30px;text-shadow:0 0 12px #ffed53;white-space:pre;pointer-events:none}
.tap-target{width:300px;height:290px}.tap-caption{font-size:25px;color:white;-webkit-text-stroke:.4px #072562}
.progress{border:2px solid #061844;height:14px;background:#071d4f}.progress>i{background:linear-gradient(#fff684,#ffc32e 65%,#ef8e09);box-shadow:inset 0 2px #fff8}
.case-grid{gap:10px}.case-card{border:2px solid #55aaff;background:linear-gradient(145deg,#1973e4,#0a328c);box-shadow:inset 0 2px #fff4,0 4px #09225c;border-radius:14px}.case-card.gold{background:linear-gradient(145deg,#ffd041,#bc680d)}.case-card.purple{background:linear-gradient(145deg,#bc4bfa,#6114b5)}.case-card.red{background:linear-gradient(145deg,#f34a64,#941349)}.case-card .case-img{transition:transform .2s;filter:drop-shadow(0 7px 5px #052054aa)}.case-card:active .case-img{transform:scale(.93)}
.card-tile{border-width:3px;box-shadow:0 4px 0 #061643,inset 0 2px #fff6}.card-name{background:#071b4cf2}.segmented{background:#051b52;border:2px solid #367eed}.segmented button.active{background:linear-gradient(#ffef83,#ffbf11);box-shadow:0 3px #a76408}
.nav{background:linear-gradient(#092963f8,#061a49fa);border-top:2px solid #2b8eff}.nav button.active{background:linear-gradient(#1871e3,#0a3bb1);box-shadow:inset 0 0 0 2px #53adff}.nav-icon{width:23px;height:23px;fill:currentColor;stroke:#061b50;stroke-width:1.1;paint-order:stroke}
.modal{background:linear-gradient(160deg,#1647a2,#0a2055);border:2px solid #65aaff;box-shadow:0 -10px 45px #031238aa}.modal-head h2{color:white}
@media(max-width:360px){.brand{font-size:19px}.tap-area{height:260px}.tap-target{width:260px;height:250px}.nav button{font-size:8px}}
/* Unified game interface */
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;--muted:#c7dcff}
h1,h2,h3,.brand,.tap-caption,.btn,.nav button,.balance strong,.case-card .price,.mini-stat strong{font-family:GameBold,system-ui,sans-serif}
h1{font-size:clamp(24px,7vw,31px)} h2{font-size:clamp(21px,6vw,25px)} h3{font-size:15px}
.page{padding:16px 15px 0}.section-hero{position:relative;overflow:hidden;min-height:116px;padding:20px 18px;margin-bottom:18px;border:2px solid #62beff;border-radius:21px;background:radial-gradient(circle at 90% 10%,#69caff8c,transparent 45%),linear-gradient(120deg,#164dcc,#102c84);box-shadow:inset 0 2px #fff5,0 5px #061f5a}
.section-hero:after{content:'✦';position:absolute;right:16px;top:12px;font-size:55px;color:#fff585;opacity:.3;transform:rotate(15deg)}
.section-hero p{font-size:12px;line-height:1.5;color:#d9eaff;margin-top:7px;max-width:78%}.section-hero .progress{width:64%;margin-top:12px}.section-hero .eyebrow{color:#a8ebff}
.boxes-hero{min-height:206px;background:radial-gradient(circle at 65% 90%,#f6b34370,transparent 54%),linear-gradient(125deg,#155bc9,#201b80)}.boxes-hero img{position:absolute;object-fit:contain;bottom:-22px;right:-12px;width:78%;height:145px;filter:drop-shadow(0 8px 5px #06134188)}.boxes-hero:after{display:none}
.collection-hero{background:radial-gradient(circle at 90% 20%,#ed71ff88,transparent 45%),linear-gradient(115deg,#5836bc,#182c82)}.friends-hero{background:radial-gradient(circle at 90% 20%,#ffdc6688,transparent 45%),linear-gradient(115deg,#a83bb0,#29218b)}.exchange-hero{background:radial-gradient(circle at 90% 20%,#77f5b388,transparent 45%),linear-gradient(115deg,#087b92,#153880)}.top-hero{background:radial-gradient(circle at 90% 20%,#ffdb6f99,transparent 45%),linear-gradient(115deg,#ab5a16,#4a277b)}
.topline .me-button small{display:block;font-size:10px;margin-top:4px}.topbadge{border:2px solid #fff1a8;box-shadow:0 3px #ae6a13}.brand{font-family:GameBold,system-ui,sans-serif;font-style:italic;transform:rotate(-3deg)}
.daily-banner{min-height:74px}.daily-banner .gift-icon{display:grid;place-items:center;min-width:53px;height:53px;background:#fff2;border:2px solid #ffffff59;border-radius:15px;font-size:30px}.daily-banner strong{font-size:14px}.daily-banner .btn{font-size:10px}
.tap-area{margin:8px -5px 0}.tap-area:before{background:radial-gradient(circle,#c6f8ffbb,#2cb6ff55 45%,transparent 72%);width:290px;height:290px}.tap-caption{font-size:20px;letter-spacing:0;margin-bottom:17px}
.btn{font-size:12px;line-height:1.2;border-radius:12px;min-height:48px}.btn.sm{font-size:10px}.panel{border-radius:16px;padding:15px}.panel h3{line-height:1.3}.stack{gap:13px}
.case-card{min-height:205px;padding:13px 8px;justify-content:flex-end}.case-card .case-img{height:110px;width:140px;max-width:100%}.case-card h3{min-height:32px;display:grid;place-items:center;line-height:1.2}.case-card .price{color:#fff6b3;font-size:17px}.case-card small{line-height:1.35}
.collection-grid{gap:10px}.card-tile{border-radius:15px;background:#162b75}.card-name{min-height:34px;font-family:GameBold,system-ui;font-size:10px}.portrait{background-color:#4e29a6}
.search,.select{border:2px solid #5f9ff0;background:#071f57;border-radius:13px;min-height:48px}.chip{border-radius:12px;padding:9px 13px}.segmented{padding:5px}.segmented button{font-size:11px}
.nav{padding:7px 7px calc(8px + var(--safe));gap:3px}.nav button{font-size:9px;min-height:55px}.nav b{margin-bottom:4px}.nav-icon{width:25px;height:25px}
.modal{border-radius:24px 24px 0 0;padding:20px 17px calc(22px + var(--safe));background:linear-gradient(155deg,#164ba6,#071e58)}.modal-head{border-bottom:1px solid #ffffff25;padding-bottom:14px}.notice{line-height:1.5}.gift-day,.badge-item{box-shadow:inset 0 1px #ffffff32,0 3px #051c55}.onboarding{background:radial-gradient(circle at 50% 23%,#188aff,#082963 55%,#061843);padding:30px 20px}.hero-welcome{filter:drop-shadow(0 10px 18px #02153a99)}
@media(max-width:360px){.page{padding-left:12px;padding-right:12px}.section-hero{padding:16px}.case-card .price{font-size:15px}.nav button{font-size:8px}.daily-banner{gap:7px}.daily-banner .gift-icon{min-width:42px;height:42px}.daily-banner strong{font-size:12px}}

/* Complete game surfaces */
.onboarding{position:relative;overflow:hidden;text-align:center;background:radial-gradient(circle at 50% 20%,#249fff,#0756d0 35%,#061d5e 80%);padding:28px 18px 32px}.onboarding:before{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-conic-gradient(from 10deg at 50% 18%,#ffffff0d 0 7deg,transparent 8deg 20deg);mask-image:linear-gradient(#000,transparent 55%)}.onboarding>*{position:relative}.welcome-stars{position:absolute;top:22%;left:0;right:0;color:#ffea61;text-shadow:0 0 15px #ffe66a;font-size:28px;letter-spacing:12px}.welcome-kicker{font:700 10px GameBold,sans-serif;letter-spacing:2px;color:#c2edff}.brand-title h1{font-size:clamp(40px,12vw,61px);font-style:italic;color:#ffe24a;letter-spacing:-3px;-webkit-text-stroke:1px #6d3400;text-shadow:0 4px #c76a09,0 7px #081b54}.brand-title p{font:700 10px GameBold,sans-serif;letter-spacing:1px;color:#dcf2ff;margin-top:10px}.welcome-art{height:190px;display:grid;place-items:center}.welcome-art .hero-welcome{width:230px;max-height:190px;object-fit:contain;animation:box-hover 3.4s ease-in-out infinite}.welcome-panel{text-align:left;border:2px solid #5bb8ff;border-radius:22px;padding:20px 17px;background:linear-gradient(155deg,#144a9eef,#09245eed);box-shadow:0 8px #041745,inset 0 2px #fff3}.welcome-panel h2{font-size:22px}.welcome-copy{font-size:12px;color:#c8e0ff;line-height:1.55;margin-top:8px}.welcome-label,.welcome-panel .label{display:block;font:700 10px GameBold,sans-serif;letter-spacing:.09em;color:#a5d9ff;margin-top:18px}.welcome-panel .avatar-picker{margin:10px 0 0;gap:7px}.welcome-panel .avatar-picker button{border:2px solid #75adf4;border-radius:12px;overflow:hidden}.welcome-panel .avatar-picker button.selected{border:3px solid #ffe34b;box-shadow:0 0 0 2px #c88a00,0 0 18px #ffd92b88}.welcome-panel .search{margin-top:8px;padding-right:62px}.welcome-start{margin-top:18px;font-size:14px}.welcome-start span{font-size:19px}.welcome-panel .fineprint{margin-top:13px}
.section-hero{isolation:isolate}.section-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:repeating-conic-gradient(from -10deg at 92% 50%,#ffffff13 0deg 9deg,transparent 10deg 21deg);mask-image:linear-gradient(90deg,transparent,#000)}
.btn{position:relative;overflow:hidden;letter-spacing:0}.btn:not(.ghost):not(.link):before{content:'';position:absolute;left:5%;right:5%;top:3px;height:20%;border-radius:20px;background:#ffffff22;pointer-events:none}.btn:focus-visible,.case-card:focus-visible,.nav button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.case-card{isolation:isolate}.case-card:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 36%,#ffffff45,transparent 54%)}.case-card h3{font-size:13px;text-shadow:0 2px #08245c}.case-card .price{background:#061c4b88;border-radius:9px;padding:5px 10px}.case-card small{font-size:10px;color:#def1ff}.case-card.gold small{color:#fff8d8}.badge{border:1px solid #ffffff30;box-shadow:inset 0 1px #fff3}
.panel.purple{background:linear-gradient(135deg,#9b43e4,#4a1d98);border-color:#d292ff}.notice{border-radius:14px;border:1px solid #67aaf36e;background:#0a2e6b;padding:13px 14px;color:#dceeff;font-size:12px}.notice.warn{background:#704026;border-color:#e7b05c;color:#fff1ce}.mini-stat{padding:14px 6px;border-radius:15px}.mini-stat strong{color:#fff3a0;text-shadow:0 2px #31286a}.mini-stat small{font-size:10px}.list-row{border-radius:14px;min-height:64px}.list-row strong{font-size:13px}.list-row small{line-height:1.45}
.reward-gems{position:relative;height:75px;min-width:105px;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 6px 5px #00143c99)}.reward-gems:before{content:'';position:absolute;inset:0;background:radial-gradient(circle,#b8ffae99,transparent 67%)}.reward-gems .gem{position:relative;width:36px;height:43px;margin:-8px;filter:drop-shadow(0 2px #155b29)}.reward-gems .gem:nth-child(2){width:46px;height:56px;z-index:1;transform:translateY(-6px)}.reward-gems.large{height:120px}.reward-gems.large .gem{width:58px;height:68px}.reward-gems.large .gem:nth-child(2){width:76px;height:89px}
.upgrade-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:150px;margin:5px 0 18px;background:radial-gradient(circle,#ffd85a99,#9950e355 40%,transparent 70%)}.upgrade-art span{font-size:80px;line-height:1;filter:drop-shadow(0 5px #ad6318)}.upgrade-art b{font:700 24px GameBold;color:#fff18b;text-shadow:0 3px #583000}.upgrade-art small{font-size:10px;letter-spacing:1px}
.modal-backdrop{background:#020c2fc9;backdrop-filter:blur(5px)}.modal{max-width:520px;border-color:#66baff;box-shadow:0 -5px 35px #020925aa,inset 0 2px #ffffff3a}.modal-head h2{font-size:21px}.close{border:2px solid #83baff;background:linear-gradient(#286fd2,#0c3b8c);border-radius:10px;box-shadow:0 3px #06275f;color:white}.hero-result{border-radius:22px;box-shadow:0 0 32px var(--rarity),0 5px #071a4b}.result-title{color:#ffed73}.gift-day.today{outline:2px solid #ffed61;box-shadow:0 0 18px #ffd83b88}.empty{border:1px dashed #81b7ff66;border-radius:18px;background:#071e5144}.empty .big{filter:drop-shadow(0 3px #071942)}
@media(prefers-reduced-motion:reduce){.welcome-art .hero-welcome{animation:none}}
.box-sprite{display:inline-block;vertical-align:middle;width:165px;height:165px;flex:none;background-image:url('/assets/boxes-atlas-v10.webp');background-size:500% 200%;background-repeat:no-repeat;filter:drop-shadow(0 6px 5px #03143888)}.box-sprite.case-img{width:120px;height:120px;max-width:100%}.box-sprite.mini-box{width:60px;height:60px}.opening-stage .box-sprite{width:200px;height:200px}

/* Rounded type and compact, high-contrast game UI */
:root,body,button,input,select,textarea{font-family:Rubik,system-ui,sans-serif}
h1,h2,h3,.arcade,.brand,.tap-caption,.btn,.nav button,.balance strong,.case-card .price,.mini-stat strong,.card-name,.welcome-label,.welcome-panel .label,.brand-title p,.welcome-kicker,.upgrade-art b{font-family:Rubik,system-ui,sans-serif;font-weight:700}
h1,h2,.tap-caption{letter-spacing:-.025em;line-height:1.08;text-shadow:0 2px 0 #061744,0 3px 0 #061744}
h1{font-size:clamp(25px,7vw,32px)}h2{font-size:clamp(21px,5.6vw,25px)}h3{font-size:15px;line-height:1.2}
.brand{font-size:22px;font-weight:900;letter-spacing:-1px}.brand-title h1{font-family:Rubik,system-ui,sans-serif;font-size:clamp(42px,11vw,60px);letter-spacing:-2px;-webkit-text-stroke:1px #853f00;text-shadow:0 3px #be6500,0 6px #071745}
.brand-title p,.welcome-kicker,.welcome-label,.welcome-panel .label{font-size:11px;letter-spacing:.06em}.welcome-copy{font-size:14px}.welcome-panel h2{font-size:23px}.form-message{font-size:12px}
.btn{font-size:13px;font-weight:700;letter-spacing:.005em;line-height:1.15}.btn.sm{font-size:12px}.btn.link{font-size:12px}.btn.blue{text-shadow:0 1px 1px #08386c}.daily-banner strong{font-size:16px}.daily-banner small{font-size:12px}.daily-banner .btn{font-size:11px}.nav button{font-size:10px;font-weight:700}.nav-icon{width:24px;height:24px}.nav b{margin-bottom:3px}
.balance strong{font-size:24px}.balance small{font-size:10px}.nick{font-size:14px}.topline .me-button small{font-size:11px}
.section-hero h1{font-size:clamp(24px,6.5vw,30px)}.section-hero p{font-size:13px;line-height:1.4}.eyebrow{font-size:11px;letter-spacing:.09em}.case-card h3{font-size:14px}.case-card small{font-size:11px}.case-card .price{font-size:18px}.card-name{font-size:12px}.progress-label{font-size:13px}.mini-stat small{font-size:11px}.list-row strong{font-size:14px}.list-row small{font-size:12px}.notice{font-size:13px;line-height:1.45}.fineprint{font-size:11px;line-height:1.5}.chip,.segmented button{font-size:12px}.modal-head h2{font-size:22px}.modal p,.modal small{line-height:1.55}.gift-day strong{font-size:11px}
@media(max-width:360px){.brand{font-size:18px}.nav button{font-size:9px}.daily-banner strong{font-size:14px}.daily-banner small{font-size:10px}.daily-banner .btn{font-size:10px}.welcome-panel h2{font-size:20px}.case-card h3{font-size:12px}.case-card .price{font-size:16px}}
/* Illustrated icon set, consistent across devices */
.nav-icon{fill:none;stroke:none;paint-order:normal;width:30px;height:30px;filter:drop-shadow(0 2px 0 #061440)}
.nav b{line-height:30px}.nav button{min-height:58px}.nav button.active{color:#ffe45a}
.game-icon{display:inline-block;vertical-align:middle;width:24px;height:24px;flex:none;filter:drop-shadow(0 2px 1px #08215a80)}
.topbadge .game-icon{width:22px;height:22px}.gift-icon .game-icon{width:43px;height:43px}.big-icon .game-icon{width:48px;height:48px}.btn .game-icon{width:23px;height:23px}.day-icon .game-icon{width:31px;height:31px}.large-icon{width:80px;height:80px}.upgrade-symbol{width:80px;height:80px}
.nav button svg.nav-icon{width:30px;height:30px}.btn svg.game-icon{width:23px;height:23px}.topbadge svg.game-icon{width:22px;height:22px}

/* ================================================================
   MEGABOX v7 — CARTOON UI REDESIGN
   Final visual pass based on the approved blue / yellow / magenta mockup.
   ================================================================ */
:root{
  --ink:#fff;
  --ink-soft:#d8e9ff;
  --ink-muted:#a9c7fa;
  --navy-950:#03113c;
  --navy-900:#06194f;
  --navy-850:#082262;
  --navy-800:#0a2d7d;
  --blue-700:#0c46bd;
  --blue-600:#0871ee;
  --blue-500:#16a3ff;
  --cyan:#56c8ff;
  --yellow-1:#fff69b;
  --yellow-2:#ffe046;
  --yellow-3:#ffb512;
  --yellow-edge:#a95808;
  --magenta-1:#ec5aff;
  --magenta-2:#ba2ce2;
  --magenta-3:#7b1ac3;
  --green-1:#9cff73;
  --green-2:#36d85a;
  --red-1:#ff7aa1;
  --red-2:#df2e68;
  --card-radius:22px;
  --soft-shadow:0 10px 24px #020a2c55;
  --hard-shadow:0 5px 0 #03184f;
  font-family:'Nunito',Rubik,system-ui,sans-serif;
  font-weight:700;
  background:#061844;
}

html{background:#061844;scrollbar-color:#2d72cf #051642}
body{
  color:var(--ink);
  font-family:'Nunito',Rubik,system-ui,sans-serif;
  font-weight:700;
  background:
    radial-gradient(circle at 14% 8%,#493ddf66 0 9%,transparent 28%),
    radial-gradient(circle at 88% 30%,#087ae75c 0 8%,transparent 32%),
    linear-gradient(145deg,#17134e 0,#071c58 40%,#06224f 100%);
}
button,input,select,textarea{font-family:inherit;font-weight:inherit}

#app{
  max-width:520px;
  background:
    radial-gradient(circle at 50% 265px,#168dff4a 0 14%,transparent 36%),
    linear-gradient(180deg,#0a43ae 0,#073789 38%,#072664 100%);
  border-left:1px solid #2b78e9;
  border-right:1px solid #2b78e9;
  box-shadow:0 0 0 1px #020b2d,0 0 100px #000a;
}
#app:before{
  opacity:.16;
  background-image:
    linear-gradient(125deg,transparent 0 47%,#5fb8ff16 48% 49%,transparent 50%),
    radial-gradient(#72c8ff 1.3px,transparent 1.8px);
  background-size:74px 74px,28px 28px;
}
.desktop-glow{background:radial-gradient(circle at 15% 16%,#4a36e74a,transparent 33%),radial-gradient(circle at 86% 68%,#008dff30,transparent 34%)}

/* typography */
h1,h2,h3,.arcade,.brand,.tap-caption,.btn,.nav button,.balance strong,.case-card .price,.mini-stat strong,.card-name,.result-title,.gift-day strong,.badge-item strong,.brand-title h1{
  font-family:'Nunito',Rubik,system-ui,sans-serif;
  font-weight:900;
}
h1,h2,h3{letter-spacing:-.035em}
h1,h2,.tap-caption,.section-hero h1,.result-title{
  text-shadow:0 2px 0 #041443,0 4px 0 #041443,0 5px 10px #020a2b75;
}
h1{font-size:clamp(28px,7.4vw,35px);line-height:.98}
h2{font-size:clamp(23px,6vw,29px);line-height:1.02}
h3{font-size:16px;line-height:1.15}
small,.muted{color:var(--ink-muted);font-weight:700}
.eyebrow{font-weight:900;color:#9fdbff;letter-spacing:.11em;font-size:11px}
.fineprint{color:#9ebcf0;font-size:11px;font-weight:700;line-height:1.55}

/* fixed header */
.topbar{
  padding:13px 17px 14px;
  background:linear-gradient(180deg,#071d61f7,#071b56f2);
  border-bottom:2px solid #0b8be9;
  box-shadow:0 5px 18px #020a2b55,inset 0 -1px #66c7ff38;
  backdrop-filter:blur(20px) saturate(1.2);
}
.topline{margin-bottom:10px}
.me-button{gap:10px}
.avatar{
  width:45px;height:45px;border-radius:14px;
  border:3px solid #ffd63c;
  box-shadow:0 0 0 2px #7438d8,0 4px 0 #061749,0 0 14px #9b4cff55;
  background:#7146df;
}
.nick{font-size:15px;font-weight:900;letter-spacing:-.015em;text-shadow:0 2px #061443}
.topline .me-button small{font-size:10px;color:#c8defe;font-weight:700}
.dev-label{font-weight:900;border-radius:8px;background:#123a87;border:1px solid #3a78d2;color:#9eb8e5}
.topbadge{
  min-height:42px;padding:8px 13px;border:2px solid #fff39d;border-radius:12px;
  color:#422b05;font-size:13px;font-weight:900;
  background:linear-gradient(180deg,#fff176 0,#ffd329 55%,#ffb50e 100%);
  box-shadow:0 4px 0 #9c5a08,inset 0 2px #fff8cc,0 5px 13px #020b2a55;
}
.topbadge:active{transform:translateY(2px);box-shadow:0 2px 0 #9c5a08,inset 0 2px #fff8cc}
.balance{
  min-width:164px;padding:9px 13px;border:2px solid #299dff;border-radius:14px;
  background:linear-gradient(160deg,#0b3180,#061e59);
  box-shadow:0 4px 0 #03133d,inset 0 1px #84ccff42;
}
.balance strong{font-size:25px;letter-spacing:-.04em;text-shadow:0 2px #061642}
.balance small{font-size:9px;color:#b5d7ff;font-weight:900;letter-spacing:.055em}
.brand{
  font-size:23px;font-weight:900;font-style:italic;letter-spacing:-1.6px;
  color:#ffe347;text-shadow:0 2px 0 #8b4906,0 4px 0 #071343;
  transform:rotate(-2deg);
}
.brand small{font-size:8px;color:#cce2ff;letter-spacing:1.35px;text-shadow:none;font-style:normal;margin-top:5px}
.gem{filter:drop-shadow(0 2px 0 #0b5c28) drop-shadow(0 0 5px #6dff5377)}

/* page spacing and hero sections */
.page{padding:17px 15px 4px}
.stack{gap:13px}
.section-title{margin-bottom:15px}
.section-hero{
  position:relative;overflow:hidden;
  margin:-1px -1px 16px;
  padding:19px 18px 20px;
  border:2px solid #38a9ff;
  border-radius:22px;
  background:linear-gradient(145deg,#154fae,#092a72 68%,#071f5b);
  box-shadow:0 5px 0 #031548,inset 0 2px #ffffff25,var(--soft-shadow);
}
.section-hero:after{content:'';position:absolute;width:170px;height:170px;right:-65px;top:-65px;border-radius:50%;background:radial-gradient(circle,#68d8ff55,transparent 70%);pointer-events:none}
.section-hero h1{color:#fff}.section-hero p{color:#d8ebff;font-weight:700;font-size:13px;margin-top:7px}
.boxes-hero{background:linear-gradient(145deg,#116be2,#5222b3 115%)}
.collection-hero{background:linear-gradient(145deg,#1d63cb,#6a2cc1 115%)}
.friends-hero{background:linear-gradient(145deg,#0c74d8,#2f58be 60%,#6e28b5)}
.exchange-hero{background:linear-gradient(145deg,#0a54bd,#5b27b8 80%,#8b2dcc)}
.top-hero{background:linear-gradient(145deg,#6b35bb,#b76d1a 140%)}

/* panels */
.panel,.list-row,.mini-stat,.info-list,.notice,.empty{
  border-radius:18px;
}
.panel{
  padding:15px;
  border:2px solid #3a97f4;
  background:linear-gradient(155deg,#1550aa,#0a2a70 72%);
  box-shadow:0 4px 0 #03184b,inset 0 1px #8bd0ff3d;
}
.panel.flat{background:linear-gradient(155deg,#0c347f,#071e58);border-color:#397bc9;box-shadow:inset 0 1px #7bcaff22}
.panel.purple{background:linear-gradient(135deg,#b344e7,#6823bf 60%,#4b1692);border-color:#ec87ff;box-shadow:0 4px 0 #37106f,inset 0 2px #fff3}
.panel.gold{background:linear-gradient(145deg,#b36d18,#5d397e);border-color:#ffe274}
.notice{border:2px solid #3d8ce3;background:linear-gradient(150deg,#0b377f,#08235f);padding:14px;color:#dcedff;font-weight:700;box-shadow:inset 0 1px #ffffff15}
.notice.warn{background:linear-gradient(145deg,#704527,#4b2a41);border-color:#ecb45f;color:#fff3d5}
.mini-stat{border:2px solid #3d8fec;background:linear-gradient(155deg,#114c9f,#092565);box-shadow:0 4px 0 #031747,inset 0 1px #8fd1ff38;padding:15px 7px}
.mini-stat strong{font-size:24px;color:#fff06d;text-shadow:0 2px #5f3a05}
.mini-stat small{font-size:10px;color:#c8dcff;font-weight:800}
.list-row{border:2px solid #397ed3;background:linear-gradient(155deg,#103f8f,#082561);box-shadow:0 3px 0 #031544,inset 0 1px #ffffff18;min-height:66px}
.list-row:hover{border-color:#63b8ff}
.info-list{border:2px solid #3b83d8;background:#08245f;overflow:hidden;box-shadow:0 3px 0 #03133f}
.info-line{border-color:#ffffff18}

/* daily gift */
.daily-banner{
  position:relative;overflow:hidden;
  gap:12px;padding:12px 13px;
  border:2px solid #f188ff;border-radius:18px;
  background:linear-gradient(110deg,#8f31dd 0,#c42dde 55%,#e243d7 100%);
  box-shadow:0 5px 0 #5b157f,inset 0 2px #ffc9ff73,0 10px 22px #1207294a;
}
.daily-banner:after{content:'';position:absolute;inset:-30px auto -30px 32%;width:110px;transform:rotate(19deg);background:linear-gradient(90deg,transparent,#fff3,transparent);pointer-events:none}
.daily-banner .gift-icon{width:54px;height:54px;min-width:54px;display:grid;place-items:center;border-radius:14px;background:#8624c4;border:2px solid #e986ff;box-shadow:inset 0 2px #fff4,0 3px #4a116d}
.daily-banner .gift-icon .game-icon{width:43px;height:43px}
.daily-banner strong{font-size:16px;font-weight:900;text-shadow:0 2px #6d176f}
.daily-banner small{font-size:11px;color:#f7dcff;font-weight:800}
.daily-banner .btn{z-index:1}

/* cartoon buttons */
.btn{
  min-height:49px;padding:13px 16px;border:2px solid #fff18a;border-radius:14px;
  color:#3b2706;font-size:13px;font-weight:900;letter-spacing:.015em;
  background:linear-gradient(180deg,#fff378 0,#ffdc2f 50%,#ffbd12 100%);
  box-shadow:0 5px 0 var(--yellow-edge),inset 0 2px #fffbd0,0 7px 14px #020a2a42;
  text-shadow:0 1px #fff6a8;
  transition:transform .08s ease,filter .12s ease,box-shadow .08s ease;
}
.btn:hover{filter:brightness(1.055) saturate(1.08)}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 var(--yellow-edge),inset 0 2px #fffbd0}
.btn.blue{color:white;border-color:#79d4ff;background:linear-gradient(180deg,#36b6ff,#1288f3 55%,#0862d7);box-shadow:0 5px 0 #07479e,inset 0 2px #c6efff;text-shadow:0 2px #07529f}
.btn.purple{color:white;border-color:#e395ff;background:linear-gradient(180deg,#c65dff,#9631e6 56%,#6e20bf);box-shadow:0 5px 0 #4b138f,inset 0 2px #f4c8ff;text-shadow:0 2px #57108d}
.btn.red{color:white;border-color:#ffb3c9;background:linear-gradient(180deg,#ff7fa7,#ee4e82 55%,#ce2860);box-shadow:0 5px 0 #8a1643,inset 0 2px #ffd3e0;text-shadow:0 2px #9f1b4b}
.btn.ghost{color:#e0efff;border:2px solid #4d91e8;background:linear-gradient(180deg,#144592,#0a2c70);box-shadow:0 4px 0 #031646,inset 0 1px #9bcfff33;text-shadow:0 2px #061842}
.btn.link{min-height:38px;border:0;background:transparent;box-shadow:none;color:#bbd9ff;text-shadow:none}
.btn.sm{min-height:39px;border-radius:11px;padding:9px 12px;font-size:11px}
.btn .game-icon{width:25px;height:25px}

/* tap stage */
.tap-area{height:286px;margin:1px -4px -1px}
.tap-rays{
  width:310px;height:310px;
  background:repeating-conic-gradient(from 0deg,#bfe8ff00 0 12deg,#77caff34 13deg 23deg);
  mask-image:radial-gradient(circle,#000 0 48%,transparent 72%);
  animation:rotate 65s linear infinite;
}
.tap-area:before{content:'';position:absolute;width:250px;height:105px;bottom:19px;border-radius:50%;background:radial-gradient(ellipse,#0313427a,transparent 68%);filter:blur(5px)}
.tap-target{width:285px;height:276px;filter:drop-shadow(0 0 13px #37aaff32)}
.box-art{filter:drop-shadow(0 15px 11px #020a2e99) drop-shadow(0 0 12px #38a9ff33);transition:transform .09s ease,filter .09s ease}
.tap-target:active .box-art,.tap-target.pressed .box-art{transform:scale(.92) rotate(-2deg);filter:drop-shadow(0 8px 9px #020a2e99) drop-shadow(0 0 30px #ffe65d)}
.tap-caption{font-size:25px;font-weight:900;letter-spacing:-.025em;margin-top:-6px;margin-bottom:15px;color:#fff}
.float-tap{font-family:'Nunito',Rubik,sans-serif;font-weight:900;color:#fff36d;font-size:32px;-webkit-text-stroke:1px #7f4700;text-shadow:0 3px #4e2f05,0 0 12px #fff45f}

/* progress */
.progress{height:13px;border:2px solid #2d6fbe;background:#041641;border-radius:20px;box-shadow:inset 0 2px 4px #0008;margin-top:8px}
.progress>i{background:linear-gradient(180deg,#fff680,#ffd62d 48%,#ffb114);box-shadow:inset 0 2px #fff9,0 0 8px #ffd13e55}
.progress.green>i{background:linear-gradient(180deg,#a9ff88,#47e56d 55%,#21bc51)}
.progress.purple>i{background:linear-gradient(180deg,#e69aff,#bb4bf0 55%,#8e26d4)}
.progress-label{font-size:12px;color:#cce0ff;font-weight:800}
.progress-label strong{font-weight:900;color:#fff}

/* cases / rewards */
.segmented{border:2px solid #397fdb;background:#061d5d;border-radius:15px;padding:5px;box-shadow:inset 0 2px #0005}
.segmented button{font-weight:900;font-size:12px;color:#bad4ff;border-radius:11px}
.segmented button.active{color:#3e2803;background:linear-gradient(#fff37d,#ffd42d);box-shadow:0 3px 0 #9c5b0a,inset 0 2px #fffbc8}
.case-grid{gap:13px}
.case-card{
  min-height:205px;padding:13px 10px 14px;
  border:2px solid #409bf2;border-radius:20px;
  background:linear-gradient(155deg,#1760bd,#0a2f79 70%);
  box-shadow:0 5px 0 #03184a,inset 0 2px #ffffff2d,0 9px 18px #010a2b45;
}
.case-card:after{content:'';position:absolute;inset:auto -20% -45% -20%;height:75%;border-radius:50%;background:radial-gradient(circle,#53bfff32,transparent 68%);z-index:-1}
.case-card .case-img{width:132px;height:118px;filter:drop-shadow(0 8px 6px #020a2e88)}
.case-card h3{font-size:14px;font-weight:900;margin-top:2px;margin-bottom:7px;text-shadow:0 2px #05194d}
.case-card .price{font-size:18px;font-weight:900;border:1px solid #6ca9e7;background:#061b4fc4;border-radius:10px;padding:5px 10px;box-shadow:inset 0 1px #ffffff22}
.case-card small{font-size:10px;color:#d4e7ff;font-weight:800}
.case-card.gold{background:linear-gradient(145deg,#c87d18,#733d19 58%,#51346e);border-color:#ffe179;box-shadow:0 5px 0 #743c08,inset 0 2px #fff3}
.case-card.purple{background:linear-gradient(145deg,#9f3fea,#4d178d);border-color:#dc86ff;box-shadow:0 5px 0 #321064,inset 0 2px #fff3}
.case-card.red{background:linear-gradient(145deg,#e94b74,#7b184d);border-color:#ff9ab4;box-shadow:0 5px 0 #6d143e,inset 0 2px #fff3}
.case-card.rainbow{background:linear-gradient(145deg,#7b4ff5,#1faac7 52%,#d28429);border-color:#b8f5ff}
.badge{font-size:9px;font-weight:900;border-radius:9px;padding:5px 8px;border:1px solid #ffffff42;box-shadow:0 2px #041544,inset 0 1px #fff4}

/* collection */
.search,.select{min-height:49px;border:2px solid #4b9bf0;border-radius:14px;background:#061f59;color:white;font-weight:800;box-shadow:inset 0 2px 5px #0006}
.search::placeholder{color:#87a9dc}
.search:focus,.select:focus{border-color:#7bd1ff;box-shadow:0 0 0 3px #2c94ff2e,inset 0 2px 5px #0006}
.chip{border:2px solid #3a7fd0!important;background:#092861!important;color:#c9dcff!important;font-weight:900!important}
.chip.active{background:linear-gradient(#fff178,#ffd129)!important;color:#3d2903!important;border-color:#ffef91!important;box-shadow:0 3px #965909!important}
.collection-grid{gap:11px}
.card-tile{border:2px solid #3e8cde;border-radius:18px;background:linear-gradient(155deg,#124692,#08265f);box-shadow:0 4px 0 #031341,inset 0 1px #ffffff26;overflow:hidden}
.card-tile .portrait{border-bottom:2px solid #ffffff20}
.card-name{font-size:12px;font-weight:900;text-shadow:0 2px #06163f}
.owned-mark{background:#1dbb64;border:2px solid #9affbd;color:white;font-weight:900}

/* avatars / portraits */
.portrait{filter:saturate(1.08) contrast(1.03)}
.avatar-picker button{border-radius:14px!important;border:2px solid #4e8bdc!important;background:#08245d;box-shadow:0 3px #031443}
.avatar-picker button.selected{border:3px solid #ffe45b!important;box-shadow:0 0 0 2px #8e5609,0 0 18px #ffdd3d6b!important}

/* lower nav */
.nav{
  width:min(100%,520px);gap:3px;
  padding:7px 7px calc(8px + var(--safe));
  border-top:2px solid #247ee5;
  background:linear-gradient(180deg,#08245cf7,#061844fa);
  box-shadow:0 -8px 20px #020a2d66,inset 0 1px #64baff2b;
  backdrop-filter:blur(18px) saturate(1.15);
}
.nav button{
  min-height:63px;padding:5px 1px 4px;border-radius:14px;
  color:#9fbbe9;font-size:9px;font-weight:900;
  transition:.12s ease;
}
.nav button b{display:grid;place-items:center;width:37px;height:34px;margin:0 auto 3px;border-radius:12px;transition:.12s ease}
.nav button .nav-icon{width:30px;height:30px;filter:drop-shadow(0 2px #03174d)}
.nav button.active{color:#ffe55a;background:linear-gradient(180deg,#1663d8,#0b398f);box-shadow:inset 0 0 0 2px #3f94f0,0 3px 0 #031745}
.nav button.active b{transform:translateY(-1px) scale(1.06);filter:drop-shadow(0 0 6px #ffd73a55)}

/* modal surfaces */
.modal-backdrop{background:#01081fd6;backdrop-filter:blur(8px)}
.modal{
  border-radius:28px 28px 0 0;padding:19px 16px calc(23px + var(--safe));
  border:2px solid #57b3ff;border-bottom:0;
  background:linear-gradient(160deg,#174fa7,#092666 58%,#061d53);
  box-shadow:0 -7px 40px #000b,inset 0 2px #ffffff2b;
}
.modal-handle{width:48px;height:5px;border-radius:10px;background:#87baf0;opacity:.65}
.modal-head{padding-bottom:14px;border-bottom:1px solid #ffffff20}
.modal-head h2{font-size:23px;font-weight:900}
.close{width:42px;height:42px;border:2px solid #6ab8ff;border-radius:12px;background:linear-gradient(#2b75d7,#0c3b8d);box-shadow:0 3px #06265e;color:white;font-weight:900}
.hero-result{border-radius:24px;border:2px solid var(--rarity);box-shadow:0 0 30px var(--rarity),0 5px #031746;overflow:hidden}
.result-title{font-size:31px;color:#fff279;text-align:center;margin-top:14px}
.opening-stage{background:radial-gradient(circle,#6bc6ff4a,transparent 65%)}
.opening-stage .box-sprite{filter:drop-shadow(0 13px 8px #010a2d8c) drop-shadow(0 0 16px #62c4ff66)}

/* onboarding */
.onboarding{
  padding:28px 18px 34px;
  background:radial-gradient(circle at 50% 16%,#28a7ff 0,#0965dd 25%,#082d7c 55%,#061845 100%);
}
.welcome-kicker,.welcome-label,.welcome-panel .label{font-family:'Nunito',Rubik,sans-serif;font-weight:900;color:#bde7ff;letter-spacing:.09em}
.brand-title h1{
  font-size:clamp(44px,13vw,64px);font-style:italic;font-weight:900;
  color:#ffe94f;letter-spacing:-3px;
  -webkit-text-stroke:2px #894509;
  text-shadow:0 3px #ff9e0d,0 7px #713506,0 10px #051341;
}
.brand-title p{font-family:'Nunito',Rubik,sans-serif;font-weight:900;font-size:10px;color:#d9efff;letter-spacing:.1em}
.welcome-art{height:205px}
.welcome-art .hero-welcome{width:250px;max-height:205px;filter:drop-shadow(0 15px 14px #020a2f99) drop-shadow(0 0 16px #60c9ff55)}
.welcome-panel{border:2px solid #61c2ff;border-radius:24px;padding:20px 17px;background:linear-gradient(155deg,#1550a8f4,#092661f4);box-shadow:0 7px #031747,inset 0 2px #fff3}
.welcome-panel h2{font-size:24px;font-weight:900}.welcome-copy{font-size:13px;color:#d0e6ff;font-weight:700}
.welcome-start{font-size:14px}

/* gifts / badges / ranking */
.gift-days{gap:9px}
.gift-day{border:2px solid #397fce;border-radius:16px;background:linear-gradient(155deg,#113b82,#09245f);box-shadow:0 3px #031442,inset 0 1px #ffffff25}
.gift-day.today{border-color:#ffe86a;outline:0;background:linear-gradient(155deg,#6941a7,#9f3fc4);box-shadow:0 4px #491274,0 0 20px #ffd83f38,inset 0 1px #fff4}
.gift-day.done{border-color:#48bb7b;background:linear-gradient(155deg,#176b64,#0b3b5c)}
.badge-item{border:2px solid #4288d8;border-radius:18px;background:linear-gradient(155deg,#12428b,#08255f);box-shadow:0 4px #031442,inset 0 1px #ffffff25}
.badge-item.locked{filter:saturate(.35);opacity:.62}
.podium button{border:2px solid #4b94e8;background:linear-gradient(160deg,#13489b,#082760);box-shadow:0 4px #031442,inset 0 1px #fff3;border-radius:18px}
.podium button.first{border-color:#ffe267;background:linear-gradient(155deg,#76551e,#4f337a);box-shadow:0 5px #684006,0 0 22px #ffd8402b,inset 0 1px #fff4}
.rank-number,.place{font-weight:900}

/* misc */
.token{font-weight:900;box-shadow:0 2px #07518c,inset 0 2px #d7f5ff}
.empty{padding:28px 18px;border:2px dashed #4b8bd3;background:#071e524f}.empty .big{font-size:46px}
.faq{border-color:#3c81d1!important;background:#08245f!important;border-radius:15px!important}
.toggle-row{border-color:#ffffff18!important}
.switch{box-shadow:inset 0 2px 4px #0007}
.task-progress{font-weight:800;color:#bcd7ff}
#offline{font-family:'Nunito',Rubik,sans-serif;font-weight:900;background:#d63b68;color:#fff;border-top:2px solid #ff9eb8}
.toast{font-family:'Nunito',Rubik,sans-serif;font-weight:900;border-radius:14px}
.splash{font-family:'Nunito',Rubik,sans-serif;background:radial-gradient(circle at 50% 35%,#1b93ff,#0b3b9f 50%,#061844)}
.splash h1{font-style:italic;color:#ffe34a;-webkit-text-stroke:1px #854300;text-shadow:0 3px #c36808,0 6px #06133f}

@media(max-width:380px){
  .topbar{padding-left:13px;padding-right:13px}.brand{font-size:19px}.balance{min-width:148px;padding-left:10px;padding-right:10px}.balance strong{font-size:22px}
  .page{padding-left:12px;padding-right:12px}.daily-banner{padding:10px}.daily-banner .gift-icon{width:48px;height:48px;min-width:48px}.daily-banner strong{font-size:14px}.daily-banner small{font-size:10px}
  .tap-area{height:255px}.tap-target{width:250px;height:246px}.tap-rays{width:280px;height:280px}.tap-caption{font-size:22px}
  .case-card{min-height:194px}.case-card .case-img{width:120px;height:106px}.case-card h3{font-size:13px}.case-card .price{font-size:16px}
  .nav button{font-size:8.5px}.nav button b{width:34px;height:32px}.nav button .nav-icon{width:28px;height:28px}
}

@media(prefers-reduced-motion:reduce){.btn,.nav button,.box-art{transition:none}}

/* v7 font lock: prevents older theme rules from leaking through. */
#app,#modal-root,#offline,#toasts,
#app button,#app input,#app select,#app textarea,
#modal-root button,#modal-root input,#modal-root select,#modal-root textarea,
#app h1,#app h2,#app h3,#modal-root h1,#modal-root h2,#modal-root h3,
#app .brand,#app .tap-caption,#app .btn,#app .nav button,#app .balance strong,
#app .case-card .price,#app .mini-stat strong,#app .card-name,#app .welcome-label,
#app .welcome-panel .label,#app .brand-title p,#app .welcome-kicker,
#modal-root .upgrade-art b,#modal-root .btn,#modal-root .card-name{
  font-family:'Nunito','Arial Rounded MT Bold','Trebuchet MS',system-ui,sans-serif;
}

/* ======================================================================
   MEGABOX V8 — DEEP ART-DIRECTION PASS
   One visual language: rounded toy surfaces, bold hierarchy, unified icon
   system, improved spacing, stronger depth, clearer interaction states.
   ====================================================================== */
:root{
  --v8-night:#030b28;
  --v8-deep:#07194e;
  --v8-blue:#0869ec;
  --v8-sky:#44c6ff;
  --v8-cyan:#88efff;
  --v8-yellow:#ffe448;
  --v8-orange:#ff9d12;
  --v8-pink:#f349c3;
  --v8-purple:#8738df;
  --v8-green:#4fe06d;
  --v8-white:#f8fbff;
  --v8-line:#60b8ff;
  --v8-radius:22px;
  --v8-radius-sm:15px;
  --v8-stroke:#061943;
  --v8-shadow:0 6px 0 #03133d,0 14px 28px #0108234a;
  --v8-shadow-soft:0 10px 24px #01082342;
  font-family:'Nunito','Arial Rounded MT Bold',system-ui,sans-serif;
}

html,body{background:#040d2c}
body{
  font-family:'Nunito','Arial Rounded MT Bold',system-ui,sans-serif;
  font-weight:800;
  background:
    radial-gradient(circle at 12% 8%,#6947ff3d 0 7%,transparent 28%),
    radial-gradient(circle at 88% 34%,#00b8ff35 0 8%,transparent 30%),
    radial-gradient(circle at 48% 110%,#d92dca25 0 10%,transparent 36%),
    linear-gradient(145deg,#111443,#061134 46%,#030a25 100%);
}

#app{
  border-left:1px solid #358ff0;
  border-right:1px solid #358ff0;
  background:
    radial-gradient(circle at 50% 255px,#34b8ff44 0 8%,transparent 32%),
    linear-gradient(180deg,#0a4db9 0,#073a91 38%,#072561 72%,#061b4d 100%);
  box-shadow:0 0 0 1px #02091f,0 0 120px #000c;
}
#app:before{
  opacity:.20;
  background-image:
    radial-gradient(circle,#84ddff 1.2px,transparent 1.8px),
    linear-gradient(130deg,transparent 0 48%,#72ceff0d 49% 50%,transparent 51%);
  background-size:30px 30px,76px 76px;
}

/* v8 typography */
#app,#modal-root,#offline,#toasts,
#app button,#app input,#app select,#app textarea,
#modal-root button,#modal-root input,#modal-root select,#modal-root textarea{
  font-family:'Nunito','Arial Rounded MT Bold',system-ui,sans-serif;
}
#app h1,#app h2,#modal-root h1,#modal-root h2,
#app .tap-caption,#app .result-title,#app .brand-title h1,
#app .section-hero h1,#app .brand{
  font-family:'Nunito','Arial Rounded MT Bold',system-ui,sans-serif;
  font-weight:900;
  letter-spacing:-.045em;
}
#app .brand,#app .brand-title h1,#app .splash h1,
#app .tap-caption{
  font-family:'Rubik Bubbles','Nunito','Arial Rounded MT Bold',system-ui,sans-serif;
  font-weight:400;
  letter-spacing:.005em;
}
#app h3,#modal-root h3,#app .btn,#modal-root .btn,#app .nav button,
#app .balance strong,#app .mini-stat strong,#app .case-card .price,
#app .card-name,#app .badge,#modal-root .badge{font-weight:900}
#app h1{font-size:clamp(30px,7.8vw,38px);line-height:.96}
#app h2,#modal-root h2{font-size:clamp(24px,6.2vw,30px);line-height:1.02}
#app h3,#modal-root h3{font-size:16px;line-height:1.14;letter-spacing:-.02em}
#app small,#modal-root small{font-weight:800;line-height:1.45}

.game-icon{width:27px;height:27px;display:inline-block;vertical-align:-7px;overflow:visible;filter:drop-shadow(0 2px 0 #02113c);flex:0 0 auto}
.large-icon{width:64px!important;height:64px!important;filter:drop-shadow(0 4px 0 #03123c) drop-shadow(0 0 14px #4dd4ff4d)!important}
.row-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(160deg,#13479a,#082762);border:2px solid #4e9ce8;box-shadow:0 3px 0 #03123c,inset 0 1px #fff3;flex:0 0 auto}
.row-icon .game-icon{width:30px;height:30px}

/* header — compact, premium, game-like */
.topbar{
  padding:12px 15px 13px;
  background:
    radial-gradient(circle at 90% 0,#1b7add33,transparent 40%),
    linear-gradient(180deg,#081f62fa,#06194ef4);
  border-bottom:2px solid #1a89ef;
  box-shadow:0 6px 18px #01071e66,inset 0 -1px #7bd2ff35;
}
.topline{margin-bottom:10px}
.me-button{gap:10px;min-height:47px}
.avatar{
  width:46px;height:46px;border-radius:15px;
  border:3px solid var(--v8-yellow);
  box-shadow:0 0 0 2px #8a35d0,0 4px 0 #03133f,0 0 16px #f13ce94d;
}
.nick{font-size:15px;font-weight:900;max-width:150px;text-shadow:0 2px #04133f}
.me-button small{font-size:9.5px!important;color:#bcd9ff!important;letter-spacing:.02em}
.balance{
  min-width:170px;min-height:50px;padding:8px 12px;
  border:2px solid #2faeff;border-radius:16px;
  background:linear-gradient(160deg,#0f438f,#061d56);
  box-shadow:0 4px 0 #03133e,inset 0 1px #b3e9ff3d,0 7px 14px #01082342;
}
.balance strong{font-size:26px;line-height:.9;letter-spacing:-.05em}
.balance small{font-size:8.5px;color:#a9d4ff;letter-spacing:.08em}
.brand{
  color:#ffe94c;font-size:23px;line-height:.85;
  -webkit-text-stroke:.4px #784308;
  text-shadow:0 2px 0 #b86608,0 4px 0 #041441,0 0 12px #ffdc3355;
  transform:none;font-style:normal;
}
.brand small{font-family:'Nunito',sans-serif;font-size:7.8px;font-weight:900;letter-spacing:.16em;color:#cae6ff;text-shadow:none;margin-top:7px}
.topbadge{
  min-height:43px;border-radius:13px;border:2px solid #fff49f;
  background:linear-gradient(180deg,#fff486 0,#ffdc36 55%,#ffb80f 100%);
  box-shadow:0 4px 0 #985307,inset 0 2px #fffbd7,0 7px 13px #01082355;
  padding:7px 11px;font-size:12px;color:#492d04;
}
.topbadge .game-icon{width:25px;height:25px;vertical-align:-7px;filter:drop-shadow(0 1px #9d610c)}
.dev-label{font-size:8px!important;border-radius:8px;padding:5px 7px}

/* global page rhythm */
.page{padding:18px 15px 6px}
.stack{gap:14px}
.spacer{height:14px}
.section-title{margin-bottom:15px}
.eyebrow{font-size:10px;font-weight:900;letter-spacing:.13em;color:#a6e5ff;text-transform:uppercase}
.fineprint{font-size:10.5px;color:#a8c6ee;line-height:1.65;font-weight:800}

/* hero cards */
.section-hero{
  min-height:140px;margin:0 0 16px;padding:20px 18px 18px;
  border-radius:24px;border:2px solid #50baff;
  overflow:hidden;isolation:isolate;
  background:
    radial-gradient(circle at 88% 25%,#7cddff4c,transparent 27%),
    linear-gradient(145deg,#1765ca,#092a71 70%);
  box-shadow:0 6px 0 #031448,inset 0 2px #ffffff38,0 14px 25px #01082140;
}
.section-hero:before{
  content:'';position:absolute;inset:0;z-index:-1;opacity:.28;
  background:repeating-conic-gradient(from 200deg at 90% 38%,transparent 0 10deg,#b6efff2a 11deg 20deg);
}
.section-hero:after{width:205px;height:205px;right:-80px;top:-95px;background:radial-gradient(circle,#c8f3ff45 0,transparent 68%)}
.section-hero h1{margin-top:3px;color:#fff;text-shadow:0 3px 0 #04123d,0 6px 12px #02102d70}
.section-hero p{font-size:12.5px;line-height:1.45;color:#d7ecff;font-weight:800;max-width:72%;margin-top:8px}
.boxes-hero{background:radial-gradient(circle at 90% 35%,#9e5cff70,transparent 31%),linear-gradient(145deg,#1179ea,#4c24ae 112%)}
.collection-hero{background:radial-gradient(circle at 88% 32%,#e15eff55,transparent 30%),linear-gradient(145deg,#1765cb,#6932c6 115%)}
.friends-hero{background:radial-gradient(circle at 90% 35%,#71e3ff55,transparent 30%),linear-gradient(145deg,#087fd8,#4b35ba 105%)}
.exchange-hero{background:radial-gradient(circle at 89% 35%,#77ff8b44,transparent 30%),linear-gradient(145deg,#0b5dbd,#6726bd 110%)}
.top-hero{background:radial-gradient(circle at 88% 30%,#ffe36750,transparent 30%),linear-gradient(145deg,#7441bd,#a84c4c 110%)}
.section-hero img{position:absolute;right:-8px;bottom:-5px;max-width:180px;max-height:125px;object-fit:contain;filter:drop-shadow(0 8px 8px #020a2c99);z-index:-1}

/* universal toy surface */
.panel,.list-row,.mini-stat,.notice,.info-list,.empty,.faq,.link-field{
  border-radius:var(--v8-radius);
}
.panel{
  padding:16px;border:2px solid #3f9ff5;
  background:linear-gradient(155deg,#1452aa,#092a70 70%);
  box-shadow:0 5px 0 #031549,inset 0 2px #ffffff2b,var(--v8-shadow-soft);
}
.panel.flat{background:linear-gradient(155deg,#0c347c,#071f58);border-color:#397ed2;box-shadow:0 4px 0 #03133f,inset 0 1px #ffffff22}
.panel.purple{background:linear-gradient(135deg,#c144df,#7b28ca 58%,#51149e);border-color:#f188ff;box-shadow:0 5px 0 #3c0f72,inset 0 2px #ffd3ff4d,0 12px 22px #1905273f}
.panel.gold{background:linear-gradient(145deg,#c48020,#654185 75%);border-color:#ffe36d}
.notice{padding:14px 15px;border:2px solid #438fdc;background:linear-gradient(155deg,#0c377d,#08245f);box-shadow:0 3px 0 #03133f,inset 0 1px #ffffff1f;color:#dcebff;font-size:12px;line-height:1.55}
.notice.warn{border-color:#ffbf62;background:linear-gradient(150deg,#704a25,#4b2850);box-shadow:0 3px 0 #3f1e2c,inset 0 1px #fff2c83a;color:#fff3d9}
.list-row{
  min-height:70px;padding:11px 12px;border:2px solid #3b87dc;
  background:linear-gradient(155deg,#104591,#082560);
  box-shadow:0 4px 0 #031442,inset 0 1px #ffffff20;
}
.list-row:active{transform:translateY(2px);box-shadow:0 2px 0 #031442,inset 0 1px #ffffff20}
.mini-stat{
  padding:14px 7px 13px;border:2px solid #459af0;
  background:linear-gradient(155deg,#1553a8,#092866);
  box-shadow:0 4px 0 #031442,inset 0 2px #ffffff28;
}
.mini-stat strong{font-size:24px;color:#ffec54;text-shadow:0 2px #714108}
.mini-stat small{font-size:9.5px;color:#c8ddff}
.info-list{border:2px solid #3c86dc;background:#071f58;box-shadow:0 4px 0 #03133e;overflow:hidden}
.info-line{padding:13px 14px;border-color:#ffffff16}
.info-line strong{font-weight:900}

/* buttons — consistent 3D physical controls */
.btn{
  min-height:51px;padding:12px 16px;border:2px solid #fff59a;border-radius:15px;
  background:linear-gradient(180deg,#fff58d 0,#ffe13a 48%,#ffbb12 100%);
  color:#402704;font-size:12.5px;font-weight:900;letter-spacing:.02em;
  box-shadow:0 5px 0 #9e5708,inset 0 2px #fffde2,0 8px 14px #01082142;
  text-shadow:0 1px #fff9ac;
}
.btn:hover{filter:brightness(1.04) saturate(1.08)}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #9e5708,inset 0 2px #fffde2}
.btn.blue{color:#fff;border-color:#8ee5ff;background:linear-gradient(180deg,#42c7ff,#1493f3 52%,#0866d5);box-shadow:0 5px 0 #074895,inset 0 2px #d8f7ff,0 8px 14px #01082142;text-shadow:0 2px #07509a}
.btn.purple{color:#fff;border-color:#f0adff;background:linear-gradient(180deg,#d86aff,#a937e7 52%,#741fc1);box-shadow:0 5px 0 #4a128d,inset 0 2px #f9dcff;text-shadow:0 2px #611598}
.btn.red{color:#fff;border-color:#ffc0d1;background:linear-gradient(180deg,#ff82aa,#f04b83 55%,#cc275e);box-shadow:0 5px 0 #86153f,inset 0 2px #ffe0e9;text-shadow:0 2px #991a49}
.btn.ghost{color:#eaf5ff;border-color:#5ba5ef;background:linear-gradient(180deg,#164d98,#092d70);box-shadow:0 4px 0 #031441,inset 0 1px #bdeaff35;text-shadow:0 2px #061943}
.btn.link{min-height:38px;border:0;background:transparent;box-shadow:none;color:#bfe0ff;text-shadow:none}
.btn.sm{min-height:40px;padding:8px 11px;border-radius:12px;font-size:10.5px}
.btn .game-icon{width:25px;height:25px;margin-right:2px;vertical-align:-7px}

/* segmented controls and inputs */
.segmented{padding:5px;border:2px solid #3f86df;border-radius:17px;background:#061c55;box-shadow:inset 0 2px 5px #0007;margin-bottom:14px}
.segmented button{min-height:40px;border-radius:12px;font-size:11.5px;font-weight:900;color:#b9d5ff}
.segmented button.active{color:#432904;background:linear-gradient(180deg,#fff68b,#ffdc37);box-shadow:0 3px 0 #955307,inset 0 2px #fffbd0}
.search,.select{
  min-height:50px;border:2px solid #4a99e9;border-radius:15px;
  background:linear-gradient(180deg,#08245f,#061c50);color:#fff;
  box-shadow:inset 0 2px 5px #0006,0 3px 0 #03123b;padding-left:14px;
  font-size:13px;font-weight:800;
}
.search:focus,.select:focus{border-color:#7cdbff;box-shadow:0 0 0 3px #47c5ff2b,inset 0 2px 5px #0006,0 3px 0 #03123b}
.filters{gap:7px;margin-top:10px}
.chip{min-height:37px!important;border:2px solid #377fd2!important;border-radius:12px!important;background:#08265f!important;color:#cbe1ff!important;font-size:10px!important;font-weight:900!important;padding:7px 10px!important}
.chip.active{color:#432904!important;background:linear-gradient(#fff58d,#ffd52b)!important;border-color:#fff5a0!important;box-shadow:0 3px #925006!important}

/* daily reward */
.daily-banner{
  min-height:76px;padding:11px 12px;border:2px solid #ff8af4;border-radius:20px;
  background:
    radial-gradient(circle at 18% 20%,#ff8de961 0 7%,transparent 27%),
    linear-gradient(110deg,#7f2dd5 0,#bd2ede 52%,#e23cbf 100%);
  box-shadow:0 5px 0 #4c116d,inset 0 2px #ffd9fb61,0 12px 20px #13051f45;
}
.daily-banner .gift-icon{width:55px;height:55px;min-width:55px;border:2px solid #ff9cf7;border-radius:16px;background:linear-gradient(160deg,#8d28c8,#5d198f);box-shadow:0 3px 0 #44105f,inset 0 2px #fff3}
.daily-banner .gift-icon .game-icon{width:44px;height:44px;filter:drop-shadow(0 3px #4b135d)}
.daily-banner strong{font-size:16px}.daily-banner small{font-size:10.5px;color:#fae4ff}

/* tap scene */
.tap-area{height:296px;margin:3px -10px 0;isolation:isolate}
.tap-rays{width:335px;height:335px;background:repeating-conic-gradient(from 0deg,#bcecff00 0 10deg,#7bd7ff40 11deg 20deg);mask-image:radial-gradient(circle,#000 0 44%,transparent 72%);opacity:.9}
.tap-area:after{content:'';position:absolute;width:250px;height:62px;bottom:18px;border-radius:50%;background:radial-gradient(ellipse,#010a2b99,transparent 68%);filter:blur(7px);z-index:-1}
.tap-target{width:296px;height:286px;filter:drop-shadow(0 0 18px #40baff35)}
.box-art{filter:drop-shadow(0 17px 12px #01072499) drop-shadow(0 0 14px #55c7ff45);transition:transform .085s cubic-bezier(.2,.9,.3,1.3),filter .085s ease}
.tap-target:active .box-art,.tap-target.pressed .box-art{transform:scale(.91) rotate(-2deg) translateY(4px);filter:drop-shadow(0 8px 8px #01072499) drop-shadow(0 0 34px #ffe751)}
.tap-caption{font-size:24px;color:#fff;text-align:center;margin-top:-4px;margin-bottom:17px;-webkit-text-stroke:.3px #061943;text-shadow:0 3px #061943,0 6px 14px #01082266}
.float-tap{font-family:'Rubik Bubbles','Nunito',sans-serif;font-weight:400;font-size:32px;color:#fff15a;-webkit-text-stroke:.5px #7f4808;text-shadow:0 3px #6f3b05,0 0 15px #fff05c}

/* progress */
.progress{height:14px;border:2px solid #2f72bd;background:#03133b;border-radius:99px;box-shadow:inset 0 2px 5px #0009;margin-top:8px}
.progress>i{background:linear-gradient(180deg,#fff99d 0,#ffdc35 48%,#ffac0f 100%);box-shadow:inset 0 2px #fff9,0 0 9px #ffd7394f}
.progress.green>i{background:linear-gradient(180deg,#b6ff9b,#4ee96f 54%,#24b951)}
.progress.purple>i{background:linear-gradient(180deg,#f2b1ff,#c651f0 54%,#8a28ce)}
.progress-label{font-size:11.5px;font-weight:800;color:#cce2ff}.progress-label strong{color:#fff;font-weight:900}

/* cases */
.case-grid{gap:13px}
.case-card{
  min-height:215px;padding:13px 10px 14px;border:2px solid #49a7f7;border-radius:22px;
  background:
    radial-gradient(circle at 50% 34%,#67d6ff3f,transparent 31%),
    linear-gradient(155deg,#1766bf,#0a3178 72%);
  box-shadow:0 5px 0 #031546,inset 0 2px #ffffff35,0 10px 20px #01082342;
  overflow:hidden;isolation:isolate;
}
.case-card:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(120deg,transparent 28%,#ffffff0b 29% 31%,transparent 32%)}
.case-card:after{height:82%;bottom:-52%;background:radial-gradient(circle,#78d8ff38,transparent 66%)}
.case-card .case-img{width:136px;height:122px;filter:drop-shadow(0 9px 7px #01072499);transition:.13s ease}
.case-card:active .case-img{transform:scale(.95) translateY(2px)}
.case-card h3{font-size:14px;margin:2px 0 7px}
.case-card .price{display:inline-flex;align-items:center;justify-content:center;min-height:33px;padding:5px 10px;border:2px solid #5fa7e5;border-radius:11px;background:#061b4fd9;box-shadow:inset 0 1px #ffffff2b;font-size:17px}
.case-card small{font-size:9.5px;color:#d5e9ff}
.case-card.gold{background:radial-gradient(circle at 50% 32%,#ffe8854d,transparent 32%),linear-gradient(145deg,#c98119,#74401c 58%,#513672);border-color:#ffe278;box-shadow:0 5px 0 #713b07,inset 0 2px #fff5,0 10px 20px #1b0c1742}
.case-card.purple{background:radial-gradient(circle at 50% 32%,#f49aff44,transparent 32%),linear-gradient(145deg,#a23ee7,#4e188d);border-color:#e793ff;box-shadow:0 5px 0 #331060,inset 0 2px #fff4}
.case-card.red{background:radial-gradient(circle at 50% 32%,#ffb0ca38,transparent 32%),linear-gradient(145deg,#e95077,#7b194d);border-color:#ff9cb7;box-shadow:0 5px 0 #661039,inset 0 2px #fff4}
.case-card.rainbow{background:radial-gradient(circle at 50% 32%,#fff8bd3b,transparent 31%),linear-gradient(145deg,#7b4ef2,#1babc6 52%,#cb8130);border-color:#bff7ff}
.badge{border:2px solid #ffffff4f;border-radius:10px;padding:5px 8px;font-size:8.5px;box-shadow:0 2px 0 #03123d,inset 0 1px #fff5}

/* collection */
.collection-grid{gap:11px}
.card-tile{border:2px solid #4396e1;border-radius:19px;background:linear-gradient(155deg,#124995,#08245c);box-shadow:0 4px 0 #03123f,inset 0 1px #fff3;overflow:hidden}
.card-tile:active{transform:translateY(2px)}
.card-tile .portrait{border-bottom:2px solid #ffffff1f}
.card-name{font-size:11.5px;padding:8px 6px 10px;text-shadow:0 2px #04123d}
.owned-mark,.lock{width:28px;height:28px;padding:0;border-radius:9px;display:grid;place-items:center;box-shadow:0 2px 0 #03123d}
.owned-mark{background:#20be65;border:2px solid #9effbf}
.lock{background:#17437f;border:2px solid #5e9fe4;color:#fff}
.owned-mark .game-icon,.lock .game-icon{width:21px;height:21px;filter:none}
.shard-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--shard-color) 32%,#08265f);border:2px solid var(--shard-color);box-shadow:0 3px 0 #03123f}
.shard-mark .game-icon{width:30px;height:30px}

/* tokens */
.token{width:26px;height:26px;border:0;background:none;padding:0;box-shadow:none;vertical-align:-8px}
.token-icon{width:26px;height:26px;display:block;filter:drop-shadow(0 2px #03123d)}

/* navigation */
.nav{
  gap:4px;padding:7px 7px calc(8px + var(--safe));
  border-top:2px solid #2587e7;
  background:linear-gradient(180deg,#08245df8,#051542fb);
  box-shadow:0 -9px 22px #0107216e,inset 0 1px #83d7ff2d;
}
.nav button{min-height:64px;border-radius:15px;color:#9ebce9;font-size:8.7px;font-weight:900;letter-spacing:.01em;padding:5px 1px 4px}
.nav button b{width:39px;height:36px;margin:0 auto 3px;border-radius:12px}
.nav button .nav-icon{width:31px;height:31px;filter:drop-shadow(0 2px #03123e)}
.nav button.active{color:#ffe95c;background:linear-gradient(180deg,#1768dc,#0b3c91);box-shadow:inset 0 0 0 2px #49a7ff,0 3px 0 #03143e,0 0 15px #2197ff22}
.nav button.active b{transform:translateY(-1px) scale(1.08);filter:drop-shadow(0 0 8px #ffe44040)}

/* modals */
.modal-backdrop{background:#010617dc;backdrop-filter:blur(10px)}
.modal{
  border-radius:30px 30px 0 0;padding:18px 16px calc(24px + var(--safe));
  border:2px solid #5cbbff;border-bottom:0;
  background:
    radial-gradient(circle at 87% 8%,#4bc6ff30,transparent 28%),
    linear-gradient(160deg,#1550a6,#092763 60%,#061b4d);
  box-shadow:0 -8px 42px #000c,inset 0 2px #ffffff32;
}
.modal-handle{width:52px;height:5px;background:#8cc7ff;opacity:.7}
.modal-head{padding-bottom:13px;border-bottom:1px solid #ffffff1c;margin-bottom:14px}
.modal-head h2{font-size:24px;text-shadow:0 3px #03123c}
.close{width:42px;height:42px;border:2px solid #65b7ff;border-radius:13px;background:linear-gradient(180deg,#2b79d9,#0c3d8c);box-shadow:0 3px 0 #06245a,inset 0 1px #caefff55;color:#fff;padding:5px}
.close .game-icon{width:27px;height:27px;filter:none;vertical-align:0}
.icon-btn{width:42px;height:42px;border:2px solid #60b3ff;border-radius:13px;background:linear-gradient(#2673d5,#0a3a88);box-shadow:0 3px #052259;padding:6px}
.icon-btn .game-icon{width:26px;height:26px;filter:none;vertical-align:0}
.hero-result{border-radius:26px;border:3px solid var(--rarity);box-shadow:0 0 34px color-mix(in srgb,var(--rarity) 55%,transparent),0 5px #03123f;overflow:hidden}
.result-title{font-size:30px;color:#fff076;text-align:center;margin-top:14px;text-shadow:0 3px #623706,0 6px #03123f}
.opening-stage{background:radial-gradient(circle,#79d3ff52,transparent 65%);border-radius:24px}
.opening-stage .box-sprite{filter:drop-shadow(0 14px 8px #01072491) drop-shadow(0 0 20px #62d1ff75)}

/* profile toggles and avatar selection */
.avatar-picker{gap:9px}
.avatar-picker button{border-radius:16px!important;border:2px solid #4d92de!important;background:#08245d!important;box-shadow:0 3px #03123e!important;padding:4px!important}
.avatar-picker button.selected{border:3px solid #ffe75a!important;box-shadow:0 0 0 2px #8b5007,0 0 20px #ffd93c6b!important;transform:translateY(-2px)}
.toggle-row{min-height:53px;padding:10px 2px;border-color:#ffffff15!important}.toggle-row label{font-size:12px;font-weight:900;color:#e2efff}
.switch{width:47px;height:28px;border-radius:99px;background:#051946;border:2px solid #3879bf;box-shadow:inset 0 2px 4px #0008}
.switch:checked{background:#22b75a;border-color:#74eb96}

/* onboarding */
.onboarding{
  min-height:100dvh;padding:26px 18px 34px;
  background:
    radial-gradient(circle at 50% 17%,#3bbcff 0,#0b70e4 24%,#082f7d 53%,#061845 100%);
}
.welcome-stars{display:flex;justify-content:center;gap:8px;height:27px;opacity:.85}
.welcome-stars .game-icon{width:22px;height:22px}.welcome-stars .game-icon:nth-child(2){width:29px;height:29px;margin-top:-5px}.welcome-stars .game-icon:nth-child(3){transform:scale(.78)}
.brand-title h1{font-family:'Rubik Bubbles','Nunito',sans-serif!important;font-size:clamp(46px,13vw,66px);font-weight:400!important;font-style:normal;letter-spacing:.01em;color:#ffe84b;-webkit-text-stroke:.8px #804505;text-shadow:0 3px #c66c0a,0 7px #632f04,0 10px #03123c,0 0 20px #ffdf3c40}
.brand-title p{font-size:9.5px;font-weight:900;letter-spacing:.12em;color:#d8efff}
.welcome-kicker,.welcome-label,.welcome-panel .label{font-family:'Nunito',sans-serif;font-size:10px;font-weight:900;color:#bce9ff;letter-spacing:.11em}
.welcome-art{height:215px}.welcome-art .hero-welcome{width:262px;max-height:215px;filter:drop-shadow(0 16px 13px #0107249c) drop-shadow(0 0 20px #63d6ff61)}
.welcome-panel{border:2px solid #68c7ff;border-radius:26px;padding:20px 17px;background:linear-gradient(155deg,#1553aaf5,#092661f5);box-shadow:0 7px 0 #031443,inset 0 2px #fff4,0 14px 30px #01072249}
.welcome-panel h2{font-size:23px}.welcome-copy{font-size:12.5px;color:#d2e8ff;line-height:1.55}
.welcome-start{font-size:13px}

/* gifts, badges, leaderboard */
.gift-days{gap:9px}.gift-day{border:2px solid #3c86d5;border-radius:17px;background:linear-gradient(155deg,#123f84,#09245e);box-shadow:0 3px #03123f,inset 0 1px #fff3;padding:10px 5px}.gift-day.today{border-color:#ffe66e;background:linear-gradient(155deg,#6e43ac,#aa3fc5);box-shadow:0 4px #4c1474,0 0 22px #ffdd3a35,inset 0 1px #fff5}.gift-day.done{border-color:#5fc688;background:linear-gradient(155deg,#176d66,#0b3c5d)}
.gift-day .day-icon .game-icon{width:31px;height:31px}
.badge-item{border:2px solid #438ad9;border-radius:19px;background:linear-gradient(155deg,#13458e,#08245e);box-shadow:0 4px #03123f,inset 0 1px #fff3}.badge-item.locked{filter:saturate(.3);opacity:.58}
.podium button{border:2px solid #4a96e7;border-radius:19px;background:linear-gradient(160deg,#144c9e,#082760);box-shadow:0 4px #03123f,inset 0 1px #fff4}.podium button.first{border-color:#ffe467;background:linear-gradient(155deg,#77591c,#52347d);box-shadow:0 5px #644005,0 0 24px #ffd83d2e,inset 0 1px #fff5}.crown .game-icon{width:32px;height:32px}
.rank-number,.place{font-weight:900}.own-rank{border-color:#69b9ff}

/* empty states */
.empty{padding:26px 18px;border:2px dashed #4e93d8;background:linear-gradient(155deg,#0a2b684d,#071b4f66);text-align:center;box-shadow:inset 0 1px #ffffff12}
.empty .big{width:64px;height:64px;margin:0 auto 9px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(155deg,#124996,#09245e);border:2px solid #4f9ce8;box-shadow:0 4px #03123e,inset 0 1px #fff3}
.empty .empty-icon{width:46px;height:46px;filter:drop-shadow(0 3px #03123e)}
.empty h3{margin-top:4px}.empty p{font-size:11.5px;color:#aecaef;margin-top:5px;line-height:1.55}

/* misc polish */
.faq{border:2px solid #3e86d4!important;background:linear-gradient(155deg,#0b3275,#08245d)!important;border-radius:16px!important;box-shadow:0 3px #03123f!important}
.faq summary{font-weight:900}
.link-field{border:2px solid #397ed0;background:#061d52;box-shadow:inset 0 2px 5px #0007;color:#b9d9ff;font-size:10px}
.task-progress{font-weight:900;color:#bbd8ff}
.odds-row{padding:10px 0}.odds-row b{font-weight:900}
.earned-amount{color:#79f49e;font-weight:900}.expense-amount{color:#ff90b4;font-weight:900}
#offline{font-family:'Nunito',sans-serif;font-weight:900;background:#d73968;color:#fff;border-top:2px solid #ff9dbb}
.toast{font-family:'Nunito',sans-serif;font-weight:900;border-radius:15px;border:1px solid #ffffff22;box-shadow:0 8px 24px #0008}
.splash{font-family:'Nunito',sans-serif;background:radial-gradient(circle at 50% 35%,#25abff,#0a47ae 50%,#061844)}
.splash h1{font-family:'Rubik Bubbles','Nunito',sans-serif;font-weight:400;font-style:normal;color:#ffe64d;-webkit-text-stroke:.6px #804404;text-shadow:0 3px #c86d08,0 7px #06133f}
.splash .brand-star{font-size:42px;color:#ffe34b;text-shadow:0 3px #8a4c08}
.skeleton{border-radius:18px;background:linear-gradient(100deg,#0a2b68 20%,#15539a 40%,#0a2b68 60%);background-size:220% 100%}

@media(max-width:380px){
  .topbar{padding-left:12px;padding-right:12px}.brand{font-size:20px}.balance{min-width:150px}.balance strong{font-size:23px}
  .page{padding-left:12px;padding-right:12px}.section-hero{padding-left:15px;padding-right:15px}.section-hero p{max-width:76%}
  .daily-banner{padding:9px 10px}.daily-banner .gift-icon{width:50px;height:50px;min-width:50px}.daily-banner strong{font-size:14px}.daily-banner small{font-size:9.5px}
  .tap-area{height:266px}.tap-target{width:260px;height:255px}.tap-rays{width:292px;height:292px}.tap-caption{font-size:20px}
  .case-card{min-height:200px}.case-card .case-img{width:120px;height:108px}.case-card .price{font-size:15px}
  .nav button{font-size:8px}.nav button b{width:35px;height:33px}.nav button .nav-icon{width:28px;height:28px}
}

@media(prefers-reduced-motion:reduce){
  .btn,.nav button,.box-art,.case-card .case-img,.card-tile{transition:none!important}
}
.splash-logo{width:72px;height:72px;filter:drop-shadow(0 5px #03123e) drop-shadow(0 0 18px #61d8ff66);margin-bottom:5px}
.setting-icon{width:34px;height:34px;display:inline-grid;place-items:center;margin-right:9px;border-radius:11px;background:linear-gradient(155deg,#13458f,#08245d);border:2px solid #438dd8;box-shadow:0 2px #03123f;vertical-align:middle}
.setting-icon .game-icon{width:24px;height:24px;filter:drop-shadow(0 1px #03123f);vertical-align:0}
.toggle-row label{display:flex;align-items:center}
.chevron-mark{width:29px;height:29px;display:grid;place-items:center;opacity:.9}.chevron-mark .game-icon{width:22px;height:22px;filter:none;vertical-align:0}
.shard-count{display:flex;align-items:center;gap:4px;white-space:nowrap}.shard-count .game-icon{width:20px;height:20px;filter:none;vertical-align:0}
.status-check{display:inline-flex;align-items:center;gap:4px}.status-check .game-icon{width:19px;height:19px;filter:none;vertical-align:0}
.history .badge .game-icon,.list-row .badge .game-icon{width:17px;height:17px;filter:none;vertical-align:-4px}
.badge-earned{display:flex;align-items:center;gap:8px}.badge-earned .game-icon{width:28px;height:28px;filter:none;vertical-align:0}


/* ======================================================================
   MEGABOX V9 — FULL ART DIRECTION / TOY GAME SYSTEM
   Typography, icon staging, onboarding, navigation, cards and surfaces.
   ====================================================================== */
:root{
  --v9-ink:#f9fdff;--v9-soft:#d8eaff;--v9-muted:#9fc4ef;
  --v9-night:#02091f;--v9-deep:#061640;--v9-panel:#0a2c6c;
  --v9-blue:#137de8;--v9-sky:#57d7ff;--v9-cyan:#a1f4ff;
  --v9-yellow:#ffe64c;--v9-orange:#f69a15;--v9-pink:#ef4cc4;
  --v9-purple:#8d48e9;--v9-green:#57df6d;--v9-red:#ff5e87;
  --v9-stroke:#05163e;--v9-radius-xl:30px;--v9-radius:22px;--v9-radius-sm:15px;
  --v9-hard:0 6px 0 #03113a;--v9-soft-shadow:0 14px 34px #01061d59;
  --font-display:'Russo One','Arial Black','Arial Rounded MT Bold',sans-serif;
  --font-control:'Comfortaa','Nunito','Arial Rounded MT Bold',sans-serif;
  --font-body:'Nunito','Trebuchet MS',system-ui,sans-serif;
}
html,body{background:#030a24}
body{font-family:var(--font-body);font-weight:800;background:radial-gradient(circle at 13% 6%,#6c43ff42,transparent 28%),radial-gradient(circle at 90% 34%,#00bfff31,transparent 31%),linear-gradient(145deg,#11123c,#050e30 48%,#020820)}
#app,#modal-root,#offline,#toasts,#app input,#app select,#app textarea,#modal-root input,#modal-root select,#modal-root textarea{font-family:var(--font-body)}
#app button,#modal-root button{font-family:var(--font-control);font-weight:700}
#app h1,#app h2,#app .section-hero h1,#app .tap-caption,#app .result-title,#modal-root h1,#modal-root h2{font-family:var(--font-display)!important;font-weight:400!important;letter-spacing:.005em!important}
#app h3,#modal-root h3,#app .brand,#app .balance strong,#app .case-card .price,#app .mini-stat strong,#app .card-name,#app .badge,#modal-root .badge{font-family:var(--font-control);font-weight:700}
#app{background:radial-gradient(circle at 50% 245px,#3cc2ff42 0 9%,transparent 35%),linear-gradient(180deg,#0b55bf 0,#08398e 40%,#07245e 75%,#051846 100%);border-color:#41a9f0}
#app:before{opacity:.16;background-image:radial-gradient(circle,#9beaff 1.15px,transparent 1.8px),linear-gradient(132deg,transparent 0 48%,#82dfff0d 49% 50%,transparent 51%);background-size:32px 32px,82px 82px}

/* stronger title hierarchy */
#app h1{font-size:clamp(29px,7.8vw,38px);line-height:1.02;text-shadow:0 3px 0 #043178,0 6px 0 #031338,0 10px 18px #01081f75}
#app h2,#modal-root h2{font-size:clamp(22px,5.9vw,28px);line-height:1.07;text-shadow:0 3px 0 #031844,0 7px 15px #01081f65}
#app h3,#modal-root h3{letter-spacing:-.025em}
.eyebrow{font-family:var(--font-control);font-size:9.5px;letter-spacing:.14em;color:#aff0ff;font-weight:700;text-shadow:0 2px #073076}

/* header: less dashboard, more game HUD */
.topbar{padding:12px 15px 13px;border-bottom:2px solid #20a7ef;background:linear-gradient(180deg,#071d5cfa,#061746f5);box-shadow:0 6px 22px #01082475,inset 0 -1px #87ddff38}
.avatar{width:46px;height:46px;border-radius:16px;border:3px solid #ffe263;box-shadow:0 0 0 2px #6138b8,0 4px 0 #031442,0 0 17px #a557ff4f}
.nick{font-family:var(--font-control);font-weight:700;font-size:14px}.topline .me-button small{font-size:9.5px;color:#b8d9fb}
.topbadge{font-family:var(--font-control);font-weight:700;min-height:44px;border-radius:15px;border:2px solid #fff2a1;padding:8px 12px;background:linear-gradient(#fff28a,#ffd539 57%,#f6a313);box-shadow:0 4px 0 #8c4b08,inset 0 2px #fffbd8,0 8px 15px #01082455}
.balance{min-width:166px;border-radius:16px;border:2px solid #39aef9;background:linear-gradient(160deg,#0e3986,#061e57);box-shadow:0 4px 0 #021038,inset 0 2px #a7e7ff32}.balance strong{font-size:24px;letter-spacing:-.04em}.balance small{font-family:var(--font-control);font-size:8.5px;letter-spacing:.055em}
.brand{font-family:var(--font-display)!important;font-weight:400!important;font-style:normal;transform:none;color:#ffe94e;font-size:20px;letter-spacing:.02em;text-shadow:0 2px #a75a0d,0 5px #03123b}.brand small{font-family:var(--font-control);font-size:7.5px;letter-spacing:.1em;color:#d3e8ff}

/* icon staging makes every glyph read as a toy sticker */
.game-icon,.nav-icon,.token-icon{overflow:visible}.btn .game-icon,.topbadge .game-icon,.setting-icon .game-icon,.row-icon .game-icon,.big-icon .game-icon{filter:drop-shadow(0 2px 0 #03123d) drop-shadow(0 1px 4px #01082445)}
.btn .game-icon{width:25px;height:25px}.topbadge .game-icon{width:24px;height:24px}.big-icon .game-icon{width:50px;height:50px}

/* toy surfaces */
.panel,.list-row,.mini-stat,.notice,.empty,.info-list{border-radius:20px;border-width:2px;box-shadow:0 4px 0 #03123f,inset 0 1px #ffffff24,0 11px 24px #01072225}
.panel{background:linear-gradient(155deg,#12448f,#08245e 75%);border-color:#3e91df}.panel.flat{background:linear-gradient(155deg,#0a2b6a,#071d52);border-color:#2d6ebf}.panel.purple{background:linear-gradient(145deg,#7237d0,#492396);border-color:#bf7cff}
.btn{min-height:50px;border-radius:15px;padding:13px 16px;font-size:12.2px;letter-spacing:.005em;border:2px solid #fff3a2;background:linear-gradient(#fff38b 0,#ffe04a 45%,#f6ab18 100%);box-shadow:0 5px 0 #96530a,inset 0 2px #fffde2,0 10px 18px #01082435;color:#342204;text-shadow:0 1px #fff4b0;transition:transform .08s ease,filter .12s ease,box-shadow .08s ease}
.btn:active{transform:translateY(3px) scale(.99);box-shadow:0 2px 0 #96530a,inset 0 2px #fffde2}.btn.blue{border-color:#a3eaff;background:linear-gradient(#49c9ff,#1789ed 50%,#0d5ecc);box-shadow:0 5px 0 #07377d,inset 0 2px #d9f8ff;color:white;text-shadow:0 2px #0b4d9c}.btn.purple{border-color:#edbbff;background:linear-gradient(#d06cff,#9b41e5 50%,#6724bc);box-shadow:0 5px 0 #3b126e,inset 0 2px #f7d7ff;color:#fff;text-shadow:0 2px #5b218e}.btn.ghost{border-color:#54a7ed;background:linear-gradient(#174d9d,#0a2e70);box-shadow:0 4px 0 #03133d,inset 0 1px #bceaff2c;color:#dceeff;text-shadow:none}

/* hero cards */
.section-hero{border:2px solid #52c0ff;border-radius:26px;padding:19px 18px 21px;background:radial-gradient(circle at 94% 14%,#6ce7ff38,transparent 27%),linear-gradient(145deg,#1556ad,#092863 72%);box-shadow:0 6px 0 #031442,inset 0 2px #ffffff35,0 14px 28px #01082435}.section-hero:after{content:''!important;width:118px;height:118px;right:-30px;top:-40px;background:radial-gradient(circle,#fff4 0 4%,transparent 5% 100%),conic-gradient(from 0deg,#fff0,#fff2,#fff0);opacity:.45}.section-hero h1{font-size:clamp(25px,6.7vw,32px)}.section-hero p{font-size:12.3px;line-height:1.48;color:#dceeff;max-width:82%}
.boxes-hero{background:radial-gradient(circle at 95% 12%,#ff8ee047,transparent 28%),linear-gradient(145deg,#146ee1,#5127ad)}.collection-hero{background:radial-gradient(circle at 90% 15%,#d692ff44,transparent 29%),linear-gradient(145deg,#145ebf,#55279c)}.friends-hero{background:radial-gradient(circle at 92% 12%,#6ff5cf35,transparent 29%),linear-gradient(145deg,#0877d1,#224fab 60%,#5228a0)}.exchange-hero{background:radial-gradient(circle at 92% 15%,#75ff9360,transparent 26%),linear-gradient(145deg,#0d65bd,#4b2a9f 88%)}

/* home scene */
.daily-banner{border-radius:21px;border:2px solid #ff91ee;padding:11px 12px;background:radial-gradient(circle at 11% 50%,#ffb6f05e,transparent 23%),linear-gradient(110deg,#823bd2,#c136c3);box-shadow:0 5px 0 #451276,inset 0 2px #fff4,0 11px 21px #01082436}.daily-banner .gift-icon{width:56px;height:56px;min-width:56px;border-radius:18px;background:linear-gradient(145deg,#ff86df,#9c3fd3);border:2px solid #ffd1f6;box-shadow:0 3px 0 #4c176d,inset 0 2px #fff5;display:grid;place-items:center}.daily-banner .gift-icon .game-icon{width:45px;height:45px}.daily-banner strong{font-family:var(--font-control);font-size:15px}.daily-banner small{font-size:10px;color:#f4ddff}.tap-area{height:292px}.tap-rays{width:330px;height:330px;background:repeating-conic-gradient(from 0deg,#79e5ff00 0 13deg,#79e5ff35 14deg 25deg);mask-image:radial-gradient(black 0 22%,transparent 70%)}.tap-target{width:290px;height:280px}.box-art{filter:drop-shadow(0 18px 13px #010622a8) drop-shadow(0 0 20px #6addff53)}.tap-caption{font-size:clamp(20px,5.8vw,26px);color:#fff8b2;text-shadow:0 3px #785008,0 6px #03123d,0 10px 18px #010722}.float-tap{font-family:var(--font-display);font-weight:400}
.progress{height:12px;border:2px solid #174b8f;background:#03133c;box-shadow:inset 0 2px 4px #0007}.progress>i{background:linear-gradient(#fff187,#ffca2e);box-shadow:inset 0 1px #fff9}.progress.green>i{background:linear-gradient(#a8ffb0,#3dde70)}.progress.purple>i{background:linear-gradient(#df9cff,#994ae8)}

/* cases and collection */
.case-grid{gap:12px}.case-card{border-radius:22px;border:2px solid #55aeef;box-shadow:0 5px 0 #03133e,inset 0 2px #ffffff3b,0 12px 23px #0107212e;padding:11px 8px 12px;min-height:205px}.case-card h3{font-family:var(--font-control);font-size:13px}.case-card .price{font-size:16px}.case-card .case-img{filter:drop-shadow(0 9px 7px #010a2f8f);transition:transform .12s cubic-bezier(.2,.9,.3,1.25)}.case-card:active .case-img{transform:scale(.94) translateY(3px) rotate(-1deg)}
.collection-grid{gap:10px}.card-tile{border-radius:19px;border-width:2px;background:linear-gradient(155deg,#123c80,#071f55);box-shadow:0 4px 0 #03123c,inset 0 1px #fff3}.card-tile .portrait{border-radius:13px}.card-name{font-size:10.5px;line-height:1.15}.owned-mark,.lock{border-radius:10px}
.search,.select{min-height:48px;border:2px solid #3c8cda;border-radius:15px;background:#061c50;box-shadow:inset 0 2px 5px #0007;color:#fff;font-family:var(--font-body);font-weight:800}.search:focus,.select:focus{border-color:#75d8ff;box-shadow:0 0 0 3px #39bfff2a,inset 0 2px 5px #0006}.chip,.segmented button{font-family:var(--font-control);font-weight:700}

/* nav: larger toy buttons, clearer selected state */
.nav{gap:5px;padding:7px 7px calc(8px + var(--safe));border-top:2px solid #2c98e7;background:linear-gradient(180deg,#08245ffb,#04133dfd);box-shadow:0 -9px 24px #01061e75,inset 0 1px #8ee6ff2e}.nav button{min-height:67px;border-radius:17px;font-size:8.6px;color:#9fbde7;padding:5px 1px 4px}.nav button b{width:41px;height:39px;margin:0 auto 3px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#0f397c,#071d51);border:1px solid #286ebe;box-shadow:0 3px 0 #03113a,inset 0 1px #ffffff22}.nav button .nav-icon{width:34px;height:34px}.nav button.active{color:#fff7a4;background:linear-gradient(180deg,#177ce1,#0c4094);box-shadow:inset 0 0 0 2px #64c9ff,0 3px 0 #03113b,0 0 18px #2ea7ff2b}.nav button.active b{background:linear-gradient(145deg,#2348a0,#5128a0);border-color:#ffd85a;box-shadow:0 3px 0 #4b2a07,inset 0 2px #ffffff32,0 0 15px #ffe04335;transform:translateY(-2px) scale(1.06)}

/* onboarding: built as a game start screen rather than a form */
.onboarding{position:relative;isolation:isolate;min-height:100dvh;padding:24px 16px 28px;background:radial-gradient(circle at 50% 12%,#50ccff 0,#0c7fe5 21%,#08387f 51%,#051845 100%);overflow:hidden;text-align:center}.onboarding:before{content:'';position:absolute;z-index:-2;inset:0;background:repeating-conic-gradient(from -8deg at 50% 16%,#d9f9ff10 0 7deg,transparent 8deg 19deg);mask-image:linear-gradient(#000 0 47%,transparent 68%)}.onboarding:after{content:'';position:absolute;z-index:-1;left:-15%;right:-15%;top:360px;height:240px;background:linear-gradient(180deg,transparent,#0419449e 34%,#041944);filter:blur(2px)}.onboarding-orb{position:absolute;z-index:-1;border-radius:50%;filter:blur(2px);opacity:.55}.orb-a{width:180px;height:180px;left:-90px;top:180px;background:radial-gradient(circle,#a66bff,transparent 70%)}.orb-b{width:160px;height:160px;right:-80px;top:305px;background:radial-gradient(circle,#ff55cc,transparent 70%)}
.welcome-hero{position:relative}.welcome-stars{height:25px;gap:7px}.welcome-stars .game-icon{width:20px;height:20px}.welcome-stars .game-icon:nth-child(2){width:28px;height:28px;margin-top:-5px}.welcome-kicker{font-family:var(--font-control);font-size:9px;font-weight:700;letter-spacing:.14em;color:#dbf8ff}.brand-title h1{font-family:var(--font-display)!important;font-size:clamp(48px,14vw,70px)!important;line-height:.94!important;margin-top:4px;color:#ffe94f;-webkit-text-stroke:1.2px #7a3d05;text-shadow:0 3px 0 #f6a416,0 7px 0 #8c4808,0 11px 0 #03113a,0 16px 28px #0107248f!important;letter-spacing:.025em!important}.brand-title p{font-family:var(--font-control);font-size:9px;font-weight:700;letter-spacing:.12em;color:#ddf4ff;margin-top:10px}.welcome-art{position:relative;height:205px;margin-top:2px;display:grid;place-items:center}.welcome-art:before{content:'';position:absolute;width:270px;height:185px;border-radius:50%;background:radial-gradient(circle,#b9f5ff63 0,#68d7ff25 38%,transparent 70%);filter:blur(1px)}.welcome-art .hero-welcome{position:relative;width:245px;max-height:205px;object-fit:contain;filter:drop-shadow(0 17px 13px #010722a3) drop-shadow(0 0 21px #79eaff6b);animation:box-hover 3.2s ease-in-out infinite}.loot-sticker{position:absolute;z-index:2;min-width:65px;padding:6px 7px 7px;border-radius:17px;border:2px solid #fff2a2;background:linear-gradient(145deg,#fff479,#ffbd21);box-shadow:0 4px 0 #8b4d08,0 8px 14px #01072255;transform:rotate(-8deg);display:grid;grid-template-columns:25px auto;grid-template-rows:auto auto;align-items:center;text-align:left;color:#492c04}.loot-sticker .game-icon{grid-row:1/3;width:25px;height:25px;margin-right:3px;filter:drop-shadow(0 1px #774408)}.loot-sticker b{font-family:var(--font-control);font-size:13px;line-height:1}.loot-sticker small{font-family:var(--font-control);font-size:6.5px;letter-spacing:.1em;color:#70440a}.loot-gems{left:2px;top:76px}.loot-box{right:0;top:109px;transform:rotate(8deg);background:linear-gradient(145deg,#ff9ce1,#cb45cf);border-color:#ffd4f4;box-shadow:0 4px 0 #6c2674,0 8px 14px #01072255;color:white}.loot-box small{color:#ffe7fb}.loot-box .game-icon{filter:drop-shadow(0 1px #57215f)}.welcome-loot{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:-4px auto 13px}.welcome-loot span{display:flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid #6ed5ff;border-radius:999px;background:#06245ca8;box-shadow:inset 0 1px #ffffff24;font-family:var(--font-control);font-size:7.8px;color:#ddf5ff}.welcome-loot .game-icon{width:17px;height:17px;filter:none}
.welcome-panel{position:relative;text-align:left;border:2px solid #74d1ff;border-radius:29px;padding:18px 16px 17px;background:radial-gradient(circle at 90% 0,#5dd8ff25,transparent 30%),linear-gradient(160deg,#1554aaf7,#092661f8 62%,#071f55fa);box-shadow:0 7px 0 #03123e,inset 0 2px #ffffff4a,0 18px 35px #0107225c}.welcome-step{display:flex;align-items:center;gap:8px;font-family:var(--font-control);font-size:8px;color:#c6e9ff;letter-spacing:.07em;margin-bottom:11px}.welcome-step span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:linear-gradient(#fff16e,#ffbd20);border:2px solid #fff4aa;box-shadow:0 3px #8b4c08;color:#513003;font-size:9px}.welcome-step b{font-weight:700}.welcome-step em{margin-left:auto;font-style:normal;color:#86c7ed}.welcome-panel h2{font-family:var(--font-display)!important;font-size:clamp(22px,6vw,27px)!important;line-height:1.08!important;color:white;margin-bottom:8px}.welcome-copy{font-size:11.5px;color:#cfe6ff;line-height:1.55;margin:0}.welcome-label{display:flex!important;justify-content:space-between;align-items:end;gap:8px;margin-top:16px!important;font-family:var(--font-control)!important;font-size:9px!important;font-weight:700!important;letter-spacing:.08em!important;color:#bdeeff!important}.welcome-label small{font-family:var(--font-body);font-size:8px;letter-spacing:0;color:#7fbce9;font-weight:700;text-transform:none}.welcome-avatars{display:grid!important;grid-template-columns:repeat(6,1fr);gap:6px!important;margin:9px 0 0!important}.welcome-avatars button{position:relative;aspect-ratio:1;border-radius:14px!important;padding:3px!important;border:2px solid #488ed6!important;background:linear-gradient(#0b3479,#071f56)!important;box-shadow:0 3px 0 #03123d!important;overflow:visible!important}.welcome-avatars button .portrait{width:100%;height:100%;border-radius:10px}.welcome-avatars button.selected{border:3px solid #ffe866!important;box-shadow:0 0 0 2px #714109,0 4px 0 #7e4708,0 0 18px #ffde3b58!important;transform:translateY(-2px)}.avatar-check{position:absolute;display:none;right:-5px;bottom:-6px;width:20px;height:20px;border-radius:8px;background:#173a74}.selected .avatar-check{display:grid;place-items:center}.avatar-check .game-icon{width:21px;height:21px;filter:none}.welcome-label-row{display:flex!important;margin-top:17px!important;margin-bottom:7px!important}.welcome-label-row small{font-family:var(--font-control)!important;color:#87c3eb!important}.nickname-field{position:relative}.nickname-field .search{width:100%;padding-left:46px;padding-right:15px;margin:0;height:50px;border-radius:15px;font-family:var(--font-control);font-size:13px;font-weight:700}.field-leading{position:absolute;z-index:2;left:9px;top:8px;width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(#174f9e,#0b2c6c);border:1px solid #4c99df}.field-leading .game-icon{width:25px;height:25px;filter:none}.nickname-field.is-ok .search{border-color:#6ced8d;box-shadow:0 0 0 3px #44e9721e,inset 0 2px 5px #0006}.nickname-field.is-error .search{border-color:#ff7998;box-shadow:0 0 0 3px #ff52751d,inset 0 2px 5px #0006}.form-message{min-height:17px;margin-top:6px;font-size:9px;color:#8fc1e8;line-height:1.45}.form-message.ok{color:#82eca0}.form-message.error{color:#ff9cb3}.privacy-card{display:flex;gap:9px;align-items:center;margin-top:12px;padding:10px;border:1px solid #3c87cc;border-radius:14px;background:#061d50a8}.privacy-card>.game-icon{width:29px;height:29px;filter:none}.privacy-card div{display:grid;gap:2px}.privacy-card strong{font-family:var(--font-control);font-size:9px;color:#e8f6ff}.privacy-card small{font-size:8.5px;color:#8dbde5;line-height:1.35}.welcome-start{margin-top:13px;min-height:55px;border-radius:17px;font-size:12px;display:flex;justify-content:center;gap:8px}.welcome-start .game-icon{width:23px;height:23px;filter:none}.rules-link{display:flex;margin:10px auto 0;align-items:center;justify-content:center;gap:5px;border:0;background:none;color:#9ac9ee;font-family:var(--font-body)!important;font-size:9px;padding:5px}.rules-link .game-icon{width:17px;height:17px;filter:none}.welcome-legal{font-size:8.5px;color:#78a6d2;margin-top:15px;font-weight:700;letter-spacing:.025em}

/* starter reward modal */
.starter-pack{position:relative;text-align:center;padding:9px 8px 15px;border-radius:24px;background:radial-gradient(circle at 50% 25%,#75e9ff48,transparent 40%),linear-gradient(155deg,#154992,#3f278f);border:2px solid #69c9ff;box-shadow:0 5px #03123f,inset 0 2px #fff4}.starter-gift{width:95px;height:95px;margin:0 auto 5px;display:grid;place-items:center;border-radius:28px;background:radial-gradient(circle,#ffb8ed,#9a3adb);border:2px solid #ffd1f2;box-shadow:0 5px #4c1767,0 0 25px #ff61d14a}.starter-gift .large-icon{width:78px;height:78px;filter:drop-shadow(0 4px #4a155f)}.starter-kicker{font-family:var(--font-control);font-size:8px;letter-spacing:.13em;color:#bcecff}.starter-pack h2{color:#fff091;margin-top:5px;text-shadow:0 3px #704309,0 6px #03123e!important}.starter-pack p{font-size:10px;color:#cbe6ff;margin-top:7px}.starter-spark{position:absolute}.starter-spark .game-icon{width:24px;height:24px}.starter-spark.s1{left:24px;top:24px;transform:rotate(-14deg)}.starter-spark.s2{right:25px;top:44px;transform:rotate(12deg) scale(.75)}.starter-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}.starter-steps span{display:grid;gap:4px;place-items:center;padding:8px 3px;border:1px solid #3c82cf;border-radius:13px;background:#071f56;font-family:var(--font-control);font-size:7.5px;color:#a8d3f5}.starter-steps b{display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:linear-gradient(#fff174,#ffbd22);color:#4d2e04;box-shadow:0 2px #804607}

/* modal and profile cleanup */
.modal{border-radius:31px 31px 0 0;border-color:#64c6ff;background:radial-gradient(circle at 89% 5%,#57d7ff2c,transparent 30%),linear-gradient(160deg,#1552a6,#092761 62%,#061b4c)}.modal-head h2{font-size:23px}.close,.icon-btn{border-radius:14px}.setting-icon{width:37px;height:37px;border-radius:12px}.toggle-row label{font-family:var(--font-control);font-size:10.5px}.mini-stat strong{font-size:18px}.mini-stat small{font-size:9px}
.empty .big{border-radius:18px}.empty h3{font-family:var(--font-control);font-size:13px}.empty p{font-size:10.5px}
.toast{font-family:var(--font-control);font-size:10px}
.splash h1{font-family:var(--font-display)!important;font-weight:400!important;font-style:normal;-webkit-text-stroke:1px #814104;letter-spacing:.025em;color:#ffe84e;text-shadow:0 3px #f4a316,0 7px #03123e}

@media(max-width:380px){
  .topbar{padding-left:11px;padding-right:11px}.brand{font-size:17px}.balance{min-width:145px}.balance strong{font-size:21px}.topbadge{font-size:10px;padding:7px 9px}
  .tap-area{height:270px}.tap-target{width:266px;height:260px}.tap-rays{width:300px;height:300px}
  .welcome-art{height:190px}.welcome-art .hero-welcome{width:228px}.loot-sticker{transform:scale(.9) rotate(-8deg);transform-origin:center}.loot-box{transform:scale(.9) rotate(8deg)}
  .welcome-panel{padding:17px 13px}.welcome-avatars{gap:4px!important}.welcome-avatars button{border-radius:12px!important}.welcome-loot span{font-size:7px;padding:5px 6px}
  .nav button{font-size:7.6px}.nav button b{width:37px;height:36px}.nav button .nav-icon{width:31px;height:31px}
}
@media(prefers-reduced-motion:reduce){.welcome-art .hero-welcome{animation:none!important}}


/* ================================================================
   MEGABOX v10 — TELEGRAM MOBILE POLISH
   iPhone/Android viewport, eager critical assets, onboarding carousel,
   compact HUD and guaranteed top-of-home transition.
   ================================================================ */
:root{
  --safe-top:max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px));
  --safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px));
  --app-vh:100dvh;
}
html{min-height:100%;background:#04143d;overscroll-behavior-y:none}
body{min-height:var(--app-vh);overflow-x:hidden;background-attachment:scroll}
#app{min-height:var(--app-vh);overflow-x:hidden;overflow-y:visible}
.shell{min-height:var(--app-vh);padding-bottom:calc(86px + var(--safe-bottom))}
.page{padding:12px 14px 4px}

/* Compact top HUD: everything important visible immediately. */
.topbar{
  position:sticky;top:0;z-index:20;
  padding:calc(8px + max(0px,var(--safe-top))) 12px 9px;
  background:linear-gradient(180deg,#06194dfc,#071d59f4);
  border-bottom:2px solid #22a9f0;
  box-shadow:0 5px 18px #0107226b,inset 0 -1px #7bdcff3c;
}
.hud-row,.hud-actions{display:flex;align-items:center}.hud-row{justify-content:space-between;gap:8px}.hud-actions{gap:7px;min-width:0}
.me-button{gap:8px;flex:1;min-width:0}.player-copy{display:grid;min-width:0;gap:1px}.nick{max-width:112px;font-size:13px}.topline .me-button small,.player-copy small{font-size:8.5px;color:#b9dafb;white-space:nowrap}
.avatar{width:42px;height:42px;border-radius:14px;flex:0 0 auto}
.balance{position:relative;min-width:0;width:auto;gap:6px;padding:6px 31px 6px 9px;border-radius:15px;min-height:43px}
.balance .gem{width:17px;height:21px}.balance strong{font-size:19px;line-height:1}.balance small{font-size:7px;letter-spacing:.07em}.balance-plus{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:linear-gradient(#8cff81,#25cf68);border:2px solid #d9ffc9;box-shadow:0 2px 0 #087039;color:#083d24;font:900 19px/1 var(--font-control);font-style:normal;text-shadow:none}
.top-icon-btn{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;border:2px solid #fff0a0;background:linear-gradient(#fff17c,#ffc62a);box-shadow:0 3px 0 #8a4b08,inset 0 1px #fffdd6;color:#332104;padding:7px}.top-icon-btn .game-icon{width:27px;height:27px;filter:none}

/* Home begins immediately under HUD and uses the first viewport efficiently. */
.home-stage{position:relative;margin:0 -2px 2px;padding-top:1px}
.daily-banner{padding:9px 11px;border-radius:18px;min-height:62px}.daily-banner .gift-icon .game-icon{width:38px;height:38px}.daily-banner strong{font-size:14px}.daily-banner small{font-size:9.5px}.daily-banner .btn{min-height:36px;padding:8px 10px;font-size:9.5px}
.tap-area{height:218px}.tap-target{width:min(66vw,245px);height:215px}.tap-rays{width:245px;height:245px}.tap-caption{font-size:clamp(25px,7.2vw,33px);margin-top:-5px;margin-bottom:9px}
.panel{padding:13px}.two{gap:9px}.two>.btn{min-height:54px;padding:11px 8px;font-size:11px}

/* Bottom nav honors iPhone home indicator and never covers content. */
.nav{width:min(100%,520px);padding:6px 8px calc(7px + var(--safe-bottom));gap:4px;border-top:2px solid #22a9f0;background:#06194df7;box-shadow:0 -7px 24px #0107225e}
.nav button{min-height:54px;padding:4px 0 5px;font-size:8.5px}.nav button b{height:30px;line-height:30px}.nav button .nav-icon{width:28px;height:28px}

/* Onboarding is a true mobile first screen instead of a long desktop form. */
.onboarding{min-height:var(--app-vh);padding:calc(10px + max(0px,var(--safe-top))) 13px calc(28px + var(--safe-bottom));overflow:visible;background:radial-gradient(circle at 50% 7%,#51ceff 0,#0d80e5 18%,#083b83 45%,#051845 78%)}
.onboarding:after{top:300px}.welcome-hero{min-height:345px}.welcome-stars{height:18px}.welcome-stars .game-icon{width:16px;height:16px}.welcome-stars .game-icon:nth-child(2){width:23px;height:23px}
.brand-title h1{font-size:clamp(41px,12vw,58px)!important;margin-top:2px}.brand-title p{margin-top:6px;font-size:8px}.welcome-kicker{font-size:8px}
.welcome-art{height:164px;margin-top:-2px}.welcome-art:before{width:235px;height:154px}.welcome-art .hero-welcome{width:210px;max-height:166px}.loot-sticker{min-width:59px;padding:5px 6px;border-radius:15px}.loot-gems{left:4px;top:54px}.loot-box{right:3px;top:80px}.loot-sticker .game-icon{width:21px;height:21px}.loot-sticker b{font-size:11px}.loot-sticker small{font-size:5.8px}.welcome-loot{margin:-2px auto 9px;gap:5px}.welcome-loot span{padding:5px 7px;font-size:7px}
.welcome-panel{scroll-margin-top:10px;border-radius:25px;padding:16px 14px 17px}.welcome-panel h2{font-size:clamp(23px,6.7vw,30px)!important}.welcome-copy{font-size:11px}.welcome-step{margin-bottom:9px}.welcome-label{margin-top:14px!important}

/* Avatar rail: 3+ characters visible, smooth horizontal reveal, no clipping. */
.welcome-avatars{display:flex!important;grid-template-columns:none!important;gap:9px!important;margin:9px -2px 0!important;padding:2px 2px 11px!important;overflow-x:auto!important;overflow-y:visible!important;scroll-snap-type:x mandatory;scroll-padding-inline:2px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none}
.welcome-avatars::-webkit-scrollbar{display:none}.welcome-avatars button{flex:0 0 clamp(88px,27vw,108px);width:clamp(88px,27vw,108px);aspect-ratio:1;scroll-snap-align:center;border-radius:18px!important;padding:4px!important}.welcome-avatars button .portrait{border-radius:13px}.welcome-avatars button.selected{transform:translateY(-2px) scale(1.02)}
.welcome-label small{font-size:7.5px!important;color:#9ad7fb!important}
.nickname-field .search{height:52px;font-size:14px}.privacy-card{margin-top:10px}.welcome-start{min-height:58px;font-size:13px}.rules-link{font-size:8.5px}

/* Explicit finger cue for first-time users. */
.scroll-cue{position:fixed;z-index:35;left:50%;bottom:calc(18px + var(--safe-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:8px;border:2px solid #fff2a0;border-radius:999px;padding:7px 12px 7px 8px;background:linear-gradient(180deg,#ffe973,#ffbd1e);box-shadow:0 4px 0 #884808,0 9px 24px #01072277;color:#3b2704;font:900 9px/1 var(--font-control);letter-spacing:.08em;white-space:nowrap;transition:opacity .2s ease,transform .2s ease;animation:cue-bob 1.35s ease-in-out infinite}.scroll-cue.hidden{opacity:0;pointer-events:none;transform:translate(-50%,12px)}.scroll-hand{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#fff6c9;border:2px solid #b76d08;line-height:1}.scroll-hand .game-icon{width:23px;height:23px;filter:none;transform:rotate(180deg)}.scroll-cue i{width:7px;height:7px;border-right:2px solid #5b3705;border-bottom:2px solid #5b3705;transform:rotate(45deg);margin-top:-4px}@keyframes cue-bob{50%{transform:translate(-50%,-7px)}}

/* Critical asset placeholders are deliberate, never empty broken boxes. */
.portrait{background-image:url('/assets/portraits-v10.webp')!important;background-color:#46208e}.splash-box{width:170px;height:150px;object-fit:contain;filter:drop-shadow(0 10px 15px #01072299)}
#mb-icon-sprite{position:absolute!important;width:0!important;height:0!important;overflow:hidden!important}

/* Dynamic Telegram viewport fixes. */
.modal-backdrop{min-height:var(--app-vh)}.modal{max-height:calc(var(--app-vh) - 22px);padding-bottom:calc(22px + var(--safe-bottom))}
@media(max-width:390px){
  .page{padding-left:11px;padding-right:11px}.hud-row{gap:6px}.avatar{width:39px;height:39px}.nick{max-width:92px;font-size:12px}.player-copy small{font-size:7.7px}.balance{padding-left:7px;padding-right:29px}.balance strong{font-size:17px}.top-icon-btn{width:39px;height:39px}.top-icon-btn .game-icon{width:24px;height:24px}
  .tap-area{height:204px}.tap-target{height:202px}.tap-caption{font-size:27px}.welcome-hero{min-height:329px}.welcome-art{height:153px}.welcome-art .hero-welcome{width:196px}.welcome-panel{padding-left:12px;padding-right:12px}.welcome-avatars button{flex-basis:clamp(84px,28vw,101px);width:clamp(84px,28vw,101px)}
}
@media(max-width:350px){.player-copy{display:none}.balance strong{font-size:16px}.welcome-loot span:nth-child(3){display:none}.welcome-panel h2{font-size:22px!important}}
@media(min-width:650px){.scroll-cue{bottom:45px}.onboarding{min-height:calc(var(--app-vh) - 50px)}.shell{min-height:calc(var(--app-vh) - 50px)}}
@media(prefers-reduced-motion:reduce){.scroll-cue{animation:none}.scroll-cue.hidden{transform:translateX(-50%)}}


/* ================================================================
   MEGABOX v11 — iOS ICON RELIABILITY + TRUE MULTI-TOUCH
   ================================================================ */
/* Every app icon is now a self-contained inline SVG: no <use>, no external
   symbol lookup, no race with Telegram/iOS WebView. */
.game-icon,.nav-icon,.token-icon{display:inline-block;overflow:visible;vertical-align:middle;flex:0 0 auto}

/* True multi-finger tapping: Pointer Events delivers one pointerdown per
   finger only when browser gestures are disabled on the target itself. */
.tap-target{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;cursor:pointer}
.tap-target .box-art{pointer-events:none;-webkit-user-drag:none;user-select:none}
.tap-area{touch-action:pan-y}
.float-tap{pointer-events:none;z-index:9}

/* Slightly different compression per finger makes simultaneous taps visible. */
.tap-target.pressed{transform:translateY(2px)}

/* Safe, non-destructive onboarding preview for already registered owners. */
.preview-ribbon{position:sticky;top:0;z-index:80;margin:-10px -13px 10px;padding:calc(8px + var(--safe-top)) 10px 8px;display:flex;gap:8px;align-items:center;justify-content:space-between;background:linear-gradient(90deg,#7a2fd0,#165ed0);border-bottom:2px solid #85e9ff;box-shadow:0 5px 18px #01072280}
.preview-ribbon span{font:700 8px/1.2 var(--font-control);letter-spacing:.07em;color:#fff4b0}.preview-ribbon button{border:1px solid #fff2a0;border-radius:10px;padding:8px 9px;background:linear-gradient(#fff47b,#ffc82e);box-shadow:0 2px 0 #8b5007;color:#402800;font:900 8px/1 var(--font-control)}
.preview-mode .welcome-start span:before{content:'ПРЕДПРОСМОТР · ';font-size:.8em}

/* Referral callout reads like a viral invite instead of a rules paragraph. */
.ref-viral{font-family:var(--font-display);font-size:clamp(18px,5.5vw,25px);line-height:1.12;text-transform:uppercase;color:#fff176;text-shadow:0 3px #6d3d00,0 0 14px #ffdd47;text-align:center}

/* ================================================================
   MEGABOX v12 — iOS-SAFE RASTER UI + COMPACT FIRST RUN
   ================================================================ */
/* UI icons are normal raster images now. This intentionally avoids every SVG
   <use>/fragment/id code path in WKWebView. */
.game-icon,.nav-icon,.token-icon{display:inline-block;object-fit:contain;object-position:center;max-width:100%;max-height:100%;vertical-align:middle;overflow:visible;-webkit-user-drag:none;user-select:none;pointer-events:none}
.nav button b{display:grid;place-items:center}.nav button .nav-icon{width:29px!important;height:29px!important}
.daily-banner .gift-icon .game-icon{width:40px!important;height:40px!important}.top-icon-btn .game-icon{width:27px!important;height:27px!important}
.btn .game-icon{width:24px!important;height:24px!important}.big-icon .game-icon{width:48px!important;height:48px!important}

/* First-run screen: profile choice is visible in the first viewport, not a
   desktop-style long landing page. */
.onboarding{padding-top:calc(7px + max(0px,var(--safe-top)))!important}
.welcome-hero{min-height:238px!important;padding-bottom:0!important}
.welcome-stars{height:12px!important;margin-bottom:0!important}.welcome-stars .game-icon{width:12px!important;height:12px!important}.welcome-stars .game-icon:nth-child(2){width:17px!important;height:17px!important}
.brand-title h1{font-size:clamp(34px,10vw,46px)!important;margin-top:0!important}.brand-title p{font-size:7px!important;margin-top:3px!important}.welcome-kicker{font-size:7px!important}
.welcome-art{height:116px!important;margin-top:-3px!important}.welcome-art:before{width:180px!important;height:118px!important}.welcome-art .hero-welcome{width:154px!important;max-height:116px!important}
.loot-sticker{min-width:46px!important;padding:4px 5px!important;border-radius:12px!important}.loot-gems{left:7px!important;top:34px!important}.loot-box{right:6px!important;top:51px!important}.loot-sticker .game-icon{width:17px!important;height:17px!important}.loot-sticker b{font-size:9px!important}.loot-sticker small{font-size:5px!important}
.welcome-loot{margin:-1px auto 5px!important;gap:4px!important}.welcome-loot span{padding:4px 6px!important;font-size:6.5px!important;border-radius:999px!important}.welcome-loot .game-icon{width:14px!important;height:14px!important}
.welcome-panel{margin-top:0!important;border-radius:22px!important;padding:14px 12px 16px!important;scroll-margin-top:74px!important}.welcome-step{margin-bottom:7px!important}.welcome-panel h2{font-size:clamp(21px,6vw,27px)!important;margin-bottom:6px!important}.welcome-copy{font-size:10.5px!important;line-height:1.4!important}.welcome-label{margin-top:11px!important}

/* Explicit avatar rail. Arrows are always present and 3+ characters are
   visible on common 360–430px Telegram widths. */
.avatar-rail-shell{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:5px;margin-top:7px}
.welcome-avatars{display:flex!important;min-width:0!important;gap:7px!important;margin:0!important;padding:4px 2px 9px!important;overflow-x:auto!important;overflow-y:visible!important;scroll-snap-type:x proximity!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x!important}
.welcome-avatars::-webkit-scrollbar{display:none!important}
.welcome-avatars button{flex:0 0 clamp(72px,21.5vw,84px)!important;width:clamp(72px,21.5vw,84px)!important;aspect-ratio:1!important;border-radius:15px!important;padding:3px!important;scroll-snap-align:center!important}
.welcome-avatars button .portrait{border-radius:11px!important}.welcome-avatars button.selected{transform:translateY(-1px) scale(1.025)!important}
.avatar-arrow{width:32px;height:42px;padding:5px;border:2px solid #fff0a0;border-radius:12px;background:linear-gradient(#fff078,#ffc42a);box-shadow:0 3px 0 #884808;color:#342104;display:grid;place-items:center;touch-action:manipulation}
.avatar-arrow:active{transform:translateY(2px);box-shadow:0 1px 0 #884808}.avatar-arrow .game-icon{width:21px!important;height:21px!important}.avatar-arrow.next .game-icon{transform:none}.avatar-rail-meta{display:flex;justify-content:space-between;gap:8px;margin:0 37px 2px;color:#8ec8ef;font:700 7.5px/1.3 var(--font-control)}

/* Stronger scroll hint: visible on fresh onboarding and never covers the CTA. */
.scroll-cue{bottom:calc(10px + var(--safe-bottom))!important;padding:6px 10px 6px 6px!important;font-size:8.5px!important}.scroll-hand{width:28px!important;height:28px!important}.scroll-hand .game-icon{width:20px!important;height:20px!important}

/* Multi-touch feedback: this is UI only; server still validates accepted taps. */
.home-stage{position:relative}.tap-combo{position:absolute;z-index:12;top:5px;left:50%;transform:translateX(-50%);padding:6px 10px;border:2px solid #b8f5ff;border-radius:999px;background:linear-gradient(#31c9ff,#1670da);box-shadow:0 3px 0 #063b86,0 8px 20px #01072255;color:white;font:700 9px/1 var(--font-control);letter-spacing:.07em;pointer-events:none;animation:combo-pop .15s ease-out}.tap-combo[hidden]{display:none!important}@keyframes combo-pop{from{transform:translateX(-50%) scale(.75);opacity:.2}to{transform:translateX(-50%) scale(1);opacity:1}}
.tap-target{touch-action:none!important}

.build-info{text-align:center;margin:10px 0 0;color:#76a9d8;font:700 8px/1.4 var(--font-control)}

@media(max-width:390px){
 .welcome-hero{min-height:224px!important}.welcome-art{height:108px!important}.welcome-art .hero-welcome{width:145px!important;max-height:108px!important}
 .welcome-avatars button{flex-basis:72px!important;width:72px!important}.avatar-rail-shell{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}.avatar-arrow{width:30px;height:40px}
}
@media(max-width:350px){.welcome-hero{min-height:211px!important}.welcome-loot span:nth-child(3){display:none!important}.welcome-avatars button{flex-basis:66px!important;width:66px!important}.avatar-rail-meta{margin-left:34px;margin-right:34px}}


/* MegaBox v13 — pre-onboarding subscription gate */
.subscription-screen{position:relative;min-height:var(--app-vh,100dvh);display:grid;place-items:center;padding:calc(18px + var(--safe-top)) 14px calc(24px + var(--safe-bottom));overflow:hidden;background:radial-gradient(circle at 50% 5%,#258eea 0,#0a4ca8 40%,#061f67 100%)}
.subscription-bg{position:absolute;inset:-15%;background:radial-gradient(circle at 20% 20%,#5fd9ff44 0 8%,transparent 30%),radial-gradient(circle at 85% 75%,#b02cff38 0 10%,transparent 32%);filter:blur(4px);pointer-events:none}
.subscription-card{position:relative;width:min(100%,430px);padding:22px 16px 18px;border:2px solid #65cfff;border-radius:28px;background:linear-gradient(180deg,#153f94f2,#0b2b70f5);box-shadow:0 12px 0 #03163d99,0 24px 60px #01091f99,inset 0 1px #c7f4ff66;text-align:center}
.subscription-badge{display:inline-block;padding:7px 14px;border:2px solid #fff0a0;border-radius:999px;background:linear-gradient(#ffe969,#ffbd27);box-shadow:0 3px 0 #8a4d05;color:#432500;font:900 11px/1 var(--font-control);letter-spacing:.08em}
.subscription-card h1{margin:14px 0 7px;font:900 clamp(28px,8vw,40px)/.98 var(--font-display);color:white;text-shadow:0 4px #042360,0 0 18px #45baff66}
.subscription-card>p{margin:0 auto 14px;max-width:330px;color:#c7e9ff;font:700 12px/1.45 var(--font-body)}
.subscription-list{display:grid;gap:8px;max-height:min(48vh,420px);overflow:auto;padding:2px 2px 6px;overscroll-behavior:contain}
.subscription-link{appearance:none;width:100%;font:inherit;cursor:pointer;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;min-height:54px;padding:7px 10px;border:2px solid #57c9ff;border-radius:17px;background:linear-gradient(180deg,#186dcc,#0b4ca9);box-shadow:0 4px 0 #042b6e;color:white;text-decoration:none;text-align:left}
.subscription-link span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(#fff06b,#ffc228);box-shadow:0 2px 0 #8f5005;color:#432800;font:900 11px/1 var(--font-control)}
.subscription-link b{font:800 11px/1.2 var(--font-control);overflow:hidden;text-overflow:ellipsis}.subscription-link em{font:900 8px/1 var(--font-control);font-style:normal;color:#fff176}
.subscription-error{margin:10px 0 0;padding:10px 12px;border:2px solid #ff739a;border-radius:14px;background:#7a163caa;color:#fff0f5;font:800 10px/1.35 var(--font-control)}
.subscription-check{margin-top:12px!important;min-height:58px!important}.subscription-card>small{display:block;margin-top:10px;color:#81b8e5;font:700 8px/1.4 var(--font-control)}
@media(max-height:700px){.subscription-card{padding-top:15px}.subscription-card h1{font-size:25px;margin-top:9px}.subscription-list{max-height:42vh}.subscription-link{min-height:48px}}

/* v14.5 interactive first-run tutorial */
#tutorial-root{position:fixed;inset:0;z-index:140;pointer-events:none;font-family:var(--font-body,Nunito,system-ui,sans-serif)}
#tutorial-root.active{display:block}
.tutorial-spotlight{position:fixed;border:3px solid #fff29a;border-radius:20px;box-shadow:0 0 0 9999px rgba(1,7,31,.82),0 0 0 7px rgba(73,207,255,.22),0 0 30px rgba(255,230,64,.65);transition:left .2s ease,top .2s ease,width .2s ease,height .2s ease;pointer-events:none;animation:tutorial-pulse 1.15s ease-in-out infinite}
.tutorial-hand{position:fixed;width:56px;height:66px;display:grid;place-items:center;pointer-events:none;filter:drop-shadow(0 5px 3px #010722aa);animation:tutorial-hand-tap .9s ease-in-out infinite;transform-origin:50% 70%}
.tutorial-hand span{font-size:44px;line-height:1}
.tutorial-card{position:fixed;left:max(12px,calc((100vw - min(100vw,520px))/2 + 12px));right:max(12px,calc((100vw - min(100vw,520px))/2 + 12px));max-width:496px;margin:auto;padding:14px 15px 13px;border:2px solid #79dfff;border-radius:21px;background:radial-gradient(circle at 100% 0,#72e6ff33,transparent 32%),linear-gradient(150deg,#174fa7f7,#0a2767f9 68%,#071b50fa);box-shadow:0 6px 0 #03123d,0 14px 34px #010722aa,inset 0 1px #ffffff3d;color:white;pointer-events:auto;transition:top .2s ease}
.tutorial-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.tutorial-meta b{font:700 9px/1 var(--font-control,Comfortaa,sans-serif);letter-spacing:.08em;color:#ffe969}.tutorial-meta button{border:0;background:#ffffff12;color:#a9ccef;border-radius:999px;padding:6px 9px;font:700 8px/1 var(--font-control,Comfortaa,sans-serif);letter-spacing:.05em}
.tutorial-card h3{font-family:var(--font-display,'Russo One',sans-serif)!important;font-size:20px!important;line-height:1.08!important;letter-spacing:.01em!important;color:#fff!important;margin:0 0 6px!important;text-shadow:0 3px #04143f}.tutorial-card p{font-size:11.5px;line-height:1.45;color:#d8ecff;margin:0}.tutorial-hint{display:inline-flex;margin-top:9px;padding:7px 9px;border:1px solid #ffe46a;border-radius:10px;background:#ffe35d18;color:#fff099;font:800 9px/1.2 var(--font-control,Comfortaa,sans-serif)}
.section-guide .tutorial-spotlight{box-shadow:0 0 0 9999px rgba(1,7,31,.68),0 0 0 6px rgba(73,207,255,.2),0 0 24px rgba(255,230,64,.5)}.section-guide-card{padding-bottom:11px}.tutorial-actions{display:flex;justify-content:flex-end;margin-top:10px}.section-guide-card .tutorial-actions .btn{min-height:36px;padding:8px 16px}.section-guide-card .tutorial-meta button{font-size:8px}
.tutorial-dots{display:flex;gap:4px;margin-top:10px}.tutorial-dots i{height:4px;flex:1;border-radius:999px;background:#245a9c}.tutorial-dots i.on{background:linear-gradient(90deg,#ffe95e,#ffbe22);box-shadow:0 0 8px #ffd83d66}
.tutorial-finish{text-align:center;padding:4px 4px 2px}.tutorial-finish-icon{font-size:58px;filter:drop-shadow(0 5px 4px #01072288);animation:tutorial-win 1s ease-in-out infinite alternate}.tutorial-finish h2{margin:6px 0 9px!important}.tutorial-finish p{font-size:12px;line-height:1.55;color:#cfe8ff}.tutorial-finish p b{color:#ffe66a;font-size:14px}
@keyframes tutorial-hand-tap{0%,100%{transform:translate(0,-8px) rotate(-8deg) scale(1)}50%{transform:translate(0,8px) rotate(-2deg) scale(.91)}}
@keyframes tutorial-pulse{50%{border-color:#fff;box-shadow:0 0 0 9999px rgba(1,7,31,.82),0 0 0 10px rgba(73,207,255,.12),0 0 42px rgba(255,230,64,.85)}}
@keyframes tutorial-win{to{transform:translateY(-4px) scale(1.06)}}
@media(max-width:380px){.tutorial-card{left:9px;right:9px;padding:12px}.tutorial-card h3{font-size:18px!important}.tutorial-card p{font-size:10.5px}.tutorial-hand{width:48px;height:58px}.tutorial-hand span{font-size:38px}}
@media(prefers-reduced-motion:reduce){.tutorial-spotlight,.tutorial-hand,.tutorial-finish-icon{animation:none!important;transition:none!important}}
