@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/fonts/font-0.woff) format('truetype');
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./assets/fonts/font-1.woff) format('truetype');
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/font-2.woff) format('truetype');
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/font-3.woff) format('truetype');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/fonts/font-4.woff) format('truetype');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./assets/fonts/font-5.woff) format('truetype');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/font-6.woff) format('truetype');
}
:root{font-family:'Golos Text',sans-serif;color:#e4e0d2;background:#181c1c;font-synthesis:none;font-weight:400;color-scheme:dark;--amber:#dbb271;--muted:#999f96;--hud-width:680px}
*{box-sizing:border-box}
html,body,#app{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
button:disabled{cursor:default}
button:focus-visible{outline:2px solid #f1cb87;outline-offset:5px}
button,span{-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
.icon{width:21px;height:21px;flex:none;vertical-align:middle}
.game{position:relative;isolation:isolate;width:100%;height:100%;height:100dvh;overflow:hidden;background:#252b2b}
.scene,.scene-shade,.grain{position:absolute;inset:0;pointer-events:none}
.scene{z-index:-4;background:#333b39 url('./assets/courtyard.webp') center 53%/cover no-repeat;filter:saturate(.7);transform:scale(1.025)}
.scene-shade{z-index:-3;background:linear-gradient(180deg,#0d1213b3 0%,#0d121314 27%,#1117161a 47%,#0b1011b0 74%,#0b1011fa 100%),radial-gradient(ellipse at 50% 47%,transparent 25%,#080c0d80 100%)}
.grain{z-index:20;opacity:.045;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23ffffff' filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.game::after{content:'';position:absolute;inset:0;z-index:19;pointer-events:none;box-shadow:inset 0 0 120px 30px #0609093d}
.game-header{position:absolute;z-index:12;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:max(24px,env(safe-area-inset-top)) clamp(20px,4vw,56px);gap:15px}
.location{display:flex;align-items:center;gap:12px;text-shadow:0 2px 12px #0008}
.location-mark{font-family:monospace;font-size:37px;color:#bab59d;line-height:1}
.location>div{display:flex;flex-direction:column;gap:5px}
.location strong{font-size:14px;letter-spacing:3px;font-weight:700}
.location div>span{font-size:9px;letter-spacing:2.5px;color:#a9ada1}
.battle-tools{display:flex;align-items:center;gap:16px}
.battle-tools time{font-size:12px;letter-spacing:2px;color:#c0c3b6;font-variant-numeric:tabular-nums;margin-right:6px}
.icon-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #c4c7b12b;background:#111a1955;border-radius:2px;color:#c7cbbd}
.icon-button:hover:enabled{border-color:#c4b798;background:#262e29cc}
.icon-button:disabled{opacity:.3}
.combatants{position:absolute;z-index:2;top:15%;bottom:335px;left:50%;transform:translateX(-50%);width:min(980px,88%);display:grid;grid-template-columns:repeat(var(--enemy-count),minmax(0,1fr));gap:clamp(12px,4vw,65px);align-items:stretch}
.enemy{container-type:size;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-height:0;min-width:0;border:0;padding:0;background:none;text-align:left;outline-offset:4px}
.enemy:focus-visible{outline:0}
.character-figure{position:relative;display:block;width:min(100cqw,calc((100cqh - 80px)/2));height:auto;aspect-ratio:1/2;min-height:0;flex:none}
.character-art{position:absolute;inset:0;display:block;height:100%;width:100%;margin:auto;background-image:url('./assets/enemies.webp');background-size:300% 100%;background-repeat:no-repeat;filter:drop-shadow(0 8px 6px #070c0977);transform-origin:50% 90%;animation:idle-breathe 5s ease-in-out infinite;transition:filter .2s,opacity .5s}
.character-0{background-position:0 50%}
.character-1{background-position:50% 50%;animation-delay:-1.7s}
.character-2{background-position:100% 50%;animation-delay:-3.2s}
.ground-shadow{position:absolute;bottom:1%;left:15%;right:15%;height:6%;background:#050a08aa;filter:blur(9px);border-radius:50%}
.character-figure::before{content:'';position:absolute;z-index:4;inset:8% 2% 1%;opacity:0;transition:opacity .2s;background:linear-gradient(var(--amber),var(--amber)) top left/17px 2px no-repeat,linear-gradient(var(--amber),var(--amber)) top left/2px 17px no-repeat,linear-gradient(var(--amber),var(--amber)) top right/17px 2px no-repeat,linear-gradient(var(--amber),var(--amber)) top right/2px 17px no-repeat,linear-gradient(var(--amber),var(--amber)) bottom left/17px 2px no-repeat,linear-gradient(var(--amber),var(--amber)) bottom left/2px 17px no-repeat,linear-gradient(var(--amber),var(--amber)) bottom right/17px 2px no-repeat,linear-gradient(var(--amber),var(--amber)) bottom right/2px 17px no-repeat}
.target-reticle{position:absolute;z-index:5;top:46%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;opacity:0;color:#f4d798;transition:opacity .2s}
.target-reticle .icon{width:38px;height:38px;filter:drop-shadow(0 2px 5px #000)}
.enemy.targetable .character-art{filter:drop-shadow(0 0 7px #e6b56d77) drop-shadow(0 0 2px #d7b577)}
.enemy.targetable .character-figure::before{opacity:.7}
.enemy.targetable .target-reticle{opacity:.65}
.game[data-expected-step="target"] .enemy.targetable .character-figure::before{opacity:1;animation:target-cue 1.8s ease-in-out infinite}
.game[data-expected-step="target"] .enemy.targetable .enemy-info{border-color:#e5bd73;box-shadow:0 0 18px #e3b36b2b}
.enemy.targetable:hover .character-art,.enemy.targetable:focus-visible .character-art{filter:drop-shadow(0 0 9px #f1bd74dd) brightness(1.12)}
.enemy.targetable:hover .character-figure::before,.enemy.targetable:focus-visible .character-figure::before,.enemy.targetable:hover .target-reticle,.enemy.targetable:focus-visible .target-reticle{opacity:1}
.enemy.selected-target .character-art{filter:drop-shadow(0 0 10px #f1bd74dd) brightness(1.1)}
.enemy.selected-target .character-figure::before,.enemy.selected-target .target-reticle{opacity:1}
.target-selected .enemy.targetable:not(.selected-target) .character-art{filter:drop-shadow(0 8px 6px #070c0977)}
.target-selected .enemy.targetable:not(.selected-target) .character-figure::before,.target-selected .enemy.targetable:not(.selected-target) .target-reticle{opacity:.25}
.enemy-info{display:flex;flex-direction:column;gap:7px;width:200px;max-width:100%;flex-shrink:0;padding:10px 10px 9px;margin-bottom:16px;position:relative;text-shadow:0 2px 6px #000;background:#101817dd;border:1px solid #bd777438;border-radius:3px;box-shadow:0 4px 16px #0004}
.enemy-name-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.enemy-name-row strong{font-size:16px;letter-spacing:.3px;font-weight:600}
.enemy-hp-label{font-size:11px;white-space:nowrap;color:#f1b3a8;font-variant-numeric:tabular-nums}
.meter{display:block;overflow:hidden;background:#adb69a22;height:4px;border-radius:1px}
.meter>span{display:block;height:100%;width:100%;transition:width .25s ease}
.enemy-health{height:7px;background:#e27d712b}
.enemy-health>span{background:linear-gradient(90deg,#ad4d49,#ed9681);box-shadow:0 0 8px #e27d7144}
.enemy-turn-row{display:flex;align-items:center;gap:6px;font-size:8px;letter-spacing:.5px;color:#d2b684;line-height:12px}
.enemy-atb{height:4px;flex:1;background:#d7c5a22b}
.enemy-atb>span{width:0;background:#c2a574;transition:width .05s linear}
.enemy-atb-label{min-width:29px;text-align:right;letter-spacing:0;font-variant-numeric:tabular-nums}
.enemy-effects{height:16px;display:flex;gap:4px;justify-content:center;position:absolute;top:100%;left:0;right:0;margin-top:2px}
.effect-tag{font-size:9px;white-space:nowrap;color:#cebd8b;letter-spacing:.2px}
.effect-dot{color:#dca371}.effect-hot{color:#9fba89}
.enemy.dead .character-art{opacity:.2;filter:grayscale(1);animation:fall .6s ease-out both}
.enemy.dead .enemy-info{opacity:.4}
.enemy.dead .ground-shadow{opacity:.3}
.enemy-floats{position:absolute;z-index:10;inset:0;pointer-events:none}
.float-number{position:absolute;top:46%;left:50%;color:#f68977;line-height:1;font-size:clamp(28px,4vw,50px);font-weight:700;font-variant-numeric:tabular-nums;text-shadow:0 2px 0 #4a201c,0 3px 12px #000;animation:float-number 1.2s ease-out both;white-space:nowrap}
.heal-number{color:#a6d58a;text-shadow:0 2px 0 #23371b,0 3px 12px #000}
.miss-number{font-size:clamp(16px,2.5vw,28px);letter-spacing:1px;color:#ded9ca;text-shadow:0 2px 0 #34342e,0 3px 12px #000}
.player-hud{position:absolute;z-index:8;bottom:0;left:50%;transform:translateX(-50%);width:min(var(--hud-width),calc(100% - 40px));padding:0 0 max(24px,env(safe-area-inset-bottom));}
.player-vitals{position:relative;margin:0 3px;padding:10px 14px;background:linear-gradient(120deg,#172c24f5,#101c1df5);border:1px solid #8ec39870;border-left:3px solid #9cdb9f;border-radius:3px;box-shadow:0 4px 24px #0007,inset 0 0 22px #91c79b08}
.health-row{position:relative;display:flex;gap:11px;align-items:center;height:33px}
.health-row>.icon{width:19px;height:19px;color:#b1e7ac;stroke-width:2}
.player-name{font-size:11px;font-weight:600;letter-spacing:.6px;color:#c7ecc6;white-space:nowrap}
.player-health{flex:1;height:14px;background:#a5dfae22;box-shadow:0 1px 3px #0008}
.player-health>span{background:linear-gradient(90deg,#4d9e70,#b4e792);box-shadow:0 0 12px #8dda8466}
.hp-value{font-size:20px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#e5f6df}
.hp-value b{font-weight:700}.hp-value>span{font-size:12px;color:#b2c6ac}
.turn-row{display:flex;align-items:center;gap:11px;height:26px}
.turn-label{font-size:9px;color:#e0c28e;letter-spacing:.7px;width:75px}
.player-atb{height:9px;flex:1;background:#e7b86b26}
.player-atb>span{width:0;background:linear-gradient(90deg,#bc8a42,#f5ce86);transition:width .05s linear}
#player-ready{font-size:10px;letter-spacing:.6px;color:#d9c9a6;text-align:right;width:90px;font-variant-numeric:tabular-nums}
.turn-ready #player-ready{color:#e1bd7c}
.turn-ready .player-atb>span{box-shadow:0 0 8px #ecbc6d99}
.player-effects{position:absolute;left:0;bottom:100%;display:flex;gap:10px;margin-bottom:8px;pointer-events:none}
.player-floats{position:absolute;inset:0;z-index:3;pointer-events:none}
.player-floats .float-number{font-size:28px;left:78%;top:0;padding:6px 9px;border:1px solid #e9948166;border-radius:3px;background:#301a16ed;box-shadow:0 3px 16px #0008}
.player-floats .heal-number{background:#172d1ced;border-color:#a6d58a66}
.player-floats .miss-number{font-size:18px}
.action-prompt{height:52px;display:flex;align-items:center;gap:10px;margin:4px 3px;padding:6px 10px;border:1px solid #b5b7a72b;border-left:3px solid #8d9483;border-radius:2px;background:#101817f0;font-size:12px;letter-spacing:.2px;color:#c3c9ba;text-align:left}
.prompt-step{display:grid;place-items:center;flex:none;width:29px;height:29px;border:1px solid #b7b99b66;border-radius:50%;font-size:17px;font-weight:700;line-height:1;color:#d5d9ca;background:#242c25}
.prompt-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
#prompt-text{font-size:13px;line-height:1.15;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
#prompt-detail{font-size:10px;line-height:1.25;letter-spacing:0;color:#adb49f}
.action-prompt[data-step="target"],.action-prompt[data-step="item"]{border-color:#d8b16d80;border-left-color:#f2cb83;box-shadow:0 0 18px #e7b96618}
.action-prompt[data-step="target"] .prompt-step,.action-prompt[data-step="item"] .prompt-step{background:#d5b073;color:#24251c;border-color:#f1d39c;box-shadow:0 0 13px #e0b46d55}
.action-prompt[data-step="target"] #prompt-text,.action-prompt[data-step="item"] #prompt-text{color:#ffe1a4}
.turn-ready .action-prompt{color:#d8c19b}
.cancel-button{display:grid;place-items:center;border:0;background:none;color:#aeac98;min-width:30px;min-height:32px;padding:4px}
.cancel-button .icon{width:16px;height:16px}
.items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 3px}
.item-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:12px 8px 10px;min-width:0;height:152px;border:1px solid #a5a99142;border-bottom:2px solid #93977b55;border-radius:2px;background:linear-gradient(145deg,#3b4033e8,#222923f5);box-shadow:0 3px 8px #0003,inset 0 0 18px #0002;transition:border-color .2s,background .2s,box-shadow .2s}
.item-slot::after{content:'';position:absolute;inset:3px;pointer-events:none;border:1px solid #b9bd9e0b}
.item-slot:disabled{filter:grayscale(1);background:linear-gradient(145deg,#171717fa,#090909fc);border:1px dashed #74747488;border-bottom:2px dashed #555;color:#929292;box-shadow:inset 0 0 24px #000b;cursor:not-allowed}
.item-slot:disabled::after{background:repeating-linear-gradient(135deg,transparent 0 6px,#ffffff0c 6px 7px);border-color:#ffffff09}
.item-slot:disabled .item-art{opacity:.16;filter:brightness(.55)}
.item-slot:disabled strong{color:#999}
.item-slot:disabled .item-detail,.item-slot:disabled .item-count,.item-slot:disabled .slot-key{color:#717171}
.item-disabled-badge{display:none;position:absolute;z-index:1;top:32%;left:50%;transform:translate(-50%,-50%);place-items:center;width:34px;height:34px;border:1px solid #777;border-radius:4px;background:#1d1d1df5;box-shadow:0 3px 12px #000b;color:#b5b5b5}
.item-disabled-badge .icon{width:20px;height:20px}
.item-slot:disabled .item-disabled-badge{display:grid}
.item-state{display:flex;align-items:center;justify-content:center;gap:4px;align-self:stretch;flex-shrink:0;margin-top:7px;padding-top:6px;border-top:1px solid #85857533;color:#c7b48a;font-size:9px;line-height:12px;white-space:nowrap}
.item-state .icon{width:11px;height:11px}
.item-slot:disabled .item-state{color:#b1b1b1;border-color:#ffffff24;background:#ffffff06}
.item-slot:disabled .state-ready,.item-slot:enabled .state-lock{display:none}
.slot-key{position:absolute;top:10px;left:10px;color:#959d88;font-size:9px;font-family:monospace}
.item-count{position:absolute;right:10px;top:8px;font-size:12px;line-height:1.2;color:#bfc4ac;font-variant-numeric:tabular-nums}
.item-art{display:grid;place-items:center;flex:1;width:100%;min-height:0;padding-bottom:7px;filter:drop-shadow(0 5px 3px #0008)}
.item-art .icon{width:49px;height:53px;color:#c0c4b2;transform:rotate(-12deg)}
.item-slot:first-child .item-art .icon{transform:rotate(17deg);height:58px}
.item-slot:nth-child(4) .item-art .icon{transform:rotate(-6deg);width:51px}
.item-slot strong{font-size:13px;line-height:1.25;font-weight:500;color:#d1d3c0;white-space:nowrap}
.item-detail{font-size:9px;color:#989f8c;margin-top:5px;white-space:nowrap}
.item-slot.available{border-color:#d8b16d99;border-bottom-color:#d9b271;box-shadow:0 0 16px #d7b47714,inset 0 0 26px #bd995311;background:linear-gradient(145deg,#514b35f0,#2b2d22f5)}
.item-slot.available::after{border-color:#d6ad6322}
.item-slot.available .item-art{filter:drop-shadow(0 0 8px #d3b26d33)}
.game[data-expected-step="item"] .item-slot.available{animation:item-cue 1.8s ease-in-out infinite}
.item-slot.available:hover{border-color:#eccb8f;background:linear-gradient(145deg,#615337f5,#383323f5);box-shadow:0 0 20px #d5b07133,inset 0 0 24px #d5b07111}
.item-slot:focus-visible{outline-offset:-4px}
.item-slot.empty:disabled .item-art{opacity:.1}
.encounter-menu,.pause-menu,.result-menu{position:absolute;z-index:10;left:50%;top:40%;transform:translate(-50%,-50%);width:min(480px,calc(100% - 40px));display:flex;align-items:center;flex-direction:column;text-align:center;padding:30px 20px;}
.encounter-menu::before,.pause-menu::before,.result-menu::before{content:'';position:absolute;z-index:-1;inset:-70px -100px;background:radial-gradient(ellipse,#101716f5 0%,#101716c9 37%,#10171600 72%);pointer-events:none}
.menu-eyebrow{font-size:9px;letter-spacing:3px;color:#b0ac92;font-weight:500;margin-bottom:13px}
.encounter-menu h1,.pause-menu h2,.result-menu h2{font-size:clamp(32px,4vw,48px);font-weight:700;line-height:1.15;letter-spacing:-1.8px;text-transform:uppercase;margin:0 0 28px;text-shadow:0 3px 20px #0006}
.encounter-menu h1 span{display:block;color:#c8c5ad}
.mode-select{display:flex;gap:8px;margin-bottom:15px;width:100%;max-width:306px}
.mode-button{flex:1;height:46px;background:#202924db;border:1px solid #b7ba9c44;border-radius:2px;font-size:15px;font-weight:500;letter-spacing:1px;color:#a4aa99}
.mode-button span{font-size:11px;color:#828d7c;margin:0 3px;letter-spacing:0;font-weight:400}
.mode-button.selected{background:#4a4530e8;border-color:#c9aa6e;color:#ebd6a5;box-shadow:inset 0 0 15px #a2803415}
.mode-button:hover{border-color:#dfbc7c}
.mode-button.selected span{color:#c1ad82}
.start-button{display:inline-flex;align-items:center;justify-content:center;gap:48px;min-width:200px;min-height:46px;padding:12px 23px;border:1px solid #d3ba82;border-bottom:3px solid #8e7449;border-radius:2px;background:linear-gradient(120deg,#d6bb82,#b79a62);color:#24271e;font-size:13px;font-weight:600;box-shadow:0 3px 15px #0003;}
.start-button:hover{background:linear-gradient(120deg,#e4cb93,#cab078)}
.start-button .icon{width:17px;height:17px}
.is-idle .combatants{opacity:.56;filter:brightness(.8)}
.is-idle .player-hud{opacity:.52}
.is-idle .scene-shade{background:linear-gradient(180deg,#0d1213b3,#0d121325 25%,#0b10117a 55%,#0b1011fa 100%)}
.is-paused .combatants,.is-over .combatants{filter:brightness(.45);pointer-events:none}
.is-paused .character-art{animation-play-state:paused}
.pause-menu,.result-menu{z-index:13;top:43%}
.pause-menu h2,.result-menu h2{margin-bottom:28px;font-size:54px}
.result-menu>p{font-size:11px;color:#aeb39f;margin:-12px 0 28px}
.result-menu>p span{margin:0 10px}
.character-art.attacking{animation:attack .5s ease-out}
.character-art.hit{animation:hit .4s ease-out}
.character-figure.impact::after{content:'';position:absolute;z-index:6;top:42%;left:50%;width:65px;height:65px;transform:translate(-50%,-50%);background:radial-gradient(ellipse,#ffe1a8aa,transparent 65%);animation:impact .4s ease-out both;pointer-events:none}
.player-vitals.hit{animation:hud-hit .9s ease-out;border-color:#ff9b87;box-shadow:0 0 28px #ea665155,inset 0 0 28px #c94e352b}
.player-vitals.hit .player-health{outline:2px solid #ffb2a0;outline-offset:3px;background:#e34b3c55}
.player-vitals.hit .player-health>span{background:linear-gradient(90deg,#db5149,#ffc4a4);box-shadow:0 0 16px #ff826dcc}
.player-vitals.hit .hp-value,.player-vitals.hit .health-row>.icon,.player-vitals.hit .player-name{color:#ffc1b2}
.player-vitals.healed{animation:healed .65s ease-out}
.player-hit::after{animation:screen-hit .45s ease-out}
.status-flash{animation:status-flash .5s ease-out}
@keyframes idle-breathe{0%,100%{transform:translateY(0) rotate(-.25deg)}50%{transform:translateY(-3px) rotate(.25deg)}}
@keyframes float-number{0%{opacity:0;transform:translate(calc(-50% + var(--float-shift)),0) scale(.65)}12%{opacity:1;transform:translate(calc(-50% + var(--float-shift)),-12px) scale(1.12)}35%{opacity:1;transform:translate(calc(-50% + var(--float-shift)),-26px) scale(1)}100%{opacity:0;transform:translate(calc(-50% + var(--float-shift)),-85px) scale(.92)}}
@keyframes attack{0%,100%{transform:scale(1)}35%{transform:scale(1.07) translateY(4px);filter:brightness(1.2)}}
@keyframes hit{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px);filter:sepia(.3) brightness(1.8)}45%{transform:translateX(5px)}70%{transform:translateX(-2px)}}
@keyframes fall{from{transform:translateY(0) rotate(0);opacity:.8}to{transform:translateY(15px) rotate(7deg);opacity:.16}}
@keyframes impact{0%{opacity:1;scale:.3}100%{opacity:0;scale:1.5}}
@keyframes hud-hit{0%,25%{background:#512b24;transform:translateX(3px)}15%,40%{transform:translateX(-3px)}65%,100%{transform:translateX(0)}}
@keyframes screen-hit{25%{box-shadow:inset 0 0 100px 35px #9f302555}}
@keyframes healed{25%{filter:brightness(1.7);box-shadow:0 0 20px #91b46d22}}
@keyframes status-flash{40%{filter:brightness(2)}}
@keyframes target-cue{0%,100%{filter:drop-shadow(0 0 2px #e8bb7366)}50%{filter:drop-shadow(0 0 7px #ffcf86)}}
@keyframes item-cue{0%,100%{box-shadow:0 0 12px #e5b96933,inset 0 0 20px #d8aa5c15}50%{box-shadow:0 0 24px #e5b96970,inset 0 0 24px #d8aa5c2b}}

@media(min-width:1600px){:root{--hud-width:760px}.combatants{width:1100px;top:17%;bottom:350px}.item-slot{height:165px}.item-art .icon{width:55px;height:61px}.item-slot strong{font-size:14px}.player-hud{padding-bottom:32px}.enemy-info{width:220px}}
@media(max-width:700px){
  .game-header{padding:max(19px,env(safe-area-inset-top)) 18px;gap:10px}.location{gap:8px}.location-mark{font-size:29px}.location strong{font-size:11px;letter-spacing:2px}.location div>span{font-size:7px;letter-spacing:1.8px}.location>div{gap:4px}
  .battle-tools{gap:8px}.battle-tools time{font-size:10px;letter-spacing:1px;margin-right:4px}.icon-button{height:34px;width:34px}.icon-button .icon{width:16px;height:16px}
  .scene{background-position:45% 50%}.combatants{top:20%;bottom:315px;width:calc(100% - 28px);gap:8px}.enemy-info{padding:8px 6px;gap:5px;width:165px;margin-bottom:14px}.enemy-name-row{gap:2px}.enemy-name-row strong{font-size:13px;letter-spacing:0}.enemy-hp-label{font-size:8px}.enemy-health{height:6px}.enemy-atb{height:4px}.enemy-effects{margin-top:6px}.effect-tag{font-size:8px}
  .character-figure::before{inset:5% 0 1%;background-size:11px 1px,1px 11px,11px 1px,1px 11px,11px 1px,1px 11px,11px 1px,1px 11px}.target-reticle .icon{width:28px;height:28px}
  .player-hud{width:calc(100% - 28px);padding-bottom:max(20px,env(safe-area-inset-bottom))}.items{gap:7px}.item-state{font-size:7px;gap:3px;line-height:10px;padding-top:4px;margin-top:5px}.item-state .icon{width:9px;height:9px}.item-slot{height:132px;padding:10px 4px 12px}.slot-key{display:none}.item-count{top:8px;right:8px;font-size:10px}.item-art{padding-bottom:6px}.item-art .icon{width:40px;height:45px}.item-slot:first-child .item-art .icon{height:49px}.item-slot:nth-child(4) .item-art .icon{width:42px}.item-slot strong{font-size:11px}.item-detail{font-size:8px;margin-top:5px}.action-prompt{font-size:10px;height:52px;padding:6px 8px}.prompt-step{width:26px;height:26px;font-size:16px}#prompt-text{font-size:12px}#prompt-detail{font-size:9px}
  .health-row{gap:7px;height:30px}.health-row>.icon{width:16px;height:16px}.player-name{font-size:9px}.hp-value{font-size:17px}.hp-value>span{font-size:10px}.turn-row{gap:8px;height:24px}.turn-label{font-size:8px;width:62px}.player-vitals{margin:0 3px;padding:8px 10px}.player-health{height:11px}.player-atb{height:8px}#player-ready{font-size:9px;width:75px}
  .encounter-menu{top:38%;padding:25px 10px}.encounter-menu h1{font-size:36px}.mode-select{max-width:280px}.mode-button{height:44px;font-size:14px}.menu-eyebrow{font-size:8px;letter-spacing:2px}.start-button{min-height:45px;font-size:12px}.pause-menu h2,.result-menu h2{font-size:43px}.pause-menu,.result-menu{top:38%}
}
@media(max-width:360px){
  .game-header{padding:14px}.battle-tools{gap:6px}.location strong{font-size:10px}.location div>span{font-size:6px}.battle-tools time{font-size:9px}.location-mark{font-size:25px}.icon-button{width:31px;height:31px}.combatants{width:calc(100% - 20px);gap:5px;top:17%;bottom:285px}.enemy-name-row strong{font-size:11px}.enemy-hp-label{font-size:7px}.enemy-info{gap:4px;padding:7px 5px}.enemy-effects .effect-tag{font-size:7px}.player-hud{width:calc(100% - 22px);padding-bottom:max(14px,env(safe-area-inset-bottom))}.items{gap:5px}.item-state{font-size:6px;gap:2px}.item-state .icon{width:8px;height:8px}.item-slot{height:121px;padding-bottom:10px}.item-slot strong{font-size:10px}.item-detail{font-size:7px}.item-art .icon{height:39px;width:35px}.item-slot:first-child .item-art .icon{height:43px}.item-slot:nth-child(4) .item-art .icon{width:37px}.item-count{right:6px;top:6px;font-size:9px}.action-prompt{font-size:9px;height:48px;gap:7px;padding:5px 7px}#prompt-text{font-size:11px}#prompt-detail{font-size:8px}.prompt-step{width:24px;height:24px;font-size:14px}.item-disabled-badge{width:28px;height:28px}.item-disabled-badge .icon{width:17px;height:17px}.encounter-menu h1{font-size:31px;margin-bottom:22px}.mode-select{max-width:260px}.encounter-menu{top:37%}
}
@media(max-height:650px) and (min-width:701px){.game-header{padding:15px 26px}.combatants{top:13%;bottom:275px;width:min(780px,80%)}.player-hud{padding-bottom:14px;--hud-width:560px}.item-slot{height:120px;padding:8px 5px 10px}.item-art .icon{height:38px;width:37px}.item-slot:first-child .item-art .icon{height:43px}.item-slot:nth-child(4) .item-art .icon{width:39px}.item-slot strong{font-size:11px}.item-detail{font-size:8px}.item-count{font-size:10px}.action-prompt{height:43px;font-size:10px}.health-row{height:23px}.turn-row{height:17px}.enemy-info{padding:7px 8px}.encounter-menu{top:37%;padding:15px}.encounter-menu h1{font-size:32px;margin-bottom:20px}.menu-eyebrow{margin-bottom:9px}.mode-button{height:39px}.mode-select{margin-bottom:12px}.start-button{min-height:40px;padding:9px 20px}.pause-menu,.result-menu{top:37%}}
@media(max-height:540px) and (max-width:700px){.game-header{padding:12px 15px}.combatants{top:14%;bottom:250px}.player-hud{padding-bottom:max(12px,env(safe-area-inset-bottom))}.item-slot{height:108px;padding:7px 3px 9px}.item-art .icon{height:33px;width:31px}.item-slot:first-child .item-art .icon{height:36px}.item-slot:nth-child(4) .item-art .icon{width:32px}.item-slot strong{font-size:10px}.item-detail{font-size:7px;margin-top:3px}.action-prompt{height:42px;font-size:9px}.health-row{height:23px}.turn-row{height:16px}.encounter-menu{top:34%}.encounter-menu h1{font-size:27px;margin-bottom:17px}.menu-eyebrow{margin-bottom:7px}.mode-button{height:36px}.mode-select{margin-bottom:11px}.start-button{min-height:37px;padding:8px 20px}.enemy-info{padding:6px}}
@media(orientation:landscape) and (max-height:500px){
  .game-header{padding:10px 18px}.location-mark{font-size:25px}.location strong{font-size:10px}.location div>span{font-size:6px}.location>div{gap:3px}.battle-tools{gap:8px}.battle-tools time{font-size:10px}.icon-button{width:30px;height:30px}.icon-button .icon{width:16px;height:16px}
  .combatants{top:16%;bottom:130px;width:min(610px,70%);gap:30px}.enemy-info{width:150px;gap:4px;padding:6px 8px;margin-bottom:10px}.enemy-name-row strong{font-size:11px}.enemy-hp-label{font-size:8px}.enemy-health{height:5px}.enemy-atb{height:3px}.enemy-effects{margin-top:4px}.effect-tag{font-size:7px}.target-reticle .icon{width:22px;height:22px}
  .player-hud{--hud-width:520px;display:grid;grid-template-columns:210px minmax(0,1fr);column-gap:18px;align-items:end;padding-bottom:max(12px,env(safe-area-inset-bottom));width:min(650px,calc(100% - 40px))}.player-vitals{grid-column:1;grid-row:1;align-self:center;margin:0;padding:8px}.health-row{gap:5px;height:26px}.player-name{font-size:8px}.hp-value{font-size:15px}.hp-value>span{font-size:9px}.health-row>.icon{height:13px;width:13px}.player-health{height:9px}.turn-row{gap:5px;height:22px}.turn-label{font-size:7px;width:51px}#player-ready{font-size:8px;width:46px}.player-atb{height:6px}.player-floats .float-number{font-size:21px;left:65%}.enemy-turn-row{font-size:7px;gap:4px}.action-prompt{grid-column:1;grid-row:2;font-size:9px;height:42px;line-height:1.4;margin:4px 0 0;padding:4px 5px;gap:6px}.prompt-step{width:21px;height:21px;font-size:13px}#prompt-text{font-size:10px;letter-spacing:.3px}#prompt-detail{font-size:8px}.item-disabled-badge{width:26px;height:26px}.item-disabled-badge .icon{width:16px;height:16px}.item-panel{grid-column:2;grid-row:1/3}.items{gap:7px}.item-state{font-size:7px;gap:3px;line-height:10px;padding-top:4px;margin-top:5px}.item-state .icon{width:9px;height:9px}.item-slot{height:110px;padding:7px 4px 8px}.item-art .icon{height:35px;width:33px}.item-slot:first-child .item-art .icon{height:38px}.item-slot:nth-child(4) .item-art .icon{width:35px}.item-slot strong{font-size:10px}.item-detail{font-size:7px;margin-top:3px}.item-count{font-size:9px;top:6px;right:6px}.slot-key{display:none}
  .encounter-menu{top:36%;padding:10px;width:340px}.menu-eyebrow{font-size:7px;margin-bottom:7px}.encounter-menu h1{font-size:27px;letter-spacing:-1px;margin-bottom:15px}.encounter-menu h1 span{display:inline}.mode-select{max-width:250px;margin-bottom:10px}.mode-button{height:34px;font-size:13px}.start-button{min-width:170px;min-height:36px;padding:7px 18px;font-size:11px}.pause-menu,.result-menu{top:37%;padding:15px}.pause-menu h2,.result-menu h2{font-size:34px;margin-bottom:18px}.result-menu>p{margin:-8px 0 18px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.float-number{animation:float-number 1.2s linear both!important}.scene{transform:none}}
