:root{color-scheme:dark;--bg:#0d1413;--panel:#151e1b;--line:#2a3630;--muted:#95a39a;--text:#edf2e7;--lime:#c3fb72;--orange:#ff9a60;--red:#ff687d;--mint:#67eac3;font-family:Arial,Helvetica,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,canvas:focus-visible,input:focus-visible{outline:2px solid var(--orange);outline-offset:5px}button{transition:background .16s,transform .16s,border-color .16s}button:active:not(:disabled){transform:translateY(2px)}button:hover:not(:disabled){filter:brightness(1.12)}[hidden]{display:none!important}.app{max-width:1440px;margin:auto;padding:0 54px}.topbar{height:98px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:15px}.brand{text-decoration:none;color:var(--text);display:flex;align-items:center;font-weight:900;font-size:25px;letter-spacing:-1px}.brand>span:not(.brand-mark):not(.edition){color:var(--lime)}.brand-mark{display:grid;place-items:center;color:var(--bg);background:var(--lime);font-size:34px;width:37px;height:39px;margin-right:12px;clip-path:polygon(18% 0,100% 0,100% 82%,82% 100%,0 100%,0 18%)}.brand .edition{font:10px monospace;letter-spacing:1.5px;color:var(--muted);margin-left:25px;border-left:1px solid var(--line);padding-left:25px}.top-actions{display:flex;gap:12px;align-items:center}.wallet{display:flex;align-items:center;gap:10px;font-size:18px}.wallet>span,.wallet{color:var(--lime)}.wallet strong{font-size:22px;color:var(--text);font-variant-numeric:tabular-nums}.wallet small{font:10px monospace;letter-spacing:1px;color:var(--muted);margin-right:14px}.icon-button{display:grid;place-items:center;width:40px;height:40px;background:transparent;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:19px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:35px 0 27px}.eyebrow{font:11px/1.5 monospace;letter-spacing:1.6px;color:var(--muted);margin:0 0 10px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:8px;box-shadow:0 0 12px #c3fb7266}h1{font-size:clamp(24px,2.65vw,38px);letter-spacing:-1.5px;margin:0;font-weight:750}h1 em{font-style:normal;color:var(--lime)}.run-number{font:11px monospace;color:var(--muted);letter-spacing:1px}.run-number strong{font-size:25px;color:var(--text);margin-left:8px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px}.game-shell{min-width:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#101917}.arena-top{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid var(--line)}.sector{display:flex;align-items:center;gap:12px}.cross{font:30px monospace;color:var(--lime)}.sector strong{font:12px monospace;letter-spacing:1.6px}.sector small{display:block;font:10px monospace;color:var(--muted);margin-top:7px;letter-spacing:1px}.live-tag{font:10px monospace;color:var(--lime);border:1px solid #c3fb7240;background:#c3fb7208;border-radius:4px;padding:7px 10px;letter-spacing:1px}.arena{height:530px;position:relative;overflow:hidden;background:radial-gradient(ellipse at center,#1b3228 0,#0e1815 66%)}canvas{width:100%;height:100%;display:block;touch-action:none}.arena-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at center,#112019d9 0,transparent 80%);padding:30px;pointer-events:none}.arena-overlay button{pointer-events:auto}.rift-symbol{font-size:40px;color:var(--lime);border:1px solid #c3fb7240;border-radius:13px;width:52px;height:56px;display:grid;place-items:center;transform:rotate(-7deg);margin-bottom:24px;box-shadow:0 0 44px #c3fb7215}.arena-overlay .eyebrow{color:#a3b797;font-size:10px;letter-spacing:1.8px}.arena-overlay h2{font-size:clamp(45px,5.6vw,80px);line-height:.95;letter-spacing:-4px;font-weight:950;margin:10px 0 14px}.arena-overlay h2 span{color:var(--lime)}.intro{color:#a7b4a8;font-size:14px;margin:4px 0 28px}.primary{background:var(--lime);color:#15220d;border:0;border-radius:7px;padding:18px 24px;font-weight:850;font-size:12px;letter-spacing:1px;min-height:48px;box-shadow:0 4px 0 #7eaa43,0 8px 30px #c3fb7212;display:flex;gap:28px;align-items:center;justify-content:space-between}.primary span{font-size:19px}.start-duration{font:9px monospace;letter-spacing:.8px;color:var(--muted);margin-top:20px}.arena-bottom{position:absolute;bottom:24px;left:0;right:0;display:flex;gap:24px;justify-content:center;font:10px monospace;letter-spacing:1px;color:var(--lime);pointer-events:none}.danger{color:var(--red)!important}.clock-label{color:#8ed8ff}.arena-corner{position:absolute;width:17px;height:17px;border-color:#708d684d;border-style:solid;pointer-events:none}.corner-tl{top:14px;left:14px;border-width:1px 0 0 1px}.corner-tr{top:14px;right:14px;border-width:1px 1px 0 0}.corner-bl{bottom:14px;left:14px;border-width:0 0 1px 1px}.corner-br{bottom:14px;right:14px;border-width:0 1px 1px 0}.controls-bar{display:flex;justify-content:space-between;gap:10px;padding:17px 20px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}kbd{font:9px monospace;border:1px solid #3a483e;border-radius:3px;padding:3px 5px;margin-right:4px;color:#b7c5b7}.sidebar{display:flex;flex-direction:column;gap:18px}.loadout{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:24px}.panel-heading{display:flex;justify-content:space-between}.tiny-label{font:10px monospace;color:var(--muted)}.loadout h2{font-size:25px;line-height:1.15;letter-spacing:-.8px;margin:5px 0 24px}.stat-row{display:flex;align-items:center;gap:12px;margin-top:18px}.stat-icon{width:36px;height:36px;background:#c3fb7208;border:1px solid #c3fb7220;display:grid;place-items:center;border-radius:8px;color:var(--lime);font-size:20px}.stat-row div>span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.stat-row strong{font-size:21px}.stat-row strong small{font-size:12px;font-weight:400;color:var(--muted)}.stat-tail{font:8px monospace;writing-mode:vertical-rl;margin-left:auto;color:#657361;letter-spacing:1.3px}.secondary{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid #52683d;border-radius:6px;background:#c3fb7209;color:var(--lime);font-size:12px;font-weight:700;letter-spacing:1px;padding:15px 18px;min-height:48px}.loadout .secondary{margin-top:25px}.panel-note{font-size:10px;color:var(--muted);text-align:center;line-height:1.6;margin:12px 0 0}.howto{padding:7px 6px}.howto .eyebrow{font-size:10px}.howto ol{padding:0;list-style:none;margin:16px 0 0}.howto li{display:flex;gap:14px;margin-top:18px}.howto li>span{font:10px monospace;color:var(--orange);padding-top:3px}.howto strong{font-size:12px}.howto p{font-size:11px;line-height:1.5;color:var(--muted);margin:5px 0 0}.best-line{display:flex;justify-content:space-between;margin-top:auto;border-top:1px solid var(--line);padding-top:15px;font:10px monospace;color:var(--muted)}.best-line strong{color:var(--orange);font-size:14px}footer{display:flex;justify-content:space-between;margin:26px 0;font:9px monospace;letter-spacing:1px;color:#7e9081}.save-dot{color:var(--lime);font-size:8px;margin-left:6px}.hud{position:absolute;top:24px;left:28px;right:24px;display:flex;align-items:start;gap:20px;pointer-events:none}.hud>div>span{display:block;font:10px monospace;letter-spacing:1px;color:var(--muted)}.hud strong{display:block;font-size:33px;font-variant-numeric:tabular-nums;margin-top:5px}.hud strong small{font-size:16px;color:var(--muted)}.hud-earned{margin-left:auto;text-align:right}.hud-earned strong{color:var(--lime);font-size:27px}.hud .icon-button{pointer-events:auto;background:#0d1413aa}.time-track{height:3px;background:#c3fb7215;position:absolute;top:0;left:0;right:0}.time-track>div{height:100%;background:var(--lime);width:100%;transition:width .1s linear}.combo-display{position:absolute;bottom:26px;left:28px;pointer-events:none}.combo-display>strong{font-size:44px;font-style:italic;letter-spacing:-2px;color:var(--lime)}.combo-display>span{display:block;font:10px monospace;letter-spacing:1px;color:var(--muted);margin:4px 0 9px}.combo-display>div{width:100px;height:3px;background:#fff2}.combo-display i{display:block;background:var(--lime);height:100%;width:0}.results{background:#101b16f0}.results h2{font-size:56px;margin-bottom:18px}.result-amount{font-size:54px;color:var(--lime);font-weight:800;letter-spacing:-2px}.results>p:not(.eyebrow){font-size:13px;color:var(--muted);margin:10px 0 20px}.result-stats{display:flex;justify-content:center;gap:28px;margin:4px 0 28px}.result-stats span{display:block;font:9px monospace;color:var(--muted);margin-bottom:7px;letter-spacing:.5px}.result-stats b{font-size:21px}.text-button{background:none;border:0;color:var(--muted);padding:16px 8px;font-size:12px;min-height:44px}#paused{background:#101b16ec}#paused h2{font-size:48px;margin-bottom:30px}dialog{color:var(--text);background:#111b16;border:1px solid #45573c;border-radius:16px;padding:28px;max-width:1080px;width:calc(100% - 40px);max-height:90dvh;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#050b09ce;backdrop-filter:blur(7px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-top h2{font-size:34px;letter-spacing:-1.5px;margin:0}.dialog-top h2 span{color:var(--lime)}.tree-summary{display:flex;justify-content:space-between;align-items:center;margin:20px 0 28px;color:var(--muted);font-size:13px;gap:14px}.tree-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.branch{--branch:var(--lime)}.branch:nth-child(2){--branch:var(--orange)}.branch:nth-child(3){--branch:var(--mint)}.branch-title{font:12px monospace;letter-spacing:1px;color:var(--branch);display:flex;justify-content:space-between;margin-bottom:15px}.branch-title small{color:var(--muted);font-size:10px}.skill{position:relative;background:#18231c;border:1px solid #364731;border-radius:9px;padding:16px;margin-top:20px}.skill:not(:nth-child(2)):before{content:'';position:absolute;top:-21px;left:50%;height:20px;border-left:1px solid #52634a}.skill.locked{background:#141d18;border-color:#27352b}.skill.locked .skill-name,.skill.locked .skill-icon{color:#92a18c}.skill.maxed{border-color:var(--branch)}.skill-title{display:flex;gap:10px;align-items:center}.skill-icon{font-size:24px;color:var(--branch);width:30px;text-align:center}.skill-name{font-size:14px;font-weight:bold;flex:1}.skill-level{font:10px monospace;color:var(--muted)}.skill p{font-size:12px;color:var(--muted);line-height:1.5;margin:10px 0;min-height:36px}.skill-effect{font:11px monospace;color:var(--branch);margin-bottom:12px}.skill button{width:100%;border:1px solid #526347;background:#c3fb7208;color:var(--branch);border-radius:5px;padding:11px 9px;font:11px monospace;min-height:42px}.skill button.affordable{background:var(--branch);color:#142011;border-color:var(--branch);font-weight:bold}.skill button:disabled{color:#9aa791;border-color:#344031;background:transparent}.tree-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px}.tree-bottom>span{font-size:12px;color:var(--muted)}#settings-dialog{max-width:500px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--line);font-size:15px}.setting-row input{width:22px;height:22px;accent-color:var(--lime)}.settings-help{font-size:14px;line-height:1.8;color:var(--muted)}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:14px 22px;background:var(--lime);color:#15220d;border-radius:7px;font-weight:bold;font-size:13px;z-index:10;transition:.2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.low-time #timer{color:var(--red)}.low-time #time-fill{background:var(--red)}.playing .howto{opacity:.55}.playing #open-tree{opacity:.5}.reduced-motion *{animation:none!important;transition:none!important}@media(min-width:1500px){.arena{height:590px}}@media(max-width:1050px){.app{padding:0 28px}.layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.loadout{padding:20px}.controls-bar{padding:17px 12px;font-size:9px}.brand .edition{display:none}.arena-overlay h2{font-size:65px}}@media(max-width:780px){.app{padding:0 18px}.topbar{height:76px}.brand{font-size:21px}.brand-mark{width:30px;height:33px;font-size:28px;margin-right:8px}.wallet small{display:none}.wallet strong{font-size:19px}.top-actions{gap:8px}.icon-button{width:36px;height:36px}.section-head{margin:23px 0 21px}h1{font-size:27px;letter-spacing:-1px}.section-head .eyebrow{font-size:9px}.run-number{font-size:9px}.run-number strong{font-size:20px}.layout{grid-template-columns:1fr}.arena{height:min(570px,68dvh);min-height:430px}.arena-overlay h2{font-size:72px}.arena-top{height:59px;padding:0 17px}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px}.loadout{grid-row:span 2}.howto{padding-top:15px}.loadout h2{font-size:23px}.best-line{align-self:end;margin-bottom:20px}.stat-tail{display:none}.controls-bar{font-size:10px;padding:15px}.tree-grid{gap:12px}.skill{padding:12px}.skill-name{font-size:12px}.skill-icon{font-size:20px;width:22px}.tree-bottom{align-items:start}.tree-bottom .primary{font-size:10px;padding:14px}.tree-summary{font-size:12px}.tree-summary .wallet{white-space:nowrap}footer{font-size:8px;gap:20px;line-height:1.8}}@media(max-width:520px){.app{padding:0 12px}.brand{font-size:18px}.top-actions{gap:6px}.wallet{gap:5px}.topbar .icon-button{width:33px;height:36px}.section-head{margin:21px 0 18px}h1{font-size:23px}.run-number{display:none}.arena{height: min(520px,65dvh);min-height:400px}.arena-overlay{padding:20px}.arena-overlay h2{font-size:65px}.rift-symbol{margin-bottom:17px;font-size:30px;width:43px;height:45px}.arena-overlay .eyebrow{font-size:8px}.start-duration{font-size:8px;letter-spacing:.3px}.intro{font-size:12px;margin-bottom:22px}.arena-bottom{font-size:9px;gap:18px;bottom:20px}.controls-bar{justify-content:center}.controls-bar>span:not(:first-child){display:none}.sidebar{gap:13px;grid-template-columns:1fr 1fr}.loadout{padding:17px 13px}.loadout h2{font-size:20px}.loadout .eyebrow{font-size:9px;letter-spacing:1px}.stat-row{gap:9px}.stat-icon{width:30px;height:32px}.stat-row div>span{font-size:10px}.loadout .secondary{padding:13px 9px;font-size:10px;letter-spacing:.5px}.panel-note{font-size:9px}.howto li{gap:8px}.howto strong{font-size:11px}.howto p{font-size:10px}.howto li>span{font-size:9px}.best-line{font-size:8px}.best-line strong{font-size:12px}footer{flex-direction:column;gap:5px;margin:20px 0}.hud{left:20px;right:18px;top:20px}.hud strong{font-size:28px}.hud-earned strong{font-size:24px}.results h2{font-size:45px}.result-amount{font-size:46px}.result-stats{gap:20px;margin-bottom:20px}.result-stats span{font-size:8px}.results>p:not(.eyebrow){font-size:11px}dialog{width:calc(100% - 20px);padding:20px 16px;max-height:94dvh}.dialog-top h2{font-size:28px}.dialog-top .eyebrow{font-size:9px}.tree-summary{align-items:start;font-size:11px}.tree-summary>span:first-child{max-width:155px}.tree-grid{grid-template-columns:1fr;gap:28px}.branch{display:grid;grid-template-columns:1fr 1fr;gap:12px}.branch-title{grid-column:span 2;margin:0}.skill{margin:0;padding:13px 10px}.skill:not(:nth-child(2)):before{display:none}.skill p{font-size:11px;min-height:49px}.skill-name{font-size:12px}.skill-title{gap:5px}.skill-effect{font-size:10px}.skill button{font-size:10px}.tree-bottom{position:sticky;bottom:-20px;background:#111b16;padding:16px 0 4px;flex-direction:column;gap:12px}.tree-bottom .primary{width:100%;font-size:11px}.tree-bottom>span{font-size:11px}.toast{max-width:90vw;width:max-content;font-size:12px}.playing .section-head{display:none}.playing .layout{margin-top:12px}.playing .arena{height:calc(100dvh - 210px);min-height:350px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:780px) and (max-height:700px){.arena-overlay .rift-symbol{display:none}.arena-overlay h2{font-size:49px;letter-spacing:-2px}.arena-overlay .intro{margin-bottom:16px}.arena-overlay .start-duration{margin-top:15px}.arena-overlay.results h2{font-size:39px}.results .result-amount{font-size:38px}.results .result-stats{margin-bottom:16px}.results>p:not(.eyebrow){margin:8px 0 14px}}
