:root{--ink:#182232;--panel:#2b3040;--rim:#b89a75;--cream:#e9d5b1;--muted:#c2b5ad;--gold:#dbb879;--sage:#92b39c;--danger:#bb736b;--violet:#aa8cb7;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#121a27;color:var(--cream);font-family:Trebuchet MS,system-ui,sans-serif}button{font:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible{outline:3px solid #cde0cc;outline-offset:3px}#app{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 18%,#303b4e,#131925 75%)}#game-shell{width:min(100%,1180px);min-height:min(100dvh,780px);display:flex;flex-direction:column;background:linear-gradient(#202c3c,#101824);border-inline:1px solid #59606a;position:relative}#topbar{height:70px;display:flex;align-items:center;gap:12px;padding:10px clamp(12px,2vw,26px);border-bottom:1px solid #726d70;background:#1c2532}.brand{display:flex;gap:10px;align-items:center;font-family:Georgia,serif;font-weight:900;letter-spacing:.11em;font-size:23px;color:#e1c39a;text-shadow:0 2px #382f36}.brand small{display:block;font:10px Trebuchet MS,sans-serif;letter-spacing:.3em;color:#b7a5a0}.rune{color:#e3bc81;font-size:26px}.hud-currencies{margin-left:auto;display:flex;gap:10px}.hud-currencies span{border:1px solid #675e61;background:#303447;padding:7px 10px;border-radius:8px;white-space:nowrap}.hud-currencies span:first-child{color:#e8c68b}.hud-currencies span:last-child{color:#c5a3d0}.icon-button{background:#2b3040;border:1px solid #826f6a;color:var(--cream);border-radius:8px;padding:8px 12px}#view{flex:1;display:flex;min-height:570px;position:relative;overflow:hidden}#footer{display:flex;justify-content:space-around;align-items:center;border-top:1px solid #6e6565;background:#1d2938;min-height:59px}#footer button{background:none;border:0;color:#c8bdaf;padding:12px 6px;font-size:12px;font-weight:900;letter-spacing:.1em}#footer button:hover{color:#f5d9a3}.screen{width:100%;padding:25px;position:relative;min-height:550px}.screen.with-bg{background-size:cover;background-position:center}.screen.with-bg:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#141b29bb,#1c253455 60%,#161b25a8)}.screen>*{position:relative}.screen h1,.screen h2,.screen h3{font-family:Georgia,serif;letter-spacing:.04em;margin:0 0 14px}.eyebrow{text-transform:uppercase;letter-spacing:.23em;color:#dcc29b;font-size:12px;font-weight:700}.panel{background:linear-gradient(135deg,#292e40ef,#252b3bed);border:2px solid #9e856e;box-shadow:inset 0 0 0 3px #3c3c4b,0 10px 35px #101723aa;border-radius:13px;padding:22px;max-width:680px}.button{color:#241f2d;background:linear-gradient(#e5c994,#bd9864);border:2px solid #f0d5a3;border-radius:7px;box-shadow:0 3px #6e5949;padding:13px 22px;font-size:15px;font-weight:900;letter-spacing:.04em}.button.secondary{background:#3b4354;color:#e6d5bb;border-color:#958573;box-shadow:0 3px #222633}.button.reward{background:linear-gradient(#b5d7af,#84b8a5);border-color:#d2e0ba}.button:hover{filter:brightness(1.08)}.button-row{display:flex;gap:10px;flex-wrap:wrap}.hero-splash{width:245px;max-width:40%;object-fit:contain;filter:drop-shadow(0 12px 10px #151924aa)}.home-center{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:450px}.home-title{font-size:clamp(37px,5vw,70px)!important;line-height:.96;color:#ebd2ab;text-shadow:3px 4px 0 #473c47}.home-title span{font-size:.4em;display:block;margin-top:10px;letter-spacing:.09em}.home-actions{display:flex;flex-direction:column;align-items:start;gap:10px;margin:22px 0}.home-actions .button{min-width:190px}.helper{max-width:440px;color:#dfd2bf;line-height:1.65}.world-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.world-card{position:relative;border:2px solid #9b896d;border-radius:12px;min-height:165px;background-size:cover;background-position:center;overflow:hidden;padding:16px;display:flex;flex-direction:column;justify-content:end;gap:3px;color:#fff;text-align:left}.world-card:before{content:"";background:linear-gradient(transparent,#172032ec);position:absolute;top:0;right:0;bottom:0;left:0}.world-card>*{position:relative}.world-card strong{font-family:Georgia,serif;font-size:20px}.world-card.locked{filter:grayscale(.9);opacity:.65}.stage-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin:20px 0}.stage-tile{height:58px;background:#31394c;border:2px solid #817669;border-radius:9px;color:#dfcfbb;font-weight:700}.stage-tile.available{border-color:#e2b979;background:#55505a}.stage-tile.cleared{color:#9dc0a1;border-color:#71937e}.stage-tile.boss{color:#e5a19d}.stage-tile:disabled{opacity:.3}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.small{font-size:13px;color:#c6b9a8}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.upgrade-card{min-height:200px;border:2px solid #a18d7e;border-radius:13px;background:linear-gradient(#38394e,#272c3d);color:var(--cream);padding:16px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:9px;transition:transform .14s}.upgrade-card:hover{transform:translateY(-5px);border-color:#e0be88}.upgrade-card .sigil{font-size:52px;color:#e3b586}.upgrade-card strong{font:20px Georgia,serif}.upgrades-panel{width:min(800px,100%);margin:auto}.reward-wrap{margin:auto;text-align:center;max-width:580px}.reward-hero{height:190px;object-fit:contain}.reward-numbers{font-size:26px;margin:22px}.reward-numbers span{padding:8px 14px;background:#232e3f;border-radius:8px;margin:5px}.hero-detail{display:flex;gap:15px;align-items:center}.hero-detail img{height:330px;width:260px;object-fit:contain}.stat-bar{height:13px;border:1px solid #9e8b79;background:#353d4a;border-radius:9px;overflow:hidden}.stat-bar span{display:block;height:100%;background:#8aaf98}.shop-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.shop-tile{text-align:center;background:#292e3f;border:1px solid #8d7968;border-radius:12px;padding:24px}.shop-tile img{height:118px;max-width:100%;object-fit:contain}.settings-grid{display:grid;gap:12px}.setting{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #595461;padding-bottom:13px}.combat-screen{padding:0!important;display:flex!important;align-items:center;flex-direction:column;background:#182533}.combat-header{height:52px;width:100%;display:flex;justify-content:space-between;align-items:center;padding:6px 18px;background:#1b2535e8;border-bottom:1px solid #7a716d;z-index:2}.combat-center{position:relative;flex:1;width:100%;display:grid;place-items:center;min-height:0}.combat-back{position:absolute;top:0;right:0;bottom:0;left:0;background-position:center;background-size:cover;filter:brightness(.82)}.battle-frame{width:min(94%,465px);height:100%;max-height:650px;position:relative;box-shadow:0 0 0 2px #847566,0 0 0 8px #1a2435a4;overflow:hidden;background:#15243666}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.combat-bottom{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:8px;pointer-events:none}.combat-bottom button{pointer-events:auto}.combat-head-actions{display:flex;align-items:center;gap:10px}.hp-label{font-size:13px;color:#ddc3b0}.modal-shroud{position:absolute;top:0;right:0;bottom:0;left:0;background:#0e1425d2;display:grid;place-items:center;padding:20px;z-index:10}.modal-shroud .panel{width:min(470px,100%);text-align:center}.toast{position:absolute;top:62px;left:50%;transform:translate(-50%);background:#222b3cea;border:1px solid #c3a47e;padding:10px 15px;border-radius:8px;z-index:25;pointer-events:none}.hint{position:absolute;bottom:86px;left:50%;transform:translate(-50%);font-size:13px;padding:8px 14px;background:#1c263ad9;border:1px solid #a99c88;border-radius:8px;white-space:nowrap}.settings-help{font-size:12px;color:#b4a79b}@media(max-width:680px){#game-shell{min-height:100dvh}.brand{font-size:17px}.brand small{font-size:8px}.hud-currencies{gap:5px}.hud-currencies span{padding:5px;font-size:11px}.screen{padding:15px}.world-list{grid-template-columns:repeat(2,1fr)}.stage-grid{grid-template-columns:repeat(5,1fr)}.home-center{min-height:445px}.hero-splash{width:175px;max-width:36%}.home-title{font-size:38px!important}.button{font-size:13px;padding:11px 15px}.cards{gap:6px}.upgrade-card{padding:8px;min-height:175px}.upgrade-card strong{font-size:15px}.upgrade-card .sigil{font-size:30px}.upgrade-card .small{font-size:10px}.hero-detail img{width:45%;height:250px}.combat-center{height:calc(100dvh - 184px);flex:none}.battle-frame{width:min(100%,465px)}.panel{padding:15px}.hint{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
