:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#ecf8ff;background:#05070d;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#0f1626f5,#05070d 44%),radial-gradient(circle at top right,rgba(94,220,255,.13),transparent 36%),#05070d}button{font:inherit}[hidden]{display:none!important}.app-frame{width:min(100%,430px);min-height:100vh;margin:0 auto;padding:18px 14px 96px}.loading{display:grid;place-items:center;align-content:center;gap:16px;color:#94a8b8}.brand-mark{display:grid;place-items:center;width:68px;height:68px;border:1px solid rgba(100,232,255,.42);color:#64e8ff;background:#64e8ff14;font-weight:900;letter-spacing:0}.topbar,.section-heading,.currency-rail,.energy-strip,.score-duel,.leader-row,.quest-row{display:flex;align-items:center}.topbar{justify-content:space-between;gap:14px;margin-bottom:14px}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1;letter-spacing:0}h2{font-size:24px;line-height:1.08;letter-spacing:0}h3{font-size:18px;line-height:1.15;letter-spacing:0}p{color:#9db0bf;font-size:14px;line-height:1.45}.eyeline{margin-bottom:5px;color:#64e8ff;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.player-chip,.currency,.energy-meter,.panel,.hero-panel,.bottom-nav,.rune,.mode-toggle,.reward,.item-token,.locked-game-card{border:1px solid rgba(126,157,180,.18);background:#080d17c7;box-shadow:0 18px 50px #00000042;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.player-chip{display:grid;gap:4px;min-width:104px;padding:10px 12px;border-radius:8px;text-align:right}.player-chip span,.currency span,.energy-meter span,.run-summary span,.run-details span,.reward span,.item-token span,.inventory-card span,.locked-game-card span,.quest-row span{color:#7f93a5;font-size:11px;font-weight:700;letter-spacing:0}.currency-rail{gap:8px;margin-bottom:14px}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.currency{display:grid;gap:4px;min-width:0;padding:10px;border-radius:8px}.currency strong{overflow-wrap:anywhere;font-size:15px}.energy-strip{justify-content:space-between;gap:8px;margin-bottom:14px}.energy-meter{flex:1;display:grid;gap:8px;min-width:0;padding:10px;border-radius:8px}.energy-meter>div{display:flex;justify-content:space-between;gap:10px}.notice-line{min-height:20px;margin:-4px 0 12px;color:#f5d365;font-size:12px;font-weight:800}.screen-stack{display:grid;gap:12px}.panel,.hero-panel{border-radius:8px;padding:15px}.hero-panel{display:grid;gap:16px;min-height:180px;background:linear-gradient(135deg,#64e8ff29,#b98cff1a),#080d17e0}.hero-panel h2{max-width:340px}.primary-action,.secondary-action,.mode-toggle button,.bottom-nav button{cursor:pointer;color:#ecf8ff}.primary-action{border:0;width:100%;min-height:48px;border-radius:8px;background:linear-gradient(135deg,#64e8ff,#b98cff);color:#031018;font-size:15px;font-weight:900}.secondary-action{min-height:44px;border:1px solid rgba(126,157,180,.28);border-radius:8px;background:#ffffff0f;color:#ecf8ff;font-size:14px;font-weight:850}.compact-action{width:86px;align-self:stretch}button:disabled{cursor:not-allowed;opacity:.48}.primary-action:focus-visible,.secondary-action:focus-visible,.mode-toggle button:focus-visible,.bottom-nav button:focus-visible,.rune:focus-visible{outline:3px solid #f5d365;outline-offset:3px}.mode-toggle button:focus-visible,.bottom-nav button:focus-visible,.rune:focus-visible{position:relative;z-index:1}.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.boss-card{border-color:#ff5d4a57}.war-card{border-color:#b98cff57}.market-card{border-color:#8cff4f57}.meter-wrap{display:grid;gap:7px;margin-top:12px}.meter{overflow:hidden;height:8px;border-radius:999px;background:#ffffff14}.meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#64e8ff,#b98cff,#ff5d4a)}small,.meter-wrap small{color:#8fa2b2;font-size:12px}.section-heading{justify-content:space-between;gap:12px;margin-bottom:14px}.section-heading>span{color:#8cff4f;font-size:12px;font-weight:800}.item-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.item-token{display:grid;gap:4px;min-height:68px;padding:10px;border-radius:8px}.item-token strong{font-size:13px}.locked-game-grid{display:grid;gap:8px}.locked-game-card{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:10px;border-radius:8px}.locked-game-card div{display:grid;gap:4px;min-width:0}.locked-game-card strong,.locked-game-card span{overflow-wrap:anywhere}.locked-game-card em{flex:0 0 auto;color:#f5d365;font-size:11px;font-style:normal;font-weight:850;text-align:right}.leaderboard,.quest-list{display:grid;gap:8px}.leader-row,.quest-row{gap:8px;min-height:44px;padding:9px 10px;border:1px solid rgba(126,157,180,.14);border-radius:8px;background:#ffffff09}.leader-row.player{border-color:#64e8ff61;background:#64e8ff14}.leader-row strong{flex:1;min-width:0}.leader-row span,.leader-row em,.leader-row b{color:#8fa2b2;font-size:12px;font-style:normal}.leader-row b{color:#ecf8ff}.quest-row{justify-content:space-between}.quest-row div{display:grid;gap:3px}.quest-row em,.inventory-card em{color:#64e8ff;font-size:12px;font-style:normal;font-weight:800}.score-duel{justify-content:space-between;margin:16px 0 10px;font-size:28px}.score-duel span{color:#7f93a5;font-size:13px;font-weight:800;text-transform:uppercase}.inventory-grid{display:grid;gap:10px}.inventory-card{display:grid;gap:8px;padding:12px;border:1px solid rgba(126,157,180,.14);border-radius:8px;background:#ffffff09}.inventory-card div{display:grid;gap:3px}.offer{display:grid;gap:8px;min-height:142px}.offer span{color:#f5d365;font-weight:900}.play-panel{display:grid;gap:14px}.mode-toggle{display:flex;padding:3px;border-radius:8px}.mode-toggle button{border:0;min-height:32px;padding:0 10px;border-radius:6px;background:transparent;color:#8fa2b2;font-size:12px;font-weight:900}.mode-toggle button.active{background:#64e8ff29;color:#ecf8ff}.board{display:grid;gap:6px;width:100%;aspect-ratio:1}.rune{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:1;border-radius:8px;color:var(--rune-color);font-size:16px;font-weight:950;text-shadow:0 0 14px color-mix(in srgb,var(--rune-color),transparent 20%);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rune-color),transparent 64%),0 10px 24px #00000038}.rune:before{content:"";position:absolute;top:6px;right:6px;bottom:6px;left:6px;border:1px solid currentColor;transform:rotate(45deg);opacity:.32}.rune.selected{background:color-mix(in srgb,var(--rune-color),#07101d 78%);outline:2px solid #ecf8ff;outline-offset:1px;transform:translateY(-2px)}.run-summary,.run-details,.reward-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.run-summary div,.run-details div,.reward{display:grid;gap:4px;min-height:54px;padding:9px;border-radius:8px;background:#ffffff0b}.game-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.reward-grid{grid-template-columns:repeat(4,1fr)}.reward{border-radius:8px}.reward strong{font-size:14px}.status-line{min-height:20px;color:#c2d2df}.building-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.building-card{display:grid;align-content:space-between;gap:10px;min-height:172px}.cost-list{display:flex;flex-wrap:wrap;gap:5px}.cost-list span{padding:4px 6px;border-radius:6px;background:#ffffff0e;color:#9db0bf;font-size:10px;font-weight:800}.bottom-nav{position:fixed;right:50%;bottom:14px;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;width:min(calc(100% - 22px),408px);padding:7px;border-radius:8px;transform:translate(50%)}.bottom-nav button{display:grid;gap:4px;place-items:center;min-width:0;min-height:52px;border-radius:6px;background:transparent;color:#7f93a5;font-size:10px;font-weight:800}.bottom-nav button span{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#ffffff0f;color:#9db0bf}.bottom-nav button.active{background:#64e8ff1f;color:#ecf8ff}.bottom-nav button.active span{background:#64e8ff;color:#031018}.critical{margin-top:32px;border-color:#ff5d4a80}@media(max-width:370px){.split-grid,.item-strip,.building-grid,.run-details,.reward-grid{grid-template-columns:1fr}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.locked-game-card,.energy-strip{align-items:stretch}.locked-game-card{display:grid}.locked-game-card em{text-align:left}.rune{font-size:14px}.rune:before{top:5px;right:5px;bottom:5px;left:5px}.bottom-nav button{font-size:9px}}
