*{box-sizing:border-box;margin:0;padding:0}body{background:#0a0a1a;display:flex;align-items:center;justify-content:center;height:100vh;font-family:monospace;color:#fff;overflow:hidden}.app{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center}.main-menu{text-align:center}.title{font-size:48px;color:#fc0;text-shadow:2px 2px 0 #000;margin-bottom:8px}.subtitle{font-size:14px;color:#888;margin-bottom:40px}.menu-buttons{display:flex;flex-direction:column;gap:12px}.menu-buttons button{padding:14px 48px;font-size:18px;background:#222;border:2px solid #ffcc00;color:#fc0;cursor:pointer;border-radius:4px;transition:all .2s}.menu-buttons button:hover{background:#fc0;color:#000}.game-screen{position:relative;width:416px;height:460px}.game-container{position:absolute;top:44px;left:0;display:flex;align-items:center;justify-content:center}.game-container canvas{display:block;image-rendering:pixelated;image-rendering:crisp-edges;border:2px solid #333}.game-hud-top{position:absolute;top:0;left:0;right:0;height:44px;display:flex;align-items:center;justify-content:center;padding:0 8px}.back-btn{width:36px;height:36px;background:#000000b3;border:1px solid #888;color:#fff;font-size:20px;cursor:pointer;border-radius:4px}.save-btn{height:32px;margin-left:8px;padding:0 12px;border:1px solid rgba(243,200,91,.55);background:#070d18d6;color:var(--gold-bright, #f3c85b);cursor:pointer}.save-notice{margin-left:8px;color:#b9f6ca;font-size:13px;text-shadow:0 1px 2px #000}.death-overlay{position:absolute;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px;background:#02060de0;backdrop-filter:blur(5px)}.death-panel{width:min(340px,100%);padding:26px 24px 22px;border:1px solid rgba(243,200,91,.72);background:linear-gradient(150deg,#111c2b,#070c14 72%);color:#d9e2e5;text-align:center;box-shadow:0 24px 70px #000000a6}.death-panel__eyebrow{margin:0 0 8px;color:#68e1ec;font-size:10px;letter-spacing:.22em}.death-panel h2{margin:0 0 14px;color:#f3c85b;font-size:26px}.death-panel>p:not(.death-panel__eyebrow){margin:0;color:#b8c4cc;font-size:13px;line-height:1.7}.death-panel__actions{display:flex;justify-content:center;gap:10px;margin-top:22px}.death-panel__actions button{min-height:38px;padding:0 16px;border:1px solid #65717b;background:#101925;color:#d9e2e5;cursor:pointer}.death-panel__actions .death-panel__restart{border-color:#f3c85b;background:#5b4212;color:#fff2c7}.modal-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#1a1a1a;border:2px solid #ffcc00;border-radius:8px;padding:32px;min-width:320px}.modal h2{margin-bottom:24px;color:#fc0}.setting-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.setting-row input[type=range]{width:160px}.setting-row--disabled{color:#8d969e}.setting-value{color:#f3c85b;font-size:12px}.settings-hint{margin:18px 0 0;color:#8d969e;font-size:12px;line-height:1.6}.close-btn{margin-top:16px;padding:10px 24px;background:#fc0;border:none;color:#000;font-weight:700;cursor:pointer;border-radius:4px}.dev-tools-toggle{position:fixed;top:8px;right:8px;background:#000c;border:1px solid #555;color:#aaa;font-size:18px;width:40px;height:40px;cursor:pointer;border-radius:4px;z-index:500}.demo-panel{position:fixed;bottom:8px;right:8px;background:#000000e6;border:1px solid #444;border-radius:4px;padding:8px 12px;font-size:12px;color:#aaa;z-index:500;display:flex;gap:8px;align-items:center}.demo-panel h3{font-size:11px;color:#666;margin-right:4px}.demo-panel button{padding:2px 8px;font-size:11px;background:#333;border:1px solid #555;color:#ccc;cursor:pointer;border-radius:3px}.mota-ui-layer{position:absolute;inset:0;pointer-events:none;z-index:10}.mota-hp-bar{position:absolute;top:4px;left:8px;right:8px;height:18px;background:#000000bf;border:1px solid #555;border-radius:3px;overflow:hidden}.mota-hp-fill{height:100%;width:100%;background:linear-gradient(180deg,#ff6b6b,#c0392b);transition:width .25s}.mota-hp-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fff;text-shadow:1px 1px 0 #000}.mota-floor-name{position:absolute;top:26px;left:0;right:0;text-align:center;font-size:13px;color:#fc0;text-shadow:1px 1px 0 #000;background:#00000073;padding:2px 0}.mota-msg-box{position:absolute;bottom:8px;left:8px;right:8px;background:#000000d9;border:1px solid #ffcc00;border-radius:4px;padding:6px 10px;font-size:12px;color:#fff;min-height:22px}.mota-status{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:14px;font-size:11px;color:#ddd;background:#0009;padding:3px 0;border-top:1px solid #333}.mota-modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:84%;max-height:60%;overflow-y:auto;background:#000000eb;border:2px solid #ffcc00;border-radius:6px;padding:14px 16px;font-size:13px;color:#fff;line-height:1.7;white-space:pre-wrap;box-shadow:0 0 18px #ffcc0040}.mota-modal__hint{margin-top:10px;color:#ffcc00c7;font-size:10px;letter-spacing:.08em;text-align:right}.mota-battle{position:absolute;inset:0;z-index:850;align-items:center;justify-content:center;overflow:hidden;pointer-events:auto;color:#e8edf2}.mota-battle__veil{position:absolute;inset:0;background:radial-gradient(circle at 50% 48%,rgba(65,87,111,.24),transparent 42%),linear-gradient(145deg,#02050af7,#080f19f0);backdrop-filter:blur(5px)}.mota-battle__veil:after{position:absolute;inset:0;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0,rgba(255,255,255,.018) 1px,transparent 1px,transparent 7px);content:""}.mota-battle__card{position:relative;width:calc(100% - 32px);max-width:440px;padding:24px 22px 18px;border:1px solid rgba(224,184,91,.62);background:linear-gradient(180deg,#111c2afa,#060b12fa);box-shadow:0 28px 80px #000000b8,inset 0 0 45px #4e7c9d14}.mota-battle.is-active .mota-battle__card{animation:battle-card-in 1.35s cubic-bezier(.18,.82,.24,1) both}.mota-battle__kicker{margin-bottom:14px;color:#72e5df;font-size:9px;letter-spacing:.2em;text-align:center}.mota-battle__duel{display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);align-items:center;gap:8px}.mota-battle__fighter{min-width:0;text-align:center}.mota-battle__portrait-frame{position:relative;width:104px;height:112px;margin:0 auto 8px;overflow:hidden;border:1px solid rgba(211,178,98,.52);background:radial-gradient(circle at 50% 75%,rgba(106,184,201,.18),transparent 48%),#060b12;box-shadow:inset 0 0 22px #000000bf}.mota-battle__portrait-frame:before,.mota-battle__portrait-frame:after{position:absolute;z-index:2;width:16px;height:16px;border-color:#e0b85b;content:""}.mota-battle__portrait-frame:before{top:5px;left:5px;border-top:1px solid;border-left:1px solid}.mota-battle__portrait-frame:after{right:5px;bottom:5px;border-right:1px solid;border-bottom:1px solid}.mota-battle__enemy-portrait,.mota-battle__hero-portrait{width:100%;height:100%;background-repeat:no-repeat;image-rendering:pixelated}.mota-battle__enemy-portrait{filter:drop-shadow(0 8px 8px rgba(0,0,0,.8))}.mota-battle__hero-portrait{background-image:url(../content/mota-2014/materials/modern-hero-v3.png);background-position:52% 19%;background-size:170% auto;filter:drop-shadow(0 8px 9px rgba(0,0,0,.75))}.mota-battle__role{display:block;color:#8b9aa7;font-size:9px;letter-spacing:.14em}.mota-battle__fighter strong{display:block;min-height:23px;overflow:hidden;color:#f3d78f;font-family:STKaiti,KaiTi,serif;font-size:16px;line-height:23px;text-overflow:ellipsis;white-space:nowrap}.mota-battle__statline{display:flex;justify-content:center;gap:8px;color:#aeb9c2;font-size:10px}.mota-battle__life{height:6px;margin-top:7px;overflow:hidden;border:1px solid rgba(255,255,255,.16);background:#03070c}.mota-battle__life i{display:block;height:100%;background:linear-gradient(90deg,#bd3037,#f0a24e);box-shadow:0 0 10px #e655448f;animation:battle-life-drain .8s .2s ease-out both}.mota-battle__fighter--hero .mota-battle__life i{background:linear-gradient(90deg,#2496a3,#78e0d7);box-shadow:0 0 10px #4ad2d075}.mota-battle__fighter small{color:#6f7f8c;font-size:9px}.mota-battle__impact{position:relative;display:grid;place-items:center;height:120px}.mota-battle__impact:before{position:absolute;width:3px;height:128px;transform:rotate(28deg);background:linear-gradient(transparent,#f2c85d,#eb4f55,transparent);box-shadow:0 0 18px #eb4f55c2;content:""}.mota-battle.is-active .mota-battle__impact:before{animation:battle-slash .56s .12s ease-out both}.mota-battle__impact span{z-index:1;display:grid;width:50px;height:50px;place-items:center;border:1px solid rgba(243,200,91,.52);border-radius:50%;background:#080d15;color:#f3c85b;font-family:Georgia,serif;font-size:17px;font-style:italic}.mota-battle__impact b{position:absolute;z-index:2;bottom:1px;color:#ff6068;font-size:18px;text-shadow:0 2px 8px #000}.mota-battle.is-active .mota-battle__impact b{animation:battle-damage-pop .66s .28s ease-out both}.mota-battle__result{margin-top:14px;color:#ffe29a;font-family:STKaiti,KaiTi,serif;font-size:24px;letter-spacing:.18em;text-align:center;text-shadow:0 0 18px rgba(243,200,91,.36)}.mota-battle[data-outcome=defeat] .mota-battle__result,.mota-battle[data-outcome=stalemate] .mota-battle__result{color:#ff6d76}@keyframes battle-card-in{0%{opacity:0;transform:scale(.94) translateY(12px)}16%,78%{opacity:1;transform:scale(1) translateY(0)}to{opacity:0;transform:scale(1.015) translateY(-4px)}}@keyframes battle-slash{0%{opacity:0;transform:rotate(28deg) scaleY(.1)}to{opacity:1;transform:rotate(28deg) scaleY(1)}}@keyframes battle-damage-pop{0%{opacity:0;transform:translateY(12px) scale(1.6)}45%,to{opacity:1;transform:translateY(0) scale(1)}}@keyframes battle-life-drain{0%{width:100%}}.mota-hud{position:fixed;top:56px;right:8px;z-index:400;background:#0a0a1aeb;border:1px solid #444;border-radius:6px;padding:10px 14px;font-size:12px;color:#ccc;min-width:170px;line-height:1.7;pointer-events:none}.mota-hud__stats{white-space:pre-line;border-bottom:1px solid #333;padding-bottom:6px;margin-bottom:6px}.mota-hud__keys{color:#ffd75e}.mota-hud__items{color:#9ecbff;font-size:11px}:root{--ink: #080d18;--ink-soft: #101a2b;--panel: rgba(10, 17, 29, .92);--line: rgba(185, 157, 91, .42);--gold: #f3c85b;--gold-bright: #ffe49a;--cyan: #65e3d3;--muted: #8a98a7}body{background:var(--ink);color:#f3f5f7;font-family:Courier New,Microsoft YaHei UI,monospace}button,input{font:inherit}button:focus-visible,input:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}.main-menu{position:relative;isolation:isolate;width:100vw;min-height:100vh;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px 30px;background:#070d18 center / cover no-repeat}.main-menu:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#04091247,#04080fc7),radial-gradient(circle at 50% 42%,rgba(31,67,82,.18),transparent 45%)}.main-menu:after{content:"";position:absolute;inset:14px;z-index:-1;border:1px solid rgba(243,200,91,.18);pointer-events:none}.title-atmosphere{position:absolute;inset:0;z-index:-1;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px);background-size:100% 4px;mix-blend-mode:overlay;pointer-events:none}.title-copy{width:min(100%,680px);text-align:center;animation:title-rise .6s ease both}.title-sigil{display:block;width:92px;height:92px;margin:0 auto 10px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 0 18px rgba(101,227,211,.32))}.title-kicker{margin-bottom:14px;color:var(--cyan);font-size:11px;letter-spacing:.24em;text-shadow:0 0 18px rgba(101,227,211,.45)}.title{margin:0;color:var(--gold-bright);font-size:clamp(48px,8vw,92px);line-height:.95;letter-spacing:.08em;text-shadow:4px 4px 0 #101724,0 0 36px rgba(243,200,91,.28)}.title span{color:var(--gold);font-size:.46em;letter-spacing:.12em;vertical-align:.24em}.subtitle{margin-top:18px;color:#ccd5dc;font-size:13px;letter-spacing:.12em}.menu-card{width:min(100%,360px);margin-top:42px;padding:12px;border:1px solid var(--line);background:#070d18c7;box-shadow:0 18px 60px #00000059,inset 0 0 0 1px #ffffff08;animation:title-rise .7s 90ms ease both}.menu-card__label{padding:2px 6px 10px;color:var(--muted);font-size:10px;letter-spacing:.18em;text-align:left}.menu-buttons{gap:8px}.menu-button{width:100%;min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 18px;border:1px solid rgba(156,171,189,.28);border-radius:0;background:#121d2dd6;color:#e5ebef;cursor:pointer;text-align:left;transition:border-color .16s ease,background .16s ease,transform .16s ease,color .16s ease}.menu-button span{font-size:16px;letter-spacing:.1em}.menu-button small{color:var(--muted);font-size:9px;letter-spacing:.16em}.menu-button:hover{border-color:var(--cyan);background:#153139e0;color:#fff;transform:translate(4px)}.menu-button--primary{border-color:var(--gold);background:#6b4d19a6;color:var(--gold-bright)}.menu-button--primary small{color:var(--gold)}.title-footer{display:flex;align-items:center;gap:12px;margin-top:34px;color:#dae2e794;font-size:9px;letter-spacing:.2em;animation:title-rise .8s .18s ease both}.title-footer i{width:3px;height:3px;background:var(--cyan);box-shadow:0 0 8px var(--cyan)}.game-screen{position:relative;width:min(100vw,480px);height:min(100vh,540px);min-height:520px;display:flex;justify-content:center;align-items:flex-end;padding-top:48px}.game-container{position:relative;top:auto;left:auto;width:480px;height:480px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(243,200,91,.38);background:#05070d;box-shadow:0 20px 70px #0000007a,0 0 0 8px #0509109e}.game-container:before,.game-container:after{content:"";position:absolute;width:18px;height:18px;border-color:var(--gold);pointer-events:none;z-index:20}.game-container:before{top:-5px;left:-5px;border-top:2px solid;border-left:2px solid}.game-container:after{right:-5px;bottom:-5px;border-right:2px solid;border-bottom:2px solid}.game-container canvas{width:480px;height:480px;border:0}.mobile-controls{display:none}.game-hud-top{position:absolute;top:0;left:0;right:0;height:44px;justify-content:flex-start;padding:0}.back-btn{width:38px;height:32px;border:1px solid rgba(243,200,91,.55);border-radius:0;background:#070d18d6;color:var(--gold-bright);font-size:17px}.mota-ui-layer{pointer-events:none}.mota-ui-top-rail{position:absolute;top:0;left:6.6667%;right:6.6667%;height:6.6667%;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(92px,.75fr);align-items:center;gap:10px}.mota-hp-bar{position:relative;top:auto;left:auto;right:auto;width:100%;height:16px;border:1px solid rgba(243,200,91,.55);border-radius:0;background:#03060be0}.mota-hp-fill{background:linear-gradient(90deg,#b33f3c,#ef9c55);box-shadow:0 0 14px #ef9c5580}.mota-hp-text{font-size:9px;letter-spacing:.05em}.mota-floor-name{position:relative;top:auto;left:auto;right:auto;width:auto;height:18px;display:flex;align-items:center;justify-content:center;padding:0 8px;border:1px solid rgba(243,200,91,.34);background:#04080edb;color:var(--gold-bright);font-size:10px;letter-spacing:.1em;white-space:nowrap}.mota-status{bottom:0;left:32px;right:32px;flex-wrap:wrap;gap:4px 12px;justify-content:space-around;padding:6px 0;border-top:1px solid rgba(243,200,91,.36);background:#04080ed1;color:#d8e1e3;font-size:10px;letter-spacing:.08em}.mota-status__skill{color:#ffe49a;text-shadow:0 0 8px rgba(243,200,91,.45)}.mota-msg-box{bottom:34px;left:40px;right:40px;border:1px solid var(--cyan);border-radius:0;background:#050e18e6;box-shadow:0 0 20px #65e3d326}.mota-modal{border:1px solid var(--gold);border-radius:0;background:#050a12f2;box-shadow:0 0 30px #f3c85b33}.mota-hud{top:92px;right:max(18px,calc((100vw - 920px)/2));width:244px;min-width:244px;padding:15px;overflow:hidden;border:1px solid rgba(243,200,91,.5);border-radius:0;background:linear-gradient(145deg,#15202efa,#060b13fa 72%),var(--panel);box-shadow:0 22px 65px #00000085,inset 0 0 40px #578fa40d;color:#d9e2e5;line-height:1.35;max-height:calc(100vh - 116px);overflow-x:hidden;overflow-y:auto;pointer-events:auto}.mota-hud__toggle{display:none}.mota-hud__ornament{position:absolute;top:-22px;right:-18px;width:92px;height:92px;transform:rotate(28deg);border:1px solid rgba(101,227,211,.12);box-shadow:0 0 28px #65e3d30f}.mota-hud__header{position:relative;display:grid;grid-template-columns:70px 1fr;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(243,200,91,.28)}.mota-hud__portrait{width:70px;height:78px;border:1px solid rgba(243,200,91,.52);background:linear-gradient(#02080e0a,#02080e73),url(../content/mota-2014/materials/modern-hero-v3.png) 52% 19% / 170% auto no-repeat;box-shadow:inset 0 0 22px #000000b8,0 8px 20px #00000057;image-rendering:pixelated}.mota-hud__identity{min-width:0}.mota-hud__eyebrow{display:block;margin-bottom:4px;color:var(--cyan);font-size:8px;letter-spacing:.18em}.mota-hud__identity strong{display:block;color:#ffe29a;font-family:STKaiti,KaiTi,serif;font-size:20px;letter-spacing:.08em}.mota-hud__identity small{display:block;margin-top:4px;overflow:hidden;color:#8493a0;font-size:8px;letter-spacing:.06em;text-overflow:ellipsis;white-space:nowrap}.mota-hud__vitality{padding:12px 0 10px}.mota-hud__vitality-label{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:6px;color:#8e9ba6;font-size:9px}.mota-hud__vitality-label b{color:#f2f5f1;font-size:11px;font-weight:500}.mota-hud__hp-track{height:7px;overflow:hidden;border:1px solid rgba(255,255,255,.14);background:#03070c}.mota-hud__hp-fill{display:block;height:100%;background:linear-gradient(90deg,#a82f3c,#e86358 62%,#efae61);box-shadow:0 0 10px #e8635861;transition:width .3s ease-out}.mota-hud__mana-label{margin-top:9px}.mota-hud__mana-track{height:5px;overflow:hidden;border:1px solid rgba(101,227,211,.18);background:#03070c}.mota-hud__mana-fill{display:block;height:100%;background:linear-gradient(90deg,#247e9e,#65e3d3);box-shadow:0 0 10px #65e3d361;transition:width .3s ease-out}.mota-hud__skill-state{display:flex;align-items:center;justify-content:space-between;margin-top:9px;color:#6f7f8c;font-size:8px;letter-spacing:.06em}.mota-hud__skill-state b{color:#83919c;font-weight:500}.mota-hud__skill-state.is-active b{color:var(--gold-bright);text-shadow:0 0 8px rgba(243,200,91,.45)}.mota-hud__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px;padding:0;border:0}.mota-hud__stat{position:relative;display:grid;min-height:48px;place-items:center;gap:0;padding:5px 3px 4px;border:1px solid rgba(139,159,179,.17);background:#0409106b;color:var(--muted);font-size:8px}.mota-hud__stat strong{color:#f3d78f;font-family:Georgia,serif;font-size:15px;font-weight:500}.mota-hud__stat em{color:#52616d;font-size:6px;font-style:normal;letter-spacing:.12em}.mota-hud__keys,.mota-hud__equipment,.mota-hud__items{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:8px 0;border-top:1px solid rgba(156,171,189,.18);color:#b8c3cb;font-size:9px}.mota-hud__section-label{flex-basis:100%;color:var(--cyan);font-size:8px;letter-spacing:.1em}.mota-hud__section-label i{margin-left:5px;color:#53636f;font-size:6px;font-style:normal;letter-spacing:.14em}.mota-hud__key{color:var(--gold-bright);font-size:9px}.mota-hud__equipment-list,.mota-hud__item-list{display:grid;width:100%;gap:6px}.mota-hud__equipment-card{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;padding:7px;border-left:2px solid #c89942;background:linear-gradient(90deg,#7e531c33,#0409104d)}.mota-hud__equipment-card>span{padding:2px 4px;border:1px solid rgba(243,200,91,.35);color:#f3c85b;font-size:7px}.mota-hud__equipment-card b,.mota-hud__equipment-card small{display:block}.mota-hud__equipment-card b{color:#f5e0ae;font-size:10px}.mota-hud__equipment-card small{margin-top:2px;color:#7f8d98;font-size:7px}.mota-hud__item-list{max-height:198px;padding-right:2px;overflow-y:auto;scrollbar-color:rgba(243,200,91,.45) rgba(3,7,12,.7);scrollbar-width:thin}.mota-hud__item{position:relative;display:block;width:100%;box-sizing:border-box;min-height:56px;padding:8px 48px 8px 9px;border:1px solid rgba(139,159,179,.18);border-radius:0;background:linear-gradient(135deg,#15202edb,#050b12e0),repeating-linear-gradient(90deg,transparent 0 7px,rgba(255,255,255,.02) 7px 8px);color:#cbd5da;font:inherit;text-align:left}button.mota-hud__item{cursor:pointer}button.mota-hud__item:hover,button.mota-hud__item:focus-visible{border-color:#f3c85bc7;background:linear-gradient(135deg,#493216e6,#081019f0);outline:none;box-shadow:inset 3px 0 #f3c85b}button.mota-hud__item:active{transform:translateY(1px)}.mota-hud__item-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px}.mota-hud__item-heading b{color:#ffe29a;font-size:10px;letter-spacing:.05em}.mota-hud__item-heading em{color:#71818e;font-size:6px;font-style:normal;white-space:nowrap}.mota-hud__item small{display:block;margin-top:4px;color:#98a6af;font-size:7px;line-height:1.45}.mota-hud__item-action{position:absolute;top:50%;right:8px;padding:3px 5px;transform:translateY(-50%);border:1px solid rgba(101,227,211,.38);color:var(--cyan);font-size:7px;letter-spacing:.08em}.mota-hud__item--passive .mota-hud__item-action{border-color:#8b9fb333;color:#65737e}.mota-hud__item--unavailable .mota-hud__item-action{border-color:#e6a35147;color:#b98755}.mota-hud__empty{padding:7px 0;color:#6f7c86;font-size:8px}.mota-enemy-guide{position:absolute;inset:0;z-index:900;display:grid;place-items:center;padding:22px;background:#02060be0;backdrop-filter:blur(3px);pointer-events:auto}.mota-enemy-guide__card{width:100%;max-height:100%;overflow:hidden;border:1px solid rgba(243,200,91,.7);background:linear-gradient(145deg,#161f2afa,#050a11fc),var(--panel);box-shadow:0 22px 60px #000000a6,inset 0 0 36px #65e3d30a}.mota-enemy-guide__header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 9px;border-bottom:1px solid rgba(243,200,91,.24)}.mota-enemy-guide__header span{color:var(--cyan);font-size:7px;letter-spacing:.2em}.mota-enemy-guide__header h2{margin:2px 0 0;color:#ffe29a;font-family:STKaiti,KaiTi,serif;font-size:18px;letter-spacing:.12em}.mota-enemy-guide__close{width:30px;height:30px;padding:0;border:1px solid rgba(243,200,91,.42);border-radius:0;background:#060c14b8;color:#ffe29a;font-size:18px}.mota-enemy-guide__hint{margin:0;padding:8px 14px;color:#7f8d98;font-size:7px}.mota-enemy-guide__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:320px;padding:0 14px 14px;overflow-y:auto}.mota-enemy-guide__enemy{padding:8px;border:1px solid rgba(101,227,211,.2);background:#050d15c7}.mota-enemy-guide__enemy.is-danger{border-color:#dc4f4f5c}.mota-enemy-guide__portrait-frame{display:grid;min-height:96px;margin:-1px -1px 7px;place-items:center;border-bottom:1px solid rgba(139,159,179,.16);background:radial-gradient(circle at 50% 42%,rgba(101,227,211,.12),transparent 62%),linear-gradient(180deg,#112532b8,#030a115c)}.mota-enemy-guide__portrait{width:88px;height:88px;background-repeat:no-repeat;image-rendering:pixelated;filter:drop-shadow(0 7px 7px rgba(0,0,0,.82))}.mota-enemy-guide__enemy-title{display:flex;align-items:baseline;justify-content:space-between;gap:5px;padding-bottom:5px;border-bottom:1px solid rgba(139,159,179,.14)}.mota-enemy-guide__enemy-title strong{color:#f1ddb0;font-size:9px}.mota-enemy-guide__enemy-title span{color:#6fe0c7;font-size:6px}.mota-enemy-guide__enemy.is-danger .mota-enemy-guide__enemy-title span{color:#ee817a}.mota-enemy-guide__enemy dl{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 8px;margin:7px 0 0}.mota-enemy-guide__enemy dl div{display:flex;justify-content:space-between;gap:4px}.mota-enemy-guide__enemy dt{color:#62717d;font-size:6px}.mota-enemy-guide__enemy dd{margin:0;color:#bfc9ce;font-size:7px}.mota-enemy-guide__empty{grid-column:1 / -1;padding:28px;color:#76848e;font-size:9px;text-align:center}.modal-overlay{background:#03070dd1;backdrop-filter:blur(4px)}.modal{min-width:min(360px,calc(100vw - 40px));border:1px solid var(--gold);border-radius:0;background:#0a1220;box-shadow:0 24px 80px #00000080}.modal__eyebrow{margin-bottom:8px;color:var(--cyan);font-size:10px;letter-spacing:.18em}.modal h2{margin-bottom:28px;color:var(--gold-bright);font-size:24px;letter-spacing:.08em}.setting-row{min-height:36px;margin-bottom:12px;color:#d9e2e5;font-size:13px}.setting-row input[type=range]{accent-color:var(--gold)}.close-btn{width:100%;margin-top:18px;padding:12px 24px;border:1px solid var(--gold);border-radius:0;background:#6b4d19a6;color:var(--gold-bright)}@keyframes title-rise{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 760px){body,.app{width:100%;min-width:0;height:100dvh}body{position:fixed;inset:0;overscroll-behavior:none}.app{position:fixed;inset:0;display:block;overflow:hidden}.main-menu{background-position:58% center}.title-footer{gap:8px;font-size:8px}.mota-hud{display:block;top:calc(env(safe-area-inset-top) + 52px);right:12px;width:52px;min-width:0;max-height:none;padding:0;overflow:visible;border:0;background:transparent;box-shadow:none}.mota-hud__toggle{position:relative;z-index:2;display:grid;width:52px;height:52px;place-items:center;padding:5px;border:1px solid rgba(243,200,91,.72);border-radius:50%;background:#17120de6;box-shadow:0 8px 24px #0000006b;color:#ffe29a}.mota-hud__toggle span{font-size:16px;line-height:1}.mota-hud__toggle b{font-size:8px;letter-spacing:.08em}.mota-hud__body{position:fixed;top:calc(env(safe-area-inset-top) + 46px);right:8px;bottom:calc(env(safe-area-inset-bottom) + 8px);left:8px;display:none;box-sizing:border-box;padding:15px;overflow-y:auto;overflow-x:hidden;border:1px solid rgba(243,200,91,.58);background:linear-gradient(145deg,#15202efc,#060b13fe 72%);box-shadow:0 24px 70px #000000b8}.mota-hud--open .mota-hud__body{display:block}.mota-hud--open .mota-hud__toggle{position:fixed;top:calc(env(safe-area-inset-top) + 54px);right:18px}.mota-hud__item-list{max-height:none}.game-screen{position:fixed;inset:0;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:calc(env(safe-area-inset-top) + 48px) 8px env(safe-area-inset-bottom);overflow-y:auto;overflow-x:hidden}.game-container{position:relative;top:auto;left:auto;width:min(480px,calc(100vw - 16px));height:min(480px,calc(100vw - 16px));transform:none;aspect-ratio:1;flex:0 0 auto;touch-action:none}.game-container canvas{width:100%!important;height:100%!important;max-width:100%;max-height:100%}.game-hud-top{position:fixed;top:env(safe-area-inset-top);left:8px;right:8px;z-index:50}.mobile-controls{position:relative;inset:auto;width:min(480px,calc(100vw - 16px));height:116px;flex:0 0 116px;margin-top:10px;z-index:30;display:block;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}.mobile-dpad{position:absolute;left:8px;bottom:0;display:grid;grid-template-columns:repeat(3,50px);grid-template-rows:repeat(2,50px);gap:6px}.mobile-dpad button,.mobile-action{width:50px;height:50px;padding:0;border:1px solid rgba(255,255,255,.55);border-radius:8px;background:#0c1623b3;color:#ffffffdb;font-size:20px;line-height:1;pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent}.mobile-dpad button:nth-child(1){grid-column:2;grid-row:1}.mobile-dpad button:nth-child(2){grid-column:1;grid-row:2}.mobile-dpad button:nth-child(3){grid-column:2;grid-row:2}.mobile-dpad button:nth-child(4){grid-column:3;grid-row:2}.mobile-action{position:absolute;right:18px;bottom:24px;width:64px;height:64px;border-color:#f3c85bd1;border-radius:50%;background:#674a17ad;color:var(--gold-bright);font-size:18px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:1ms!important;transition-duration:1ms!important}}
