:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#f1f9ff;background:#040b17;font-synthesis:none;font-weight:500;--cyan:#5cf4de;--soft:#a2c4d6;--panel:#0b2336;--border:#286076;--gold:#ffc979}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0}body{overflow:hidden}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #ffcb70;outline-offset:3px}#app{display:flex;align-items:center;justify-content:center;min-height:100dvh;background:radial-gradient(ellipse at 50% 30%,#153148 0,#05111f 60%,#030916)}.shell{width:min(100vw,520px);height:100dvh;max-height:1000px;min-height:360px;position:relative;overflow:hidden;background:linear-gradient(165deg,#09192c,#050d1d 65%);isolation:isolate;box-shadow:0 0 0 1px #154255,0 22px 80px #000c}.shell:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 25%,#123d54aa,transparent 48%),repeating-linear-gradient(90deg,#63fff505 0 1px,transparent 1px 55px);pointer-events:none}#backdrop{position:absolute;inset:0;width:100%;height:100%;opacity:.64;touch-action:none}.screen{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;pointer-events:none}.screen>*{pointer-events:auto}.top{padding:calc(env(safe-area-inset-top,0px) + 20px) 22px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-size:13px;letter-spacing:.2em;color:var(--cyan);font-weight:900}.eyebrow{font-size:11px;letter-spacing:.2em;color:var(--cyan);font-weight:850}.back{padding:10px 16px;border:1px solid var(--border);background:#103449;color:#eaf8ff;border-radius:13px;min-width:72px;min-height:44px;font-weight:850;font-size:13px}.scroll{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;padding:24px 22px 15px;flex:1}.home-scroll{display:flex;flex-direction:column;justify-content:flex-end;gap:0;padding-top:36px}.home-hero{text-align:center;margin:0 auto auto;max-width:410px;padding-top:clamp(4px,5vh,58px)}.home-hero h1{font-size:clamp(38px,11vw,58px);line-height:.97;letter-spacing:-.065em;margin:15px 0 12px;font-weight:950;text-shadow:0 0 45px #33f4d025}.home-hero p{color:#bbdae9;font-size:clamp(13px,3.65vw,17px);line-height:1.5;margin:0 auto;max-width:330px}.hero-badge{display:inline-flex;background:#0d3e46;color:#84ffe7;font-weight:900;border:1px solid #287f78;padding:7px 13px;border-radius:99px;font-size:11px;letter-spacing:.08em}.hero-art{height:clamp(78px,15vh,155px);position:relative;margin:12px auto;max-width:335px;display:flex;align-items:center;justify-content:center}.hero-art:before{content:"";width:170px;height:110px;border:2px solid #2c879a77;border-radius:50%;transform:perspective(150px) rotateX(62deg);box-shadow:0 0 50px #36f9e22a}.craft{position:absolute;width:61px;height:104px;background:linear-gradient(90deg,#072f48 0 19%,#1ef0e4 20% 30%,#061327 33% 67%,#1ef0e4 70% 80%,#07364e 81%);clip-path:polygon(50% 0,83% 24%,97% 83%,74% 100%,26% 100%,3% 83%,17% 24%);box-shadow:0 0 40px #43fff5;filter:drop-shadow(0 0 15px #31dbd6);transform:rotate(-9deg)}.craft:after{content:"";position:absolute;left:18px;top:38px;width:26px;height:36px;background:#adfff6;border-radius:12px 12px 5px 5px;box-shadow:0 0 18px #fff}.home-panel{background:linear-gradient(180deg,#0b283cdd,#081b2de8);border:1px solid #256079;padding:18px;border-radius:20px;margin:3px 0 12px;box-shadow:0 18px 60px #0007}.panel-label{color:#b8d9e9;font-size:12px;font-weight:700}.panel-title{font-size:18px;font-weight:900;margin:5px 0 12px}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;gap:12px}.row>*{flex:1;min-width:0}.btn{border:1px solid #407b8e;background:#163c53;color:#edfbff;font-size:14px;font-weight:850;border-radius:14px;min-height:48px;padding:11px 13px;line-height:1.25;text-align:center;transition:transform .12s ease,background .12s ease}.btn:active{transform:scale(.985)}.btn.primary{background:linear-gradient(115deg,#65e6c0,#40c8d8);color:#062036;border-color:#8df6e5}.btn.warn{background:#64324a;border-color:#bd6d84}.btn.dark{background:#0b273a}.btn[disabled]{opacity:.42;cursor:not-allowed}.foot{padding:8px 22px calc(14px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#061425ee 30%);color:#88b8c8;font-size:11px;text-align:center}.screen-title{font-size:30px;letter-spacing:-.05em;font-weight:950;margin:4px 0 5px}.subtitle{font-size:13px;color:var(--soft);line-height:1.5;margin:0 0 20px}.small-grid{display:grid;gap:12px}.card{background:linear-gradient(160deg,#10334a,#0b2338);border:1px solid #2a5a70;border-radius:17px;padding:17px;margin-bottom:12px}.card .card-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.card strong{font-size:16px}.card p{font-size:13px;line-height:1.5;color:#b0cbd9;margin:0 0 14px}.tag{display:inline-flex;align-items:center;justify-content:center;min-height:29px;font-size:11px;border:1px solid #427285;border-radius:99px;padding:5px 10px;color:#b4dded;font-weight:800}.tag.gold{color:var(--gold);border-color:#a97942}.statband{display:flex;gap:9px;margin:9px 0 18px}.statbox{flex:1;background:#0c283b;border:1px solid #285267;padding:12px 7px;border-radius:12px;text-align:center;min-width:0}.statbox b{display:block;color:#edfaff;font-size:21px}.statbox span{font-size:10px;color:#9ebfce}.badge-list .card{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:center;margin-bottom:10px}.badge-icon{width:34px;height:34px;border-radius:9px;border:1px solid #315c70;display:grid;place-items:center;color:#6debd9}.muted{opacity:.62}.modal-back{position:absolute;inset:0;z-index:12;background:#020917d9;display:flex;align-items:center;justify-content:center;padding:18px}.modal{width:100%;max-width:440px;background:#0e2b3e;border:1px solid #43bcd1;border-radius:23px;padding:24px;box-shadow:0 12px 70px #000a}.modal h2{text-align:center;font-size:24px;margin:0 0 14px}.modal p{text-align:center;color:#b7d4e1;font-size:14px;line-height:1.6;margin:0 0 26px}.hud{z-index:5;pointer-events:none}.hud button{pointer-events:auto}.hud .top{padding-top:calc(env(safe-area-inset-top,0px) + 12px)}.hud-rows{padding:13px 18px;background:linear-gradient(#061321ef,#0b2039a6 86%,transparent)}.hud-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}.hud-row b{font-size:14px;font-weight:900}.hud-row .em{color:var(--cyan)}.hud-row .gold{color:var(--gold)}.bar{background:#14364c;border-radius:99px;height:6px;overflow:hidden;border:1px solid #255569}.bar div{height:100%;width:0;background:linear-gradient(90deg,#1ec3c6,#70ffe0);transition:width .1s linear}.play-foot{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);left:16px;right:16px;display:flex;flex-direction:column;align-items:center;gap:6px;text-shadow:0 2px 4px #000;pointer-events:none}.play-foot p{background:#061827b8;border-radius:50px;padding:8px 13px;color:#bce1e7;font-size:12px;font-weight:750;margin:0}.toast{position:absolute;top:25%;left:18px;right:18px;text-align:center;font-size:25px;font-weight:950;color:#fbd074;text-shadow:0 0 28px #fcbf69;pointer-events:none}.rotate{position:absolute;inset:0;z-index:30;background:#071729;display:flex;align-items:center;justify-content:center;text-align:center;padding:28px;font-size:22px;font-weight:900;line-height:1.45}.rotate[hidden]{display:none!important}.footer-actions{padding:12px 22px calc(15px + env(safe-area-inset-bottom,0px));background:#071828ed}.bottom-note{font-size:12px;line-height:1.45;color:#94bbcc;text-align:center;margin:8px 0 0}.result-stars{font-size:38px;color:#ffc979;letter-spacing:.13em;text-align:center}.result-score{font-size:clamp(42px,11vw,62px);font-weight:950;text-align:center;letter-spacing:-.05em;color:#77ffda}.chiprow{display:flex;flex-wrap:wrap;gap:6px}.chip{border:1px solid #3c7487;border-radius:8px;padding:5px 7px;color:#add3dd;font-size:11px}.screen-scroll-last{padding-bottom:16px}@media(max-height:700px){.top{padding-top:calc(env(safe-area-inset-top,0px) + 10px)}.home-scroll{padding-top:12px}.home-hero{padding-top:0}.home-hero h1{margin:10px 0}.home-hero p{font-size:13px}.hero-art{height:85px;margin:4px auto}.craft{transform:scale(.76) rotate(-9deg)}.home-panel{padding:12px 14px}.home-panel .panel-title{margin:3px 0 8px}.btn{min-height:44px;padding:9px}.stack,.row{gap:9px}.scroll{padding-top:16px}.card{padding:14px}.screen-title{font-size:25px}.subtitle{margin-bottom:13px}}@media(max-height:570px){.hero-art{height:45px}.craft{transform:scale(.52)}.home-hero p{display:none}.hero-badge{padding:4px 8px}.home-hero h1{font-size:32px}.home-panel{padding:10px}.home-panel .stack{gap:7px}.home-panel .btn{min-height:43px}.home-scroll{justify-content:flex-start}.foot{padding:5px}}@media(orientation:landscape)and (max-height:500px){.shell>.rotate{display:flex!important}.shell:has(.rotate:not([hidden])) .screen,.shell:has(.rotate:not([hidden])) #backdrop{visibility:hidden}}.card .btn{width:100%;min-width:0}.toast{top:29%}.modal .btn{min-height:48px}.modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;width:100%}.modal-actions>.btn{width:100%;min-width:0;min-height:52px;margin:0;white-space:normal;overflow-wrap:break-word}.modal-actions>.modal-restart{grid-column:1/-1;background:#122c40;border-color:#49758a;color:#dff1fa;margin-top:4px}@media(max-width:360px){.modal--pause .modal-actions{grid-template-columns:minmax(0,1fr)}.modal--pause .modal-actions>.modal-restart{grid-column:1}}@media(max-height:580px){.modal{padding:18px;border-radius:19px}.modal h2{font-size:22px;margin-bottom:10px}.modal p{margin-bottom:16px}.modal-actions{gap:10px}.modal-actions>.btn{min-height:48px}}
