/* Maison Caché — room compositions (rebrand v0.2, 3 Nov 2026).
   Loaded after css/house.css. Each block is scoped by the room's <body data-room="…">.
   Purpose: rooms fill the width the way the Foyer does — art beside the opening words,
   wider reading columns, bigger controls — instead of small content floating in the dark. */

/* ── shared ── */
[data-room] .room-art{width:min(100%,24rem)}

/* "elsewhere in the house" lists (inline-styled links; !important beats their inline size and hover colours) */
[data-room] div[style*="flex-direction:column"] > a{
  font-family:var(--mc-body)!important;font-size:1.1875rem!important;letter-spacing:.01em!important;
  color:var(--mc-ivory)!important;text-decoration:underline!important;text-decoration-color:rgba(217,184,114,.45)!important;
  text-underline-offset:6px;padding:0 .5rem}
[data-room] div[style*="flex-direction:column"] > a:hover{text-decoration-color:currentColor!important}
[data-room=garden] div[style*="flex-direction:column"] > a{color:var(--mc-ink)!important;text-decoration-color:rgba(7,81,63,.45)!important}

/* art beside the words, desktop only — phones keep the stacked order */
@media (min-width:900px){
  [data-room] .hero-inner{display:grid!important;grid-template-columns:minmax(0,24rem) minmax(0,1fr);
    column-gap:clamp(3rem,6vw,6rem);align-items:center;width:100%;max-width:70rem;margin:0 auto;
    padding:0 clamp(1.5rem,4vw,3rem)}
  [data-room] .hero-inner > .room-art{margin:0;width:100%}
  [data-room] .hero-text{align-items:flex-start!important;text-align:left}
  [data-room] .hero-text > *{text-align:left!important;margin-left:0!important}

  /* Hearth: the hero is the section itself */
  [data-room=hearth] .hero{display:grid;grid-template-columns:minmax(0,24rem) minmax(0,1fr);column-gap:clamp(3rem,6vw,6rem);
    align-items:center;text-align:left;max-width:70rem;margin:0 auto;min-height:auto;padding:4.5rem clamp(1.5rem,4vw,3rem) 3.5rem}
  [data-room=hearth] .hero .room-art{margin:0;width:100%}
  [data-room=hearth] .hero-text .moonline{justify-content:flex-start}
  [data-room=hearth] .hero h1{font-size:clamp(2.8rem,4.6vw,4rem)}
  [data-room=hearth] .hero .sub{max-width:30ch}

  [data-room=library] #hero,[data-room=sanctum] #hero{min-height:auto;padding-top:4.5rem;padding-bottom:4.5rem}
}

/* ── Hearth: the bundle reads like a page, not a footnote ── */
[data-room=hearth] .wrap{max-width:46rem}
[data-room=hearth] .bundle{padding:2.6rem clamp(1.4rem,4vw,2.8rem);background:linear-gradient(180deg,rgba(151,92,63,.22),rgba(23,19,34,.35));
  border-color:rgba(217,184,114,.3)}
[data-room=hearth] .row{grid-template-columns:8.5rem 1fr;gap:1.4rem}
[data-room=hearth] .row .lab{font-size:.9375rem;letter-spacing:.06em}
[data-room=hearth] .row .val{font-size:clamp(1.125rem,1.9vw,1.3125rem);line-height:1.65}
[data-room=hearth] .magick{font-size:1.1875rem}
[data-room=hearth] .sky-q,[data-room=hearth] .goblin,[data-room=hearth] .funnel p{font-size:1.1875rem}
[data-room=hearth] #btn-s,[data-room=hearth] #btn-n{font-size:1rem;padding:.6rem 1.5rem}
@media (max-width:600px){ [data-room=hearth] .row{grid-template-columns:1fr;gap:.35rem} }

/* ── Library: browsing controls at reading size, grouped ── */
[data-room=library] #shelves > .reveal{max-width:62rem!important;margin:0 auto}
[data-room=library] .label{font-size:1rem;letter-spacing:.08em}
[data-room=library] .category-row{gap:.65rem;margin-bottom:1.6rem}
[data-room=library] .cat-tab{font-family:var(--mc-body);font-size:1.0625rem;letter-spacing:.02em;text-transform:none;
  padding:.6rem 1.25rem;border-color:rgba(217,184,114,.38);color:var(--mc-ivory);border-radius:999px}
[data-room=library] .cat-tab.active{background:var(--mc-gold);border-color:var(--mc-gold);color:var(--mc-ink)}
[data-room=library] .search-input{font-size:1.0625rem;min-height:48px}
[data-room=library] .search-btn{font-size:1rem;min-height:48px}

/* ── Codex: wider room, filters as two clear groups ── */
[data-room=codex] .content{max-width:52rem}
[data-room=codex] .codex-header{padding:5rem 0 2.5rem}
[data-room=codex] .codex-title{font-size:clamp(2.4rem,5vw,3.4rem);letter-spacing:.02em}
[data-room=codex] .codex-sub{font-size:clamp(1.15rem,2vw,1.35rem);max-width:30ch}
[data-room=codex] .codex-label{font-size:.9375rem}
[data-room=codex] .controls{border:1px solid rgba(217,184,114,.22);background:rgba(81,64,94,.18);border-radius:6px;
  padding:2rem clamp(1rem,4vw,2.5rem);gap:1.4rem;margin-bottom:3rem}
[data-room=codex] .mood-filters,[data-room=codex] .for-filters{gap:.6rem}
[data-room=codex] .mood-btn,[data-room=codex] .for-btn{font-family:var(--mc-body);font-size:1.0625rem;letter-spacing:.02em;text-transform:none;
  color:var(--mc-ivory);border:1px solid rgba(217,184,114,.35);border-radius:999px;padding:.55rem 1.2rem}
[data-room=codex] .mood-btn.active{background:#D9A1B0;border-color:#D9A1B0;color:var(--mc-ink)}
[data-room=codex] .for-btn.active{background:var(--mc-gold);border-color:var(--mc-gold);color:var(--mc-ink)}
[data-room=codex] .for-tag{font-size:1rem;letter-spacing:.06em}
[data-room=codex] .controls > div:has(.for-filters){padding-top:1.2rem;border-top:1px solid rgba(217,184,114,.18);width:100%;justify-content:center}
[data-room=codex] .shuffle-btn{font-family:var(--mc-body);font-size:1.125rem;letter-spacing:.02em;text-transform:none;
  background:var(--mc-gold);border-color:var(--mc-gold);color:var(--mc-ink);padding:.8rem 2.2rem;font-weight:600}
[data-room=codex] .shuffle-btn:hover{background:#CBA960;color:var(--mc-ink)}
[data-room=codex] .card-setup,[data-room=codex] .card-intention{font-size:1.125rem}

/* ── Garden: each activity sits on its own card, instructions at reading size ── */
[data-room=garden] .oracle-section,[data-room=garden] .compost-section{max-width:48rem;margin:2.5rem auto;
  padding:3rem clamp(1.25rem,4vw,3rem) 2.5rem;background:rgba(255,250,240,.55);border:1px solid rgba(91,69,32,.22);border-radius:6px}
[data-room=garden] .kicker{font-size:.9375rem;letter-spacing:.08em}
[data-room=garden] .oracle-title,[data-room=garden] .compost-title{font-size:clamp(1.9rem,4vw,2.6rem);letter-spacing:.02em;font-weight:600}
[data-room=garden] .oracle-sub,[data-room=garden] .compost-sub,[data-room=garden] .golem-speech,[data-room=garden] .sky-q,
[data-room=garden] .heap-state-msg{font-size:clamp(1.125rem,2vw,1.3125rem);color:var(--ink)}
[data-room=garden] .oracle-sub{max-width:34ch;margin:0 auto}
[data-room=garden] .position-label,[data-room=garden] .oracle-season-label{font-size:.9375rem;letter-spacing:.08em}
[data-room=garden] .burial-form{max-width:32rem}
[data-room=garden] .burial-textarea{font-size:1.125rem}
[data-room=garden] .bury-btn{font-family:var(--mc-body);font-size:1.0625rem;letter-spacing:.02em;text-transform:none;
  background:#07513F;border-color:#07513F;color:var(--mc-ivory)}
[data-room=garden] .bury-btn:hover{background:#0A6B53;color:var(--mc-ivory)}
/* mounds: a finger-sized tap area around each drawing, drawing unchanged */
/* a transparent border widens what a finger can hit; the drawn mound stays inside it at its old size.
   The outer shadow moves to a drop-shadow so it still hugs the drawing, not the wider box. */
[data-room=garden] .mound{box-sizing:content-box;border:8px solid transparent;margin:-8px;background-clip:padding-box;
  box-shadow:inset 0 -2px 6px rgba(0,0,0,.2),inset 0 2px 4px rgba(180,140,80,.15);filter:drop-shadow(0 4px 6px rgba(42,20,8,.3))}

/* ── Archive: the text section holds the width ── */
[data-room=celestial-archive] .gate-title{font-size:clamp(2.2rem,4.6vw,3.2rem)}
[data-room=celestial-archive] .gate-body{font-size:clamp(1.125rem,2vw,1.3125rem);line-height:1.8}
[data-room=celestial-archive] .gate-section a[style]{font-family:var(--mc-body)!important;font-size:1.0625rem!important;letter-spacing:.02em!important;
  text-transform:none!important;color:var(--mc-ink)!important;background:var(--mc-gold);border-color:var(--mc-gold)!important}
/* stars: invisible 44px tap circle around every point, the point itself unchanged */
[data-room=celestial-archive] .star-node-inner::before{content:'';position:absolute;left:50%;top:50%;width:44px;height:44px;
  transform:translate(-50%,-50%);border-radius:50%}
[data-room=celestial-archive] .star-label{font-size:1rem}

/* ── Sanctum: the eight rooms use the width ── */
[data-room=sanctum] .rooms-grid{max-width:62rem}
[data-room=sanctum] .body-text{color:var(--mc-ivory)}
[data-room=garden] .mound:hover:not(.dug){filter:drop-shadow(0 4px 6px rgba(42,20,8,.3)) brightness(1.12)}
[data-room=sanctum] .room-cell{padding:2.4rem 1.6rem}
[data-room=sanctum] .room-cell-glyph{font-size:1.6rem}
[data-room=sanctum] .room-cell-name{font-family:var(--mc-display);font-style:normal;font-weight:600;font-size:1.375rem;color:var(--mc-ivory)}
[data-room=sanctum] .room-cell-sub{font-size:1.0625rem}
[data-room=sanctum] .room-cell-status{font-size:.9375rem;letter-spacing:.08em}
[data-room=sanctum] .wolf-note-box{max-width:40rem;padding:2.6rem 2.4rem}
[data-room=sanctum] .wolf-note-text{font-size:clamp(1.25rem,2.4vw,1.6rem)}

/* ── pictures added 3 Nov (Kes): Archive = moon, Garden = essays tree, Codex = letter-staircase ── */
@media (min-width:900px){
  [data-room=celestial-archive] .archive-hero{min-height:auto;padding:4.5rem 0 4rem}
  [data-room=celestial-archive] .archive-divider{justify-content:flex-start}
  [data-room=codex] .codex-header{padding:4rem 0 2.5rem}
  [data-room=codex] .codex-header .hero-inner{padding:0;grid-template-columns:minmax(0,20rem) minmax(0,1fr)}
  /* the Garden keeps its Golem centred in its own column */
  [data-room=garden] .garden-hero{padding-top:3.5rem;padding-bottom:1rem;align-items:start}
  [data-room=garden] .garden-hero .hero-text{align-items:center!important;text-align:center}
  [data-room=garden] .garden-hero .hero-text > *{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
  /* the opened seed packet sits under the picture and the Keeper, across the full width */
  [data-room=garden] .garden-hero > .wrap{grid-column:1 / -1}
}
@media (max-width:899px){
  [data-room=garden] .garden-hero > .room-art,[data-room=codex] .hero-inner > .room-art{margin-top:2rem}
}
[data-room=garden] .room-art,[data-room=celestial-archive] .room-art,[data-room=codex] .room-art{width:min(calc(100% - 3rem),24rem);margin-left:auto;margin-right:auto}
[data-room=codex] .hero-text .codex-sub{max-width:34ch}
@media (min-width:900px){ [data-room] .hero-inner > .room-art{width:100%} }

/* ══ refinement pass (3 Nov 2026): readability, spacing, the way back, unfinished rooms ══ */

/* one way back, the same words in the same place on every interior room */
.house-return{position:relative;z-index:15;max-width:75rem;margin:0 auto;padding:.9rem clamp(1.25rem,4vw,3rem) 0}
.house-return a,.back-link{display:inline-flex!important;align-items:center;min-height:44px;
  font:600 1.0625rem/1.2 var(--mc-body)!important;letter-spacing:0!important;text-transform:none!important;
  color:var(--mc-ivory)!important;text-decoration:underline!important;text-decoration-color:rgba(217,184,114,.6)!important;
  text-underline-offset:6px;border-bottom:0!important}
.house-return a:hover,.back-link:hover{text-decoration-color:currentColor!important}
[data-room=garden] .house-return a,[data-room=garden] .back-link{color:var(--mc-ink)!important;text-decoration-color:rgba(7,81,63,.55)!important}
/* the old fixed room headers sit under the house header, so their back links are hidden (and kept out of the tab order) */
.library-header .back-link,.archive-header .back-link,.sanctum-header .back-link{display:none!important}
/* phones: the sky line takes the top-right corner, so the way back sits under it */
@media (max-width:820px){ body:has(.moon-strip) .house-return{padding-top:2.6rem} }

/* no sideways scroll at 320px (the Foyer has its own sheet and is fixed there) */
/* the Library's curiosity labels and hover-scaled shelf objects poke past the edge; the room keeps them in */
html:has(body[data-room=library]),body[data-room=library]{overflow-x:clip}
[data-room=celestial-archive] .constellation-map{width:min(700px,100%)}

/* sentences never sit below 16px; tiny type is for incidental labels only */

[data-room=hearth] .season,[data-room=hearth] .small{font-size:1rem}
[data-room=celestial-archive] .archive-footer-text,[data-room=celestial-archive] .gate-section p{font-size:max(1rem,1em)}
[data-room=sanctum] .age-gate-note{font-size:1rem;font-style:normal;color:var(--mc-ivory)}
[data-room=codex] .footer-line{font-size:1rem}
[data-room=codex] .codex-label{color:#D9A1B0}
[data-room=perfume-atelier] .back-room .members,[data-room=perfume-atelier] .room-label{font-size:1rem}

/* the age gate: both choices look like choices */
[data-room=sanctum] .btn-enter{color:#EBC3CE;border-color:rgba(217,161,176,.8);font-size:1rem}
[data-room=sanctum] .btn-enter:hover{color:var(--mc-bright-cream);border-color:#D9A1B0;background:rgba(217,161,176,.12)}
[data-room=sanctum] .btn-leave{color:var(--mc-ivory);border-color:rgba(243,231,208,.5);font-size:1rem}

/* content decides the height; no empty screen-sized gaps */
[data-room=library] .section,[data-room=library] .section--short,[data-room=library] .section--medium,
[data-room=sanctum] .section--short,
[data-room=perfume-atelier] .section,[data-room=atelier] .section{min-height:auto}
[data-room=perfume-atelier] .atelier-hero,[data-room=atelier] .atelier-hero{min-height:auto;padding-top:3.5rem;padding-bottom:4rem}
[data-room=hearth] .hero{min-height:auto}

/* book spines are a full finger wide */
[data-room=library] .book{min-width:44px}

/* Sanctum: open rooms are solid and say where they lead; preparing rooms are dashed and never look pressable */
[data-room=sanctum] .room-cell.open{border:1px solid rgba(140,207,196,.55)}
[data-room=sanctum] .room-cell.open .room-cell-status{color:#9FD8CC}
[data-room=sanctum] .room-cell.shadow{border:1px dashed rgba(217,161,176,.45);cursor:default}
[data-room=sanctum] .room-cell.shadow .room-cell-status{color:var(--mc-ivory)}

/* ── Garden: verdant pass (Kes, 8 Nov 2026) — a moss glade for the Keeper, green light everywhere ── */
[data-room=garden]{background:#e9ecd8;
  background-image:radial-gradient(ellipse 80% 40% at 15% 0%,rgba(122,158,92,.28),transparent 70%),
    radial-gradient(ellipse 70% 45% at 95% 60%,rgba(70,120,72,.18),transparent 70%),
    radial-gradient(ellipse 90% 50% at 10% 100%,rgba(96,140,80,.22),transparent 70%)}
[data-room=garden] .layer-light{background:radial-gradient(ellipse at 30% 0%,rgba(236,244,214,.55),transparent 55%),
  radial-gradient(ellipse at 80% 100%,rgba(92,140,84,.22),transparent 55%)}
[data-room=garden] .layer-vignette{background:radial-gradient(ellipse at center,transparent 50%,rgba(60,96,58,.16) 100%)}
[data-room=garden] .site-head{background:rgba(233,236,216,.92)}

/* the glade */
[data-room=garden] .garden-hero{position:relative;isolation:isolate;color:#efe6cc;
  background:
    radial-gradient(ellipse 55% 60% at 70% 45%,rgba(176,206,120,.30),transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 30%,rgba(120,170,96,.22),transparent 70%),
    linear-gradient(180deg,#1f4630 0%,#17382a 55%,#112b20 100%);
  box-shadow:inset 0 -40px 60px -30px rgba(8,22,14,.6),inset 0 30px 50px -30px rgba(8,22,14,.5);
  border-bottom:1px solid rgba(201,170,90,.35)}
[data-room=garden] .garden-hero::before,[data-room=garden] .garden-hero::after{content:"";position:absolute;pointer-events:none;z-index:-1}
/* dappled light through leaves */
[data-room=garden] .garden-hero::before{inset:0;opacity:.55;
  background:radial-gradient(circle at 12% 18%,rgba(214,232,150,.22) 0 3%,transparent 8%),
    radial-gradient(circle at 34% 72%,rgba(214,232,150,.16) 0 2%,transparent 6%),
    radial-gradient(circle at 62% 12%,rgba(214,232,150,.2) 0 2.5%,transparent 7%),
    radial-gradient(circle at 88% 34%,rgba(214,232,150,.18) 0 3%,transparent 9%),
    radial-gradient(circle at 78% 82%,rgba(214,232,150,.14) 0 2%,transparent 6%);
  animation:gardenDapple 14s ease-in-out infinite alternate}
/* the ground he stands on */
[data-room=garden] .garden-hero::after{left:0;right:0;bottom:0;height:22%;
  background:radial-gradient(ellipse 60% 100% at 70% 100%,rgba(70,46,24,.55),transparent 70%)}
@keyframes gardenDapple{from{transform:translate(0,0)}to{transform:translate(1.5%,-1%)}}
[data-room=garden] .garden-hero .room-art img{box-shadow:0 18px 40px rgba(6,18,10,.55)}
[data-room=garden] .golem{filter:drop-shadow(0 14px 22px rgba(4,14,8,.55))}
[data-room=garden] .golem-name{color:#d9c78f}
[data-room=garden] .golem-speech,[data-room=garden] .garden-hero .sky-q{color:#f3ead2}
[data-room=garden] .take-hint{color:#cfe0a6}
[data-room=garden] .garden-hero .rule{background:linear-gradient(90deg,transparent,rgba(217,199,143,.6),transparent)}
[data-room=garden] .garden-hero .sky-toggle{border-color:rgba(217,199,143,.45)}
[data-room=garden] .garden-hero .sky-toggle button{color:#e8dfc4;background:transparent}
[data-room=garden] .garden-hero .sky-toggle button.on{background:rgba(207,224,166,.22);color:#f6efd8}
[data-room=garden] .garden-hero a{color:#f3ead2}
[data-room=garden] .golem-packet-held:focus-visible{outline:2px solid #cfe0a6;outline-offset:3px}

/* cards: cream paper resting on moss */
[data-room=garden] .oracle-section,[data-room=garden] .compost-section{background:rgba(252,248,236,.88);
  border:1px solid rgba(64,104,62,.28);border-top:4px solid #3f6b45;box-shadow:0 10px 30px -18px rgba(30,60,34,.45)}
[data-room=garden] .kicker{color:#2f5a3a}
@media (prefers-reduced-motion:reduce){[data-room=garden] .garden-hero::before{animation:none}}
[data-room=garden] .garden-hero{border-radius:10px;overflow:hidden}
[data-room=garden] .garden-hero .members-tease{border-color:rgba(217,199,143,.3)}
[data-room=garden] .garden-hero .members-tease p,[data-room=garden] .garden-hero .btn-note{color:#efe6cc}
[data-room=garden] .garden-hero .members-tease .btn{color:#f6efd8;border-color:rgba(217,199,143,.6)}
[data-room=garden] .garden-hero .members-tease .btn:hover{color:#fff;border-color:#cfe0a6;background:rgba(207,224,166,.12)}
@media (max-width:640px){[data-room=garden] .garden-hero{border-radius:0}}
[data-room=garden] .garden-heading{font-family:var(--mc-display,'Cormorant Garamond',serif);font-weight:500;
  font-size:clamp(2.6rem,6vw,4rem);line-height:1.05;letter-spacing:.02em;color:#f6efd8;margin:0 0 .6rem;
  text-shadow:0 2px 18px rgba(6,20,12,.5)}
[data-room=garden] .garden-arrival{font-family:'Crimson Pro',serif;font-style:italic;font-size:clamp(1.125rem,2vw,1.3rem);
  line-height:1.6;color:#e6dcc0;max-width:36ch;text-wrap:balance;margin:0 auto 2.2rem}
[data-room=garden] .golem-scene{padding-top:3rem}

/* ── Garden: the glade turns with the season (spring is the base green above) ── */
[data-room=garden] .garden-hero{transition:background 1.2s ease}
[data-room=garden] .garden-hero[data-season=summer]{background:
    radial-gradient(ellipse 55% 60% at 70% 40%,rgba(240,214,120,.30),transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 25%,rgba(214,200,110,.20),transparent 70%),
    linear-gradient(180deg,#355a2a 0%,#2a4a22 55%,#1f3a1a 100%)}
[data-room=garden] .garden-hero[data-season=autumn]{background:
    radial-gradient(ellipse 55% 60% at 70% 45%,rgba(226,150,70,.26),transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 30%,rgba(190,120,60,.18),transparent 70%),
    linear-gradient(180deg,#38391f 0%,#2c2d18 55%,#202112 100%)}
[data-room=garden] .garden-hero[data-season=winter]{background:
    radial-gradient(ellipse 55% 60% at 70% 45%,rgba(200,220,232,.18),transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 30%,rgba(170,196,214,.12),transparent 70%),
    linear-gradient(180deg,#26363c 0%,#1d2b31 55%,#152025 100%)}
[data-room=garden] .garden-hero[data-season=summer]::before{filter:hue-rotate(-20deg) saturate(1.3)}
[data-room=garden] .garden-hero[data-season=autumn]::before{filter:hue-rotate(-45deg) saturate(.9);opacity:.45}
[data-room=garden] .garden-hero[data-season=winter]::before{filter:grayscale(1) brightness(1.3);opacity:.35}
[data-room=garden] .garden-hero[data-season=autumn] .take-hint{color:#f0c890}
[data-room=garden] .garden-hero[data-season=winter] .take-hint{color:#d6e6ee}
[data-room=garden] .garden-hero[data-season=summer] .take-hint{color:#f0e2a0}

/* ── Garden: seasonal fall (petals / fireflies / leaves / snow) at dawn, dusk and the turning days ── */
[data-room=garden] .season-fall{position:fixed;inset:0;z-index:3;pointer-events:none;overflow:hidden}
[data-room=garden] .season-fall i{position:absolute;top:-6vh;display:block;
  width:calc(14px * var(--size,1));height:calc(10px * var(--size,1));
  animation:fallDown 12s linear infinite;opacity:0}
@keyframes fallDown{
  0%{transform:translate(0,0) rotate(0deg);opacity:0}
  8%{opacity:.95}
  50%{transform:translate(calc(var(--drift) * .6),55vh) rotate(200deg)}
  92%{opacity:.9}
  100%{transform:translate(var(--drift),112vh) rotate(400deg);opacity:0}}
/* spring: blossom petals */
[data-room=garden] .fall-spring i{background:radial-gradient(ellipse at 30% 30%,#fff3f4,#f4c6cf 60%,#e7a3b2);
  border-radius:80% 10% 80% 10%;box-shadow:0 1px 2px rgba(120,60,70,.15)}
/* autumn: leaves */
[data-room=garden] .fall-autumn i{width:calc(16px * var(--size,1));height:calc(12px * var(--size,1));
  border-radius:0 90% 0 90%;background:linear-gradient(135deg,#c9672a,#a4421f 60%,#7a3418)}
[data-room=garden] .fall-autumn i:nth-child(3n){background:linear-gradient(135deg,#d9a03a,#b7742a)}
[data-room=garden] .fall-autumn i:nth-child(4n){background:linear-gradient(135deg,#8a3a2a,#5e2618)}
/* winter: snow */
[data-room=garden] .fall-winter i{width:calc(7px * var(--size,1));height:calc(7px * var(--size,1));border-radius:50%;
  background:radial-gradient(circle,#fff 0 40%,rgba(255,255,255,.6) 60%,transparent 72%);animation-name:snowDown}
@keyframes snowDown{
  0%{transform:translate(0,0);opacity:0}10%{opacity:.95}
  50%{transform:translate(calc(var(--drift) * .5),55vh)}
  100%{transform:translate(var(--drift),112vh);opacity:.2}}
/* summer: fireflies rising */
[data-room=garden] .fall-summer i{top:auto;bottom:-4vh;width:calc(6px * var(--size,1));height:calc(6px * var(--size,1));border-radius:50%;
  background:radial-gradient(circle,#fff6c0 0 30%,rgba(240,214,90,.7) 50%,transparent 72%);
  box-shadow:0 0 10px 3px rgba(240,214,90,.45);animation-name:fireflyUp}
@keyframes fireflyUp{
  0%{transform:translate(0,0);opacity:0}15%{opacity:1}30%{opacity:.3}45%{opacity:1}
  60%{transform:translate(calc(var(--drift) * .7),-50vh);opacity:.4}75%{opacity:1}
  100%{transform:translate(var(--drift),-90vh);opacity:0}}
@media (prefers-reduced-motion:reduce){[data-room=garden] .season-fall{display:none}}

/* ── Garden: the glade floor — ferns hide the way down to the Grotto ── */
[data-room=garden] .glade-floor{position:relative;width:min(100%,26rem);height:clamp(230px,30vw,290px);margin:2rem auto 0}
[data-room=garden] .glade-floor::before{content:"";position:absolute;left:50%;bottom:8%;width:40%;height:55%;translate:-50% 0;
  background:radial-gradient(ellipse at 50% 70%,rgba(255,214,130,.45),rgba(255,200,110,.12) 45%,transparent 70%);
  filter:blur(6px);animation:grottoGlow 5s ease-in-out infinite;pointer-events:none}
@keyframes grottoGlow{0%,100%{opacity:.55}50%{opacity:1}}
[data-room=garden] .grotto-door{position:absolute;left:50%;bottom:0;width:56%;translate:-50% 0;display:block;
  filter:brightness(.45) saturate(.7);transition:filter 1.2s ease}
[data-room=garden] .grotto-door img{display:block;width:100%;height:auto}
[data-room=garden] .glade-floor.open .grotto-door{filter:none}
[data-room=garden] .glade-floor.open .grotto-door:hover,[data-room=garden] .grotto-door:focus-visible{filter:brightness(1.12) drop-shadow(0 0 18px rgba(255,214,130,.55))}
[data-room=garden] .grotto-door:focus-visible{outline:2px solid #cfe0a6;outline-offset:4px}
[data-room=garden] .fern-thicket{position:absolute;inset:0;background:none;border:0;padding:0;cursor:pointer;color:inherit}
[data-room=garden] .fern-thicket:focus-visible{outline:2px dashed rgba(207,224,166,.7);outline-offset:4px}
[data-room=garden] .glade-floor.open .fern-thicket{pointer-events:none}
[data-room=garden] .fern{position:absolute;bottom:-6px;height:100%;width:auto;max-width:none;transform-origin:50% 100%;
  filter:drop-shadow(0 6px 10px rgba(4,14,8,.45));transition:translate 1.1s cubic-bezier(.3,.7,.2,1),rotate 1.1s cubic-bezier(.3,.7,.2,1)}
[data-room=garden] .fern-l{left:50%;translate:-80% 0}
[data-room=garden] .fern-r{right:50%;translate:80% 0}
[data-room=garden] .glade-floor[data-parted="1"] .fern-l{translate:-96% 0;rotate:-4deg}
[data-room=garden] .glade-floor[data-parted="1"] .fern-r{translate:96% 0;rotate:4deg}
[data-room=garden] .glade-floor[data-parted="2"] .fern-l{translate:-110% 0;rotate:-8deg}
[data-room=garden] .glade-floor[data-parted="2"] .fern-r{translate:110% 0;rotate:8deg}
[data-room=garden] .glade-floor.open .fern-l{translate:-138% 0;rotate:-13deg}
[data-room=garden] .glade-floor.open .fern-r{translate:138% 0;rotate:13deg}
[data-room=garden] .fern-thicket:hover .fern,[data-room=garden] .fern-thicket.rustle .fern{animation:fernRustle .7s ease-in-out}
[data-room=garden] .fern-thicket:hover .fern-r{animation-delay:.08s}
@keyframes fernRustle{0%,100%{transform:rotate(0)}25%{transform:rotate(-2.5deg)}60%{transform:rotate(2deg)}}

/* ══ Garden tidy (Kes, 8 Nov 2026): one inhabited garden, not a collection of cards ══ */
/* 1. warm parchment ground with a moss tint; emerald for depth, old gold for detail */
[data-room=garden]{background:#efe8d4;
  background-image:radial-gradient(ellipse 80% 40% at 12% 0%,rgba(140,160,96,.16),transparent 70%),
    radial-gradient(ellipse 70% 45% at 95% 55%,rgba(110,138,88,.11),transparent 70%),
    radial-gradient(ellipse 90% 50% at 8% 100%,rgba(120,146,92,.14),transparent 70%)}
[data-room=garden] .layer-light{background:radial-gradient(ellipse at 30% 0%,rgba(250,242,220,.5),transparent 55%)}
[data-room=garden] .layer-vignette{background:radial-gradient(ellipse at center,transparent 55%,rgba(92,96,58,.12) 100%)}
[data-room=garden] .site-head{background:rgba(239,232,212,.94)}

/* 2. the bell jar gives way sooner on phones */
@media (max-width:899px){
  [data-room=garden] .garden-hero > .room-art{width:min(calc(100% - 7rem),11.5rem);margin-top:1.1rem}
  [data-room=garden] .golem-scene{padding-top:1.6rem}
}
@media (min-width:900px){[data-room=garden] .garden-hero > .room-art{width:min(100%,20rem)}}

/* 3. hemisphere: a small brass-edged toggle under the introduction */
[data-room=garden] .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
[data-room=garden] .garden-hero .sky{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin:-1.2rem auto 1.8rem}
[data-room=garden] .garden-hero .sky-q{font-size:1rem;color:#d9cfb2}
[data-room=garden] .garden-hero .sky-toggle{border:1px solid #b08d4a;border-radius:30px;padding:2px;
  box-shadow:inset 0 0 0 1px rgba(240,215,151,.18),0 1px 0 rgba(0,0,0,.25);background:rgba(10,24,16,.35)}
[data-room=garden] .garden-hero .sky-toggle button{font-size:.8125rem;padding:.5rem .9rem;min-height:36px;border-radius:30px;color:#d9cfb2}
[data-room=garden] .garden-hero .sky-toggle button.on{background:linear-gradient(180deg,#c9a85e,#a8873f);color:#1b1d14}
[data-room=garden] .garden-hero .sky-toggle button:focus-visible{outline:2px solid #f0d797;outline-offset:2px}

/* 5. the seed packet as stationery: old-gold line icons */
[data-room=garden] .seed-glyph{color:#9c7b38}
[data-room=garden] .seed-glyph svg{display:block}
[data-room=garden] .botanical-glyph{color:#9c7b38;filter:none;font-size:0;line-height:0}

/* 6. sections sit in the garden, joined by a gold thread with a little root */
[data-room=garden] .garden-thread{display:flex;justify-content:center;color:#a8873f;margin:2.6rem auto .4rem;opacity:.85;
  background:linear-gradient(90deg,transparent,rgba(168,135,63,.45),transparent) center 1px/min(70%,30rem) 1px no-repeat}
[data-room=garden] .oracle-section,[data-room=garden] .compost-section{background:none;border:0;box-shadow:none;border-radius:0;
  margin:0 auto;padding:1.4rem clamp(1.25rem,4vw,3rem) 2rem}
[data-room=garden] .kicker{color:#86682c}
[data-room=garden] .burial-textarea{background:rgba(255,251,240,.6);border-color:rgba(120,96,52,.3)}

/* 4. the duck house belongs to the ground: no card, a shared soil-and-moss baseline */
[data-room=garden] #snail-patrol{background:none;border:0;box-shadow:none;border-radius:0;margin:0 auto 1rem;padding:1.4rem clamp(1.25rem,4vw,3rem) 1rem;color:#2a2618}
[data-room=garden] #snail-patrol > h2{color:#1d2a1f}
[data-room=garden] #snail-patrol > .patrol-eyebrow{color:#86682c}
[data-room=garden] #snail-patrol > .patrol-sub{color:#3f3a2a}
[data-room=garden] #snail-patrol > .patrol-foot{color:#5b5440}
[data-room=garden] #snail-patrol .patrol-yard{background:none;border-bottom:0;overflow:visible;height:300px}
[data-room=garden] #snail-patrol .yard-note{color:#3f3a2a}
[data-room=garden] #snail-patrol .yard-note span{color:#86682c}
[data-room=garden] #snail-patrol .yard-ground{position:absolute;left:0;right:0;bottom:-14px;height:34px;z-index:-1;pointer-events:none}
[data-room=garden] #snail-patrol .yard-ground::before{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 0,rgba(118,146,84,.55) 22%,#6b7a45 34%,#5a4129 52%,#4a3422 74%,rgba(74,52,34,0) 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  border-radius:50% / 30%}
[data-room=garden] #snail-patrol .patrol-yard{isolation:isolate}
[data-room=garden] #snail-patrol .yard-fern{position:absolute;bottom:16px;height:110px;width:auto;opacity:.92}
[data-room=garden] #snail-patrol .yard-fern-l{left:-1%}
[data-room=garden] #snail-patrol .yard-fern-r{right:-1%}
@media (max-width:560px){[data-room=garden] #snail-patrol .yard-fern{height:76px}
  [data-room=garden] #snail-patrol .patrol-yard{height:270px}}

/* ══ Garden staging (Kes, 8 Nov 2026): the Keeper stands in his garden, the grotto beside him ══ */
[data-room=garden] .garden-intro{display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.6rem 1.25rem 0}
[data-room=garden] .garden-intro .sky{margin:-1.2rem auto .4rem}
/* ferns a quarter smaller */
[data-room=garden] .glade-floor{width:min(100%,19.5rem);height:clamp(172px,22vw,218px);margin:0 auto}
[data-room=garden] .glade-floor.open .fern-l{translate:-122% 0}
[data-room=garden] .glade-floor.open .fern-r{translate:122% 0}
/* the Keeper's talk sits close to him */
[data-room=garden] .golem-scene{min-height:0;padding:0;justify-content:flex-end}
[data-room=garden] .golem-name{margin-bottom:.6rem}
[data-room=garden] .golem-wrap{margin-bottom:.5rem;position:relative;z-index:2}
[data-room=garden] .golem-speech{margin:0 auto .2rem;min-height:1.9em}
[data-room=garden] .take-hint{margin-top:.1rem}
/* a restrained patch of moss and soil */
[data-room=garden] .garden-stage{position:relative;isolation:isolate}
[data-room=garden] .garden-stage::before{content:"";pointer-events:none;z-index:0;height:56px;
  background:radial-gradient(ellipse 50% 46% at 50% 56%,#3e2a18 0,rgba(62,42,24,.85) 40%,rgba(62,42,24,.35) 62%,transparent 74%),
    radial-gradient(ellipse 48% 30% at 50% 30%,rgba(124,156,86,.85),rgba(124,156,86,.3) 55%,transparent 72%)}
[data-room=garden] .glade-floor{z-index:1}

/* phones: Keeper first, the ferns just after him, the ground beneath them both */
@media (max-width:899px){
  [data-room=garden] .garden-stage{display:flex;flex-direction:column;align-items:center;padding:1.2rem 1.25rem 1.5rem}
  [data-room=garden] .golem-scene{order:1}
  [data-room=garden] .glade-floor{order:2;margin-top:1.4rem}
  [data-room=garden] .garden-stage::before{order:3;width:min(100%,24rem);margin-top:-30px}
}

/* desktop: jar and introduction above; below, the grotto on his left and the Keeper a little right of centre, feet level */
@media (min-width:900px){
  [data-room=garden] .garden-hero > .room-art{grid-column:1;grid-row:1;align-self:center;width:min(100%,17rem);justify-self:center}
  [data-room=garden] .garden-hero > .garden-intro{grid-column:2;grid-row:1;padding:0;align-self:center}
  [data-room=garden] .garden-hero > .garden-stage{grid-column:1 / -1;grid-row:2;margin-top:2.2rem;
    display:grid;grid-template-columns:minmax(0,.4fr) 19.5rem 0 auto minmax(0,1fr);grid-template-rows:auto auto auto auto}
  [data-room=garden] .golem-scene{display:contents}
  [data-room=garden] .glade-floor{grid-column:2;grid-row:1 / 3;align-self:end;margin:0;width:19.5rem}
  [data-room=garden] .golem-name{grid-column:4;grid-row:1;justify-self:center;align-self:end}
  [data-room=garden] .golem-wrap{grid-column:4;grid-row:2;justify-self:center;align-self:end;margin:0 0 0 -2rem}
  [data-room=garden] .golem-name,[data-room=garden] .take-hint{translate:-1rem 0}
  [data-room=garden] .golem-speech{grid-column:4;grid-row:3;justify-self:center;text-align:center;margin-top:.9rem;width:34ch;max-width:none;translate:-1rem 0}
  [data-room=garden] .take-hint{grid-column:4;grid-row:4;justify-self:center}
  [data-room=garden] .garden-stage::before{grid-column:2 / 5;grid-row:2;align-self:end;margin-bottom:-26px;justify-self:center;width:calc(100% + 4rem)}
  [data-room=garden] .garden-hero > .wrap{grid-row:3}
}
