/* Christmas uses the imprint's red with brass and parchment. */
html[data-season="christmas"] {
  --winter-burgundy: #501c2d;
  --winter-wine: #6b2537;
}
html[data-season="christmas"] #page-top {
  --rule: #d5c9b0;
  background: #fbf8ee;
  color: var(--ink);
}
html[data-season="christmas"] #page-top > .mast {
  background: linear-gradient(108deg,var(--winter-wine),var(--red) 48%,var(--winter-burgundy));
  color: #fff6dc;
  border-bottom: 1px solid #b59c6d;
  box-shadow: inset 0 2px #a68958;
}
html[data-season="christmas"] #page-top .mast .wordmark b { color: #fff3d8; }
html[data-season="christmas"] #page-top .mast .wordmark small { color: #e1ce9f; }
html[data-season="christmas"] #page-top .mast .imprint-mark { box-shadow: 0 0 0 1px #d1ae74; }
html[data-season="christmas"] #page-top .header-tools { border-color: #e1ca995e; }
html[data-season="christmas"] #page-top .menu-toggle i { background: #fff3da; }
html[data-season="christmas"] #page-top .mast a:focus-visible { outline-color: #ffe3a5; }
html[data-season="christmas"] #page-top .mast .top-nav a:is(:hover,[aria-current]),
html[data-season="christmas"] #page-top .mast .mobile-nav a:is(:hover,[aria-current]) {
  color: #ffdda0; text-decoration: underline; text-underline-offset: .4em;
}
html[data-season="christmas"] #page-top .mast .mobile-nav:not([hidden]) {
  background: var(--winter-wine); color: #fff2d7; box-shadow: 0 8px 26px #31132050;
}
html[data-season="christmas"] #page-top .mast .mobile-nav a { border-color: #d4bc8040; }

.winter-scene {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  overflow: hidden;
  color: #fff4d7;
  background-color: var(--winter-burgundy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", Georgia, serif;
}
.winter-scene a { color: inherit; }
.winter-scene a:focus-visible { outline: 2px solid #ffe4a6; outline-offset: 4px; }
.winter-scene--home { border-bottom: 3px double #be9e66; }
.winter-painting, .winter-painting img {
  position: absolute; display: block; inset: 0; width: 100%; height: 100%;
}
.winter-painting { z-index: -3; }
.winter-painting img { object-fit: cover; object-position: 60% 49%; }
.winter-scene--home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2;
  background: linear-gradient(90deg,#501c2dd9, #4a1d336e 34%, transparent 62%),
    linear-gradient(0deg,#34131e61,transparent 18%);
}
.winter-scene--home::after {
  content: ""; position: absolute; z-index: -1; inset: .7rem;
  border: 1px solid #e2c6875c; pointer-events: none;
}
.winter-scene-inner {
  width: min(calc(100% - 2 * var(--gutter, 6%)), 1200px);
  min-height: clamp(25rem, 37vw, 37rem); margin-inline: auto;
  display: flex; align-items: center;
}
.winter-copy {
  position: relative; padding: 3.5rem 0 4.2rem clamp(0px, 2.4vw, 36px);
}
.winter-caption { margin: 0 0 .7rem; }
.winter-edition {
  display: inline-flex; align-items: center; gap: .8em;
  color: #edd3a2; font: italic 400 clamp(1.1rem, 2.05vw, 1.85rem)/1.3 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 7px #101a18;
}
.winter-edition::before {
  content: ""; width: clamp(1.5rem,3.3vw,3rem); height: 1px;
  background: linear-gradient(90deg, #b5995a33, #edca8b);
}
.winter-copy h2 {
  margin: 0; color: #fff5d9; font: 500 clamp(3.15rem, 6.2vw, 6.45rem)/1.28 var(--serif,serif);
  letter-spacing: .055em; white-space: nowrap; word-break: keep-all;
  text-shadow: 0 2px 16px #0a1719b0;
}
.winter-copy h2 span {
  display: inline-block; font-size: .72em; margin-inline: .025em .085em; vertical-align: .055em;
}
.winter-links { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: clamp(1.1rem,2.3vw,2rem); }
.winter-links a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; font: 600 .94rem/1.4 var(--serif, serif); letter-spacing: .05em; text-decoration: none; }
.winter-links .winter-read {
  padding: .65rem 1.15rem; border: 1px solid #e0c998; background: #f4e6c9;
  box-shadow: 0 2px 12px #32142330; color: var(--winter-burgundy);
}
.winter-links .winter-play { color: #fff7e3; text-decoration: underline; text-underline-offset: .45em; text-decoration-color: #d7b879; }
@media (hover:hover) {
  .winter-links .winter-read:hover { color: #421a26; background: #fff4d8; }
  .winter-links .winter-play:hover { color: #ffe0a2; }
}
.winter-walk {
  position: absolute; z-index: 1; pointer-events: none; overflow: hidden;
  left: .8rem; right: .8rem; bottom: .78rem; height: clamp(3.5rem,7vw,6.3rem);
}
.winter-scene--inner,.winter-scene--compact {
  background-image: linear-gradient(90deg,var(--winter-wine) 5%, #501c2de0 33%, #4e1c2d53 67%,#36132180),
    url('/assets/seasons/christmas/winter-library-led.webp');
  background-repeat: no-repeat; background-position: center, center 44%; background-size: cover;
  border-bottom: 2px solid #b89d69;
}
.winter-frieze-inner {
  width: min(calc(100% - 2 * var(--gutter,5.7vw)),1200px); min-height: clamp(3.8rem,5.4vw,5.5rem);
  margin-inline: auto; display: flex; align-items: center;
}
.winter-frieze-title {
  position: relative; display: inline-flex; align-items: center; gap: .7rem; min-height: 36px;
  text-decoration: none; white-space: nowrap;
  font: 500 clamp(1.05rem,1.8vw,1.45rem)/1.4 "Hiragino Mincho ProN","Yu Mincho",serif; letter-spacing: .15em;
}
.winter-frieze-title small { margin-inline-start: .2rem; font: italic 400 1rem/1.3 Georgia,serif; color: #e6cda1; letter-spacing: .02em; }
.winter-star { width: .9em; height: 1.3em; background: #eacd8b; clip-path: polygon(50% 0,59% 40%,100% 50%,59% 60%,50% 100%,41% 60%,0 50%,41% 40%); }
.winter-scene--inner .winter-walk,.winter-scene--compact .winter-walk {
  left: auto; right: max(var(--gutter,5.7vw),calc((100% - 1200px)/2)); width: min(36%,28rem); height: calc(100% - 3px); bottom: 1px;
}
.winter-scene--compact .winter-frieze-inner { min-height: 2.45rem; }
.winter-scene--compact .winter-frieze-title { font-size: .9rem; letter-spacing: .1em; }
.winter-scene--compact .winter-frieze-title small { font-size: .875rem; }
.winter-scene--compact .winter-walk { width: min(28%,22rem); }

/* Warm paper and the regular red buttons keep the books easy to read. */
html[data-season="christmas"] #page-top .hero {
  border-block-end: 1px solid #baa981;
}
html[data-season="christmas"] #page-top .feature-panel {
  --pencil: #8a4b56;
  background: linear-gradient(110deg,#fbf7e9 12%,#f7efdf 48%,#f2dfd8 74%,#e5c6c1);
}
html[data-season="christmas"] #page-top .feature-art .rose { opacity: 0; }
html[data-season="christmas"] #page-top .feature-panel .feature-title { color: var(--winter-burgundy); }
html[data-season="christmas"] #page-top .section-head { border-bottom-color: #a89470; }
html[data-season="christmas"] #page-top :is(.section-head h2, .page-h1, .detail-book h1, .catalog-heading h1, .info-header h1, .reader-guide-section h2) { color: var(--winter-burgundy); }
html[data-season="christmas"] #page-top .book-image,
html[data-season="christmas"] #page-top .detail-cover {
  background: radial-gradient(ellipse at 30% 0%,#fbf5df,transparent 75%),#ead5d2;
  box-shadow: inset 0 0 0 1px #b99f6c60;
}
html[data-season="christmas"] #page-top :is(.book-image,.detail-cover)::before { border-color: #b69d6b9c; }
html[data-season="christmas"] #page-top .series-section {
  background: linear-gradient(125deg,var(--red),var(--winter-burgundy)); border-block: 1px solid #a18a58; color: #fbf1d8;
}
html[data-season="christmas"] #page-top .series-section :is(.section-head h2,.section-link,.section-link .chev) { color: #fff0d2; }
html[data-season="christmas"] #page-top .series-section .eyebrow { color: #e3c58c; }
html[data-season="christmas"] #page-top .series-card { background: #faf3e3; color: var(--winter-burgundy); border-color: #bba479; }
html[data-season="christmas"] #page-top :is(.daily-sign,.theater-housing,.playroom-entry,.catalog-marquee) {
  outline: 1px solid #ab8b53; outline-offset: 2px;
}
html[data-season="christmas"] #page-top .ds-page { background: linear-gradient(#f5efdf,#fbf8ee 55%); }
html[data-season="christmas"] #page-top .ds-feature-copy { background: linear-gradient(135deg,#f6f1df,#f4ead4); }
html[data-season="christmas"] #page-top .dr-page { --dr-line: #d0bea0; }
html[data-season="christmas"] #page-top :is(.policy-contents,.catalog-tools) { background-color: #f1eddf; }
html[data-season="christmas"] #page-top .imprint-footer {
  --foot-rule: #b499665e; --foot-gold: #eacf92;
}
html[data-season="christmas"] #page-top .imprint-footer .foot-trail {
  border-color: #c2a773; background: #f0ead9;
}
@media (max-width: 740px) {
  .winter-frieze-title small { display: none; }
}
@media (max-width: 620px) {
  .winter-scene-inner { min-height: clamp(21.5rem,88vw,29rem); align-items: flex-end; width: auto; }
  .winter-painting img { object-position: 56% 36%; }
  .winter-scene--home::before {
    background: linear-gradient(0deg,#501c2df5 2%,#431826cf 22%,#35171e38 54%,transparent 72%),
      linear-gradient(90deg,#46152373,transparent 72%);
  }
  .winter-scene--home::after { inset: .45rem; border-color: #dec78a67; }
  .winter-copy { padding: 0 max(1.2rem,6vw) clamp(3.9rem,13vw,5.1rem); }
  .winter-caption { margin-bottom: .35rem; }
  .winter-edition { gap: .6rem; font-size: clamp(.98rem,4.1vw,1.26rem); }
  .winter-copy h2 { font-size: clamp(2.55rem,10vw,3.95rem); letter-spacing: .045em; }
  .winter-links { margin-top: .65rem; gap: .5rem 1rem; }
  .winter-links a { min-height: 42px; font-size: .9rem; }
  .winter-links .winter-read { padding: .48rem .93rem; }
  .winter-walk { left: .55rem; right: .55rem; bottom: .48rem; height: 3.3rem; }
  .winter-scene--inner .winter-frieze-inner { min-height: 3.2rem; }
  .winter-scene--compact .winter-frieze-inner { min-height: 2.3rem; }
}
@media (prefers-reduced-data: reduce) {
  .winter-scene--inner, .winter-scene--compact { background-image: linear-gradient(110deg,var(--winter-wine),var(--winter-burgundy)); }
}

/* On independent games, the frieze is part of the title screen alone. */
html[data-season-view="stage"] {
  --winter-frieze-height: 2.45rem;
  --winter-stage-bar: calc(var(--winter-frieze-height) + 2px + var(--site-top-inset, env(safe-area-inset-top, 0px)));
}
html[data-season-view="stage"] body:has(> .winter-scene--compact):has(.title-screen, #titleScreen:not([hidden]), .theater[data-mode="intro"], #screen .port-scene) {
  --winter-band-display: block;
  --site-header-inset: 0px;
}
html[data-season-view="stage"] body > .winter-scene--compact {
  display: var(--winter-band-display, none);
  z-index: 1;
  padding-block-start: var(--site-top-inset, env(safe-area-inset-top, 0px));
}
html[data-season-view="stage"] body > .winter-scene--compact .winter-walk {
  height: calc(100% - 3px - var(--site-top-inset, env(safe-area-inset-top, 0px)));
}
html[data-season-view="stage"] :is(.title-screen, #titleScreen:not([hidden]), .theater[data-mode="intro"]) {
  min-height: calc(100svh - var(--winter-stage-bar));
}
html[data-season-view="stage"] .theater[data-mode="intro"] .screen {
  height: calc(100svh - var(--winter-stage-bar));
}
@media (max-width:620px) {
  html[data-season-view="stage"] { --winter-frieze-height: 2.3rem; }
}

html[data-season="christmas"] #page-top .salon-shell {
  --gold: #efd9a1; --brass: #896a3f;
  --paper: #faf5e9; --hairline: #cabb99;
}
html[data-season="christmas"] #page-top .salon-hero::before {
  background: linear-gradient(90deg,#381626ed 0%,#481b2ddf 23%,#4b233594 45%,#3f1e2809 72%),
    linear-gradient(0deg,#39182455,transparent 33%);
}
html[data-season="christmas"] #page-top .hero-frame { border-color: #e6c4829e; }
html[data-season="christmas"] #page-top .contact-page { --contact-line: #cebe9e; }
