.adventure-forge{max-width:1640px;color:var(--parch);min-width:0;margin:0 auto;padding:28px 28px 48px}.adventure-nav{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:18px 28px;font-size:14px;display:flex}.adventure-nav>a:last-child{color:var(--gold-bright)}.adventure-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px;display:flex}.adventure-heading h1{font-family:var(--font-display);font-size:2.25rem;line-height:1.15}.adventure-heading p{color:var(--muted-2);margin:9px 0 0;font-size:14px}.adventure-heading-actions{gap:8px;display:flex}.adventure-back{color:var(--gold-bright);align-items:center;margin-bottom:10px;font-size:12px;display:inline-flex}.adventure-layout{grid-template-columns:288px minmax(0,1fr);align-items:start;gap:20px;display:grid}.adventure-panel{border:1px solid var(--line);background:var(--ink-700);border-radius:12px;min-width:0;overflow:hidden}.adventure-panel-tabs{border-bottom:1px solid var(--line);gap:2px;padding:6px;display:flex}.adventure-panel-tabs>button{cursor:pointer;min-height:40px;color:var(--muted-2);border-radius:6px;flex:1;font-size:12px}.adventure-panel-tabs>button[aria-pressed=true]{background:var(--ink-500);color:var(--gold-bright)}.adventure-panel-content{min-height:400px;max-height:calc(100vh - 245px);padding:20px;overflow:auto}.adventure-panel h2{font-family:var(--font-display);margin:0 0 18px;font-size:21px}.adventure-panel fieldset{border:0;gap:14px;min-width:0;padding:0;display:grid}.adventure-panel .rl-field{color:var(--muted-2);gap:7px;min-width:0;font-size:12px;display:grid}.adventure-panel input:not([type=checkbox]):not([type=range]),.adventure-panel select,.adventure-panel textarea{border:1px solid var(--line);background:var(--ink-600);width:100%;min-width:0;max-width:100%;min-height:42px;color:var(--parch);font:inherit;border-radius:7px;padding:9px 10px;font-size:14px}.adventure-panel textarea{resize:vertical;min-height:85px}.adventure-panel input[type=range]{width:100%;height:24px;accent-color:var(--gold)}.adventure-fields{grid-template-columns:1fr 1fr;gap:12px;display:grid}.adventure-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:3px 0;padding:14px 0}.adventure-details summary{cursor:pointer;color:var(--parch);min-height:24px;font-size:13px}.adventure-details[open]{gap:15px;display:grid}.adventure-details[open]>.rl-field,.adventure-details[open]>.adventure-check{margin-top:14px}.adventure-generate{gap:8px;display:grid}.adventure-save-world{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.adventure-save-world p{margin-top:12px;line-height:1.6}.adventure-save-world a{text-underline-offset:3px;color:var(--gold-bright);text-decoration:underline}.adventure-panel .rl-help{color:var(--muted-2);margin:12px 0;font-size:12px;line-height:1.65}.adventure-check{cursor:pointer;align-items:center;gap:8px;min-height:40px;font-size:13px;display:flex}.adventure-check input{width:18px;height:18px;accent-color:var(--gold);flex-shrink:0}.adventure-lore-link{color:var(--gold-bright);margin-top:18px;font-size:13px;display:block}.adventure-stage{min-width:0}.adventure-map-heading{justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;display:flex}.adventure-map-heading h2{font-family:var(--font-display);overflow-wrap:anywhere;font-size:24px}.adventure-map-heading span{color:var(--muted);align-items:center;gap:5px;margin-top:4px;font-size:11px;display:flex}.adventure-map-heading>div:last-child{gap:6px;display:flex}.adventure-toolbar{border:1px solid var(--line);background:var(--ink-700);border-radius:10px 10px 0 0;flex-wrap:wrap;align-items:center;gap:2px;padding:6px;display:flex}.adventure-toolbar button{min-width:43px;min-height:48px;color:var(--muted-2);cursor:pointer;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:6px 9px;font-size:10px;display:flex}.adventure-toolbar button[aria-pressed=true]{color:var(--gold-bright);background:var(--ink-500)}.adventure-toolbar button:hover:not(:disabled),.adventure-contextbar button:hover{background:var(--ink-500);color:var(--parch)}.adventure-toolbar button:disabled{opacity:.4;cursor:not-allowed}.adventure-history{margin-left:auto;display:flex}.adventure-contextbar{background:var(--ink-850);border-inline:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:14px;padding:8px 12px;font-size:12px;display:flex}.adventure-contextbar label,.adventure-contextbar button{cursor:pointer;align-items:center;gap:6px;min-height:32px;display:flex}.adventure-contextbar select{background:var(--ink-700);color:var(--parch);border:1px solid var(--line);max-width:180px;font:inherit;border-radius:5px;min-height:32px;padding:5px}.adventure-contextbar input{accent-color:var(--gold)}.adventure-contextbar button{margin-left:auto}.adventure-canvas-wrap{background:var(--ink-900);border:1px solid var(--line);isolation:isolate;position:relative;overflow:hidden}.adventure-canvas{touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;width:100%;height:min(66vh,760px);min-height:380px;display:block}.adventure-zoom{background:var(--ink-800);border:1px solid var(--line);border-radius:8px;align-items:center;gap:2px;padding:3px;font-size:11px;display:flex;position:absolute;bottom:12px;right:12px}.adventure-zoom span{text-align:center;min-width:36px;color:var(--parch)}.adventure-scale{color:var(--parch);background:var(--ink-800);pointer-events:none;border-radius:6px;padding:7px 9px;font-size:10px;position:absolute;bottom:14px;left:12px}.adventure-bottom{color:var(--muted-2);justify-content:space-between;align-items:center;gap:15px;padding:12px 0;font-size:12px;display:flex}.adventure-bottom button{color:var(--gold-bright);white-space:nowrap;min-height:34px}.adventure-checks{background:var(--ink-700);color:var(--muted-2);border-radius:8px;padding:12px 15px;font-size:12px}.adventure-checks summary{cursor:pointer;color:var(--gold-bright)}.adventure-checks p{margin-top:10px}.adventure-room-list{max-height:340px;margin:12px 0 22px;display:grid;overflow:auto}.adventure-room-list button{border-bottom:1px solid var(--line-2);text-align:left;cursor:pointer;align-items:center;gap:10px;min-height:44px;padding:10px 5px;font-size:12px;display:flex}.adventure-room-list button>span{color:var(--gold);min-width:20px}.adventure-room-list button>strong{overflow-wrap:anywhere;flex:1;font-weight:500}.adventure-room-list button[aria-pressed=true]{color:var(--gold-bright)}.adventure-feedback{background:var(--ink-700);border:1px solid var(--line);border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;padding:12px 16px;font-size:13px;display:flex}.adventure-feedback>span{flex:1}.adventure-feedback>button{min-width:36px;min-height:36px}.adventure-error{border-color:var(--danger);color:#edb5a6}.adventure-export-buttons{grid-template-columns:1fr 1fr;gap:8px;margin-top:14px;display:grid}.adventure-saved-link{color:var(--gold-bright);gap:20px;margin-top:12px;font-size:12px;display:flex}.adventure-mobile-settings,.adventure-panel-close{display:none!important}.adventure-forge button:focus-visible,.adventure-forge input:focus-visible,.adventure-forge select:focus-visible,.adventure-forge textarea:focus-visible,.adventure-forge svg:focus-visible,.adventure-forge summary:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px}.adventure-forge button{cursor:pointer}.adventure-forge button:disabled{cursor:not-allowed}.adventure-three{background:var(--ink-900);border:1px solid var(--line);height:min(66vh,760px);min-height:380px;position:relative}.adventure-three-canvas{touch-action:none;width:100%;height:100%}.adventure-three-controls{flex-wrap:wrap;gap:6px;display:flex;position:absolute;top:12px;left:12px}.adventure-three-controls button,.adventure-three-controls select{background:var(--ink-800);color:var(--parch);border:1px solid var(--line);border-radius:7px;min-height:40px;padding:9px 12px;font-size:12px}.adventure-three-status{background:var(--ink-800);color:var(--parch);padding:10px;font-size:13px;position:absolute;bottom:15px;left:15px}@media (max-width:1000px){.adventure-layout{grid-template-columns:250px minmax(0,1fr);gap:14px}.adventure-forge{padding:22px 18px}.adventure-panel-content{padding:16px}.adventure-toolbar button{padding:5px 7px}.adventure-canvas{min-height:350px}.adventure-scale{bottom:68px}.adventure-heading h1{font-size:2rem}}@media (max-width:760px){.adventure-nav{padding:14px 16px}.adventure-forge{padding:18px 12px 30px}.adventure-heading{align-items:flex-start;gap:10px;margin-bottom:20px}.adventure-heading h1{font-size:1.65rem}.adventure-heading p{max-width:190px;font-size:12px;line-height:1.5}.adventure-heading-actions{flex-direction:column;gap:4px}.adventure-heading-actions>a,.adventure-heading-actions>button{min-height:40px;padding:8px 12px;font-size:12px}.adventure-layout{display:block}.adventure-panel{display:none}.adventure-panel.is-open{z-index:110;border-radius:14px 14px 0 0;max-height:80dvh;display:block;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -10px 40px #0007}.adventure-panel-content{min-height:0;max-height:calc(80dvh - 56px);padding:18px 20px calc(24px + env(safe-area-inset-bottom))}.adventure-mobile-settings,.adventure-panel-close{display:inline-flex!important}.adventure-panel-tabs>.adventure-panel-close{flex:0 0 42px;justify-content:center;align-items:center}.adventure-map-heading{align-items:flex-start}.adventure-map-heading h2{font-size:21px}.adventure-map-heading>div:last-child{flex-direction:column}.adventure-map-heading>div:last-child>button{min-height:36px;padding:7px 9px;font-size:11px}.adventure-toolbar{scrollbar-width:thin;flex-wrap:nowrap;gap:1px;overflow-x:auto}.adventure-toolbar button{flex-shrink:0;min-width:43px;min-height:46px}.adventure-history{margin-left:5px}.adventure-contextbar{gap:8px;padding:7px 8px;font-size:11px}.adventure-contextbar select{max-width:120px}.adventure-contextbar label,.adventure-contextbar button{min-height:36px}.adventure-canvas,.adventure-three{height:57dvh;min-height:330px}.adventure-bottom{align-items:flex-start;font-size:11px;line-height:1.6}.adventure-zoom{bottom:8px;right:8px}.adventure-feedback{font-size:12px}.adventure-forge input,.adventure-forge select,.adventure-forge textarea{font-size:16px!important}.adventure-panel-content .adventure-fields{gap:16px}.adventure-panel-tabs>button{min-height:44px}.adventure-three-controls{gap:4px}.adventure-three-controls button,.adventure-three-controls select{padding:8px;font-size:11px}.adventure-scale{bottom:62px;left:8px}}.adventure-forge.is-compact .adventure-nav{padding:14px 16px}.adventure-forge.is-compact{padding:18px 12px 30px}.adventure-forge.is-compact .adventure-heading{align-items:flex-start;gap:10px;margin-bottom:20px}.adventure-forge.is-compact .adventure-heading h1{font-size:1.65rem}.adventure-forge.is-compact .adventure-heading p{max-width:190px;font-size:12px;line-height:1.5}.adventure-forge.is-compact .adventure-heading-actions{flex-direction:column;gap:4px}.adventure-forge.is-compact .adventure-heading-actions>a,.adventure-forge.is-compact .adventure-heading-actions>button{min-height:40px;padding:8px 12px;font-size:12px}.adventure-forge.is-compact .adventure-layout{display:block}.adventure-forge.is-compact .adventure-panel{display:none}.adventure-forge.is-compact .adventure-panel.is-open{z-index:110;border-radius:14px 14px 0 0;max-height:80dvh;display:block;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -10px 40px #0007}.adventure-forge.is-compact .adventure-panel-content{min-height:0;max-height:calc(80dvh - 56px);padding:18px 20px calc(24px + env(safe-area-inset-bottom))}.adventure-forge.is-compact .adventure-mobile-settings,.adventure-forge.is-compact .adventure-panel-close{display:inline-flex!important}.adventure-forge.is-compact .adventure-panel-tabs>.adventure-panel-close{flex:0 0 42px;justify-content:center;align-items:center}.adventure-forge.is-compact .adventure-map-heading{align-items:flex-start}.adventure-forge.is-compact .adventure-map-heading h2{font-size:21px}.adventure-forge.is-compact .adventure-map-heading>div:last-child{flex-direction:column}.adventure-forge.is-compact .adventure-map-heading>div:last-child>button{min-height:36px;padding:7px 9px;font-size:11px}.adventure-forge.is-compact .adventure-toolbar{scrollbar-width:thin;flex-wrap:nowrap;gap:1px;overflow-x:auto}.adventure-forge.is-compact .adventure-toolbar button{flex-shrink:0;min-width:43px;min-height:46px}.adventure-forge.is-compact .adventure-contextbar{gap:8px;padding:7px 8px;font-size:11px}.adventure-forge.is-compact .adventure-contextbar select{max-width:120px}.adventure-forge.is-compact .adventure-contextbar label,.adventure-forge.is-compact .adventure-contextbar button{min-height:36px}.adventure-forge.is-compact .adventure-canvas,.adventure-forge.is-compact .adventure-three{height:57dvh;min-height:330px}.adventure-forge.is-compact .adventure-bottom{align-items:flex-start;font-size:11px;line-height:1.6}.adventure-forge.is-compact .adventure-zoom{bottom:8px;right:8px}.adventure-forge.is-compact .adventure-feedback{font-size:12px}.adventure-forge.is-compact input,.adventure-forge.is-compact select,.adventure-forge.is-compact textarea{font-size:16px!important}.adventure-forge.is-compact .adventure-panel-content .adventure-fields{gap:16px}.adventure-forge.is-compact .adventure-panel-tabs>button{min-height:44px}.adventure-forge.is-compact .adventure-three-controls{gap:4px}.adventure-forge.is-compact .adventure-three-controls button,.adventure-forge.is-compact .adventure-three-controls select{padding:8px;font-size:11px}.adventure-forge.is-compact .adventure-scale{bottom:62px;left:8px}.adventure-backdrop{z-index:109;background:#0c0b08a8;position:fixed;inset:0;cursor:default!important}.adventure-three-controls{z-index:1}.adventure-three-controls button{align-items:center;gap:6px;display:inline-flex}.adventure-three-canvas canvas{width:100%;height:100%;display:block}.adventure-panel .rl-field,.adventure-panel .rl-field .rl-help{margin:0}.adventure-forge.is-compact .adventure-contextbar select[aria-label=Current\ floor]{width:160px;max-width:160px}.adventure-panel-content{scrollbar-color:var(--gold-dim) var(--ink-800);scrollbar-width:thin}.adventure-forge input,.adventure-forge textarea{caret-color:var(--gold-bright)}.adventure-layout.panel-collapsed{grid-template-columns:minmax(0,1fr)}.adventure-panel[hidden]{display:none!important}.adventure-desktop-settings{display:inline-flex}.adventure-forge.is-compact .adventure-desktop-settings{display:none}.adventure-draw-tool select{background:var(--ink-700);min-width:112px;max-width:150px;min-height:44px;color:var(--parch);border:1px solid var(--line);font:inherit;border-radius:7px;padding:8px;font-size:13px}.adventure-toolbar button{flex-direction:row;gap:6px;min-height:44px;padding-inline:10px;font-size:12px}.adventure-panel-content{padding:16px}.adventure-panel h2{margin-bottom:14px;font-size:19px}.adventure-details summary{align-content:center;min-height:40px}.adventure-details{padding-block:4px}.adventure-heading{margin-bottom:20px}.adventure-heading p{display:none}.adventure-generate{background:var(--ink-700);padding-block:8px;position:sticky;bottom:0}@media (max-width:760px){.adventure-desktop-settings{display:none}.adventure-forge .adventure-toolbar{flex-wrap:wrap}.adventure-history{margin-left:auto}}.adventure-forge.is-compact .adventure-toolbar{flex-wrap:nowrap;overflow-x:visible}.adventure-forge.is-compact .adventure-toolbar>button span{display:none}.adventure-forge.is-compact .adventure-draw-tool{flex:1;min-width:0}.adventure-forge.is-compact .adventure-draw-tool select{width:100%;min-width:70px;max-width:none}.adventure-forge.is-compact .adventure-history{margin-left:0}@media (max-width:760px){.adventure-forge .adventure-toolbar{flex-wrap:nowrap;overflow-x:visible}.adventure-toolbar>button span{display:none}.adventure-draw-tool{flex:1;min-width:0}.adventure-draw-tool select{width:100%;min-width:70px;max-width:none}.adventure-history{margin-left:0}}
