/* FOOTBALL MYSTERY V6.4 — Stadium Premium Edition — visual layer only */
:root{--premium-lime:#caff21;--premium-mint:#80f3c4;--premium-ink:#07172b;--premium-text:#f5faff;--premium-muted:#b5c6d9;--premium-glass:linear-gradient(155deg,rgba(47,79,119,.68),rgba(14,36,64,.79));--premium-line:rgba(162,208,241,.27)}
html{background:#071323}body{min-height:100dvh;background:#071323 url('./assets/premium-stadium.svg') center top / cover fixed no-repeat!important;color:var(--premium-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
body::before{content:'';position:fixed;inset:0;background:linear-gradient(90deg,rgba(3,11,24,.59),rgba(7,21,38,.21) 50%,rgba(3,11,24,.59)),linear-gradient(0deg,rgba(3,11,23,.81),transparent 55%);pointer-events:none;z-index:0}
.shell{position:relative;z-index:1;max-width:1024px;margin:0 auto;padding:18px clamp(12px,3vw,32px) 130px;min-height:100dvh}
.premium-legacy-header{display:none!important}
#home>.premium-home{display:flex!important}#home> :not(.premium-home){display:none!important}
.view[hidden],.premium-modal[hidden],.premium-global-bar[hidden]{display:none!important}
#home{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.premium-home{isolation:isolate;position:relative;max-width:526px;min-height:min(765px,calc(100dvh - 55px));margin:0 auto;padding:clamp(18px,3vw,30px) clamp(14px,3vw,27px) 36px;display:flex;flex-direction:column;gap:0;color:#fff;border:2px solid rgba(120,175,212,.26);border-radius:34px;background:radial-gradient(ellipse at 60% 6%,rgba(27,77,124,.48),transparent 52%),linear-gradient(180deg,rgba(8,24,48,.91) 0%,rgba(8,25,47,.88) 51%,rgba(5,19,34,.89) 100%);box-shadow:0 28px 90px #0009,inset 0 0 50px #7ac5e008;overflow:hidden}
.premium-home::before{content:'';position:absolute;inset:29% -32% 7%;background:url('./assets/premium-stadium.svg') center / cover no-repeat;opacity:.25;filter:saturate(1.35);z-index:-1;pointer-events:none}
.premium-home::after{content:'';position:absolute;inset:auto 0 0;height:31%;background:linear-gradient(0deg,#08172ce8,transparent);pointer-events:none;z-index:-1}
.premium-topline{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,auto) minmax(94px,auto);align-items:center;gap:9px;position:relative;z-index:2}
.premium-user{border:0;background:transparent;color:#fff;display:flex;align-items:center;flex-direction:column;min-width:0;padding:0;gap:6px;justify-content:center}
.premium-avatar{position:relative;width:76px;height:76px;border:3px solid #a7d8f0;border-radius:50%;background:radial-gradient(circle at 30% 15%,#528fbd,#173451 73%);display:grid;place-items:center;box-shadow:0 0 0 3px #071a31,0 0 18px #9cdeff60;overflow:visible}
.premium-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;position:absolute;inset:0}.premium-avatar img[hidden]{display:none}
#premiumAvatarFallback svg{width:37px;height:37px;color:#c9edff}.premium-online{width:15px;height:15px;position:absolute;right:0;bottom:3px;border:2px solid #0d233a;background:var(--premium-lime);border-radius:50%;box-shadow:0 0 9px #caff21}
.premium-username{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 9px;border-radius:9px;border:1px solid #67849b70;background:#071b30e3;color:#f4f9fe;font-size:13px;font-weight:780}
.premium-top-action,.premium-coinbox{color:#f3f9ff;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:49px;padding:8px 11px;border:1px solid #7399bc7d;border-radius:13px;background:var(--premium-glass);box-shadow:inset 0 1px 0 #fff3,0 8px 20px #0003;font-size:12px;font-weight:800;white-space:nowrap}
.premium-top-action svg{width:20px;height:20px;color:#d2e8f9}.premium-coinbox{gap:6px;font-size:20px;font-variant-numeric:tabular-nums}.premium-coinbox strong{color:#ffe09a;letter-spacing:-.03em}.premium-goldcoin{width:26px;height:26px;display:grid;place-items:center;color:#fff4bc;background:linear-gradient(140deg,#ffe785,#c78204);border:2px solid #f8e59b;border-radius:50%;box-shadow:inset 0 1px 0 #fffc,0 0 12px #e3c44b66}.premium-goldcoin svg{width:19px;height:19px}.premium-coinplus{font-size:21px;color:#effbff;background:#305276;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;line-height:1}
.premium-heading{text-align:center;display:flex;flex-direction:column;gap:6px;margin:23px 0 17px}.premium-label{color:#92dfc8;font-weight:900;font-size:11px;letter-spacing:.21em}.premium-sub-label{font-size:10px;color:#a7bcd3;letter-spacing:.065em}
.premium-play-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:197px;text-align:center;padding:19px 16px 16px;border-radius:18px;border:1px solid #7bc9f2;background:linear-gradient(90deg,#0a1b37bb,#0b243b66),url('./assets/premium-play.svg') center / cover no-repeat;box-shadow:inset 0 1px 0 #fff9,inset 0 -5px 0 #b7ff21,0 8px 35px #010c2399,0 0 14px #5ddaff49;color:#fff;transition:transform .18s ease,box-shadow .18s ease}
.premium-play-card::before{content:'';position:absolute;inset:-5px;background:linear-gradient(110deg,transparent 10%,#ffffff17 40%,transparent 60%);z-index:-1;transform:translateX(-30%)}.premium-play-card:hover,.premium-play-card:focus-visible{transform:translateY(-3px);box-shadow:inset 0 -5px 0 #bdff20,0 12px 32px #000a,0 0 27px #caff2157}
.premium-play-badge{font-size:10px;letter-spacing:.18em;color:#def7ff;text-shadow:0 2px 6px #071828;font-weight:900;align-self:center;padding:6px 14px;background:#06182bc4;border:1px solid #8cc4d27a;border-radius:999px}
.premium-play-title{font-size:clamp(50px,12vw,73px);line-height:1.1;display:flex;gap:12px;letter-spacing:-.075em;font-weight:1000;font-style:italic;text-shadow:0 4px 10px #001428,0 1px 0 #fff8;margin:14px 0 5px}.premium-play-title em{color:var(--premium-lime);font-style:italic;text-shadow:0 0 15px #bdff3b80,0 3px 10px #000c}
.premium-play-sub{font-size:12px;font-weight:650;color:#eeffff;text-shadow:0 1px 5px #000b}.premium-play-arrow{position:absolute;bottom:12px;right:14px;display:grid;place-items:center;background:#d6ff36;color:#143523;border-radius:50%;height:30px;width:30px}.premium-play-arrow svg{width:18px;height:18px}
.premium-two-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:24px}.premium-tile{position:relative;overflow:hidden;min-width:0;min-height:177px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;padding:18px 15px 16px;border-radius:18px;border:1px solid rgba(148,199,226,.48);background:var(--premium-glass);color:#fff;box-shadow:inset 0 1px 0 #e8ffff39,0 10px 22px #0003;transition:transform .15s ease,background .15s ease}.premium-tile::after{content:'';position:absolute;inset:auto 0 0;height:50px;background:linear-gradient(0deg,#1a81432d,transparent);pointer-events:none}
.premium-tile:hover,.premium-tile:focus-visible{transform:translateY(-3px);background:linear-gradient(145deg,#316489bd,#183850e3)}.premium-tile-icon svg{width:36px;height:36px;color:#d9eeff;filter:drop-shadow(0 1px 3px #0008)}.premium-ranking-icon svg{color:#ffe49d}.premium-tile-title{font-size:clamp(14px,3.2vw,21px);font-weight:950;line-height:1.15;margin:8px 0;letter-spacing:-.03em}.premium-tile-sub{color:#c3d2df;font-size:11px;line-height:1.3;max-width:94%}.premium-tile-arrow{position:absolute;right:12px;bottom:13px;font-size:25px;color:#ceeeff;opacity:.72}
.premium-progress-strip{display:flex;align-items:center;justify-content:space-evenly;gap:8px;margin:25px 2px 0;padding:11px 8px;border-radius:13px;background:#0a1d33b7;border:1px solid #7ca3c13e}.premium-progress-strip>span{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:900;white-space:nowrap}.premium-progress-strip>span svg{width:17px;height:17px;color:#a4ceef}.premium-progress-strip small{font-size:10px;color:#afc5da;font-weight:650}.premium-progress-strip>i{height:20px;border-left:1px solid #6486a54d}.premium-star{color:#f7ce64}.premium-credit{display:flex;align-items:center;justify-content:center;gap:14px;margin:auto 0 5px;padding-top:20px;color:#9baec3;font-size:11px;letter-spacing:.03em}.premium-credit>span{width:29px;height:1px;background:#7f9cb0aa}
/* Universal navbar from mockup: four large clear actions */
.navbar.premium-navbar{z-index:50;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,530px)!important;max-width:100%;height:75px;padding:5px 8px max(7px,env(safe-area-inset-bottom));border-radius:21px 21px 0 0;border:1px solid #7292b150;border-bottom:0;background:linear-gradient(180deg,rgba(28,48,76,.97),rgba(10,26,48,.985));box-shadow:0 -7px 35px #0007;backdrop-filter:blur(15px)}
.premium-navbar button{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border:0!important;border-radius:10px;background:none!important;color:#b8c8dd!important;min-height:54px;font-size:10px!important;letter-spacing:.015em;font-weight:850;padding:4px 2px!important}
.premium-navbar svg.premium-nav-icon{width:25px;height:25px;stroke-width:1.9}.premium-navbar button.active{color:var(--premium-lime)!important;text-shadow:0 0 9px #baff21aa}.premium-navbar button.active::before{content:'';width:45%;height:3px;border-radius:3px;background:var(--premium-lime);position:absolute;top:-5px;box-shadow:0 0 14px #caff21}
.premium-navbar button:focus-visible{outline:2px solid var(--premium-lime);outline-offset:-3px}
/* Consistent glass look throughout the application */
.premium-global-bar{max-width:980px;min-height:63px;margin:4px auto 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 15px;border-radius:18px;background:linear-gradient(130deg,#182f4cec,#0a223be6);border:1px solid #7299bc55;box-shadow:0 10px 30px #0003}.premium-global-brand{display:flex;gap:10px;align-items:center;color:white;font-size:15px;letter-spacing:.01em}.premium-global-brand>svg{width:31px;height:31px;color:var(--premium-lime)}.premium-global-brand em{font-style:normal;color:var(--premium-lime)}.premium-global-actions{display:flex;gap:8px}.premium-global-actions button{background:#2b4667b8;color:#fff;border:1px solid #6e96b76b;border-radius:11px;padding:9px 11px;display:flex;align-items:center;gap:5px}.premium-global-actions svg{width:19px;height:19px}.premium-global-coins{color:#ffd66d!important;font-weight:900}.premium-global-settings svg{color:#e9f4ff}
body[data-premium-view="home"] .premium-global-bar{display:none}
.view:not(#home){max-width:980px;margin-inline:auto}.view:not(#home) .v61-page-hero,.view:not(#home) .v61-config-hero,.view:not(#home) .v57-panel,.view:not(#home) .profile-panel,.view:not(#home) .v54-stack>*,.view:not(#home) .stat-levels{background:var(--premium-glass)!important;border:1px solid var(--premium-line)!important;box-shadow:inset 0 1px 0 #ffffff16,0 10px 30px #0003!important;border-radius:19px!important}
.view:not(#home) h1{color:#f7fcff;letter-spacing:-.04em}.view:not(#home) h2{color:#f3f9ff}.view:not(#home) .pill,.view:not(#home) .v61-tag{border:1px solid #68bfa364;background:#1a493da6;color:#affbd5}.view:not(#home) .primary,.view:not(#home) .v61-play,.view:not(#home) button.primary{background:linear-gradient(105deg,#b5ff32,#5ce4a5)!important;color:#092c27!important;border:1px solid #d5ff8b!important;border-radius:12px!important;font-weight:900;box-shadow:0 8px 26px #27d28e33}.view:not(#home) .quiet,.view:not(#home) .v61-outline{border-color:#759ab84c;color:#e7f8ff}.view:not(#home) button:focus-visible{outline:2px solid var(--premium-lime);outline-offset:2px}
/* selection tiles & panels on dark pitch */
.v61-mode-card,.modecard,.leveltile,.v61-stage,.league-select{background:linear-gradient(150deg,#264261ed,#102b45f2)!important;border:1px solid #668db68f!important;border-radius:15px!important;box-shadow:inset 0 1px 0 #fff1,0 5px 15px #0003!important;color:#f5faff!important}.v61-mode-card:hover,.leveltile:hover,.v61-stage:hover{border-color:#baff65!important;transform:translateY(-2px)}.v61-stage.active,.leveltile.won{background:linear-gradient(145deg,#1d624e,#103d37)!important;border-color:#91f6bd!important}.v61-mode-icon{filter:drop-shadow(0 0 10px #9dfaca55)}
.v59-arena,.v59-final-card,.cp-view,.v61-setup-panel{background:linear-gradient(150deg,#1c3b52de,#092439eb)!important;border-color:#7a9fc06e!important;box-shadow:0 12px 40px #0005!important}.v59-arena{position:relative;overflow:hidden}.v59-arena::after{content:'';pointer-events:none;position:absolute;inset:0;background:url('./assets/premium-stadium.svg') center / cover;opacity:.13;z-index:0}.v59-arena>*{position:relative;z-index:1}.v59-player-card{box-shadow:0 0 23px #90fff04b,0 10px 25px #0006!important}
/* Search must remain black on white (V5.9.1 fix) */
#search,.search-section input,#cpSearch,.cp-search input{background:#fff!important;color:#0c1928!important;-webkit-text-fill-color:#0c1928!important}.suggestions,.suggestions button,#suggestions,#suggestions button,.cp-suggestions,.cp-suggestions button{background:#fff!important;color:#112237!important;-webkit-text-fill-color:#112237!important}#search::placeholder,#cpSearch::placeholder{color:#6b7890!important;opacity:1!important}
#profile .profile-hero,.profile-hero,.profile-metrics>div,.finish-metrics>div,.v54-wallet,.v54-product,.v59-chart-card,.v59-levels .v59-board{background:var(--premium-glass)!important;border-color:var(--premium-line)!important;box-shadow:0 8px 28px #0003!important}.profile-symbol{background:linear-gradient(145deg,#173b58,#2c6d77)!important;box-shadow:0 0 22px #77c6df66}.premium-upload{display:flex;flex-direction:column;gap:5px;margin-top:6px;max-width:100%;color:#adc7da;font-size:11px}.premium-upload p{margin:0}.premium-upload input{max-width:100%;width:100%;font-size:11px;color:#d5e8fa}.premium-upload input::file-selector-button{border:1px solid #6898ab;background:#15394d;border-radius:8px;color:#edfffa;padding:7px}
#ranking .ranktabs,#stats .v59-charts{border-radius:17px}.v54-buy{border-color:#d1f781!important}.v59-chart-card{border-radius:19px!important}.v59-form-bars>div{background:linear-gradient(180deg,#caff21,#22d3a5)!important}
/* Settings modal */
.premium-modal{position:fixed;inset:0;display:grid;place-items:center;z-index:250;padding:18px}.premium-modal-backdrop{position:absolute;inset:0;background:#020b17db;backdrop-filter:blur(8px)}.premium-modal-card{position:relative;width:min(100%,420px);padding:22px;border-radius:24px;border:1px solid #83a9cc7d;background:linear-gradient(150deg,#203956,#081d33);box-shadow:0 23px 75px #000b}.premium-modal-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.premium-modal-card h2{margin:0;color:#fff;font-size:20px}.premium-modal-card header button{display:grid;place-items:center;color:#f5faff;border:1px solid #8daacc66;background:#2e5073;border-radius:10px;width:36px;height:36px}.premium-modal-card header svg{height:18px;width:18px}.premium-modal-card>p{color:#bdccdf;font-size:13px;margin:0 0 19px}.premium-modal-card label{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#e6f6ff;font-weight:700;margin:16px 0}.premium-modal-card select{background:#e9f4fb;color:#0b2234;border:0;border-radius:8px;padding:9px;max-width:155px}.premium-modal-card input[type=checkbox]{width:21px;height:21px;accent-color:var(--premium-lime)}.premium-modal-done{width:100%;border:0;background:var(--premium-lime);color:#0e2836;border-radius:12px;min-height:44px;font-weight:900;margin-top:12px}
@media(min-width:800px){.shell{padding-top:22px}.premium-home{margin-top:5px}.view:not(#home){padding-inline:10px}}
@media(max-width:600px){body{background-attachment:scroll}.shell{padding:0 12px 104px}.premium-home{border-radius:0 0 27px 27px;border-top:0;min-height:calc(100dvh - 75px);margin-inline:-12px;padding:23px 21px 30px;box-shadow:none}.premium-heading{margin:15px 0 18px}.premium-topline{gap:6px}.premium-avatar{height:60px;width:60px}.premium-username{font-size:11px}.premium-top-action{font-size:11px;padding:6px 7px;min-height:44px}.premium-coinbox{font-size:17px;padding:5px 8px;min-height:44px}.premium-goldcoin{width:23px;height:23px}.premium-play-card{min-height:191px}.premium-two-tiles{margin-top:22px}.premium-tile{min-height:155px}.premium-global-bar{margin:8px 0 15px}.premium-global-brand{font-size:12px}.premium-global-brand svg{width:26px;height:26px}.premium-progress-strip{margin-top:21px}}
@media(max-width:365px){.premium-home{padding-inline:12px}.premium-topline{grid-template-columns:minmax(0,1fr) auto auto}.premium-top-action{gap:3px}.premium-top-action svg{width:17px;height:17px}.premium-coinbox strong{font-size:14px}.premium-coinplus{width:16px;height:16px;font-size:14px}.premium-play-title{font-size:50px}.premium-tile{padding:12px 10px;min-height:150px}.premium-tile-title{font-size:14px}.premium-tile-icon svg{width:28px;height:28px}.premium-tile-sub{font-size:10px}.premium-progress-strip small{display:none}.premium-progress-strip>span{font-size:12px}.premium-navbar button{font-size:9px!important}}
@media(prefers-reduced-motion:reduce){.premium-play-card,.premium-tile{transition:none}}
html[dir=rtl] .premium-tile{text-align:right;align-items:flex-start}html[dir=rtl] .premium-coinbox{direction:ltr}html[dir=rtl] .premium-play-title{direction:ltr}html[dir=rtl] .premium-credit{direction:ltr}

/* Improve text contrast on match, stats and other secondary screens. */
.view:not(#home) .fine,.view:not(#home) p,.view:not(#home) label{color:#c9d9e9}
.view:not(#home) input:not([type=checkbox]):not([type=file]),.view:not(#home) select{font-weight:600}
.view:not(#home) .v59-arena .v59-overline,.view:not(#home) .v59-arena .v59-arena-meta{color:#adffe5!important}
.view:not(#home) .gamehead .quiet{color:#f1fbff!important;background:#1a3550!important;border:1px solid #5c809f80!important;border-radius:11px!important}
.view:not(#home) .v59-arena .v59-arena-meta{border-color:#7ad4b966!important}
.view:not(#home) .v59-player-card #silhouette{color:#f9ffff!important;opacity:1!important}
.view:not(#home) .v59-mystery-name,.view:not(#home) .mystery h2{color:#f4fcff!important}
.view:not(#home) .labels{color:#daebf8!important}
.view:not(#home) .entry{color:#eef7ff}

/* Compact access to existing features without cluttering the home */
.premium-extras{margin:12px 3px 0;border-radius:11px;background:#0a1e3399;border:1px solid #7294b540;padding:0;position:relative;z-index:3}.premium-extras summary{display:flex;justify-content:center;align-items:center;cursor:pointer;list-style:none;padding:9px 12px;color:#b6d4e5;font-weight:750;font-size:11px;text-align:center}.premium-extras summary::-webkit-details-marker{display:none}.premium-extras-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0 9px 10px}.premium-extras-grid button{display:flex;align-items:center;flex-direction:column;gap:5px;background:#254363;border:1px solid #6996b464;border-radius:10px;color:#eafbff;padding:10px 3px;font-size:10px;min-width:0;line-height:1.1}.premium-extras-grid span{font-size:19px}.premium-extras-grid strong{font-size:10px;overflow-wrap:anywhere}
