.hand-map{width:100%;height:auto;display:block;border-radius:20px;box-shadow:0 18px 48px #1f160d4d,inset 0 0 0 1px #4b301f61;background:#f3e6c4}.map-wrap{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,250px);grid-template-rows:minmax(0,1fr);gap:12px;align-items:stretch;min-height:0;height:100%}.dungeon-wrap{grid-template-columns:minmax(0,1fr) minmax(210px,250px)}.map-cell{cursor:pointer;outline:none}.cell-bg{transition:fill .12s ease,stroke .12s ease,stroke-width .12s ease,opacity .12s ease}.cell-hitbox{pointer-events:all}.map-cell:hover .cell-bg,.map-cell:focus-visible .cell-bg{fill:#f5c75c33;stroke:#5b3820;stroke-width:1.1;opacity:.9}.map-cell:hover .cell-hitbox,.map-cell:focus-visible .cell-hitbox{stroke:#5b382094;stroke-width:1.15}.map-cell:focus-visible .cell-hitbox{stroke:#fff4cc;stroke-width:2.4}.selected-ring,.current-ring{fill:none;pointer-events:none;paint-order:stroke}.selected-ring{stroke:#eeb143;stroke-width:3.4;stroke-dasharray:7 4;filter:drop-shadow(0 0 2px rgba(70,38,14,.4))}.current-ring{stroke:#b84828;stroke-width:3;filter:drop-shadow(0 0 2px rgba(255,240,190,.85))}.current-cell .cell-bg{stroke:#7f2d206b;stroke-width:.9}.feature-hotspot{cursor:pointer;outline:none}.feature-target{pointer-events:all}.feature-hotspot:hover .feature-aura,.feature-hotspot:focus-visible .feature-aura{fill:#eeb1436b;stroke-width:2.1}.token{filter:drop-shadow(0 4px 3px rgba(30,20,10,.42))}.token .token-halo{opacity:.78}.token.selected>.token-halo{opacity:1}.token.selected>circle.token-rim{stroke:#b84828;stroke-width:2.8}.legend{position:sticky;top:10px;background:#f7e9cbf2;border:1px solid rgba(72,47,29,.34);border-radius:16px;padding:11px;color:#332316;box-shadow:0 8px 22px #28190c29}.legend h3{margin:.1rem 0 .55rem;font-size:1rem}.legend-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;font-size:.76rem;line-height:1.15}.legend span{display:flex;align-items:center;gap:5px;min-width:0}.legend svg{width:28px;height:28px;flex:0 0 28px;background:#fff8e16b;border-radius:7px}.legend-note{grid-column:1 / -1;border-top:1px dotted rgba(72,47,29,.28);padding-top:5px;margin-top:1px}.legend-dot:before{content:"✦";display:inline-grid;place-items:center;width:22px;height:22px;border:1px dashed #4b301f;border-radius:99px;margin-right:5px;background:#f1c96a33}.legend-fog:before{content:"";width:22px;height:22px;background:linear-gradient(#eed8aa94,#d6b47870),repeating-linear-gradient(0deg,rgba(126,103,70,.18) 0 1px,transparent 1px 7px),repeating-linear-gradient(90deg,rgba(126,103,70,.16) 0 1px,transparent 1px 7px);display:inline-block;border-radius:5px;margin-right:5px;box-shadow:inset 0 0 0 1px #6d4b2238}.preview-route{pointer-events:none;filter:drop-shadow(0 2px 2px rgba(55,31,12,.25))}.preview-route .route-step{opacity:.95}.preview-route .route-destination{opacity:1}.preview-route .route-line{stroke-linecap:round;stroke-linejoin:round}.fog{pointer-events:none}.fog .fog-vellum{mix-blend-mode:multiply}.fog-wilderness .fog-vellum{fill:#d6b47757}.fog-wilderness .fog-soft-line{stroke:#fff6da80;opacity:.32}.fog-wilderness .fog-map-scratch{stroke:#75563147;opacity:.42}.fog-dungeon .fog-vellum{fill:#3b3027;opacity:.46}.fog-dungeon .fog-soft-line{stroke:#efe1bd;opacity:.14}.fog-dungeon .fog-map-scratch{stroke:#1f1915;opacity:.12}.feature-marker{filter:drop-shadow(0 2px 2px rgba(0,0,0,.24))}.terrain-road,.dungeon-wall{mix-blend-mode:multiply}.dungeon-cell.revealed-cell .cell-bg{fill:#e9d5ab3d}.dungeon-cell.unrevealed-cell .cell-bg{fill:#3a2d2329}.map-deckle{stroke:#c6a46a;stroke-width:7;opacity:.15}.map-ink-border{stroke:#4b301f;stroke-width:1.85;opacity:.62}.map-cartouche path{stroke:#4b301f;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;opacity:.55}.map-cartouche text{font-family:Georgia,serif;font-size:13px;font-weight:700;fill:#4b301f;opacity:.68}.map-route-label{stroke:#744d2c;stroke-width:1.8;stroke-dasharray:6 6;opacity:.32}.map-label,.site-label,.room-label{font-family:Georgia,serif;paint-order:stroke;stroke:#f3e6c4;stroke-linejoin:round;fill:#3b2819;letter-spacing:.02em;pointer-events:none}.map-label{font-size:18px;font-weight:700;font-style:italic;opacity:.76;stroke-width:4px}.site-label{font-size:9.5px;font-weight:800;opacity:.9;stroke-width:3.3px}.room-label{font-size:8.5px;font-weight:800;opacity:.6;text-transform:uppercase;letter-spacing:.09em;stroke-width:3px}.searched-mark{stroke:#6a4324;stroke-width:1.25;stroke-linecap:round;opacity:.5;fill:none;pointer-events:none}.terrain,.dungeon-symbol{pointer-events:none}@media(max-width:900px){.map-wrap,.dungeon-wrap{grid-template-columns:1fr}.legend{position:static;font-size:.9rem}.legend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.map-wrap{gap:8px}.legend-grid{grid-template-columns:1fr}.site-label{font-size:8.5px}}.graph-paper{mix-blend-mode:multiply;opacity:.84}.map-drawn-area{fill:#fff9e129;stroke:#533e264d;stroke-width:1.1;pointer-events:none}.dungeon-drawn-area{fill:#ecdab31c}.graph-cell-wash{stroke:none;mix-blend-mode:multiply}.map-cell:hover .graph-cell-wash,.map-cell:focus-visible .graph-cell-wash{fill:#f5c75c2e;opacity:.9}.wilderness-grid .cell-hitbox{stroke:transparent;stroke-width:0}.dungeon-grid .cell-hitbox{stroke:#4935200e;stroke-width:.32}.wilderness-grid .map-cell:hover .cell-hitbox,.wilderness-grid .map-cell:focus-visible .cell-hitbox{stroke:#4935207a;stroke-width:.95}.dungeon-grid .map-cell:hover .cell-hitbox,.dungeon-grid .map-cell:focus-visible .cell-hitbox{stroke:#49352061;stroke-width:.85}.wilderness-grid .terrain{filter:drop-shadow(0 .45px .18px rgba(70,46,25,.1))}.wilderness-cell .graph-cell-wash{opacity:.58}.wilderness-cell.current-cell .current-ring,.wilderness-cell.selected-cell .selected-ring,.dungeon-cell.current-cell .current-ring,.dungeon-cell.selected-cell .selected-ring{vector-effect:non-scaling-stroke}.map-wrap.legend-hidden{grid-template-columns:minmax(0,1fr)}.map-viewport{position:relative;min-width:0;min-height:clamp(520px,calc(100vh - 96px),980px);height:100%;overflow:hidden}.wilderness-camera-surface{height:100%;min-height:0;touch-action:none;cursor:grab}.wilderness-camera-surface:active{cursor:grabbing}.legend-toggle{position:absolute;top:10px;right:10px;z-index:4;padding:.42rem .58rem;border:1px solid rgba(73,48,30,.42);background:#694023e6;box-shadow:0 3px 9px #23160c42;font-size:.74rem}.map-camera-controls{position:absolute;left:10px;bottom:10px;z-index:4;display:flex;flex-wrap:wrap;gap:5px;max-width:min(92%,360px)}.map-camera-controls button{padding:.38rem .52rem;border:1px solid rgba(73,48,30,.34);background:#4f3622e0;font-size:.74rem}.local-action-menu{position:fixed;z-index:20;display:grid;gap:6px;min-width:145px;max-width:min(240px,calc(100vw - 24px));padding:9px;border:1px solid rgba(72,47,29,.42);border-radius:13px;background:#f7e9cbf7;box-shadow:0 12px 28px #1f160d4d,inset 0 0 0 2px #eeb1431f;color:#332316}.local-action-menu strong{font-family:Georgia,serif;font-size:.88rem}.local-action-menu button{padding:.46rem .6rem;border-radius:9px;text-align:left}.selected-wash{fill:#eeb14333;stroke:none;pointer-events:none;mix-blend-mode:multiply}.legend-scale{display:block!important;line-height:1.28}.legend-scale small{opacity:.82}.legend-scale em{font-style:normal;font-weight:800;color:#6f3e1f}.subtle-map-label{opacity:.5;font-size:15px}@media(max-width:900px){.map-wrap,.dungeon-wrap{height:auto}.map-viewport{min-height:62vh}.legend-toggle{top:8px;right:8px}}@media(max-width:600px){.map-viewport{min-height:58vh}.map-camera-controls button,.legend-toggle{font-size:.72rem;padding:.34rem .44rem}.local-action-menu{left:8px!important;right:8px;top:auto!important;bottom:12px}}.qa-camera-notes{position:absolute;left:10px;top:10px;max-width:min(58%,420px);padding:7px 9px;border-radius:11px;background:#f7e9cbdb;border:1px solid rgba(72,47,29,.24);color:#3b2819;font-size:.74rem;font-weight:700}.regional-wrap{grid-template-columns:minmax(0,1fr) minmax(220px,260px)}.regional-viewport{min-height:clamp(520px,calc(100vh - 96px),900px)}.regional-hex-surface{height:100%;min-height:0}.regional-hex-fill{opacity:.82}.regional-hex-line{stroke:#4935204d;stroke-width:1.05;stroke-dasharray:9 3 2 3;vector-effect:non-scaling-stroke}.regional-hex:hover .regional-hex-fill,.regional-hex:focus-visible .regional-hex-fill{fill:#f5c75c38}.regional-hex:hover .regional-hex-line,.regional-hex:focus-visible .regional-hex-line{stroke:#5b3820b3;stroke-width:1.45}.regional-ring{fill:none;vector-effect:non-scaling-stroke}.regional-connection{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.58}.regional-road{stroke:#744d2cb8;stroke-width:4;stroke-dasharray:10 7}.regional-trail{stroke:#5e492d85;stroke-width:2.2;stroke-dasharray:4 7}.regional-creek{stroke:#46789185;stroke-width:3;stroke-dasharray:12 5}.regional-route-glyph,.unknown-site-label,.map-layer-label{font-family:Georgia,serif;fill:#4b301f;paint-order:stroke;stroke:#f3e6c4;stroke-width:3px;pointer-events:none}.regional-route-glyph{font-size:7px;opacity:.52;font-style:italic}.map-layer-label{font-size:13px;font-weight:800;opacity:.78;stroke-width:4px}.regional-site-label{font-size:8.5px}.unknown-site-label{font-size:24px;font-weight:900;opacity:.45}.regional-action-card{position:absolute;left:12px;bottom:12px;z-index:4;max-width:min(360px,calc(100% - 24px));padding:10px 12px;border:1px solid rgba(72,47,29,.34);border-radius:14px;background:#f7e9cbf0;color:#332316;box-shadow:0 8px 22px #28190c2e}.regional-action-card strong{font-family:Georgia,serif}.regional-action-card p{margin:.35rem 0 .55rem;font-size:.82rem}.regional-hex.adjacent-target-cell .regional-hex-fill{fill:#7098503d}.regional-hex.adjacent-target-cell .selected-ring{stroke:#6f9c4d;stroke-width:4}.regional-action-hint{color:#352316c2;font-style:italic}:root{font-family:Inter,ui-serif,Georgia,system-ui,sans-serif;color:#2c2117;background:#21180f}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at top,#4b3724,#1d140c 62%)}button{border:0;border-radius:10px;background:#7b3e24;color:#fff;padding:.65rem .9rem;font-weight:700;cursor:pointer;box-shadow:0 2px #00000040}button:hover{background:#9a4c29}button:disabled{opacity:.45;cursor:not-allowed}.danger{background:#7d2520}.home{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 25%,rgba(230,185,104,.18),transparent 36%)}.title-card{max-width:790px;background:#f4e2beed;border:1px solid rgba(93,62,35,.55);padding:40px;border-radius:24px;box-shadow:0 24px 70px #00000061;text-align:center}.title-card h1{font-size:clamp(2rem,6vw,4.8rem);line-height:.95;margin:.2rem 0;color:#3c2918}.eyebrow{text-transform:uppercase;letter-spacing:.18em;color:#8e4c25;font-weight:800}.home-actions,.button-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.game-shell{height:100vh;display:grid;grid-template-columns:minmax(0,1fr) 380px;grid-template-rows:auto minmax(0,1fr);gap:12px;padding:12px}.topbar{grid-column:1/-1;display:flex;gap:14px;align-items:center;background:#f4e2beeb;border:1px solid rgba(93,62,35,.45);border-radius:14px;padding:8px 12px;box-shadow:0 8px 22px #0000003d}.map-stage{min-width:0;min-height:0;overflow:hidden;display:block}.side-stack{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px}.panel{background:#f4e2bef0;border:1px solid rgba(93,62,35,.45);border-radius:16px;padding:12px;box-shadow:0 8px 22px #00000038}.panel h2{margin:.1rem 0 .55rem;color:#3d2918}.panel p{margin:.35rem 0}.preview-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.cost-badge{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid rgba(107,67,36,.35);background:#eeb14338;color:#653719;border-radius:999px;padding:.28rem .55rem;font-size:.78rem;font-weight:800}.action-panel{border-color:#9a4c2985;box-shadow:0 10px 24px #0000003d,inset 0 0 0 2px #eeb1431f}.action-panel-empty{border-style:dashed}.action-buttons button:first-child{background:#2f6f4f}.action-buttons button:first-child:hover{background:#3d835f}.action-buttons button:last-child{background:#674733}.muted{opacity:.9}.log{max-height:340px;overflow:auto}.log-entry{border-top:1px dotted rgba(82,55,34,.4);padding:.45rem 0}.log-entry time{font-size:.74rem;font-weight:800;color:#8a4d25}.log-entry p{margin:.1rem 0}.char{border-top:1px dotted rgba(82,55,34,.4);padding:.55rem 0}.char.lead{background:#eeb14324;border-radius:12px;padding:.55rem}.char-head{display:grid;grid-template-columns:42px 1fr auto;gap:8px;align-items:center}.char h3{margin:0;font-size:1rem}.char p{font-size:.82rem}.skills{color:#5d351e}.status{font-weight:800;color:#824622}.visual{min-height:100vh;padding:12px;display:flex;flex-direction:column;gap:14px}.qa-card{background:#f4e2bef0;border-radius:18px;padding:16px;border:1px solid rgba(93,62,35,.45)}.token-row{display:flex;flex-wrap:wrap;gap:18px}.token-row figure{width:110px;text-align:center;margin:0}.token-row svg{width:80px;height:80px;background:#ead4a8;border-radius:14px}.gallery-float{position:fixed;right:20px;bottom:20px}@media(max-width:1050px){.game-shell{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr);height:auto;min-height:100vh}.side-stack{overflow:visible}.action-panel{position:sticky;bottom:8px;z-index:5}.map-stage{overflow:visible;min-height:0}}@media(max-width:600px){.preview-head{display:block}.cost-badge{margin-bottom:.35rem}.button-row{justify-content:stretch}.button-row button{flex:1 1 130px}.game-shell{padding:6px}.topbar{font-size:.85rem;gap:7px;overflow:auto}.panel{border-radius:13px}.home{padding:12px}.title-card{padding:24px}.map-stage{margin:0 -4px}}.actor-select{display:flex;align-items:center;gap:.5rem;margin:.35rem 0}.actor-select select{flex:1;border:1px solid rgba(93,62,35,.35);border-radius:9px;background:#fff5dd;color:#332316;padding:.45rem}.check-card{border:1px solid rgba(107,67,36,.24);background:#fff6dc8f;border-radius:12px;padding:.55rem;margin:.45rem 0}.stat-grid,.ability-grid,.equip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem .55rem;margin:.5rem 0}.stat-grid span,.ability-grid span,.equip-grid span{border:1px solid rgba(93,62,35,.18);background:#fff8e27a;border-radius:9px;padding:.32rem .4rem;font-size:.78rem}.ability-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ability-grid em{font-style:normal;color:#7b3e24}.sheet-card details{margin:.45rem 0}.sheet-card summary{cursor:pointer;font-weight:800;color:#56331d}.skill-table p{display:grid;grid-template-columns:8.5rem 1fr;gap:.4rem;border-top:1px dotted rgba(82,55,34,.28);padding:.25rem 0;font-size:.76rem}.inventory-list{display:flex;flex-direction:column;gap:.4rem;margin-top:.45rem}.item-row{display:grid;grid-template-columns:1fr auto;gap:.4rem;align-items:center;border-top:1px dotted rgba(82,55,34,.28);padding:.4rem 0}.item-row em{font-style:normal;color:#794524;font-size:.75rem}.item-row small{color:#5d432e}.conditions{font-size:.8rem}.qa-phase2-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.qa-mini{border:1px solid rgba(93,62,35,.25);border-radius:14px;background:#fff8e280;padding:10px}.light-swatch{display:flex;gap:8px}.light-swatch span{flex:1;border-radius:10px;padding:18px 8px;text-align:center;font-weight:800}.light-bright{background:#ffe9a3}.light-dim{background:#8d6d43;color:#fff}.light-dark{background:#1e1712;color:#ffe2a1}@media(max-width:600px){.stat-grid,.ability-grid,.equip-grid,.skill-table p,.item-row{grid-template-columns:1fr}.item-row button{width:100%}}.map-stage{position:relative}.party-bar{position:absolute;left:50%;bottom:14px;z-index:8;width:min(96%,760px);transform:translate(-50%);pointer-events:none}.party-bar-scroll{display:flex;gap:10px;justify-content:center;overflow-x:auto;padding:8px;border:1px solid rgba(70,43,24,.45);border-radius:20px;background:linear-gradient(180deg,#4c2f1dd1,#2a1d13e0);box-shadow:0 14px 34px #00000057,inset 0 0 0 1px #ffeebc1f;pointer-events:auto;scrollbar-width:thin}.party-member-icon{position:relative;display:grid;grid-template-columns:42px minmax(54px,1fr);gap:7px;align-items:center;min-width:132px;padding:7px 8px;border:1px solid rgba(255,225,157,.28);border-radius:16px;background:#f6e0b2eb;color:#2c2117;text-align:left;box-shadow:0 4px #0000003d,inset 0 0 0 1px #ffffff2e}.party-member-icon:hover{background:#fff0c8}.party-member-icon.is-lead{border-color:#eeb143;box-shadow:0 0 0 2px #eeb14357,0 4px #0000003d}.party-member-icon.is-actor{outline:2px solid rgba(47,111,79,.7);outline-offset:2px}.party-member-icon.is-damaged .party-icon-stats:first-of-type{color:#8f2c23}.party-portrait svg{width:42px;height:42px;display:block;background:#ead4a8;border-radius:999px}.party-icon-main{display:grid;gap:1px}.party-icon-name{font-size:.76rem;font-weight:900;letter-spacing:.06em}.party-icon-name abbr{text-decoration:none}.party-icon-stats{font-size:.78rem;line-height:1.15}.party-icon-badges{position:absolute;display:flex;gap:3px;left:8px;right:8px;top:-9px;min-height:16px;align-items:center}.party-badge{display:inline-flex;align-items:center;border-radius:999px;padding:1px 5px;font-size:.58rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em;border:1px solid rgba(70,43,24,.24);background:#fff5d6;color:#4b301c}.lead-badge{background:#eeb143}.actor-badge{background:#8dc4a6}.light-badge{background:#ffe27d}.condition-badge{margin-left:auto;background:#8f2c23;color:#fff}.sheet-modal-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:24px;background:#140d0894;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.character-sheet-modal{width:min(940px,100%);max-height:min(88vh,820px);overflow:auto;border:2px solid rgba(89,55,30,.65);border-radius:22px;background:linear-gradient(180deg,#f3dfb8,#e7cfa0);box-shadow:0 28px 80px #0000007a,inset 0 0 0 3px #fff7da59;padding:16px;color:#2c2117}.sheet-modal-header{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid rgba(82,55,34,.25);padding-bottom:10px}.sheet-modal-header svg{width:54px;height:54px;background:#ead4a8;border-radius:16px}.sheet-modal-header h2{margin:0;color:#3d2918}.sheet-modal-header p{margin:.12rem 0}.sheet-close{font-size:1.45rem;line-height:1;padding:.45rem .7rem;border-radius:999px;background:#674733}.sheet-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.sheet-tabs button{background:#6b5036;padding:.5rem .75rem}.sheet-tabs button.active{background:#2f6f4f;box-shadow:0 0 0 2px #eeb14347}.sheet-tab-panel{border:1px solid rgba(93,62,35,.25);border-radius:16px;background:#fff8e280;padding:12px}.sheet-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.sheet-ability-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sheet-toggle-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.modal-skill-table p{grid-template-columns:minmax(7rem,10rem) 1fr;border-radius:10px;padding:.35rem .45rem}.modal-skill-table .armor-skill{background:#8f2c2314}.modal-skill-table .trained-skill{border-left:3px solid rgba(47,111,79,.65)}.sheet-equip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.item-action-note{display:block;margin-top:2px;color:#6e3e21}.side-stack .log{max-height:none;flex:1 1 auto}.side-stack .action-panel,.side-stack .location{flex:0 0 auto}@media(max-width:1050px){.party-bar{position:sticky;bottom:8px;left:auto;transform:none;width:100%;margin-top:-74px;padding:0 8px}.party-bar-scroll{justify-content:flex-start}.map-stage{padding-bottom:4px}.sheet-modal-backdrop{align-items:end;padding:10px}.character-sheet-modal{max-height:92vh;border-radius:20px 20px 10px 10px}.sheet-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-ability-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.party-bar{margin-top:-68px}.party-bar-scroll{gap:8px;padding:7px}.party-member-icon{min-width:118px;grid-template-columns:36px 1fr;padding:7px}.party-portrait svg{width:36px;height:36px}.party-icon-stats{font-size:.72rem}.sheet-modal-backdrop{padding:0}.character-sheet-modal{width:100%;max-height:100vh;border-radius:0;padding:12px}.sheet-modal-header{grid-template-columns:46px 1fr auto}.sheet-modal-header svg{width:46px;height:46px}.sheet-tabs{flex-wrap:nowrap;overflow-x:auto}.sheet-tabs button{white-space:nowrap}.sheet-stat-grid,.sheet-ability-grid,.sheet-equip-grid,.modal-skill-table p,.item-row{grid-template-columns:1fr}.item-row button{justify-self:start}}.qa-party-stage{position:relative;min-height:360px;border:1px dashed rgba(93,62,35,.35);border-radius:16px;background:linear-gradient(180deg,#3526182e,#fff8e252);padding:18px;overflow:hidden}.qa-party-stage .qa-party-bar{position:relative;left:auto;bottom:auto;transform:none;width:min(760px,100%);margin:0 auto 18px}.qa-modal-card{max-width:740px;margin:0 auto;border:2px solid rgba(89,55,30,.65);border-radius:22px;background:linear-gradient(180deg,#f3dfb8,#e7cfa0);box-shadow:0 18px 46px #0000003d,inset 0 0 0 3px #fff7da59;padding:14px}.map-stage .map-camera-controls{bottom:108px}.map-stage .local-action-menu{margin-bottom:84px}.party-bar{width:min(94%,820px);bottom:16px}.party-bar-scroll{position:relative;justify-content:flex-start;gap:9px;padding:12px 12px 10px;border-radius:22px;background:linear-gradient(180deg,#53331fe6,#241911f0);box-shadow:0 16px 36px #00000061,inset 0 0 0 1px #ffeebc29}.party-bar-scroll:before{content:"Party";position:sticky;left:0;align-self:center;z-index:1;margin-right:1px;padding:.24rem .42rem;border-radius:999px;background:#eeb143e6;color:#3b2819;font-size:.58rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 2px #00000038}.party-member-icon{isolation:isolate;min-width:148px;min-height:72px;grid-template-columns:44px minmax(68px,1fr);gap:8px;padding:12px 9px 8px;border-color:#ffe19d57;background:linear-gradient(180deg,#fcecc6f5,#e7c687f0);touch-action:manipulation}.party-member-icon:focus-visible{outline:3px solid #fff2bf;outline-offset:3px}.party-member-icon.is-lead{border-color:#eeb143;box-shadow:0 0 0 2px #eeb14375,0 4px #0000003d,inset 0 0 0 1px #ffffff38}.party-member-icon.is-actor{outline:3px solid rgba(47,111,79,.82);outline-offset:2px}.party-member-icon.is-low-hp{background:linear-gradient(180deg,#ffe5c5fa,#e8b189f0)}.party-portrait svg{width:44px;height:44px;box-shadow:inset 0 0 0 2px #4b301f26}.party-icon-main{gap:3px}.party-icon-name{font-size:.82rem;line-height:1}.party-icon-stats{display:inline-flex;align-items:baseline;justify-content:space-between;gap:4px;min-width:0;border:1px solid rgba(83,55,33,.18);border-radius:8px;background:#fffae8a8;padding:.12rem .3rem;font-size:.82rem;line-height:1.15}.party-icon-stats b{font-size:.66rem;letter-spacing:.06em;color:#71411f}.party-icon-stats strong{font-size:.88rem}.party-member-icon.is-damaged .hp-stat strong{color:#8f2c23}.party-member-icon.is-low-hp .hp-stat{border-color:#8f2c2357;background:#ffefe2d1}.party-icon-badges{top:-8px;left:9px;right:9px;gap:4px;pointer-events:none}.party-badge{min-height:16px;padding:1px 6px;font-size:.57rem;box-shadow:0 1px #00000029}.lead-badge{background:#eeb143;color:#3b2819}.actor-badge{background:#2f6f4f;color:#fff}.light-badge{background:#ffe27d;color:#4b301c;border-style:dashed}.light-badge:before{content:"✦";margin-right:2px}.condition-badge{margin-left:auto;min-width:18px;justify-content:center;background:#8f2c23;color:#fff}.sheet-modal-backdrop{background:radial-gradient(circle at 50% 18%,rgba(246,214,150,.18),transparent 28%),#140d08a3}.character-sheet-modal{width:min(900px,calc(100vw - 36px));max-height:min(86vh,780px);border-color:#59371ebd;background:linear-gradient(180deg,#f7e7c6,#ead1a1 48%,#dec08a);box-shadow:0 30px 86px #00000085,inset 0 0 0 3px #fff9df6b,inset 0 0 48px #603a1c1a}.sheet-modal-header{grid-template-columns:58px minmax(0,1fr) auto;align-items:start}.sheet-status-line{display:inline-flex;margin-top:.24rem!important;border:1px solid rgba(83,55,33,.18);border-radius:999px;background:#fff8e28c;padding:.18rem .48rem;font-size:.78rem;font-weight:800}.sheet-tabs{position:sticky;top:-16px;z-index:2;margin:12px -4px;padding:8px 4px;background:linear-gradient(180deg,#f7e7c6f7,#eed6aae6);border-bottom:1px solid rgba(82,55,34,.18)}.sheet-tabs button{min-height:40px;background:#6b5036;border:1px solid rgba(255,238,188,.18)}.sheet-tabs button.active,.sheet-tabs button[aria-selected=true]{background:#2f6f4f;box-shadow:0 0 0 2px #eeb14361}.sheet-tab-panel{background:#fff8e29e;box-shadow:inset 0 0 0 1px #ffffff38}.sheet-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px dotted rgba(82,55,34,.28);margin-bottom:10px;padding-bottom:6px}.sheet-section-heading h3{margin:0;color:#3d2918}.sheet-section-heading p{margin:0;color:#6b4428;font-size:.84rem;font-weight:700}.sheet-state-button.active{background:#eeb143;color:#3b2819}.sheet-state-button.actor.active{background:#2f6f4f;color:#fff}.modal-skill-table p{align-items:center;background:#fff8e25c}.modal-skill-table strong{font-size:1.03em;color:#2f6f4f}.item-row{border-top-color:#52372238;background:#fffae847;border-radius:10px;padding:.45rem .55rem}.side-stack .location h2,.side-stack .action-panel h2,.side-stack .log h2{font-family:Georgia,serif}.side-stack .location{border-color:#eeb14373}.side-stack .log-entry{display:grid;grid-template-columns:4.8rem 1fr;gap:8px;align-items:start}.side-stack .log-entry time{padding-top:.12rem}.side-stack .log-entry p{margin:0}.side-stack .check-card.primary-check{border-color:#2f6f4f59;background:#ecf8e594}@media(max-width:1050px){.game-shell{gap:8px}.map-stage{overflow:hidden}.party-bar{position:absolute;left:50%;right:auto;bottom:10px;width:calc(100% - 16px);transform:translate(-50%);margin:0;padding:0}.party-bar-scroll{padding:11px 10px 9px}.map-stage .map-camera-controls{bottom:102px}.map-stage .local-action-menu{margin-bottom:88px}.character-sheet-modal{width:min(760px,calc(100vw - 20px));max-height:92vh}.sheet-modal-backdrop{align-items:end}.sheet-section-heading{display:block}.side-stack .log-entry{grid-template-columns:1fr}.action-panel{bottom:6px}}@media(max-width:600px){.map-viewport{min-height:56vh}.party-bar{bottom:8px}.party-bar-scroll{gap:7px;padding:10px 8px 8px;scroll-padding:8px}.party-bar-scroll:before{font-size:.54rem;padding:.2rem .36rem}.party-member-icon{min-width:126px;min-height:68px;grid-template-columns:38px minmax(58px,1fr);gap:6px;padding:11px 7px 7px}.party-portrait svg{width:38px;height:38px}.party-icon-name{font-size:.76rem}.party-icon-stats{font-size:.76rem;padding:.1rem .24rem}.party-icon-stats strong{font-size:.8rem}.party-badge{font-size:.52rem;padding:1px 4px}.map-stage .map-camera-controls{bottom:96px;max-width:calc(100% - 20px)}.map-stage .local-action-menu{bottom:96px!important;margin-bottom:0}.sheet-modal-backdrop{align-items:stretch}.character-sheet-modal{width:100%;max-height:100vh;border-width:0;border-radius:0;padding:12px 10px}.sheet-modal-header{grid-template-columns:46px minmax(0,1fr) auto;gap:9px}.sheet-modal-header h2{font-size:1.2rem}.sheet-status-line{font-size:.72rem}.sheet-tabs{top:-12px;margin-left:-2px;margin-right:-2px;gap:6px;overflow-x:auto;flex-wrap:nowrap}.sheet-tabs button{flex:0 0 auto;min-height:38px;padding:.46rem .58rem}.sheet-section-heading p{font-size:.8rem}.sheet-tab-panel{padding:10px}.item-row button{width:100%}}
