/* Glasshouse shares the pool, paper and ink across the public entrance and the studio. */
:root {--glass-pool:url('/assets/brand/glasshouse/pool.webp');--writing-imprint:url('/assets/brand/glasshouse/imprints.webp')}
body[data-website-look=glasshouse],body[data-lantern-look=glasshouse] {
 --look-bg:#edf5ee;--look-card:#fcfefa;--folio-ink:#183d34;--folio-muted:#49655a;--folio-line:#c4d7cb;--folio-action:#155642;
 --folio-hero:var(--glass-pool);--bg:var(--look-bg);--paper:var(--look-card);--paper-warm:#f6faf4;--soft:#e7f0e8;--accent:#285541;--ink:var(--folio-ink);--muted:var(--folio-muted);--line:var(--folio-line);--deep:#214b3e;
 --card-trim:1px solid var(--line);--card-radius:14px;--card-pad:20px;--card-gap:12px;--card-title:21px;--card-inset:none;--icon-cover:62px;--icon-row:40px;
}
html[data-glass-mood=night] body:is([data-website-look=glasshouse],[data-lantern-look=glasshouse]) {
 color-scheme:dark;--look-bg:#152b29;--look-card:#203936;--folio-ink:#eef5e9;--folio-muted:#b6cdc1;--folio-line:#456359;--folio-action:#afdbc1;
 --bg:var(--look-bg);--paper:var(--look-card);--paper-warm:#1a322e;--soft:#28443e;--tint:#324f47;--ink:var(--folio-ink);--muted:var(--folio-muted);--line:var(--folio-line);--accent:#abd9bf;--deep:#c5e7ce;--on-accent:#18382d;--edge:#e2b88d;--side:#102420;--side-top:var(--side);--side-bottom:var(--side);--metal:#5b7062;--highlight:#464c37;
 background:var(--bg);color:var(--ink)
}
.mood-switch {display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;padding:5px 13px;border:1px solid var(--line,#b9cfc0);border-radius:24px;background:var(--paper,#fafcf8);color:var(--ink,#244536);font:650 13px/1.25 var(--body, sans-serif);cursor:pointer}
.mood-switch .mood-symbol {font:22px/1 Georgia,serif}
.mood-switch:focus-visible,.home-game:focus-visible,.folio-play:focus-visible {outline:3px solid var(--accent);outline-offset:3px}
#studio .topbar .mood-switch {margin-left:auto}
.studio-sampler {position:relative;z-index:35;display:flex;align-items:center;justify-content:space-between;padding:2px clamp(12px,3vw,38px);color:var(--ink);background:var(--paper-warm);border-bottom:1px solid var(--line);font:550 12px/1.4 var(--body)}
.studio-sampler details {position:relative}.studio-sampler summary,.studio-sampler>a {align-content:center;min-height:36px;cursor:pointer;color:inherit}
.sampler-menu {position:absolute;z-index:6;top:100%;left:0;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:16px;display:grid;gap:10px;width:220px}.sampler-menu p{margin:0}.sampler-menu a{color:var(--ink)}
#studio .workspace:has(.atelier-page){background:var(--look-bg);color:var(--folio-ink)}
#studio .atelier-page {box-sizing:border-box;width:100%;max-width:1450px;margin:auto;padding:clamp(18px,3vw,52px);display:grid;gap:clamp(20px,2.2vw,34px);font-family:var(--body)}
#studio .atelier-page :is(h1,h2,p){margin:0}
#studio .atelier-page h2 {font:620 21px/1.2 var(--body);letter-spacing:-.045em;margin-bottom:14px}
#studio .folio-lead {position:relative;overflow:hidden;isolation:isolate;border-radius:20px;min-height:clamp(230px,22vw,320px);display:flex;align-items:center;background:#b7d6cc}
#studio .folio-picture {position:absolute;inset:0;z-index:-1;background:var(--glass-pool) center/cover no-repeat}
#studio .folio-lead::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#c8e2d4ee,#c8e2d485 38%,transparent 65%)}
#studio .folio-picture {z-index:-2}
#studio .folio-heading {padding:clamp(20px,3.2vw,54px);max-width:65%}
#studio .folio-count,#studio .folio-type {font:650 11px/1.3 var(--body);text-transform:uppercase;letter-spacing:.11em}
#studio .folio-count span {padding:0 4px}
#studio .atelier-page h1 {font:520 clamp(39px,4.5vw,74px)/.99 var(--body);letter-spacing:-.065em;text-wrap:balance;margin:11px 0 20px}
#studio .folio-actions {display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
#studio :is(.folio-add,.folio-play){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;border-radius:32px;font:640 14px/1.2 var(--body);cursor:pointer}
#studio .folio-add {padding:10px 16px;color:#fff;background:#155642}
#studio .folio-play {padding:10px 16px;background:#eff7eadb;color:#244c3b}
#studio .atelier-page svg {width:19px;height:19px;flex:none}
#studio .folio-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#studio .folio-card,#studio .folio-last {text-align:left;cursor:pointer;color:inherit;display:flex;align-items:center;min-width:0}
#studio .folio-card {padding:clamp(16px,1.6vw,24px);gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:15px;align-items:flex-start}
#studio .folio-art {flex:none;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;width:44px;height:48px}
body[data-lantern-look] #studio .atelier-page .folio-art .writing-imprint {width:100%;max-width:100%;min-width:0;aspect-ratio:1;height:auto}
#studio .folio-content,#studio .folio-last-copy {display:flex;flex:1;flex-direction:column;align-items:flex-start;min-width:0}
#studio .folio-title,#studio .folio-last strong {font:600 clamp(19px,1.6vw,26px)/1.15 var(--body);letter-spacing:-.04em;overflow-wrap:anywhere}
#studio .folio-title {margin:6px 0 8px}
#studio :is(.folio-desc,.folio-source,.folio-meta) {font-size:14px;line-height:1.45;color:var(--muted)}
#studio .folio-meta {font-size:12px;margin-top:14px}
#studio :is(.folio-go,.folio-excerpt) {display:none}
#studio .folio-last {border:0;border-block:1px solid var(--line);padding:16px 2px;width:100%;gap:16px;background:transparent}
#studio .folio-last-icon {border-radius:50%;width:45px;height:45px;background:var(--soft);display:grid;place-items:center}
#studio .folio-source {margin-top:3px}
#studio :is(.folio-card,.folio-last):hover {outline:1px solid var(--accent);outline-offset:-1px}
.public-refresh[data-website-look=glasshouse] {background:var(--bg);color:var(--ink)}
.public-refresh[data-website-look=glasshouse] .lantern-home {background:#d5e7d8;border:1px solid var(--line);border-radius:20px}
.public-refresh[data-website-look=glasshouse] .garden-door {object-position:82% center}
.public-refresh .site-header .mood-switch {margin-left:auto}
.home-games {margin:38px auto 42px}
.games-heading {display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:15px}
.games-heading h2 {margin:0;font:590 clamp(23px,2.3vw,34px)/1.15 var(--body);letter-spacing:-.045em}
.games-heading a {flex:none;color:var(--accent);display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.home-game-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-game-grid .home-game {position:relative;background:var(--paper);color:var(--ink);border-radius:15px;border:1px solid var(--line);padding:22px 20px 20px;text-decoration:none}
.home-game small {display:block;color:var(--muted);font:650 11px/1.4 var(--body);text-transform:uppercase;letter-spacing:.12em}
.home-game h3 {font:600 24px/1.2 var(--body);letter-spacing:-.04em;margin:5px 0 7px}
.home-game p {font:400 15px/1.45 var(--body);color:var(--muted);margin:0;max-width:35ch}
.game-emblem {float:right;display:grid;place-content:center;width:42px;height:42px;background:#e9ddce;color:#7b4531;border-radius:50%;font:26px/1 Georgia,serif;margin:0 0 8px 8px}
:is(.home-game,.den-choice):nth-child(2) .game-emblem {background:#e4dedf;color:#69475e}
:is(.home-game,.den-choice):nth-child(3) .game-emblem {background:#d9e7dd;color:#39594a}
#studio .game-beats {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin:16px 0}
#studio .game-beats label {min-width:0;display:grid;gap:7px;color:var(--ink);font:600 14px/1.35 var(--body)}
#studio .game-beats textarea {resize:vertical;min-height:102px;width:100%;padding:12px;border-radius:10px;border:1px solid var(--line);font:400 16px/1.5 var(--body);background:var(--paper);color:var(--ink)}
#studio .play-section[data-section=glasshouse] .den-choice {min-height:130px;background:var(--paper);color:var(--ink);border:1px solid var(--line)}
#studio .play-workshop-link {display:inline-flex;min-height:44px;align-items:center;color:var(--accent)}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] #studio .folio-lead {background:#172f30}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] .folio-picture {background-image:url("/assets/brand/glasshouse/tide-door.webp");background-position:65% 52%}
html[data-glass-mood=night] .public-refresh .garden-door {object-position:74% center}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] #studio .folio-lead::before {background:linear-gradient(90deg,#142d32ee,#213b4670 44%,transparent 78%)}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] #studio .folio-add {color:#122d22;background:#b4dfc6}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] #studio .folio-play {color:#e0f4e6;background:#1d453af2;border:1px solid #658479}
html[data-glass-mood=night] body[data-website-look=glasshouse] .lantern-home {background:#213d35}
html[data-glass-mood=night] .public-refresh :is(.welcome-copy h1,.welcome-copy p,.welcome-copy a:not(.studio-trial),.studio-story,.studio-story h2,.website-questions,.website-questions h2,.room-introductions h2,.room-introductions p,.room-introductions span) {color:var(--ink)}
html[data-glass-mood=night] .public-refresh :is(.return-section,.website-questions details,.public-masthead,.room-introductions a,.feature-section,.feature-hero,.catalogue-hero) {background:var(--paper-warm);color:var(--ink)}
html[data-glass-mood=night] .public-refresh :is(.closing h2,.site-footer .logo-name,.feature-hero .eyebrow,.feature-nav a[aria-current=page]) {color:var(--ink)}
html[data-glass-mood=night] .public-refresh .skip:focus {background:var(--paper);color:var(--ink)}
html[data-glass-mood=night] #studio .auth-brand-name {color:var(--ink)}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] #studio :is(.topbar,.pane,.draft-card,.workroom-head,.den-card,.activity-work,.type-card,.asset-card,.writing-row,.worktabs,.pane-heading,.askbox,.apprentice-composer,.context-summary,.dialog,.btn:where(:not(.auth-provider)),.context-pill) {background:var(--paper);border-color:var(--line);color:var(--ink)}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] #studio :is(textarea,input,select,.play-card,.chat-reply,.play-round) {background:var(--paper-warm);color:var(--ink);border-color:var(--line)}
html[data-glass-mood=night] :is(.public-refresh .studio-trial,.public-refresh .header-cta,#studio .btn.primary,#studio .den-primary) {color:#15372b;background:#b4dfc6}
html[data-glass-mood=night] #overlay :is(.dialog,input,select,textarea,.ap-context-preview) {background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-glass-mood=night] body[data-lantern-look=glasshouse] #studio .folio-art {background:#d8e5d7;border-radius:8px;padding:3px}
@media(min-width:721px) and (max-width:1140px){#studio .folio-card{display:block}#studio .folio-art{margin-bottom:10px}}
@media(max-width:760px){
 .public-refresh .site-header {column-gap:8px}.public-refresh .site-header .mood-switch {padding:4px 8px}
 .home-games {margin:21px auto 30px}.home-game-grid {grid-template-columns:1fr;gap:8px}.home-game-grid .home-game {padding:14px 16px}.home-game h3{font-size:21px}.games-heading{gap:9px}
 #studio .atelier-page {padding:17px 14px 65px;gap:22px}#studio .folio-lead{min-height:205px;border-radius:14px}#studio .folio-picture{background-position:89% center}
 #studio .folio-heading {max-width:76%;padding:18px}#studio .atelier-page h1{font-size:37px;margin:8px 0 12px}
 #studio :is(.folio-add,.folio-play){font-size:12px;padding:6px 10px;min-height:44px}
 #studio .folio-cards {grid-template-columns:1fr;gap:9px}#studio .folio-card {padding:15px;gap:12px;align-items:center}#studio .folio-meta {margin-top:6px}
 #studio .folio-art{width:40px}#studio .folio-go {display:grid}#studio .game-beats {grid-template-columns:1fr}
 #studio .game-beats textarea{min-height:74px}#studio .mood-switch{min-height:44px}
 .studio-sampler summary,.studio-sampler>a {min-height:44px}
}

.games-links{display:flex;gap:16px;flex-wrap:wrap}.auth-page>.mood-switch{position:absolute;top:16px;right:16px}.public-refresh .home-games{scroll-margin-top:85px}
@media(max-width:450px){.games-heading{align-items:flex-start;flex-direction:column;gap:0}.games-links a{min-height:40px}}

@media(max-width:760px){
  .public-refresh .public-masthead .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand mood signin" "links links links";align-items:center;gap:3px 8px;padding:8px 0 0}
  .public-refresh .site-header .brand-link{grid-area:brand;min-width:0}
  .public-refresh .site-header .mood-switch{grid-area:mood}
  .public-refresh .site-header .header-cta{grid-area:signin;min-height:44px}
  .public-refresh .site-header nav{grid-area:links;margin:0;width:100%;padding:0}
  .public-refresh .public-masthead .site-header .logo-name{font-size:16px}
  .public-refresh .site-header .logo img{width:26px;height:34px}
  .public-refresh .site-header .mood-label{display:none}
  .public-refresh .site-header .mood-switch{width:44px;height:44px}
  html[data-glass-mood=night] body[data-lantern-look=glasshouse] .folio-picture{background-position:74% center}
}

#studio .ending-tools {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:6px 0 20px;color:var(--muted);font-size:14px}
#studio .ending-tools button,#studio .ending-compare button{min-height:44px}
#studio .comedy-beats:has([data-beat="3"]),#studio .ending-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#studio .ending-version{min-width:0;background:var(--paper-warm);border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:start}
#studio .ending-version p{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
#studio .ending-version .btn{margin-top:auto}
#studio .ending-compare>.btn{margin:14px 0}
#studio .activity-work .row[hidden]{display:none}
@media(max-width:620px){#studio .comedy-beats:has([data-beat="3"]),#studio .ending-pair{grid-template-columns:1fr}}

#studio .game-guide {max-width:880px;padding:clamp(16px,2.4vw,26px);border:1px solid var(--line);border-radius:15px;background:var(--paper-warm);color:var(--ink)}
#studio .game-guide h2 {font:600 1.2rem/1.3 var(--heading);margin:0 0 10px}
#studio .game-guide ol {margin:0 0 12px;padding-inline-start:1.5rem;max-width:70ch}
#studio .game-guide li {padding:3px 0 3px 4px;line-height:1.45}
#studio .game-guide li::marker {font-weight:650}
#studio .guide-actions {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 18px}
#studio .guide-actions .btn,#studio .guide-actions summary,#studio .game-choices .btn {min-height:44px;font-size:.95rem}
#studio .guide-actions summary {cursor:pointer;padding:12px 0}
#studio .guide-actions details[open] {flex-basis:100%}
#studio .guide-actions details>div {max-width:64ch}
#studio .guide-actions blockquote {border-inline-start:2px solid var(--accent);margin:12px 0;padding-inline-start:14px}
#studio .example-notice,#studio .choice-reading {margin:10px 0 0;line-height:1.5}
#studio .game-choices {border:0;margin:10px 0;padding:0}
#studio .game-choices legend {margin-bottom:6px}
#studio .game-choices .btn {margin:2px 8px 2px 0}
#studio .game-choices .btn[aria-pressed=true] {border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);font-weight:650}
#studio .choice-reading:empty {display:none}
.public-refresh .games-heading p {max-width:57ch;line-height:1.5;margin:6px 0 12px}
