/* More room for play, while keeping the materials of each world. */
body[data-local-lab=true]{min-width:0;}
body[data-local-lab=true] .world-game-frame[data-world-frame]{grid-template-columns:auto minmax(0,1fr) auto;gap:16px;min-height:76px;margin-bottom:16px;padding:10px 16px;border-radius:14px;box-shadow:inset 0 1px #ffffff30,0 4px 14px #14251a10;}
body[data-local-lab=true] .world-game-frame[data-world-frame] h1{font-size:clamp(22px,2vw,30px);margin-bottom:4px;}
body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__back{min-height:44px;flex-direction:row;padding:9px 12px;gap:8px;font-size:13px;}
body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__back svg{width:20px;height:24px;}
body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__tools{grid-column:3;grid-row:1;gap:12px;}
body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__score strong{font-size:24px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell{width:100%;max-width:none;margin:72px 0 0;padding:0 clamp(22px,4vw,72px) 36px;border-width:0;border-radius:0;min-height:calc(100dvh - 72px);}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell::before{left:8px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell::after{right:8px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell .roof{display:block;left:0;right:0;top:-58px;height:68px;border-radius:12px 12px 4px 4px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .hero{display:flex!important;flex-direction:row;position:relative;align-items:center;justify-content:center;min-height:66px;height:auto;padding:10px 62px 12px;pointer-events:auto;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .hero__sign{display:none;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .header-date{position:relative;inset:auto;transform:none;min-height:28px;padding:5px 16px;border-radius:8px;font-size:13px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .hero .lantern{display:block;position:absolute;visibility:visible;top:8px;width:50px;height:100px;margin:0;transform:scale(.65);transform-origin:top center;z-index:4;pointer-events:none;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .lantern--left{left:-50px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .lantern--right{right:-50px;}
body[data-local-lab=true].tavern-interface .game-view{width:100%;max-width:none;}
body[data-local-lab=true].tavern-interface .game-surface{max-width:none;width:100%;border-radius:18px;}
body[data-local-lab=true].tavern-interface .game-surface--gribz{background:linear-gradient(125deg,#f4e7c4,#e8d3a7);}
body[data-local-lab=true].tavern-interface .gribz-game{max-width:none;}
body[data-local-lab=true] :is(.lab-immersive-main,.lab-world-header,.lab-world-footer){width:calc(100% - clamp(32px,7vw,112px));max-width:none;}
body[data-local-lab=true].lab-immersive .lab-game-shell{max-width:none;padding-top:20px;}
body[data-local-lab=true].gallery-interface :is(.gallery-shell,.site-shell,.main-content,.game-container){max-width:none;}
body[data-local-lab=true].lab-world-guild .lab-play-panel{background:linear-gradient(125deg,#f9eaca,#ead3a6);}
body[data-local-lab=true].lab-world-guild .lab-play-panel .lab-feedback{color:#674426;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-header{display:flex;gap:16px;align-items:center;margin-top:16px;padding:12px 18px;min-height:70px;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-header nav{margin:0;padding:0;border:0;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-brand strong{font-size:clamp(19px,2vw,27px);}
body[data-local-lab=true] .lab-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid var(--world-line,#a18b5c);border-radius:10px;text-decoration:none;color:var(--world-ink);background:#ffffff08;}
body[data-local-lab=true].lab-world-scriptorium .lab-scriptorium-hub{padding-top:12px;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-hero{grid-template-columns:minmax(0,1fr) 160px;padding:18px 22px;gap:20px;margin-bottom:20px;border-radius:16px;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-hero h1{font-size:clamp(26px,3vw,38px);line-height:1.12;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-hero img{max-height:100px;width:160px;}
body[data-local-lab=true] .lab-home-intro{display:none;}
body[data-local-lab=true] .lab-home-results{padding:18px 22px;border-radius:16px;}
body[data-local-lab=true] .lab-home-results .lab-score-note{display:none;}
body[data-local-lab=true] .lab-home-results .lab-current-scores{gap:12px;}
body[data-local-lab=true] .lab-home-results .lab-score-metric{padding:12px 16px;background:#1d3329;border:1px solid #bfa16b38;border-radius:12px;}
body[data-local-lab=true] .section-toggle{display:flex;align-items:center;gap:14px;min-height:52px;padding:8px 4px;}
body[data-local-lab=true] .section-toggle input{width:22px;height:22px;accent-color:#c4a36b;}
body[data-local-lab=true] .section-toggle .muted{margin-left:auto;}
@media(min-width:1500px){body[data-local-lab=true].tavern-interface .gribz-host{grid-template-columns:120px minmax(0,1fr) minmax(220px,.5fr);}body[data-local-lab=true].lab-immersive .lab-play-panel{padding:22px clamp(20px,3vw,48px);}}
@media(max-width:760px){
 body[data-local-lab=true] .world-game-frame[data-world-frame]{grid-template-columns:auto minmax(0,1fr);padding:10px 12px;gap:8px 12px;}
 body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__back{grid-row:1;align-self:center;font-size:12px;}
 body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__identity{grid-column:2;grid-row:1;}
 body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__tools{grid-column:1 / -1;grid-row:2;gap:12px;justify-content:flex-end;}
 body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__score{display:flex;flex:0 0 auto;min-width:0;gap:6px;align-items:baseline;white-space:nowrap;}
 body[data-local-lab=true] .world-game-frame[data-world-frame] .world-game-frame__date{font-size:11px;}
 body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell{padding-inline:18px;}
 body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell::before,body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell::after{width:10px;}
 body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell::before{left:0;}body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell::after{right:0;}
 body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .hero{padding-inline:24px;}
 body[data-local-lab=true].lab-world-scriptorium .lab-world-header{flex-wrap:wrap;}
 body[data-local-lab=true].lab-world-scriptorium .lab-world-hero{grid-template-columns:1fr;padding:16px;}
 body[data-local-lab=true].lab-world-scriptorium .lab-world-hero img{display:none;}
}

body[data-local-lab=true].tavern-interface:not(.lab-immersive) .world-game-frame__date{display:none;}
@media(max-width:760px){
 body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .hero .lantern{display:none;}
 body[data-local-lab=true].tavern-interface .zelie-host{grid-template-columns:58px minmax(0,1fr);padding:12px;gap:8px;}
 body[data-local-lab=true].tavern-interface .zelie-host h2{display:none;}
 body[data-local-lab=true].tavern-interface .zelie-host__portrait{width:56px;height:56px;grid-row:1;}
 body[data-local-lab=true].tavern-interface .zelie-stats{display:flex;flex-wrap:wrap;gap:6px;}
 body[data-local-lab=true].tavern-interface .zelie-stat{padding:8px;flex:1;min-width:75px;}
}

body[data-local-lab=true].lab-immersive:not(:has(.lab-world-header)) .lab-immersive-main{padding-top:52px;}
@media(min-width:761px){
 body[data-local-lab=true].cw-focus #croisee-game-view .world-game-frame{grid-template-columns:auto minmax(0,1fr) auto;min-height:62px;padding:6px 10px;margin-bottom:8px;gap:8px;}
 body[data-local-lab=true].cw-focus #croisee-game-view .world-game-frame .world-game-frame__date{display:none;}
 body[data-local-lab=true].cw-focus #croisee-game-view .world-game-frame h1{font-size:clamp(18px,2vw,26px);margin:0;}
 body[data-local-lab=true].cw-focus #croisee-game-view .world-game-frame .world-game-frame__score{padding-right:8px;min-width:0;}
 body[data-local-lab=true].cw-focus #croisee-game-view .world-game-frame .world-game-frame__score small{display:none;}
}

body[data-local-lab=true].lab-world-scriptorium .lab-world-hero{display:block;padding:10px 0;background:none;border:0;box-shadow:none;margin:0 0 14px;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-hero h1{font-size:clamp(27px,3vw,38px);margin:0;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-brand{display:flex;align-items:center;gap:8px;min-width:0;}
body[data-local-lab=true].lab-world-scriptorium .lab-world-seal{width:34px;height:34px;flex:none;}
@media(max-width:760px){
 body[data-local-lab=true].lab-world-scriptorium .lab-world-header{width:calc(100% - 24px);padding:10px 12px;gap:12px;min-height:64px;margin-top:64px;}
 body[data-local-lab=true].lab-world-scriptorium .lab-world-brand strong{font-size:18px;}
 body[data-local-lab=true].lab-world-scriptorium .lab-world-brand small{display:none;}
 body[data-local-lab=true].lab-world-scriptorium .lab-back{font-size:13px;padding:9px 10px;}
}

body[data-local-lab=true].lab-immersive:is(.lab-isolde-page,.lab-mosaic-page) .lab-immersive-main{width:calc(100% - clamp(24px,6vw,96px));max-width:none;}

/* The Tavern's fixed controls belong to a wooden bar, above the play surface. */
body[data-local-lab=true].tavern-interface:not(.lab-immersive){padding-top:68px;background:#e9d5ad;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive)>.beta-private-banner{margin-top:0;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .lab-tavern-topbar{position:fixed;inset:0 0 auto;height:68px;box-sizing:border-box;z-index:100;border-block:5px solid #54301e;background:linear-gradient(#ad7045,#8d552f 55%,#724024);box-shadow:0 3px 7px #36241550;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .lab-tavern-topbar .header-date{position:absolute;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);margin:0;padding:5px 14px;background:#634026b8;border:1px solid #cba77366;border-radius:8px;max-width:calc(100% - 380px);min-width:150px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .tavern-shell{margin-top:0;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .tavern-shell{margin-top:0;padding-top:14px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open:has(>.beta-private-banner) .tavern-shell{margin-top:0;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .tavern-shell .roof{display:none;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .hero{height:0;min-height:0;padding:0;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive).is-game-open .hero::before{display:none;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) .world-player-badge{z-index:131;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) :is(button,a,input,summary){scroll-margin-top:80px;}
body[data-local-lab=true].tavern-interface:not(.lab-immersive) [data-game-panel]{scroll-margin-top:100vh;}
@media(max-width:760px){
 body[data-local-lab=true].tavern-interface:not(.lab-immersive) .lab-tavern-topbar .header-date{left:12px;right:184px;max-width:none;min-width:0;transform:translateY(-50%);padding:4px 6px;text-align:center;}
 body[data-local-lab=true].tavern-interface:not(.lab-immersive) .lab-tavern-topbar .header-date time{font-size:11px;line-height:1.3;}
}
body[data-local-lab=true] .progression-page :is(.prog-category-heading,.prog-item,.prog-quest__actions,.prog-panel-footer) .prog-secondary{color:#efdab2;background:#c19b5620;border-color:#bca06a6b;}
body[data-local-lab=true] .progression-page :is(.prog-category-heading,.prog-item,.prog-quest__actions,.prog-panel-footer) .prog-secondary:hover{border-color:#e3c28d;background:#c19b5632;}
@media(max-width:360px){body[data-local-lab=true].portal-fit-page .lab-header .brand-button strong{font-size:18px;}}
body[data-local-lab=true] :is(.world-grid,.lab-applications,#lab-worlds-heading,.lab-sections-empty)[hidden]{display:none!important;}
body[data-local-lab=true] .lab-sections-empty{color:#c8d2bd;font:16px/1.6 system-ui;margin:0 0 24px;}

/* Keep card actions and score rows aligned despite optional sharing controls. */
body[data-local-lab=true].tavern-interface .trial-card__caption>.room-rhythm{margin-top:0;}
body[data-local-lab=true].tavern-interface .trial-card__caption>.daily-score-summary{flex:1;justify-content:flex-start;}
body[data-local-lab=true].tavern-interface .trial-card__caption:not(:has(>.daily-score-summary))>.tavern-entry{margin-top:auto;}
@media(min-width:721px){body[data-local-lab=true].tavern-interface .trial-card__caption>p{min-height:4.65em;}}
body[data-local-lab=true].gallery-interface #home-view .world-window[data-score-cadence=friends]{padding:7px 7px 0;}

/* Shared controls retain their materials, with quiet hover and press feedback. */
body[data-local-lab=true] .auberge-button{box-sizing:border-box;transition:border-color .16s,background-color .16s,box-shadow .16s,filter .16s;}
body[data-local-lab=true] .auberge-button>svg{display:block;align-self:center;}
body[data-local-lab=true] .auberge-button:disabled{opacity:.72;filter:none;}
body[data-local-lab=true] .world-game-frame :is(.world-game-frame__back,.world-game-frame__info){transition:box-shadow .16s,border-color .16s,background-color .16s;}
@media(hover:hover) and (pointer:fine){
 body[data-local-lab=true] .auberge-button:not(:disabled):not([aria-disabled=true]):hover{filter:brightness(1.08);box-shadow:inset 0 1px #fff2,0 4px 12px #08150d30;}
 body[data-local-lab=true] .world-game-frame :is(.world-game-frame__back,.world-game-frame__info):hover{box-shadow:inset 0 1px #fff4,0 3px 10px #263b2c24;}
}
body[data-local-lab=true] .auberge-button:not(:disabled):not([aria-disabled=true]):active{filter:brightness(.97);box-shadow:inset 0 2px 4px #08150d40;}
@media(prefers-reduced-motion:reduce){body[data-local-lab=true] :is(.auberge-button,.world-game-frame__back,.world-game-frame__info){transition:none;}}
