.new-controls, .sidebar-links { display: grid; gap: 8px; }
.sidebar-links { margin-top: auto; justify-items: start; }
.sidebar-links .text-button { margin: 0; }
.starter-list { display: grid; gap: 10px; }
.starter { display: grid; gap: 4px; text-align: left; width: 100%; padding: 14px; border-radius: 10px; background: var(--rail); border: 1px solid var(--line); }
.starter strong { font-size: 16px; }
.starter span { color: var(--muted); font-size: 13px; }
.starter:hover { border-color: var(--ink); }

:root, :root[data-edition="standard"] {
  color-scheme: light;
  --page: #f5f4fc;
  --rail: #fff;
  --panel: #fff;
  --line: #d9d5eb;
  --ink: #211d3c;
  --muted: #605a76;
  --gold: #5139bf;
  --coral: #ddd5ff;
  --mint: #3d278e;
  --display: 'Avenir Next', system-ui, sans-serif;
  --body: 'Avenir Next', system-ui, sans-serif;
  --board-ink: #f8f5ff;
  --board-value: #f8e5ff;
  background: var(--page);
}
:root[data-edition="standard"] .sidebar { background: #eeebfb; }
:root[data-edition="standard"] .brand-mark { color: #fff; background: #563bc2; border-radius: 8px; }
:root[data-edition="standard"] .brand strong { letter-spacing: -.06em; }
:root[data-edition="standard"] .button.primary { background: #583dc6; color: #fff; }
:root[data-edition="standard"] .button.primary:hover:not(:disabled) { background: #4024a2; }
:root[data-edition="standard"] .button.new-game { background: #e1d8ff; border-color: #c1b1f4; color: #34247b; }
:root[data-edition="standard"] .button.new-game:hover { background: #d6c8ff; border-color: #a18ad5; }
:root[data-edition="standard"] .library-item:hover,
:root[data-edition="standard"] .button.secondary:hover:not(:disabled) { background: #f2edff; border-color: #ab9cdb; }
:root[data-edition="standard"] .button.secondary { box-shadow: 0 1px 2px #2919580d; }
:root[data-edition="standard"] .topline > span { font-size: 18px; color: var(--ink); letter-spacing: -.045em; }
:root[data-edition="standard"] .marquee { min-height: 164px; border-color: #48359a; background: #382977; color: #fff; }
:root[data-edition="standard"] .marquee.christmas { background: #382977; border-color: #48359a; }
:root[data-edition="standard"] .marquee-meta { color: #dcd0ff; }
:root[data-edition="standard"] .marquee h1 { font: 800 clamp(38px, 5.3vw, 78px)/1.02 var(--display); letter-spacing: -.055em; }
:root[data-edition="standard"] .marquee .button.primary { background: #f0e8ff; color: #3d298b; }
:root[data-edition="standard"] .marquee .button.primary:hover { background: #fff; }
:root[data-edition="standard"] .marquee-art i { border-color: #8973d9; border-radius: 30px; top: -185px; transform: rotate(23deg); }
:root[data-edition="standard"] .marquee-art i:nth-child(2) { top: -153px; }
:root[data-edition="standard"] .marquee-art i:nth-child(3) { top: -125px; }
:root[data-edition="standard"] .marquee-art span { color: #e2befd; }
:root[data-edition="standard"] .category { color: #232045; border-color: #b6a5e1; background: #e7ddfb; }
:root[data-edition="standard"] .tone-1 { background: #dcedfc; border-color: #aacbea; }
:root[data-edition="standard"] .tone-2 { background: #f9e3ed; border-color: #e0bbd1; }
:root[data-edition="standard"] .tone-3 { background: #f9e9d5; border-color: #e0c4a2; }
:root[data-edition="standard"] .tone-4 { background: #e1f2e7; border-color: #b9d6c1; }
:root[data-edition="standard"] .category textarea { border-color: transparent; }
:root[data-edition="standard"] .category textarea:hover { border-color: currentColor; }
:root[data-edition="standard"] .square { color: var(--board-value); border-color: #4e3b91; background: #463486; font-weight: 800; }
:root[data-edition="standard"] .square:nth-child(odd) { background: #41307b; }
:root[data-edition="standard"] button.square:hover:not(:disabled) { background: #5e4aa6; border-color: #4529ae; }
:root[data-edition="standard"] .square.selected { border-color: #815cff; background: #653ecf; box-shadow: inset 0 0 0 2px #cdb7ff; }
:root[data-edition="standard"] .square.incomplete { color: #e2d6f5; }
:root[data-edition="standard"] .square.incomplete::after { background: #c8b2ec; }
:root[data-edition="standard"] .square.finished { color: #625680; border-color: #cbc3df; background: #ddd6eb; }
:root[data-edition="standard"] input,
:root[data-edition="standard"] select,
:root[data-edition="standard"] textarea { border-color: #c8bedf; }
:root[data-edition="standard"] textarea::placeholder,
:root[data-edition="standard"] input::placeholder { color: #6c6582; }
:root[data-edition="standard"] .point-badge { color: #45299a; background: #eee5ff; }
:root[data-edition="standard"] .clue-stage { background: #392871; border-color: #382976; color: var(--board-ink); }
:root[data-edition="standard"] .clue-kicker { color: #e6ccff; }
:root[data-edition="standard"] .private-answer { background: #e3f4e9; border-color: #9fc6a9; }
:root[data-edition="standard"] .private-answer span { color: #245b35; }
:root[data-edition="standard"] .adjudicate.right { color: #164b29; background: #e2f3e9; }
:root[data-edition="standard"] .adjudicate.wrong { color: #7f2529; background: #fce7e8; }
/* The maker stays neutral while a Christmas room carries its own colors. */
:root[data-edition="standard"] .theme-christmas .marquee { background: #244c3d; border-color: #294c3d; }
:root[data-edition="standard"] .theme-christmas .marquee-meta,
:root[data-edition="standard"] .theme-christmas .marquee-art span,
:root[data-edition="standard"] .theme-christmas .clue-kicker { color: #ffe5a2; }
:root[data-edition="standard"] .theme-christmas .marquee-art i { border-color: #97ba9c; }
:root[data-edition="standard"] .theme-christmas .square:not(.finished),
:root[data-edition="standard"] .theme-christmas .clue-stage { color: #fff0c4; background: #325e4f; border-color: #376151; }

:root[data-edition="standard"] .toast { border-color: #ad9fc9; }
:root[data-edition="standard"] .toast.error { border-color: #bc5264; }

:root[data-edition="holiday"] {
  color-scheme: dark;
  --page: #192e28;
  --rail: #203d32;
  --panel: #223d32;
  --line: #587369;
  --ink: #fff3d7;
  --muted: #d5dec8;
  --gold: #f9d68c;
  --coral: #ffb49b;
  --mint: #cfebcc;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Avenir Next', system-ui, sans-serif;
}
:root[data-edition="holiday"] .room-page { max-width: 1200px; padding-top: 18px; }
:root[data-edition="holiday"] .brand { gap: 11px; }
:root[data-edition="holiday"] .brand-mark { color: #351e21; background: var(--gold); border-radius: 50%; border: 2px solid #372b1f; box-shadow: 2px 2px 0 #c35948; font-style: normal; }
:root[data-edition="holiday"] .brand strong { letter-spacing: -.05em; }
:root[data-edition="holiday"] .marquee { color: #322a23; border: 2px solid #231f1b; border-radius: 14px; background: #f3e2b8; box-shadow: 4px 5px 0 #a6423e; }
:root[data-edition="holiday"] .marquee-copy { padding-block: 4px; }
:root[data-edition="holiday"] .marquee h1 { color: #9d302b; text-shadow: 2px 3px #efbc83; }
:root[data-edition="holiday"] .marquee-meta { color: #573b32; letter-spacing: .14em; }
:root[data-edition="holiday"] .marquee-art {
  inset: 0 0 0 55%;
  background-image: radial-gradient(#9e554a55 1px, transparent 1px);
  background-size: 6px 6px;
  mask-image: linear-gradient(90deg, transparent, black 45%);
}
:root[data-edition="holiday"] .marquee-art i { border-color: #b8725a; }
:root[data-edition="holiday"] .marquee-art span { color: #912b26; opacity: .9; }
:root[data-edition="holiday"] .marquee .button.primary { color: #fff1d5; background: #8f312b; border: 1px solid #632723; box-shadow: 2px 2px 0 #543528; }
:root[data-edition="holiday"] .marquee .button.primary:hover { background: #712821; }
:root[data-edition="holiday"] .category { border-color: #acb988; background: #36533e; color: #fff2cd; }
:root[data-edition="holiday"] .tone-1 { background: #6b393a; border-color: #c3837f; }
:root[data-edition="holiday"] .tone-2 { background: #5c4b32; border-color: #c5aa6b; }
:root[data-edition="holiday"] .tone-3 { background: #6b393a; border-color: #c3837f; }
:root[data-edition="holiday"] .tone-4 { background: #36533e; border-color: #acb988; }
:root[data-edition="holiday"] .square { background: #28483a; border-color: #607959; color: #f8d795; }
:root[data-edition="holiday"] .square.finished { background: #233930; color: #c0d1c4; }
:root[data-edition="holiday"] .clue-stage { color: #381f21; background: #f3e2b8; border: 2px solid #241c1a; box-shadow: 3px 4px 0 #a6423e; }
:root[data-edition="holiday"] .clue-kicker { color: #8c312a; }
.holiday-landing { width: min(930px, 100%); margin: auto; padding: clamp(18px, 5vw, 52px); }
.holiday-landing-brand { margin-bottom: 20px; }
.holiday-landing .marquee { min-height: 260px; align-items: center; }
.holiday-landing > p { margin-top: 18px; color: var(--muted); }

@media (max-width: 930px) {
  .new-controls { display: flex; margin-left: auto; }
  .sidebar-links { margin-top: 0; display: flex; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  :root[data-edition="standard"] .marquee h1 { font-size: clamp(32px, 10vw, 42px); }
  :root[data-edition="holiday"] .brand strong { font-size: 18px; }
  .new-controls, .sidebar-links { gap: 5px; }
}

.entry-page { max-width: 1240px; margin: auto; min-height: 100svh; padding: 24px clamp(16px, 4vw, 52px) 36px; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry-top > span, .entry-detail { font-size: 13px; color: var(--muted); }
.entry-hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(20px, 5vw, 70px); margin-top: clamp(28px, 8vw, 110px); }
.entry-topic { color: #5539bc; font-size: 13px; font-weight: 750; }
.entry-copy h1 { margin-top: 9px; font-size: clamp(43px, 6.4vw, 90px); line-height: .98; letter-spacing: -.065em; }
.entry-description { max-width: 37ch; margin: 16px 0 19px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.5; }
.entry-copy .button.primary { min-height: 50px; padding-inline: 19px; font-size: 15px; }
.entry-detail { margin-top: 10px; }
.entry-board { padding: clamp(8px, 2vw, 18px); border-radius: 16px; border: 1px solid #ccc1ef; background: #e9e2f9; transform: rotate(2deg); }
.entry-board .square { font-size: clamp(18px, 2.4vw, 32px); }
@media (max-width: 740px) {
  .entry-hero { grid-template-columns: 1fr; }
  .entry-board { max-width: 570px; transform: none; }
}
