.dungeon-page{--gold:#e3b77f;--line:#4c4642;--bg:#161b1e;--muted:#b2aaa1;background:radial-gradient(ellipse at 14% 0,#36352e,transparent 58%),#161b1e}.dungeon-page .header{border-color:#524b40}.dungeon-page nav{color:#c5b9a4}.dungeon-page .intro-copy{color:#cabdad}.dungeon-page .tag{border-color:#75654b;color:#e6c797}.dungeon-page .play-heading{background:linear-gradient(115deg,#32332e,#22272a);border-color:#615849}.dungeon-page .game-shell{grid-template-columns:minmax(0,1fr) 282px;background:#1b2226;border-color:#615849}.dungeon-page .hud{background:#242a2a;border-color:#665748;padding:16px 20px}.dungeon-page .hud span{color:#bcb29f}.dungeon-page .hud strong{color:#edcf9a;font-size:19px}.dungeon-page .canvas-wrap{background:#11191e}.dungeon-page .build-panel{background:linear-gradient(150deg,#30322d,#1c2529);border-color:#625c4d;padding:22px 18px}.dungeon-page button{background:#303831;border-color:#686957}.dungeon-page button:hover{background:#4a4e3e}.dungeon-page button.primary{background:#e3b77f;border-color:#e3b77f;color:#302719}.dungeon-page button.primary:hover{background:#f3cf9e}.dungeon-page button[aria-pressed=true]{border-color:#d5ad6e;background:#565340}.dungeon-page .field-toolbar{background:#272d2c;border-color:#635543}.dungeon-page .field-toolbar button{min-height:44px}.dungeon-page .hint{background:#202726;color:#c7bcaa;border-color:#524a3e;min-height:74px}.dungeon-page .load-status{background:#151c20e6;color:#e5bd84}.dungeon-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;background:#1a2325;padding:10px;border-top:1px solid #625342}.dungeon-tools button{min-height:68px;text-align:left;padding:10px 9px}.dungeon-tools b{display:block;font-size:11px;font-weight:600;color:#ebd2ac}.dungeon-tools small{display:block;margin-top:6px;font-size:9px;color:#b6b2a3;line-height:1.5}.dungeon-tools button[aria-pressed=true]{box-shadow:inset 0 -3px #d5ad6e}.view-badge{position:absolute;top:16px;left:18px;display:flex;gap:9px;align-items:center;padding:7px 12px;border:1px solid #827052;background:#17201fe0;border-radius:24px;font-size:11px;color:#eed4aa;max-width:calc(100% - 36px);pointer-events:none}.view-badge i{width:5px;height:5px;background:#e1bd76;box-shadow:0 0 9px #e1bd76;border-radius:50%}.view-badge button{pointer-events:auto;border:0;background:none;font-size:11px;padding:3px 9px;min-height:34px;border-left:1px solid #827052;border-radius:0}.possession-tip{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:8px 14px;background:#151b1fce;border:1px solid #796851;border-radius:4px;font-size:10px;color:#dcc298;white-space:nowrap;pointer-events:none}.roster-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:17px 0 10px}.roster-heading b{font-size:12px;color:#deccb0;font-weight:500}.roster-heading button{font-size:10px;padding:8px;min-height:38px}.guard-list{display:grid;gap:6px}.guard-card{display:flex;gap:11px;text-align:left;padding:9px 10px;align-items:center;min-height:58px}.guard-card .guard-number{font:16px/1 Georgia,serif;color:#debf8e;width:25px;flex-shrink:0;text-align:center}.guard-card b{display:block;font-size:11px;font-weight:500}.guard-card small{display:block;font-size:9px;color:#b0b49f;margin-top:5px}.guard-card[aria-pressed=true]{box-shadow:inset 3px 0 #d5ad6e}.selected-guard{border-top:1px solid #5f594a;border-bottom:1px solid #5f594a;margin:18px 0;padding:17px 0}.guard-profile{display:flex;gap:10px;align-items:center}.guard-sigil{font-size:24px;color:#dfc08e;width:32px;text-align:center}.guard-profile b{font-size:13px;font-weight:500;color:#e9cd9e}.guard-profile small{display:block;margin-top:5px;font-size:10px;color:#a9b1a0}.health-track{height:4px;background:#16211f;margin:13px 0 18px;border-radius:2px;overflow:hidden}.health-track i{height:100%;width:0;display:block;background:linear-gradient(90deg,#7a9e80,#bed6a0);transition:width .15s linear}.selected-guard label{display:block;font-size:10px;color:#b5b5a0;margin-bottom:7px}.selected-guard select{font:inherit;background:#202a29;color:#e0cfaf;width:100%;border:1px solid #72705b;min-height:44px;border-radius:4px;padding:9px;font-size:11px}.selected-guard select:focus-visible{outline:3px solid #e3b77f;outline-offset:2px}.possession-button{width:100%;margin-top:10px;min-height:48px}.selected-guard>p{font-size:10px;line-height:1.8;color:#b1b09d;margin:12px 0 0}.room-guide b{font-size:12px;color:#e5c799;font-weight:500}.room-guide p{font-size:11px;color:#b6b19e;margin:8px 0;line-height:1.8}.room-guide span{font-size:10px;line-height:1.8;display:block;color:#a8b19e}.dungeon-log{margin-top:18px;font-size:10px;color:#bfb99e}.dungeon-log summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:#d9c6a0}.dungeon-log p{font-size:10px;color:#a4b1a0;white-space:pre-line;margin:6px 0}.dungeon-page .save-row{color:#a5b5a3}.dungeon-page .keys{color:#9cae9e}.dungeon-page .end-card{background:#202821f0;border-color:#c6ac79}.dungeon-page .end-card>p:not(.eyebrow){color:#cbbfa9}.dungeon-page .learning article>span{color:#d4b58c}.dungeon-page .learning p{color:#b8b0a1}.dungeon-page .learning a{color:#e1c396}.dungeon-compare{border-top:1px solid #544e43;padding:34px 0 44px}.dungeon-compare h2{font-size:24px;line-height:1.5;font-weight:500;margin:0 0 12px}.dungeon-compare>p:not(.eyebrow){font-size:12px;color:#b8b0a1}.dungeon-compare>div{display:flex;flex-wrap:wrap;gap:16px}.dungeon-compare a{font-size:11px;color:#e1c396;display:flex;min-height:44px;align-items:center}.touch-controls{padding:12px 14px;background:#252c29;border-top:1px solid #615848;display:flex;justify-content:space-between;gap:20px}.touch-movement,.touch-combat{display:flex;gap:5px}.touch-controls button{min-width:46px;min-height:46px;padding:10px;font-size:18px;touch-action:none;user-select:none}.touch-controls button.touch-attack{font-size:12px;color:#f2d19c;border-color:#bca16c;min-width:65px}.touch-controls button[aria-pressed=true]{background:#806543}.dungeon-page .canvas-wrap:fullscreen{background:#11191d}.dungeon-page footer{border-color:#544e43;color:#a69e8c}
@media(min-width:1400px){.dungeon-page .game-shell{grid-template-columns:minmax(0,1fr) 296px}.dungeon-page .build-panel{padding:24px 20px}}
@media(max-width:1150px){.dungeon-page .game-shell{grid-template-columns:minmax(0,1fr) 256px}.dungeon-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.dungeon-tools button{min-height:61px}.dungeon-page .hud strong{font-size:16px}.dungeon-page .build-panel{padding:19px 14px}}
@media(max-width:880px){.dungeon-page .game-shell{grid-template-columns:1fr}.dungeon-page .build-panel{border-left:0;border-top:1px solid #615848;display:grid;grid-template-columns:1fr 1fr;gap:0 22px;padding:20px}.panel-heading,.roster-heading,.guard-list{grid-column:1}.selected-guard{grid-column:2;grid-row:1 / span 3;margin:0;border-top:0;border-bottom:0;padding:0}.room-guide{grid-column:1 / -1;border-top:1px solid #615848;margin-top:20px;padding-top:17px}.dungeon-log,.save-row,.keys{grid-column:1 / -1}.view-badge{top:12px;left:12px;font-size:10px}.dungeon-page .hud{padding:12px 16px}.dungeon-page .hud strong{font-size:17px}.possession-tip{font-size:9px;bottom:13px;padding:6px 10px}}
@media(max-width:540px){.dungeon-page .build-panel{display:block;padding:18px}.selected-guard{margin:17px 0;padding:17px 0;border-top:1px solid #5f594a;border-bottom:1px solid #5f594a}.guard-list{grid-template-columns:repeat(2,minmax(0,1fr))}.guard-card{gap:6px;padding:8px}.guard-card .guard-number{width:18px;font-size:14px}.guard-card small{font-size:8px}.dungeon-page .hud{gap:4px;padding:12px 9px}.dungeon-page .hud strong{font-size:13px}.dungeon-page .hud span{font-size:8px}.dungeon-tools{gap:5px;padding:7px}.dungeon-tools b{font-size:10px}.dungeon-tools small{font-size:8px}.view-badge{font-size:8px;padding:5px 8px;top:8px;left:8px}.view-badge button{font-size:8px;min-height:28px;padding:2px 6px}.possession-tip{display:none}.touch-controls{padding:10px 8px;gap:8px}.touch-movement,.touch-combat{gap:3px}.touch-controls button{min-width:39px;min-height:46px;padding:8px}.touch-controls button.touch-attack{min-width:57px}.dungeon-compare h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.health-track i{transition:none}}
@media(max-width:380px){.touch-controls{flex-wrap:wrap;justify-content:center}.dungeon-tools small{font-size:7px}.dungeon-page .hud strong{font-size:12px}.dungeon-page .hud span{font-size:7px}}
.canvas-wrap>.touch-controls{position:absolute;bottom:12px;left:12px;right:12px;background:transparent;border:0;padding:0;pointer-events:none}.canvas-wrap>.touch-controls button{pointer-events:auto;background:#232d28e8;box-shadow:0 3px 12px #050c10a0}.canvas-wrap>.touch-controls button[aria-pressed=true]{background:#806543f0}.canvas-wrap:fullscreen>.touch-controls{bottom:max(18px,env(safe-area-inset-bottom));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}
@media(max-width:540px){.canvas-wrap>.touch-controls{left:7px;right:7px;bottom:7px}.canvas-wrap>.touch-controls button{min-width:34px;min-height:40px;padding:6px;font-size:16px}.canvas-wrap>.touch-controls button.touch-attack{min-width:47px;font-size:10px}.canvas-wrap>.touch-controls{gap:5px;flex-wrap:nowrap;justify-content:space-between}}
.canvas-wrap>.touch-controls{bottom:65px}.canvas-wrap:fullscreen>.touch-controls{bottom:max(65px,env(safe-area-inset-bottom))}.possession-tip{top:18px;bottom:auto;left:auto;right:18px;transform:none}
@media(max-width:880px){.possession-tip{display:none}}
@media(max-width:540px){.canvas-wrap>.touch-controls{bottom:48px}}
.stage-actions{display:none}.canvas-wrap:fullscreen>.stage-actions{position:absolute;left:50%;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 15px;width:max-content;max-width:calc(100vw - 20px);padding:7px 10px;background:#18221fee;border:1px solid #827052;border-radius:6px;box-shadow:0 4px 18px #050c10a0;z-index:2}.stage-actions>div{display:flex;gap:6px}.stage-actions button{font-size:11px;min-height:44px;padding:8px 12px;white-space:nowrap}.stage-tool-info{font-size:10px;color:#d9c69f;line-height:1.7;white-space:nowrap}.stage-actions[data-view=possession] .stage-tool-info{display:none}
@media(max-width:600px){.canvas-wrap:fullscreen>.stage-actions{padding:3px 6px;gap:3px;bottom:max(5px,env(safe-area-inset-bottom))}.stage-actions button{font-size:10px;padding:7px 9px}.stage-tool-info{font-size:8px;white-space:normal;text-align:center;width:100%}}
