:root{font-family:system-ui,sans-serif;color:#f3ead4;background:#101e27;color-scheme:dark}*{box-sizing:border-box}body{margin:0;height:100dvh;overflow:hidden}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #fff;outline-offset:-3px}#touch-assist{display:none;min-width:44px;min-height:44px;border:1px solid #9ab1a8;border-radius:8px;background:#385d57;color:#fff}#touch-assist[aria-pressed=true]{outline:2px solid #f4cf7b}@media(pointer:coarse){#touch-assist{display:grid}}#touch-choices{position:fixed;inset:auto;margin:0;max-width:none;max-height:none;overflow:hidden;padding:8px}#touch-choices[open]{display:flex;flex-direction:column}#touch-choices::backdrop{background:transparent}#touch-choices>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow-y:auto;flex:1}#touch-choices button{min-width:44px;min-height:44px;overflow-wrap:anywhere}#touch-cancel{flex:none;width:100%}#help-dialog{max-width:min(680px,94vw);max-height:90dvh;overflow:auto}#help-dialog [role=tablist]{display:flex;flex-wrap:wrap;gap:4px}#help-dialog button{min-height:40px;padding:6px 10px}#help-dialog [aria-selected=true]{outline:2px solid #f4cf7b;background:#70582d}#tutorial{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#ffe4a1;background:#3a2f12;border:1px solid #e9ce8d66;border-radius:8px;padding:4px 4px 4px 8px}#tutorial:before{content:"チュートリアル";flex:none;font-size:10px;font-weight:700;background:#e9ce8d;color:#2b1d08;border-radius:4px;padding:1px 5px}#tutorial[hidden]{display:none}#tutorial button{min-height:40px;min-width:70px;background:transparent;border:1px solid #e9ce8d88;color:#ffe4a1;font-size:12px;border-radius:6px}.tutorial-target{outline:3px dashed #ffe4a1;outline-offset:-3px}main{height:100dvh;max-width:900px;margin:auto;display:flex;flex-direction:column;padding:12px;gap:8px}header{display:flex;align-items:center;gap:10px}header div{flex:1}small{font-size:10px;letter-spacing:2px;color:#a4c1bd}h1{font-size:25px;margin:2px 0}header button{width:44px;height:44px;border:1px solid #587780;border-radius:12px;background:#243c48;font-size:24px}.status{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;font-size:14px;color:#c2d9d1}.field{min-height:0;flex:1;display:grid;place-items:center;position:relative;container-type:size;overflow:clip;border-radius:14px;touch-action:none;user-select:none;-webkit-user-select:none;--tilt: .6;--zoom: 1;--board-fit: min((100cqw - 8px) / 1.4142, (100cqh - 55px) / (1.4142 * var(--tilt)));--board: calc(var(--board-fit) * var(--zoom));--tile: calc(var(--board) * 1.4142 / var(--grid-size));--ground: #6a7050;--ground-odd: #626949;--grove: #314b32;--stone: #66594f;--floor-detail: repeating-linear-gradient(165deg, transparent 0 17px, #dfbc7c12 18px, transparent 20px 38px);--haze: #bb93583b;--rim: #a49969;--strata: #564637;--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .38 -.14'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23n)'/%3E%3C/svg%3E");background:radial-gradient(ellipse at 50% 48%,transparent 28%,#080f1bd9 100%),radial-gradient(ellipse 65% 25% at 20% 24%,var(--haze),transparent),radial-gradient(ellipse 45% 30% at 90% 90%,var(--haze),transparent),repeating-linear-gradient(155deg,#cbd8d006 0 1px,transparent 1px 43px),#172128;box-shadow:inset 0 1px #e4e1cb1c,inset 0 -24px 48px #070b154d}.field[data-mission="1"]{--ground: #536c65;--ground-odd: #4b625c;--grove: #304b3c;--stone: #52646a;--floor-detail: repeating-linear-gradient(0deg, transparent 0 8px, #b9e6e51c 9px, transparent 10px 19px);--haze: #78b7c43b;--rim: #82aaa0;--strata: #344e56}.field[data-mission="2"]{--ground: #71685e;--ground-odd: #696056;--grove: #3c4d3b;--stone: #625c59;--floor-detail: repeating-linear-gradient(90deg, transparent 0 48%, #e5cfab22 49% 51%, transparent 52%);--haze: #c8ad7b33;--rim: #b5a58a;--strata: #51473f}.field[data-mission="3"]{--ground: #526a62;--ground-odd: #485e58;--grove: #304c3c;--stone: #4c6961;--floor-detail: radial-gradient(ellipse at 70% 35%, #8eb8a92b 0 14%, transparent 48%);--haze: #a1d4be40;--rim: #7fada0;--strata: #314a45}.field[data-mission="4"]{--ground: #77746a;--ground-odd: #69665e;--grove: #394b3b;--stone: #88847b;--floor-detail: linear-gradient(45deg, transparent 47%, #eee2bd1c 48% 50%, transparent 51%);--haze: #b5accc38;--rim: #b6b0a2;--strata: #504b55}.field[data-mission="5"]{--ground: #554545;--ground-odd: #483a3e;--grove: #38463b;--stone: #302a30;--floor-detail: repeating-linear-gradient(90deg, transparent 0 45%, #d49d7526 46% 48%, transparent 49%);--haze: #d5846933;--rim: #ad7d70;--strata: #452f3b}.cell.healable{background:#4caa72;outline:2px solid #c1ffce}.cell.seize{background:repeating-linear-gradient(45deg,#e4c46a 0 4px,#806c46 4px 8px);box-shadow:inset 0 0 0 4px #ffed9e,inset 0 0 18px #fff4ae}.cell.seize:after{content:"✦";position:absolute;inset:14%;display:grid;place-items:center;border:2px solid #fff2b4;border-radius:50%;color:#fff6c2;animation:target-pulse 1.1s ease-in-out infinite alternate;pointer-events:none}.reduce-motion .cell.seize:after{animation:none}@media(prefers-reduced-motion:reduce){.cell.seize:after{animation:none}}.healing-preview,.healing-effect{color:#9dffad;font-weight:700;text-shadow:0 1px 3px #003915;white-space:nowrap}.healing-effect{width:72px;height:72px;margin:-36px;display:grid;place-items:center;border:2px solid #9dffad;border-radius:50%;background:radial-gradient(circle,#86ff9f88,transparent 70%);animation:damage-rise .6s ease-out both}.stand.boss .tag{top:calc(var(--tile) * -.85 * var(--figure, 1) - 14px)}.crown{color:#ffe47a;font-size:20px;line-height:1;text-shadow:0 1px 3px #27120a,0 0 5px #ff8a36}.field:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.14;background-image:radial-gradient(circle,#ffc07a 0 1.4px,transparent 2.4px),radial-gradient(circle,#ff8a3d 0 1px,transparent 2px),radial-gradient(circle,#ffd9a0 0 .8px,transparent 1.8px);background-size:173px 211px,241px 163px,131px 197px;background-position:13px 40px,90px 10px,50px 120px;animation:embers 16s linear infinite}@keyframes embers{to{background-position:13px -171px,90px -153px,50px -77px}}#board,#marks{position:absolute;left:50%;top:50%;z-index:1;display:grid;grid-template-columns:repeat(var(--grid-size),1fr);grid-template-rows:repeat(var(--grid-size),1fr);width:var(--board);aspect-ratio:1;flex:none;transform:translate(calc(-50% + var(--pan-x, 0px)),calc(-50% + var(--pan-y, 0px))) scaleY(var(--tilt)) rotate(-45deg)}#board{background:#1f2a22;box-shadow:0 0 0 1px var(--rim),-18px 20px 32px #03091480}#marks{z-index:3;pointer-events:none}#marks>span{position:relative}.stage{position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none}#board:before,#board:after{content:"";position:absolute;pointer-events:none}#board:before{right:100%;top:0;width:5%;height:100%;transform-origin:100% 0;transform:skewY(-45deg);background:var(--noise),linear-gradient(90deg,#100f16,var(--strata) 75%,var(--rim) 96%,var(--rim))}#board:after{top:100%;left:0;width:100%;height:5%;transform-origin:0 0;transform:skew(-45deg);background:var(--noise),linear-gradient(0deg,#090c13,var(--strata) 86%,var(--rim) 98%)}.cell{position:relative;min-width:0;min-height:0;padding:0;border:0;overflow:visible;background:var(--floor-detail),var(--noise) calc(var(--x) * -31px) calc(var(--y) * -47px) / 160px,radial-gradient(circle at 16% 64%,#ffb86a5c,#ff9a4a1c 30%,transparent 52%) calc(var(--x) * 100% / (var(--grid-size) - 1)) calc(var(--y) * 100% / (var(--grid-size) - 1)) / calc(var(--grid-size) * 100%) calc(var(--grid-size) * 100%),radial-gradient(circle at 30% 70%,transparent 38%,#0b111866 100%) calc(var(--x) * 100% / (var(--grid-size) - 1)) calc(var(--y) * 100% / (var(--grid-size) - 1)) / calc(var(--grid-size) * 100%) calc(var(--grid-size) * 100%),linear-gradient(135deg,#ffffff16,transparent 60%),var(--ground)}.cell.odd{background-color:var(--ground-odd)}.cell.grove{background-color:var(--grove)}.cell.rock{background-color:var(--stone)}.field[data-mission="1"] .cell:not(.rock):not(.grove):after,.field[data-mission="2"] .cell:not(.rock):not(.grove):after{content:"";position:absolute;inset:12%;pointer-events:none;border:1px solid #d8e5d21c}.field[data-mission="1"] .cell:not(.rock):not(.grove):after{border-width:1px 0;transform:skew(-15deg)}.field[data-mission="2"] .cell:not(.rock):not(.grove):after{inset:8%;border-color:#e8d5b526}.cell:before{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 1px 1px #e9f3c41f,inset -1px -1px #0000004d}.cell.legal{box-shadow:inset 0 0 0 2px #8beaf9,inset 0 0 calc(var(--tile) * .3) #4fd2ffaa;background-color:#3d6b70}.cell.selected{box-shadow:inset 0 0 0 3px #ffdf7d,inset 0 0 calc(var(--tile) * .3) #ffcf5c88}.cell.target{box-shadow:inset 0 0 0 3px #ff8a76,inset 0 0 calc(var(--tile) * .35) #ff5a40aa;animation:target-pulse 1.1s ease-in-out infinite alternate}@keyframes target-pulse{to{filter:brightness(1.18)}}.cell.enemy-move{background-color:#4a5170}.cell.enemy-move:before{box-shadow:inset 0 0 0 1px #9aa6d866,inset 0 0 calc(var(--tile) * .25) #39406a88}.cell.reach{background-color:#7a3c36}.cell.reach.odd{background-color:#713533}.cell.reach:before{box-shadow:inset 0 0 0 1px #ff8a7680,inset 0 0 calc(var(--tile) * .25) #ff5a4055}.stand{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none;transform:rotate(45deg) scaleY(calc(1 / var(--tilt)))}.tag{position:absolute;left:0;top:calc(var(--tile) * -.62 * var(--figure, 1) - 14px);transform:translate(-50%);display:flex;align-items:center;gap:2px;white-space:nowrap}.badge{box-shadow:0 1px 3px #000a;padding:1px 4px;background:#132d3ce8;border-radius:4px;font-size:12px;color:#bcecff}.enemy .badge{color:#ffc0aa;background:#422525ed}.check{color:#fff;text-shadow:0 1px 2px #000}.hit{box-shadow:0 1px 4px #000c;background:#8e352b;color:#fff;padding:2px;border-radius:4px;font-size:13px}.console{position:relative;min-height:112px;background:#1c333e;border:1px solid #405762;border-radius:12px;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"tutorial tutorial" "guide side" "card side" "log side" "nav nav";column-gap:8px;row-gap:4px}.console>#tutorial{grid-area:tutorial}.console>#guide{grid-area:guide}.console>#selection{grid-area:card}.console>#log{grid-area:log}.console>nav{grid-area:nav}.console-side{grid-area:side;display:flex;flex-direction:column;gap:6px;align-self:start}#selection{font-size:13px;min-height:44px;min-width:0;overflow-wrap:anywhere}#log{font-size:12px;color:#c4d2cb;min-height:20px;line-height:1.2}nav{display:flex;flex-wrap:wrap;gap:8px}nav button{white-space:nowrap;min-height:44px;flex:1 1 64px;border:1px solid #719692;background:#305650;border-radius:8px;color:#fff}#end{flex-basis:96px}nav button:last-child{background:#775a30;border-color:#a68b55}button:disabled{opacity:.45;cursor:default}#result{position:absolute;background:#142d3af2;border:1px solid #dfcb8b;padding:22px;border-radius:12px;box-shadow:0 8px 40px #000;font-weight:700}#result[hidden]{display:none}dialog{max-width:min(90vw,470px);border:1px solid #8dafa5;border-radius:16px;background:#1b333f;color:#eee7d6;font-size:14px}dialog::backdrop{background:#06121bcc}dialog button{min-height:44px;width:100%;background:#385d57;border:1px solid #86aaa1;border-radius:8px}@media(max-width:500px){main{padding:8px;gap:6px}.field{--tilt: .95}h1{font-size:21px}.badge{font-size:11px;padding:1px 2px}.console{padding:8px}}@media(max-height:500px)and (max-width:559px){body{height:auto;overflow:auto}main{height:auto;min-height:100dvh}.field{flex:none;height:calc(100dvh - var(--status-h, 56px) - 8px)}}@media(max-height:500px)and (min-width:560px){main{display:grid;grid-template-columns:1fr clamp(224px,40vw,260px);grid-template-rows:56px auto 1fr;max-width:1000px}header{grid-column:2;grid-row:1}.status{grid-column:2;grid-row:2}.field{grid-column:1;grid-row:1/4}.console{grid-column:2;grid-row:3;align-self:end}}#mission{font-size:12px;color:#e1d4a5;background:transparent;border:1px solid #586b65;border-radius:5px;padding:2px 6px;min-height:30px}.status{align-items:center;gap:4px 12px}#recover{background:#385865}#result button{min-height:44px;background:#42655b;color:#fff;border:1px solid #b1c8a6;border-radius:6px;width:100%}#result button[hidden]{display:none}#outcome{margin:0 0 12px}.armor{text-shadow:0 1px 2px #000;color:#e9ce86;font-size:18px}#missions{display:flex;flex-direction:column;gap:8px}#missions button{padding:10px;text-align:left}#missions small{display:block;letter-spacing:0;color:#c6d9cf;font-size:12px;margin-top:4px}fieldset{border:1px solid #657f79;border-radius:8px;margin:12px 0}fieldset label{display:block;padding:8px 0}#expedition p{font-size:12px}#expedition{max-height:90dvh;overflow:auto}@media(max-width:500px){header small{font-size:8px;letter-spacing:1px}header{gap:6px}header button{width:42px;flex:0 0 42px}.status{font-size:12px}#mission{font-size:11px}nav button{font-size:14px}}@media(max-height:500px)and (min-width:560px){.status{flex-wrap:wrap;font-size:11px}#mission{font-size:10px;min-height:24px}header button{width:38px;height:40px}header{gap:5px}h1{font-size:17px;white-space:nowrap}header small{display:none}}.fx{position:absolute;z-index:4;width:0;height:0;pointer-events:none}.damage-number{position:absolute;left:-35px;top:-24px;text-align:center;width:70px;color:#fff2be;font-weight:900;font-size:23px;text-shadow:0 2px 3px #000,1px 0 #601b11;animation:damage-rise .65s ease-out both}@keyframes damage-rise{0%{opacity:0;translate:0 6px}15%,65%{opacity:1}to{opacity:0;translate:0 -28px}}#result{z-index:5}.zoom-controls{position:absolute;z-index:4;right:8px;bottom:8px;display:grid;gap:6px}.zoom-controls button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #9ab1a8;border-radius:10px;background:#1c3540d9;color:#f1f5e9;font-size:20px;line-height:1}.zoom-controls button:disabled{opacity:.4;cursor:default}@media(pointer:coarse){.zoom-controls button{width:44px;height:44px}}@media(prefers-reduced-motion:reduce){.field:before,.cell.target{animation:none}.damage-number{animation-duration:80ms}}.cell:disabled{opacity:1;cursor:wait}.preparation{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;gap:.5rem;flex-direction:column;padding:1rem;background:#121d25dd;color:#fff;text-align:center}.preparation [hidden]{display:none}.preparation button{min-height:44px;min-width:88px}.combat-contact{position:absolute;left:-16px;top:-16px;width:32px;height:32px;pointer-events:none;image-rendering:pixelated;background-repeat:no-repeat;animation:contact-pixels .16s steps(8,end) forwards}@keyframes contact-pixels{0%{background-position:0 0;opacity:1}to{background-position:-256px 0;opacity:0}}@media(prefers-reduced-motion:reduce){.combat-contact{animation-duration:80ms!important}}.exp-gauge,.level-up,.farewell{position:absolute;z-index:6;pointer-events:none;color:#fff7df;background:linear-gradient(#1d3a4cf5,#10222ef5);border:2px solid #e8d08e;border-radius:6px;box-shadow:0 0 0 2px #0b1820,0 10px 30px #000a;font-weight:700}.exp-gauge{bottom:6%;left:50%;translate:-50% 0;display:flex;align-items:center;gap:8px;padding:8px 12px;width:min(92%,380px);animation:panel-in .14s ease-out}.exp-gauge span{flex:1;white-space:nowrap}.exp-gauge b{color:#ffd76a;font-size:12px;letter-spacing:1px}.exp-gauge i,.exp-line i{display:inline-block;height:10px;background:#0a141a;border:1px solid #8a7a4c;border-radius:5px;overflow:hidden}.exp-gauge i{flex:2}.exp-gauge em,.exp-line em{display:block;height:100%;background:linear-gradient(90deg,#f7c84a,#fff3a8);box-shadow:0 0 8px #ffe17a;transition:width .5s ease-out}.exp-gauge output{min-width:2.5ch;text-align:right;font-variant-numeric:tabular-nums}.level-up{top:50%;left:50%;translate:-50% -50%;width:min(80%,280px);padding:10px 16px 14px;animation:panel-in .18s ease-out}.level-up h3{margin:0;text-align:center;font-size:22px;letter-spacing:3px;color:#ffe27a;text-shadow:0 0 10px #ffb53a,0 2px 0 #6b3a10}.level-up p{margin:4px 0 8px;text-align:center;font-size:14px}.level-up dl{margin:0;display:grid;gap:4px}.level-up dl div{display:grid;grid-template-columns:1fr 3ch 3ch;align-items:center;padding:3px 8px;border-radius:4px;background:#ffffff0d}.level-up dt,.level-up dd{margin:0}.level-up dd{text-align:right;font-variant-numeric:tabular-nums}.level-up dl span{color:#ffe27a;text-align:right}.level-up dl .up{background:#ffd76a33;box-shadow:inset 0 0 0 1px #ffe27a;animation:stat-up .32s ease-out}.level-up dl .up span{animation:plus-pop .32s ease-out}@keyframes panel-in{0%{opacity:0;scale:.92}}@keyframes stat-up{0%{background:#fff6c8}}@keyframes plus-pop{0%{scale:2;opacity:0}}@media(prefers-reduced-motion:reduce){.exp-gauge,.exp-gauge em,.level-up,.level-up dl .up,.level-up dl .up span{animation:none;transition:none}}#result.chapter{inset:2%;align-self:stretch;justify-self:stretch;display:flex;flex-direction:column;gap:8px;overflow:auto;padding:14px;font-weight:400;min-height:0;justify-content:flex-start}#result.chapter>*{flex-shrink:0}#phase-banner{position:absolute;z-index:6;left:0;right:0;top:50%;translate:0 -50%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 0;background:linear-gradient(90deg,transparent,#12466be6 18%,#12466be6 82%,transparent);border-block:2px solid #8fd8ff;color:#fff;white-space:nowrap;pointer-events:none;animation:phase-in .8s ease both}#phase-banner[data-phase=enemy]{background:linear-gradient(90deg,transparent,#7a1f1ae6 18%,#7a1f1ae6 82%,transparent);border-block-color:#ff9a86}#phase-banner b{font-size:clamp(24px,5vw,38px);letter-spacing:.14em}#phase-banner span{font-size:13px}#phase-banner[hidden]{display:none}@keyframes phase-in{0%{opacity:0;transform:scaleY(.4)}15%,80%{opacity:1;transform:scaleY(1)}to{opacity:0;transform:scaleY(1)}}@media(prefers-reduced-motion:reduce){#phase-banner{animation:none}}.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important}#fast,#detail-button{min-width:44px;min-height:44px;border:1px solid #9ab1a8;border-radius:8px;background:#385d57;color:#fff}#danger[aria-pressed=true]{background:#6b5a24;border-color:#ffe27b;color:#fff3c4;box-shadow:inset 0 0 0 1px #ffe27b}#fast[aria-pressed=true],#wait.recommended{outline:3px solid #ffe27b}#detail{width:min(92vw,380px);box-sizing:border-box}.dt-head{display:flex;gap:12px;align-items:center}.dt-head .portrait{width:80px;height:80px;flex:none;object-fit:contain}#detail h2{margin:0 20px 0 0;overflow-wrap:anywhere}.dt-head p{margin:2px 0 0;color:#a9c0b8;font-size:13px}.dt-hp{display:flex;align-items:center;gap:8px}.dt-hp.enemy .uc-bar em{background:linear-gradient(90deg,#e8604a,#ffab8f)}.dt-exp progress{width:140px}.dt-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0 0}.dt-stats>div{background:#ffffff0d;border-radius:6px;padding:6px 8px}.dt-stats dt{font-size:12px;color:#a9c0b8}.dt-stats dd{margin:0;font-size:18px;font-weight:700}.dt-stats small{display:block;font-size:11px;color:#9fb3ad}#detail-close{margin-top:12px}.dt-notes{margin:8px 0 0;padding-left:18px;font-size:13px;color:#ffd9a0}.cell.danger{background-image:repeating-linear-gradient(45deg,#f9ce4d66 0 3px,transparent 3px 9px);outline:2px dashed #ffe27b;outline-offset:-3px}.hpbar{display:block;height:3px;width:100%;background:#172327}.hpbar>span{display:block;height:100%;background:#80dbf0}.enemy .hpbar>span{background:#ff8d70}#forecast{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;justify-content:space-between;gap:6px;overflow-y:auto;padding:8px 10px;background:#152936;border:1px solid #e9ce8d;border-radius:12px}#forecast[hidden]{display:none}.fc-title{margin:0;font-size:12px;font-weight:700;color:#e9ce8d;letter-spacing:.1em}.fc-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}.fc-unit{display:flex;gap:6px;min-width:0;align-items:center}.fc-unit>div{display:flex;flex-direction:column;min-width:0;flex:1;overflow-wrap:anywhere}.fc-unit b{font-size:14px}.fc-unit small{font-size:11px;color:#a9c0b8}.fc-hp{font-size:13px;font-weight:700}#forecast .portrait{width:40px;height:40px;flex:none;object-fit:contain}.fc-mid{display:flex;flex-direction:column;align-items:center;text-align:center}.fc-amount{font-size:26px;font-weight:900;line-height:1.1;color:#ffb4a3}#forecast[aria-label=回復予測] .fc-amount{color:#9dffad}.fc-mid small{font-size:11px;color:#a9c0b8}.fc-ko{background:#ffd76a;color:#3a2508;font-size:11px;font-weight:700;border-radius:4px;padding:0 5px}.fc-bar{display:flex;width:100%;height:8px;margin-top:3px;background:#0a141a;border-radius:4px;overflow:hidden}.fc-keep{background:linear-gradient(90deg,#4fc3e8,#9ff0ff)}.fc-unit.enemy .fc-keep{background:linear-gradient(90deg,#e8604a,#ffab8f)}#forecast[aria-label=回復予測] .fc-keep{background:linear-gradient(90deg,#3fb36a,#8fe6a8)}.fc-change{background:repeating-linear-gradient(45deg,#ff5a40 0 4px,#ff8a70 4px 8px)}#forecast[aria-label=回復予測] .fc-change{background:#6dff8f}.fc-mods{display:flex;flex-wrap:wrap;gap:4px}#forecast .modifier{padding:2px 6px;border:1px solid #a9b6a1;border-radius:12px;font-size:12px}#forecast .modifier.base{background:#2c4a58}#forecast .modifier.note{border-style:dashed;color:#a9c0b8}.fc-actions{display:flex;gap:8px}#forecast button{flex:1;min-height:44px;border:1px solid #9ab1a8;border-radius:6px;background:#385d57;color:#fff}#forecast #confirm{background:#987335;border-color:#e9ce8d}@media(prefers-reduced-motion:no-preference){.fc-change{animation:fc-pulse 1.2s ease-in-out infinite}}@keyframes fc-pulse{50%{opacity:.6}}#result.chapter[hidden]{display:none}#result.chapter #outcome{margin:0;text-align:center;font-weight:700}#report header{display:flex;flex-direction:column;align-items:center;border-bottom:1px solid #dfcb8b66;padding-bottom:6px}#report header small{color:#ffd76a;letter-spacing:3px;font-weight:700}.chapter-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}.chapter-stats div{background:#ffffff0d;border-radius:6px;padding:4px;text-align:center}.chapter-stats dt{font-size:11px;color:#b9cbc4}.chapter-stats dd{margin:0;font-size:18px;font-weight:700}.chapter-units{list-style:none;margin:0;padding:0;display:grid;gap:6px}.chapter-units li{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid #ffffff1f;border-radius:8px;background:#ffffff08;font-size:13px}.chapter-units li.mvp{border-color:#ffd76a;box-shadow:inset 0 0 12px #ffd76a33}.chapter-units li.fallen{opacity:.55;filter:grayscale(1)}.chapter-units mark.lost{background:#6b7378;color:#f2f2f2}.chapter-units small{margin-left:4px;color:#b9cbc4}.chapter-lost{margin:0 0 6px;font-size:12px;color:#d9b8a8}.farewell{top:50%;left:50%;translate:-50% -50%;display:flex;align-items:center;gap:10px;padding:10px 16px;width:min(86%,320px);border-color:#8a8f94;background:linear-gradient(#2a2f36f5,#15191ef5);animation:panel-in .18s ease-out}.farewell .portrait{flex:none;width:64px;height:56px;filter:grayscale(1)}.farewell p{margin:0 0 4px;font-weight:400}.farewell b{color:#e9b3a0}#missions .lost{color:#b9a39a}.chapter-units .portrait{flex:none;width:64px;height:56px}.chapter-units li>div{flex:1;min-width:0}.chapter-units p{margin:1px 0}.chapter-units mark{margin-left:6px;padding:0 6px;border-radius:4px;background:#ffd76a;color:#3a2508;font-size:11px;font-weight:700}.chapter-units ins{margin-left:4px;color:#ffe27a;text-decoration:none}.exp-line{display:inline-flex;align-items:center;gap:4px}.exp-line i{width:60px;height:6px}#missions .roster{color:#ffd76a}button:active:not(:disabled){scale:.96}.sep{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#turn .phase{display:inline-block;padding:1px 10px;border-radius:999px;border:1px solid #8fd8ff;background:#1f5f86;color:#e8f7ff}#turn[data-phase=enemy] .phase{background:#8a2f28;border-color:#ff9a86}#turn[data-phase=won] .phase{background:#7a5a1e;border-color:#ffd76a}#turn[data-phase=lost] .phase{background:#4a4f55;border-color:#9aa3a8}#turn .turn-no{margin-right:6px}#count .ally b{color:#8fd8ff}#count .enemy b{color:#ff9a86}#count .ally{margin-right:6px}.hud-label{display:inline-block;padding:1px 6px;border-radius:4px;background:#e9ce8d;color:#2b1d08;font-size:11px;font-weight:700}#guide{margin:0;min-height:20px;font-size:13px;font-weight:700;color:#ffe4a1}#guide:before{content:"▶ ";font-size:10px;color:#e9ce8d}.console:has(#tutorial:not([hidden])) #guide{display:none}#legend{position:absolute;z-index:4;left:8px;bottom:8px;display:flex;flex-flow:row wrap;gap:4px 10px;padding:4px 8px;border-radius:8px;background:#0d1a22c4;font-size:11px;color:#e7efe9;max-width:calc(100% - 72px);pointer-events:none}#legend:empty,.field.reporting #legend{display:none}#legend span{display:inline-flex;align-items:center;gap:4px}#legend i{display:inline-block;width:14px;height:10px;border-radius:2px;font-style:normal;line-height:10px;text-align:center}#legend [data-kind=move] i{background:#3d6b70;box-shadow:inset 0 0 0 1.5px #8beaf9}#legend [data-kind=attack] i{background:#7a3c36;box-shadow:inset 0 0 0 1px #ff8a76}#legend [data-kind=heal] i{background:#4caa72;box-shadow:inset 0 0 0 1.5px #c1ffce}#legend [data-kind=enemy-move] i{background:#4a5170;box-shadow:inset 0 0 0 1px #9aa6d8}#legend [data-kind=danger] i{background:repeating-linear-gradient(45deg,#f9ce4d99 0 2px,transparent 2px 5px);border:1px dashed #ffe27b;box-sizing:border-box}#legend [data-kind=seize] i{width:auto;color:#ffd76a;font-size:12px}#actor{position:absolute;z-index:5;top:10px;left:50%;translate:-50% 0;padding:4px 14px;border:1px solid #ff9a86;border-radius:999px;background:#3a1512e6;color:#ffe9e4;font-size:14px;font-weight:700;white-space:nowrap;pointer-events:none}#actor[hidden]{display:none}.cell.acting{box-shadow:inset 0 0 0 3px #ff6b57,inset 0 0 14px #ff3b2a99}@media(max-width:360px){header small{display:none}}@media(max-height:500px)and (min-width:560px){.nav-long{display:none}nav button{font-size:13px}#selection .portrait,#forecast .portrait{display:none}.console #log{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%)}}@container (max-height: 240px){#terrain,#legend{display:none}}@media(max-height:500px)and (min-width:560px){.console{padding:6px 8px;row-gap:2px}#guide{font-size:12px;line-height:1.2}#selection.unit-card:has(.portrait){grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "stats" "note"}}#selection.unit-card{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-areas:"pic main" "pic stats" ". note";gap:2px 10px;min-height:52px;align-content:start}#selection.unit-card:not(:has(.portrait)){grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "stats" "note"}#selection .portrait{grid-area:pic;width:48px;height:48px;object-fit:contain;border-radius:8px;background:radial-gradient(#2c4a58,#142631);border:1px solid #ffffff22}#selection[data-side=enemy] .portrait{background:radial-gradient(#5a2d28,#2a1412)}.uc-main{grid-area:main;min-width:0}.uc-main p{margin:0}.uc-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}.uc-name{font-size:15px;color:#fff;font-weight:700}.uc-class{font-size:12px;color:#a9c0b8}.uc-lv{font-size:12px;color:#ffe4a1;font-weight:700}.uc-boss{font-size:11px;color:#ffe47a}.uc-hp{display:flex;align-items:center;gap:6px;font-size:12px}.uc-bar{display:inline-block;width:90px;height:8px;border-radius:4px;background:#0a141a;border:1px solid #ffffff2a;overflow:hidden;flex:none}.uc-bar em{display:block;height:100%;background:linear-gradient(90deg,#4fc3e8,#9ff0ff)}#selection[data-side=enemy] .uc-bar em{background:linear-gradient(90deg,#e8604a,#ffab8f)}.uc-hp.low .uc-bar em{background:#ffcc4d!important}.uc-stats{grid-area:stats;display:flex;flex-wrap:wrap;gap:2px 12px;margin:0;font-size:12px;min-width:0}.uc-stats>div{display:inline-flex;gap:4px}.uc-stats dt{color:#a9c0b8}.uc-stats dd{margin:0;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}.uc-note{grid-area:note;margin:0;font-size:11.5px;color:#ffd9a0}.unit-empty{margin:0;font-size:13px;color:#a9c0b8}@media(max-width:500px),(max-height:500px){#selection .portrait{width:40px;height:40px}#selection.unit-card{grid-template-columns:40px minmax(0,1fr)}.uc-name{font-size:14px}.uc-bar{width:70px}}#terrain{position:absolute;z-index:4;left:8px;top:8px;padding:4px 8px;border-radius:8px;background:#0d1a22c4;font-size:12px;color:#e7efe9;max-width:calc(100% - 72px);pointer-events:none}#terrain[hidden],.field.reporting #terrain{display:none}#end .end-left{display:inline-block;font-size:11px;background:#00000040;border-radius:999px;padding:0 6px;margin-left:4px}#result.defeat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:16px}#result.defeat[hidden]{display:none}#result.defeat>*{width:100%;max-width:420px}#result.defeat #outcome{font-size:20px;font-weight:700;color:#f0c9bd;margin:0}#defeat-note{margin:0;color:#b9c9c3;font-size:13px}#defeat-note[hidden]{display:none}#result #retry{background:#987335;border-color:#e9ce8d}#result #retry-missions{background:#2f5a5e;border-color:#8fc9c4}#help-dialog [role=tab]{width:auto;min-height:40px;padding:6px 12px;border-radius:999px;margin:0}#help-dialog [role=tab][aria-selected=true]{background:#70582d;outline:2px solid #f4cf7b}#help-dialog h3{font-size:13px;color:#e9ce8d;margin:14px 0 6px}.legend-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.legend-list li{display:flex;align-items:center;gap:10px;font-size:13px}.legend-list .sw{flex:none;width:28px;height:20px;border-radius:3px;background:#2b4a50;text-align:center;line-height:20px;font-style:normal;color:#ffd76a}.legend-list .sw-move{background:#3d6b70;box-shadow:inset 0 0 0 2px #8beaf9}.legend-list .sw-reach{background:#7a3c36;box-shadow:inset 0 0 0 1px #ff8a76}.legend-list .sw-target{background:#5a2f2c;box-shadow:inset 0 0 0 3px #ff8a76}.legend-list .sw-heal{background:#4caa72;box-shadow:inset 0 0 0 2px #c1ffce}.legend-list .sw-enemy-move{background:#4a5170;box-shadow:inset 0 0 0 1px #9aa6d8}.legend-list .sw-danger{background:repeating-linear-gradient(45deg,#f9ce4d99 0 3px,transparent 3px 8px);outline:2px dashed #ffe27b;outline-offset:-2px}.legend-list .sw-seize{background:repeating-linear-gradient(45deg,#e4c46a 0 4px,#806c46 4px 8px)}.legend-list .mk{flex:none;min-width:28px;text-align:center;color:#e9ce8d}.legend-list .mk.ally{color:#7fc4ff}.legend-list .mk.foe{color:#ff8a76}#missions button[aria-current=true]{border-color:#e9ce8d}#missions .objective{color:#ffe4a1}#missions em{font-style:normal;font-size:11px;border-radius:999px;padding:1px 7px;margin-left:4px;background:#00000050;white-space:nowrap}#missions .badge-current{color:#e9ce8d;border:1px solid #e9ce8d}#missions .badge-clear{color:#b6e8c0}.prep-bar{display:block;width:220px;max-width:80%;height:8px;border-radius:4px;background:#0a141a;border:1px solid #ffffff2a;overflow:hidden}.prep-bar[hidden]{display:none}.prep-bar em{display:block;height:100%;width:0;background:linear-gradient(90deg,#e9ce8d,#fff3c4);transition:width .2s}.field.reporting+.console .unit-empty{visibility:hidden}#selection,#selection.unit-card{min-height:72px}#selection:not(.unit-card){display:flex;align-items:center}#log{height:1.2em;min-height:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:500px){#guide{min-height:34px}#log{height:2.4em;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}@media(max-width:360px){#selection,#selection.unit-card{min-height:70px}#selection .uc-note{display:none}.console #log{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}#toast{position:absolute;top:10px;left:50%;translate:-50% 0;z-index:7;max-width:calc(100% - 24px);padding:6px 14px;border-radius:999px;border:1px solid #e9ce8d;background:#2a1c12ee;color:#ffe9c4;font-size:13px;font-weight:700;text-align:center;pointer-events:none}#toast[hidden]{display:none}@media(prefers-reduced-motion:no-preference){#toast{animation:toast-in .18s ease-out}}.reduce-motion #toast{animation:none}@keyframes toast-in{0%{opacity:0;translate:-50% -8px}}@media(max-height:500px)and (max-width:559px){#toast{position:fixed;top:8px}#forecast{position:fixed;inset:auto 8px 8px;z-index:40;max-height:60vh;overflow-y:auto;box-shadow:0 6px 24px #000c}#forecast:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"grid grid" "mods actions";align-items:center;gap:6px 10px}#forecast .fc-title,#forecast .portrait{display:none}#forecast .fc-grid{grid-area:grid}#forecast .fc-mods{grid-area:mods}#forecast .fc-actions{grid-area:actions;display:flex;gap:6px}#forecast button{min-height:44px;padding:0 14px;white-space:nowrap}}#touch-choices.touch-panel[open]{flex-direction:row;align-items:stretch;gap:6px;padding:6px;z-index:60}#touch-choices.touch-panel #touch-cancel{width:25%}.cell.touch-near{box-shadow:inset 0 0 0 2px #ffe4a1aa}.cell.touch-origin{box-shadow:inset 0 0 0 3px #ffe4a1,0 0 10px 2px #ffe4a1}.touch-dir{display:block;font-size:16px;line-height:1;color:#ffe4a1}#touch-choices .touch-origin{border-color:#ffe4a1;box-shadow:inset 0 0 0 1px #ffe4a1}@media(max-height:500px)and (min-width:560px){main{grid-template-rows:auto auto minmax(0,1fr)}.console{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.console>nav{position:sticky;bottom:0;z-index:1;background:#1c333e;padding-top:4px}#touch-choices button{font-size:12px;line-height:1.2;padding:2px 4px}.touch-dir{font-size:13px}}@media(max-height:400px)and (min-width:560px){main{grid-template-rows:44px auto minmax(0,1fr)}#selection .uc-note{display:none}}@media(max-height:340px)and (min-width:560px){#selection .uc-exp{display:none}#selection,#selection.unit-card{min-height:56px}#guide{font-size:11px}.console{padding:4px 8px;row-gap:0}}@media(max-height:500px)and (max-width:559px){#tutorial:not([hidden]){position:fixed;top:8px;left:8px;right:8px;z-index:35;box-shadow:0 6px 20px #000c}body:has(#tutorial:not([hidden])) #toast{top:64px}}@media(max-height:500px)and (max-width:559px){.status{position:sticky;top:0;z-index:30;margin-inline:-12px;padding:4px 12px;background:#101e27f2;box-shadow:0 4px 10px #0008}#tutorial:not([hidden]),#toast{top:44px}body:has(#tutorial:not([hidden])) #toast{top:100px}#terrain,#actor{top:18px}#fast{position:fixed;top:44px;right:8px;z-index:36}body:has(#turn[data-phase=enemy]) #tutorial{display:none}}#result.chapter #next{position:sticky;bottom:0;z-index:1;box-shadow:0 -12px 16px #142d3a}#detail-close,#help-close,#cancel-mission{position:sticky;bottom:0;z-index:1;box-shadow:0 -10px 14px #1b333f}@media(max-height:500px){.dt-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dt-head .portrait{width:56px;height:56px}}@media(max-height:500px){#help-dialog [role=tablist]{position:sticky;top:0;z-index:1;flex-wrap:nowrap;overflow-x:auto;background:#1b333f;padding-block:2px}#help-dialog [role=tab]{flex:none}}.console-side button{display:grid;place-items:center;align-content:center;padding:2px 0;line-height:1.1}.console-side button small{font-size:9px;letter-spacing:0;color:#d6e6e0;white-space:nowrap}#touch-assist[aria-pressed=true]{background:#6b5a24;border-color:#ffe27b}@media(max-height:500px)and (min-width:560px)and (max-width:639px){.mission-difficulty{display:none}}@media(max-height:500px)and (min-width:560px)and (max-width:599px){header button{width:36px}}@media(max-height:500px)and (max-width:500px){.status{margin-inline:-8px;padding-inline:8px}}@media(max-height:340px)and (min-width:560px){.console{padding-block:2px}.console>nav{gap:4px;padding-top:2px}.console-side{gap:4px}}@media(max-height:500px)and (min-width:560px)and (max-width:639px){#selection .uc-stats{font-size:11px;gap:0 7px}.console>nav button{flex-basis:56px;padding-inline:2px;font-size:13px}}@media(max-height:500px)and (max-width:559px){.field{touch-action:pan-y}}@media(max-height:500px)and (max-width:559px){#tutorial:not([hidden]),#toast,#fast{top:calc(var(--status-h, 38px) + 6px)}body:has(#tutorial:not([hidden])) #toast{top:calc(var(--status-h, 38px) + 62px)}}@media(max-height:500px)and (min-width:560px){.status{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"mission turn" "count objective" "fast fast";align-items:center;gap:4px 8px}#mission{grid-area:mission;justify-self:start;max-width:100%}#turn{grid-area:turn;justify-self:end}#count{grid-area:count}#objective{grid-area:objective;justify-self:end}#fast{grid-area:fast}#mission,#turn,#count,#objective{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}@media(max-height:340px)and (min-width:560px){.status{row-gap:2px}.console-side{gap:2px}.console>nav{padding-top:0}}.report-stats{display:flex;flex-wrap:wrap;gap:0 10px}.report-stats span{white-space:nowrap}@media not all and (max-height:500px)and (min-width:560px){.field.reporting~.console{display:none}}.chapter-units ins,.chapter-units .exp-line{white-space:nowrap}.title-screen{position:fixed;inset:0;z-index:50;overflow:auto;background:radial-gradient(ellipse at 68% 80%,#64351e,#101a22 65%);color:#fff2d4;display:grid;grid-template-columns:1fr 1fr;align-items:center}.title-content{position:relative;z-index:2;grid-column:1;grid-row:1;width:min(32rem,90%);margin:auto;padding:1rem}.title-content h1{font-size:clamp(2.7rem,7vw,5.5rem);margin:.15em 0;color:#ffe1a1;text-shadow:0 3px #6b281a}.title-content p{margin:.4rem 0 1rem}.title-content nav{display:grid;gap:.35rem}.title-content button,.shell-dialog button{text-align:left;min-height:44px}.title-content button small{display:block;font-size:.75rem}.title-content button[data-action=continue]{padding-block:.4rem}.title-content button[data-action=continue] small:last-child{color:#fff2d4;font-size:.85rem}.title-content button:disabled,.shell-dialog button:disabled{opacity:.5}.title-art{grid-column:2;grid-row:1;display:flex;align-items:end;justify-content:center;height:min(75vh,620px)}.title-art img{width:32%;max-height:100%;object-fit:contain;filter:drop-shadow(0 8px 10px #0009)}.title-art img:nth-child(2){width:36%;z-index:1}.title-embers{position:absolute;inset:-50%;pointer-events:none;background-image:radial-gradient(#ffba70 1px,transparent 2px),radial-gradient(#fff4d0 1px,transparent 2px);background-size:87px 91px,137px 151px;opacity:.25;animation:embers 18s linear infinite}@keyframes embers{to{transform:translateY(-90px)}}.reduce-motion .title-embers{animation:none}.shell-dialog{max-height:90dvh;overflow:auto;max-width:min(90vw,34rem)}#storage-notice{position:fixed;z-index:100;right:1rem;bottom:1rem;background:#3a241e;color:#fff}#storage-notice:empty{display:none}.shell-dialog label{display:block;margin:.8rem 0}.shell-dialog button{display:block;width:100%;margin:.35rem 0}@media(max-width:600px)and (orientation:portrait){.title-screen{grid-template-columns:1fr;grid-template-rows:minmax(170px,32vh) auto;align-content:center}.title-art{grid-column:1;grid-row:1;height:100%}.title-content{grid-column:1;grid-row:2;width:min(24rem,90%);padding-block:0}}@media(max-height:500px){.title-content h1{font-size:2.3rem}.title-content p{margin:.2rem 0}.title-content button{min-height:44px;padding:.25rem .7rem}.title-content nav{gap:.15rem}}@media(prefers-reduced-motion:reduce){.title-embers{animation:none}}.screen-transition{position:fixed;inset:0;z-index:1000;background:#101321;pointer-events:none;animation:screen-transition .35s ease-out forwards}@keyframes screen-transition{0%{opacity:.9}to{opacity:0}}.context-notice:not([hidden]){position:fixed;z-index:1001;top:1rem;left:50%;transform:translate(-50%);padding:.8rem 1rem;color:#fff;background:#252638;border:1px solid #e8c880;border-radius:.5rem}.sound-notice:not([hidden]){position:fixed;z-index:1001;top:7rem;left:50%;transform:translate(-50%);width:max-content;max-width:calc(100% - 2rem);padding:.8rem 1rem;color:#fff;background:#252638;border:1px solid #e8c880;border-radius:.5rem;pointer-events:none}.set-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.set-head h2{margin:0}.shell-dialog .set-head button{width:auto;margin:0;padding-inline:1rem}.set-group{margin-top:1rem}.set-group h3{margin:0 0 .2rem;font-size:12px;letter-spacing:.08em;color:#e9ce8d}.shell-dialog .set-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:44px;margin:0}.set-row input[type=range]{flex:1;min-width:0;accent-color:#e9ce8d}.set-row output{min-width:3.2em;text-align:right}.set-check{justify-content:flex-start}.set-check input{flex:none;accent-color:#e9ce8d}.set-check small,.shell-dialog button small{display:block;font-size:12px;color:#a9c0b8;letter-spacing:0}.set-label{flex:none;min-width:7.5em}.set-check span{flex:1;text-align:left}@media(max-height:420px){.title-content nav{grid-template-columns:repeat(2,minmax(0,1fr))}.title-content nav>*{grid-column:1 / -1}.title-content nav>:is([data-action=new],[data-action=chapters],[data-action=settings],[data-action=help]){grid-column:auto}}.shell-dialog .set-head{position:sticky;top:0;z-index:1;background:#1b333f;box-shadow:0 10px 14px #1b333f}.shell-dialog>button[data-cancel]:last-child{position:sticky;bottom:0;z-index:1;box-shadow:0 -10px 14px #1b333f}.story-overlay{position:absolute;inset:0;z-index:30;display:flex;align-items:end;background:#0006;outline:none}.story-box{width:100%;min-height:128px;display:flex;gap:12px;align-items:center;padding:12px;background:#142631ed;border:2px solid #bba56b;border-radius:12px}.story-box img{width:100px;height:100px;object-fit:contain;flex:none}.story-copy{flex:1;min-width:0}.story-copy strong{color:#f4d68b}.story-copy p{margin:8px 0;font-size:clamp(15px,2.5vw,19px);line-height:1.5}.story-box button,.story-credits button{min-height:40px;min-width:70px;padding:6px 12px;border:1px solid #e9ce8d88;border-radius:6px;background:#1c333ecc;color:#ffe4a1;font-size:13px}.story-box button{align-self:start}.story-title{position:absolute;inset:0;z-index:29;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;background:#101e27dc;pointer-events:none;animation:story-fade 1.6s both}.story-credits{position:absolute;inset:0;z-index:30;overflow:hidden;background:#101e27f5;text-align:center}.story-credits div{animation:story-roll 16s linear both;padding:3rem 1rem 1rem}.story-credits p{margin:1.5em 0}.story-credits button{position:absolute;right:1rem;top:1rem}@keyframes story-roll{0%{transform:translateY(100%)}to{transform:translateY(-100%)}}.story-title strong{font-size:clamp(24px,5vw,40px)}@keyframes story-fade{0%,to{opacity:0}20%,80%{opacity:1}}@media(max-height:500px){.story-box{min-height:80px;padding:5px}.story-box img{width:65px;height:65px}}@media(prefers-reduced-motion:reduce){.story-credits{overflow-y:auto}.story-credits div,.story-title{animation:none}}.reduce-motion .story-credits{overflow-y:auto}.story-box{position:relative}.story-next{position:absolute;right:14px;bottom:6px;color:#f4d68b;font-size:14px;animation:story-next .8s ease-in-out infinite alternate;pointer-events:none}@keyframes story-next{to{translate:0 3px;opacity:.55}}@media(prefers-reduced-motion:reduce){.story-next{animation:none}}
