:root{--bg: #15171c;--panel: #1f2229;--panel-2: #272b34;--line: #3a3f4b;--text: #e8e9ec;--muted: #9aa0ad;--accent: #f3c969;--fire: #e2622f;--fire-light: #ffb088;--water: #3c8fd9;--water-light: #9ed0ff;--nature: #4ea64a;--nature-light: #a9e69a;--stone: #a0896b;--stone-light: #e0cfb5;--storm: #8f6ff0;--storm-light: #d3c3ff;--neutral: #7c8290;--neutral-light: #c7ccd6;--block: #6bb3e8;--burn: #ff7a45;--wet: #5fb8ff;--shock: #d1b3ff;--brittle: #bfe9f2;--radius: 10px;--motion: .16s}body.reduce-motion{--motion: 0ms}@media(prefers-reduced-motion:reduce){:root{--motion: 0ms}}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button{font:inherit;color:inherit}kbd{font:11px/1 ui-monospace,Menlo,Consolas,monospace;background:#0f1115;border:1px solid var(--line);border-radius:4px;padding:2px 5px;margin-left:6px;color:var(--muted)}.muted{color:var(--muted)}.small{font-size:12.5px}.app{max-width:1240px;margin:0 auto;padding:12px 16px 32px}.app__head{display:flex;align-items:baseline;gap:14px;margin-bottom:10px}.app__head h1{font-size:22px;margin:0;letter-spacing:.04em}.app--landing{min-height:100vh;display:flex;align-items:center;justify-content:center}.landing__card{max-width:560px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:28px 32px 22px}.landing__title{font-size:40px;margin:0;letter-spacing:.06em;color:var(--accent)}.landing__tag{margin:2px 0 14px;color:var(--muted)}.landing__play{font-size:18px;padding:12px 36px;margin:4px 0 18px}.landing__controls{margin:0 0 14px;padding-left:18px}.landing__controls li{margin-bottom:6px}.landing__controls strong{display:inline-block;min-width:86px}.landing__home{margin:0 0 14px;padding:8px 12px;border:1px solid rgba(243,201,105,.35);border-radius:8px;background:#f3c96914;font-size:14px}.btn{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:8px 14px;cursor:pointer;transition:background var(--motion),transform var(--motion)}.btn:hover:not(:disabled){background:#313642}.btn:focus-visible,.card:focus-visible,.party__slot:focus-visible,.ench__slot--choose:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn:disabled{opacity:.45;cursor:not-allowed}.btn--primary{background:var(--accent);color:#1a1400;border-color:transparent;font-weight:600}.picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px 18px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px}.picker label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.picker select,.picker input[type=number]{font:inherit;color:var(--text);background:var(--panel-2);border:1px solid var(--line);border-radius:6px;padding:7px 9px}.picker__check{flex-direction:row!important;align-items:center}.picker button[type=submit]{grid-column:1 / -1;justify-self:start}.picker p{grid-column:1 / -1;margin:0}.battle{display:grid;grid-template-columns:1fr 340px;grid-template-areas:"enemy middle" "player middle";gap:12px}.battle__side{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:10px}.battle__side--enemy{grid-area:enemy}.battle__side--player{grid-area:player}.battle__middle{grid-area:middle;display:flex;flex-direction:column;gap:10px;min-height:0}@media(max-width:900px){.battle{grid-template-columns:1fr;grid-template-areas:"enemy" "middle" "player"}}.status{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;font-size:13.5px}.energy{display:inline-flex;align-items:center;gap:3px}.energy__pip{width:12px;height:12px;border-radius:50%;border:1px solid var(--accent);display:inline-block}.energy__pip--on{background:var(--accent)}.creature{display:grid;grid-template-columns:88px 1fr;gap:12px;padding:10px;border-radius:var(--radius);background:var(--panel-2);border:1px solid var(--line);transition:box-shadow var(--motion),transform var(--motion)}.creature--hit{box-shadow:0 0 0 3px var(--burn) inset;transform:translate(-3px)}.creature--heal{box-shadow:0 0 0 3px var(--nature) inset}.creature__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.creature__stats{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}.creature__passive{margin-top:6px;color:var(--muted)}.intent{margin-left:auto;background:#3a2f12;border:1px solid #6a5420;color:var(--accent);border-radius:6px;padding:2px 8px;font-size:12.5px}.hpbar,.bond{position:relative;height:20px;background:#0f1115;border-radius:6px;overflow:hidden;margin-top:6px;border:1px solid var(--line)}.hpbar__fill{display:block;height:100%;background:linear-gradient(90deg,#58c26b,#9be08a);transition:width calc(var(--motion) * 2)}.bond__fill{display:block;height:100%;background:linear-gradient(90deg,#d8a7ff,#f1d7ff);transition:width calc(var(--motion) * 2)}.hpbar__text,.bond__text{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;color:#fff;text-shadow:0 1px 2px #000}.portrait{--el: var(--neutral);--el-light: var(--neutral-light);flex:none}.portrait--fire{--el: var(--fire);--el-light: var(--fire-light)}.portrait--water{--el: var(--water);--el-light: var(--water-light)}.portrait--nature{--el: var(--nature);--el-light: var(--nature-light)}.portrait--stone{--el: var(--stone);--el-light: var(--stone-light)}.portrait--storm{--el: var(--storm);--el-light: var(--storm-light)}.portrait--ko{filter:grayscale(1) brightness(.5)}.chip{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid var(--line);background:var(--panel)}.chip--fire{border-color:var(--fire);color:var(--fire-light)}.chip--water{border-color:var(--water);color:var(--water-light)}.chip--nature{border-color:var(--nature);color:var(--nature-light)}.chip--stone{border-color:var(--stone);color:var(--stone-light)}.chip--storm{border-color:var(--storm);color:var(--storm-light)}.chip--neutral{color:var(--neutral-light)}.chip--block{background:var(--block);color:#06263d;border-color:transparent}.chip--burn{background:var(--burn);color:#2a0d00;border-color:transparent}.chip--wet{background:var(--wet);color:#002340;border-color:transparent}.chip--shock{background:var(--shock);color:#241247;border-color:transparent}.chip--brittle{background:var(--brittle);color:#0b2f38;border-color:transparent}.chip--mod{border-style:dashed}.party{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.party__slot{display:grid;grid-template-columns:40px 1fr;grid-template-areas:"img name" "img hp" "img tags";gap:0 8px;align-items:center;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:6px 10px 6px 6px;text-align:left;cursor:default;min-width:150px}.party__slot .portrait{grid-area:img}.party__name{grid-area:name;font-weight:600;font-size:13px}.party__hp{grid-area:hp;font-size:12px;color:var(--muted)}.party__tags{grid-area:tags;display:flex;gap:3px}.party__slot--active{border-color:var(--accent)}.party__slot--ko{opacity:.5}.party__slot--can{cursor:pointer;border-style:dashed}.party__slot--can:hover{background:#313642}.party__slot:disabled:not(.party__slot--active){opacity:.6}.party__prompt{color:var(--accent);font-weight:600}.dot{width:14px;height:14px;border-radius:50%;font-size:9px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;color:#000}.dot--burn{background:var(--burn)}.dot--wet{background:var(--wet)}.dot--shock{background:var(--shock)}.dot--brittle{background:var(--brittle)}.ench{display:flex;flex-wrap:wrap;gap:8px}.ench__slot{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:6px 8px;display:flex;gap:8px;align-items:center;font-size:12.5px;background:var(--panel-2);text-align:left}.ench__slot--choose{cursor:pointer;border:2px solid var(--accent)}.hand{display:flex;gap:10px;flex-wrap:wrap;min-height:150px;align-items:flex-start}.card{--el: var(--neutral);position:relative;width:150px;min-height:150px;border-radius:10px;border:1px solid var(--el);background:linear-gradient(180deg,var(--panel-2),var(--panel));padding:10px;text-align:left;display:flex;flex-direction:column;gap:4px;cursor:pointer;transition:transform var(--motion),box-shadow var(--motion)}.card--fire{--el: var(--fire)}.card--water{--el: var(--water)}.card--nature{--el: var(--nature)}.card--stone{--el: var(--stone)}.card--storm{--el: var(--storm)}.card:hover:not(:disabled),.card:focus-visible{transform:translateY(-6px);box-shadow:0 8px 22px #00000073;z-index:2}.card--disabled{opacity:.5;cursor:not-allowed}.card--affinity{box-shadow:0 0 0 1px var(--el),0 0 12px -2px var(--el)}.card__cost{position:absolute;top:-8px;left:-8px;min-width:26px;padding:0 4px;box-sizing:border-box;height:26px;border-radius:13px;background:var(--accent);color:#1a1400;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid var(--bg)}.card__cost--up{background:var(--burn)}.card__cost--down{background:#8be0a0}.card__hotkey{position:absolute;top:-8px;right:-6px;font:11px/1 ui-monospace,monospace;background:#0f1115;border:1px solid var(--line);border-radius:4px;padding:2px 5px;color:var(--muted)}.card__name{font-weight:700;margin-top:6px}.card__type{font-size:11.5px;color:var(--el);text-transform:capitalize}.card__text{font-size:12.5px;color:var(--text)}.card__preview{margin-top:auto;display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--accent);border-top:1px dashed var(--line);padding-top:4px}.card__reason{margin-top:auto;font-size:11.5px;color:var(--burn)}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.actions .btn:last-child{margin-left:auto;background:var(--accent);color:#1a1400;font-weight:600}.choice{background:#3a2f12;border:1px solid #6a5420;color:var(--accent);padding:8px 10px;border-radius:8px}.log{flex:1;min-height:200px;max-height:560px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:8px 10px;font-size:12.5px}.log__entry{padding:4px 0 4px 8px;border-left:3px solid var(--line);margin-bottom:4px}.log__entry--enemy{border-left-color:var(--burn)}.log__entry--player{border-left-color:var(--block)}.log__head{font-weight:600}.log__line{color:var(--muted)}.toast{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%);background:#3a2f12;border:1px solid #6a5420;color:var(--accent);padding:8px 14px;border-radius:8px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center}.overlay__card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px 32px;text-align:center}.overlay__card h2{margin:0 0 6px}.tabs{display:inline-flex;gap:4px;margin-left:12px;align-items:center}.tabs--sub{display:flex;margin:0 0 12px;flex-wrap:wrap}.tabs__note{margin-left:auto;font-size:13px}.tab{background:transparent;border:1px solid transparent;border-radius:999px;padding:6px 14px;cursor:pointer;color:var(--muted)}.tab:hover,.tab:focus-visible{color:var(--text);border-color:var(--line)}.tab--active{color:var(--text);background:var(--panel-2);border-color:var(--line)}.camp{padding:12px 16px 32px;max-width:1200px;margin:0 auto}.grid{display:grid;gap:16px}.grid--2{grid-template-columns:1fr 1fr}@media(max-width:900px){.grid--2{grid-template-columns:1fr}}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}.panel h4{margin:14px 0 4px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.plain{list-style:none;padding:0;margin:0}.creature-card{display:grid;grid-template-columns:64px 1fr;gap:12px;padding:10px;margin:8px 0;background:var(--panel-2);border:1px solid var(--line);border-radius:var(--radius)}.creature-card--ko{opacity:.75}.creature-card header{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px}.creature-card .hpbar{margin:4px 0}.creature-card__actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.nick{background:transparent;border:1px solid transparent;border-radius:6px;color:var(--text);font:inherit;font-weight:700;padding:2px 6px;width:11ch}.nick:hover,.nick:focus{border-color:var(--line);background:var(--panel)}.xpbar{position:relative;height:14px;background:#0f1115;border-radius:7px;overflow:hidden;margin:4px 0}.xpbar__fill{position:absolute;inset:0 auto 0 0;background:var(--accent);opacity:.6}.xpbar__text{position:relative;font-size:11px;line-height:14px;padding-left:6px;color:var(--text)}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;color:var(--muted);font-weight:500;font-size:12px;padding:4px 6px;border-bottom:1px solid var(--line)}.table td{padding:6px;border-bottom:1px solid var(--line);vertical-align:top}.stepper{white-space:nowrap}.stepper span{display:inline-block;min-width:2ch;text-align:center}.bars__row{display:grid;grid-template-columns:2ch 1fr 3ch;gap:8px;align-items:center;font-size:13px;margin:2px 0}.bars__bar{height:10px;background:var(--block);border-radius:5px;min-width:2px}.nodes{padding-left:20px;margin:8px 0 12px}.node{padding:3px 0;color:var(--muted)}.node--done,.node--won,.node--rested,.node--recruited{color:var(--text);text-decoration:line-through;text-decoration-color:var(--line)}.node--lost{color:var(--fire-light)}.node--current{color:var(--accent);font-weight:600}.world{display:flex;flex-direction:column;gap:.6rem;padding:.8rem 1rem 1.2rem;max-width:1000px;margin:0 auto}.world__stage{position:relative;width:100%;background:#0b0f0c;border:1px solid #2b3330;border-radius:10px;overflow:hidden;line-height:0}.world__canvas{display:block;width:100%;height:auto;image-rendering:pixelated;image-rendering:crisp-edges}.tabs__group{align-self:center;margin-left:.8rem;padding-right:.2rem;text-transform:uppercase;letter-spacing:.08em}.hud{display:flex;flex-direction:column;gap:.35rem;padding:.6rem .9rem;background:var(--panel, #171c19);border:1px solid #2b3330;border-radius:10px;line-height:1.35}.hud__row{display:flex;gap:1rem;align-items:baseline;flex-wrap:wrap}.hud__keys{margin-left:auto}.hud__party{display:flex;gap:1rem;flex-wrap:wrap}.hud__member{display:flex;gap:.5rem;align-items:center}.hud__member--ko{opacity:.55}.hpbar--mini{display:inline-block;width:90px;height:8px;min-height:0;padding:0;vertical-align:middle}.hpbar--mini .hpbar__fill{height:100%}.hud__line{min-height:1.35em}.hud__prompt{font-weight:600}.hud__nosave{padding:1px 8px;border-radius:999px;background:#8b1e1e;color:#fff;font-size:13px;font-weight:700;white-space:nowrap}.savebox__failed{color:#ffb4a0}.dialogue{position:absolute;left:4%;right:4%;bottom:4%;padding:.8rem 1rem;background:#0e1210f0;border:1px solid #4a5a52;border-radius:10px;line-height:1.4;box-shadow:0 8px 30px #00000080}.dialogue__speaker{font-weight:700;color:#ffd36a;margin-bottom:.2rem}.dialogue__line{margin:0 0 .6rem;font-size:1.05rem}.dialogue__actions{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.overlay--world{position:absolute;top:0;right:0;bottom:0;left:0;line-height:1.4}.overlay__card--wide{max-width:560px;text-align:left}.overlay--menu{align-items:stretch;justify-content:stretch;padding:.6rem}.overlay--menu .menu{width:100%;overflow:auto;background:var(--bg, #101412);border-radius:10px;border:1px solid #2b3330}.overlay--menu .camp{padding:.6rem}.quest{border-top:1px solid var(--line, #444);padding:.5rem 0}.quest h4{margin:0 0 .25rem}.quest ol{margin:.25rem 0 .25rem 1.25rem;padding:0}.journal{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem}.journal__page{border:1px solid var(--line, #444);border-radius:6px;padding:.5rem .75rem;background:var(--panel-2, rgba(255, 255, 255, .03))}.journal__page h4{margin:0 0 .25rem}.journal__page--unknown{opacity:.55}.journal__page dl{margin:.25rem 0 0}.journal__page dt,dl.small dt{font-weight:600;margin-top:.35rem}.journal__page dd,dl.small dd{margin:0 0 0 .75rem}.xpbar{height:16px;border-radius:8px}.xpbar__text{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;padding-left:8px;font-size:11px;line-height:1;color:var(--text);text-shadow:0 1px 2px #000}.portrait{position:relative;display:inline-block}.portrait svg,.portrait__sprite{position:absolute;top:0;right:0;bottom:0;left:0;display:block}.portrait__sprite{image-rendering:pixelated}.banner{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;padding:6px 10px;border-radius:8px;background:#ffd36a14;border:1px solid rgba(255,211,106,.25)}.banner__rule{color:var(--accent);font-size:12.5px}.overlay--intro{background:#000000c7;cursor:pointer}.intro{text-align:center;animation:intro-in .42s ease-out}.intro__title{font-size:1.8rem;font-weight:700;color:var(--accent);margin-bottom:.4rem}.intro__rule{margin-bottom:.6rem}@keyframes intro-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.battle--enter{animation:battle-in .5s ease-out}@keyframes battle-in{0%{opacity:0}to{opacity:1}}.reduce-motion .battle--enter,.reduce-motion .intro{animation:none}.btn--ready{background:#d8a7ff;color:#1a0a24;font-weight:600;animation:ready-pulse 1.2s ease-in-out infinite}@keyframes ready-pulse{0%,to{box-shadow:0 0 #d8a7ff99}50%{box-shadow:0 0 0 6px #d8a7ff00}}.reduce-motion .btn--ready{animation:none}.chip--muted{color:var(--muted);border-color:var(--line)}.log__tools{display:flex;justify-content:flex-end;margin-bottom:4px}.fight{position:relative;display:flex;flex-direction:column;gap:10px;max-width:1000px;margin:0 auto}.fight__bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:7px 12px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);font-size:13.5px}.fight__bar .banner{padding:2px 8px}.fight__spacer{flex:1}.fight__speed{display:inline-flex;align-items:center;gap:6px}.fight__speed select{background:#0f1115;color:var(--text);border:1px solid var(--line);border-radius:6px;padding:3px 6px;font:inherit;font-size:13px}.stage{position:relative;width:100%;max-width:max(560px,calc((100vh - 360px)*1.6));margin:0 auto;aspect-ratio:640 / 400;background:#0b0f0c;border:1px solid #2b3330;border-radius:10px;overflow:hidden;line-height:1.3}.stage__canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges}.stage>*:not(.stage__canvas){position:absolute}.stage__frame{top:0;left:50%;height:100%;aspect-ratio:640 / 400;transform:translate(-50%)}.stage__fx{pointer-events:none}.stage__fx>*{position:absolute}.sbox{background:#0a0c10d1;border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:6px 9px;width:31%;min-width:190px;display:flex;flex-direction:column;gap:4px;font-size:12.5px}.sbox--enemy{left:2%;top:3%}.stage .corner--enemy{left:2%;top:3%;width:31%;min-width:190px;display:flex;flex-direction:row;align-items:flex-start;gap:8px}.corner .sbox{position:static;flex:1 0 auto;width:100%}.corner .party{position:static;flex:0 0 auto}.sbox--player{right:2%;bottom:13%}.sbox--ko{opacity:.6}.sbox__head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.sbox__name{font-size:14px}.sbox__chips{display:flex;flex-wrap:wrap;gap:4px}.sbox__chips:empty{display:none}.sbox__carry{display:flex;align-items:center;gap:5px;color:#f4d58a;line-height:1.2}.item-glyph{flex:none;width:8px;height:7px;margin-top:1px;background:#c9893a;border:1px solid #f4d58a;box-shadow:inset 0 2px #8a5a22;image-rendering:pixelated}.choice--items .choice__pick:disabled{opacity:.55}.sbox__clue{color:var(--muted);font-style:italic;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.bond--locked{background:repeating-linear-gradient(135deg,rgba(255,255,255,.06) 0 4px,transparent 4px 8px);border-style:dashed}.bond--locked .bond__text{opacity:.9}.sbox__passive{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hpbar--sbox{height:16px;margin-top:0}.hpbar--sbox .hpbar__text{font-size:11.5px}.hpbar--mid .hpbar__fill{background:linear-gradient(90deg,#d8b23a,#f1d97a)}.hpbar--low .hpbar__fill{background:linear-gradient(90deg,#c4452f,#ef7a60)}.bond--sbox{height:12px;margin-top:0}.bond--sbox .bond__text{font-size:10.5px}.chip--tiny{padding:1px 6px;font-size:11px}.intent--tiny{margin-left:0;font-size:11px;padding:1px 6px}.stage .party--enemy{left:2%;top:30%}.stage .ench{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:26%}.stage .ench--enemy{align-items:flex-end}.stage .ench--enemy{right:2%;top:3%}.stage .ench--player{left:2%;top:48%}.stage .ench__slot{min-height:0;width:auto;font-size:11px;padding:2px 7px;background:#0a0c10cc;border:1px solid rgba(255,255,255,.18);border-radius:6px;color:var(--text)}.stage .ench__slot .small{display:none}.stage .ench__slot .chip{padding:1px 6px;font-size:11px}.stage .ench__slot--choose{cursor:pointer;border-color:var(--accent)}.caption{left:0;right:0;bottom:0;padding:7px 12px;background:#080a0ed1;border-top:1px solid rgba(255,255,255,.1);text-align:center;font-size:14.5px;min-height:2.4em}.caption--idle{color:var(--muted)}.turnbanner{left:50%;top:42%;transform:translate(-50%,-50%);padding:8px 28px;background:#080a0edb;border:1px solid var(--accent);color:var(--accent);font-weight:700;font-size:21px;letter-spacing:.04em;border-radius:6px;pointer-events:none;animation:banner-in var(--beat, .5s) ease-out both}.turnbanner--enemy{border-color:var(--burn);color:var(--burn)}@keyframes banner-in{0%{opacity:0;transform:translate(-60%,-50%)}20%{opacity:1;transform:translate(-50%,-50%)}80%{opacity:1;transform:translate(-50%,-50%)}to{opacity:0;transform:translate(-40%,-50%)}}.pop{transform:translate(-50%,-50%);font-weight:800;font-size:27px;color:#fff;text-shadow:0 2px 0 #000,0 0 6px #000;pointer-events:none;white-space:nowrap;animation:pop-up 1.1s ease-out both}.pop--hit{color:#ffd7c2}.pop--burn{color:var(--burn)}.pop--lose{color:#d8d8d8}.pop--heal{color:#a9e69a}.pop--block{color:var(--block);font-size:18px}.pop--bond{color:#e8c8ff;font-size:18px}.pop--status{font-size:17px}.pop--wet{color:var(--wet)}.pop--shock{color:var(--shock)}.pop--brittle{color:var(--brittle)}.pop--status.pop--burn{color:var(--burn)}.pop--trigger{color:var(--accent);font-size:14.5px;font-weight:600}.pop--sig{color:var(--accent);font-size:20px}@keyframes pop-up{0%{opacity:0;transform:translate(-50%,-30%) scale(.7)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}30%{transform:translate(-50%,-55%) scale(1)}to{opacity:0;transform:translate(-50%,-115%) scale(1)}}.reveal{--el: var(--neutral);left:37%;top:7%;width:118px;padding:8px 10px;border-radius:8px;border:1px solid var(--el);background:linear-gradient(180deg,var(--panel-2),var(--panel));box-shadow:0 10px 24px #00000080;display:flex;flex-direction:column;gap:2px;pointer-events:none;animation:reveal-in 1.1s ease-out both}.reveal--fire,.flight--fire{--el: var(--fire)}.reveal--water,.flight--water{--el: var(--water)}.reveal--nature,.flight--nature{--el: var(--nature)}.reveal--stone,.flight--stone{--el: var(--stone)}.reveal--storm,.flight--storm{--el: var(--storm)}.reveal__cost{position:absolute;top:-9px;left:-9px;min-width:24px;padding:0 4px;box-sizing:border-box;height:24px;border-radius:12px;background:var(--accent);color:#1a1400;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:13px;border:2px solid var(--bg)}.reveal__name{font-weight:700;font-size:13.5px}.reveal__type{font-size:11px;color:var(--el);text-transform:capitalize}@keyframes reveal-in{0%{opacity:0;transform:translateY(14px) scale(.8)}22%{opacity:1;transform:none}78%{opacity:1;transform:none}to{opacity:0;transform:translateY(-10px)}}.flight{--el: var(--neutral);width:72px;height:50px;border-radius:6px;border:1px solid var(--el);background:linear-gradient(180deg,var(--panel-2),var(--panel));box-shadow:0 0 16px -2px var(--el);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px;pointer-events:none;animation:flight var(--ms, .45s) cubic-bezier(.3,.6,.4,1) both}@keyframes flight{0%{transform:translate(-50%,-50%) translate(0) scale(1) rotate(0);opacity:1}80%{opacity:1}to{transform:translate(-50%,-50%) translate(var(--dx),var(--dy)) scale(.5) rotate(14deg);opacity:0}}.fight__bottom{display:grid;grid-template-columns:180px minmax(0,1fr) 200px;gap:12px;align-items:stretch}.fight__left,.fight__actions{display:flex;flex-direction:column;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:10px}.fight__actions .btn{display:flex;justify-content:space-between;align-items:center}.btn--end{background:var(--accent);color:#1a1400;font-weight:600}.fight .hand{position:relative;display:flex;justify-content:center;align-items:flex-end;flex-wrap:nowrap;gap:0;min-height:196px;padding:28px 10px 8px;container-type:inline-size}.fight .hand .card{width:136px;min-height:158px;margin:0 clamp(-48px,calc((100cqw - 20px - var(--n, 4) * 136px) / (2 * var(--n, 4))),-5px);transform:rotate(calc(var(--i, 0) * 3.5deg)) translateY(calc(var(--d, 0) * 7px));transform-origin:50% 130%;transition:transform var(--motion),box-shadow var(--motion),filter var(--motion)}.fight .hand .card:hover:not(:disabled),.fight .hand .card:focus-visible{transform:rotate(0) translateY(-24px) scale(1.06);z-index:3}.fight .hand--waiting .card{filter:saturate(.6) brightness(.8)}.hand__empty{align-self:center}.fight .party{display:flex;gap:6px;flex-wrap:wrap}.fight .party__slot{display:flex;flex-direction:column;align-items:center;gap:3px;width:50px;min-width:0;padding:4px 3px;border-radius:8px;background:#0a0c10b3;border:1px solid var(--line);color:inherit;cursor:default}.fight .party__slot--active{border-color:var(--accent)}.fight .party__slot--can{cursor:pointer;border-color:var(--block)}.fight .party__slot--can:hover{background:#1b2634}.fight .party__slot--ko{opacity:.5}.fight .party__hp{width:40px;height:5px;margin:0}.fight .party__tags{display:flex;gap:2px;min-height:8px}.stage .party--enemy .party__slot{width:42px;padding:3px 2px;background:#0a0c1099}.fight__pips{display:flex;align-items:center;gap:6px;font-size:12.5px}.fight__pips .energy__pip{width:14px;height:14px}.energy-meter__num{min-width:1.4em;font-weight:700;font-size:16px;color:var(--accent);text-align:right}.energy-meter__bar{display:flex;gap:2px;width:120px;height:12px}.energy-meter__seg{flex:1 1 0;min-width:0;border-radius:2px;border:1px solid var(--accent);opacity:.55}.energy-meter__seg--on{background:var(--accent);opacity:1}.energy-meter__seg--extra{border-color:#8be0ff}.energy-meter__seg--extra.energy-meter__seg--on{background:#8be0ff}.energy-meter__next{font-size:12px;font-weight:700;color:#8be0ff}.fight__log{position:absolute;right:0;top:54px;bottom:0;width:36%;min-width:300px;z-index:5;display:flex;flex-direction:column}.fight__log .log{flex:1;max-height:none;box-shadow:-10px 0 30px #00000080}@media(max-width:900px){.fight__bottom{grid-template-columns:1fr}.sbox{min-width:150px;font-size:11px}.fight .hand{flex-wrap:wrap}}.reduce-motion .pop,.reduce-motion .turnbanner,.reduce-motion .reveal,.reduce-motion .flight{animation:none}.reduce-motion .flight{display:none}.turnbanner--sig{top:30%;font-size:24px;letter-spacing:.08em;text-transform:uppercase;border-width:2px;box-shadow:0 0 24px -4px currentColor}.turnbanner--sig.turnbanner--enemy{top:56%}.pop--big{font-size:36px}.settings .setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}.settings .setting select,.settings .setting input[type=range]{min-width:140px}.settings h3+h3,.settings .row+h3,.settings p+h3{margin-top:18px}.table--keys td{vertical-align:middle}.keybtn kbd{font-size:12px;padding:3px 8px}.keybtn--listening{outline:2px solid var(--accent);outline-offset:2px;animation:keybtn-pulse .9s ease-in-out infinite}@keyframes keybtn-pulse{50%{outline-color:transparent}}.reduce-motion .keybtn--listening{animation:none}.mastery{margin:6px 0 2px;display:grid;gap:4px}.mastery__row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mastery__row--ready{padding:6px 8px;border:1px dashed var(--accent);border-radius:8px}.mastery__choice{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:stretch;width:100%}.mastery__choice>.small{grid-column:1 / -1}.mastery__branch{display:grid;gap:2px;text-align:left;white-space:normal;align-content:start}.mastery__branch b{color:var(--accent)}.mastery__head{margin:6px 0 0;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.mastery__base{flex:1 1 12rem}.mastery__forget{display:flex;flex-wrap:wrap;gap:4px;width:100%;padding-top:4px;border-top:1px dashed var(--line)}.mastery__forget>.small{width:100%}.mastery__drop{white-space:normal;text-align:left}.mastery__learning{display:flex;flex-wrap:wrap;gap:4px}.mastery__chip{padding:2px 7px;border:1px solid var(--line);border-radius:10px;white-space:nowrap}.card--mastered{box-shadow:0 0 0 1px var(--accent) inset}.card__mastery{display:block;font-size:10.5px;color:var(--accent);letter-spacing:.02em}.sicon{display:inline-block;vertical-align:-2px}.sicon--inline{margin-right:4px;vertical-align:-1px}.chip--burn-text{color:var(--burn)}.chip--wet-text{color:var(--wet)}.chip--shock-text{color:var(--shock)}.chip--block-text{color:var(--block)}.dot .sicon{display:block;margin:auto;color:#111}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tab:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tier{margin-left:6px;text-transform:none}.tier--common{border-color:var(--nature);color:var(--nature-light)}.tier--uncommon{border-color:var(--water);color:var(--water-light)}.tier--rare{border-color:var(--accent);color:var(--accent)}.habitat+.habitat{margin-top:10px}.btn--flee-armed{border-color:var(--burn);color:var(--burn)}.tab:disabled{opacity:.45;cursor:not-allowed}html,body{touch-action:manipulation;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}.world__canvas,.stage__canvas{touch-action:none}.card--raised:not(:disabled){transform:translateY(-6px);box-shadow:0 8px 22px #00000073;z-index:2}.fight .hand .card--raised:not(:disabled){transform:rotate(0) translateY(-24px) scale(1.06);z-index:3}.hud__menu{display:none;margin-left:auto}@media(pointer:coarse){.btn,.tab{min-height:44px}.hud__keys,.ending__key,.caption__skip,.card__hotkey,kbd{display:none}.hud__menu{display:inline-flex;align-items:center}}.card--rare{border-color:#e8c25a;box-shadow:0 0 0 1px #e8c25a,0 0 14px -3px #e8c25a}.card--rare.card--affinity{box-shadow:0 0 0 1px #e8c25a,0 0 14px -2px var(--el)}.card__star,.rare-star{color:#e8c25a}.reveal--rare{border:2px solid #e8c25a;box-shadow:0 0 0 1px #e8c25a80,0 0 22px #e8c25a8c,0 10px 24px #00000080}.reveal--rare .reveal__name{color:#f3d77e}.choice__pick{margin:2px 4px 2px 0}.chip--pending{border-color:#8fb3ff;color:#cfe0ff}.app--bare{max-width:none;padding:0}.app--bare .world{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr);gap:10px;height:100vh;max-width:none;margin:0;padding:10px}@supports (height: 100dvh){.app--bare .world{height:100dvh}}.app--bare .world__stage{align-self:center;justify-self:center;width:min(100%,calc((100vh - 20px) * 640 / 416))}.app--bare .hud{display:flex;flex-direction:column;align-self:stretch;overflow-y:auto}.app--bare .hud__row{flex-direction:column;align-items:flex-start;gap:4px}.app--bare .hud__row>strong{font-size:17px}.app--bare .hud__keys{margin-left:0}.app--bare .hud__party{flex-direction:column;gap:6px}.app--bare .hud__menu{display:inline-flex;justify-content:center;align-self:stretch;margin:auto 0 0;min-height:40px;font-weight:600}.app--bare>.fight{padding:10px 12px 16px}@media(max-width:900px){.app--bare .world{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;height:auto}.app--bare .world__stage{width:100%}}.card__pips{position:absolute;top:19px;left:-6px;width:26px;height:5px;border-radius:3px;background:#3a4048;border:1px solid var(--bg);overflow:hidden;pointer-events:none}.card__pips i{display:block;height:100%;background:var(--accent)}.card__learn{display:none;font-size:11px;color:var(--accent)}@media(pointer:coarse){html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}input,textarea,[contenteditable=true]{-webkit-user-select:text;user-select:text}}.sbox--tap{cursor:pointer}.corner .sbox--tap{position:relative}.sbox--tap .sbox__head{padding-right:14px}.sbox__info{position:absolute;top:6px;right:7px;color:var(--muted);font-size:12px;line-height:1}.inspect{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:16px;background:#0000008c}.inspect__panel{width:min(420px,100%);max-height:100%;overflow:auto;padding:12px 14px;background:#0c0e14fa;border:1px solid var(--line);border-radius:10px;font-size:14px;line-height:1.35;box-shadow:0 8px 30px #00000080}.inspect__head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.inspect__row{margin:9px 0 0}.inspect__row b{display:block;color:var(--accent)}.inspect__close{margin:10px 0 0}:root.handheld .sbox__info{display:none}.fight>.overlay{z-index:30}.card__again{color:var(--muted);font-size:12px}.deadcards{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--fire, #d9643a);border-radius:8px;font-size:.9em;line-height:1.35}.deadcards .btn{flex:0 0 auto}.deck__fit{margin-left:4px}.result__advice{margin:8px 0;padding:8px 10px;border:1px solid var(--line, #3a4640);border-radius:8px;font-size:.92em;line-height:1.4}.result__advice ul{margin:4px 0 0}.result__advice li+li{margin-top:4px}.ending{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:radial-gradient(ellipse at 50% 40%,#16202e,#080b12 70%);color:#e9e4d4;cursor:pointer}.ending__page,.ending__card{max-width:34rem;text-align:center;animation:ending-in .6s ease-out}.ending__who{margin-bottom:.5rem;color:#e8c66a;font-weight:700}.ending__line{margin:0 0 1.5rem;font-size:1.15rem;line-height:1.6}.ending__title{margin:0 0 1rem;color:#e8c66a;letter-spacing:.2em;font-size:1.4rem}.ending__figures{margin:0 0 1.5rem;color:#b9b4a4}@keyframes ending-in{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.ending__page,.ending__card{animation:none}}.stage__canvas.stage__canvas--art,.portrait__sprite.portrait__sprite--art{image-rendering:auto}.portrait__sprite.portrait__sprite--art{width:100%;height:100%}.landing--art{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;background:#12303a}.landing__bg img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;object-position:62% 12%}.landing--art:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background:linear-gradient(90deg,#08181e80,#08181e38 34%,#08181e00 52%);pointer-events:none}.landing__hero{position:absolute;z-index:2;inset:0 auto 0 0;width:min(44%,520px);padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));display:flex;flex-direction:column;justify-content:center;gap:14px}.landing--art .landing__title{margin:0;font-size:0;line-height:0}.landing__wordmark{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 6px rgba(0,20,16,.45))}.landing--art .landing__tag{margin:6px 0 0;color:#fff6dc;font-size:17px;text-shadow:0 1px 3px rgba(0,20,16,.85),0 0 12px rgba(0,20,16,.5)}.landing__foot{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.landing--art .landing__play{margin:0;font-size:22px;padding:14px 54px;border-radius:14px;box-shadow:0 4px 14px #00141073}.landing--art .landing__account{margin:0;color:#fff6dc;text-shadow:0 1px 3px rgba(0,20,16,.85)}.landing__more summary{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;list-style:none;cursor:pointer;padding:6px 18px;border-radius:999px;color:#fff6dc;background:#08181e8c;border:1px solid rgba(255,246,220,.35);font-size:14px}.landing__more summary::-webkit-details-marker{display:none}.landing__sheet{position:fixed;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,560px);max-height:86vh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px 12px;box-shadow:0 10px 40px #0000008c}.landing__more[open] summary{position:fixed;z-index:4;right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top))}.landing__more[open] summary:after{content:" · close"}@media(orientation:portrait){.landing__bg img{object-position:50% 50%}.landing--art:before{background:linear-gradient(180deg,#08181e57,#08181e00 30%,#08181e00 68%,#08181e8c)}.landing__hero{top:0;right:0;bottom:0;left:0;width:auto;justify-content:space-between;padding:max(34px,env(safe-area-inset-top)) 24px max(30px,env(safe-area-inset-bottom))}.landing__head{text-align:center}.landing__wordmark{width:min(88%,440px);margin:0 auto}.landing__foot{align-items:center}}@font-face{font-family:Pixelify Sans;src:url(../fonts/pixelify-sans-latin.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}:root{--bg: #0b0f0c;--panel: #131916;--panel-2: #1c251f;--line: #2f3b34;--rim: #4a5a52;--plate: rgba(10, 12, 16, .86);--radius: 6px;--font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;--font-title: "Pixelify Sans", var(--font-display)}h1,h2,h3,.sec__title,.col__head,.intro__title,.turnbanner,.hud__row>strong,.sbox__name,.card__cost,.ctile__cost,.reveal__cost,.energy-meter__num,.tile__name,.slots__title,.cardtext__name,.tab{font-family:var(--font-display);letter-spacing:.02em}.landing__title{font-family:var(--font-title);letter-spacing:.04em}h3{font-size:19px;font-weight:700}.panel h3{margin:0 0 8px}h4{font-family:var(--font-display);letter-spacing:.04em}.panel,.overlay__card,.landing__card,.picker,.hud,.savebox,.fight__bar,.log,.cardtext{background:var(--panel);border:2px solid var(--line);border-radius:var(--radius)}.panel{padding:12px 14px}.overlay__card{border-color:var(--rim);box-shadow:0 0 0 2px #0b0f0c,0 0 0 4px var(--line),0 16px 48px #0009}.landing__card{border-color:var(--rim);box-shadow:0 0 0 2px #0b0f0c,0 0 0 4px var(--line)}.hud{border-color:var(--line)}.overlay--menu .menu{background:var(--bg);border:2px solid var(--rim);border-radius:var(--radius);box-shadow:0 0 0 2px #0b0f0c,0 0 0 4px var(--line),0 16px 48px #0009}.dialogue{background:var(--plate);border:2px solid var(--rim);border-radius:var(--radius);box-shadow:0 0 0 2px #0b0f0c,0 0 0 3px var(--line),0 8px 30px #00000080}.btn{background:var(--panel-2);border:2px solid var(--line);border-radius:4px;padding:7px 13px;font-weight:600}.btn:hover:not(:disabled){background:#26322a;border-color:var(--rim)}.btn--primary{background:var(--accent);border-color:#b48a2c;color:#1a1400}.btn--primary:hover:not(:disabled){background:#ffd97a;border-color:#b48a2c}.btn--ghost{background:transparent}.btn:disabled{opacity:.4;filter:grayscale(1);cursor:not-allowed}.fight__actions .btn:not(:disabled),.choice .btn:not(:disabled){border-color:var(--accent);color:var(--text)}.fight__actions .btn:hover:not(:disabled),.choice .btn:hover:not(:disabled){background:#2c3326;border-color:#ffd97a}.fight__actions .btn--end:not(:disabled){background:var(--accent);border-color:#b48a2c;color:#1a1400}.fight__actions .btn--end:hover:not(:disabled){background:#ffd97a;border-color:#b48a2c}.fight__actions .btn--ready:not(:disabled){background:#d8a7ff;border-color:#a873d6;color:#1a0a24}.fight__actions .btn.btn--why[aria-disabled=true]{opacity:.4;filter:grayscale(1);cursor:help;background:var(--panel-2);border-color:var(--line);color:var(--text)}.fight__actions .btn--end:disabled,.fight__actions .btn--ready:disabled{color:var(--text)}.fight__actions .btn--flee-armed:not(:disabled){border-color:var(--burn);color:var(--burn)}select,input[type=text],input[type=number]{font:inherit;color:var(--text);background:var(--panel-2);border:2px solid var(--line);border-radius:4px;padding:5px 8px}.nick:hover,.nick:focus{border-color:var(--line);background:var(--panel-2)}kbd{background:#0b0f0c;border-color:var(--line)}.tabs--sub{gap:2px;margin:0 0 10px;padding:0 4px;align-items:flex-end;border-bottom:2px solid var(--line)}.tab{font-size:15px;padding:5px 12px;margin-bottom:-2px;color:var(--muted);background:var(--panel);border:2px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0}.tab:hover,.tab:focus-visible{color:var(--text);border-color:var(--rim)}.tab--active{color:var(--accent);background:var(--panel-2);border-color:var(--rim);box-shadow:0 2px 0 0 var(--panel-2)}.tabs__note{padding-bottom:6px}.chip{border-width:1px}.row,.table th,.table td{border-bottom:1px solid var(--line)}.creature-card,.journal__page,.quest{border-color:var(--line)}.eglyph{display:inline-block;width:10px;height:10px;vertical-align:-1px}.eglyph--fire{color:var(--fire-light)}.eglyph--water{color:var(--water-light)}.eglyph--nature{color:var(--nature-light)}.eglyph--stone{color:var(--stone-light)}.eglyph--storm{color:var(--storm-light)}.eglyph--neutral{color:var(--neutral-light)}.camp{padding:8px 12px 20px;max-width:1200px;margin:0 auto}.camp__bar{position:sticky;top:0;z-index:3;display:flex;align-items:flex-end;gap:6px;margin:0 0 10px;background:var(--bg);border-bottom:2px solid var(--line)}.camp__bar .camp__strip{flex:1 1 auto;min-width:0;margin:0;border-bottom:0}.camp__bar .camp__close{flex:0 0 auto;margin-bottom:4px}.camp__page{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-content:start}.camp__page--2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}@media(max-width:900px){.camp__page--2{grid-template-columns:minmax(0,1fr)}}.sec{background:var(--panel);border:2px solid var(--line);border-radius:var(--radius)}.sec__head{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:6px 10px;background:transparent;border:0;border-radius:var(--radius);color:var(--text);font:inherit;text-align:left;cursor:pointer}.sec__head:hover{background:var(--panel-2)}.sec--open>.sec__head{border-bottom:2px solid var(--line);border-radius:var(--radius) var(--radius) 0 0}.sec__chev{flex:0 0 12px;color:var(--muted);font-size:12px}.sec__title{font-size:16px;font-weight:700}.sec__title .chip{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;letter-spacing:0;margin-left:6px;vertical-align:2px}.sec__summary{margin-left:auto;color:var(--muted);font-size:12.5px;text-align:right;min-width:0}.sec__summary .chip{white-space:normal}.sec__body{padding:10px 12px 12px}.sec__body>p:first-child,.sec__body>.muted.small:first-child{margin-top:0}.sec__body h4:first-child{margin-top:0}.board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.board--sheet{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(260px,340px)}.col{background:var(--panel);border:2px solid var(--line);border-radius:var(--radius);min-height:120px}.col--over{outline:2px dashed var(--accent);outline-offset:-5px}.col__head{display:flex;align-items:center;gap:8px;min-height:38px;padding:5px 10px;border-bottom:2px solid var(--line);font-size:15px;font-weight:700}.col__sum{margin-left:auto;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;letter-spacing:0;font-weight:400;font-size:12.5px;color:var(--muted);text-align:right}.col__body{display:grid;gap:6px;padding:8px;align-content:start}.col__empty{padding:14px 10px;color:var(--muted);font-size:13px;text-align:center}.filters{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px 8px 0}.filters .chip{cursor:pointer;font:600 12px system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.chip--off{opacity:.4}.filters select{padding:3px 6px;font-size:12.5px}.filters input[type=search]{font:inherit;font-size:13px;color:var(--text);background:var(--panel-2);border:2px solid var(--line);border-radius:4px;padding:3px 8px;min-width:120px}.tile{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-height:62px;padding:6px 8px;background:var(--panel-2);border:2px solid var(--line);border-left-width:5px;border-radius:5px;color:var(--text);font:inherit;text-align:left;cursor:pointer;touch-action:pan-y;user-select:none;-webkit-user-select:none}.tile:hover{border-color:var(--rim)}.tile--fire{border-left-color:var(--fire)}.tile--water{border-left-color:var(--water)}.tile--nature{border-left-color:var(--nature)}.tile--stone{border-left-color:var(--stone)}.tile--storm{border-left-color:var(--storm)}.tile--neutral{border-left-color:var(--neutral)}.tile--selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.tile--ko{opacity:.6}.tile--dragging{opacity:.35}.tile__slot{position:absolute;top:-2px;right:-2px;padding:0 6px;font:700 11px/18px var(--font-display);color:var(--muted);background:var(--panel);border:2px solid var(--line);border-radius:0 4px 0 5px}.tile__slot--lead{color:var(--accent)}.tile__body{min-width:0}.tile__name{display:flex;gap:6px;align-items:baseline;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:24px}.tile__lv{font:12px system-ui,-apple-system,Segoe UI,Roboto,sans-serif;letter-spacing:0;color:var(--muted)}.tile__hp{position:relative;height:7px;margin-top:4px;background:#0b0f0c;border-radius:3px;overflow:hidden}.tile__hp>i{display:block;height:100%;background:var(--nature)}.tile__hp--low>i{background:var(--accent)}.tile__hp--crit>i{background:var(--fire)}.tile__tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;font-size:11px;color:var(--muted)}.badge{display:inline-block;padding:1px 6px;border-radius:3px;background:var(--accent);color:#1a1400;font-size:10.5px;font-weight:700;letter-spacing:.02em}.badge--ko{background:#8b1e1e;color:#fff}.badge--muted{background:var(--line);color:var(--text)}.badge--warn{background:#6a2b1a;color:#ffb4a0}.drag-ghost{position:fixed;z-index:100;width:220px;pointer-events:none;opacity:.92;transform:translate(-50%,-50%) rotate(-2deg);box-shadow:0 12px 30px #0009}.sheet{background:var(--panel);border:2px solid var(--rim);border-radius:var(--radius);box-shadow:0 0 0 2px #0b0f0c,0 0 0 3px var(--line)}.sheet__head{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 10px;border-bottom:2px solid var(--line)}.sheet__head .tile__name{padding-right:0}.sheet__close{margin-left:auto;min-height:32px;padding:2px 10px}.sheet__body{display:grid;gap:6px;padding:8px 10px 12px}.sheet .sec{background:var(--panel-2)}.sheet .sec__head{min-height:34px}.sheet__actions{display:flex;flex-wrap:wrap;gap:6px}.sheet .creature-card__actions{margin-top:0}.sheet-backdrop{display:none}@media(max-width:899px),(max-height:520px){.board--sheet{grid-template-columns:1fr 1fr}.sheet{position:fixed;left:0;right:0;bottom:0;z-index:61;max-height:76%;overflow:auto;padding-bottom:var(--pt-pad-b, var(--ph-pad-b, env(safe-area-inset-bottom, 0px)));border-radius:8px 8px 0 0;box-shadow:0 -10px 40px #0009}.sheet__head{position:sticky;top:0;background:var(--panel);z-index:1}.sheet-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#00000073}}.ctiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}.ctile{--el: var(--neutral);--el-light: var(--neutral-light);position:relative;display:flex;align-items:stretch;min-height:42px;background:var(--panel-2);border:2px solid var(--el);border-radius:5px}.ctile--fire{--el: var(--fire);--el-light: var(--fire-light)}.ctile--water{--el: var(--water);--el-light: var(--water-light)}.ctile--nature{--el: var(--nature);--el-light: var(--nature-light)}.ctile--stone{--el: var(--stone);--el-light: var(--stone-light)}.ctile--storm{--el: var(--storm);--el-light: var(--storm-light)}.ctile--rare{box-shadow:0 0 0 1px #e8c25a inset,0 0 10px -4px #e8c25a}.ctile--selected{outline:2px solid var(--accent);outline-offset:1px}.ctile--dim .ctile__press{opacity:.55}.ctile__press{flex:1;display:flex;align-items:center;gap:7px;min-width:0;padding:4px 6px;background:transparent;border:0;border-radius:3px 0 0 3px;color:var(--text);font:inherit;text-align:left;cursor:pointer}.ctile__press:hover:not(:disabled):not(.ctile__press--static){background:#ffffff0d}.ctile__press:disabled{cursor:not-allowed;opacity:.5}.ctile__press--static{cursor:default}.ctile__cost{flex:0 0 auto;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--accent);color:#1a1400;font-size:13px;font-weight:700}.ctile__main{display:grid;gap:1px;min-width:0}.ctile__name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ctile__type{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;font-size:11px;color:var(--el-light)}.ctile__badge{margin-left:4px;color:#ffb4a0}.ctiles--stall .ctile__badge{color:var(--accent)}.ctile__count{margin-left:auto;padding-left:4px;font-size:12px;color:var(--muted);white-space:nowrap}.ctile__info{flex:0 0 22px;background:transparent;border:0;border-left:2px solid var(--el);color:var(--el-light);font:700 12px/1 Georgia,serif;cursor:pointer}.ctile__info:hover{background:#ffffff0f}.cardtext__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cardtext__name{font-size:16px}.cardtext__close{margin-left:auto;min-height:28px;padding:0 10px}.cardtext__text{margin:6px 0 0}.cardtext{padding:8px 10px}.jrow{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:5px 8px;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--text);font:inherit;text-align:left;cursor:pointer}.jrow:hover,.jrow--open{background:var(--panel-2)}.jrow--unknown{color:var(--muted)}.jrow__name{font-weight:700}.jrow__note{margin-left:auto;color:var(--muted);font-size:12px;text-align:right}.jrow+.journal__page{margin:4px 0 8px}@media(max-height:520px),(orientation:portrait)and (max-width:600px){:root:not(.handheld) .camp{padding:4px 8px 10px}:root:not(.handheld) .camp__bar{margin-bottom:6px}:root:not(.handheld) .camp__strip.tabs--sub{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}:root:not(.handheld) .camp__strip.tabs--sub::-webkit-scrollbar{display:none}:root:not(.handheld) .camp__strip .tab{flex:0 0 auto;min-height:36px;padding:3px 10px}:root:not(.handheld) .camp__strip .tabs__note{flex:0 0 auto;white-space:nowrap;padding:0 8px 6px}:root:not(.handheld) .camp__bar .camp__close{min-height:36px;margin-bottom:3px;padding:3px 12px}:root:not(.handheld) .camp__page--2{grid-template-columns:minmax(0,1fr)}:root:not(.handheld) .board{gap:6px}:root:not(.handheld) .col__body{padding:6px}:root:not(.handheld) .tile{grid-template-columns:40px minmax(0,1fr);min-height:52px;padding:4px 6px}:root:not(.handheld) .col .tile__name{flex-wrap:wrap;row-gap:0;column-gap:4px;font-size:14px;white-space:normal}:root:not(.handheld) .ctile__name{white-space:normal;overflow-wrap:anywhere;line-height:1.15}:root:not(.handheld) .col .tile__name .eglyph{order:1;align-self:center}:root:not(.handheld) .col .tile__lv{order:2}:root:not(.handheld) .ctiles{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}:root:not(.handheld) .col .ctiles{grid-template-columns:minmax(0,1fr)}:root:not(.handheld) .sec__head{min-height:36px}:root:not(.handheld) .sec__body{padding:8px 10px 10px}}:root.handheld .camp{padding:4px 8px 8px}:root.handheld .board{gap:6px}:root.handheld .board--sheet{grid-template-columns:1fr 1fr}:root.handheld .sheet{position:absolute;left:40px;right:40px;bottom:0;top:auto;z-index:61;max-height:80%;overflow:auto;border-radius:8px 8px 0 0}:root.handheld .sheet-backdrop{display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:60;background:#00000073}:root.handheld .tile{grid-template-columns:40px minmax(0,1fr);min-height:50px;padding:4px 6px}:root.handheld .ctiles{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}:root.handheld .col .ctiles{grid-template-columns:minmax(0,1fr)}:root.handheld .sec__head{min-height:34px}:root.handheld .sec__body{padding:8px 10px 10px}.sheet__actions .btn--release:not(:disabled){margin-left:auto;border-color:var(--burn);color:var(--burn)}.sheet__note{margin:6px 0 0}.row--creature{justify-content:flex-start}.row--creature .row__main{flex:1 1 auto;min-width:0}.account__email{justify-content:flex-start}.account__email input[type=email]{flex:1 1 160px;min-width:0;max-width:280px}.cloudslots{list-style:none;margin:8px 0 0;padding:0}.cloudslot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0;border-top:1px solid var(--line)}.cloudslot__main{min-width:0;flex:1 1 auto}.cloudslot__actions{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}.btn--small{padding:4px 8px;font-size:12.5px}.linkbtn{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}.linkbtn:disabled{opacity:.5;cursor:default}.landing__account{margin:4px 0 0}.cloudslot--held{border-left:3px solid var(--warn, #e0b341);padding-left:8px}.cloudslot__flag{color:var(--warn, #e0b341)}.paircard{text-align:center}.paircode{font-family:Pixelify Sans,monospace;font-size:34px;letter-spacing:3px;margin:6px 0;color:var(--warn, #e0b341)}.account__link{justify-content:flex-start;flex-wrap:wrap}.account__link input[type=text]{width:140px;text-transform:uppercase}.partner{display:grid;gap:6px;margin-top:4px;padding:6px;border:2px dashed var(--line);border-radius:var(--radius)}.partner--over{border-color:var(--accent)}.partner__head{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}.partner__trait{margin:0;color:var(--muted);line-height:1.35}.partner .col__empty{padding:8px 6px}:root.handheld{--hh-w: 640px;--hh-h: 480px}:root.handheld,:root.handheld body{width:100%;height:100%;overflow:hidden;font:15px/1.35 DejaVu Sans,Verdana,sans-serif}:root.handheld body{background:#000}:root.handheld #root{position:relative;width:var(--hh-w);height:var(--hh-h);margin:0 auto;overflow:hidden;background:var(--bg)}:root.handheld .app{max-width:none;width:var(--hh-w);height:var(--hh-h);margin:0;padding:0;overflow:hidden}:root.handheld .app__head,:root.handheld .rotate{display:none}:root.handheld kbd{display:inline-block;font:700 11px/1 DejaVu Sans,Verdana,sans-serif;color:var(--text);padding:2px 5px}:root.handheld :focus{outline:3px solid var(--accent);outline-offset:1px}:root.handheld .btn{padding:6px 12px}:root.handheld .btn,:root.handheld .tab{min-height:0}:root.handheld .small{font-size:13px}:root.handheld .app--landing{min-height:0;display:block}.splash{position:relative;width:var(--hh-w, 640px);height:var(--hh-h, 480px);overflow:hidden;background:linear-gradient(180deg,#0b1026,#1b2450 52%,#2c3b4f 64%,#1f3a24 65%,#142a18);text-align:center;color:var(--text)}.splash__sky{position:absolute;top:0;right:0;bottom:0;left:0}.splash__star{position:absolute;width:3px;height:3px;background:#fff6c8;animation:splash-twinkle 3s ease-in-out infinite}.splash__title{position:relative;margin:70px 0 0;font:900 64px/1 DejaVu Sans,Verdana,sans-serif;letter-spacing:.08em;color:var(--accent);text-shadow:0 4px 0 #8a5a12,0 0 24px rgba(243,201,105,.55)}.splash__title span{display:inline-block;animation:splash-bob 2.4s ease-in-out infinite}.splash__tag{position:relative;margin:14px 0 0;font-size:15px;color:#cfd6ff}.splash__ground{position:absolute;left:0;right:0;top:252px;height:72px}.splash__walker{position:absolute;bottom:0;left:0;width:64px;height:64px;animation:splash-walk 24s linear infinite}.splash__walker .sprite{display:block;image-rendering:pixelated;animation:splash-hop .6s ease-in-out infinite}.splash__start{position:absolute;left:50%;top:372px;transform:translate(-50%);background:none;border:0;color:#fff;font:700 24px/1 DejaVu Sans,Verdana,sans-serif;letter-spacing:.18em;white-space:nowrap;animation:splash-blink 1.2s step-end infinite;cursor:pointer}:root.handheld .splash__start:focus{outline:none}.splash__build{position:absolute;right:10px;bottom:6px;margin:0;font-size:11px;color:#ffffff73}@keyframes splash-twinkle{0%,to{opacity:.2}50%{opacity:1}}@keyframes splash-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}@keyframes splash-walk{0%{transform:translate(-80px)}to{transform:translate(660px)}}@keyframes splash-hop{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes splash-blink{0%,to{opacity:1}50%{opacity:0}}body.reduce-motion .splash__star,body.reduce-motion .splash__title span,body.reduce-motion .splash__walker .sprite,body.reduce-motion .splash__start{animation:none}body.reduce-motion .splash__walker{animation-play-state:paused}.slots{width:var(--hh-w, 640px);height:var(--hh-h, 480px);padding:22px 36px;background:linear-gradient(180deg,#0b1026,#15172a)}.slots__title{margin:0;font:900 30px/1 DejaVu Sans,Verdana,sans-serif;letter-spacing:.08em;color:var(--accent)}.slots__hint{margin:8px 0 14px;font-size:14px;color:var(--muted)}.slots__warn{margin:6px 0 10px;padding:5px 10px;border:1px solid #b33a3a;border-radius:8px;background:#8b1e1e59;color:#ffd2c4;font-size:13px;line-height:1.3}.slots__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.slots__row{display:flex;gap:8px;align-items:stretch}.slot{flex:1;display:flex;align-items:center;gap:14px;min-width:0;min-height:76px;padding:8px 14px;text-align:left;background:var(--panel);border:2px solid var(--line);border-radius:10px;cursor:pointer}.slots__row--last .slot{border-color:#6a5420}.slot:focus{background:#2a2f3d}.slot__num{flex:0 0 auto;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#1a1400;font-weight:800;font-size:20px}.slot__body{display:flex;flex-direction:column;gap:4px;min-width:0}.slot__body strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot__meta{font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot__erase{flex:0 0 auto}.slots__keys{margin:16px 0 0;font-size:13px;color:var(--muted)}.slots__keys kbd{margin-left:0}.savebox{border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin-bottom:10px}.savebox p{margin:0 0 6px}.overlay--confirm{z-index:90;padding:16px}.confirm{max-width:520px;text-align:left;line-height:1.4}.confirm p{margin:0 0 14px}.confirm__actions{display:flex;gap:10px;justify-content:center}:root.handheld .world{position:relative;display:block;width:var(--hh-w);height:var(--hh-h);max-width:none;margin:0;padding:0}:root.handheld .world__stage{position:absolute;left:0;top:0;width:640px;height:416px;max-width:none;border:0;border-radius:0}:root.handheld .world__canvas{width:640px;height:416px}:root.handheld .hud{position:absolute;left:0;top:416px;width:640px;height:64px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:21px 21px 18px;gap:0 12px;padding:2px 10px;border:0;border-top:2px solid #2b3330;border-radius:0;line-height:1.2;overflow:hidden}:root.handheld .hud__row{grid-column:1;grid-row:1;flex-wrap:nowrap;gap:10px;align-items:center;white-space:nowrap;overflow:hidden;font-size:15px}:root.handheld .hud__keys,:root.handheld .hud__menu{display:none}:root.handheld .hud__party{grid-column:2;grid-row:1 / span 3;flex-wrap:nowrap;flex-direction:column;justify-content:center;align-items:flex-end;gap:1px}:root.handheld .hud__member{gap:6px;font-size:12px;line-height:1.15}:root.handheld .hud__member .chip{font-size:12px;padding:0 6px;min-width:92px;text-align:center}:root.handheld .hud__member .hpbar--mini{width:64px}:root.handheld .hud__member .small{min-width:46px;font-size:12px}:root.handheld .hud__line{grid-column:1;min-height:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:root.handheld .hud__prompt{grid-row:2;font-size:14px}:root.handheld .hud__line.muted{grid-row:3;font-size:13px}:root.handheld .dialogue{left:12px;right:12px;bottom:10px;padding:10px 14px}:root.handheld .dialogue__line{font-size:16px}:root.handheld .overlay--world,:root.handheld .overlay--menu{position:absolute;top:0;right:0;bottom:0;left:0;width:var(--hh-w);height:var(--hh-h);z-index:50}:root.handheld .overlay--menu{padding:0}:root.handheld .overlay--menu .menu{border:0;border-radius:0;height:100%}:root.handheld .overlay--menu .camp{padding:6px 10px}:root.handheld .grid--2{grid-template-columns:minmax(0,1fr)}:root.handheld .overlay{position:absolute}:root.handheld .overlay__card{max-width:600px;max-height:460px;overflow:auto;padding:16px 20px}:root.handheld .settings--handheld{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}:root.handheld .settings--handheld .panel{display:flex;flex-direction:column;gap:8px}.setting-btn{display:flex;justify-content:space-between;gap:10px;text-align:left}.setting-row{align-items:center;gap:8px}.setting-row>span{flex:1}.table--pad td{padding:3px 6px;font-size:13px}.table--pad td:first-child{font-weight:700;white-space:nowrap}:root.handheld .fight{position:relative;display:block;width:var(--hh-w);height:var(--hh-h);max-width:none;margin:0}:root.handheld .stage{position:absolute;left:0;top:0;width:640px;height:400px;max-width:none;aspect-ratio:auto;border:0;border-radius:0}:root.handheld .pop{text-shadow:0 2px 0 #000,2px 0 0 #000,-2px 0 0 #000}:root.handheld .fight__bar{position:absolute;z-index:4;top:6px;left:50%;transform:translate(-50%);flex-wrap:nowrap;gap:6px;padding:2px 10px;max-width:230px;font-size:13px;white-space:nowrap;background:#0a0c10c7;border-color:#ffffff24}:root.handheld .fight__bar .banner,:root.handheld .fight__bar .fight__spacer,:root.handheld .fight__bar .fight__speed,:root.handheld .fight__bar .btn{display:none}:root.handheld .fight__bar .chip{font-size:11px;padding:0 6px;overflow:hidden;text-overflow:ellipsis}:root.handheld .sbox{font-size:13px}:root.handheld .sbox__name{font-size:15px}:root.handheld .caption{font-size:15px}:root.handheld .stage .ench__slot{font-size:12px}:root.handheld .fight__bottom{position:absolute;left:0;top:400px;width:640px;height:80px;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:44px 36px;grid-template-areas:"hand hand" "left actions";gap:0 8px;padding:0 4px;background:#101318;border-top:2px solid #2b3330}:root.handheld .fight .hand{grid-area:hand;position:static;display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:4px;min-height:0;height:44px;padding:0;container-type:normal}:root.handheld .fight .hand .card{position:static;flex:1 1 0;max-width:156px;min-width:0;width:auto;height:36px;min-height:0;margin:0;padding:0 6px;flex-direction:row;align-items:center;gap:6px;transform:none;border-width:2px}:root.handheld .fight .hand .card:hover:not(:disabled),:root.handheld .fight .hand .card:focus{transform:none;box-shadow:none;background:linear-gradient(180deg,#3a4150,#2a2f3a)}:root.handheld .fight .hand .card:focus{outline:3px solid var(--accent);outline-offset:0}:root.handheld .fight .card__cost{position:static;flex:0 0 auto;min-width:22px;padding:0 3px;height:22px;font-size:13px;border:0}:root.handheld .fight .card__hotkey{display:none}:root.handheld .fight .card__name{margin:0;min-width:0;font-size:13px;line-height:1.1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}:root.handheld .hand__empty{font-size:14px;padding-left:8px}.card__body{display:contents}:root.handheld .fight .card__body{display:none}:root.handheld .fight .card:focus .card__body{position:absolute;z-index:6;left:8px;right:8px;bottom:calc(100% + 6px);display:flex;flex-direction:column;gap:3px;padding:8px 12px;background:#0c0e14f5;border:2px solid var(--el);border-radius:8px;font-size:14px;text-align:left;line-height:1.3}:root.handheld .fight .card__type{font-size:13px}:root.handheld .fight .card__text{font-size:15px}:root.handheld .fight .card__preview{margin-top:2px;font-size:14px}:root.handheld .fight .card__reason{font-size:13px}:root.handheld .fight__left{grid-area:left;flex-direction:row;align-items:center;gap:8px;padding:0;background:none;border:0;border-radius:0;font-size:13px}:root.handheld .fight__left>.muted.small{display:none}:root.handheld .fight__left .party{flex-wrap:nowrap;gap:3px}:root.handheld .fight__left .party__slot{width:34px;height:32px;padding:1px;gap:1px}:root.handheld .fight__left .portrait{width:22px!important;height:22px!important}:root.handheld .fight__left .portrait svg,:root.handheld .fight__left .portrait canvas{width:22px;height:22px}:root.handheld .fight__left .party__hp{width:28px;height:4px}:root.handheld .fight__left .party__tags,:root.handheld .fight__left .party__prompt{display:none}:root.handheld .fight__pips{gap:4px;font-size:13px}:root.handheld .fight__pips .energy__pip{width:12px;height:12px}:root.handheld .choice{position:absolute;z-index:6;left:8px;right:8px;bottom:calc(100% + 6px);font-size:14px}:root.handheld .fight__actions{grid-area:actions;position:static;flex-direction:row;justify-content:flex-end;align-items:center;gap:4px;padding:0;background:none;border:0;border-radius:0}:root.handheld .fight__actions .btn{flex:0 1 auto;min-width:0;height:30px;padding:0 8px;gap:6px;font-size:13px;white-space:nowrap}:root.handheld .fight__actions .btn>span{overflow:hidden;text-overflow:ellipsis}:root.handheld .fight__actions .btn--sig{max-width:180px}:root.handheld .fight__actions kbd{margin-left:0}:root.handheld .fight__sigpreview{display:none}:root.handheld .fight__actions .btn--sig:focus~.fight__sigpreview{position:absolute;z-index:6;left:8px;right:8px;bottom:calc(100% + 6px);display:block;padding:8px 12px;background:#0c0e14f5;border:2px solid var(--accent);border-radius:8px;font-size:14px;color:var(--accent)}:root.handheld .fight__log{position:absolute;top:0;right:0;bottom:0;left:0;z-index:60}:root.handheld .fight__log .log{max-height:none;height:100%;font-size:14px}:root.handheld .toast{position:absolute;bottom:90px;max-width:600px;z-index:7;font-size:14px}.tabs__pad{align-self:center;margin:0 2px}:root.handheld .tabs--sub{flex-wrap:nowrap;gap:2px;margin-bottom:8px}:root.handheld .tabs--sub .tab{padding:4px 9px}:root.handheld .camp__strip.tabs--sub{overflow-x:auto;scrollbar-width:none}:root.handheld .camp__strip.tabs--sub::-webkit-scrollbar{display:none}:root.handheld .camp__strip .tab,:root.handheld .camp__strip .tabs__pad{flex:0 0 auto}:root.handheld .tabs__note{display:none}:root.handheld .fight__pips>.muted{display:none}:root.handheld .energy-meter__bar{width:56px;height:10px;gap:1px}:root.handheld .energy-meter__num{font-size:14px}:root.handheld .fight__left .party__slot{width:30px}:root.handheld .fight__pips .energy__pip{width:11px;height:11px}:root.handheld .fight__actions .btn{padding:0 4px;gap:4px}:root.handheld .fight__actions .btn{flex-shrink:0}:root.handheld .fight__actions .btn--sig{flex-shrink:1;min-width:52px}:root.handheld .fight .card:focus .card__body,:root.handheld .fight__actions .btn--sig:focus~.fight__sigpreview,:root.handheld .choice{right:auto;width:400px}:root.handheld .fight__bar{left:auto;right:8px;transform:none;max-width:300px}:root.handheld .fight__bar .chip{overflow:visible;text-overflow:clip}:root.handheld .stage .ench--enemy{top:36px}:root.handheld .fight .hand{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:0 3px}:root.handheld .fight .hand::-webkit-scrollbar{display:none}:root.handheld .fight .hand .card{flex:1 0 94px}:root.handheld .fight .card__pips{display:none}:root.handheld .fight .card__learn{display:block}:root.handheld .fight .card--mastered .card__name:after{content:" ★";color:var(--accent)}.slots__online{font-size:12px;margin:6px 0 0;max-width:560px}@media(max-height:520px),(orientation:portrait)and (max-width:600px){:root:not(.handheld) .app__head{display:none}:root:not(.handheld) .btn,:root:not(.handheld) .tab{padding:6px 10px}:root:not(.handheld) .dialogue{left:3%;right:3%;bottom:3%;padding:.5rem .75rem}:root:not(.handheld) .dialogue__line{margin-bottom:.4rem;font-size:.95rem}:root:not(.handheld) .overlay--world{position:fixed;z-index:50}:root:not(.handheld) .overlay--world .overlay__card{max-height:100%;overflow:auto;padding:14px 18px}:root:not(.handheld) .overlay--menu .camp{padding:6px 10px}:root:not(.handheld) .fight__bar .banner,:root:not(.handheld) .fight__bar .fight__spacer,:root:not(.handheld) .fight__bar .fight__speed,:root:not(.handheld) .fight__bar kbd{display:none}:root:not(.handheld) .fight__bar .chip{font-size:11px;padding:0 6px}:root:not(.handheld) .fight__bar .btn{min-height:28px;padding:1px 10px;font-size:12px}:root:not(.handheld) .sbox{min-width:150px;font-size:11.5px}:root:not(.handheld) .sbox__name{font-size:13px}:root:not(.handheld) .caption{padding:5px 10px;font-size:13px}:root:not(.handheld) .turnbanner{padding:6px 20px;font-size:18px;white-space:nowrap}:root:not(.handheld) .fight__bottom{display:flex;flex-direction:column;gap:6px;min-height:0;overflow-y:auto}:root:not(.handheld) .fight__bottom>*{flex-shrink:0}:root:not(.handheld) .fight .hand{order:0;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:5px;min-height:0;padding:0;container-type:normal}:root:not(.handheld) .fight .hand .card{position:static;flex-direction:row;align-items:center;gap:6px;width:auto;min-width:0;height:38px;min-height:0;margin:0;padding:0 6px;border-width:2px;transform:none}:root:not(.handheld) .fight .hand .card:hover:not(:disabled),:root:not(.handheld) .fight .hand .card:focus-visible,:root:not(.handheld) .fight .hand .card--raised{transform:none;box-shadow:none;background:linear-gradient(180deg,#3a4150,#2a2f3a)}:root:not(.handheld) .fight .hand .card--disabled,:root:not(.handheld) .fight .hand--waiting .card{opacity:1;filter:none}:root:not(.handheld) .fight .hand .card--disabled>.card__cost,:root:not(.handheld) .fight .hand .card--disabled>.card__name,:root:not(.handheld) .fight .hand--waiting .card>.card__cost,:root:not(.handheld) .fight .hand--waiting .card>.card__name{opacity:.5}:root:not(.handheld) .fight .hand .card--raised{outline:3px solid var(--accent);outline-offset:0}:root:not(.handheld) .fight .card__cost{position:static;flex:0 0 auto;min-width:22px;padding:0 3px;height:22px;font-size:13px;border:0}:root:not(.handheld) .fight .card__hotkey{display:none}:root:not(.handheld) .fight .card__name{min-width:0;margin:0;font-size:13px;line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}:root:not(.handheld) .hand__empty{grid-column:1 / -1;padding:8px 4px;font-size:13px}:root:not(.handheld) .fight .card__body,:root:not(.handheld) .fight__sigpreview{display:none}:root:not(.handheld) .fight .fight__cardpanel,:root:not(.handheld) .fight .card:focus-visible .card__body,:root:not(.handheld) .fight__actions .btn--sig.btn--raised~.fight__sigpreview,:root:not(.handheld) .fight__actions .btn--sig:focus-visible~.fight__sigpreview,:root:not(.handheld) .choice{position:absolute;z-index:6;left:8px;top:calc(var(--ph-stage-top) + var(--ph-stage-h) - 8px);bottom:auto;transform:translateY(-100%);width:var(--ph-panel-w);padding:7px 11px;border-radius:8px;font-size:13px;line-height:1.3;text-align:left}:root:not(.handheld) .fight .fight__cardpanel,:root:not(.handheld) .fight .card:focus-visible .card__body{display:flex;flex-direction:column;gap:3px;background:#0c0e14f5;border:2px solid var(--el)}:root:not(.handheld) .fight__actions .btn--sig.btn--raised~.fight__sigpreview,:root:not(.handheld) .fight__actions .btn--sig:focus-visible~.fight__sigpreview{display:block;background:#0c0e14f5;border:2px solid var(--accent);color:var(--accent)}@media(hover:hover){:root:not(.handheld) .fight .card:hover .card__body,:root:not(.handheld) .fight__actions .btn--sig:hover~.fight__sigpreview{position:absolute;z-index:6;left:8px;top:calc(var(--ph-stage-top) + var(--ph-stage-h) - 8px);bottom:auto;transform:translateY(-100%);width:var(--ph-panel-w);padding:7px 11px;border-radius:8px;font-size:13px;line-height:1.3;text-align:left;background:#0c0e14f5}:root:not(.handheld) .fight .card:hover .card__body{display:flex;flex-direction:column;gap:3px;border:2px solid var(--el)}:root:not(.handheld) .fight__actions .btn--sig:hover~.fight__sigpreview{display:block;border:2px solid var(--accent);color:var(--accent)}}:root:not(.handheld) .fight .card__type{font-size:12px}:root:not(.handheld) .fight .card__text{font-size:14px}:root:not(.handheld) .fight .card__preview{margin-top:2px;font-size:13px}:root:not(.handheld) .fight .card__reason{font-size:12px}:root:not(.handheld) .fight__left{order:1;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;padding:2px 6px;font-size:12px}:root:not(.handheld) .fight__left>.muted.small{display:none}:root:not(.handheld) .fight__left .party{flex-wrap:nowrap;gap:4px}:root:not(.handheld) .fight__left .party__slot{width:40px;height:40px;padding:2px;gap:2px}:root:not(.handheld) .fight__left .portrait{width:26px!important;height:26px!important}:root:not(.handheld) .fight__left .portrait svg,:root:not(.handheld) .fight__left .portrait canvas{width:26px;height:26px}:root:not(.handheld) .fight__left .party__hp{width:32px;height:4px}:root:not(.handheld) .fight__left .party__tags,:root:not(.handheld) .fight__left .party__prompt{display:none}:root:not(.handheld) .fight__pips{flex-wrap:wrap;gap:4px}:root:not(.handheld) .fight__pips .energy__pip{width:13px;height:13px}:root:not(.handheld) .energy-meter__bar{width:72px}:root:not(.handheld) .fight__left .fight__pips{flex:1 1 0;min-width:0}:root:not(.handheld) .fight__left .energy-meter__bar{width:100%;max-width:72px}:root:not(.handheld) .fight__actions{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:auto;padding:4px}:root:not(.handheld) .fight__actions .btn{min-width:0;min-height:38px;padding:3px 8px;justify-content:center;font-size:13px;line-height:1.15;text-align:center}:root:not(.handheld) .fight__actions .btn>span{overflow:hidden;text-overflow:ellipsis}:root:not(.handheld) .fight__actions kbd{display:none}:root:not(.handheld) .fight__actions .btn--sig,:root:not(.handheld) .fight__actions .btn--end{grid-column:1 / -1}:root:not(.handheld) .fight__actions .btn--raised{outline:3px solid var(--accent);outline-offset:0}:root:not(.handheld) .fight__actions .btn--flee{order:8}:root:not(.handheld) .fight__actions .btn--end{order:9}:root:not(.handheld) .fight__actions:has(.btn--flee) .btn--end{grid-column:auto}:root:not(.handheld) .fight__actions .btn--items{order:7}:root:not(.handheld) .fight__actions:has(.btn--flee):has(.btn--items) .btn--end{grid-column:1 / -1}:root:not(.handheld) .fight__actions:has(.btn--items):not(:has(.btn--flee)) .btn--end{grid-column:auto}:root:not(.handheld) .fight__log{position:absolute;z-index:7;left:0;right:auto;top:var(--ph-stage-top);bottom:auto;width:var(--ph-stage-w);min-width:0;height:var(--ph-stage-h);padding-top:40px;background:#0c0e14eb;border-radius:8px}:root:not(.handheld) .fight__log .log{min-height:0;box-shadow:none}:root:not(.handheld) .fight__bar{z-index:8}:root:not(.handheld) .fight .toast{position:absolute;z-index:7;left:calc(var(--ph-stage-w) / 2);top:calc(var(--ph-stage-top) + var(--ph-stage-h) - 44px);bottom:auto;max-width:calc(var(--ph-stage-w) - 24px);font-size:13px}}@media(max-height:520px){:root:not(.handheld){--ph-vh: 100vh;--ph-pad-t: env(safe-area-inset-top, 0px);--ph-pad-b: env(safe-area-inset-bottom, 0px);--ph-pad-l: env(safe-area-inset-left, 0px);--ph-pad-r: env(safe-area-inset-right, 0px);--ph-gap: 6px;--ph-h: calc(var(--ph-vh) - var(--ph-pad-t) - var(--ph-pad-b));--ph-w: calc(100vw - var(--ph-pad-l) - var(--ph-pad-r));--ph-map-w: min(calc(var(--ph-h) * 640 / 416), calc(var(--ph-w) - 210px - var(--ph-gap)));--ph-stage-w: min(calc(var(--ph-h) * 1.6), calc(var(--ph-w) - 236px - var(--ph-gap)));--ph-stage-top: 0px;--ph-stage-h: var(--ph-h);--ph-panel-w: calc(var(--ph-stage-w) * .66 - 24px)}@supports (height: 100dvh){:root:not(.handheld){--ph-vh: 100dvh}}:root:not(.handheld) .app:not(.app--landing){max-width:none;height:var(--ph-vh);margin:0;padding:var(--ph-pad-t) var(--ph-pad-r) var(--ph-pad-b) var(--ph-pad-l);overflow:hidden;zoom:1!important}:root:not(.handheld) .world{display:flex;flex-direction:row;align-items:stretch;gap:var(--ph-gap);max-width:none;height:var(--ph-h);margin:0;padding:0}:root:not(.handheld) .world__stage{flex:0 0 auto;width:var(--ph-map-w);height:var(--ph-h);border:0;border-radius:0}:root:not(.handheld) .world__canvas{position:absolute;top:0;left:50%;width:auto;height:100%;transform:translate(-50%)}:root:not(.handheld) .hud{flex:1 1 auto;min-width:0;gap:5px;padding:8px 10px;overflow-y:auto;line-height:1.3}:root:not(.handheld) .hud__row{display:contents}:root:not(.handheld) .hud__row>strong{font-size:16px}:root:not(.handheld) .hud__keys{display:none}:root:not(.handheld) .hud__prompt{order:1;font-size:14px}:root:not(.handheld) .hud__line.muted{order:2}:root:not(.handheld) .hud__party{order:3;flex-direction:column;flex-wrap:nowrap;gap:5px;margin-top:2px}:root:not(.handheld) .hud__member{gap:6px}:root:not(.handheld) .hud__member .chip{flex:0 0 auto;min-width:86px;text-align:center;font-size:12px}:root:not(.handheld) .hud__member .hpbar--mini{flex:1 1 auto;width:auto;min-width:30px}:root:not(.handheld) .hud__member .small{flex:0 0 auto;white-space:nowrap}:root:not(.handheld) .hud__menu{order:4;display:inline-flex;justify-content:center;align-items:center;align-self:stretch;margin:auto 0 0;min-height:44px;font-weight:600}:root:not(.handheld) .overlay--world{padding:var(--ph-pad-t) var(--ph-pad-r) var(--ph-pad-b) var(--ph-pad-l)}:root:not(.handheld) .fight{display:grid;grid-template-columns:var(--ph-stage-w) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0 var(--ph-gap);max-width:none;height:var(--ph-h);margin:0}:root:not(.handheld) .stage{grid-column:1;grid-row:1;width:var(--ph-stage-w);max-width:none;height:var(--ph-h);aspect-ratio:auto;margin:0;border:0;border-radius:0}:root:not(.handheld) .fight__bar{position:absolute;top:calc(var(--ph-stage-top) + 6px);right:calc(100% - var(--ph-stage-w) + 6px);flex-wrap:nowrap;gap:6px;max-width:calc(var(--ph-stage-w) * .6);padding:2px 3px 2px 10px;font-size:12px;white-space:nowrap;background:#0a0c10c7;border-color:#ffffff24}:root:not(.handheld) .stage .ench--enemy{top:34px}:root:not(.handheld) .fight__bottom{grid-column:2;grid-row:1}}@media(max-height:520px)and (orientation:landscape){:root:not(.handheld) .fight .hand:has(>.card:nth-child(7)){gap:4px}:root:not(.handheld) .fight .hand:has(>.card:nth-child(7)) .card{height:34px}}@media(max-height:520px),(orientation:portrait)and (max-width:600px){:root:not(.handheld) .fight .card__pips{display:none}:root:not(.handheld) .fight .card__learn{display:block}:root:not(.handheld) .fight .card--mastered .card__name:after{content:" ★";color:var(--accent)}}.dialogue__choices{display:flex;flex-direction:column;gap:.35rem;align-items:stretch}.dialogue__answer{text-align:left;justify-content:flex-start;border-color:#3a4a42}.dialogue .btn.dialogue__answer--focus:not(:disabled){border-color:#ffd36a;box-shadow:0 0 0 2px #ffd36a59}.dialogue__choices .muted{margin-top:.1rem}@media(pointer:coarse){.dialogue__choices .muted{display:none}}.travel h3{margin-top:0}.travel__list{display:flex;flex-direction:column;gap:.4rem;margin:.6rem 0}.travel__list .btn{width:100%;justify-content:flex-start;text-align:left}.region-map{margin-bottom:.9rem}.region-map__title{display:flex;gap:.6rem;align-items:baseline;margin:0 0 .35rem}.region-map__row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:stretch}.map-box{min-width:7.5rem;flex:1 1 7.5rem;border:1px solid #3a4a42;border-radius:8px;padding:.4rem .55rem;background:#ffffff08;line-height:1.3}.map-box--here{border-color:#ffd36a;background:#ffd36a14}.map-box--unknown{color:#7c8884;border-style:dashed}.map-box__name{font-weight:700}.map-box__note{display:block;font-size:.85em;color:#9fb0a8}.satchel__row{display:flex;gap:.6rem;align-items:baseline;padding:.25rem 0;border-top:1px solid var(--line, #333)}.satchel__row:first-of-type{border-top:0}.satchel__row .grow{flex:1}.lore__entry{border-top:1px solid var(--line, #333);padding:.5rem 0}.lore__entry h4{margin:0 0 .25rem}.lore__entry p{margin:.25rem 0}.lore__entry .lore__trait{color:#a9e07a}.lore__unknown{color:#7c8884;font-style:italic}:root.handheld .dialogue__answer{padding:4px 10px;font-size:14px}:root.handheld .map-box{min-width:6rem;padding:3px 6px;font-size:13px}.region-map__duelists{margin:2px 0 6px}.result__duelist{margin:8px 0;padding:6px 10px;border-left:3px solid var(--accent, #ffb234)}.result__duelist p{margin:2px 0}.chart__head{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:.4rem}.chart__world{margin-left:auto}.chart{width:100%;max-height:min(64vh,580px);background:#0c1114;border:1px solid #3a4a42;border-radius:8px;overflow:auto;-webkit-overflow-scrolling:touch}.chart__canvas{display:block;margin:0 auto;image-rendering:pixelated;touch-action:manipulation;cursor:pointer}.chart__legend{display:flex;flex-wrap:wrap;gap:.3rem .9rem;align-items:center;margin:.45rem 0 .2rem}.chart__key{display:inline-flex;align-items:center;justify-content:center;width:1.05em;height:1.05em;margin-left:.5rem;border-radius:50%;font-size:.95em;font-weight:700;line-height:1;flex:none}.chart__entry{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}.chart__entry .chart__key{margin-left:0}.chart__key--you{background:#e2483d;border:2px solid #fff}.chart__key--quest{background:#2a2418;border:1.5px solid #ffd36a;color:#ffd36a}.chart__key--ready{background:#ffd36a;color:#10161a}.chart__key--stone{background:#7fe3ff;border-radius:2px;transform:rotate(45deg) scale(.8)}.chart__key--door{background:#e8dcc0;border-radius:2px;border:1.5px solid #10161a}.chart__list{display:flex;flex-direction:column;gap:.4rem}.chart__mark{display:flex;gap:.55rem;align-items:center;text-align:left;padding:.45rem .6rem;border:1px solid #3a4a42;border-radius:8px;background:#ffffff08;color:inherit;font:inherit;cursor:pointer}.chart__mark .chart__key{margin-left:0;width:1.4em;height:1.4em}.chart__mark--picked{border-color:#ffd36a;background:#ffd36a14}.chart__mark-quest{display:block}.chart__place--here{border-color:#ffd36a;color:#ffd36a}.touchpad{--pad-inset: 10px;--pad-cell: 44px;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;pointer-events:none;line-height:1;font-family:inherit}.touchpad__dpad{position:absolute;left:var(--pad-inset);bottom:var(--pad-inset);display:grid;grid-template-columns:repeat(3,var(--pad-cell));grid-template-rows:repeat(3,var(--pad-cell));pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:pointer}.touchpad__arm,.touchpad__hub{display:flex;align-items:center;justify-content:center;background:#0e121080;border:1px solid rgba(255,255,255,.18);color:#e8efe9e6;font-size:17px;transition:background 60ms linear}.touchpad__arm--up{grid-area:1 / 2;border-radius:10px 10px 0 0}.touchpad__arm--left{grid-area:2 / 1;border-radius:10px 0 0 10px}.touchpad__hub{grid-area:2 / 2;border:0;background:#0e12106b}.touchpad__arm--right{grid-area:2 / 3;border-radius:0 10px 10px 0}.touchpad__arm--down{grid-area:3 / 2;border-radius:0 0 10px 10px}.touchpad__arm--held{background:#f3c969d9;border-color:#f3c969e6;color:#1b1d14}.touchpad__ab{position:absolute;right:var(--pad-inset);bottom:var(--pad-inset);width:118px;height:118px}.touchpad__btn{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;padding:0;min-height:0;border-radius:50%;font:inherit;font-weight:700;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:pointer;transition:background 60ms linear}.touchpad__a{right:0;top:0;width:56px;height:56px;background:#0e12108c;border:2px solid var(--accent);color:var(--accent);font-size:20px}.touchpad__b{left:0;bottom:0;width:48px;height:48px;background:#0e121080;border:1px solid rgba(255,255,255,.35);color:#e8efe9e6;font-size:17px}.touchpad__a.touchpad__btn--down{background:var(--accent);color:#1b1d14}.touchpad__b.touchpad__btn--down{background:#e8efe9d9;color:#1b1d14}.touchpad--right .touchpad__dpad{left:auto;right:var(--pad-inset)}.touchpad--right .touchpad__ab{right:auto;left:var(--pad-inset)}.touchpad--right .touchpad__a{right:auto;left:0}.touchpad--right .touchpad__b{left:auto;right:0}:root:not(.handheld) .world__stage--buttons .dialogue{top:4%;bottom:auto}@media(orientation:portrait)and (max-width:600px){:root:not(.handheld){--pt-vh: 100vh;--pt-pad-t: env(safe-area-inset-top, 0px);--pt-pad-b: env(safe-area-inset-bottom, 0px);--pt-pad-l: env(safe-area-inset-left, 0px);--pt-pad-r: env(safe-area-inset-right, 0px);--pt-w: calc(100vw - var(--pt-pad-l) - var(--pt-pad-r));--pt-h: calc(var(--pt-vh) - var(--pt-pad-t) - var(--pt-pad-b));--pt-bar: 40px;--pt-strip: 62px;--pt-zone: 196px;--fight-bar: 34px;--ph-stage-top: calc(var(--fight-bar) + 6px);--ph-stage-h: calc(var(--pt-w) * .625);--ph-stage-w: var(--pt-w);--ph-panel-w: calc(var(--pt-w) - 16px)}@supports (height: 100dvh){:root:not(.handheld){--pt-vh: 100dvh}}:root:not(.handheld) .app:not(.app--landing){max-width:none;height:var(--pt-vh);margin:0;padding:var(--pt-pad-t) var(--pt-pad-r) var(--pt-pad-b) var(--pt-pad-l);overflow:hidden;zoom:1!important}:root:not(.handheld) .landing__card{padding:18px 16px 14px}:root:not(.handheld) .landing__title{font-size:34px}:root:not(.handheld) .world{--pt-zone: 0px;display:flex;flex-direction:column;gap:4px;height:var(--pt-h);max-width:none;margin:0;padding:0}:root:not(.handheld) .world--buttons{--pt-zone: 196px;padding-bottom:var(--pt-zone)}:root:not(.handheld) .hud{display:contents}:root:not(.handheld) .hud__row{order:-1;display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:8px;height:var(--pt-bar);padding:0 8px;overflow:hidden;white-space:nowrap;background:var(--panel);border:2px solid var(--line);border-radius:var(--radius)}:root:not(.handheld) .hud__row>strong{min-width:0;font-size:16px;overflow:hidden;text-overflow:ellipsis}:root:not(.handheld) .hud__row>.muted{font-size:12.5px}:root:not(.handheld) .hud__keys{display:none}:root:not(.handheld) .hud__menu{display:inline-flex;margin-left:auto;min-height:32px;padding:2px 12px}:root:not(.handheld) .world__stage{order:0;flex:0 0 auto;width:100%;height:min(var(--pt-w),calc(var(--pt-h) - var(--pt-bar) - var(--pt-strip) - var(--pt-zone) - 16px));border:0;border-radius:0}:root:not(.handheld) .world__canvas{position:absolute;top:0;left:50%;width:auto;height:100%;transform:translate(-50%)}:root:not(.handheld) .hud__party{order:1;display:flex;flex-wrap:nowrap;gap:6px;padding:0 6px}:root:not(.handheld) .hud__member{flex:1 1 0;min-width:0;gap:4px}:root:not(.handheld) .hud__member .chip{flex:0 1 auto;min-width:0;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;padding:1px 6px}:root:not(.handheld) .hud__member .hpbar--mini{flex:1 1 auto;width:auto;min-width:16px}:root:not(.handheld) .hud__member .small{flex:0 0 auto;font-size:11px;white-space:nowrap}:root:not(.handheld) .hud__line{order:2;padding:0 8px;font-size:13px;line-height:1.25;min-height:1.25em;max-height:2.5em;overflow:hidden}:root:not(.handheld) .hud__line.muted{font-size:12px}:root:not(.handheld) .world--buttons .touchpad{--pad-inset: 16px;--pad-cell: 50px;position:fixed;inset:auto var(--pt-pad-r) var(--pt-pad-b) var(--pt-pad-l);height:var(--pt-zone)}:root:not(.handheld) .world--buttons .touchpad__dpad{bottom:22px}:root:not(.handheld) .world--buttons .touchpad__ab{bottom:40px;width:124px;height:124px}:root:not(.handheld) .world--buttons .touchpad__a{width:62px;height:62px;font-size:22px}:root:not(.handheld) .world--buttons .touchpad__b{width:52px;height:52px}:root:not(.handheld) .world--buttons .touchpad__arm,:root:not(.handheld) .world--buttons .touchpad__hub{background:#141a16e6}:root:not(.handheld) .world--buttons .touchpad__a{background:#141a16e6}:root:not(.handheld) .world--buttons .touchpad__b{background:#141a16e6}:root:not(.handheld) .world--buttons .hud__menu{position:fixed;left:50%;bottom:calc(var(--pt-pad-b) + 30px);transform:translate(-50%);z-index:6;margin:0;min-height:40px;padding:6px 18px}:root:not(.handheld) .world__stage--buttons .dialogue{top:auto;bottom:3%}:root:not(.handheld) .world__stage--buttons.world__stage--talk-top .dialogue{top:3%;bottom:auto}:root:not(.handheld) .world__stage--buttons:not(.world__stage--talk-top):has(.dialogue--choosing){overflow:visible;z-index:5}:root:not(.handheld) .world__stage--buttons:not(.world__stage--talk-top) .dialogue--choosing{top:66%;bottom:auto;background:#0e1210}:root:not(.handheld) .overlay--world{padding:var(--pt-pad-t) var(--pt-pad-r) var(--pt-pad-b) var(--pt-pad-l)}:root:not(.handheld) .overlay--menu{padding:var(--pt-pad-t) var(--pt-pad-r) var(--pt-pad-b) var(--pt-pad-l);background:var(--bg)}:root:not(.handheld) .overlay--menu .menu{height:100%;border-radius:0;border-left:0;border-right:0}:root:not(.handheld) .fight{display:flex;flex-direction:column;gap:6px;height:var(--pt-h);max-width:none;margin:0}:root:not(.handheld) .fight__bar{position:static;order:0;flex:0 0 auto;height:var(--fight-bar);flex-wrap:nowrap;gap:6px;padding:2px 8px;font-size:12px;white-space:nowrap;overflow:hidden}:root:not(.handheld) .stage{order:1;flex:0 0 auto;width:100%;max-width:none;height:auto;aspect-ratio:640 / 400;margin:0;border:0;border-radius:0}:root:not(.handheld) .sbox{width:46%;min-width:0;gap:2px;padding:4px 6px;font-size:10.5px}:root:not(.handheld) .stage .corner--enemy{flex-direction:column;align-items:stretch;gap:4px;width:46%;min-width:0}:root:not(.handheld) .corner .sbox{width:100%}:root:not(.handheld) .sbox__name{font-size:12px}:root:not(.handheld) .caption{padding:3px 8px;font-size:12px}:root:not(.handheld) .turnbanner{padding:5px 14px;font-size:16px}:root:not(.handheld) .fight__bottom{order:2;flex:1 1 auto}:root:not(.handheld) .fight__log{padding-top:8px}}
