.dungeon-surface{color:#f3eddc;font:var(--ui-font-weight) 14px/1.45 var(--ui-font-body);background:#202c27;border:1px solid #a99a73;border-radius:8px;box-shadow:0 16px 44px #07110bc0}.dungeon-surface button,.dungeon-surface input,.dungeon-surface select{min-height:var(--ui-touch-target);font:inherit;color:#f3eddc;background:#16221d;border:1px solid #71816b;border-radius:4px;padding:8px 10px}.dungeon-surface button:hover:not(:disabled),.dungeon-surface button[aria-pressed=true]{background:#45583d}.dungeon-surface button:disabled{opacity:.55;cursor:default}.dungeon-surface :focus-visible{outline-offset:2px;outline:2px solid #f5d490}.dungeon-surface input,.dungeon-surface select{caret-color:#f5d490;width:100%;min-width:0}.dungeon-surface label{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}.dungeon-surface fieldset{border:0;min-width:0;margin:0;padding:0}.dungeon-surface fieldset fieldset{padding:8px 0}.dungeon-surface .dungeon-check{min-height:var(--ui-touch-target);flex-direction:row;align-items:center;gap:10px;margin:0}.dungeon-surface input[type=checkbox]{accent-color:#ddc180;width:22px;height:22px;min-height:22px}.dungeon-surface h2{margin:0;font-size:20px}.dungeon-surface h3{margin:0 0 8px;font-size:16px}.dungeon-surface p{max-width:70ch;margin:4px 0 12px}.dungeon-surface header,.dungeon-surface footer,.dungeon-surface nav{flex-shrink:0;align-items:center;gap:12px;padding:12px 16px;display:flex}.dungeon-surface header{border-bottom:1px solid #65735d;justify-content:space-between}.dungeon-surface header p{color:#d2cbb5;margin:4px 0 0}.dungeon-surface footer{border-top:1px solid #65735d;flex-wrap:wrap}.dungeon-surface footer span{color:#d2cbb5;margin-right:auto}.dungeon-backdrop{z-index:45;padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));background:#101a1466;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.dungeon-admin{flex-direction:column;width:min(1060px,100%);height:min(850px,100%);display:flex;overflow:hidden}.dungeon-editor{flex:1;grid-template-columns:180px minmax(0,1fr);min-height:0;display:grid}.dungeon-editor aside{border-right:1px solid #65735d;flex-direction:column;gap:8px;padding:12px;display:flex;overflow:auto}.dungeon-edit-scroll{scrollbar-color:#8e9e7c #16221d;padding:16px;overflow:auto}.dungeon-fields{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.dungeon-confirm{flex:1;padding:24px}.dungeon-confirm button{margin:8px}.dungeon-message{overflow-wrap:anywhere;background:#3b3322;flex-shrink:0;max-height:100px;padding:8px 16px;overflow:auto}.dungeon-map-scroll{scrollbar-color:#8e9e7c #16221d;background:#14221e;min-width:0;min-height:0;overflow:auto}.dungeon-map{margin:auto;position:relative}.dungeon-map svg{pointer-events:none;position:absolute;inset:0}.dungeon-map line{stroke:#8b9e80;stroke-width:8px}.dungeon-map .dungeon-room{opacity:1;background:#3e5140;flex-direction:column;justify-content:center;align-items:center;gap:0;width:72px;height:64px;padding:4px;font-size:13px;display:flex;position:absolute}.dungeon-map .dungeon-room small{font-size:10px}.dungeon-map .dungeon-room.current{background:#5a6142;border:3px solid #f5d490}.dungeon-map .dungeon-room.unvisited{background:#1d3029}.rotate-device{display:none}@media (height<=500px) and (orientation:landscape){.dungeon-backdrop{padding:max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left))}.dungeon-surface header,.dungeon-surface nav,.dungeon-surface footer{gap:8px;padding:6px 10px}.dungeon-surface h2{font-size:17px}.dungeon-surface footer span{display:none}.dungeon-editor{grid-template-columns:145px minmax(0,1fr)}.dungeon-edit-scroll{padding:10px}}@media (width<=950px) and (orientation:portrait){.rotate-device{z-index:10000;text-align:center;color:#f3eddc;font:var(--ui-font-weight) 18px/1.5 var(--ui-font-body);background:#17271f;flex-direction:column;justify-content:center;align-items:center;padding:32px;display:flex;position:fixed;inset:0}.rotate-device p{max-width:28ch}.rotate-device svg{stroke:#e2c98a;fill:none;stroke-width:2px;width:64px;height:64px}}.dungeon-surface .dungeon-room:disabled{opacity:1}.dungeon-map-scroll[data-theme=cavern]{background:#22212b}.dungeon-map-scroll[data-theme=ruins]{background:#262a22}.dungeon-map-scroll[data-theme=forest]{background:#142c23}.dungeon-theme-picker{grid-template-columns:1fr 1fr;gap:0 12px;display:grid}.dungeon-theme-empty{color:#c9c2ab;grid-column:1/-1;margin:0 0 12px;font-size:.85rem}@media (width<=520px){.dungeon-theme-picker{grid-template-columns:1fr}}
