/* v31 (2026-11-20). The Inn's seasons.
   One season for the whole Inn, kept on the guest's own device. Until a guest
   chooses, the Inn shows the real season where they are (from the date and
   their device's time zone; nothing is sent anywhere). Seasonal paintings are
   stacked; only the one for the current season is shown, so only it loads.
   Christmas versions (class has-xmas, data-s="xmas") show from December 1 to
   January 6 whenever winter is showing. */

.sz { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #160016; }
.sz.is-tall { aspect-ratio: 1199 / 1312; }
.sz > img.szi {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; display: none;
}
html:not([data-season]) .sz > img.szi[data-s="fall"],
html[data-season="spring"] .sz > img.szi[data-s="spring"],
html[data-season="summer"] .sz > img.szi[data-s="summer"],
html[data-season="fall"] .sz > img.szi[data-s="fall"],
html[data-season="winter"] .sz > img.szi[data-s="winter"] { display: block; }
html[data-season="winter"][data-xmas] .sz.has-xmas > img.szi[data-s="winter"] { display: none; }
html[data-season="winter"][data-xmas] .sz.has-xmas > img.szi[data-s="xmas"] { display: block; }
/* the painting that is leaving fades out over the one arriving */
.sz > img.szi.sz-out { display: block; z-index: 1; opacity: 1; transition: opacity 0.9s ease; }
.sz > img.szi.sz-out.is-gone { opacity: 0; }

/* room pages: opening-soon heroes keep their 62vh height, now showing the middle of the painting */
.room-hero .sz { max-height: 62vh; }
.room-hero.has-treasures .sz, .room-hero.is-full .sz { max-height: none; }
.room-hero .sz.is-tall { aspect-ratio: 3 / 2; }
.room-hero.is-full .sz.is-tall { aspect-ratio: 1199 / 1312; max-width: 760px; margin: 0 auto; }
.card-media .sz, .card-media .sz.is-tall { aspect-ratio: 3 / 2; }
.card-media .sz > img.szi.is-tall-card { object-position: 50% 25%; }

/* lamps and treasures follow the season */
.lamps[data-s] { display: none; }
html:not([data-season]) .lamps[data-s="fall"],
html[data-season="spring"] .lamps[data-s="spring"],
html[data-season="summer"] .lamps[data-s="summer"],
html[data-season="fall"] .lamps[data-s="fall"],
html[data-season="winter"] .lamps[data-s="winter"] { display: block; }
.treasure-layer.is-seasonal .treasure { --x: var(--x-fall); --y: var(--y-fall); --s: var(--s-fall); }
html[data-season="spring"] .treasure-layer.is-seasonal .treasure { --x: var(--x-spring); --y: var(--y-spring); --s: var(--s-spring); }
html[data-season="summer"] .treasure-layer.is-seasonal .treasure { --x: var(--x-summer); --y: var(--y-summer); --s: var(--s-summer); }
html[data-season="winter"] .treasure-layer.is-seasonal .treasure { --x: var(--x-winter); --y: var(--y-winter); --s: var(--s-winter); }

/* the chooser: a blossom, a sun, a leaf and a snowflake */
.season-pick {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px;
  background: rgba(22, 0, 22, 0.62); border: 1px solid rgba(204, 153, 102, 0.45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.season-pick.is-inline {
  position: static; display: inline-flex; margin: 18px auto 0; background: rgba(51, 0, 51, 0.5);
}
.sp-label {
  font-family: var(--serif-caps, 'Cinzel', serif); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--parchment-dim, #A8A296); align-self: center; padding: 0 6px 0 4px;
}
.sp-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: #F3E7D6; padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.sp-btn svg { width: 22px; height: 22px; }
.sp-btn:hover { background: rgba(204, 153, 102, 0.16); }
.sp-btn:focus { outline: none; }
.sp-btn:focus-visible { outline: 2px solid #FF9933; outline-offset: 2px; }
.sp-btn[aria-pressed="true"] { background: rgba(204, 153, 102, 0.28); border-color: #CC9966; color: #FFD9A8; }
.sp-btn[data-pick="spring"][aria-pressed="true"] { color: #F6B8D8; }
.sp-btn[data-pick="summer"][aria-pressed="true"] { color: #FFD27A; }
.sp-btn[data-pick="fall"][aria-pressed="true"] { color: #FF9933; }
.sp-btn[data-pick="winter"][aria-pressed="true"] { color: #CFE3F5; }
.sp-say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.season-row { text-align: center; }
@media (max-width: 560px) {
  .season-pick { right: 8px; bottom: 8px; padding: 4px 6px; gap: 2px; }
  .sp-label { display: none; }
  .season-pick.is-inline .sp-label { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .sz > img.szi.sz-out { transition: none; } }
html.is-still .sz > img.szi.sz-out { transition: none; }

/* small paintings lower on a room page ("more views") */
.alt-row figure { margin: 0; }
.alt-row figcaption { font-size: 0.92rem; font-style: italic; color: var(--parchment-dim, #A8A296); margin-top: 8px; }

/* v31: one extra painting, and the new rooms' small additions */
.alt-row.alt-one { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
.info-block { max-width: 660px; margin: 52px auto 0; text-align: left; }
.info-block h2 { text-align: center; margin-bottom: 18px; }
.info-block h3 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--copper, #CC9966); }
.info-block p { line-height: 1.7; }
.info-block p + p { margin-top: 12px; }

/* phones: the chooser sits just under the painting instead of on it */
@media (max-width: 560px) {
  .season-pick:not(.is-inline) {
    position: relative; right: auto; bottom: auto; z-index: 4;
    width: max-content; margin: 10px auto 2px; background: rgba(51, 0, 51, 0.55);
  }
  .room-hero:has(.season-pick) { max-height: none; }
  .room-hero:has(.season-pick)::after { bottom: 60px; }
  .hero-art:has(.season-pick)::after { bottom: 60px; }
}
/* the lamps always sit on the painting itself, even when the chooser is below it */
.hero-art .lamps { inset: auto; top: 0; left: 0; width: 100%; aspect-ratio: 3 / 2; }
