:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  --bg: #171022;
  --surface: #221632;
  --line: #593b74;
  --text: #faf2ff;
  --muted: #cbb4dc;
  --accent: #d8aaff;
  --ink: #28133b;
  --raised: #352149;
  --inset: #1e122c;
  --hero-start: #2b173d;
  --hero-end: #563578;
  --slot-tint: #46265d;
  --slot-alt: #523568;
  --hover: #4d3066;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #151927; }
.top-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--accent); color: #151927; font-size: 24px; line-height: 1; }
.hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 26px;
  margin: 42px 0 25px; padding: clamp(28px, 5vw, 62px);
  border: 1px solid #424867; border-radius: 24px;
  background: radial-gradient(ellipse at 100% 7%, #3d3e71, transparent 60%), linear-gradient(115deg, #20223a, #242b41);
}
.hero::after {
  position: absolute; content: ""; z-index: -1; inset: 0; opacity: .4;
  background: radial-gradient(circle, #959cc5 1px, transparent 1.5px) 0 0 / 17px 17px;
  mask-image: linear-gradient(115deg, transparent 38%, #000);
}
.eyebrow { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { margin-inline: 5px; }
h1 { font-size: clamp(3.9rem, 8vw, 7.5rem); line-height: .95; letter-spacing: -.085em; margin: 12px 0 19px; }
h1 span { color: var(--accent); }
.intro { max-width: 480px; color: #e1e5f2; line-height: 1.55; }
.hero-details { max-width: 285px; font-size: .83rem; line-height: 1.55; background: #171b30; border: 1px solid #626889; border-radius: 12px; padding: 13px 16px; }
#event-date { font-weight: 800; }
#event-hours { color: #c5ccdf; margin-top: 4px; }
.status-dot { display: inline-block; background: var(--accent); width: 7px; height: 7px; border-radius: 100%; margin-right: 6px; vertical-align: 1px; }
.tabs { display: flex; gap: clamp(18px, 4vw, 36px); border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 0; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
#content { padding: 28px 0 48px; }
.section-head, .panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); letter-spacing: -.045em; }
h3 { font-size: 1.22rem; letter-spacing: -.025em; }
.section-head p, .panel-heading p, .empty p { color: var(--muted); margin-top: 5px; line-height: 1.5; }
.primary, .ghost, .vote {
  border-radius: 9px; min-height: 42px; padding: 8px 14px; font-weight: 750;
  border: 1px solid var(--line); background: #22283a; color: var(--text);
}
.primary, .vote[aria-pressed=true] { color: #161c0d; border-color: var(--accent); background: var(--accent); }
.primary:hover, .vote[aria-pressed=true]:hover { background: #e9ffab; }
.ghost:hover, .vote:hover { border-color: #929ab0; background: #30374b; }
.text-button { color: #c4cceb; background: none; border: 0; padding: 5px 0; text-decoration: underline; text-underline-offset: 4px; }
.board-footer { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 15px; }
.empty { min-height: 220px; padding: 35px 20px; display: grid; place-content: center; justify-items: center; background: var(--surface); border: 1px dashed #49526a; border-radius: 16px; text-align: center; }
.empty-icon { border-radius: 12px; width: 46px; height: 46px; display: grid; place-items: center; background: #333d37; color: var(--accent); font-size: 26px; margin-bottom: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 15px; }
.card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 150px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow-wrap: anywhere; }
.card-region { color: #c3caf9; font-size: .65rem; margin-bottom: 6px; }
.byline, .muted, small { color: var(--muted); font-size: .82rem; }
.notes { color: #e3e6ef; margin-top: 10px; line-height: 1.45; white-space: pre-wrap; }
.vote-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.counts { display: flex; gap: 9px; flex-wrap: wrap; font-size: .82rem; }
.counts span { padding: 4px 7px; border-radius: 5px; color: #d6def3; background: #2c3449; }
#notice { color: #e6f7bf; background: #242f25; border-radius: 8px; padding: 10px 14px; margin-top: 15px; }
#notice.error, .form-error { color: #ffc3c8; background: #462731; }
dialog { background: var(--surface); color: var(--text); border: 1px solid #59627b; border-radius: 17px; padding: 23px; width: min(480px, calc(100% - 30px)); max-height: calc(100% - 30px); }
dialog::backdrop { background: rgb(6 9 14 / 75%); }
dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.close { padding: 3px 11px; font-size: 1.25rem; }
.fields, .setup-fields { display: grid; gap: 12px; }
.setup-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); margin-top: 14px; }
label { display: grid; gap: 5px; font-size: .87rem; font-weight: 700; }
input, textarea, select { min-width: 0; width: 100%; border: 1px solid #4e5872; border-radius: 8px; color: var(--text); background: #101522; padding: 9px 10px; }
textarea { resize: vertical; }
.buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.panel-heading .buttons { margin: 0; }
.form-error { padding: 8px; border-radius: 6px; margin-bottom: 10px; }
.danger { color: #ffc3c8; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: 18px; border-radius: 13px; margin-bottom: 15px; }
.schedule-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.timeline { display: grid; min-width: 710px; grid-template-columns: 160px repeat(4, minmax(135px, 1fr)); grid-auto-rows: minmax(60px, auto); background: var(--surface); font-size: .83rem; }
.timeline small, .timeline span, .timeline strong { display: block; }
.time-heading, .room-heading, .time-cell { padding: 11px; border: solid var(--line); border-width: 0 1px 1px 0; }
.time-heading, .room-heading { background: #222a3a; }
.room-heading a { color: var(--accent); text-underline-offset: 3px; }
.time-cell { grid-column: 1; }
.grid-cell { border: solid var(--line); border-width: 0 1px 1px 0; }
.slot.shared { background: #313f2c; border-color: var(--accent); }
.slot.room-1 { background: #233d47; border-color: #76dcd1; }
.slot.room-2 { background: #452e44; border-color: #fca6d1; }
.slot.room-3 { background: #47382d; border-color: #f0bf86; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .hero { margin-top: 23px; align-items: start; flex-direction: column; }
  .hero-details { max-width: none; }
}
.join { max-width: 460px; margin-inline: auto; }

.cover { display: block; flex: none; width: 64px; height: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #242a40; }
.proposal-header, .session-game, .cover-entry { display: flex; align-items: center; gap: 12px; }
.proposal-header > div { min-width: 0; }
.card { gap: 14px; }
.proposal-details:empty { display: none; }
.proposal-details .notes:first-child { margin-top: 0; }
.chip { display: inline-block; padding: 3px 7px; margin: 0 4px 4px 0; border: 1px solid #3e4760; border-radius: 5px; font-size: .76rem; color: #e1e6f6; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 9px 10px 10px; }
legend { padding-inline: 4px; font-size: .87rem; font-weight: 700; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 13px; }
.check { display: flex; align-items: center; gap: 6px; }
.check input { width: auto; accent-color: var(--accent); }
fieldset > p { margin-top: 6px; }
.cover-entry > div { flex: 1; min-width: 0; }
.cover-entry button { margin-top: 8px; }
#cover-results:not(:empty) { margin-top: 10px; font-size: .84rem; }
.cover-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cover-choice { padding: 5px; display: grid; gap: 5px; align-content: start; justify-items: center; overflow-wrap: anywhere; color: var(--text); background: #242a3c; border: 1px solid var(--line); border-radius: 7px; font-size: .75rem; }
.cover-choice .cover { width: min(100%, 60px); height: auto; }
.room-setup { display: grid; gap: 7px; }
.draft-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
.library { display: flex; flex-direction: column; min-width: 0; max-height: 525px; background: #131725; border: 1px solid var(--line); border-radius: 10px; }
.library h4 { font-size: .89rem; margin: 0; padding: 11px; border-bottom: 1px solid var(--line); }
.library-list { display: grid; min-height: 0; align-content: start; gap: 5px; overflow: auto; padding: 6px; }
.library-list > p { padding: 5px; }
.library-game { display: flex; align-items: start; gap: 8px; text-align: left; width: 100%; background: #21273a; color: var(--text); border: 1px solid #3d4560; border-radius: 8px; padding: 7px; cursor: grab; }
.library-game:hover, .library-game:focus-visible { border-color: var(--accent); }
.library-game:active { cursor: grabbing; }
.library-game .cover { width: 43px; height: 43px; }
.library-copy { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; font-size: .83rem; }
.library-total { color: var(--accent); font-size: .73rem; }
.library-counts { display: flex; flex-wrap: wrap; gap: 3px 7px; color: var(--muted); font-size: .71rem; }
.timeline .time-heading { grid-column: 1; }
.timeline .time-heading, .timeline .room-heading { grid-row: 1; }
.slot { z-index: 1; display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 0; margin: 4px; padding: 5px; border: 0; border-left: 3px solid #a09bfa; border-radius: 7px; background: #303051; color: #f0effb; overflow: hidden; overflow-wrap: anywhere; text-align: left; font: inherit; }
.slot strong { min-width: 0; line-height: 1.15; }
.slot:hover, .slot:focus-visible { box-shadow: inset 0 0 0 1px currentColor; }
.slot .cover { width: var(--slot-cover, 42px); height: var(--slot-cover, 42px); border-radius: 3px; }
.editing { max-height: 525px; }
.editing .timeline { min-width: 585px; grid-template-columns: 92px repeat(4, minmax(120px, 1fr)); grid-template-rows: auto repeat(var(--rows), 26px); }
.editing .time-heading, .editing .room-heading { position: sticky; top: 0; z-index: 3; }
.editing .time-cell { overflow: visible; font-size: .71rem; line-height: 1; padding: 3px 8px; white-space: nowrap; }
.editing .time-cell small { font-size: .69rem; }
.editing .time-cell.quarter { border-bottom-color: #3d465c; }
.editing .grid-cell:not(.quarter), .editing .time-cell:not(.quarter) { border-bottom-color: #242a39; }
.editing .grid-cell.drop-ready { outline: 1px solid var(--accent); outline-offset: -2px; background: #3e5036; }
.editing .slot { margin: 1px 3px; padding-block: 0; }
.session-details { display: grid; gap: 7px; padding-left: 18px; overflow-wrap: anywhere; white-space: pre-wrap; }
.button-link { display: inline-grid; align-items: center; text-decoration: none; }
@media (max-width: 850px) {
  .draft-workspace { grid-template-columns: minmax(0, 1fr); }
  .library-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); max-height: 160px; }
}

/* Deliberately garish early-web theme. */
:root[data-theme="90s"] {
  color-scheme: light;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  --bg: #fff500;
  --surface: #fff9a0;
  --line: #7500b5;
  --text: #180025;
  --muted: #510034;
  --accent: #bbff00;
}

:root[data-theme="90s"] body {
  background: repeating-conic-gradient(#ff9900 0% 25%, #ffed00 0% 50%) 0 0 / 44px 44px;
}

:root[data-theme="90s"] :focus-visible {
  outline: 3px dashed #2400cc;
  outline-offset: 3px;
}

:root[data-theme="90s"] .top {
  border-bottom: 8px ridge #7300cf;
  background: repeating-linear-gradient(90deg, #00ff9d 0 20px, #5fffff 20px 40px);
}

:root[data-theme="90s"] .brand {
  color: navy;
  font: bold 1.55rem "Times New Roman", serif;
  text-decoration: underline double #ec006d;
}

:root[data-theme="90s"] .mark {
  border: 3px outset #6bff00;
  border-radius: 0;
  background: #ec006d;
  color: white;
}

:root[data-theme="90s"] .hero {
  border: 9px ridge #f000ba;
  border-radius: 0;
  box-shadow: 8px 8px 0 #2713c9, -5px -5px 0 #72ff00;
  background: repeating-linear-gradient(-35deg, #54ffff 0 16px, #caff00 16px 32px, #ffb6e8 32px 48px);
}

:root[data-theme="90s"] .hero::after { content: none; }

:root[data-theme="90s"] h1 {
  color: #430066;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 3px 3px #ff9a28, 6px 6px #fc88e7;
}

:root[data-theme="90s"] h1 span { color: #930050; }

:root[data-theme="90s"] .eyebrow, :root[data-theme="90s"] .intro, :root[data-theme="90s"] .hero-details {
  background: #fff500;
  color: #29006c;
}

:root[data-theme="90s"] .eyebrow { display: inline-block; padding: 2px 5px; }
:root[data-theme="90s"] .intro { padding: 4px 7px; }

:root[data-theme="90s"] .hero-details {
  border: 5px groove #7900d5;
  border-radius: 0;
  font-family: "Courier New", monospace;
}

:root[data-theme="90s"] #event-hours { color: #48005d; }
:root[data-theme="90s"] .status-dot { background: #ed0055; box-shadow: 1px 1px navy; }

:root[data-theme="90s"] .tabs {
  flex-wrap: wrap;
  gap: 3px;
  border-bottom: 5px double navy;
}

:root[data-theme="90s"] .tabs a, :root[data-theme="90s"] .tabs a[aria-current] {
  padding: 8px 10px;
  border: 4px outset #4b00a5;
  background: #00ffff;
  color: navy;
  font-family: "Courier New", monospace;
  text-decoration: underline;
  text-transform: uppercase;
}

:root[data-theme="90s"] .tabs a[aria-current] {
  background: #ff81da;
  border-style: inset;
}

:root[data-theme="90s"] h2 { color: #44006c; font-family: Georgia, serif; text-decoration: underline wavy #b50065; }
:root[data-theme="90s"] h3, :root[data-theme="90s"] h4 { color: #790047; font-family: "Times New Roman", serif; font-style: italic; }
:root[data-theme="90s"] .section-head > div, :root[data-theme="90s"] .board-footer { background: #caff00; padding: 6px 9px; }
:root[data-theme="90s"] .section-head p, :root[data-theme="90s"] .panel-heading p, :root[data-theme="90s"] .empty p, :root[data-theme="90s"] .byline, :root[data-theme="90s"] small { color: #510034; }

:root[data-theme="90s"] .primary, :root[data-theme="90s"] .ghost, :root[data-theme="90s"] .vote, :root[data-theme="90s"] .button-link {
  border: 4px outset #8220ca;
  border-radius: 0;
  background: linear-gradient(#fbbfff, #ff78ce 48%, #cfff00 52%, #ffff00);
  color: #28003f;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

:root[data-theme="90s"] .primary:hover, :root[data-theme="90s"] .ghost:hover, :root[data-theme="90s"] .vote:hover, :root[data-theme="90s"] .vote[aria-pressed=true], :root[data-theme="90s"] .vote[aria-pressed=true]:hover {
  border-color: #6d00bd;
  background: #14ffff;
  color: #320044;
}

:root[data-theme="90s"] .primary:active, :root[data-theme="90s"] .ghost:active, :root[data-theme="90s"] .vote:active { border-style: inset; }
:root[data-theme="90s"] .text-button { color: #2600a0; }
:root[data-theme="90s"] .empty-icon { border: 5px groove #d50093; background: #fffe00; color: #520086; }

:root[data-theme="90s"] .card, :root[data-theme="90s"] .empty, :root[data-theme="90s"] .panel, :root[data-theme="90s"] dialog {
  border: 6px ridge #8600ce;
  border-radius: 0;
  background: #80ffff;
  box-shadow: 5px 5px #e90078;
}

:root[data-theme="90s"] .card:nth-child(3n + 2) { background: #cfff00; }
:root[data-theme="90s"] .card:nth-child(3n + 3), :root[data-theme="90s"] .panel:nth-of-type(even) { background: #ffb5e7; }
:root[data-theme="90s"] .notes { color: #47005f; }
:root[data-theme="90s"] .chip, :root[data-theme="90s"] .counts span { background: #fcff00; color: navy; border: 2px dashed #9a009a; border-radius: 0; }
:root[data-theme="90s"] .cover { border: 2px inset #a100d2; border-radius: 0; background: #fd55b6; }
:root[data-theme="90s"] .cover-choice { background: #d5ff53; border: 3px outset #7200d3; border-radius: 0; }
:root[data-theme="90s"] dialog::backdrop { background: rgb(104 0 222 / 45%); }
:root[data-theme="90s"] fieldset { border: 3px groove #ae00a3; background: #fff8aa; }
:root[data-theme="90s"] input, :root[data-theme="90s"] textarea, :root[data-theme="90s"] select { border: 3px inset #bb00b1; border-radius: 0; background: #fffea1; color: #210059; }
:root[data-theme="90s"] #notice { color: #24003b; background: #b8ff00; border: 3px dotted #7600b1; border-radius: 0; }
:root[data-theme="90s"] #notice.error, :root[data-theme="90s"] .form-error { background: #940043; color: white; }

:root[data-theme="90s"] .schedule-scroll { border: 5px ridge #8600ce; border-radius: 0; }
:root[data-theme="90s"] .timeline { background: #ffffb3; }
:root[data-theme="90s"] .time-heading, :root[data-theme="90s"] .room-heading { background: #ff9be1; color: #42005d; }
:root[data-theme="90s"] .room-heading:nth-child(even) { background: #7dff00; }
:root[data-theme="90s"] .room-heading a { color: #310099; }
:root[data-theme="90s"] .time-cell { background: #ffeb00; color: #3e0066; font-family: "Courier New", monospace; }
:root[data-theme="90s"] .grid-cell:nth-child(even) { background: #ffdfef; }

:root[data-theme="90s"] .slot {
  border-left-color: #5400b5;
  border-radius: 0;
  background: #ff91d8;
  color: #2b0042;
  font-family: "Courier New", monospace;
}

:root[data-theme="90s"] .slot.room-1 { border-color: #301292; background: #2ffcff; }
:root[data-theme="90s"] .slot.room-2 { border-color: #7f1700; background: #ffc067; }
:root[data-theme="90s"] .slot.room-3 { border-color: #4d00b0; background: #c9ff4a; }
:root[data-theme="90s"] .slot.shared { border-color: #9b0062; background: #fffb00; }
:root[data-theme="90s"] .editing .grid-cell.drop-ready { outline: 3px dashed #5200a8; outline-offset: -3px; background: #75ff00; }
:root[data-theme="90s"] .library { border: 5px groove #bb009a; border-radius: 0; background: #ffaee9; }
:root[data-theme="90s"] .library h4 { background: #ffff00; }
:root[data-theme="90s"] .library-game { border: 3px outset #aa00d2; border-radius: 0; background: #35ffff; }
:root[data-theme="90s"] .library-game:nth-child(even) { background: #ceff00; }
:root[data-theme="90s"] .library-game:hover, :root[data-theme="90s"] .library-game:focus-visible { border-color: #a00052; }
:root[data-theme="90s"] .library-total { color: #820043; }

@media (max-width: 650px) {
  :root[data-theme="90s"] h1 { font-size: clamp(2.25rem, 10vw, 4rem); }
  :root[data-theme="90s"] .hero { padding: 19px; }
}

.cover-source { margin-top: 11px; padding-top: 8px; border-top: 1px solid var(--line); }
.cover-source-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; }
.cover-source-heading a { font-size: .78rem; text-underline-offset: 3px; }
.cover-choice[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
:root[data-theme="90s"] .cover-choice[aria-pressed="true"] { outline-color: #2400cc; }

:root[data-theme="dark-night"] {
  --bg: #191919;
  --surface: #202020;
  --line: #282828;
  --text: #343434;
  --muted: #303030;
  --accent: #404040;
  --ink: #292929;
  --raised: #252525;
  --inset: #1c1c1c;
  --hero-start: #1e1e1e;
  --hero-end: #242424;
  --slot-tint: #222222;
  --slot-alt: #252525;
  --hover: #292929;
}

:root[data-theme="play-station"] {
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --bg: #08122a;
  --surface: #172644;
  --line: #52688d;
  --text: #f3f7ff;
  --muted: #b7cdf0;
  --accent: #b3d6ff;
  --ink: #102341;
  --raised: #263a5e;
  --inset: #101d37;
  --hero-start: #172a57;
  --hero-end: #254f95;
  --slot-tint: #234479;
  --slot-alt: #335a85;
  --hover: #38577f;
}

:root[data-theme="pc-master-race"] {
  font-family: Arial, Helvetica, sans-serif;
  --bg: #142232;
  --surface: #1b2b3b;
  --line: #3d5d77;
  --text: #ecf6ff;
  --muted: #a9bfd4;
  --accent: #73caff;
  --ink: #0b2336;
  --raised: #203b54;
  --inset: #0f1b27;
  --hero-start: #142839;
  --hero-end: #234862;
  --slot-tint: #214764;
  --slot-alt: #345062;
  --hover: #314e66;
}

:root[data-theme]:not([data-theme="90s"]) :is(.top, .hero-details, .time-heading, .room-heading) { background: var(--raised); border-color: var(--line); }
:root[data-theme]:not([data-theme="90s"]) .hero { background: linear-gradient(115deg, var(--hero-start), var(--hero-end)); border-color: var(--line); }
:root[data-theme]:not([data-theme="90s"]) .hero::after { content: none; }
:root[data-theme]:not([data-theme="90s"]) :is(.intro, #event-hours, .notes, .chip, .counts span, .text-button) { color: var(--text); }
:root[data-theme]:not([data-theme="90s"]) .mark { color: var(--ink); }
:root[data-theme]:not([data-theme="90s"]) :is(.empty-icon, .chip, .counts span, .library-game, .cover-choice, .cover) { background: var(--raised); border-color: var(--line); }
:root[data-theme]:not([data-theme="90s"]) :is(dialog, .empty, input, textarea, select) { border-color: var(--line); }
:root[data-theme]:not([data-theme="90s"]) :is(input, textarea, select, .library) { background: var(--inset); }
:root[data-theme]:not([data-theme="90s"]) .card-region { color: var(--muted); }
:root[data-theme]:not([data-theme="90s"]) :is(.primary, .vote[aria-pressed=true]) { color: var(--ink); }
:root[data-theme]:not([data-theme="90s"]) :is(.primary:hover, .vote[aria-pressed=true]:hover) { background: var(--text); }
:root[data-theme]:not([data-theme="90s"]) :is(.ghost, .vote:not([aria-pressed=true])) { background: var(--raised); }
:root[data-theme]:not([data-theme="90s"]) :is(.ghost:hover, .vote:not([aria-pressed=true]):hover) { background: var(--hover); border-color: var(--accent); }
:root[data-theme]:not([data-theme="90s"]) .slot { background: var(--slot-tint); border-color: var(--accent); color: var(--text); }
:root[data-theme]:not([data-theme="90s"]) :is(.slot.room-1, .slot.room-3) { background: var(--slot-alt); border-color: var(--muted); }
:root[data-theme]:not([data-theme="90s"]) .slot.room-2 { background: var(--hover); border-color: var(--accent); }
:root[data-theme]:not([data-theme="90s"]) .slot.shared { background: var(--raised); border-color: var(--accent); }
:root[data-theme]:not([data-theme="90s"]) .editing :is(.grid-cell, .time-cell) { border-bottom-color: var(--line); }
:root[data-theme]:not([data-theme="90s"]) .editing .grid-cell.drop-ready { background: var(--hover); }
:root[data-theme]:not([data-theme="90s"]) #notice { background: var(--raised); color: var(--text); }

:root[data-theme="dark-night"] :is(#notice.error, .form-error, .danger) { background: #242424; color: #383838; }

:root[data-theme="play-station"] .hero {
  background: radial-gradient(ellipse at 80% 10%, #3868b0, transparent 62%), linear-gradient(115deg, var(--hero-start), var(--hero-end));
  box-shadow: 0 15px 48px #020a1da6;
}
:root[data-theme="play-station"] h1 { font-weight: 500; letter-spacing: -.065em; }
:root[data-theme="play-station"] :is(.primary, .ghost, .vote, .button-link) { border-radius: 24px; }
:root[data-theme="play-station"] :is(.card, .panel, dialog) { box-shadow: 0 8px 24px #040d2380; }

:root[data-theme="pc-master-race"] :is(.hero, .top, .card, .panel, .schedule-scroll, .primary, .ghost, .vote, .slot, .cover, .library, .library-game) {
  border-radius: 2px;
}
:root[data-theme="pc-master-race"] .top { background: #101b28; }
:root[data-theme="pc-master-race"] .hero { border-top: 3px solid #4487ad; }
:root[data-theme="pc-master-race"] h1 { font-weight: 650; letter-spacing: -.055em; }
:root[data-theme="pc-master-race"] .primary { background: linear-gradient(105deg, #84d8ff, #62abd7); }

.proposal-actions { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.proposal-actions .text-button { font-size: .85rem; }
:root[data-theme="boring"] .hero {
  background: radial-gradient(ellipse at 90% 0%, #67418c, transparent 64%), linear-gradient(115deg, var(--hero-start), var(--hero-end));
}
:root[data-theme="boring"] .hero::after {
  content: "";
  background: radial-gradient(circle, #dfbaff 1px, transparent 1.5px) 0 0 / 17px 17px;
}
:root[data-theme="dark-night"] .cover { filter: grayscale(1) brightness(.24); }
:root[data-theme="dark-night"] :focus-visible { outline-color: #6a6a6a; }

:root[data-theme="desert"] {
  color-scheme: light;
  font-family: "Avenir Next", system-ui, sans-serif;
  --bg: #f7ead5;
  --surface: #fff6e6;
  --line: #c59670;
  --text: #42261a;
  --muted: #704934;
  --accent: #934221;
  --ink: #fff4e1;
  --raised: #efcfaa;
  --inset: #fbecd5;
  --hero-start: #eecc9f;
  --hero-end: #e9a879;
  --slot-tint: #f5d5ae;
  --slot-alt: #eed7b9;
  --hover: #edb88f;
}
:root[data-theme="desert"] .hero {
  background:
    radial-gradient(ellipse 65% 28% at 14% 110%, #c8835c 99%, transparent),
    radial-gradient(ellipse 80% 49% at 90% 121%, #d69b72 99%, transparent),
    radial-gradient(circle at 84% 26%, #ffebbf 0 7%, transparent 7.5%),
    linear-gradient(128deg, #ffebca, #eab07f 90%);
}
:root[data-theme="desert"] h1 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.075em; }
:root[data-theme="desert"] .hero-details { background: #fff7e5; }
:root[data-theme="desert"] .cover-source { border-color: #bf8d69; }

:root[data-theme="phoenix"] {
  --bg: #200e11;
  --surface: #321519;
  --line: #93412c;
  --text: #fff1e4;
  --muted: #ffba96;
  --accent: #ff9c53;
  --ink: #351009;
  --raised: #521e20;
  --inset: #260c13;
  --hero-start: #511121;
  --hero-end: #9c2d17;
  --slot-tint: #632322;
  --slot-alt: #773324;
  --hover: #843322;
}
:root[data-theme="phoenix"] .top { border-bottom-color: #c8562a; }
:root[data-theme="phoenix"] .hero {
  background:
    linear-gradient(110deg, #390f1c 13%, transparent 87%),
    repeating-linear-gradient(145deg, #811e23 0 12px, #b83921 12px 15px, transparent 15px 41px),
    radial-gradient(ellipse at 100% 0%, #ff922c, var(--hero-end) 44%, var(--hero-start) 84%);
  box-shadow: 0 12px 42px #fa35182c;
  border-color: #d75b33;
}
:root[data-theme="phoenix"] h1 {
  font-weight: 850;
  letter-spacing: -.07em;
  text-shadow: 3px 3px #9c2619, 5px 5px #541320;
}
:root[data-theme="phoenix"] .primary { background: linear-gradient(100deg, #ffbd64, #ff8251); }
:root[data-theme="phoenix"] .card { border-top: 2px solid #cc6335; }
:root[data-theme="desert"] .danger { color: #8b231d; }
