:root{--bg:#0f0d11;--panel:#19161c;--surface:#221e26;--highlight:#2a2420;--track:#2c2730;--input-bg:#120f14;--modal-bg:#17141a;--border:#342d38;--text:#ddd4c4;--muted:#9a909c;--accent:#b8914a;--accent-strong:#dcbc7c;--on-accent:#16120c;--header:#09080b;--header-text:#d8bf88;--hp:#a8352a;--mp:#3a68a8;--exp:#b08a2e;--progress:#587a38;--danger:#c4503f;--up:#79b25a;--down:#d0604e;--serif:"Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-family:Hiragino Kaku Gothic ProN,Hiragino Sans,Yu Gothic UI,Meiryo,system-ui,sans-serif;font-size:15px;line-height:1.5}*{box-sizing:border-box}body{min-height:100vh;margin:0}button,input,select,textarea{font:inherit;color:inherit}.app{background:var(--bg);flex-direction:column;max-width:560px;min-height:100vh;margin:0 auto;display:flex;box-shadow:0 0 40px #0009}body{background:#060508}.app-header{z-index:10;background:var(--header);color:var(--header-text);padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top,0px));border-bottom:1px solid #2a2218;justify-content:space-between;align-items:center;gap:8px;display:flex;position:sticky;top:0}.guild-name{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;font-size:1.05rem;font-weight:700}.app>*{transition:filter 1.2s}.app.lamp-out>.app-main,.app.lamp-out>.tab-bar{filter:brightness(.3)sepia(.4)}.app.lamp-out>.app-header{filter:brightness(.55)}.app.deep-dark{--bg:#050406;--panel:#0b090d;--surface:#110e13;--highlight:#18130f;--track:#18141b;--input-bg:#070608;--modal-bg:#0a080c;--border:#211b24;--text:#c2b8a6;--muted:#7a7180;--header:#020203;box-shadow:0 0 60px #000000e6}.app.deep-dark>.app-main{background:radial-gradient(at 50% 30%,#b8914a0d,#0000 65%)}.map-spot.erased{border:1px dashed #e8c27a8c;width:11%;animation:3s ease-in-out infinite map-erased}@keyframes map-erased{50%{opacity:.45}}.map-whisper{font-family:var(--serif);color:var(--accent-strong);pointer-events:none;background:#0a0806c7;border-radius:4px;padding:6px 10px;font-size:.85em;position:absolute;top:3%;left:4%;right:4%}.blank-page p{font-family:var(--serif);color:var(--accent-strong)}.sr-cell.moonlit{box-shadow:0 0 14px #c8d2ff8c}.dev-memo{font-family:var(--serif);line-height:1.9}.version-line{text-align:center;-webkit-user-select:none;user-select:none;padding:16px 0 8px;font-size:.75rem}.rank{border:1px solid var(--header-text);vertical-align:middle;border-radius:4px;margin-left:8px;padding:0 5px;font-size:.75rem}.header-stats{white-space:nowrap;gap:10px;font-size:.9rem;display:flex}.speed{background:var(--exp);color:#3b2a1a;border-radius:4px;padding:0 5px;font-weight:700}.app-main{flex:1;padding-bottom:76px}.tab-bar{background:var(--panel);border-top:1px solid var(--border);width:100%;max-width:560px;padding-bottom:env(safe-area-inset-bottom);z-index:10;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.tab-bar button{color:var(--muted);cursor:pointer;background:0 0;border:none;flex-direction:column;flex:1;align-items:center;padding:6px 0 8px;display:flex}.tab-bar button.active{color:var(--accent-strong);font-weight:700}.tab-icon{width:26px;height:26px;margin-bottom:1px;display:flex;position:relative}.tab-svg{width:100%;height:100%;transition:transform .15s}.tab-bar button.active .tab-svg{filter:drop-shadow(0 0 4px #dcbc7c8c);transform:translateY(-1px)}.tab-label{letter-spacing:.05em;font-size:.7rem}.dot{background:var(--danger);color:#fff;border-radius:8px;padding:0 5px;font-size:.7rem;line-height:1.5;position:absolute;top:-4px;right:-12px}.dot.info{background:var(--mp)}.screen{padding:12px}.section{margin-bottom:16px}.section-header{font-family:var(--serif);letter-spacing:.06em;color:var(--accent-strong);justify-content:space-between;align-items:center;gap:8px;padding:0 4px 6px;font-size:.92rem;font-weight:700;display:flex}.section-header>span:first-child{flex:1;align-items:center;gap:10px;display:flex}.section-toggle{font:inherit;letter-spacing:inherit;color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:6px;padding:0;display:flex}.section-toggle-mark{color:var(--muted);font-size:.75rem}.section-header>span:first-child:after{content:"";background:linear-gradient(90deg,#b8914a8c,#0000);flex:1;height:1px}.section-header .link-button{font-family:inherit;font-size:.78rem;font-weight:400}.chronicle{margin:0;padding:4px 4px 8px;font-size:.82rem;line-height:1.6;list-style:none}.chronicle li{border-bottom:1px dashed var(--border);padding:3px 0}.chronicle li:last-child{border-bottom:none}.chronicle-day{min-width:7.5em;color:var(--accent);font-family:var(--serif);margin-right:6px;font-size:.75rem;display:inline-block}.origin-story{margin:10px 12px 0}.scroll-anchor{scroll-margin-top:56px}.status-board{background:linear-gradient(180deg, #b8914a1a, #b8914a05), var(--panel);border:1px solid #b8914a73;border-radius:10px;margin-bottom:18px;overflow:hidden}.guide-card{background:linear-gradient(180deg, #e8c27a1f, #e8c27a08), var(--panel);border:1px solid #e8c27a8c;border-radius:10px;align-items:flex-start;gap:12px;margin-bottom:14px;padding:12px;display:flex}.guide-face{border:1px solid #e8c27a73;border-radius:50%;flex:none;width:52px;height:52px;position:relative;overflow:hidden}.guide-face img{width:180%;position:absolute;top:-10%;left:-40%}.guide-body{flex:1;min-width:0}.guide-head{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.guide-step{color:var(--accent);letter-spacing:.05em;font-size:.72rem}.guide-body p{margin:6px 0 8px;font-size:.85rem;line-height:1.6}.guide-actions{align-items:center;gap:14px;display:flex}.sex-mark{margin-left:3px;font-size:.85em}.sex-mark.sex-m{color:#7fa6d6}.sex-mark.sex-f{color:#d68fa6}.map-thumb{width:100%;max-width:260px;color:var(--text);font:inherit;text-align:left;cursor:zoom-in;background:0 0;border:none;flex-direction:column;gap:4px;padding:0;display:flex}.map-caption{color:var(--accent);font-size:.85em}.dungeon-map{aspect-ratio:4/3;background-position:50%;background-size:cover;border:1px solid #e8c27a59;border-radius:6px;width:100%;position:relative;overflow:hidden}.dungeon-map.big{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.map-modal{max-width:720px}.map-fog{aspect-ratio:1;-webkit-backdrop-filter:blur(8px)grayscale(.6);backdrop-filter:blur(8px)grayscale(.6);pointer-events:none;background:radial-gradient(circle,#3e3428e0 30%,#3e34288c 50%,#3e342800 70%);width:34%;position:absolute;transform:translate(-50%,-50%);-webkit-mask-image:radial-gradient(circle,#000 45%,#0000 70%);mask-image:radial-gradient(circle,#000 45%,#0000 70%)}.map-spot{aspect-ratio:1;width:16%;color:inherit;font:inherit;background:0 0;border:none;border-radius:50%;padding:0;position:absolute;transform:translate(-50%,-50%)}button.map-spot{cursor:pointer}button.map-spot:hover,.dungeon-map.big .map-spot.selected{box-shadow:0 0 0 2px #e8c27a8c,0 0 18px #e8c27a59}.map-star{color:#f0cd7a;text-shadow:0 0 4px #000,0 0 2px #000;font-size:.7em;position:absolute;top:4%;right:4%}.dungeon-map.big .map-star{font-size:1em}.map-label{color:#f2e6cc;white-space:nowrap;background:#0c0907c7;border-radius:4px;padding:1px 6px;font-size:.75em;position:absolute;bottom:-6%;left:50%;transform:translate(-50%)}.map-pin{pointer-events:none;background:#c8412f;border:2px solid #f6dfae;border-radius:50% 50% 50% 0;width:14px;height:14px;margin:-20px 0 0 -7px;animation:.35s ease-out map-pin-drop;position:absolute;transform:rotate(-45deg);box-shadow:0 2px 4px #000000b3}.map-pin.cursed{background:#7b3fb0}.dungeon-map.big .map-pin{width:22px;height:22px;margin:-32px 0 0 -11px}@keyframes map-pin-drop{0%{opacity:0;translate:0 -12px}}.map-lamp{pointer-events:none;background:#ffd27a;border-radius:50%;width:8px;height:8px;margin:-4px 0 0 -4px;animation:1.6s ease-in-out infinite map-lamp-flicker;position:absolute;box-shadow:0 0 6px 3px #ffb446bf,0 0 16px 6px #ff8c2859}.dungeon-map.big .map-lamp{width:12px;height:12px;margin:-6px 0 0 -6px}@keyframes map-lamp-flicker{50%{opacity:.55;scale:.85}}.status-line{border:none;border-bottom:1px solid var(--border);width:100%;color:var(--text);font:inherit;text-align:left;background:0 0;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:10px 12px;font-size:.88rem;display:flex}.status-line:last-child{border-bottom:none}button.status-line{cursor:pointer}button.status-line:hover{background:var(--surface)}.status-main{flex:1;min-width:0}.status-floors{color:var(--accent-strong);font-size:.8rem}.status-expedition .bar{flex-basis:100%}.status-ready{color:var(--accent-strong);font-weight:700}.status-urgent{color:var(--accent-strong);background:#b8914a24;font-weight:700}.outcome-mark{vertical-align:middle;border-radius:50%;justify-content:center;align-items:center;width:1.3em;height:1.3em;margin-right:6px;font-size:.75rem;display:inline-flex}.outcome-cleared{color:var(--up);border:1px solid var(--up)}.outcome-retreated{color:var(--accent);border:1px solid var(--accent)}.outcome-wiped{color:#fff;background:var(--danger);border:1px solid var(--danger)}.report-read .title{color:var(--muted);font-weight:400}.quest-ready{box-shadow:inset 3px 0 0 var(--accent-strong), inset 0 0 0 1px #dcbc7c80;background:linear-gradient(90deg,#dcbc7c29,#0000 80%)}.section-body{background:var(--panel);border:1px solid var(--border);border-radius:10px;overflow:hidden}.section-body>.help,.section-body>.notice,.section-body>.chip-grid,.section-body>.stat-grid,.section-body>.form-row,.section-body>.segmented,.section-body>.button-row,.section-body>.save-code{margin:10px 12px}.row{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:10px 12px;display:flex}.row:last-child{border-bottom:none}.row-clickable{cursor:pointer}.row-clickable:hover{background:var(--surface)}.row-content{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.row-main{flex:1;min-width:0}.row-selected{background:var(--highlight)}.row-main-quest{box-shadow:inset 3px 0 0 var(--accent);background:linear-gradient(90deg,#b8914a24,#0000 70%)}.badge.quest-main-badge{color:var(--accent-strong);border:1px solid var(--accent);letter-spacing:.1em;background:0 0;margin:0 6px 0 0}.title{font-weight:700}.sub{color:var(--text);opacity:.85;font-size:.82rem}.muted{color:var(--muted);font-weight:400}.small{font-size:.78rem}.accent{color:var(--accent);font-weight:700}.danger{color:var(--danger)}.up{color:var(--up)}.down{color:var(--down)}.chevron{color:var(--muted);font-size:1.3rem}.help{color:var(--muted);margin:6px;font-size:.78rem}.help.danger{color:var(--danger)}.loop-banner{background:var(--highlight);border-bottom:1px solid var(--border);color:var(--accent-strong);justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;font-size:.85rem;display:flex}.help-topic{border-bottom:1px solid var(--border)}.help-topic:last-child{border-bottom:none}.help-topic summary{cursor:pointer;justify-content:space-between;padding:10px 12px;list-style:none;display:flex}.help-topic summary::-webkit-details-marker{display:none}.help-topic summary:after{content:"›";color:var(--muted);transition:transform .15s}.help-topic[open] summary:after{transform:rotate(90deg)}.help-topic[open] summary{color:var(--accent-strong)}.help-body{padding:0 14px 12px;font-size:.85rem;line-height:1.7}.help-body p{margin:0 0 6px}.help-body ul{color:var(--muted);margin:0 0 6px;padding-left:1.2em}.notice{background:#b8914a1f;border:1px solid #b8914a73;border-radius:8px;padding:6px 10px;font-size:.85rem}.badge{background:var(--danger);color:#fff;vertical-align:middle;border-radius:4px;margin:0 4px;padding:0 4px;font-size:.7rem;display:inline-block}.badge.new{background:var(--accent)}.row-locked{opacity:.6}.bond-tag{color:#e8c27a;vertical-align:middle;border:1px solid #e8c27a80;border-radius:999px;margin-left:6px;padding:0 6px;font-size:.7rem;font-weight:400;display:inline-block}.status-tag{border:1px solid var(--accent);color:var(--accent);vertical-align:middle;border-radius:4px;margin-left:6px;padding:0 4px;font-size:.7rem;font-weight:400;display:inline-block}.skill-group{color:var(--muted);border-bottom:1px dashed var(--border);padding:8px 2px 2px;font-size:.75rem}.status-tag.danger{border-color:var(--danger);color:var(--danger)}.avatar{background:var(--surface);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:1.8rem;display:flex}.avatar.large{width:64px;height:64px;font-size:2.6rem}.avatar{position:relative;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%;display:block}.avatar-sil{background:#1c1922}.avatar-sr{animation:2.4s ease-in-out infinite avatar-sr-glow;box-shadow:0 0 0 2px #e0b850,0 0 10px #ffc85abf}@keyframes avatar-sr-glow{50%{box-shadow:0 0 0 2px #ffe08a,0 0 16px #ffd778f2}}.story-modal .story-portrait{aspect-ratio:1;object-fit:cover;border-radius:12px;width:100%;max-width:320px;margin:0 auto 12px;display:block;box-shadow:0 6px 24px #00000073}.npc-face{object-fit:cover;background:#1c1922;border-radius:10px;flex-shrink:0;width:44px;height:44px}.npc-face.large{align-self:flex-start;width:112px;height:112px}.advice-box{align-items:flex-start;gap:10px;display:flex}.quest-row{align-items:flex-start}.quest-row>.button{align-self:center}.npc-face.client-face{width:56px;height:56px}.client-face-blank{color:var(--muted);opacity:.7;flex-shrink:0;justify-content:center;align-items:center;font-size:1.4rem;display:inline-flex}.quest-desc{font-family:var(--serif);margin:2px 0;font-size:.84rem;line-height:1.7}.remark{font-family:var(--serif);margin-bottom:4px;font-size:.85rem;line-height:1.7}.advisor-jill{border-color:#4a3a3a}.analysis.advisor-jill .advice li{color:#d9b0a0}.npc-face.unknown{filter:brightness(.12)contrast(1.4)blur(.5px)}.advice-box>ul{flex:1;margin:0}.avatar-doll{background:radial-gradient(circle at 50% 60%,#4a4458 0%,#2a2633 75%)}.doll{width:100%;height:100%;position:relative}.doll img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;border-radius:0;position:absolute;inset:0}.avatar-editable .doll img{border-radius:0}.doll-sr{filter:drop-shadow(0 0 2px #ffd36a)drop-shadow(0 0 4px #ffbe50b3);animation:2.4s ease-in-out infinite doll-sr-glow}@keyframes doll-sr-glow{50%{filter:drop-shadow(0 0 1px #ffd36a)drop-shadow(0 0 6px #ffd278e6)}}.icon-grid.doll-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr))}.icon-cell.doll-cell{background:#2a2633;height:52px;padding:2px}.icon-cell.doll-cell.selected{border-color:#ffd36a}.avatar-editable{cursor:pointer;outline-offset:2px;outline:2px dashed #0000;overflow:visible}.avatar-editable img{border-radius:10px}.avatar-editable:hover{outline-color:var(--accent)}.avatar-edit-badge{background:var(--accent);color:#fff;border:2px solid var(--panel);border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;display:flex;position:absolute;bottom:-6px;right:-6px}.portrait-modal{max-width:440px}.portrait-preview{justify-content:center;display:flex}.portrait-preview .avatar.large{border-radius:16px;width:96px;height:96px;font-size:3.8rem}.portrait-icons{max-height:40vh;overflow-y:auto}.portrait-group-label{color:var(--muted);margin:8px 0 4px;font-size:.75rem}.portrait-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.portrait-choice,.portrait-default{border:2px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px}.portrait-choice{font:inherit;padding:4px 4px 7px;font-size:.75rem;overflow:hidden}.portrait-choice img{aspect-ratio:1;object-fit:cover;border-radius:4px;width:100%;margin-bottom:5px;display:block}.portrait-choice span,.portrait-choice small{overflow-wrap:anywhere;display:block}.portrait-choice small{color:var(--muted);margin-top:2px;font-size:.65rem}.portrait-default{text-align:left;width:100%;font:inherit;align-items:center;gap:10px;padding:6px 10px;font-size:.8rem;display:flex}.portrait-choice.selected,.portrait-default.selected{border-color:var(--accent)}.portrait-choice:focus-visible,.portrait-default:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.icon-grid{grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:4px;display:grid}.icon-cell,.color-cell{background:var(--surface);cursor:pointer;border:2px solid #0000;border-radius:8px;height:40px;padding:0;font-size:1.4rem}.icon-cell.selected,.color-cell.selected{border-color:var(--accent)}.color-cell{border-color:var(--border)}.portrait-upload{flex-direction:column;gap:6px;display:flex}.modal-actions{align-items:center;margin:0}.bar{background:var(--track);border-radius:3px;flex:1;min-width:40px;height:6px;overflow:hidden}.bar-fill{height:100%;transition:width .4s}.bar-hp .bar-fill{background:var(--progress)}.bar-danger .bar-fill{background:var(--hp)}.bar-mp .bar-fill{background:var(--mp)}.bar-exp .bar-fill{background:var(--exp)}.bar-progress .bar-fill{background:var(--accent)}.vitals{gap:6px;margin-top:4px;display:flex}.row-stats{color:var(--muted);flex-wrap:wrap;gap:2px 10px;margin-top:4px;font-size:.74rem;display:flex}.row-stats b{color:var(--text);font-weight:400}.labeled-bar,.quest-progress{align-items:center;gap:8px;margin-top:4px;font-size:.78rem;display:flex}.button{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap;border-radius:8px;padding:8px 14px}.button.small{padding:4px 10px;font-size:.82rem}.button.primary{background:var(--accent);border-color:var(--accent-strong);color:var(--on-accent);font-weight:700}.button.primary:hover:not(:disabled){background:var(--accent-strong)}.button.danger{border-color:var(--danger);color:var(--danger)}.button:disabled{opacity:.45;cursor:not-allowed}.button.primary:disabled{background:var(--surface);border-color:var(--border);color:var(--muted);font-weight:400}.link-button{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:.8rem}.link-button:disabled{opacity:.4;cursor:not-allowed}.button-row{flex-wrap:wrap;gap:8px;margin:8px 12px;display:flex}.footer-action{flex-direction:column;align-items:stretch;gap:4px;margin-top:8px;display:flex}.footer-action .button{padding:12px;font-size:1rem}.form-row{align-items:center;gap:8px;display:flex}.form-row input{flex:1}input,select,textarea{border:1px solid var(--border);background:var(--input-bg);color:var(--text);border-radius:8px;padding:7px 10px}.form-block{border-top:1px solid var(--border);flex-direction:column;gap:10px;padding:12px;display:flex}.form-block label{color:var(--muted);flex-direction:column;gap:4px;font-size:.8rem;display:flex}.form-block select{color:var(--text);font-size:.9rem}.title-icon{vertical-align:-.2em;width:1.15em;height:1.15em;color:var(--accent-strong);margin-right:6px;display:inline-flex}.title-icon .tab-svg{width:100%;height:100%}.party-fold{margin:0}.form-block.nested{border-top:none;padding:8px 0 0}.lock-toggle{border:1px solid var(--border);cursor:pointer;opacity:.45;background:0 0;border-radius:6px;flex:none;width:32px;height:32px;font-size:.95rem}.lock-toggle.locked{opacity:1;border-color:var(--accent);background:#b8914a24}.destination-current{border:1px solid var(--border);background:var(--surface);border-radius:8px;align-items:center;gap:10px;padding:8px 10px;display:flex}.destination-picker{margin-top:8px}.destination-list{border:1px solid var(--border);border-radius:8px;flex-direction:column;max-height:320px;display:flex;overflow:hidden auto}.destination-row{border:none;border-bottom:1px solid var(--border);background:var(--panel);color:var(--text);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;display:flex}.destination-row:last-child{border-bottom:none}.destination-row.selected{box-shadow:inset 3px 0 0 var(--accent);background:#b8914a29}.destination-name{font-size:.9rem}.destination-sub{color:var(--muted);font-size:.75rem}.fit-tag{vertical-align:middle;border:1px solid;border-radius:4px;margin-left:6px;padding:0 6px;font-size:.7rem;font-weight:400;display:inline-block}.fit-ok{color:var(--up)}.fit-hard{color:var(--danger)}.fit-easy{color:var(--muted)}.depart-button{white-space:normal;flex-direction:column;align-items:center;display:flex}.depart-notes{font-size:.75rem;font-weight:400}.chip-grid{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:16px;padding:4px 12px;font-size:.88rem}.chip.locked{opacity:.45;border-style:dashed}.chip.selected{background:var(--accent);border-color:var(--accent-strong);color:var(--on-accent)}.segmented{border:1px solid var(--accent);border-radius:8px;margin-bottom:10px;display:flex;overflow:hidden}.segmented button{background:var(--panel);min-width:0;color:var(--accent);cursor:pointer;white-space:nowrap;border:none;flex:1;padding:7px 2px}.dex-head{top:var(--header-h,52px);z-index:9;background:var(--bg);margin:-12px -12px 6px;padding:10px 12px 0;position:sticky}.dex-head .segmented.small{margin-top:-4px}.dex-head .segmented:last-child{margin-bottom:8px}.segmented button+button{border-left:1px solid var(--accent)}.segmented button.active{background:var(--accent);color:var(--on-accent);font-weight:700}.segmented.small button{padding:4px 0;font-size:.82rem}.save-code{width:calc(100% - 24px);min-height:70px;font-family:monospace;font-size:.7rem}.stat-grid{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.stat-cell{background:var(--surface);color:var(--muted);border-radius:6px;flex-direction:column;align-items:center;padding:4px 2px;font-size:.72rem;display:flex}.stat-cell b{color:var(--text);font-size:.95rem}.diffs{flex-wrap:wrap;gap:8px;font-size:.75rem;font-weight:700;display:flex}.check{border:1.5px solid var(--muted);width:1.25em;height:1.25em;color:var(--bg);border-radius:4px;flex:none;justify-content:center;align-items:center;font-size:.95rem;font-weight:700;line-height:1;display:inline-flex}.check.on{border-color:var(--accent);background:var(--accent)}.select-row{border-bottom:1px solid var(--border);align-items:center;display:flex}.select-row:last-child,.select-row .row{border-bottom:none}.select-row.selected{background:var(--highlight)}.order{text-align:center;width:26px;color:var(--accent);font-weight:700}.grow{flex:1;min-width:0}.exp-scene{--tint:60, 50, 70;border-top:1px solid var(--border);background:radial-gradient(ellipse at 50% 0%, rgba(var(--tint), .45), transparent 70%), linear-gradient(180deg, rgba(var(--tint), .18), #0b0a0d 85%);flex-direction:column;gap:10px;padding:10px 12px 12px;display:flex;position:relative;overflow:hidden}.scene-sewer{--tint:70, 90, 60}.scene-forest{--tint:40, 90, 55}.scene-mine{--tint:110, 80, 50}.scene-temple{--tint:40, 90, 110}.scene-volcano{--tint:160, 50, 30}.scene-tower{--tint:90, 70, 150}.scene-abyss{--tint:70, 30, 90}.scene-label{color:var(--muted);font-size:.7rem;font-family:var(--serif);letter-spacing:.1em;position:absolute;top:8px;left:12px}.scene-enemies{justify-content:center;gap:8px;min-height:24px;padding-top:14px;display:flex}.scene-enemy{flex-direction:column;align-items:center;gap:3px;width:64px;transition:filter .4s,opacity .4s;display:flex}.scene-enemy img,.scene-enemy-blank{object-fit:cover;background:#1c1922;border-radius:8px;width:56px;height:56px;box-shadow:0 0 12px #000c}.scene-enemy.down{filter:grayscale()brightness(.45);opacity:.6}.scene-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--text);font-size:.7rem;overflow:hidden}.enemy-hp{background:var(--track);border-radius:2px;width:100%;height:4px;overflow:hidden}.enemy-hp>div{background:var(--hp);height:100%}.scene-party{justify-content:center;gap:10px;display:flex}.scene-member{flex-direction:column;align-items:center;gap:3px;width:76px;animation:2.4s ease-in-out infinite march;display:flex}.scene-member .avatar{width:60px;height:60px;font-size:2.4rem}.scene-member .bar{flex:none;width:100%;min-width:0;height:4px}.scene-hp{color:var(--muted);font-size:.7rem}.scene-member.down{filter:grayscale()brightness(.5);animation:none}.scene-member.down .scene-hp{color:var(--danger)}.returning .scene-member{animation-duration:1.6s}.returning .scene-member .avatar img{transform:scaleX(-1)}@keyframes march{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}.scene-floors{align-items:center;gap:4px;display:flex}.floor-pip{background:var(--track);border-radius:2px;flex:1;height:4px}.floor-pip.done{background:var(--accent)}.floor-pip.here{background:var(--accent-strong);animation:1.8s ease-in-out infinite lantern}@keyframes lantern{0%,to{opacity:.75;box-shadow:0 0 4px #ffc86e80}50%{opacity:1;box-shadow:0 0 10px #ffd278f2}}.scene-boss{object-fit:cover;border:1px solid var(--hp);border-radius:6px;width:28px;height:28px;margin-left:4px}.scene-boss.unknown{filter:brightness(.12)contrast(1.4)}.boss-scene{--tint:90, 30, 30}.boss-face{text-align:center;flex-direction:column;align-items:center;gap:6px;padding-top:14px;display:flex}.boss-face img{object-fit:cover;border:1px solid #dc5a5a99;border-radius:12px;width:120px;height:120px;box-shadow:0 0 24px #c83c3c59}.boss-face img.unknown{filter:brightness(.12)contrast(1.4)}.boss-name{font-family:var(--serif);letter-spacing:.08em;font-size:1.05rem}.boss-hp{width:70%;height:6px}.boss-line{max-width:90%}.log{color:#c9bfae;white-space:pre-wrap;background:#0a090c;max-height:180px;padding:8px 12px;font-size:.75rem;line-height:1.6;overflow-y:auto}.battle-log{border-top:1px solid #000;max-height:300px}.candidate{border-bottom:1px solid var(--border)}.candidate:last-child,.candidate .row{border-bottom:none}.candidate-footer{justify-content:space-between;align-items:center;padding:0 12px 10px 64px;font-size:.8rem;display:flex}.tavern-guest-line{padding:0 12px 6px 64px}.report-lines{margin:6px 0 0;padding-left:18px;font-size:.8rem}.item-titled{color:#7fa8d8;font-weight:700}.item-rare{color:#b48cf2;font-weight:700}.item-cursed{color:#e2675e;font-weight:700}.item-poor{color:#8f8a84}.item-sr{color:#f0c45a;text-shadow:0 0 8px #ffbe3c8c;font-weight:700}.item-unique{color:#c9a7ff;text-shadow:0 0 8px #aa78ff99;font-weight:700}.analysis{background:var(--surface);border:1px solid var(--border);border-radius:8px;margin:8px 0;padding:8px 10px;font-size:.8rem}.analysis ul{margin:2px 0 6px;padding-left:18px}.analysis-title{color:var(--accent-strong);font-weight:700}.log-toggle{margin-top:4px;font-size:.75rem;display:block}.fold{margin:6px 0;font-size:.8rem}.fold>summary{cursor:pointer;color:var(--muted);-webkit-user-select:none;user-select:none;align-items:center;gap:6px;padding:4px 0;list-style:none;display:flex}.fold>summary::-webkit-details-marker{display:none}.fold>summary:before{content:"›";width:.8em;transition:transform .15s;display:inline-block}.fold[open]>summary:before{transform:rotate(90deg)}.section-body>.fold{padding:6px 12px}.fold>.fold-body>.report-lines{margin-top:0}.fold.analysis>summary{color:var(--accent-strong);padding:0;font-weight:700}.fold.analysis[open]>summary{margin-bottom:4px}.analysis .advice li{color:var(--accent-strong)}.dex-detail{flex-direction:column;gap:4px;margin-top:6px;font-size:.8rem;display:flex}.dex-stats{flex-wrap:wrap;gap:4px 12px;display:flex}.sr-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px;padding:8px 12px 12px;display:grid}.arcana-art{border:1px solid var(--accent);border-radius:4px;width:100%;height:auto;margin-bottom:5px;display:block}.sr-cell{border:1px dashed var(--border);border-radius:6px;padding:6px 8px;font-size:.8rem}.sr-cell.got{background:#b8914a1a;border:1px solid #a8822e}.gem-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;padding:10px 12px 4px;display:grid}.gem-cell{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;display:flex}.gem-cell.missing{background:0 0;border-style:dashed}.gem-cell.missing .gem-icon{filter:grayscale()brightness(.35);text-shadow:none}.gem-icon{text-shadow:0 0 10px;font-size:1.6rem;line-height:1}.gem-name{font-size:.82rem;font-family:var(--serif)}.gem-cell .button{margin-top:4px;padding:3px 6px;font-size:.7rem}.flavor{color:#a3967f;font-size:.75rem;line-height:1.7;font-family:var(--serif);margin-top:4px}.flavor p{margin:0 0 4px}.note-text{background:var(--surface);border-left:3px solid var(--accent);font-size:.85rem;line-height:1.8;font-family:var(--serif);margin-top:6px;padding:8px 10px}.note-text p{margin:0 0 6px}.loadout-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;display:flex}.away-modal{max-height:85vh;overflow-y:auto}.away-head{align-items:center;gap:12px;margin-bottom:8px;display:flex}.away-head h2{margin:0}.away-face{object-fit:cover;border:1px solid #e8c27a73;border-radius:50%;width:56px;height:56px}.away-greeting{margin:4px 0 12px;font-size:.9rem}.away-rows{border-top:1px solid var(--border);flex-direction:column;display:flex}.away-row{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:7px 2px;font-size:.88rem;display:flex}.away-row b{text-align:right}.away-block{margin-top:12px;font-size:.88rem}.away-label{color:#e8c27a;letter-spacing:.06em;margin-bottom:4px;font-size:.75rem}.away-levels{flex-wrap:wrap;gap:4px 14px;display:flex}.achievement-toast{left:50%;bottom:calc(68px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:520px;color:var(--text);text-align:left;font:inherit;z-index:20;cursor:pointer;background:linear-gradient(#2a2118,#1b1510);border:1px solid #e8c27a8c;border-radius:10px;align-items:center;gap:12px;padding:10px 14px;animation:.35s ease-out achievement-in;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 6px 24px #0009,0 0 18px #e8c27a26}@keyframes achievement-in{0%{opacity:0;transform:translate(-50%,12px)}}.achievement-toast-icon{font-size:1.6rem}.achievement-toast-body{flex-direction:column;gap:1px;min-width:0;display:flex}.achievement-toast-label{color:#e8c27a;letter-spacing:.08em;font-size:.7rem}.achievement-toast-reward{color:var(--muted);font-size:.75rem}.achievement-mark{text-align:center;width:1.6em;color:var(--muted);flex-shrink:0}.achievement-mark.got{filter:drop-shadow(0 0 4px #e8c27a80)}.achievement-progress{align-items:center;gap:8px;margin-top:4px;font-size:.75rem;display:flex}.achievement-progress .bar{flex:1}.modal-backdrop{z-index:100;background:#040306c7;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{background:var(--modal-bg);border:1px solid var(--accent);border-radius:12px;flex-direction:column;gap:12px;width:100%;max-width:480px;max-height:85vh;padding:20px;display:flex;overflow-y:auto;box-shadow:0 10px 40px #000000b3}.modal h2{color:var(--accent-strong);border-bottom:1px solid var(--border);margin:0;padding-bottom:8px;font-size:1.15rem}.rankup-backdrop{animation:.4s ease-out rankup-fade}.rankup-modal{text-align:center;align-items:center;animation:.5s cubic-bezier(.2,1.4,.4,1) rankup-pop;overflow-x:hidden}.rankup-title{font-family:var(--serif);letter-spacing:.3em;color:var(--accent-strong);font-size:1.05rem}.rankup-emblem{justify-content:center;align-items:center;width:150px;height:150px;margin:4px 0;display:flex;position:relative}.rankup-rays{background:repeating-conic-gradient(#dcbc7c47 0deg 6deg,#0000 6deg 24deg);border-radius:50%;animation:14s linear infinite rankup-spin,1.2s ease-out rankup-fade;position:absolute;inset:-40px;-webkit-mask:radial-gradient(circle,#000 25%,#0000 70%);mask:radial-gradient(circle,#000 25%,#0000 70%)}.rankup-letter{width:110px;height:110px;font-family:var(--serif);color:#2a1d08;background:radial-gradient(circle at 35% 30%,#fff1c8,#dcbc7c 45%,#8a6424 100%);border:3px solid #f3dca4;border-radius:50%;justify-content:center;align-items:center;font-size:4rem;font-weight:700;animation:.7s cubic-bezier(.2,1.6,.4,1) .15s both rankup-stamp,2.4s ease-in-out .9s infinite rankup-glow;display:flex;position:relative;box-shadow:0 0 0 6px #b8914a40,0 0 40px #dcbc7c99}.rankup-from{color:var(--muted);font-size:.9rem}.rankup-from b{color:var(--accent-strong)}.rankup-perks{border:1px solid var(--border);border-radius:8px;width:100%;margin:0;padding:0;list-style:none;overflow:hidden}.rankup-perks li{color:var(--muted);border-bottom:1px solid var(--border);justify-content:space-between;padding:8px 12px;font-size:.88rem;display:flex}.rankup-perks li:last-child{border-bottom:none}.rankup-perks li.up{color:var(--text);background:var(--highlight)}.rankup-perks li.up b{color:var(--accent-strong)}.rankup-perks li.up b:after{content:" ▲";font-size:.7em}.rankup-words{text-align:left;flex-direction:column;gap:8px;width:100%;display:flex}.rankup-word{align-items:flex-start;gap:10px;animation:.6s ease-out .6s both rankup-fade;display:flex}.rankup-word.jill{animation-delay:1.1s}.rankup-word img{object-fit:cover;border:1px solid var(--border);border-radius:50%;flex-shrink:0;width:48px;height:48px}.rankup-word p{font-family:var(--serif);margin:0;font-size:.88rem;line-height:1.7}.rankup-word p b{color:var(--accent);font-size:.75rem;display:block}.rankup-word.jill p b{color:#c97a6a}@keyframes rankup-fade{0%{opacity:0}}@keyframes rankup-pop{0%{opacity:0;transform:scale(.85)}}@keyframes rankup-stamp{0%{opacity:0;transform:scale(2.4)rotate(-12deg)}}@keyframes rankup-spin{to{transform:rotate(360deg)}}@keyframes rankup-glow{50%{box-shadow:0 0 0 10px #b8914a26,0 0 70px #dcbc7cd9}}.story-text p{line-height:1.9;font-family:var(--serif);margin:0 0 10px}.modal h2,.back-header h2,.guild-name,.section-header{font-family:var(--serif)}.section-header{letter-spacing:.08em}.back-header{align-items:center;gap:12px;margin-bottom:12px;display:flex}.back-header h2{margin:0;font-size:1.1rem}.back-header .link-button{font-size:.95rem}.find-fly-layer{pointer-events:none;z-index:40;justify-content:center;align-items:flex-start;padding-top:28vh;display:flex;position:fixed;inset:0}.find-fly{max-width:calc(100% - 32px);color:var(--text);font:inherit;text-align:center;pointer-events:auto;cursor:pointer;background:#0f0d11d1;border:1px solid #7fa8d899;border-radius:12px;flex-direction:column;align-items:center;gap:4px;padding:12px 22px;animation-name:find-fly;animation-timing-function:ease-out;animation-fill-mode:forwards;display:flex;position:relative}.find-fly-label{letter-spacing:.15em;opacity:.85;font-size:.75rem}.find-fly-name{font-size:1.15rem;font-weight:700}.find-fly-more{opacity:.8;font-size:.8rem;font-weight:400}.find-fly-detail{opacity:.8;font-size:.75rem}.find-fly-titled .find-fly-name,.find-fly-titled .find-fly-label{color:#7fa8d8}.find-fly-rare{border-color:#c9a7ffbf;box-shadow:0 0 24px #aa78ff59}.find-fly-rare .find-fly-name,.find-fly-rare .find-fly-label{color:#c9a7ff;text-shadow:0 0 10px #aa78ffb3}.find-fly-super{background:radial-gradient(#46320feb,#0f0d11e6);border-color:#f0c45ae6;padding:16px 28px;box-shadow:0 0 36px #ffbe3c73}.find-fly-super .find-fly-name{color:#f0c45a;text-shadow:0 0 12px #ffbe3cd9;font-size:1.4rem}.find-fly-super .find-fly-label{color:#ffe6a0}.find-fly-burst{z-index:-1;pointer-events:none;background:repeating-conic-gradient(#ffd26e52 0deg 6deg,#0000 6deg 24deg);border-radius:50%;width:320px;height:320px;margin:-160px 0 0 -160px;animation:6s linear infinite find-burst;position:absolute;top:50%;left:50%;-webkit-mask-image:radial-gradient(circle,#000 20%,#0000 68%);mask-image:radial-gradient(circle,#000 20%,#0000 68%)}@keyframes find-fly{0%{opacity:0;transform:translateY(24px)scale(.7)}10%{opacity:1;transform:translateY(0)scale(1.08)}16%{transform:translateY(0)scale(1)}80%{opacity:1;transform:translateY(-8px)scale(1)}to{opacity:0;transform:translateY(-40px)scale(.98)}}@keyframes find-burst{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.find-fly{animation-name:find-fade}.find-fly-burst{animation:none}@keyframes find-fade{0%,to{opacity:0}10%,85%{opacity:1}}}.row-actions{flex-direction:column;align-items:stretch;gap:4px;display:flex}.sell-bar{justify-content:center;padding:8px 0;display:flex;position:sticky;bottom:84px}.term{all:unset;cursor:pointer;text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.term.open{color:var(--accent)}.term-meaning{color:var(--accent);margin-top:2px;font-size:.75rem;display:block}.header-stats .boost{color:var(--accent)}.grade-name{color:var(--accent);font-size:1.1em;font-weight:700}.chronicle-line{font-size:.85rem;line-height:1.6}.dispatch-picker{border-left:2px solid var(--accent);margin:0 0 8px 8px;padding:4px 0 8px 12px}.sub-heading{color:var(--muted,#999);margin:10px 0 4px;font-size:.8rem}.install-steps{margin:8px 0 12px;padding-left:1.4em;line-height:1.7}.install-steps li+li{margin-top:6px}.install-icon{border:1px solid var(--border);border-radius:4px;padding:0 4px;display:inline-block}.install-import{flex-direction:column;align-items:stretch}.install-card{line-height:1.7}.tactic-row{border-bottom:1px solid var(--border);padding:8px 0;display:block}.tactic-label{font-size:.9rem;display:block}.tactic-control{align-items:center;gap:12px;display:flex}.tactic-control input{flex:1}.tactic-value{text-align:right;font-variant-numeric:tabular-nums;min-width:3.5em}.record-room{aspect-ratio:3/4;-webkit-user-select:none;user-select:none;background:#1a120b;border:1px solid #5a4630;border-radius:8px;max-width:520px;margin:4px auto 0;position:relative;overflow:hidden;box-shadow:0 6px 24px #0009,inset 0 0 0 1px #ffdca014}.record-room-bg{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.record-room-hook{aspect-ratio:.8;pointer-events:none;background:radial-gradient(at 35% 25%,#c4a66c,#76603c 40%,#382a18 75%);border-radius:45% 45% 35% 35%;width:1.3%;position:absolute;transform:translate(-50%,-50%);box-shadow:0 2px 2px #1b120d}.relic{aspect-ratio:1;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;margin:0;padding:0;animation:.8s ease-out both relic-in;position:absolute}.relic img{filter:drop-shadow(0 3px 3px #000000a6)sepia(.12)brightness(.92);width:100%;height:100%;transition:filter .2s;display:block}.relic-shelf img{filter:drop-shadow(0 2px 2px #000000bf)sepia(.2)brightness(.78)}.relic-stand img{filter:drop-shadow(2px 4px 4px #000000b3)sepia(.15)brightness(.85)}.relic:active img,.relic:hover img{filter:drop-shadow(0 0 6px #ffd68ce6)brightness(1.12)}.record-room-glow{pointer-events:none;z-index:10;mix-blend-mode:soft-light;background:radial-gradient(circle at 14.3% 63.5%,#ffbe64d9,#0000 22%),radial-gradient(circle at 84.9% 63.5%,#ffbe64d9,#0000 22%),radial-gradient(circle at 49.5% 20.5%,#ffc87899,#0000 26%),radial-gradient(#0000 55%,#000000bf 100%);animation:3.2s ease-in-out infinite alternate candle-flicker;position:absolute;inset:0}.record-room-empty{text-align:center;font-family:var(--serif);letter-spacing:.12em;color:#f0debebf;text-shadow:0 1px 4px #000;z-index:11;font-size:.85rem;position:absolute;top:46%;left:0;right:0}.relic-modal{text-align:center;align-items:center}.relic-modal-img{filter:drop-shadow(0 4px 10px #000c)drop-shadow(0 0 18px #ffc87840);width:160px;height:160px}.relic-modal h2{align-self:stretch}.relic-modal-origin{font-size:.8rem}@keyframes relic-in{0%{opacity:0}}@keyframes candle-flicker{0%{opacity:.85}30%{opacity:1}55%{opacity:.9}80%{opacity:1}to{opacity:.88}}@media (prefers-reduced-motion:reduce){.record-room-glow,.relic{animation:none}}.town>.help,.town>.form-row,.town>.button,.dispatch-picker>.help,.dispatch-picker>.form-row{margin:10px 12px}.town>.sub-heading{border-bottom:1px solid var(--border);margin:0;padding:14px 12px 6px}.town>.skill-group{padding:12px 12px 4px}.town-heading{align-items:center;gap:10px;display:flex}.town-scenery{aspect-ratio:3/2;object-fit:cover;border-radius:6px;flex-shrink:0;width:clamp(56px,17vw,88px);display:block}.town .form-row select{flex:1;min-width:0;margin:0}.guild-name{min-width:0}.guild-name .rank{white-space:nowrap;display:inline-block}@media (width<=400px){.app-header{gap:6px;padding:8px 10px}.guild-name{font-size:.95rem}.guild-name .rank{margin-left:4px;font-size:.7rem}.header-stats{gap:6px;font-size:.78rem}}.room-pet{pointer-events:none;z-index:4;position:absolute;transform:translate(-50%,-50%)}.pet-body{transform-origin:50% 80%;display:block;position:relative}.pet-body img{width:100%;display:block}.pet-sleep .pet-body{animation:4.5s ease-in-out infinite pet-breathe}.pet-perch .pet-body{animation:13s linear infinite pet-look}.pet-float .pet-body{animation:3.6s ease-in-out infinite pet-float}.pet-flame .pet-body{animation:4s ease-in-out infinite pet-breathe,1.4s ease-in-out infinite pet-flicker}.pet-jiggle .pet-body{transform-origin:50% 100%;animation:9s ease-in-out infinite pet-jiggle}@keyframes pet-jiggle{0%,80%,to{transform:scale(1)}84%{transform:scale(1.1,.86)}88%{transform:scale(.95,1.06)}92%{transform:scale(1.03,.97)}}.pet-body .pet-frame{position:absolute;inset:0}.pet-body .pet-hidden{visibility:hidden}@keyframes pet-breathe{0%,to{transform:scale(1)}50%{transform:scale(1.012,1.04)}}@keyframes pet-look{0%,39%{transform:scaleX(1)}40%,62%{transform:scaleX(-1)}63%,85%{transform:scaleX(1)translateY(0)}87%{transform:scaleX(1)translateY(-5%)}89%,to{transform:scaleX(1)translateY(0)}}@keyframes pet-float{0%,to{transform:translateY(0)}50%{transform:translateY(-7%)}}@keyframes pet-flicker{0%,to{filter:brightness()}50%{filter:brightness(1.18)}}@media (prefers-reduced-motion:reduce){.room-pet .pet-body,.room-pet img{animation:none}}.keeper-name{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.keeper-voice{margin-top:4px;font-style:italic}.slide-confirm{margin-top:8px;display:block;position:relative}input[type=range],input[type=checkbox]{accent-color:var(--accent)}.slide-confirm input[type=range]{width:100%;height:40px;accent-color:var(--danger);margin:0}.slide-confirm-label{color:var(--muted);pointer-events:none;justify-content:center;align-items:center;font-size:.8rem;display:flex;position:absolute;inset:0}.maintenance{justify-content:center;align-items:center;min-height:100dvh;padding:16px;display:flex}.maintenance-card{text-align:center;max-width:420px;line-height:1.8}.update-banner{top:calc(env(safe-area-inset-top,0px) + 8px);z-index:200;border:1px solid var(--accent);background:var(--panel);max-width:calc(100% - 32px);color:var(--accent);white-space:nowrap;cursor:pointer;border-radius:999px;padding:8px 14px;font-size:.85rem;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #0006}.race-tags{gap:6px;margin:10px 12px 4px;display:flex}.race-bars{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;margin:6px 12px;display:grid}.race-bar{align-items:center;gap:6px;font-size:.75rem;display:flex}.race-bar-label{width:2.8em;color:var(--muted)}.race-bar-track{background:var(--border);border-radius:3px;flex:1;height:6px;overflow:hidden}.race-bar-fill{background:var(--accent);height:100%;display:block}input,select,textarea{font-size:16px}.save-failed{bottom:calc(env(safe-area-inset-bottom,0px) + 72px);z-index:210;border:1px solid var(--danger);background:var(--panel);color:var(--danger);border-radius:8px;padding:10px 12px;font-size:.85rem;position:fixed;left:12px;right:12px}.recovery{justify-content:center;align-items:center;min-height:100dvh;padding:16px;display:flex}.recovery-card{flex-direction:column;gap:10px;max-width:420px;line-height:1.7;display:flex}.button.small{min-height:34px}@media (width<=400px){.row-actions{flex-wrap:wrap;justify-content:flex-end;max-width:45%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.tavern-refresh{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;padding:8px 12px;font-size:.85rem;display:flex}.outcome-legend{margin:6px 12px}.lamp-note{left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 80px);z-index:220;border:1px solid var(--border);background:var(--panel);color:var(--muted);white-space:nowrap;pointer-events:none;border-radius:8px;padding:8px 14px;font-size:.85rem;position:fixed;transform:translate(-50%)}.boost{cursor:pointer}.back-link{margin:0 0 8px;display:inline-block}.hint-mark{border:1px solid var(--border);width:20px;height:20px;color:var(--muted);cursor:pointer;background:0 0;border-radius:50%;flex:none;justify-content:center;align-items:center;margin-left:6px;padding:0;font-size:.72rem;line-height:1;display:inline-flex}.hint-mark.open{border-color:var(--accent);color:var(--accent)}.section-header .hint-mark{margin-right:auto}.hint-toggle{color:var(--muted);cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;margin:4px 6px;padding:2px 0;font-size:.75rem;display:inline-flex}.hint-toggle .hint-mark{width:16px;height:16px;margin-left:0;font-size:.65rem}.hint-open,.section-help{cursor:pointer}.section-help{margin:8px 12px}.party-faces{border-bottom:1px solid var(--border);grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px;padding:12px;display:grid}.party-face{flex-direction:column;align-items:center;gap:3px;min-width:0;display:flex;position:relative}.party-face .avatar{width:52px;height:52px}.party-face.danger .avatar{box-shadow:0 0 0 1.5px var(--danger)}.party-face .bar{flex:0 0 4px;width:100%;height:4px}.party-face-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:.8rem;overflow:hidden}.party-face-sub{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--muted);font-size:.7rem;overflow:hidden}.party-face-tag{background:var(--danger);color:#fff;white-space:nowrap;border-radius:999px;padding:0 6px;font-size:.7rem;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.icon{vertical-align:-.18em;width:1.1em;height:1.1em;color:var(--accent-strong);flex:none;display:inline-flex}.icon svg{width:100%;height:100%}.help .icon,.muted .icon{color:inherit}.race-traits{margin:6px 6px 8px;padding:0;font-size:.8rem;line-height:1.6;list-style:none}.race-traits li{padding:2px 0}.race-trait-label{color:var(--accent-strong);margin-right:8px}.race-traits li.asleep,.race-traits li.asleep .race-trait-label{color:var(--muted)}.party-face-avatar{position:relative}.party-face-lv{background:var(--panel);color:var(--accent-strong);white-space:nowrap;border:1px solid #b8914a99;border-radius:6px;padding:0 4px;font-size:.7rem;line-height:1.4;position:absolute;bottom:-4px;right:-6px}.letter-row{border-left:3px solid #0000}.letter-row:has(.letter-head.good){border-left-color:#e0b850cc}.letter-row:has(.letter-head.bad){border-left-color:var(--danger)}.letter-head{align-items:center;gap:12px;display:flex}.letter-face{flex:none;display:inline-flex}.letter-head .letter-face .avatar{width:60px;height:60px}.letter-face.down .avatar{filter:grayscale()brightness(.6)}.letter-head-text{min-width:0}.letter-from{color:var(--muted);flex-wrap:wrap;align-items:center;gap:2px 6px;font-size:.75rem;display:flex}.letter-headline{font-family:var(--serif);margin-top:3px;font-size:1.02rem;line-height:1.45}.letter-head.good .letter-headline{color:var(--accent-strong)}.letter-body{background:#b8914a0d;border:1px solid #b8914a59;border-radius:10px;margin-top:12px;padding:12px}.letter-talk{flex-direction:column;gap:10px;margin-bottom:12px;display:flex}.letter-line{align-items:flex-start;gap:10px;display:flex}.letter-line .avatar{border-radius:8px;width:38px;height:38px}.letter-line-text{min-width:0;font-family:var(--serif);line-height:1.75}.letter-line-name{color:var(--accent-strong);font-family:inherit;font-size:.75rem;line-height:1.3;display:block}.letter-chips{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.letter-chip{border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:2px 10px;font-size:.75rem}.letter-chip.good{color:var(--accent-strong);border-color:#e0b850b3}.letter-chip.bad{border-color:var(--danger);color:var(--danger)}.letter-again{white-space:normal;width:100%;margin-bottom:6px}.form-row input{min-width:0}.form-row>.button,.form-row>.avatar{flex:none}@media (width<=360px){.segmented button{white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:1.25}}.cloud-email{margin:8px 12px}.cloud-conflict .cloud-card{border:1px solid var(--border);border-radius:10px;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;display:flex}.notice-block{margin:8px 0 14px}.notice-date{color:var(--accent-strong);font-size:.85rem}.notice-block ul{margin:6px 0 0;padding-left:1.2em;font-size:.9rem;line-height:1.7}.notice-modal .button{width:100%}.letter-record section{margin:10px 0 14px}.letter-record h4{color:var(--accent-strong);border-bottom:1px solid var(--border);margin:0 0 6px;padding-bottom:3px;font-size:.85rem}.letter-record .record-items{columns:2;column-gap:16px;margin:0;padding-left:1.2em;font-size:.88rem;line-height:1.7}.record-growth{margin:0;padding:0;font-size:.88rem;list-style:none}.record-growth li{border-bottom:1px solid var(--border);overflow-wrap:anywhere;flex-wrap:wrap;gap:0 10px;padding:3px 6px;display:flex}.record-growth li b{min-width:6em;font-weight:400}.record-growth .up{color:var(--accent-strong)}.link-button{min-height:40px;margin:-10px -4px;padding:10px 4px}.segmented button{white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:1.25}.header-stats{flex-wrap:wrap;justify-content:flex-end;row-gap:2px}.row-actions .button,.sell-bar .button{white-space:normal}.sell-bar{bottom:calc(68px + env(safe-area-inset-bottom,0px))}.app-main{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}.stat-cell b{overflow-wrap:anywhere;text-align:center}.lamp-note{white-space:normal;text-align:center;max-width:calc(100% - 32px)}.unequip-button{flex:none;align-self:center}.choice-results{margin:4px 0 8px;padding-left:1.2em}.choice-results li{margin:2px 0}.choice-buttons{flex-direction:column;gap:8px;display:flex}.choice-buttons .button{white-space:normal;width:100%}.confirm-modal{flex-direction:column;gap:10px;display:flex}.confirm-modal p{margin:0}.back-footer{text-align:center;margin:8px 0 16px}.settings-links{text-align:center}.settings-links a+a{margin-left:16px}.dish-image{object-fit:cover;border-radius:6px;flex:none;width:64px;height:64px}.guide-body .dish-image{width:96px;height:96px;margin-bottom:8px;display:block}.party-face.clickable{cursor:pointer}.destination-row{width:100%}.tier-chips{align-self:stretch;gap:4px;margin-top:4px;display:flex}.tier-chip{white-space:nowrap;letter-spacing:-.02em;cursor:pointer;background:0 0;border:1px solid;border-radius:6px;flex-direction:column;flex:auto;align-items:center;min-width:0;padding:4px;font-size:.8rem;line-height:1.2;display:inline-flex}.tier-chip small{opacity:.85;font-size:.68rem}.tier-chip.selected{box-shadow:0 0 0 2px var(--accent);background:#b8914a40}.quest-thanks-line{align-items:center;gap:10px;margin-bottom:6px;display:flex}.quest-thanks-line p{margin:0}.arena-ladder{max-height:320px;font-size:.85rem;line-height:1.7;overflow-y:auto}.arena-self{color:var(--accent);font-weight:700}.arena-ladder-entry{align-items:center;gap:8px;display:flex}.arena-ladder-entry .npc-face{border-radius:6px;width:32px;height:32px;margin:2px 0}.arena-ladder-gap{padding:4px 0 4px 8px;font-size:.8rem}
