@charset "UTF-8";
:root{color-scheme:dark;--ink:#111820;--panel:#202a32;--rim:#68777c;--light:#e9e7d5;--muted:#a2b3b6;--gold:#efc16b;--cyan:#87d5df;--red:#bd3454;font-family:ui-sans-serif,system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#10191e;color:var(--light);overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.38}button:focus-visible{outline:3px solid #fff2a1;outline-offset:4px;z-index:5}button{border-radius:0}button:hover:not(:disabled){filter:brightness(1.13)}[hidden]{display:none!important}.game{height:100svh;min-height:560px;max-width:1800px;margin:auto;display:flex;flex-direction:column;isolation:isolate}.hud{height:70px;flex:none;display:flex;align-items:center;gap:32px;padding:12px 26px;background:#17212a;border-bottom:3px solid #65777c;box-shadow:0 3px #0b1118;z-index:3}.health-block{width:220px}.health-label,.journey-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.04em;margin-bottom:6px}.health-label>span{color:#f49ba5;font-weight:800}.health-label strong{font-size:11px;font-variant-numeric:tabular-nums}.meter{height:12px;background:#0e131d;border:2px solid #b9c5c3;outline:2px solid #090f15;padding:1px}.meter>div{height:100%;width:100%;background:repeating-linear-gradient(90deg,#cf3d60 0,#cf3d60 27px,#8e2647 27px,#8e2647 30px);transition:width .2s}.journey{margin:auto;max-width:340px;width:32%}.journey-label>span{color:var(--muted)}.journey-label strong{color:var(--gold)}.route{display:flex;align-items:center;gap:6px;height:10px}.route i{display:block;height:5px;flex:1;background:#414b51}.route i.done{background:#a2ba98}.route i.current{background:var(--gold);height:9px;box-shadow:0 0 8px #efc16b44}.route i:last-child{height:10px;max-width:12px;transform:rotate(45deg);margin-left:4px}.utilities{display:flex;gap:7px}.small-button{width:36px;height:34px;background:#2b3843;border:1px solid #778587;border-bottom:3px solid #0b1118;font-weight:900;position:relative}.muted-line{position:absolute;width:23px;height:2px;background:#d5c7a8;transform:rotate(-45deg);left:5px;top:15px}.battlefield{position:relative;flex:1;min-height:0;overflow:hidden;background:#91b9df}canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.location{position:absolute;top:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;color:#233749;font-size:10px;font-weight:900;letter-spacing:.26em;white-space:nowrap;text-shadow:0 1px #ffffff40}.location-rule{height:1px;width:25px;background:currentColor;opacity:.6}.combat-caption{position:absolute;top:49px;left:0;right:0;text-align:center;font-size:12px;font-weight:700;color:#edf6e5;text-shadow:0 2px 2px #122b31;pointer-events:none}.intent{position:absolute;left:61%;top:48%;transform:translateX(-50%);font-size:11px;font-weight:900;background:#231c29e8;color:#ffe1aa;border:2px solid #ca9568;padding:6px 12px;min-width:116px;text-align:center;box-shadow:2px 3px #10172090}.intent-meter{height:3px;background:#563441;margin-top:6px}.intent-meter i{display:block;height:100%;background:#f2bb67}.battle-message{position:absolute;inset:0;display:grid;place-items:center;background:#11242c55;font-size:24px;font-weight:900;letter-spacing:.08em;text-shadow:2px 2px #14252c}.ready-panel{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap}.ready-panel p{margin:0 0 8px;font-size:11px;font-weight:700;text-shadow:0 2px #162c24,1px 0 #162c24,-1px 0 #162c24}.primary-button{background:#b78b43;border:2px solid #f5d28d;border-top-color:#fff0bb;border-bottom:4px solid #765333;outline:2px solid #14222b;box-shadow:3px 4px #0c151c55;color:#17232c;padding:12px 24px;font-size:14px;font-weight:900;min-width:210px}.primary-button span{margin-left:22px}.sequence-deck{flex:none;padding:14px 24px 9px;border-top:3px solid #879594;background:linear-gradient(#26313a,#17232d);box-shadow:0 -3px #101c25,0 -8px 22px #0b162c40;z-index:4}.sequence-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sequence-heading>div{display:flex;align-items:center;gap:13px}.section-kicker{font-size:9px;letter-spacing:.17em;color:#9ab0b8;font-weight:800}.sequence-heading strong{font-size:12px}.sequence-heading strong span{font-size:10px;color:#81949f;margin-left:7px}.sequence-state{font-size:11px;color:var(--gold);font-weight:700}.skill-strip{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#8c9996 #17212b;padding:4px 3px 6px;scroll-behavior:smooth}.slot{position:relative;flex:1 0 100px;min-width:100px;max-width:none;height:91px;background:#1b242d;border:2px solid #526570;border-bottom:4px solid #0c1824;box-shadow:inset 0 0 0 1px #354651;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 5px;isolation:isolate;overflow:hidden}.slot:not(:last-child)::after{content:"";position:absolute;right:1px;top:38px;border-left:4px solid #70848c;border-top:3px solid transparent;border-bottom:3px solid transparent}.slot.empty{opacity:.45;border-style:dashed;border-width:1px;color:#77919f}.empty .empty-rune{font-size:23px;color:#4c6572}.slot-number{position:absolute;left:7px;top:5px;color:#718a98;font-size:9px;font-weight:800}.slot .skill-icon{width:33px;height:33px;margin-bottom:4px;filter:drop-shadow(2px 2px #0a141a)}.slot-name{font-size:11px;font-weight:800;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.slot-level{position:absolute;right:6px;top:5px;font-size:9px;color:#acc0c5}.slot-marker{position:absolute;bottom:2px;right:5px;font-size:8px;font-weight:900;letter-spacing:.02em}.slot.active{border-color:#f5d38a;background:#3b3c32;box-shadow:inset 0 0 0 1px #a78349,0 0 14px #e5b85235}.slot.active .slot-number,.slot.active .slot-marker{color:#ffe19b}.slot.next{border-top-color:#85ced5}.slot.next .slot-marker{color:#9fdae0}.slot.selected{outline:2px solid #a5d4e0;outline-offset:1px}.slot-sweep{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#e8bd5b29,#e8bd5b12);transform:scaleX(0);transform-origin:left;pointer-events:none}.slot.active .slot-sweep{transform:scaleX(var(--progress,0))}.slot.acquired{animation:acquire .55s ease-out}.slot.upgraded{animation:upgrade .7s ease-out}.sequence-bottom{display:flex;justify-content:space-between;align-items:center;min-height:30px;gap:12px}.sequence-bottom p{color:#9cb0b7;font-size:10px;margin:3px 0;line-height:1.5}.reorder{display:flex;align-items:center;gap:5px;white-space:nowrap}.reorder span{color:#b5c9cd;font-size:10px;margin-right:4px}.reorder button{width:30px;height:26px;background:#334651;border:1px solid #738c94;font-weight:800}.overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:16px;background:#08151e65;backdrop-filter:blur(1px)}.choice-panel{width:min(840px,100%);text-align:center}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:#ffe4aa;text-shadow:1px 2px #17222a;margin-bottom:9px}h1{font-size:28px;line-height:1.2;margin:0 0 9px;letter-spacing:-.05em;text-shadow:2px 3px #17222a}.choice-panel>p{font-size:12px;margin:0 0 21px;color:#e2ece0;text-shadow:1px 2px #17222a}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#1c2934f5;border:2px solid #829397;border-bottom:5px solid #101a24;box-shadow:4px 5px #0d1c2370,inset 0 0 0 3px #34434b;padding:18px;min-height:204px;transition:transform .15s,border-color .15s}.choice:hover{transform:translateY(-4px);border-color:#edc481}.choice .skill-icon{width:46px;height:46px;margin:6px 0 9px;filter:drop-shadow(3px 3px #0c1820)}.choice-kind{color:#91d3d9;font-size:9px;font-weight:900;letter-spacing:.04em}.choice-kind.upgrade{color:#f4cb7a}.choice-name{font-size:16px;font-weight:900;margin-bottom:7px}.choice-description{font-size:11px;color:#c3d0cd;line-height:1.65;margin-bottom:12px;flex:1}.choice-effect{font-size:10px;font-weight:800;color:#eccc8f;line-height:1.5;border-top:1px solid #59635f;padding-top:10px;width:100%}.choice-arrow{position:absolute;right:17px;top:21px;color:#c3d3d1;font-size:18px}.choice-panel>.choice-note{display:flex;justify-content:space-between;color:#d3dcd1;margin:13px 3px 0;font-size:10px}.end-panel{text-align:center;background:#172632f5;border:3px solid #879997;box-shadow:6px 7px #0b151f80;padding:35px;max-width:480px;width:100%}.end-panel h1{font-size:35px;color:#f8d791}.end-panel p{font-size:12px;line-height:1.8;color:#c5d7d8}.end-stats{display:flex;justify-content:center;gap:25px;margin:23px 0}.end-stats span{font-size:10px;color:#a5bec6}.end-stats strong{display:block;font-size:22px;color:#e4eadc;margin-bottom:5px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.night .location{color:#d4c1ee}.night .battlefield{background:#080e2a}@keyframes acquire{0%{transform:translateY(-30px);opacity:0;box-shadow:0 0 25px #ffdf91}100%{transform:translateY(0);opacity:1}}@keyframes upgrade{0%,40%{background:#8d7444;box-shadow:0 0 22px #ffdf91}100%{background:#1b242d}}
@media(min-width:1500px){.sequence-deck{padding-left:calc((100% - 1160px)/2);padding-right:calc((100% - 1160px)/2)}}
@media(max-width:700px){.hud{height:62px;padding:10px 13px;gap:18px}.health-block{width:150px}.journey{width:auto;flex:1}.journey-label>span{display:none}.journey-label{justify-content:flex-end}.utilities{gap:5px}.small-button{width:30px;height:31px}.sequence-deck{padding:11px 11px 8px}.section-kicker{display:none}.sequence-heading{margin-bottom:7px}.slot{flex:1 0 88px;min-width:88px;height:89px}.skill-strip{gap:8px}.sequence-bottom{align-items:flex-start;flex-direction:column;gap:2px;min-height:29px}.reorder{align-self:flex-end;height:28px}.sequence-bottom:has(.reorder:not([hidden])) p{display:none}.sequence-state{font-size:10px}.sequence-heading strong{font-size:12px}.location{top:15px;font-size:9px}.combat-caption{top:37px;font-size:11px}.intent{left:65%;top:50%;font-size:10px}.ready-panel{bottom:14px}.ready-panel p{font-size:10px}.primary-button{padding:10px 18px;font-size:13px}.choice-panel{max-width:450px}h1{font-size:24px}.choice-panel>p{font-size:11px;line-height:1.6;margin-bottom:13px}.eyebrow{font-size:9px;margin-bottom:6px}.choices{grid-template-columns:1fr;gap:8px}.choice{min-height:92px;display:grid;grid-template-columns:43px 1fr;column-gap:12px;padding:10px 13px;border-bottom-width:3px;align-items:start}.choice .skill-icon{grid-column:1;grid-row:1 / 5;width:39px;height:39px;margin:11px 0 0}.choice-kind{grid-column:2;font-size:8px}.choice-name{grid-column:2;font-size:13px;margin:2px 0 3px}.choice-description{grid-column:2;font-size:10px;line-height:1.4;margin:0 0 4px;padding-right:8px}.choice-effect{grid-column:2;padding-top:4px;font-size:9px;border-color:#44565c}.choice-arrow{top:10px;right:12px;font-size:14px}.choice-panel>.choice-note{font-size:9px;margin:9px 3px 0}.overlay{padding:13px}.end-panel{padding:25px 20px}.end-panel h1{font-size:29px}.end-stats{gap:20px}.health-label{font-size:10px}.health-label strong{font-size:10px}}
@media(max-height:680px){.game{min-height:500px}.hud{height:54px}.sequence-deck{padding-top:7px;padding-bottom:4px}.slot{height:76px}.slot .skill-icon{width:27px;height:27px}.sequence-heading{margin-bottom:4px}.choice{min-height:172px;padding:12px}.choice .skill-icon{width:34px;height:34px;margin:3px 0 6px}.choice-panel>p{margin-bottom:10px}.choice-description{font-size:10px}.choice-name{font-size:14px}.location{top:10px}.combat-caption{top:30px}}
@media(max-height:680px) and (max-width:700px){.choice{min-height:76px;padding:7px 10px;column-gap:8px;grid-template-columns:34px 1fr}.choice .skill-icon{width:31px;height:31px;margin-top:10px}.choice-description{font-size:9px}.choice-effect{font-size:8px;padding-top:2px}.choice-panel>p{font-size:10px;margin-bottom:7px}.choice-panel h1{font-size:21px}.choice-kind{font-size:8px}.choice-name{font-size:12px}.choices{gap:6px}.eyebrow{font-size:8px}.choice-panel>.choice-note{margin-top:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.travel-status{position:absolute;top:69px;left:0;right:0;text-align:center;font-size:10px;font-weight:800;color:#f2eccd;text-shadow:0 1px 2px #152a31;font-variant-numeric:tabular-nums;pointer-events:none}
@media(max-width:700px){.travel-status{top:55px;font-size:10px}}
@media(max-height:680px){.travel-status{top:47px}}

.order-status{margin:1px 3px 3px;color:#efcf88;font-size:10px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.slot[draggable="true"]{cursor:grab}.slot[draggable="true"]:active{cursor:grabbing}.reorder button{min-width:34px;min-height:30px}.sequence-bottom{min-width:0}.sequence-bottom p{min-width:0}
@media(max-width:700px){.sequence-bottom{flex-direction:row;align-items:center;gap:6px;flex-wrap:wrap}.sequence-bottom:has(.reorder:not([hidden])) p{display:block}.sequence-bottom p{flex:1 1 160px;font-size:9px}.reorder{align-self:center;height:32px}.reorder span{max-width:112px;overflow:hidden;text-overflow:ellipsis}.order-status{font-size:9px}}
/* Reserve the notice line so queue/apply does not resize the canvas or jump the scene. */
.order-status{height:15px;min-height:15px}.order-status[hidden]{display:block!important;visibility:hidden}
