@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
.player-resources button.currency-noki{display:flex;align-items:center;border:1px solid #b3915955;border-radius:8px;color:var(--text);text-align:left;cursor:pointer}.player-resources button.currency-noki:hover{border-color:#d9b565}.player-resources button.currency-noki:focus-visible{outline:2px solid #ffd477;outline-offset:3px}.noki-balance-popover .btn{min-height:44px;margin-top:2px}
.player-resources .currency-info .currency-soon{font-size:8px;letter-spacing:0;text-transform:none;color:#b8a380;line-height:1;margin-top:2px}.gold-cashback{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px;border:1px solid #ac843b66;border-radius:10px;background:#d5a53d0e;margin:14px 0}.gold-cashback img{object-fit:contain}.gold-cashback span{display:block;text-align:left}.gold-cashback strong,.gold-cashback small{display:block}.gold-cashback strong{color:#ffda85;font-size:17px}.gold-cashback small{font-size:10px;color:#bca987;margin-top:4px}.duplicate-cashback-info{margin:16px 0 24px}.duplicate-cashback-info summary{cursor:pointer;color:#f2d69f;font-weight:600}.duplicate-cashback-info p{font-size:12px;margin:14px 0}.duplicate-cashback-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.duplicate-cashback-grid>div{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:10px;min-width:0}.duplicate-cashback-grid small{font-size:11px;color:var(--muted)}.duplicate-cashback-grid b{font-size:13px;color:#f3ce7c}.duplicate-cashback-info>small{font-size:10px;color:var(--muted)}@media(max-width:600px){.duplicate-cashback-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.duplicate-cashback-info summary{font-size:12px}}
.player-resources button.currency-gold{display:flex;align-items:center;border:1px solid #96703988;border-radius:8px;color:var(--text);text-align:left}.player-resources button.currency-gold:hover{border-color:#d9b565}.gold-bonus-popover{position:fixed;inset:auto;margin:0;width:290px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;padding:16px;background:#191421fa;color:var(--text);border:1px solid #b18b4e;border-radius:12px;box-shadow:0 15px 50px #0009;text-align:left}.gold-bonus-popover::backdrop{background:transparent}.gold-bonus-popover h3{margin:0 0 10px;font-size:15px;color:#ffdb8f}.gold-bonus-popover p{font-size:12px;line-height:1.6;margin:0 0 12px}.gold-bonus-popover dl{margin:0;border-block:1px solid #ffffff18;padding:7px 0}.gold-bonus-popover dl>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 0;font-size:12px}.gold-bonus-popover dt{color:#c9bdd1}.gold-bonus-popover dd{margin:0;color:#ffdc87;font-weight:700}.gold-bonus-popover .note{font-size:10px;margin:10px 0 0}
.hud-shortcuts{display:flex;gap:8px;min-width:0}.player-resources .currency-group{flex-wrap:wrap}.referral-trigger{display:flex;align-items:center;gap:9px;height:54px;padding:6px 12px;border:1px solid #ac8be580;border-radius:8px;background:linear-gradient(115deg,#302141,#201c2e);color:#e5d3ff;text-align:left}.referral-trigger:hover{border-color:#d4b5ff;background:#38294b}.player-resources .referral-trigger>span{display:block;flex:none;padding:0;border:0;background:none;border-radius:0;text-align:left}.player-resources .referral-trigger svg{width:25px;height:25px;color:#d8b6ff}.referral-trigger strong,.referral-trigger small{display:block}.referral-trigger strong{font-size:12px}.referral-trigger small{font-size:9px;color:#c2afd7;margin-top:4px;white-space:nowrap}#dialog:has(.referral-panel){width:min(660px,calc(100vw - 24px));max-width:660px;max-height:calc(100dvh - 24px);overflow:auto;padding:24px;box-sizing:border-box}#dialog .referral-panel{margin-top:16px;padding:18px}#dialog .referral-panel h2{font-size:25px}#dialog .referral-panel p{font-size:12px}#dialog:has(.referral-panel)>.buttons{margin-top:14px}
@media(max-width:760px){.player-resources .hud-shortcuts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.player-resources .hud-shortcuts>.guardian-trigger{grid-column:auto;min-width:0;padding:4px 7px;gap:4px}.player-resources .hud-shortcuts .guardian-trigger img{width:34px;height:34px}.player-resources .hud-shortcuts .guardian-trigger-arrow{display:none}.player-resources .hud-shortcuts .guardian-trigger strong{font-size:11px}.hud-shortcuts .referral-trigger{min-width:0;height:48px;padding:6px 9px;gap:7px;justify-content:center}.referral-trigger small{font-size:8px}.player-resources .hud-shortcuts:has(>.referral-trigger:only-child){grid-template-columns:1fr}#dialog:has(.referral-panel){padding:20px 14px}#dialog .referral-panel{padding:14px}#dialog .referral-panel h2{font-size:23px}}
:root{color-scheme:dark;--bg:#0e0c19;--panel:#191526;--line:#393044;--text:#f3ecdc;--muted:#a69bb3;--gold:#ffcb62;--violet:#b18bfd;--green:#80dba1}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0,#28203988,transparent 50%),var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid var(--violet);outline-offset:4px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}.svg-library{display:none}.topbar{display:flex;gap:22px;align-items:center;padding:16px 26px;border-bottom:1px solid var(--line);background:#110e1dd9;position:sticky;top:0;z-index:20;backdrop-filter:blur(18px)}.brand{display:flex;gap:12px;align-items:center;color:var(--gold);text-decoration:none;font:bold 31px 'Space Grotesk',sans-serif;letter-spacing:-1px}.brand svg{width:49px;height:49px;filter:drop-shadow(0 0 10px #ffb84b44)}.brand small{display:block;font:600 9px 'DM Sans';letter-spacing:3px;color:#dbc2a0}.topbar nav{display:flex;gap:4px;flex:1;justify-content:center}.nav-button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--muted);padding:13px 16px;border-radius:10px;font-weight:600;white-space:nowrap}.nav-button:hover{background:#ffffff08;color:white}.nav-button.active{background:linear-gradient(130deg,#7e502431,#de9e3820);color:var(--gold);box-shadow:inset 0 0 0 1px #d5a14b55}.wallet,.icon-btn{display:flex;align-items:center;gap:10px;background:#20192d;border:1px solid var(--line);border-radius:10px;color:var(--text);padding:10px 13px}.wallet{font-size:11px;text-align:left}.wallet small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.wallet-dot,.demo-strip i{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--violet)}.icon-btn{padding:13px}.demo-strip{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;letter-spacing:.4px;padding:10px 26px;border-bottom:1px solid #292131}.demo-strip span:first-child{color:var(--violet)}.demo-strip i{margin-right:7px}.footer{padding:20px 26px;color:var(--muted);font-size:11px;display:flex;justify-content:space-between;border-top:1px solid #292131}.footer span{display:flex;align-items:center;gap:9px}.footer b{font-size:9px;border:1px solid var(--line);padding:5px 7px;border-radius:4px;font-weight:500}.layout{display:grid;grid-template-columns:235px minmax(0,1fr) 255px;gap:18px;max-width:1700px;margin:auto;padding:22px 26px}.panel{background:linear-gradient(145deg,#211a30,#14111e);border:1px solid var(--line);border-radius:15px;padding:19px}.panel h3{font:600 16px 'Space Grotesk';margin:0 0 17px;display:flex;align-items:center;gap:10px}.panel h3 svg{color:var(--gold)}h1,h2{font-family:'Space Grotesk';letter-spacing:-.8px}h1{font-size:32px;margin:9px 0 12px}h2{font-size:23px;margin:0 0 10px}p{color:var(--muted);line-height:1.6;margin:7px 0 15px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--gold);text-transform:uppercase}.leftcol,.rightcol{display:flex;flex-direction:column;gap:15px}.profile{display:flex;gap:13px;align-items:center;padding:16px}.portrait{background:#343057;border:1px solid #8469b1;border-radius:12px;overflow:hidden;width:64px;height:72px;flex-shrink:0}.hero-art{width:100%;height:100%;background-image:url('assets/heroes.png');background-size:300% 100%;background-position:0% center;background-repeat:no-repeat}.hero-art.warrior{background-position:50% center}.hero-art.mage{background-position:100% center}.profile strong{color:var(--gold);font:600 17px 'Space Grotesk'}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.bar{background:#0e0b17;border:1px solid #342c43;border-radius:99px;height:7px;overflow:hidden}.bar>span{display:block;height:100%;width:var(--value);background:linear-gradient(90deg,#d59842,#ffda77);border-radius:99px}.bar.energy>span{background:linear-gradient(90deg,#509d73,#8be6a8)}.bar.purple>span{background:linear-gradient(90deg,#795aca,#cba2ff)}.profile .bar{margin-top:8px;width:117px}.team-header{display:flex;align-items:center;justify-content:space-between;margin:5px 0 0;font-size:12px;color:var(--muted)}.team-header b{color:var(--text)}.hero-row{display:flex;align-items:center;gap:12px;position:relative;padding:13px 0;border-bottom:1px solid #38304470}.hero-row:last-child{border:0;padding-bottom:0}.hero-row .portrait{width:52px;height:58px}.hero-row .details{min-width:0;flex:1}.hero-row strong{font-size:12px}.hero-row small{display:block;color:var(--muted);margin-top:3px;font-size:10px}.hero-row .bar{margin-top:8px}.energy-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;margin-top:6px;color:var(--green)}.energy-summary{display:flex;align-items:center;gap:10px}.energy-summary svg{color:var(--gold)}.energy-summary span{font-size:12px}.energy-summary b{margin-left:auto;color:var(--gold)}.note{font-size:10px;line-height:1.6;color:var(--muted);margin:10px 0 0}.btn{border:1px solid #554060;background:#352646;color:var(--text);border-radius:9px;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:12px;min-height:44px}.btn:hover{filter:brightness(1.12)}.btn.primary{background:linear-gradient(130deg,#ffe19a,#e9a73f);border-color:#ffe19a;color:#372113;box-shadow:0 5px 22px #dc933321}.btn.secondary{background:#2c223d;border-color:#735099}.btn.ghost{background:transparent;border-color:var(--line);color:var(--muted)}.btn.wide{width:100%}.middle{min-width:0}.scene{height:clamp(390px,43vw,620px);position:relative;overflow:hidden;border:1px solid #6e6f4c;border-radius:17px;background:#244024 url('assets/forest-arena.png') center/cover}.scene::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#050b1944,transparent 35%,#07100b88)}.scene-head{position:absolute;top:22px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;z-index:2}.scene-head h2{font-size:28px;text-shadow:0 2px 12px black;margin:7px 0}.scene-head p{color:#e7edda;text-shadow:0 2px 6px black;font-size:12px;max-width:330px}.location{display:inline-flex;align-items:center;gap:7px;font-size:10px;background:#0e181ace;border:1px solid #aec08c66;border-radius:6px;padding:8px 11px;color:#e6f0d6}.scene-label{background:#0d111ce6;border:1px solid #59645c;padding:12px 16px;border-radius:9px;color:var(--gold);font-size:12px}.scene-label small{display:block;font-size:10px;margin-top:4px;color:var(--text)}.scene-party{position:absolute;inset:0;pointer-events:none}.unit{position:absolute;width:100px;height:116px;filter:drop-shadow(0 8px 2px #0008);animation:bob 3s ease-in-out infinite}.unit::after{content:'';position:absolute;width:45px;height:5px;background:var(--green);border:1px solid #11231a;border-radius:4px;top:0;left:27px}.unit.scout{top:42%;left:27%}.unit.warrior{top:56%;left:44%;animation-delay:-1s}.unit.mage{top:43%;left:62%;animation-delay:-2s}.scene-bottom{position:absolute;z-index:3;bottom:20px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:center;background:#111725df;border:1px solid #b9a18055;backdrop-filter:blur(10px);border-radius:12px;padding:17px 19px;gap:16px}.scene-bottom strong{font:600 17px 'Space Grotesk'}.scene-bottom p{font-size:11px;margin:5px 0 0}.spark{position:absolute;width:4px;height:4px;background:#ffe27c;box-shadow:0 0 12px #ffd063;border-radius:50%;left:var(--x);top:var(--y);animation:float 6s linear infinite;animation-delay:var(--delay)}@keyframes float{0%,100%{opacity:0;transform:translateY(20px)}50%{opacity:.8;transform:translateY(-20px)}}@keyframes bob{50%{transform:translateY(-5px)}}.under-scene{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.quick{padding:16px;background:#191422;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--text)}.quick svg{color:var(--gold);width:27px;height:27px}.quick strong{display:block;font-size:12px}.quick small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.resource-list{display:flex;flex-direction:column;gap:15px}.resource{display:flex;align-items:center;gap:11px}.resource svg{color:var(--gold);width:28px;height:28px}.resource strong{display:block;font-family:'Space Grotesk';font-size:17px}.resource small{display:block;color:var(--muted);font-size:10px}.resource:nth-child(2) svg{color:var(--violet)}.resource:nth-child(3) svg{color:var(--green)}.chest-art{font-size:58px;text-align:center;padding:16px;filter:drop-shadow(0 0 22px #c6973155)}.chest-art svg{width:76px;height:76px;stroke:var(--gold);fill:#e7ac3719;stroke-width:1}.subtle-separator{height:1px;background:var(--line);margin:16px 0}.tag{font-size:9px;letter-spacing:1px;border-radius:5px;padding:5px 7px;background:#bda25218;color:var(--gold);border:1px solid #bda25233;display:inline-block}.tag.green{color:var(--green);background:#74b88512;border-color:#74b88533}.tag.purple{color:var(--violet);border-color:#a986d644;background:#a986d612}.rightcol .panel{padding:18px}.rightcol p{font-size:11px}.rightcol .cta-card{background:radial-gradient(ellipse at top,#51367466,transparent),#191422}.section-page{max-width:1330px;margin:auto;padding:30px 26px;min-height:690px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.page-head p{max-width:660px;margin-bottom:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.map-card{overflow:hidden;padding:0}.map-cover{height:195px;background:url('assets/forest-arena.png') center/cover;position:relative}.map-cover.crypt{filter:hue-rotate(115deg) saturate(.55)}.map-cover.forge{filter:hue-rotate(300deg) saturate(.8)}.map-cover .tag{position:absolute;bottom:14px;left:17px;backdrop-filter:blur(12px);background:#15131dde}.map-details{padding:20px}.map-details h2{font-size:21px}.map-details p{font-size:12px}.meta{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.meta span{font-size:11px;color:#c2b8cd;background:#ffffff05;border:1px solid var(--line);padding:7px 9px;border-radius:6px}.hero-card{position:relative;text-align:center;padding:23px}.hero-card .hero-render{height:230px;width:200px;margin:0 auto;background:radial-gradient(ellipse at bottom,#b38deb22,transparent 66%);position:relative}.hero-card .hero-render::after{content:'';position:absolute;bottom:8px;left:40px;right:40px;border-radius:50%;height:11px;background:#0005;z-index:-1}.hero-card h2{font-size:22px;margin-top:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0;text-align:center}.stats div{background:#100d1866;border:1px solid #392c45;border-radius:7px;padding:10px 6px}.stats small{display:block;font-size:9px;color:var(--muted);margin-bottom:6px}.stats strong{font-size:15px;color:var(--text)}.inventory-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.inventory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.item-tile{padding:15px 10px;color:var(--text);border-radius:11px;border:1px solid var(--line);background:#21172a;text-align:center;min-height:118px;position:relative}.item-tile svg{width:45px;height:45px;margin:8px;color:var(--violet)}.item-tile strong{display:block;font-size:11px}.item-tile small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.item-tile:hover,.item-tile.selected{border-color:var(--gold);background:#443125}.item-tile.common svg{color:#c7cfda}.item-tile.rare svg{color:var(--gold)}.item-tile.green svg{color:var(--green)}.tabs{display:flex;gap:9px;margin-bottom:22px}.tab{background:#1b1625;border:1px solid var(--line);border-radius:7px;color:var(--muted);padding:10px 16px}.tab.active{color:var(--gold);border-color:#9a7542}.item-detail svg{width:85px;height:85px;color:var(--gold);display:block;margin:12px auto 25px}.item-detail h2{font-size:21px}.upgrade-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.upgrade-stage{display:flex;justify-content:center;height:330px;background:radial-gradient(ellipse,#a080cc19,transparent 60%)}.upgrade-stage .hero-art{width:260px}.costs{display:flex;gap:12px;margin:20px 0}.cost{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:11px 14px;font-size:12px}.cost svg{color:var(--gold)}.timeline{display:flex;flex-direction:column;gap:12px;font-size:11px;color:var(--muted)}.timeline div{display:flex;gap:10px;line-height:1.5}.timeline b{color:var(--green);white-space:nowrap}.expedition-progress{margin-bottom:13px;display:flex;justify-content:space-between;font-size:12px}.rightcol .expedition-actions{display:flex;flex-direction:column;gap:10px}.summary-layout{max-width:900px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:22px}.results-banner{grid-column:1/-1;text-align:center;padding:35px;background:radial-gradient(ellipse,#6d53301c,transparent);border:1px solid #88713c;border-radius:15px}.results-banner svg{width:55px;height:55px;color:var(--gold);margin-bottom:13px}.results-banner h1{margin:10px 0}.result-loot{display:flex;gap:12px}.result-loot .cost{flex:1;padding:12px;font-size:11px}.ranking{border-collapse:collapse;width:100%;font-size:12px}.ranking td,.ranking th{padding:18px;text-align:left;border-bottom:1px solid var(--line)}.ranking th{color:var(--muted);font-weight:500;font-size:10px}.ranking td:first-child{color:var(--gold);font-weight:700}dialog{max-width:460px;width:calc(100% - 32px);border:1px solid #8e7452;border-radius:17px;background:#1c1529;color:var(--text);padding:28px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#070512aa;backdrop-filter:blur(7px)}dialog h2{margin-bottom:10px}dialog p{font-size:13px}dialog .buttons{display:flex;gap:10px;margin-top:25px}dialog .buttons .btn{flex:1}.dialog-close{position:absolute;right:16px;top:12px;background:transparent;border:0;color:var(--muted);font-size:24px}#toast{position:fixed;left:50%;bottom:35px;transform:translateX(-50%) translateY(100px);z-index:50;max-width:90vw;width:max-content;background:#352944;border:1px solid #9b7d56;border-radius:10px;padding:14px 21px;box-shadow:0 7px 30px #0008;opacity:0;transition:.25s;font-size:12px}#toast.visible{transform:translateX(-50%);opacity:1}.hidden{display:none!important}.muted{color:var(--muted)}.row{display:flex;justify-content:space-between;align-items:center;margin:14px 0;gap:10px}.row label{font-size:12px}input[type=range]{accent-color:var(--gold);max-width:140px}.check-row{display:flex;align-items:center;gap:12px;font-size:13px}.check-row input{accent-color:var(--gold);width:18px;height:18px}.battle-pulse{position:absolute;top:48%;left:48%;width:60px;height:60px;transform:rotate(45deg);border:2px solid #ffcb6255;box-shadow:0 0 40px #ffc76288;border-radius:50%;animation:flash 1.7s infinite;pointer-events:none}@keyframes flash{50%{opacity:.2;transform:scale(1.5) rotate(45deg)}}
@media(min-width:1600px){.layout{grid-template-columns:260px minmax(0,1fr) 275px}.topbar nav{gap:12px}}@media(max-width:1150px){.topbar{gap:13px;padding:14px 18px}.nav-button{padding:10px;gap:6px;font-size:11px}.nav-button svg{width:18px}.wallet{display:none}.layout{grid-template-columns:205px minmax(0,1fr);padding:18px;gap:16px}.rightcol{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.scene{height:550px}.scene-bottom strong{font-size:14px}.scene-bottom .btn{font-size:11px;padding:10px}.topbar .brand{font-size:26px}.brand svg{width:36px}.grid{gap:14px}}
@media(max-width:760px){.topbar{flex-wrap:wrap;padding:11px 15px;gap:10px}.brand{margin-right:auto}.brand small{font-size:8px;letter-spacing:2px}.topbar nav{order:3;flex-basis:100%;justify-content:flex-start;overflow:auto;scrollbar-width:none;gap:5px}.nav-button{min-width:77px;flex-direction:column;gap:6px;padding:9px;font-size:10px;border-radius:8px}.nav-button svg{width:21px;height:21px}.icon-btn{padding:8px}.demo-strip{padding:8px 15px;line-height:1.4;font-size:8px}.demo-strip span:last-child{max-width:170px;text-align:right}.layout{padding:14px;display:flex;flex-direction:column}.leftcol{order:2;display:grid;grid-template-columns:1fr 1fr;gap:12px}.leftcol .team-panel{grid-column:1/-1;order:3}.leftcol .profile{padding:12px}.profile .portrait{width:45px;height:58px}.profile .bar{width:85px}.profile strong{font-size:14px}.leftcol>.btn{grid-column:1/-1}.hero-row{padding:10px 0}.hero-row .portrait{height:50px;width:45px}.rightcol{order:3;display:grid;grid-template-columns:1fr 1fr;gap:12px}.rightcol .cta-card{grid-column:1/-1}.middle{order:1}.scene{height:440px;min-height:440px}.scene-head{top:16px;left:16px;right:16px}.scene-head h2{font-size:24px}.scene-head p{font-size:10px;max-width:240px}.scene-label{font-size:10px;padding:9px;max-width:115px}.scene-label small{font-size:9px}.scene-bottom{bottom:14px;left:14px;right:14px;padding:13px;flex-direction:column;align-items:stretch;gap:11px}.scene-bottom strong{font-size:15px}.scene-bottom p{font-size:10px}.scene-bottom .btn{width:100%}.unit{width:75px;height:93px}.unit::after{left:21px;width:35px}.unit.scout{left:19%;top:42%}.unit.warrior{left:43%;top:49%}.unit.mage{left:66%;top:39%}.under-scene{gap:7px}.quick{padding:11px 7px;flex-direction:column;text-align:center;gap:7px}.quick strong{font-size:10px}.quick small{font-size:8px}.panel{padding:15px}.panel h3{font-size:14px}.section-page{padding:20px 14px;min-height:680px}.page-head{display:block;margin-bottom:21px}.page-head h1{font-size:27px}.page-head>.tag,.page-head>.btn{margin-top:12px}.grid{grid-template-columns:1fr}.hero-card{display:grid;grid-template-columns:120px 1fr;gap:8px;text-align:left;padding:17px}.hero-card .hero-render{width:120px;height:180px;grid-row:1/8;margin:auto}.hero-card .tag{justify-self:start}.hero-card h2{font-size:19px;margin:0}.hero-card p{font-size:10px;margin:0}.hero-card .stats{margin:5px 0}.hero-card .stats div{padding:8px 3px}.hero-card .bar{margin-top:4px}.hero-card .btn{margin-top:5px}.inventory-layout{grid-template-columns:1fr}.inventory-grid{grid-template-columns:repeat(3,1fr);gap:9px}.item-tile{min-height:108px;padding:9px}.item-detail{position:static}.item-detail svg{margin:10px auto;height:60px}.upgrade-layout,.summary-layout{grid-template-columns:1fr}.upgrade-stage{height:240px}.upgrade-stage .hero-art{width:200px}.results-banner{padding:22px}.results-banner h1{font-size:27px}.result-loot{flex-wrap:wrap}.ranking td,.ranking th{padding:14px 8px}.footer{padding:18px 15px;display:block;font-size:9px;line-height:1.8}.footer span:last-child{margin-top:10px}.energy-summary{font-size:10px;gap:7px}.energy-summary b{font-size:12px}.note{font-size:9px}.resource strong{font-size:15px}.rightcol .panel{padding:14px}.chest-art{padding:8px}.chest-art svg{width:50px;height:50px}h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}body.reduced-motion *{animation:none!important}
.monster-art{width:100%;height:100%;background:url('assets/monsters.png') 0% center/300% 100% no-repeat}.monster-art.golem{background-position:50% center}.monster-art.boss{background-position:100% center}.enemy{position:absolute;width:82px;height:82px;filter:drop-shadow(0 6px 2px #0007);animation:bob 3s ease-in-out infinite;pointer-events:none}.enemy::after{content:'';position:absolute;top:0;left:23%;right:23%;height:5px;background:#ee826c;border:1px solid #543026;border-radius:4px}.enemy.slime{top:39%;left:57%}.enemy.golem{top:42%;left:73%;width:96px;height:110px;animation-delay:-.7s}.enemy.boss{top:27%;left:67%;width:113px;height:130px;animation-delay:-1.5s}.in-battle .unit.scout{left:20%;top:47%}.in-battle .unit.warrior{left:34%;top:58%}.in-battle .unit.mage{left:39%;top:38%}.in-battle .scene-head h2{font-size:23px}.in-battle .scene-head p{max-width:260px}@media(max-width:760px){.enemy.slime{left:52%;top:45%;width:60px;height:65px}.enemy.golem{left:76%;top:50%;width:64px;height:77px}.enemy.boss{left:67%;top:32%;width:73px;height:88px}.in-battle .unit.scout{left:12%;top:47%}.in-battle .unit.warrior{left:29%;top:55%}.in-battle .unit.mage{left:30%;top:35%}.in-battle .scene-head h2{font-size:20px;max-width:200px}.in-battle .scene-head p{max-width:170px}}
.music-settings .music-volume{max-width:none;width:100%;margin:0 0 18px;accent-color:var(--gold)}.music-settings output{color:var(--gold);font-weight:700}.music-settings .check-row{margin-top:10px}
/* Player-facing shell. Administrative tools remain separate. */
.topbar{border-bottom-color:#554129;background:linear-gradient(110deg,#191324ee,#100e19ee)}.brand svg{filter:drop-shadow(0 0 12px #ffb84b55)}.wallet-dot{background:#9b90a8!important;box-shadow:none!important}.player-resources{display:flex;justify-content:flex-end;gap:10px;max-width:1600px;margin:auto;padding:12px 26px 0}.player-resources span{display:flex;align-items:center;gap:8px;background:#1b1725;border:1px solid #55402e;border-radius:8px;padding:8px 14px;font-size:12px}.player-resources svg{width:18px;height:18px;color:var(--gold)}.player-resources span:nth-child(2) svg{color:#bc91ff}.player-resources b{font-family:'Space Grotesk',sans-serif}.team-count{margin-left:auto;font-size:10px;color:var(--gold);background:#c399431a;border:1px solid #c3994344;padding:4px 6px;border-radius:5px}.profile{background:radial-gradient(ellipse at left,#bb854f20,transparent),var(--panel)}.profile small:first-child{font-size:8px;letter-spacing:1.5px;color:var(--gold);margin-bottom:5px}.hero-card .stats,dialog .stats{grid-template-columns:repeat(4,1fr)}.hero-card .stats strong{font-size:13px}.map-cover{height:220px}.map-details .btn{margin-top:8px}.scene-head h2{font-size:25px}.scene-head p{max-width:230px}.scene-bottom{background:linear-gradient(130deg,#1e2230f5,#111723f0);border-color:#b5914d77;box-shadow:0 8px 25px #0003}.scene-bottom .auto-label{font-size:8px;letter-spacing:1.5px}.feature-soon{max-width:700px;margin:40px auto;text-align:center;padding:45px 26px;background:radial-gradient(ellipse at top,#b9934022,transparent),var(--panel)}.feature-soon h2{margin-top:20px}.feature-soon p{max-width:410px;margin:14px auto 24px}.feature-emblem svg{width:66px;height:66px;color:var(--gold);filter:drop-shadow(0 0 20px #e9ac3c44)}.wallet-status p{font-size:12px}.footer b{color:#b4a7bc;font-size:10px;letter-spacing:1px}.expedition-confirm .costs{flex-wrap:wrap}.stats small{letter-spacing:.5px}@media(max-width:760px){.player-resources{justify-content:center;padding:10px 14px 0;gap:8px}.player-resources span{flex:1;justify-content:center;padding:7px 8px;font-size:11px}.player-resources svg{width:16px;height:16px}.scene-head h2{font-size:23px;max-width:240px}.scene-head p{font-size:10px}.hero-card .stats strong{font-size:11px}.hero-card .stats small{font-size:8px}.map-cover{height:185px}.scene-bottom .auto-label{font-size:8px}.feature-soon{margin:18px auto;padding:35px 20px}.profile .bar{width:100px}}
/* Expedition party selection */
.party-picker{display:grid;gap:10px;margin:20px 0}.party-option{display:flex;align-items:center;gap:14px;width:100%;padding:14px;border:1px solid #45425b;border-radius:14px;background:#151524;color:#eeeaf7;text-align:left;cursor:pointer}.party-option.chosen{border-color:#ffc24f;background:linear-gradient(110deg,#382a22,#211e30);box-shadow:inset 0 0 0 1px #ffc24f44}.party-option:focus-visible{outline:3px solid #ffe29a;outline-offset:3px}.party-option .portrait{flex:0 0 62px;width:62px;height:76px}.party-option strong,.party-option small{display:block}.party-option small{color:#b7b1c8;margin-top:4px}.party-stats{display:block;font-size:12px;line-height:1.6;color:#dad3e5;margin-top:7px}.party-check{margin-left:auto;font-size:24px;color:#ffcb62}.party-summary{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;align-items:center;padding:12px;background:#0e1020;border-radius:10px}.party-summary span{font-size:12px;color:#b7b1c8}.party-low,.party-option small.party-low{color:#ff9292}#dialog:has(.party-picker){max-height:90dvh;overflow:auto;width:min(560px,calc(100vw - 28px))}
.hero-class-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.hero-catalogue-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.hero-catalogue-grid .hero-card .hero-render{width:100%;max-width:210px;height:230px}.hero-catalogue-grid .stats{grid-template-columns:repeat(2,1fr)}.class-description{margin:0 0 22px;color:#c7bbd6}.rarity-common{--rarity-color:#c6b995}.rarity-rare{--rarity-color:#8fbfff}.rarity-legendary{--rarity-color:#ffc55c}.rarity-mythic{--rarity-color:#ff759d}.hero-card[class*=rarity-]{border-color:var(--rarity-color);background:radial-gradient(ellipse at top,color-mix(in srgb,var(--rarity-color) 12%,transparent),transparent 62%),#171322}.rarity-badge{color:var(--rarity-color);border-color:var(--rarity-color)}.party-option[class*=rarity-]{border-left:3px solid var(--rarity-color)}#dialog:has(.party-picker) .hero-class-tabs{position:sticky;top:-28px;background:#1c1529;padding:12px 0;z-index:2}#dialog:has(.party-picker) .buttons{position:sticky;bottom:-28px;padding:12px 0;background:#1c1529}.party-picker{max-height:48vh;overflow:auto;padding:3px}.party-option:disabled{opacity:.6}.party-summary{margin-top:12px}
@media(max-width:1100px){.hero-catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.hero-catalogue-grid{grid-template-columns:1fr}.hero-catalogue-grid .hero-card .hero-render{width:120px;height:180px}.hero-catalogue-grid .hero-card .stats{grid-template-columns:repeat(2,1fr)}}
.selected-party{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.selected-chip{border:1px solid var(--rarity-color);border-radius:6px;background:#111521;color:var(--rarity-color);font-size:11px;padding:6px 9px}.hero-class-tabs .tab{flex:1}
.hero-card-actions{display:flex;gap:8px;margin-top:12px}.hero-card-actions .btn{flex:1;min-width:0}.party-option[aria-pressed=true] .party-check{border-radius:50%;padding:0 4px;color:#ffe19a}.party-option .party-check{font-size:21px}
.player-resources{align-items:center;flex-wrap:wrap}.currency-group,.materials-group{display:flex;gap:8px;align-items:center}.currency-group{margin-right:auto}.player-resources .currency-balance{min-width:118px;gap:9px;padding:6px 12px;background:linear-gradient(135deg,#332514,#171320);border-color:#96703988;box-shadow:inset 0 1px 0 #ffda7612}.player-resources .currency-noki{background:linear-gradient(135deg,#282136,#15121e);border-color:#b3915955}.currency-balance img{object-fit:contain;flex-shrink:0;filter:drop-shadow(0 1px 3px #0008)}.player-resources .currency-info{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:0;border:0;background:none;min-width:0}.currency-info small{font-size:9px;letter-spacing:1.1px;text-transform:uppercase;color:#cfb786}.currency-info b{font-size:17px;line-height:1.15;color:#ffe2a3;overflow-wrap:anywhere}.materials-group>span{min-height:38px}@media(max-width:760px){.player-resources{gap:8px;justify-content:space-between}.currency-group{margin:0;flex:1;min-width:0}.player-resources .currency-balance{min-width:0;flex:1;padding:6px 8px;justify-content:flex-start}.currency-balance img{width:30px;height:30px}.player-resources .currency-info{flex:initial;justify-content:flex-start;align-items:flex-start}.currency-info b{font-size:15px}.materials-group{gap:5px;flex-shrink:0}.materials-group>span{padding:6px;font-size:10px;gap:4px}}@media(max-width:460px){.currency-group{flex-basis:100%}.materials-group{width:100%}.materials-group>span{flex:1}.currency-balance img{width:34px;height:34px}}
.noki-loot{display:flex;align-items:center;gap:10px;border:1px solid #c89f5266;background:linear-gradient(120deg,#684a242f,#35213a55);border-radius:10px;padding:12px 15px;color:#ffe1a1}.noki-loot img{object-fit:contain;flex-shrink:0}.noki-loot span{display:flex;flex-direction:column;gap:4px}.noki-loot strong{font-size:16px}.noki-loot small{font-size:10px;color:#b5a6bd}.chest-rewards .noki-loot{flex-basis:100%;justify-content:center}.chest-rewards .noki-loot span{padding:0;border:0;background:none}.result-loot .noki-loot{flex-basis:100%}
.attack-cost{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #a8833c55;border-radius:8px;background:#ac813012;margin:10px 0;color:#e1c385;font-size:11px}.attack-cost svg{width:18px;height:18px}.attack-cost strong{margin-left:auto;color:#ffe09a;font-size:17px}.free-hero{color:#99e4b3!important;border-color:#79be8555!important;background:#57906716!important;font-size:9px;margin:5px 0}
:root{--shop-blue:#92c9ff}
.noki-usd{font-size:10px!important;white-space:nowrap;color:#d8bc83!important;text-transform:none!important;letter-spacing:0!important}.currency-noki{min-width:210px}.shop-heading{max-width:700px;margin-bottom:24px}.shop-heading h1{font-size:clamp(26px,4vw,40px);margin:10px 0}.shop-lock{border-color:#776036;margin-bottom:28px}.shop-lock p{max-width:800px}.shop-payment{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.shop-payment span{padding:10px 18px;border:1px solid #5d546d;border-radius:10px;background:#211d30}.shop-page code{overflow-wrap:anywhere}.shop-chests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:18px 0 35px}.shop-heroes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}.shop-product{text-align:center;min-width:0}.shop-product>small{display:block;margin-top:14px;font-size:11px;color:#aca5b8;line-height:1.6}.shop-chest-art{height:150px;display:grid;place-items:center;background:radial-gradient(ellipse,#ac753022,transparent 65%)}.shop-chest-art svg{width:150px;height:150px}.shop-hero-art{height:160px;display:flex;align-items:center;justify-content:center}.shop-hero-art .hero-art{width:130px;height:150px}.shop-odds{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:18px 0;color:#cfc5db;font-size:12px}.shop-odds span{padding:7px;border-radius:8px;background:#ffffff07}.shop-price{display:grid;gap:5px;margin:20px 0}.shop-price strong{font-size:25px;color:#ffdc83}.shop-price small{color:#b3a5c8}.shop-product button:disabled{opacity:.55;cursor:not-allowed}.material-icon{width:50px;height:50px;flex-shrink:0}.material-collection{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.material-collection>div{display:grid;justify-items:center;padding:8px;background:#ffffff05;border-radius:10px}.material-collection small{text-align:center;font-size:10px;color:#a9a2b7}.material-reward{display:flex;align-items:center;gap:10px;font-size:12px}.upgrade-materials{display:grid;gap:14px;margin:24px 0}.upgrade-materials>div{display:flex;align-items:center;gap:15px;padding:10px;border:1px solid #635475;border-radius:12px}.upgrade-materials b{display:block;margin-top:5px;font-size:12px}.upgrade-materials span{font-size:14px}.section-page>label select{margin:10px 0 24px;padding:12px;background:#211e2d;color:#e9ddf5;border:1px solid #665677;border-radius:10px;max-width:100%}
@media(max-width:700px){.shop-heroes{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-chests{gap:10px}.shop-product{padding:14px!important}.shop-odds{grid-template-columns:1fr}.shop-product .tag{font-size:10px}.shop-chest-art{height:120px}.shop-chest-art svg{width:120px;height:120px}.shop-price strong{font-size:22px}.shop-product button{font-size:12px;padding-inline:8px}.currency-noki{min-width:180px}.shop-hero-art{height:120px}}
@media(max-width:380px){.shop-chests,.shop-heroes{grid-template-columns:1fr}}
.upgrade-meter{height:10px;background:#080713;border:1px solid #564260;border-radius:8px;overflow:hidden;margin:18px 0 25px}.upgrade-meter>span{display:block;height:100%;background:linear-gradient(90deg,#9460d0,#ffe08b);border-radius:8px}.upgrade-tiers{display:grid;gap:9px;margin:22px 0}.upgrade-tiers span{padding:9px 12px;border:1px solid #494055;border-radius:9px;font-size:12px;color:#baacc8}.upgrade-materials small{display:block;font-size:11px;color:#c7b584;margin-top:4px}.upgrade-page .tag{color:#ffdc85}.upgrade-page .upgrade-layout{margin-top:16px}
.player-resources{align-items:stretch}.player-resources .currency-group{align-items:stretch;gap:8px}.player-resources .currency-balance{height:54px;min-width:118px;box-sizing:border-box;flex:none}.player-resources .currency-noki{min-width:118px}.token-price-card{display:flex;align-items:center;justify-content:space-between;gap:20px;height:54px;min-width:266px;box-sizing:border-box;padding:7px 14px;border:1px solid #a37b3d99;border-radius:8px;background:linear-gradient(115deg,#25202c,#211b12);box-shadow:inset 0 1px 0 #ffda7612;text-decoration:none;transition:border-color .2s,background .2s}.token-price-card:hover{border-color:#ffd477;background:linear-gradient(115deg,#302735,#332710)}.token-price-card:focus-visible{outline:2px solid #ffd477;outline-offset:3px}.token-price-info{display:flex;flex-direction:column;gap:3px}.token-price-info small{font-size:9px;letter-spacing:1.1px;color:#cfb786}.token-price-info strong{font-size:14px;line-height:1.15;color:#ffe2a3;white-space:nowrap;font-family:'Space Grotesk',sans-serif}.token-buy-label{display:flex;align-items:center;gap:8px;align-self:stretch;border-left:1px solid #d5a84c40;padding-left:16px;color:#ffd477;font-size:11px;font-weight:700;letter-spacing:.8px;white-space:nowrap}.player-resources .token-buy-label svg{width:14px;height:14px}.player-resources .materials-group{align-items:stretch}.player-resources .materials-group>span{box-sizing:border-box;height:54px}
@media(max-width:760px){.player-resources .currency-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.player-resources .currency-balance{min-width:0;width:100%;height:54px}.token-price-card{grid-column:1/-1;min-width:0;width:100%;gap:12px}.player-resources .materials-group{align-self:stretch}.player-resources .currency-group{flex-basis:100%}.player-resources .materials-group>span{height:38px}.token-price-info strong{font-size:14px}}
.language-select{width:57px;height:42px;flex-shrink:0;padding:0 6px;color:#ffda86;background:#21192d;border:1px solid #635032;border-radius:9px;font-size:11px;font-weight:700;cursor:pointer}.language-select:focus-visible{outline:2px solid #ffd477;outline-offset:2px}.language-select option{background:#21192d;color:#fff}@media(max-width:760px){.language-select{height:38px;width:54px;grid-row:1}}
@media(max-width:760px){.rightcol{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.rightcol>.panel{min-width:0;overflow-wrap:anywhere}.rightcol .chest-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.rightcol .chest-catalog svg{width:100%;max-width:90px}.under-scene .quick small{overflow-wrap:anywhere}.topbar{column-gap:8px}}
.rightcol>.chest-preview-panel{grid-column:1/-1}
.combat-scene-wrap{position:relative}.run-end-overlay[hidden]{display:none!important}.run-end-overlay{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;padding:18px;border-radius:15px;background:#06051366;backdrop-filter:blur(2px)}.run-end-card{width:min(100%,460px);max-height:100%;overflow-y:auto;box-sizing:border-box;padding:20px;border:1px solid #d6aa54;border-radius:17px;background:linear-gradient(135deg,#252031f5,#14121dfc);box-shadow:0 15px 60px #0009,0 0 35px #d4a65020}.run-end-heading{display:flex;align-items:center;gap:12px}.run-end-heading>svg{width:32px;height:32px;color:#ffd477;flex-shrink:0}.run-end-heading small{color:#dfbd78;letter-spacing:1.5px;font-size:9px}.run-end-heading h2{font-size:20px;margin:5px 0}.run-end-note{font-size:11px;margin:10px 0 14px}.run-end-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}.run-end-item{display:flex;gap:8px;align-items:center;padding:9px;background:#ffffff05;border:1px solid #72614355;border-radius:10px;min-width:0}.run-end-item>svg,.run-end-item>img{width:40px;height:40px;flex-shrink:0}.run-end-item>span{font-size:10px;overflow-wrap:anywhere;color:#cfc3dc}.run-end-item strong{display:block;font-size:15px;color:#ffe2a3;margin-top:4px}.run-end-progress{font-size:11px;border-top:1px solid #ffffff12;padding-top:10px;margin:12px 0}.run-end-progress summary{cursor:pointer;color:#cdbdd9}.run-end-progress>div{display:flex;justify-content:space-between;gap:8px;margin:10px 0;font-size:10px}.run-end-buttons{display:grid;gap:8px;margin-top:16px}.run-end-buttons .btn{font-size:12px;padding:11px 15px}.run-end-overlay~*{pointer-events:none}@media(max-width:760px){.run-end-overlay{padding:10px}.run-end-card{padding:14px}.run-end-heading h2{font-size:17px}.run-end-items{gap:6px}.run-end-item{padding:6px}.run-end-item>svg,.run-end-item>img{width:32px;height:32px}.run-end-item strong{font-size:13px}}
[data-chat-slot]{min-width:0;grid-column:1/-1}.global-chat{padding:16px;min-width:0;border-color:#695078;background:linear-gradient(145deg,#272036,#141221)}.chat-heading,.chat-heading>div{display:flex;align-items:center;gap:8px}.chat-heading{justify-content:space-between}.chat-heading h3{margin:0;font-size:15px}.chat-dot{width:6px;height:6px;background:#83dfb0;border-radius:50%;box-shadow:0 0 7px #65d7a766}.chat-status{font-size:10px;margin:7px 0 13px;color:#ad9cbf}.chat-messages{height:210px;overflow-y:auto;overscroll-behavior:contain;padding:10px;border:1px solid #ffffff0d;border-radius:10px;background:#0b091244;scrollbar-width:thin;scrollbar-color:#614a78 transparent}.chat-empty{font-size:12px;text-align:center;padding:45px 8px;color:#a79ab6}.chat-messages article{padding:9px 0;border-bottom:1px solid #ffffff09}.chat-message-meta{display:flex;justify-content:space-between;gap:8px}.chat-message-meta strong{font-size:10px;color:#efd092;overflow-wrap:anywhere}.chat-message-meta time{font-size:9px;color:#887992;flex-shrink:0}.chat-messages article p{font-size:12px;line-height:1.5;margin:5px 0 0;color:#ded5e8;white-space:pre-wrap;overflow-wrap:anywhere}.chat-form{display:flex;gap:7px;margin-top:12px}.chat-form input{min-width:0;flex:1;border:1px solid #564361;background:#13101d;color:#eee4f6;padding:10px;border-radius:8px;font-size:12px}.chat-form input:focus{outline:1px solid #d5b572}.chat-form button{background:linear-gradient(135deg,#ffdc86,#c99439);border:0;border-radius:8px;width:38px;color:#25180c;font-size:17px;flex-shrink:0}.chat-form button:disabled{opacity:.5}.chat-error{font-size:10px;color:#ffc4b4;margin:7px 0}.chat-note{display:block;font-size:9px;color:#9586a2}.chat-close{display:none;background:none;border:0;color:#cbbddd;font-size:23px}.chat-launcher{display:none;position:fixed;right:18px;bottom:18px;z-index:35;background:#2b1f3e;color:#ffe09c;border:1px solid #9b7344;border-radius:30px;padding:11px 17px;box-shadow:0 8px 22px #0007;align-items:center;gap:8px;font-size:12px}.chat-launcher svg{width:20px;height:20px}.chat-launcher.has-new:after{content:'';position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:50%;background:#83dfb0}.global-chat.chat-detached{display:none}.global-chat.chat-detached.chat-open{display:block;position:fixed;bottom:78px;right:18px;width:310px;z-index:36}.global-chat.chat-detached .chat-close{display:block}body:has(.chat-detached) .chat-launcher{display:flex}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){[data-chat-slot]{display:contents}.global-chat{display:none;position:fixed;right:12px;bottom:76px;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 100px);z-index:36;box-sizing:border-box;box-shadow:0 18px 60px #000b}.global-chat.chat-open{display:block}.chat-launcher{display:flex;right:14px;bottom:max(14px,env(safe-area-inset-bottom))}.chat-close{display:block}.chat-messages{height:clamp(130px,35dvh,280px)}.global-chat.chat-detached.chat-open{width:min(360px,calc(100vw - 24px));right:12px;bottom:76px}.chat-form input{font-size:16px}}
.topbar #navigation{min-width:0;overflow-x:auto;scrollbar-width:none}.topbar #navigation::-webkit-scrollbar{display:none}
.profile-avatar{width:60px;height:60px;flex-shrink:0}.player-profile-card{padding:14px}.player-profile-summary{display:flex;align-items:center;gap:10px;min-width:0}.player-profile-summary>div{min-width:0;display:grid;gap:5px}.player-profile-summary small{font-size:8px;letter-spacing:1.2px;color:#e5c185}.player-profile-summary strong{font-size:14px;overflow-wrap:anywhere;color:#ffe6b0}.player-profile-summary span{font-size:9px;color:#a99ab7}.player-profile-card .btn{margin-top:14px;font-size:10px;padding:8px}.profile-page-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:20px;margin-top:24px}.profile-preview{text-align:center;padding:12px 0}.profile-preview .profile-avatar{width:110px;height:110px}.profile-preview h2{margin-top:14px;overflow-wrap:anywhere}.profile-preview p{font-size:11px}.profile-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.profile-metrics>div{background:#ffffff05;padding:12px;border-radius:10px;display:grid;gap:8px}.profile-metrics small{font-size:10px;color:#a99bb6}.profile-metrics strong{font-size:24px;color:#ffe2a3}#player-profile-form>label{display:block;margin-top:20px;font-size:12px}#player-name{width:100%;box-sizing:border-box;background:#181320;color:#f4e5ff;border:1px solid #6c536f;border-radius:10px;padding:13px;margin-top:8px;font-size:15px}#player-name:disabled{opacity:.6}#player-name:focus{outline:1px solid #ffcf78}.avatar-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.avatar-choice{display:grid;place-items:center;border:1px solid #594362;background:#15121e;border-radius:12px;padding:8px}.avatar-choice .profile-avatar{width:100%;max-width:70px;height:auto}.avatar-choice.selected{border-color:#ffdc83;background:#443127;box-shadow:0 0 0 1px #b88943}.avatar-choice:focus-visible{outline:2px solid #ffdc83;outline-offset:2px}.profile-save-note{margin-top:14px}@media(max-width:760px){.profile-page-grid{grid-template-columns:1fr}.player-profile-card{grid-column:1/-1}.player-profile-summary .profile-avatar{width:54px;height:54px}.player-profile-card .btn{width:auto;margin-left:auto;display:block;padding:8px 13px}.avatar-picker{gap:8px}.profile-page-grid .panel{padding:18px}}
.topbar #navigation{justify-content:flex-start}
.upgrade-page .upgrade-materials.compact-upgrade-costs{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 20px}
.upgrade-page .compact-upgrade-costs .upgrade-cost{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:4px 7px;width:138px;max-width:100%;padding:9px;border:1px solid #554260;border-radius:8px;background:#15111e}
.upgrade-page .compact-upgrade-costs .upgrade-cost svg{width:36px;height:36px;margin:0}
.upgrade-page .compact-upgrade-costs .upgrade-cost b{font-size:13px;margin:0;color:#ffe2a6;line-height:1.4}
.upgrade-page .compact-upgrade-costs .upgrade-cost small{grid-column:1/-1;font-size:10px;line-height:1.4;color:#b8a9c5;margin:2px 0 0;overflow-wrap:anywhere}
.upgrade-page .compact-upgrade-costs .upgrade-cost.insufficient{border-color:#b35e6688}
.upgrade-page .compact-upgrade-costs .upgrade-cost.insufficient b{color:#f3a2a8}
.upgrade-page .upgrade-layout .panel{padding:18px;align-self:start}
.upgrade-page .upgrade-layout h2{font-size:19px;line-height:1.35}
.upgrade-page .upgrade-stage{height:210px}
.upgrade-page .upgrade-stage .hero-art{width:170px}
.upgrade-page .upgrade-layout p{font-size:11px}
@media(max-width:760px){.upgrade-page .upgrade-stage{height:160px}.upgrade-page .upgrade-stage .hero-art{width:130px}.upgrade-page .upgrade-materials.compact-upgrade-costs{gap:8px}.upgrade-page .compact-upgrade-costs .upgrade-cost{width:calc((100% - 16px)/3);min-width:78px;grid-template-columns:1fr;text-align:center;justify-items:center;padding:8px 5px}.upgrade-page .compact-upgrade-costs .upgrade-cost small{font-size:9px}.upgrade-page .upgrade-layout h2{font-size:17px}}
.chest-catalog .chest-reward-tooltip{text-align:left}
.chest-catalog .chest-reward-tooltip .tooltip-materials svg{width:30px;max-width:30px;height:30px}
.chest-reward-trigger{background:transparent;border:1px solid transparent;border-radius:10px;color:var(--text);padding:4px;display:grid;place-items:center;min-width:0;cursor:help;touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
.chest-reward-trigger svg{width:100%;max-width:100px;height:auto;pointer-events:none}
.chest-reward-trigger small{font-size:11px;margin-top:3px}
.chest-reward-trigger:hover,.chest-reward-trigger:focus-visible{border-color:#e2b863;background:#ffffff08;outline:none}
/* Treasure selector: unframed loot with static contour glow and opacity-only glints. */
.chest-preview-panel .chest-catalog{gap:9px;margin-top:14px}
.chest-preview-panel .chest-reward-trigger{--treasure-glow:#d6a35d66;position:relative;isolation:isolate;padding:7px 4px 9px;border:1px solid transparent;border-radius:0;background:transparent;box-shadow:none}
.chest-preview-panel .chest-rare{--treasure-glow:#67acff88}.chest-preview-panel .chest-legendary{--treasure-glow:#ffbc4899}.chest-preview-panel .chest-mythic{--treasure-glow:#ff72b599}
.chest-preview-panel .chest-catalog>.chest-reward-trigger>svg{display:block;width:100%;max-width:112px;height:106px;margin:0 auto;filter:drop-shadow(0 2px 3px #0009) drop-shadow(0 0 6px var(--treasure-glow))}
.chest-preview-panel .chest-reward-trigger>small{width:100%;margin:4px 0 0;padding-top:6px;border:0;color:var(--chest-color);font-size:11px;font-weight:700;letter-spacing:.25px;line-height:1.4;text-shadow:0 0 10px var(--treasure-glow)}
.chest-preview-panel .chest-reward-trigger:before,.chest-preview-panel .chest-reward-trigger:after{content:"";position:absolute;pointer-events:none;z-index:1;width:10px;height:10px;background:#fff4d5;clip-path:polygon(50% 0,60% 39%,100% 50%,60% 61%,50% 100%,40% 61%,0 50%,40% 39%);opacity:0;animation:treasure-glint 4.5s ease-in-out infinite}
.chest-preview-panel .chest-reward-trigger:before{left:23%;top:43px}
.chest-preview-panel .chest-reward-trigger:after{right:18%;top:31px;width:7px;height:7px;animation-delay:-2.1s}
.chest-preview-panel .chest-rare:before{animation-delay:-.8s}.chest-preview-panel .chest-legendary:before{animation-delay:-1.6s}.chest-preview-panel .chest-mythic:before{animation-delay:-2.4s}
.chest-preview-panel .chest-reward-trigger:hover,.chest-preview-panel .chest-reward-trigger:focus-visible,.chest-preview-panel .chest-reward-trigger[aria-expanded="true"]{border-color:transparent;background:transparent;box-shadow:none}
.chest-preview-panel .chest-reward-trigger:hover>svg,.chest-preview-panel .chest-reward-trigger:focus-visible>svg,.chest-preview-panel .chest-reward-trigger[aria-expanded="true"]>svg{filter:drop-shadow(0 2px 3px #0009) drop-shadow(0 0 9px var(--chest-color))}
.chest-preview-panel .chest-reward-trigger:focus-visible{outline:2px dotted var(--chest-color);outline-offset:2px}
@keyframes treasure-glint{0%,18%,42%,100%{opacity:0}26%{opacity:.95}32%{opacity:.25}36%{opacity:.75}}
body.motion-paused .chest-preview-panel .chest-reward-trigger:before,body.motion-paused .chest-preview-panel .chest-reward-trigger:after{animation-play-state:paused}
body.reduced-motion .chest-preview-panel .chest-reward-trigger:before,body.reduced-motion .chest-preview-panel .chest-reward-trigger:after{animation:none;opacity:0}
@media(prefers-reduced-motion:reduce){.chest-preview-panel .chest-reward-trigger:before,.chest-preview-panel .chest-reward-trigger:after{animation:none;opacity:0}}
.chest-reward-tooltip{position:fixed;inset:auto;margin:0;width:290px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;background:#191421f5;color:#f9efdc;border:1px solid #b18b4e;border-radius:12px;padding:16px;box-sizing:border-box;box-shadow:0 15px 50px #0009;pointer-events:auto;font-size:12px}
.chest-reward-tooltip::backdrop{background:transparent}
.chest-reward-tooltip h3{font-size:16px;color:#ffdb8f;margin:0 0 10px}
.chest-reward-tooltip small{color:#bfb2cb;font-size:10px;line-height:1.5}
.tooltip-materials{display:grid;gap:7px;margin:10px 0}
.tooltip-materials>div{display:flex;align-items:center;gap:7px}
.tooltip-materials svg{width:30px;height:30px;flex-shrink:0}
.tooltip-materials b{margin-left:auto;color:#ffe3a3;white-space:nowrap}
.tooltip-noki{border-top:1px solid #ffffff18;padding-top:10px;margin-top:10px}
.tooltip-noki strong{color:#ffdc87}
.tooltip-noki p{font-size:10px;color:#bfb2cb;margin:7px 0}
.tooltip-noki>div{display:flex;justify-content:space-between;gap:10px;padding:4px 0}
.tooltip-noki b{color:#ffd792}
.chest-reward-tooltip .note{font-size:9px}
.compact-team-sidebar{gap:12px}
.compact-team-sidebar .player-profile-card{padding:12px}
.compact-team-sidebar .player-profile-summary .profile-avatar{width:48px;height:48px}
.compact-team-sidebar .player-profile-card .btn{margin-top:10px;min-height:38px}
.compact-team-sidebar .team-panel{padding:14px}
.compact-team-sidebar .team-panel h3{margin-bottom:12px;font-size:14px}
.compact-team-sidebar .team-list{display:grid;gap:8px}
.compact-team-sidebar .hero-row{border:1px solid #ffffff0b;border-left:3px solid var(--rarity-color);background:linear-gradient(100deg,#ffffff04,transparent);border-radius:9px;padding:10px 8px;gap:9px;align-items:flex-start}
.compact-team-sidebar .hero-row:last-child{padding:10px 8px;border:1px solid #ffffff0b;border-left:3px solid var(--rarity-color)}
.compact-team-sidebar .hero-row .portrait{width:46px;height:52px;border:1px solid var(--rarity-color);border-radius:8px;background:radial-gradient(ellipse,#ffffff12,#12101c);overflow:hidden;flex-shrink:0}
.compact-team-sidebar .hero-row strong{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.team-rarity-badge{display:inline-flex;align-items:center;color:var(--rarity-color);border:1px solid var(--rarity-color);background:#0c0a1499;border-radius:4px;padding:2px 6px;font-size:9px;line-height:1.3;font-weight:700;letter-spacing:.3px;margin-top:5px}
.team-rarity-badge::before{content:'◆';font-size:7px;margin-right:4px}
.compact-team-sidebar .team-meta{font-size:9px;line-height:1.5;margin-top:6px;color:#b7a9c7}
.compact-team-sidebar .energy-label{font-size:9px;margin-top:7px}
.compact-team-sidebar .hero-row .bar{margin-top:4px;height:5px}
.team-energy-total{border-top:1px solid #ffffff12;margin-top:12px;padding-top:12px}
.team-energy-total .energy-summary svg{width:19px;height:19px}
.team-energy-total .energy-summary b{font-size:13px}
.team-energy-total .note{margin-top:7px;font-size:9px}
@media(max-width:760px){.compact-team-sidebar .player-profile-card .btn{min-height:44px}.compact-team-sidebar .team-panel{grid-column:1/-1}.compact-team-sidebar .team-meta{font-size:10px}.compact-team-sidebar .hero-row{padding:10px}.compact-team-sidebar .hero-row:last-child{padding:10px}.compact-team-sidebar .hero-row .portrait{width:50px;height:57px}}
.compact-inventory .inventory-grid{grid-template-columns:repeat(auto-fill,72px);gap:10px;justify-content:start}
.compact-inventory .item-tile{width:72px;height:72px;min-height:0;padding:6px;display:grid;place-items:center;border-radius:9px}
.compact-inventory .item-tile svg{width:46px;height:46px;margin:0}
.compact-inventory .item-quantity{position:absolute;right:4px;bottom:3px;font-size:11px;line-height:16px;padding:0 4px;background:#100d18dd;color:#fff1ca;border-radius:4px;max-width:64px}
.inventory-item-preview{display:grid;place-items:center;margin:18px 0}
.inventory-item-preview svg{width:90px;height:90px}
@media(max-width:760px){.compact-inventory .inventory-grid{grid-template-columns:repeat(auto-fill,60px);gap:8px}.compact-inventory .item-tile{width:60px;height:60px}.compact-inventory .item-tile svg{width:40px;height:40px}.compact-inventory .item-quantity{font-size:10px;max-width:52px}}
@media(max-width:760px){
 .topbar #navigation{flex:0 0 100%;width:100%;max-width:100%;min-width:0;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:5px;touch-action:pan-x pan-y;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#8f6b3e #ffffff08;padding-bottom:6px;cursor:grab}
 .topbar #navigation .nav-button{flex:0 0 77px;min-width:77px;scroll-snap-align:start;user-select:none;-webkit-user-select:none}
 .topbar #navigation::-webkit-scrollbar{display:block;height:3px}
 .topbar #navigation::-webkit-scrollbar-thumb{background:#8f6b3e;border-radius:5px}
 .topbar #navigation.dragging{cursor:grabbing;scroll-behavior:auto}
}
.scene.in-battle .scene-bottom{flex-direction:column;justify-content:center;text-align:center;gap:7px;padding:10px 14px}
.scene.in-battle .scene-bottom strong{font-size:12px}
.scene.in-battle .scene-bottom p,.scene.in-battle .scene-bottom .auto-label{display:none}
.scene.in-battle .scene-bottom .btn{min-width:220px;min-height:44px;padding:10px 22px}
.chest-flight-layer{position:fixed;inset:0;pointer-events:none;z-index:80;overflow:hidden}
.chest-flight-item{position:absolute;width:52px;height:52px;filter:drop-shadow(0 0 10px #ffd279);display:grid;place-items:center}
.chest-flight-item svg,.chest-flight-item img{width:44px;height:44px;object-fit:contain}
.chest-flight-item b{position:absolute;bottom:-12px;color:#ffe7a4;background:#171321dd;padding:2px 6px;border-radius:6px;font-size:11px;white-space:nowrap}
.scene[data-chest-opening] .scene-bottom button{pointer-events:none;opacity:.65}
.scene-bottom.nest-expedition-cta{justify-content:center;padding:12px 18px;gap:0}
.scene-bottom.nest-expedition-cta .btn{min-width:220px;min-height:48px;padding:12px 24px;font-size:13px}
@media(max-width:760px){.scene-bottom.nest-expedition-cta{align-items:center;padding:10px 12px}.scene-bottom.nest-expedition-cta .btn{width:min(100%,300px);min-width:0;font-size:12px}}
/* Compact shop: product identity, visible odds and aligned prices. */
.material-image{object-fit:contain;image-rendering:pixelated;display:inline-block;vertical-align:middle}
#dialog:has(.recovery-panel){width:min(94vw,520px);padding:22px;max-height:88dvh;overflow:auto}#dialog:has(.recovery-panel) h2{font-size:22px;margin:8px 0 14px}
.recovery-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;background:#80dba10b;border-radius:8px;font-size:12px}.recovery-summary span{color:var(--green);white-space:nowrap}.recovery-note{font-size:12px;color:var(--muted);margin:10px 0 14px}
.recovery-tabs{display:flex;gap:6px;margin-bottom:12px}.recovery-tabs button{flex:1;min-height:40px;border:1px solid var(--line);border-radius:7px;background:#110e1b;color:var(--muted);font-size:12px}.recovery-tabs button[aria-selected=true]{border-color:var(--gold);color:var(--gold);background:#ffcb6210}
.recovery-list{display:grid;gap:8px}.recovery-hero{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:10px;border:1px solid var(--line);border-left:3px solid var(--rarity-color);border-radius:8px}.recovery-hero strong{font-size:13px}.recovery-hero small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.recovery-hero .recovery-rarity{color:var(--rarity-color)}.recovery-portrait{height:54px;overflow:hidden;align-self:center}.recovery-portrait .hero-art{width:44px;height:54px}.recovery-energy{display:flex;justify-content:space-between;font-size:11px;margin-top:7px}.recovery-energy b{color:var(--green)}.recovery-track{height:4px;background:#0c0a12;border-radius:3px;margin-top:5px;overflow:hidden}.recovery-track i{display:block;height:100%;background:var(--green)}
@media(max-width:600px){#dialog:has(.recovery-panel){padding:18px}.recovery-tabs button{min-height:44px}.recovery-summary{align-items:center;flex-direction:row;flex-wrap:wrap;gap:5px 10px}.recovery-hero{gap:9px;padding:8px}}
.shop-page .shop-rarity-odds.rarity-common{--rarity-color:#f0edf4}
.shop-page .shop-rarity-odds.rarity-mythic{--rarity-color:#ff718b}
.shop-page .shop-odds .shop-rarity-odds{color:var(--rarity-color);background:color-mix(in srgb,var(--rarity-color) 9%,transparent);border-left:2px solid var(--rarity-color);font-weight:600}
.shop-page .shop-odds .shop-rarity-odds b{color:var(--rarity-color);font-weight:700}
.shop-page .shop-payment-source{grid-column:1/-1;margin:0;text-align:center;font-size:11px;line-height:1.3;color:var(--muted)}
.shop-page .shop-heading{margin-bottom:12px}.shop-page .shop-heading h1{font-size:clamp(22px,3vw,28px);margin:6px 0}.shop-page .shop-heading p{margin:6px 0;font-size:13px}
.shop-page .shop-lock{padding:12px 16px;margin-bottom:18px}.shop-page .shop-lock p{font-size:12px;margin:5px 0}.shop-page .shop-lock details{font-size:12px;margin-top:6px}.shop-page>h2{font-size:17px;margin:16px 0 6px}.shop-page>p{font-size:12px;margin:6px 0;color:var(--muted)}
.shop-page .shop-chests{gap:12px;margin:10px 0 18px}.shop-page .shop-heroes{gap:12px;margin-top:10px}
.shop-page .shop-product{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:8px 12px;padding:14px!important;text-align:left}.shop-page .shop-product h3{grid-column:2;font-size:15px;margin:0}.shop-page .shop-product .tag{grid-column:2;font-size:10px;justify-self:start}
.shop-page .shop-chest-art{grid-column:1;grid-row:1/4;height:90px}.shop-page .shop-chest-art svg{width:84px;height:84px}.shop-page .shop-odds{grid-column:2;margin:0;gap:4px;font-size:12px}.shop-page .shop-odds span{padding:3px 5px;display:flex;justify-content:space-between;gap:5px}.shop-page .shop-odds b{color:var(--text)}
.shop-page .shop-price{grid-column:2;margin:0;gap:2px}.shop-page .shop-price strong{font-size:18px}.shop-page .shop-price small{font-size:11px;overflow-wrap:anywhere}.shop-page .shop-product>.btn{grid-column:1/-1;min-height:40px;padding:8px 12px;font-size:12px;margin:0}
.shop-page .shop-hero-art{grid-column:1;grid-row:1/4;height:80px}.shop-page .shop-hero-art .hero-art{width:72px;height:80px}.shop-page .shop-duplicate{grid-column:1/-1;font-size:11px;color:var(--muted)}.shop-page .shop-duplicate small{display:block;margin-top:5px;line-height:1.5}
@media(max-width:900px){.shop-page .shop-heroes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.shop-page .shop-chests,.shop-page .shop-heroes{grid-template-columns:1fr}.shop-page .shop-product{grid-template-columns:76px minmax(0,1fr);padding:12px!important;gap:6px 12px}.shop-page .shop-product>.btn{min-height:44px}.shop-page .shop-odds{grid-template-columns:1fr 1fr}.shop-page .shop-heading h1{font-size:23px}}

.ranking-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;padding:6px 0 20px;border-bottom:1px solid #d5aa4b2b}.ranking-banner h1{margin:8px 0 0}.ranking-standing{flex:none;display:flex;align-items:center;gap:14px;padding:12px 18px;border:1px solid #d9b05355;border-radius:14px;background:linear-gradient(120deg,#d9b05318,#241b3510)}.ranking-standing small{color:var(--muted);font-size:12px}.ranking-standing strong{color:var(--gold);font-size:26px;font-variant-numeric:tabular-nums}
.ranking-tabs{display:inline-flex;gap:5px;max-width:100%;margin:0 0 22px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#100d1b80}.ranking-tabs .btn{min-width:0;min-height:44px;border-radius:10px;box-shadow:none}.ranking-tabs .ghost{border-color:transparent;background:transparent}.ranking-board{padding:22px}.ranking-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.ranking-heading h2{margin:0;font-size:20px}.ranking-count{flex:none;display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#0e0b171f}
.ranking-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.ranking-row.ranking-two-metrics{display:grid;grid-template-columns:36px 42px minmax(0,1fr) minmax(88px,110px) minmax(120px,190px);gap:14px;align-items:center;padding:12px 16px;border:1px solid var(--line);border-radius:13px;background:#100d192b;min-width:0}.ranking-row .profile-avatar{width:42px;height:42px}.ranking-position{display:grid;place-items:center;width:32px;height:32px;border:1px solid #91819f33;border-radius:10px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.ranking-top-1{--rank-medal:#ffcf74}.ranking-top-2{--rank-medal:#d2deed}.ranking-top-3{--rank-medal:#daa47f}.ranking-row.ranking-top{border-color:color-mix(in srgb,var(--rank-medal) 28%,transparent);background:linear-gradient(100deg,color-mix(in srgb,var(--rank-medal) 7%,transparent),#100d191a 55%)}.ranking-top .ranking-position{color:var(--rank-medal);border-color:color-mix(in srgb,var(--rank-medal) 45%,transparent);background:color-mix(in srgb,var(--rank-medal) 9%,transparent);box-shadow:inset 0 1px 0 #ffffff12}
.ranking-player{min-width:0;overflow-wrap:anywhere}.ranking-player strong{font-size:13px;line-height:1.5}.ranking-player strong>small{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:5px;color:var(--gold);background:#d9b05318;font-size:9px;font-weight:500}.ranking-value{min-width:0;text-align:right}.ranking-value>b{display:block;font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;letter-spacing:-.25px}.ranking-value>small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.ranking-primary>b{color:var(--gold)}.ranking-row.ranking-you{border-color:#e3ba65;background:linear-gradient(100deg,#dab25415,#33244028);box-shadow:inset 3px 0 0 #e3ba65}
.ranking-rules{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.7}.ranking-rules summary{cursor:pointer;color:var(--muted);width:fit-content}.ranking-rules p{margin:10px 0 0}.ranking-empty{padding:30px 8px;color:var(--muted);text-align:center}
@media(max-width:600px){.ranking-banner{gap:10px;margin-bottom:16px;padding-bottom:16px;align-items:flex-start}.ranking-banner h1{font-size:23px;line-height:1.2}.ranking-banner .eyebrow{font-size:9px}.ranking-standing{flex-direction:column;gap:3px;padding:9px 12px}.ranking-standing small{font-size:9px}.ranking-standing strong{font-size:22px}.ranking-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:16px}.ranking-tabs .btn{padding:10px 8px;font-size:11px;white-space:normal;line-height:1.4}.ranking-board{padding:14px}.ranking-heading{gap:8px;margin-bottom:14px}.ranking-heading h2{font-size:16px}.ranking-count{font-size:10px;padding:5px 8px}.ranking-row.ranking-two-metrics{grid-template-columns:28px 36px minmax(0,1fr);gap:10px;padding:12px}.ranking-position{width:27px;height:29px;font-size:11px}.ranking-row .profile-avatar{width:36px;height:36px}.ranking-player strong{font-size:12px}.ranking-value{grid-row:2;text-align:left;padding-top:8px;border-top:1px solid #ffffff09}.ranking-value:nth-last-child(2){grid-column:1/3}.ranking-value:last-child{grid-column:3}.ranking-value>b{font-size:14px}.ranking-value>small{font-size:9px}.ranking-rules{font-size:10px}}



.noki-mystery-item{display:flex!important;align-items:center;gap:10px;margin-top:12px;padding:12px;border:1px solid #d4a44d99;border-radius:10px;background:linear-gradient(120deg,#d9a14020,#281d3620);box-shadow:inset 0 0 16px #e0a9440a}.noki-mystery-item>span{flex:1;min-width:0}.noki-mystery-item strong{display:block;color:#ffdc87;font-size:13px}.noki-mystery-item small{display:block;color:#bbaacb;font-size:10px;margin-top:3px}.noki-mystery-item>b{color:#ffdc87;font-size:15px;white-space:nowrap}.noki-mystery-item img{flex-shrink:0}

.map-restrictions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0}.map-restrictions>small{flex-basis:100%;font-size:10px;color:#b9a7cd}.map-rarity{border:1px solid #796a8c;border-radius:6px;padding:5px 9px;font-size:11px;line-height:1.2}.map-rarity.rarity-common{color:#e3d6b7;border-color:#97885e}.map-rarity.rarity-rare{color:#a3c5ff;border-color:#527ac3}.map-rarity.rarity-legendary{color:#ffd46e;border-color:#b58b30}.map-rarity.rarity-mythic{color:#ff9cba;border-color:#c04f75}.party-choice:disabled{opacity:.45;cursor:not-allowed}.reward-noki-icon{width:36px;height:36px;object-fit:contain}.map-card .map-details{display:flex;flex-direction:column;min-width:0}.map-card .map-details>.btn{margin-top:auto}.map-card .meta{flex-wrap:wrap}.party-map>div{min-width:0}.party-map strong{overflow-wrap:anywhere}@media(max-width:760px){.map-restrictions{gap:5px}.map-rarity{padding:5px 8px}.party-map>span{flex-shrink:0}.party-map small{font-size:10px}}
/* Compact upgrade workspace: identity, attributes and costs stay adjacent. */
.upgrade-page{max-width:1050px;margin:0 auto;min-height:0}
.upgrade-page>h1{font-size:28px}
.upgrade-page>p{font-size:12px;margin-bottom:18px}
.upgrade-page .upgrade-picker{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}
.upgrade-page .upgrade-picker select{margin:0;padding:10px 12px;min-width:200px}
.upgrade-page .upgrade-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px;margin-top:18px;align-items:stretch}
.upgrade-page .upgrade-layout>.panel{align-self:stretch;padding:16px}
.upgrade-identity{display:flex;align-items:center;gap:14px;min-width:0}
.upgrade-identity-info{flex:1;min-width:0}
.upgrade-page .upgrade-identity h2{margin:8px 0;font-size:18px;overflow-wrap:anywhere}
.upgrade-page .upgrade-stage{width:88px;height:112px;flex:0 0 88px;background:radial-gradient(ellipse,#a080cc25,transparent 70%)}
.upgrade-page .upgrade-stage .hero-art{width:88px;height:112px}
.upgrade-page .upgrade-meter{height:6px;margin:10px 0 0}
.upgrade-page .stats{margin:16px 0 10px;gap:6px}
.upgrade-page .stats div{padding:9px 4px}
.upgrade-page .stats small{font-size:8px}
.upgrade-page .stats strong{font-size:13px}
.upgrade-page .upgrade-layout p{font-size:10px;margin:8px 0 0}
.upgrade-action-card{display:flex;flex-direction:column}
.upgrade-page .upgrade-action-card h2{font-size:17px;margin-bottom:0}
.upgrade-page .upgrade-materials.compact-upgrade-costs{margin:14px 0;gap:8px}
.upgrade-page .compact-upgrade-costs .upgrade-cost{width:calc((100% - 16px)/3);min-width:88px;padding:8px;grid-template-columns:30px 1fr;gap:4px 6px}
.upgrade-page .compact-upgrade-costs .material-image{width:30px;height:30px;object-fit:contain}
.upgrade-page .compact-upgrade-costs .upgrade-cost small{font-size:9px}
.upgrade-page .upgrade-owned{grid-column:1/-1;font-size:9px;color:var(--green);line-height:1.4}
.upgrade-page .insufficient .upgrade-owned{color:#f3a2a8}
.upgrade-page .upgrade-action-card>.btn{margin-top:auto}
@media(max-width:900px){.upgrade-page .upgrade-layout{grid-template-columns:1fr}.upgrade-page .upgrade-picker{flex-wrap:wrap}.upgrade-page .upgrade-picker select{flex:1;min-width:160px}.upgrade-page .upgrade-layout>.panel{padding:14px}.upgrade-page .upgrade-identity{gap:10px}.upgrade-page .upgrade-stage{width:76px;height:100px;flex-basis:76px}.upgrade-page .upgrade-stage .hero-art{width:76px;height:100px}.upgrade-page .compact-upgrade-costs .upgrade-cost{min-width:0;grid-template-columns:30px 1fr;text-align:left;justify-items:start}.upgrade-page .compact-upgrade-costs .upgrade-cost small{font-size:9px}.upgrade-page .upgrade-identity h2{font-size:17px}}

.expedition-log-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-weight:600;font-size:13px;list-style:none}
.expedition-log-panel>summary::after{content:'▾';font-size:14px;color:var(--muted)}
.expedition-log-panel[open]>summary::after{content:'▴'}
.expedition-log-panel>summary>b{margin-left:auto;font-size:10px;color:var(--gold);border:1px solid var(--line);border-radius:5px;padding:4px 6px}
.compact-expedition-log{display:grid;gap:0;margin-top:12px}
.expedition-log-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:7px;padding:9px 0;border-top:1px solid #ffffff09;font-size:10px}
.log-step{color:var(--green);font-size:10px}.log-stage{overflow-wrap:anywhere;color:#e4dbea}.log-values{display:grid;gap:3px;text-align:right;white-space:nowrap;color:var(--muted)}.log-values small{font-size:9px}
@media(max-width:760px){
 .layout>.compact-team-sidebar{display:contents}
 .layout>.compact-team-sidebar>.player-profile-card{order:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px}
 .layout>.middle{order:1}
 .layout>.compact-team-sidebar>.team-panel{order:2}
 .layout>.compact-team-sidebar>.btn{order:3}
 .layout>.rightcol{order:4;grid-template-columns:minmax(0,1fr)}
 .compact-team-sidebar .player-profile-summary .profile-avatar{width:40px;height:40px}
 .compact-team-sidebar .player-profile-summary strong{font-size:12px}
 .compact-team-sidebar .player-profile-summary span{font-size:8px}
 .compact-team-sidebar .player-profile-card .btn{margin:0;min-height:40px;max-width:110px;padding:7px 9px;font-size:9px}
 .scene.in-battle .scene-head h2{font-size:17px;max-width:175px}
 .scene.in-battle .scene-head p{font-size:9px;max-width:165px}
 .expedition-log-panel>summary{font-size:12px}
 .expedition-log-row{padding:8px 0;font-size:11px}
}

/* The map keeps location/stage badges; journey status belongs to its action strip. */
.scene.in-battle .scene-head [data-scene-title],.scene.in-battle .scene-head>div:first-child>p{display:none}

.sound-preview-buttons{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.sound-preview-buttons .btn{flex:1;min-width:80px;padding:8px;font-size:11px}

.topbar>.wallet{display:flex;flex-shrink:0}.wallet .wallet-dot.connected{background:#80dba1;box-shadow:0 0 8px #80dba177}.wallet.wallet-connected{border-color:#6da681}
.wallet-connect-panel>p{font-size:12px}.wallet-mobile-steps{padding:12px;border:1px solid #9b794c;border-radius:10px;background:#bc924418;margin:12px 0}.wallet-mobile-steps>strong{font-size:13px;color:var(--gold)}.wallet-mobile-steps>p{font-size:11px;line-height:1.7;margin:8px 0 0}.wallet-option>a.wallet-app-launch{display:flex;align-items:center;justify-content:center;margin:0;font-size:12px;text-decoration:none;min-height:44px;color:#382518}.wallet-mobile-help p{overflow-wrap:anywhere}
.wallet-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.wallet-option{padding:12px;border:1px solid #5b476f;border-radius:12px;background:#13101f}
.wallet-option>div{display:grid;grid-template-columns:34px 1fr;gap:3px 8px;align-items:center;margin-bottom:13px}
.wallet-monogram{grid-row:span 2;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:white;background:#8462ca;font-weight:800;font-size:19px}
.wallet-trust .wallet-monogram{background:#315eeb}
.wallet-option strong{font-size:12px}.wallet-option small{font-size:9px;color:var(--muted)}
.wallet-option>a{display:block;text-align:center;font-size:10px;margin-top:10px;color:var(--gold)}
.wallet-option .btn{padding:9px 5px;font-size:11px}
.wallet-error{color:#ffc0c0!important;font-size:11px;min-height:15px}
.wallet-connected-card{display:grid;gap:12px;padding:14px;border:1px solid #638b6a;border-radius:12px;margin:15px 0;background:#80dba108}
.wallet-connected-card>strong{color:#9de3b6;font-size:13px}.wallet-connected-card code{overflow-wrap:anywhere;font-size:11px;padding:10px;background:#0c0b12;border-radius:7px}
.wallet-mobile-help{margin:16px 0;font-size:11px}.wallet-mobile-help summary{cursor:pointer;color:var(--gold)}.wallet-mobile-links{display:grid;gap:8px}
@media(max-width:760px){.topbar>.wallet{display:flex;padding:7px 9px;font-size:10px;gap:6px;max-width:145px;min-width:0}.topbar>.wallet small{font-size:8px;white-space:nowrap}.topbar .brand{font-size:25px;gap:7px}.topbar .brand svg{width:36px;height:36px}.topbar{gap:7px}.wallet-connect-panel>p{font-size:11px}.wallet-options{gap:8px}.wallet-option{padding:10px}.wallet-option>div{grid-template-columns:1fr;justify-items:center;text-align:center;gap:6px}.wallet-monogram{grid-row:auto}}

@media(max-width:430px){.topbar>.wallet{max-width:108px}.topbar>.wallet small{display:none}.topbar>.wallet>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .brand{font-size:23px}.topbar .brand small{font-size:7px;letter-spacing:1px}.topbar .brand svg{width:32px;height:32px}}

/* No game UI is exposed before a verified wallet login, including first paint. */
.game-locked #navigation,.game-locked #player-hud,.game-locked #settings,.game-locked #global-chat,.game-locked #chat-launcher{display:none!important}
.game-locked .topbar{justify-content:flex-start}.game-locked #wallet{margin-left:auto}
.wallet-login-screen{max-width:920px;min-height:70vh;margin:auto;display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:48px;padding:48px 20px}
.wallet-login-brand{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.welcome-countdown{display:flex!important;align-items:center;justify-content:center;gap:5px;color:#ccebd8!important;font-size:11px!important;font-variant-numeric:tabular-nums}.welcome-countdown time{color:#ffe1a1;font-weight:700;white-space:nowrap}.welcome-pack-trigger .welcome-countdown{justify-content:flex-start;font-size:9px!important}.welcome-pack-offer>.welcome-countdown{padding:9px 12px;border:1px solid #86a88455;border-radius:8px;background:#9ae8b009;margin:8px auto;max-width:240px}.welcome-pack-offer .welcome-privacy{font-size:10px;color:#aa9eb9;line-height:1.5;max-width:430px;margin:12px auto}@media(max-width:760px){.welcome-pack-trigger .welcome-countdown{font-size:8px!important;gap:3px}}.welcome-pack-trigger .welcome-trigger-meta{display:flex;align-items:center;gap:8px;min-width:0}.welcome-pack-trigger .welcome-trigger-meta small{min-width:0;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.welcome-trigger-meta time{flex:none;color:#ffe1a1;font-size:9px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}@media(max-width:760px){.welcome-pack-trigger .welcome-trigger-meta{gap:4px}.welcome-trigger-meta time{font-size:8px}.welcome-pack-trigger .welcome-trigger-meta small{max-width:75px}}
.wallet-registration-count{display:flex;align-items:center;gap:12px;max-width:100%;margin-top:8px;padding:13px 17px;border:1px solid #b5914d55;border-radius:12px;background:linear-gradient(110deg,#c6983c16,#211a3099);box-shadow:inset 0 1px #ffe7ab0a}.wallet-registration-count[hidden]{display:none}.wallet-registration-count svg{width:27px;height:27px;flex:none;fill:none;stroke:#e3b75d;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.wallet-registration-count div{display:flex;flex-direction:column;gap:3px;min-width:0}.wallet-registration-count strong{font-size:23px;line-height:1.1;font-variant-numeric:tabular-nums;color:#ffe4a1;letter-spacing:-.03em}.wallet-registration-count span{color:#b9acc8;font-size:11px;line-height:1.35}
.wallet-login-brand h1{font-size:clamp(28px,2.7vw,36px);line-height:1.18;max-width:360px;margin:0;letter-spacing:-.025em;text-wrap:balance}
.wallet-login-brand p{max-width:34ch;margin:0;color:#b1a8c4;font-size:14px;line-height:1.6}.wallet-login-card{min-width:0;padding:24px}.wallet-login-card .wallet-options{gap:12px}.wallet-login-card .wallet-option{padding:14px}.wallet-login-card .wallet-error:empty{display:none}
.wallet-profile-address{display:block;overflow-wrap:anywhere;padding:12px;border:1px solid #544465;border-radius:10px;font-size:12px;text-align:left;color:#f8cc6c;margin:12px 0}
@media(max-width:760px){.wallet-login-screen{display:block;min-height:0;padding:28px 12px;max-width:480px}.wallet-login-brand{text-align:center;align-items:center;gap:12px}.wallet-login-brand h1{max-width:340px;font-size:clamp(26px,7vw,32px)}.wallet-login-card{padding:18px;margin-top:24px}.wallet-login-screen .wallet-options{grid-template-columns:1fr}.game-locked .topbar{padding-bottom:12px}}

/* Map previews and combat use the same region assets. Only the background changes. */
.scene[data-biome="forest"],.map-cover:not(.crypt):not(.forge){background-image:url('assets/forest-arena.png')}
.scene[data-biome="crypt"],.map-cover.crypt{background-image:url('assets/crypt-arena.png');filter:none}
.scene[data-biome="forge"],.map-cover.forge{background-image:url('assets/forge-arena.png');filter:none}
#dialog[open]:has(.party-setup){display:flex;flex-direction:column;width:min(680px,calc(100vw - 28px));max-width:680px;height:min(780px,92dvh);max-height:92dvh;overflow:hidden;box-sizing:border-box;padding:24px}
#dialog:has(.party-setup) h2{font-size:25px;margin:6px 0 16px}#dialog:has(.party-setup)>.eyebrow{flex-shrink:0}#dialog:has(.party-setup)>.buttons{flex-shrink:0;margin:16px 0 0;position:static;padding:0;gap:10px}
.party-setup{display:flex;flex-direction:column;min-height:0;flex:1;gap:10px}.party-map{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:9px;background:#ffffff04;border:1px solid #54445f;border-radius:10px}.party-map img{width:58px;height:38px;object-fit:cover;border-radius:5px}.party-map div{min-width:0}.party-map small{display:block;font-size:8px;letter-spacing:1px;color:#ad9cba}.party-map strong{display:block;font-size:13px}.party-map>span{margin-left:auto;font-size:10px;color:#b9adca;white-space:nowrap}.party-instruction{margin:0!important;font-size:11px!important;line-height:1.4}
.party-selection-heading{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;font-size:12px}.party-selection-heading strong span{color:#ffd17b;margin-left:6px}.party-selection-heading button{font-size:10px;border:0;background:none;color:#c9b6e2;padding:5px 0;cursor:pointer}.party-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex-shrink:0}.party-slot{display:flex;align-items:center;text-align:left;gap:7px;padding:8px;min-width:0;border:1px solid var(--rarity-color,#5a4b69);border-radius:9px;background:#151020;color:#f4edfa;cursor:pointer}.party-slot .portrait{width:36px;height:44px;flex:0 0 36px}.party-slot>span:not(.portrait){min-width:0}.party-slot strong,.party-slot small{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.party-slot small{font-size:8px;color:var(--rarity-color);margin-top:3px}.party-slot>b{margin-left:auto;font-size:15px;color:#b3a3bf}.party-slot.empty{border-style:dashed;justify-content:center;color:#887994;cursor:default;font-size:10px}.party-slot.empty>b{margin:0;color:#887994}
.party-filters{margin:0!important;flex-shrink:0}.party-filters .tab{padding:9px 10px;font-size:12px}.party-filters small{font-size:9px;opacity:.65;margin-left:3px}.party-choices{display:grid;gap:8px;overflow:auto;min-height:100px;flex:1;padding:3px;scrollbar-width:thin;scrollbar-color:#7e688f #130f1b}.party-choice{display:flex;align-items:center;text-align:left;gap:12px;background:#161221;color:#f4edfa;border:1px solid #544360;border-left:3px solid var(--rarity-color);border-radius:11px;padding:10px 12px;min-width:0;cursor:pointer}.party-choice .portrait{width:47px;height:57px;flex:0 0 47px}.party-choice-info{flex:1;min-width:0}.party-choice-info>strong{display:flex;align-items:center;gap:8px;font-size:12px}.party-choice-info strong small{margin-left:auto;color:#a899ba;font-weight:400;font-size:10px;white-space:nowrap}.party-choice-info>span{display:block;font-size:10px;line-height:1.5}.party-choice-rarity{color:var(--rarity-color);font-weight:700}.party-choice-stats{color:#ad9dbc;margin-top:4px}.party-choice-energy{color:#7edfc4;margin-top:3px}.party-choice .party-low{color:#ff9292}.party-choice-check{display:grid;place-items:center;border:1px solid #766187;border-radius:50%;width:25px;height:25px;flex:0 0 25px;color:#cabbda;font-size:18px}.party-choice.chosen{border-color:#eabd62;background:linear-gradient(100deg,#392b23,#21182a)}.party-choice.chosen .party-choice-check{background:#f4c768;color:#281e12;border-color:#f4c768;font-size:14px}.party-choice:focus-visible,.party-slot:focus-visible{outline:2px solid #ffe0a2;outline-offset:1px}
.party-readiness{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;color:#efcc8d;flex-shrink:0}.party-readiness small{color:#b7a6c9;font-size:10px}.party-odds{flex-shrink:0;font-size:10px;color:#a999bb}.party-odds summary{cursor:pointer}.party-odds p{font-size:10px!important;margin:6px 0!important}.party-odds small{font-size:9px}
#dialog:has(.continue-expedition){max-width:550px;width:min(550px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:24px;box-sizing:border-box}.continue-boss{display:flex;align-items:center;gap:14px;background:linear-gradient(110deg,#5c342144,#39243733);border:1px solid #a9774155;border-radius:12px;padding:14px}.continue-boss>span{font-size:30px;color:#ffd080}.continue-boss small{display:block;font-size:9px;letter-spacing:1px;color:#e8b966}.continue-boss strong{display:block;font-size:19px;margin:6px 0}.continue-boss p{font-size:11px;margin:0;line-height:1.5}.continue-loot{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0;font-size:11px;color:#b8a6ca}.continue-loot>span{padding:10px;border:1px solid #51435f;border-radius:9px}.continue-loot b{color:#ffe0a7;margin-right:5px;font-size:17px}.continue-expedition h3{font-size:12px;margin:16px 0 8px}.continue-team{display:grid;gap:7px}.continue-hero{display:flex;align-items:center;gap:9px;padding:8px;background:#100e1944;border:1px solid #51435f;border-left:2px solid var(--rarity-color);border-radius:9px}.continue-hero .portrait{width:35px;height:43px;flex:0 0 35px}.continue-hero>div{min-width:0}.continue-hero strong{font-size:11px;display:block;overflow-wrap:anywhere}.continue-hero small{font-size:9px;display:block;color:#ab9bbe;margin-top:5px}.continue-hero>span:last-child{margin-left:auto;color:#8eddb6;font-size:10px;max-width:100px;text-align:right;flex-shrink:0}.continue-hero>span.party-low{color:#ff9292}.continue-safe{border-top:1px solid #57405f;font-size:10px!important;color:#98d3b6;padding-top:12px;margin:14px 0 0}
@media(max-width:600px){#dialog[open]:has(.party-setup){padding:18px;height:92dvh}#dialog:has(.party-setup) h2{font-size:23px;margin-bottom:12px}.party-setup{gap:8px}.party-map>span{display:none}.party-slot{flex-direction:column;position:relative;align-items:center;text-align:center;padding:7px 4px;gap:3px}.party-slot>b{position:absolute;right:5px;top:2px;font-size:15px}.party-slot.empty>b{position:static}.party-slot.empty{min-height:89px}.party-slot small{font-size:8px}.party-slot strong{font-size:9px}.party-choice{padding:9px;gap:9px}.party-choice .portrait{width:40px;height:50px;flex-basis:40px}.party-choice-info>strong{font-size:11px}.party-choice-stats{font-size:9px!important}.party-choice-check{width:21px;height:21px;flex-basis:21px}.party-readiness{font-size:10px}.party-readiness small{font-size:9px}#dialog:has(.party-setup)>.buttons .btn{font-size:11px;padding:12px 7px}#dialog:has(.continue-expedition){padding:20px}.continue-hero>span:last-child{max-width:76px;font-size:9px}#dialog:has(.continue-expedition) .buttons .btn{font-size:11px;padding:12px 8px}}

.interface-map-preview{height:220px;min-height:0;border-radius:10px}.interface-map-preview .motion-health{top:0}
@media(min-width:601px){.party-choices{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.party-choice{gap:9px}.party-choice-info>strong{font-size:11px}.party-choice-stats{font-size:9px!important}}

.referral-panel{margin-top:20px}.referral-panel>label{display:block;margin:18px 0 7px;color:var(--muted);font-size:12px}.referral-link-row{display:flex;gap:10px}.referral-link-row input{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;background:#100d19;color:#e3c88e;padding:12px;font-size:13px}.referral-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.referral-stats>div{padding:12px;border:1px solid var(--line);border-radius:10px}.referral-stats small,.referral-stats strong{display:block}.referral-stats small{font-size:10px;color:var(--muted)}.referral-stats strong{font-size:24px;color:var(--gold);margin-top:7px}.referral-panel progress{width:100%;height:12px;accent-color:var(--gold)}.referral-boxes article{display:flex;align-items:center;gap:14px;padding:12px;margin-top:10px;border:1px solid #718fce55;background:#7ba6ff08;border-radius:12px}.referral-boxes article>div:nth-child(2){flex:1;min-width:0}.referral-boxes small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.referral-mini{width:65px;height:65px;flex-shrink:0}.referral-mini svg{width:100%;height:100%;stroke:none}.referral-mini .chest-light{opacity:0}@media(max-width:600px){.referral-stats{gap:6px}.referral-stats>div{padding:10px 6px}.referral-stats strong{font-size:21px}.referral-link-row{flex-wrap:wrap}.referral-link-row input{flex-basis:100%;font-size:12px}.referral-link-row button{width:100%}.referral-boxes article{flex-wrap:wrap}.referral-boxes article>.btn{width:100%}}

/* Purchased chest presentation is driven only by a finalized delivery receipt. */
#dialog:has(.purchase-reveal){width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;text-align:center;padding:28px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 35%,#47305266,transparent 65%),#161222;border-color:#a67d405c}
#dialog:has(.purchase-reveal)>.buttons{justify-content:center;flex-wrap:wrap}#dialog:has(.purchase-reveal)>h2{font-size:21px;margin:10px 0}
.purchase-reveal{--reward-color:#e3bf85;isolation:isolate}.purchase-reveal.rarity-rare{--reward-color:#8fbfff}.purchase-reveal.rarity-legendary{--reward-color:#ffc55c}.purchase-reveal.rarity-mythic{--reward-color:#ff759d}
.purchase-confirmed{display:inline-block;border:1px solid #80dba13d;border-radius:20px;padding:6px 12px;color:#a8e5bf;background:#80dba10b;font-size:9px;font-weight:700;letter-spacing:1.3px}
.purchase-reveal-stage{height:240px;position:relative;display:grid;place-items:center;overflow:hidden;margin:0 auto;width:100%;max-width:390px}
.purchase-halo{position:absolute;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,var(--reward-color),transparent 67%);opacity:.16;animation:purchase-halo 3s ease-in-out infinite}
.purchase-chest{width:180px;height:180px;z-index:1;filter:drop-shadow(0 16px 16px #0008);animation:purchase-arrive .75s cubic-bezier(.2,.9,.2,1.15) both}
.purchase-chest>svg{display:block;width:100%;height:100%;stroke:none;overflow:visible}.purchase-chest .chest-light{opacity:0}.purchase-chest .lid{transform-box:fill-box;transform-origin:center bottom}
/* Painted chest frames stay still in inventory; animate only during a reveal. */
.rpg-chest-art{overflow:visible;isolation:isolate}.rpg-chest-art image{pointer-events:none}
.purchase-opening .chest-frame-closed{animation:rpg-chest-closed .9s ease-in forwards}
.purchase-opening .chest-frame-open{animation:rpg-chest-open .9s ease-in forwards}
.purchase-revealed .chest-frame-closed{opacity:0!important}.purchase-revealed .chest-frame-open{opacity:1!important}
@keyframes rpg-chest-closed{0%,45%{opacity:1}100%{opacity:0}}
@keyframes rpg-chest-open{0%,45%{opacity:0}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.purchase-opening .chest-frame-closed,.purchase-opening .chest-frame-open{animation-duration:1ms}}
.purchase-rarity{color:var(--reward-color);font-size:10px;letter-spacing:1.5px;text-transform:uppercase;font-weight:700}.purchase-reveal-copy h3{font:600 26px 'Space Grotesk',sans-serif;letter-spacing:-.6px;margin:8px 0 10px;color:#fff1d9}.purchase-reveal-copy p{max-width:380px;margin:0 auto 12px;font-size:13px}.purchase-reveal-copy>small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin:12px auto 2px}
.purchase-sparks{position:absolute;inset:0;pointer-events:none}.purchase-sparks i{position:absolute;left:50%;top:50%;width:3px;height:3px;background:var(--reward-color);border-radius:50%;transform:rotate(calc(var(--spark)*30deg)) translateY(-100px);opacity:.5;box-shadow:0 0 8px var(--reward-color)}
.purchase-opening .purchase-chest{animation:purchase-shake .38s ease-in-out 2}.purchase-opening .purchase-chest .lid{animation:purchase-lid .9s ease-in forwards}.purchase-opening .chest-light{animation:purchase-light .9s ease-in forwards}.purchase-opening .purchase-halo{animation:purchase-burst .95s ease-out forwards}
.purchase-revealed .purchase-reveal-stage{height:205px}.purchase-revealed .purchase-chest{position:absolute;bottom:-55px;width:120px;height:120px;opacity:.15;animation:none}.purchase-revealed .purchase-chest .lid{transform:translateY(-23px) rotate(-10deg)}.purchase-revealed .chest-light{opacity:.5}
.purchase-guardian{position:relative;width:190px;height:205px;z-index:2;animation:purchase-guardian .6s cubic-bezier(.2,.8,.2,1.15) both;filter:drop-shadow(0 0 18px #ffe7ab33)}.purchase-guardian .hero-art{width:100%;height:100%}.purchase-revealed .purchase-sparks{animation:purchase-guardian .8s ease-out both}.purchase-revealed .purchase-halo{opacity:.25}
.purchase-materials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 4px}.purchase-materials>div{display:grid;justify-items:center;align-content:start;gap:4px;padding:10px 5px;border:1px solid #ffffff15;background:#ffffff04;border-radius:11px}.purchase-materials img{width:44px;height:44px;object-fit:contain}.purchase-materials strong{color:#ffda91;font-size:17px}.purchase-materials small{font-size:10px;line-height:1.3;color:#c2b7cb;overflow-wrap:anywhere}
@keyframes purchase-arrive{from{opacity:0;transform:translateY(-70px) scale(.7) rotate(-8deg)}65%{opacity:1;transform:translateY(7px) scale(1.05) rotate(3deg)}to{opacity:1;transform:none}}
@keyframes purchase-halo{50%{transform:scale(1.15);opacity:.24}}@keyframes purchase-shake{0%,100%{transform:none}25%{transform:translateX(-5px) rotate(-4deg)}75%{transform:translateX(5px) rotate(4deg)}}
@keyframes purchase-lid{0%,45%{transform:none}to{transform:translateY(-32px) rotate(-13deg)}}@keyframes purchase-light{from{opacity:0}to{opacity:1}}@keyframes purchase-burst{from{transform:scale(.8);opacity:.16}to{transform:scale(1.8);opacity:.5}}
@keyframes purchase-guardian{from{opacity:0;transform:translateY(25px) scale(.7)}to{opacity:1;transform:none}}
@media(max-width:480px){#dialog:has(.purchase-reveal){padding:23px 16px}.purchase-reveal-stage{height:200px}.purchase-revealed .purchase-reveal-stage{height:180px}.purchase-chest{width:155px;height:155px}.purchase-guardian{width:160px;height:180px}.purchase-reveal-copy h3{font-size:23px}.purchase-reveal-copy p{font-size:12px}#dialog:has(.purchase-reveal)>.buttons .btn{flex:1;min-width:115px}.purchase-materials{gap:5px}}
@media(prefers-reduced-motion:reduce){.purchase-reveal *{animation:none!important;transition:none!important}.purchase-opening .chest-light{opacity:1}.purchase-opening .purchase-chest .lid{transform:translateY(-25px)}}

/* Supplied NOKI Expeditions wordmark, without duplicate text or distortion. */
.topbar .brand{flex-shrink:0;gap:0;letter-spacing:normal}.topbar .brand .header-logo{display:block;width:174px;height:72px;object-fit:contain;max-width:100%}
@media(max-width:760px){.topbar .brand .header-logo{width:135px;height:56px}}
@media(max-width:430px){.topbar .brand .header-logo{width:112px;height:47px}}
@media(max-width:360px){.topbar .brand .header-logo{width:98px;height:42px}}

.withdrawal-panel code,#dialog>code{display:block;overflow-wrap:anywhere;font-size:11px;background:#0e0c18;border:1px solid #4e3c60;border-radius:8px;padding:10px;margin:8px 0 14px;color:#eec779}.withdrawal-panel label,.withdrawal-panel form>small{display:block;font-size:11px;margin:10px 0 6px}.withdrawal-panel input{width:100%;box-sizing:border-box;padding:12px;border-radius:8px;border:1px solid #665077;background:#110e1b;color:#fff;font-size:16px}.withdrawal-panel form .btn{margin-top:12px}.withdrawal-balances{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.withdrawal-balances>div{padding:12px;border:1px solid #594569;border-radius:10px}.withdrawal-balances small,.withdrawal-balances strong{display:block}.withdrawal-balances small{font-size:10px;color:#b4a2c6}.withdrawal-balances strong{color:#f7d084;font-size:19px;margin-top:5px}.withdrawal-history{display:grid;gap:8px;margin:12px 0;max-height:200px;overflow:auto}.withdrawal-history article{display:flex;align-items:center;gap:10px;padding:10px;background:#ffffff06;border:1px solid #4a3a56;border-radius:9px}.withdrawal-history small{display:block;font-size:10px;color:#b9a8cc;margin-top:4px}.withdrawal-history strong{font-size:13px}.withdrawal-history a{font-size:10px;color:#f4c66b}.withdrawal-history .btn{font-size:10px;padding:7px;margin-left:auto}.withdrawal-panel details{font-size:10px;margin-top:12px}.withdrawal-panel details summary{cursor:pointer}.withdrawal-panel details code{font-size:9px}#dialog:has(.withdrawal-panel){max-height:90dvh;overflow:auto;box-sizing:border-box}
.journey-start{position:absolute;inset:65px 16px 40px;z-index:20;display:grid;place-items:center;pointer-events:none}.journey-start-card{width:min(100%,310px);padding:18px;border:1px solid #c7a26385;border-radius:14px;background:#171321ed;box-shadow:0 10px 32px #0005;pointer-events:auto;text-align:center;box-sizing:border-box}.journey-start-heading{display:flex;align-items:center;justify-content:center;gap:10px}.journey-start-heading>span{display:block;flex:none;width:34px;height:38px}.journey-start-heading svg{width:100%;height:100%}.journey-start-heading h3{font-size:15px;line-height:1.4;color:#ffe0a0;margin:0;text-align:left}.journey-start-card p{font-size:11px;line-height:1.7;color:#c9bed3;margin:10px 0 14px}.journey-start-card .btn{font-size:12px;min-height:40px;padding:10px 18px;width:auto;max-width:100%}.scene-new-player .nest-expedition-cta{display:none}@media(max-width:600px){.journey-start{inset:60px 14px 30px}.journey-start-card{max-width:285px;padding:16px}.journey-start-heading h3{font-size:14px}.journey-start-card p{font-size:11px}}
/* Desktop HUD follows the same tracks and gutters as the profile/scenario below. */
.hud-balances,.hud-scene-controls{display:contents}
@media(min-width:761px){
 :root{--game-left:235px;--game-right:255px;--game-gap:18px;--game-gutter:26px;--game-tracks:var(--game-left) minmax(0,1fr) var(--game-right)}
 .layout{grid-template-columns:var(--game-tracks);column-gap:var(--game-gap)}
 .player-resources{display:grid;grid-template-columns:var(--game-tracks);gap:var(--game-gap);max-width:1700px;margin-inline:auto;padding:12px var(--game-gutter) 0}
 .player-resources .currency-group{display:contents}
 .player-resources .hud-balances{grid-column:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px;min-width:0}
 .player-resources .hud-balances .currency-balance{width:100%;min-width:0;min-height:54px;height:auto;padding:7px 8px;gap:7px}
 .player-resources .hud-balances .currency-balance img{width:28px;height:28px;flex-shrink:0}
 .player-resources .hud-balances .currency-info b{font-size:16px}
 .player-resources .hud-scene-controls{grid-column:2;display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px 12px;min-width:0}
 .player-resources .hud-scene-controls .token-price-card{flex:1 1 200px;min-width:0;max-width:266px;gap:10px}
 .player-resources .hud-shortcuts{margin-left:auto;justify-content:flex-end;min-width:0;max-width:100%}
}
@media(min-width:1600px){:root{--game-left:260px;--game-right:275px}}
.header-socials{display:flex;align-items:center;gap:7px;flex-shrink:0}
.header-socials a{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #74603f;border-radius:11px;background:#241d30;color:#ffe09a;text-decoration:none;transition:background .15s,border-color .15s}
.header-socials a:hover{background:#3b2d40;border-color:#ffcb62}
.header-socials svg{width:24px;height:24px;fill:currentColor;stroke:none}
.header-socials a.playtoearn-badge{width:46px;height:46px;border-radius:50%;border-color:transparent;background:transparent;flex-shrink:0}
.header-socials .playtoearn-badge img{display:block;width:44px;height:44px;object-fit:contain}
.header-socials .playtoearn-badge:focus-visible{outline:2px solid #ffcb62;outline-offset:3px}
.auto-battle-control{display:inline-flex;align-items:center;justify-content:center;gap:0;max-width:100%;flex-shrink:0}
.auto-battle-toggle{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 3px;border:0;border-radius:6px;background:transparent;color:#b9afc2;text-align:left;min-width:0}
.auto-battle-toggle strong{display:block;font-size:11px;font-weight:500;line-height:1.4}.auto-battle-toggle small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.auto-battle-light{position:relative;width:28px;height:16px;border-radius:20px;border:1px solid #6b6378;background:#443e50;flex-shrink:0}.auto-battle-light::after{content:'';position:absolute;left:3px;top:3px;width:8px;height:8px;border-radius:50%;background:#c5bdcc;transition:transform .15s,background .15s}
.auto-battle-toggle.is-on{color:#d2e5d8}.auto-battle-toggle.is-on .auto-battle-light{background:#3f795b;border-color:#679d7b}.auto-battle-toggle.is-on .auto-battle-light::after{transform:translateX(12px);background:#d9f4df}.auto-battle-toggle:hover{color:#fff0cd}
.auto-battle-help{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:7px;background:transparent;color:#c8b689;font-size:11px;font-weight:700}.auto-battle-help::before{content:'';position:absolute;width:18px;height:18px;border:1px solid #827354;border-radius:50%;pointer-events:none}.auto-battle-help:hover{color:#ffe0a1}.auto-battle-help:hover::before{border-color:#d4b67b}
.scene-bottom.nest-expedition-cta{gap:4px;flex-wrap:wrap;flex-direction:column;align-items:center}.run-auto-controls>.auto-battle-control{display:flex;margin-bottom:15px;justify-content:flex-start}
@media(min-width:761px){.scene-bottom.nest-expedition-cta{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:12px}.scene-bottom.nest-expedition-cta>.auto-battle-control{grid-column:1;grid-row:1;justify-self:end}.scene-bottom.nest-expedition-cta>.btn{grid-column:2;grid-row:1}}
#dialog:has(.party-setup)>.buttons{flex-wrap:wrap}#dialog:has(.party-setup)>.buttons>.auto-battle-control{flex:1 0 100%;order:-1}
.auto-battle-explanation p{font-size:13px;line-height:1.7}
@media(max-width:760px){.scene-bottom.nest-expedition-cta{gap:0;padding:6px 10px}.scene-bottom.nest-expedition-cta>.auto-battle-control{width:100%}.scene-bottom.nest-expedition-cta>.btn{min-height:44px;padding:10px 20px}.auto-battle-toggle strong{font-size:11px}.run-auto-controls>.auto-battle-control{justify-content:center}#dialog:has(.auto-battle-explanation){box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}}
.game-locked .header-socials{margin-left:auto}.game-locked #wallet{margin-left:0}
@media(min-width:761px) and (max-width:1300px){.topbar{column-gap:10px}.header-socials{gap:5px}.header-socials a{width:38px;height:40px}}
@media(max-width:760px){.topbar .header-socials{order:2;flex-basis:100%;justify-content:center;margin:0;padding-top:3px;gap:12px}.header-socials a{width:42px;height:42px}.topbar #navigation{order:3}}
@media(min-width:761px) and (max-width:1150px){:root{--game-left:205px;--game-gap:16px;--game-gutter:18px;--game-tracks:var(--game-left) minmax(0,1fr)}.player-resources .hud-balances .currency-info b{font-size:14px}.player-resources .hud-balances .currency-balance{padding-inline:6px;gap:5px}.player-resources .hud-balances .currency-balance img{width:25px;height:25px}}
/* Reduced-size painted backgrounds for small viewports; desktop art is unchanged. */
@media(max-width:760px){
 .scene,.scene[data-biome="forest"],.map-cover.forest{background-image:url('assets/forest-arena-mobile-v1.png')}
 .scene[data-biome="crypt"],.map-cover.crypt{background-image:url('assets/crypt-arena-mobile-v1.png')}
 .scene[data-biome="forge"],.map-cover.forge{background-image:url('assets/forge-arena-mobile-v1.png')}
}
.map-noki-bonus{display:inline-block;white-space:nowrap;color:#e5bf76;background:#d9ab4812;border:1px solid #b38c433b;border-radius:5px;padding:3px 6px;font-size:10px;line-height:1.3}.map-loot-context{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-4px 0 12px}.map-loot-context>small{font-size:10px;color:var(--muted)}
.premium-pack-trigger{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 10px;border:1px solid #c49b45;border-radius:9px;background:linear-gradient(120deg,#6b462e55,#35255277);color:var(--text);text-align:left;cursor:pointer}.premium-pack-trigger strong{display:block;font-size:11px;white-space:nowrap}.premium-pack-trigger small{display:block;color:#d4c29d;font-size:9px;margin-top:4px}.premium-pack-trigger strong b{font-size:10px;color:#ffe3a1;background:#d9a83b22;border-radius:4px;padding:2px 4px}.premium-pack-icon svg{display:block;width:34px;height:37px}.premium-pack-offer{text-align:center}.premium-pack-art{position:relative;width:140px;margin:10px auto}.premium-pack-art svg{width:130px;height:120px}.premium-pack-art b{position:absolute;right:0;bottom:8px;font-size:25px;color:#ffe2a0}.premium-pack-discount{display:inline-block;padding:5px 10px;background:#5a3d17;border:1px solid #b18b3d;border-radius:5px;color:#ffe2a0;font-size:13px}.premium-pack-price{display:block;font-size:25px;color:var(--gold);margin:8px 0}.premium-pack-offer del{font-size:13px;color:var(--muted)}.premium-pack-results{max-height:320px;overflow:auto;display:grid;gap:7px;margin:14px 0}.premium-pack-results article{padding:9px;border:1px solid var(--line);border-radius:7px;display:grid;grid-template-columns:24px 1fr;gap:3px 8px}.premium-pack-results article>span{grid-row:1/3;color:var(--gold);align-self:center}.premium-pack-results article>small{grid-column:2;color:var(--muted)}.premium-pack-results strong{font-size:12px}.hud-shortcuts{flex-wrap:wrap}.premium-pack-trigger:focus-visible{outline:2px solid #f0c66b;outline-offset:3px}@media(max-width:760px){.premium-pack-trigger{flex:1 1 100%;justify-content:center;padding:9px}.premium-pack-trigger strong{font-size:12px}.premium-pack-trigger small{font-size:10px}}
.player-resources .premium-pack-trigger>span{display:block;flex:none;padding:0;border:0;background:none;border-radius:0;text-align:left}.premium-pack-trigger{height:54px}.premium-pack-trigger>span:last-child{min-width:0}.premium-pack-trigger small{white-space:nowrap}#dialog:has(.premium-pack-offer),#dialog:has(.premium-pack-receipt){box-sizing:border-box;width:min(500px,calc(100vw - 24px));max-width:500px;max-height:calc(100dvh - 24px);overflow:auto;padding:24px 20px}#dialog:has(.premium-pack-offer)>.buttons{margin-top:14px}.premium-pack-offer>.eyebrow{display:block;line-height:1.6}@media(max-width:760px){.player-resources .hud-shortcuts>.premium-pack-trigger{grid-column:1/-1;grid-row:2;justify-content:center;height:56px}.player-resources .hud-shortcuts>.referral-trigger{grid-column:2;grid-row:1}.player-resources .hud-shortcuts>.guardian-trigger{grid-column:1;grid-row:1}#dialog:has(.premium-pack-offer),#dialog:has(.premium-pack-receipt){padding:22px 16px}}
.premium-pack-results article[class*="rarity-"]{border-color:color-mix(in srgb,var(--rarity-color) 60%,var(--line));border-left:3px solid var(--rarity-color);background:linear-gradient(110deg,color-mix(in srgb,var(--rarity-color) 12%,#171322),#171322 90%)}
.premium-pack-results article[class*="rarity-"]>strong,.premium-pack-results article[class*="rarity-"]>span{color:var(--rarity-color)}
.premium-pack-results article[class*="rarity-"]>small{color:color-mix(in srgb,var(--rarity-color) 70%,#d8d0e3)}
.bulk-chest-shop{margin-top:28px}.bulk-chest-shop>p{color:var(--muted);font-size:13px;line-height:1.6}.bulk-chest-art{position:relative}.bulk-chest-count{position:absolute;right:0;bottom:0;padding:2px 6px;border:1px solid #c49b45;border-radius:6px;background:#21172b;color:#ffe2a0;font-size:13px}.bulk-chest-shop .shop-price small{line-height:1.5}
.hero-fragment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:12px 0;max-height:430px;overflow:auto}.hero-fragment-card{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line,#494052);border-radius:12px;background:#181322}.hero-fragment-card.rarity-rare{border-color:#83adff}.hero-fragment-card.rarity-legendary{border-color:#efbd50}.hero-fragment-card.rarity-mythic{border-color:#f36a9f}.hero-fragment-card>div:nth-child(2){display:grid;gap:3px;min-width:0}.hero-fragment-card small,.hero-fragment-card span{font-size:11px;color:#b9afc8}.hero-fragment-card>b{margin-left:auto;color:#ffda84}.hero-fragment-art{position:relative;width:52px;height:60px;flex:none;overflow:hidden;clip-path:polygon(25% 0,85% 6%,100% 65%,64% 100%,0 77%,7% 25%);background:linear-gradient(135deg,#a887d9,#2c2346)}.hero-fragment-art>*{max-width:100%;max-height:100%}.hero-fragment-art .hero-art{width:100%;height:100%}.hero-fragment-art>span{position:absolute;right:2px;bottom:0;color:#ffe3a0;font-size:20px}.hero-fragment-notice{position:fixed;z-index:500;top:90px;right:18px;width:min(440px,calc(100vw - 24px));max-height:75vh;overflow:auto;padding:20px;background:#1a1426;border:1px solid #d8ad59;border-radius:16px;box-shadow:0 16px 70px #000b}.hero-fragment-notice h3{margin:0 0 10px;color:#ffda84}.hero-fragment-notice p{font-size:13px;line-height:1.55}.hero-fragment-notice .hero-fragment-grid{max-height:36vh;grid-template-columns:1fr}.hero-fragment-notice>small{display:block;margin-top:8px}@media(max-width:600px){.hero-fragment-notice{top:76px;right:12px;padding:15px}.hero-fragment-grid{grid-template-columns:1fr}.fragment-inventory>p{font-size:12px;line-height:1.5}}
.welcome-pack-trigger{display:flex;align-items:center;gap:9px;min-height:60px;padding:9px 13px;border:1px solid #64b88c;border-radius:12px;background:linear-gradient(125deg,#142c25,#1c1629);color:#f5e9c9;text-align:left;cursor:pointer}.welcome-pack-trigger>span:last-child{display:grid;gap:4px}.welcome-pack-trigger strong{font-size:12px}.welcome-pack-trigger small{font-size:10px;color:#a9c9b6}.welcome-pack-trigger b{margin-left:5px;padding:3px 5px;border-radius:5px;background:#a4e3b8;color:#163e28;font-size:9px}.welcome-mini-scout{display:block;width:40px;height:44px;background:url('assets/heroes.png') 0 50%/300% auto no-repeat}.welcome-pack-offer{text-align:center}.welcome-scout-art{height:180px;display:flex;align-items:center;justify-content:center;margin:12px auto}.welcome-scout-art>*{height:100%;max-width:220px}.welcome-free-tag{display:inline-block;padding:9px 14px;border:1px solid #6dc490;background:#15342b;border-radius:8px;color:#b6f1c9}.welcome-pack-offer p{line-height:1.6;font-size:13px}.welcome-stock{color:#a9bba9}.welcome-stock strong{color:#ffda84;font-size:24px}.welcome-pack-offer [data-welcome-feedback]{color:#ffc28c}@media(max-width:600px){.welcome-pack-trigger{min-height:52px;padding:8px 10px}.welcome-mini-scout{width:32px;height:36px}.welcome-scout-art{height:140px}.welcome-pack-trigger strong{font-size:11px}.welcome-pack-trigger small{font-size:9px}}
.player-resources .welcome-pack-trigger>span{padding:0;border:0;border-radius:0;background:none;flex:none;text-align:left}.player-resources .welcome-pack-trigger>.welcome-mini-scout{width:36px;height:44px;background:url('assets/heroes.png') 0 center/300% 100% no-repeat}.player-resources .welcome-pack-trigger>span:last-child{display:grid;min-width:0;flex:1;gap:4px}.welcome-pack-trigger strong{display:flex;align-items:center;gap:4px;white-space:nowrap}.welcome-pack-trigger strong b{margin-left:0;white-space:nowrap}.player-resources .welcome-pack-trigger{min-height:54px;height:54px;min-width:0}.welcome-pack-trigger small{white-space:nowrap}@media(max-width:760px){.player-resources .hud-shortcuts>.welcome-pack-trigger{grid-column:2;grid-row:1;height:48px;min-height:48px;padding:5px 7px;gap:5px}.player-resources .welcome-pack-trigger>.welcome-mini-scout{width:30px;height:36px}.player-resources .welcome-pack-trigger strong{font-size:10px;gap:3px}.player-resources .welcome-pack-trigger small{font-size:8px}.player-resources .hud-shortcuts:has(>.welcome-pack-trigger)>.referral-trigger{grid-column:1/-1;grid-row:3}}
/* Mandatory first identity: compact, keyboard-friendly, no dismiss control. */
.name-onboarding{min-height:60vh;display:grid;place-items:center;padding:24px 12px}
.name-onboarding-card{width:min(100%,480px);padding:28px;text-align:center;border-color:#d6a94c66;background:linear-gradient(150deg,#251d36,#14101f);box-shadow:0 12px 48px #0005}
.name-onboarding-avatar{width:82px;margin:0 auto 18px}
.name-onboarding-card h1{font-size:clamp(26px,5vw,36px);margin:12px 0}
.name-onboarding-card form{display:grid;gap:12px;text-align:left;margin-top:24px}
.name-onboarding-card label{font-weight:700;color:#ffe1a0}
.name-onboarding-card input{box-sizing:border-box;width:100%;min-height:48px;padding:12px 14px;font:inherit;font-size:16px;color:#fff;background:#100d19;border:1px solid #8d739e;border-radius:10px}
.name-onboarding-card input:focus{outline:2px solid #ffd374;outline-offset:2px}
.name-onboarding-card small,.name-onboarding-card .note{font-size:12px;line-height:1.6;color:#c1b6d3;margin:0}
#onboarding-name-feedback{color:#ffacb8;margin:0;min-height:1.4em;font-size:13px}
.name-onboarding-card form>small:last-child{text-align:center}
@media(max-width:600px){.name-onboarding{min-height:0;padding:14px 0}.name-onboarding-card{padding:22px 18px}.name-onboarding-avatar{width:66px;margin-bottom:12px}.name-onboarding-card form{margin-top:18px}}
/* Lightweight map selector: image and CSS gradients only, no filters or animation loop. */
.map-shortcuts{gap:12px}
.map-shortcut{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-width:0;min-height:126px;overflow:hidden;padding:0;border:1px solid #53445c;border-radius:12px;background:#171320;color:var(--text);text-align:left;cursor:pointer;transition:border-color .15s}
.map-shortcut>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:.8;transition:opacity .15s}
.map-shortcut::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#0b091520 0%,#100c1b38 28%,#100c1be8 76%,#100c1b 100%)}
.map-shortcut-copy{display:block;min-width:0;width:100%;padding:40px 36px 13px 13px}
.map-shortcut-copy small{display:block;color:#d2c9df;font-size:10px;line-height:1.4;letter-spacing:.25px}
.map-shortcut-copy strong{display:block;margin-top:4px;font-size:14px;line-height:1.3;color:#fff4df;overflow-wrap:break-word}
.map-shortcut>.map-noki-bonus{position:absolute;right:10px;top:10px;z-index:1;background:#21170eea;border-color:#d1a34a75;color:#ffe0a0;padding:4px 7px;font-size:10px}
.map-shortcut-check{position:absolute;right:11px;bottom:14px;display:grid;place-items:center;width:19px;height:19px;border:1px solid #bca77977;border-radius:50%;color:transparent;font-size:12px;background:#191424;pointer-events:none}
.map-shortcut.selected{border-color:#ffd071;box-shadow:inset 0 0 0 1px #ffd07155}
.map-shortcut.selected>.map-shortcut-check{color:#1c1420;border-color:#ffd071;background:#ffd071}
.map-shortcut.selected>img{opacity:1}
.map-shortcut:focus-visible{outline:2px solid #f0c66b;outline-offset:3px}
@media(hover:hover){.map-shortcut:hover{border-color:#d1b67f}.map-shortcut:hover>img{opacity:1}}
@media(max-width:760px){.map-shortcuts{gap:7px}.map-shortcut{min-height:112px;border-radius:9px}.map-shortcut-copy{padding:37px 8px 11px}.map-shortcut-copy small{font-size:8px;letter-spacing:0}.map-shortcut-copy strong{font-size:11px;min-height:29px;max-width:100%;padding-right:0}.map-shortcut>.map-noki-bonus{top:7px;right:6px;font-size:8px;padding:3px 5px}.map-shortcut-check{right:7px;top:8px;bottom:auto;width:15px;height:15px;font-size:10px}.map-shortcut:has(>.map-noki-bonus)>.map-shortcut-check{left:7px;right:auto}}
@media(prefers-reduced-motion:reduce){.map-shortcut,.map-shortcut>img{transition:none}}
.chat-messages article.chat-system-message{background:#10252c;border:1px solid #27515d;border-left:3px solid #67e8f9;border-radius:8px;padding:10px 11px;margin:7px 0;color:#a5e4ef;overflow-wrap:anywhere}
.chat-system-message .chat-message-meta strong{color:#67e8f9;letter-spacing:.08em;font-size:10px}
.chat-system-message .chat-message-meta time{color:#91aab5}
.chat-messages .chat-system-message p{color:#a5e4ef;line-height:1.6}
.chat-system-message .chat-reward-player{color:#fff;font-weight:750}
.chat-system-message .chat-reward-rarity{font-weight:800;color:#72b8ff}
.chat-system-message[data-rarity="legendary"] .chat-reward-rarity{color:#ffd36a}
.chat-system-message[data-rarity="mythic"] .chat-reward-rarity{color:#f58bd7}
.chat-system-message .chat-reward-amount{color:#74edb5;font-weight:800;background:#173d32;border-radius:4px;padding:1px 4px;white-space:normal}
.chat-system-message .chat-reward-rarity[data-rarity="rare"]{color:#72b8ff}
.chat-system-message .chat-reward-rarity[data-rarity="legendary"]{color:#ffd36a}
.chat-system-message .chat-reward-rarity[data-rarity="mythic"]{color:#f58bd7}
.roster-heading{display:flex;align-items:center;gap:18px;margin-bottom:18px}.roster-heading h2{margin:6px 0}.roster-heading p{font-size:12px;color:#b5a9c3}.roster-cap{margin-left:auto;border:1px solid #af894b;border-radius:12px;padding:14px 18px;background:linear-gradient(120deg,#3f2c21,#20172c);color:#ffdc8a;font-size:30px;white-space:nowrap}.roster-cap small{font-size:15px;color:#b8a98c}.roster-rules{padding:12px 16px;border:1px solid #73604e66;background:#b68b4710;border-radius:12px;margin:16px 0}.roster-rules p{font-size:12px;line-height:1.6;margin:4px 0}.roster-filters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.roster-filters b{margin-left:6px;color:#ffdb91}.roster-copy-id{display:block;font-size:10px;color:#a99bb6;margin:2px 0 14px}.roster-grid .hero-card{position:relative}.roster-xp{display:block;font-size:10px;color:#b9a4d1;margin:9px 0}.roster-fragment-button{width:100%;margin-top:10px;font-size:11px;border-color:#a8805955}.roster-fragment-button:hover{color:#ffe1a1;border-color:#e4b366}.roster-footer{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:20px 0;color:#b8a8c4;font-size:12px}.roster-warning{padding:14px;border:1px solid #bd944e;border-radius:9px;background:#d09d3a13;color:#ffdda0}.roster-confirm-art{height:160px;display:flex;justify-content:center}.roster-confirm-art .hero-art{height:160px;width:150px}@media(max-width:760px){.roster-heading{gap:10px;flex-wrap:wrap}.roster-heading>img{width:54px;height:54px}.roster-heading>div{flex:1;min-width:180px}.roster-heading h2{font-size:25px}.roster-cap{font-size:23px;padding:9px 13px}.roster-filters{gap:5px}.roster-filters .btn{padding:8px 10px;font-size:10px}.roster-footer{align-items:flex-start;flex-direction:column}.roster-rules p{font-size:11px}}
.active-roster-page .roster-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:14px}.active-roster-page .roster-grid .hero-card{display:flex;flex-direction:column;min-width:0;min-height:0;padding:14px}.active-roster-page .roster-grid .hero-render{position:relative;display:flex;align-items:center;justify-content:center;height:150px;width:100%;margin:0 0 9px}.active-roster-page .roster-grid .hero-render .hero-art{position:static;width:142px;height:142px;transform:none;margin:0}.active-roster-page .roster-grid .hero-card h2{font-size:17px;margin:9px 0 3px}.active-roster-page .roster-grid .hero-card .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0}.active-roster-page .roster-grid .hero-card .stats>div{padding:7px 3px}.active-roster-page .roster-grid .hero-card .stats small{font-size:7px}.active-roster-page .roster-grid .hero-card .stats strong{font-size:13px}.active-roster-page .roster-grid .hero-card .hero-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:auto}.active-roster-page .roster-grid .hero-card-actions .btn{padding:8px 5px;font-size:10px}.active-roster-page .roster-grid .roster-fragment-button{padding:7px 5px}.active-roster-page .roster-grid .energy-label{font-size:10px;margin:8px 0 5px}.active-roster-page .roster-grid .bar{height:5px}@media(max-width:760px){.active-roster-page .roster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.active-roster-page .roster-grid .hero-card{padding:10px;border-radius:11px}.active-roster-page .roster-grid .hero-render{height:106px;margin-bottom:6px}.active-roster-page .roster-grid .hero-render .hero-art{width:102px;height:102px}.active-roster-page .roster-grid .hero-card h2{font-size:13px;letter-spacing:-.3px;margin-top:7px}.active-roster-page .roster-grid .hero-card .rarity-badge{font-size:8px;line-height:1.5;white-space:normal}.active-roster-page .roster-grid .roster-copy-id{font-size:8px;margin-bottom:5px}.active-roster-page .roster-grid .hero-card .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:6px 0}.active-roster-page .roster-grid .hero-card .stats>div{padding:5px 2px}.active-roster-page .roster-grid .hero-card .stats small{font-size:6px}.active-roster-page .roster-grid .hero-card .stats strong{font-size:12px}.active-roster-page .roster-grid .energy-label{font-size:8px;gap:3px}.active-roster-page .roster-grid .roster-xp{font-size:8px}.active-roster-page .roster-grid .hero-card-actions .btn{font-size:8px;padding:7px 2px}.active-roster-page .roster-grid .roster-fragment-button{font-size:8px;padding:7px 2px;white-space:normal}}
.active-roster-page .roster-grid .bar.energy>i{display:block;height:100%;background:linear-gradient(90deg,#509d73,#8be6a8);border-radius:99px}
.wallet-login-brand .wallet-how-to-play{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;width:fit-content;max-width:100%;margin:12px 0 0;padding:8px 13px;border:1px solid #b78e4955;border-radius:8px;color:#e6c68a;background:linear-gradient(120deg,#c79a3f10,#21192c55);font-size:12px;font-weight:700;text-decoration:none}.wallet-how-to-play svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}.wallet-how-to-play>span:last-child{color:#a8916f;font-size:13px}.wallet-how-to-play:hover{border-color:#d4ac62;color:#ffe3aa;background:#9e74391a}@media(max-width:760px){.wallet-login-brand .wallet-how-to-play{margin-left:auto;margin-right:auto;font-size:11px}}
.team-guide-link-wrap{display:flex;justify-content:center;align-items:center;width:100%;min-width:0;margin:3px 0 0}.team-how-to-play{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:42px;max-width:100%;padding:9px 20px;border:1px solid #c5a15a66;border-radius:999px;background:radial-gradient(ellipse at top,#b78e3d1c,transparent 90%),#17141f;color:#e8ce98;font-size:12px;font-weight:700;line-height:1.4;text-decoration:none;box-shadow:inset 0 1px #e8cb8a13}.team-how-to-play svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.team-how-to-play .team-guide-external{color:#b89b63;font-size:14px}.team-how-to-play:hover{color:#ffe5af;border-color:#edc575;background-color:#2a211b}.team-how-to-play:focus-visible{outline:2px solid #f1cd81;outline-offset:4px}@media(max-width:760px){.layout>.compact-team-sidebar>.team-guide-link-wrap{order:3;align-self:center}.team-how-to-play{min-height:44px;font-size:12px;padding:10px 20px}}
#toast{top:auto;right:auto;bottom:max(24px,env(safe-area-inset-bottom));margin:0;color:var(--text);text-align:center;white-space:normal;overflow-wrap:anywhere;pointer-events:none;z-index:2147483000}#toast::backdrop{background:transparent;pointer-events:none}#toast.toast-in-dialog{position:sticky;inset:auto;top:0;margin:0 0 12px;width:100%;max-width:100%;transform:none}
.active-roster-page .roster-filters{display:flex;flex-wrap:wrap;gap:8px;padding:8px;margin:18px 0;width:fit-content;max-width:100%;border:1px solid #78628e38;border-radius:13px;background:linear-gradient(145deg,#1a1523,#100d19);box-shadow:inset 0 1px #ffffff04}.active-roster-page .roster-filter{--filter-color:var(--rarity-color,#ceb9f9);position:relative;isolation:isolate;display:grid;grid-template-columns:18px auto 25px;align-items:center;gap:8px;min-height:50px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--filter-color) 40%,#211b2b);border-radius:8px;background:linear-gradient(145deg,color-mix(in srgb,var(--filter-color) 8%,#1b1525),#14101d);color:var(--filter-color);text-align:left;transition:border-color .15s,background .15s,box-shadow .15s}.roster-filter.rarity-all{--filter-color:#cfbbfa}.roster-filter-label{font-size:11px;font-weight:750;white-space:nowrap}.active-roster-page .roster-filter-count{display:grid;place-items:center;min-width:25px;height:25px;margin:0;border:1px solid color-mix(in srgb,var(--filter-color) 35%,transparent);border-radius:6px;background:color-mix(in srgb,var(--filter-color) 13%,#100d18);color:var(--filter-color);font-size:12px;font-variant-numeric:tabular-nums}.roster-filter-sigil{position:relative;display:block;width:17px;height:21px;clip-path:polygon(50% 0,100% 32%,85% 76%,50% 100%,15% 76%,0 32%);background:conic-gradient(from 30deg at 50% 35%,#ffffffbb,var(--filter-color) 22%,#0007 43%,var(--filter-color) 68%,#fff9 85%,var(--filter-color));filter:drop-shadow(0 0 4px var(--filter-color))}.roster-filter.rarity-all .roster-filter-sigil{clip-path:none;background:none;color:var(--filter-color);height:22px}.roster-filter.rarity-all .roster-filter-sigil::before{content:'✦';font-size:24px;line-height:22px}.active-roster-page .roster-filter:hover{border-color:var(--filter-color);box-shadow:inset 0 0 15px color-mix(in srgb,var(--filter-color) 7%,transparent)}.active-roster-page .roster-filter.active{border-color:var(--filter-color);background:linear-gradient(140deg,color-mix(in srgb,var(--filter-color) 24%,#1a1525),#171221);box-shadow:0 0 12px color-mix(in srgb,var(--filter-color) 13%,transparent),inset 0 1px color-mix(in srgb,var(--filter-color) 25%,transparent)}.roster-filter.active::after{content:'';position:absolute;bottom:-1px;left:18%;right:18%;height:2px;background:var(--filter-color);box-shadow:0 0 8px var(--filter-color);border-radius:4px}.active-roster-page .roster-filter.active .roster-filter-count{background:var(--filter-color);color:#21162b;border-color:transparent}.roster-filter:focus-visible{outline:2px solid var(--filter-color);outline-offset:3px}@media(max-width:760px){.active-roster-page .roster-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;gap:6px;padding:7px}.active-roster-page .roster-filter{grid-column:span 2;grid-template-columns:16px minmax(0,1fr);gap:3px 6px;min-height:58px;min-width:0;padding:7px 9px}.active-roster-page .roster-filter:nth-last-child(-n+2){grid-column:span 3}.roster-filter-label{grid-column:1/-1;font-size:10px;line-height:1.5}.active-roster-page .roster-filter-count{grid-column:2;grid-row:1;justify-self:end;min-width:22px;height:21px;font-size:11px}.roster-filter-sigil{width:14px;height:17px}.roster-filter.rarity-all .roster-filter-sigil{height:18px}.roster-filter.rarity-all .roster-filter-sigil::before{font-size:20px;line-height:18px}}
.active-roster-page .roster-grid .roster-enhancement{position:absolute;z-index:2;top:12px;right:12px;display:grid;place-items:center;min-width:44px;height:35px;padding:3px 7px;border:1px solid #756b6e;border-radius:10px 3px 10px 3px;background:linear-gradient(145deg,#352b35,#17131f);color:#c7bcc7;box-shadow:0 3px 10px #0005;pointer-events:none}.roster-enhancement b{font:800 21px/1 'Space Grotesk',sans-serif;letter-spacing:-1px;font-variant-numeric:tabular-nums}.active-roster-page .roster-grid .roster-enhancement.is-upgraded{border-color:#edc166;background:linear-gradient(145deg,#644621,#2a2027 75%);color:#ffe4a0;box-shadow:inset 0 0 12px #ffd3731c,0 3px 12px #0005,0 0 12px #e9ad2c20}.roster-enhancement.is-upgraded b{text-shadow:0 1px 3px #0008,0 0 9px #f4c05244}@media(max-width:760px){.active-roster-page .roster-grid .roster-enhancement{top:8px;right:8px;min-width:38px;height:30px;padding:3px 6px;border-radius:8px 3px 8px 3px}.roster-enhancement b{font-size:18px}}
.roster-title-line{display:flex;align-items:center;gap:0}.roster-info-button{display:inline-flex;align-items:center;justify-content:flex-start;flex:0 0 32px;width:32px;height:36px;padding:4px;border:0;border-radius:50%;background:transparent;color:#b9a27a}.roster-info-button span{display:grid;place-items:center;width:18px;height:18px;border:1px solid #97805d88;border-radius:50%;background:#c49a4810;font-size:12px;line-height:1;font-weight:700;box-shadow:none}.roster-info-button:hover span{border-color:#d8b57b;color:#ffe0a2;background:#c49a4820;box-shadow:none}.roster-help-summary{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 15px}.roster-help-summary span{padding:6px 8px;border:1px solid #b89b5055;border-radius:6px;color:#ffe3a0;background:#ae843516;font-size:10px;font-weight:700}.roster-help section{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-top:1px solid #9e83b128}.roster-help section>b{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:8px;border:1px solid #8f735c66;color:#f3cd86;background:#b18b3914;font-size:10px}.roster-help section>div{min-width:0}.roster-help h3{font-size:14px;margin:3px 0 7px;color:#f7e6c2}.roster-help p{font-size:12px;line-height:1.65;margin:5px 0 9px;color:#beb1ca}.roster-help .roster-help-energy{padding:13px 11px;margin:4px 0;border:1px solid #c4974566;border-radius:10px;background:#cc9b3a0d}.roster-help-energy>b{font-size:16px}#dialog:has(.roster-help){width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain}@media(max-width:760px){.roster-info-button{flex-basis:44px;width:44px;height:44px}}@media(max-width:480px){.roster-title-line{gap:0}.roster-help section{gap:9px}.roster-help p{font-size:11px}.roster-help h3{font-size:13px}.roster-help-summary{gap:5px}.roster-help-summary span{font-size:9px;padding:5px 7px}}
.welcome-trigger-meta time,.welcome-countdown time{display:inline-block;inline-size:11ch;min-inline-size:11ch;flex:0 0 11ch;font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';text-align:right;white-space:nowrap}
.chat-messages article.chat-guardian-message{position:relative;border-color:#bca057;border-left:3px solid #ffda78;background:radial-gradient(ellipse at top right,#8063302e,transparent 70%),linear-gradient(130deg,#12382f,#182028 70%);box-shadow:inset 0 0 15px #d4ac3620,0 0 10px #d7ad3410;padding:12px;color:#d9eddf}
.chat-guardian-message .chat-message-meta strong{color:#ffdb80;letter-spacing:.05em;font-size:10px}.chat-messages .chat-guardian-message p{color:#c1dfd2}.chat-guardian-message .chat-reward-player{color:#f4fff8;text-shadow:0 0 7px #a3edc540}.chat-guardian-message .chat-reward-guardian{font-weight:850;color:#ffdd83;text-shadow:0 0 8px #ffbf6245}.chat-guardian-message .chat-reward-edition{display:inline-block;margin:5px 0 2px;padding:2px 6px;border:1px solid #b99d5370;border-radius:5px;background:#d2ad4020;color:#ffe9ad;font-size:10px;font-weight:700;max-width:100%;overflow-wrap:anywhere}
