/* Seasonal paint for the existing NotMyGame layout. */
:root {
  --pistachio-bg: #f0efe9;
  --pistachio-panel: #fffdf5;
  --pistachio-tile: #e5edf7;
  --pistachio-hover: #dbe7f4;
  --pistachio-text: #1d3659;
  --pistachio-muted: #4a5c73;
  --pistachio-accent: #d6e4f5;
  --pistachio-accent-hover: #ccdef2;
  --pistachio-accent-text: #2b5186;
  --pistachio-line: #b9cadd;
  --pistachio-line-strong: #849cba;

  --knit-red: #a82541;
  --knit-red-hover: #8d1e36;
  --knit-on-red: #fffaf6;
  --knit-band: url("/images/winter-knit-band.png");
  --knit-ram: url("/images/winter-knit-ram.png");
  --knit-tree: url("/images/winter-knit-tree.png");
  --knit-glow: radial-gradient(ellipse at 80% 12%, #b4cdec42, transparent 58%);
}

body.landing-page,
body.auth-page,
body.player-page.mobile-view,
body:has(.admin-workspace) {
  background-image: var(--knit-glow);
}

.landing-page header,
.auth-page header,
.page-header:has(.admin-brand) {
  background-image: var(--knit-band);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: auto 5px;
}

.landing-page .scene-orbit {
  background-image: var(--knit-band), var(--knit-band), radial-gradient(#365c8824, #365c880a);
  background-position: center 11%, center 86%, center;
  background-repeat: repeat-x, repeat-x, no-repeat;
  background-size: auto 22px, auto 22px, cover;
}

.auth-page .auth-decoration {
  background-image: var(--knit-band);
  background-position: center;
  background-size: auto 18px;
}

.landing-page .game-preview,
.auth-page .main-panel,
.player-page .login-card,
.screen-page .screen-login-card {
  box-shadow: 0 24px 60px #25436c20;
}

.landing-page .status-dot { box-shadow: 0 0 14px #547eae55; }
.landing-page .btn-create:hover { box-shadow: 0 6px 30px #a8254128; }
.landing-page .score-pill,
.landing-page .note-bolt { color: var(--pistachio-accent-text); }

.landing-page .btn-create,
.auth-page button[type="submit"].btn-create,
.landing-page .featured-cell,
.landing-page .pack-primary,
body.player-page #buzzBtn:not(:disabled),
.player-page .login-btn,
.screen-page .overlay-btn,
.admin-workspace .start-game {
  background-color: var(--knit-red);
  border-color: var(--knit-red);
  color: var(--knit-on-red);
}

.landing-page .btn-create:hover,
.auth-page button[type="submit"].btn-create:hover,
.landing-page .featured-cell:hover,
.landing-page .pack-primary:hover,
body.player-page #buzzBtn:not(:disabled):hover,
.player-page .login-btn:hover,
.screen-page .overlay-btn:hover,
.admin-workspace .start-game:hover {
  background-color: var(--knit-red-hover);
  border-color: var(--knit-red-hover);
  color: var(--knit-on-red);
}

.landing-page #packEditor {
  background-color: var(--pistachio-bg);
  color: var(--pistachio-text);
  border-color: var(--pistachio-line-strong);
}

.landing-page #packEditor :is(.pack-editor-header, .pack-actions, .pack-navigation) {
  background-color: var(--pistachio-tile);
  border-color: var(--pistachio-line);
}

.landing-page #packEditor :is(.pack-question, .pack-import, .pack-image-field, input, select, textarea) {
  border-color: var(--pistachio-line);
}

.player-page #login-overlay,
.screen-page #login-overlay,
.player-page #audio-unlock,
.screen-page #audio-unlock {
  background: var(--knit-glow), var(--pistachio-bg) !important;
}

.player-page .login-card,
.screen-page .screen-login-card,
.player-page aside.sidebar,
.screen-page aside.sidebar {
  background-image: var(--knit-band);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: auto 6px;
}

body.player-page.mobile-view #buzzBtn:not(:disabled) {
  box-shadow: 0 0 0 11px #a8254114, 0 0 0 12px #a8254151;
}

body.player-page.mobile-view #buzzBtn:disabled {
  box-shadow: 0 0 0 11px #2b518609, 0 0 0 12px #2b518626;
}

@media (min-width: 851px) {
  .landing-page .hero-copy {
    background-image: var(--knit-ram), var(--knit-tree);
    background-repeat: no-repeat;
    background-position: right 2% bottom 3px, right 16% bottom 5px;
    background-size: auto clamp(36px, 4.6vw, 66px), auto clamp(42px, 5.2vw, 76px);
  }

  .auth-page .auth-story {
    background-image: var(--knit-tree), var(--knit-ram);
    background-repeat: no-repeat;
    background-position: right 6% bottom 4%, right 26% bottom 2%;
    background-size: auto 76px, auto 50px;
  }
}

@media (max-width: 850px) {
  .landing-page .demo-scene {
    background-image: var(--knit-ram), var(--knit-tree);
    background-repeat: no-repeat;
    background-position: right 18% top 2px, right 7% top 0;
    background-size: auto 27px, auto 31px;
  }
}

:root:has(link[data-winter-page="info"]) body {
  background-color: var(--pistachio-bg);
  color: var(--pistachio-text);
}

:root:has(link[data-winter-page="info"]) :is(h1, h2, h3, a) {
  color: var(--pistachio-accent-text);
}

:root:has(link[data-winter-page="info"]) .contacts {
  background-color: var(--pistachio-tile);
}

:root:has(link[data-winter-page="info"]) footer {
  color: var(--pistachio-muted);
  border-color: var(--pistachio-line);
}

:root:has(link[data-winter-page="analytics"]) body {
  background: var(--knit-glow), #223b63;
  color: #f4f5fa;
}

:root:has(link[data-winter-page="analytics"]) :is(h1, .section, .stat-card) {
  background-color: #2b4872;
  border-color: #7892b5;
}

:root:has(link[data-winter-page="analytics"]) h1 {
  background-image: var(--knit-band);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: auto 6px;
}

:root:has(link[data-winter-page="analytics"]) :is(.stat-number, .section h2, th) {
  color: #d9e8fc;
}

:root:has(link[data-winter-page="analytics"]) :is(th, tr:hover, .filter-group select, .filter-group input) {
  background-color: #375781;
}

:root:has(link[data-winter-page="analytics"]) :is(td, th, .section h2, .filter-group input, .filter-group select) {
  border-color: #7892b5;
}

:root:has(link[data-winter-page="analytics"]) :is(.loading, .stat-label, .back-link) {
  color: #d1deee;
}
