/* Secular New Year palette: midnight, champagne, and a restrained coral accent. */
:root {
  color-scheme: dark;
  --teal: #151b3b;
  --teal-2: #282d56;
  --cream: #f2ce78;
  --orange: #ee8d78;
  --ink: #f5f1e8;
  --muted: #bbc1d1;
  --paper: #0b1024;
  --line: rgba(242, 206, 120, .24);
  --seafoam: #202644;
}

html,
body {
  background-color: var(--paper);
}

body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(101, 79, 158, .22), transparent 38rem),
    radial-gradient(ellipse at 92% 32%, rgba(221, 123, 103, .12), transparent 32rem),
    linear-gradient(180deg, #0b1024 0%, #111730 55%, #0b1024 100%);
  background-attachment: fixed;
}

:focus-visible {
  outline-color: var(--cream);
}

.site-header {
  color: #f8f4eb;
  background: rgba(9, 14, 33, .97);
  border-bottom: 1px solid rgba(242, 206, 120, .28);
}

.site-header .brand {
  color: #f8f4eb;
}

.header-links a,
.language-switch button {
  border-color: rgba(242, 206, 120, .38);
}

.language-switch button[aria-pressed="true"] {
  color: #171b34;
  background: var(--cream);
  border-color: var(--cream);
}

/* The shared site navigation is only restyled on the tournament page. */
.site-header.cy-site-header .cy-global-nav ul li a {
  color: #f5f1e8 !important;
  background: rgba(255, 255, 255, .055) !important;
  background-image: none !important;
  border: 1px solid rgba(242, 206, 120, .28) !important;
  box-shadow: none !important;
}

.site-header.cy-site-header .cy-global-nav ul li a:hover,
.site-header.cy-site-header .cy-global-nav ul li a.nav-current {
  color: #151b3b !important;
  background: var(--cream) !important;
  border-color: var(--cream) !important;
}

.site-header.cy-site-header .cy-global-nav ul li a.nav-support-button,
.site-header.cy-site-header .cy-global-nav ul li a.nav-support-button:hover {
  color: #171b34 !important;
  background: var(--orange) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, .52) !important;
}

.site-header.cy-site-header .cy-menu-toggle,
.site-header.cy-site-header .cy-menu-toggle:hover {
  color: #171b34 !important;
  background: var(--cream) !important;
  border-color: rgba(255, 255, 255, .55) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24) !important;
}

.hero {
  isolation: isolate;
  border: 1px solid rgba(242, 206, 120, .34);
  background:
    radial-gradient(ellipse at 86% 18%, rgba(238, 141, 120, .24), transparent 34%),
    radial-gradient(ellipse at 15% 100%, rgba(133, 111, 193, .22), transparent 45%),
    linear-gradient(128deg, #151b3b 0%, #202248 58%, #2b2447 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), 0 0 0 1px rgba(255, 255, 255, .025);
}

.hero::before {
  opacity: .8;
  background:
    radial-gradient(circle, #f2ce78 0 1.6px, transparent 2.6px) 8% 23% / 8px 8px no-repeat,
    radial-gradient(circle, #ee8d78 0 1.6px, transparent 2.6px) 25% 72% / 8px 8px no-repeat,
    radial-gradient(circle, #f2ce78 0 1.6px, transparent 2.6px) 72% 16% / 8px 8px no-repeat,
    radial-gradient(circle, #f2ce78 0 1.6px, transparent 2.6px) 91% 70% / 8px 8px no-repeat,
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(242, 206, 120, .54) 0deg 1deg, transparent 1deg 23deg) 81% 20% / 60px 60px no-repeat,
    radial-gradient(circle, #f2ce78 0 2px, transparent 3px) 81% 20% / 60px 60px no-repeat,
    linear-gradient(35deg, transparent 42%, rgba(238, 141, 120, .9) 43% 58%, transparent 59%) 17% 42% / 4px 13px no-repeat,
    linear-gradient(125deg, transparent 42%, rgba(242, 206, 120, .9) 43% 58%, transparent 59%) 68% 80% / 4px 13px no-repeat;
}

.hero::after {
  border-color: rgba(242, 206, 120, .38);
  box-shadow:
    0 0 0 38px rgba(242, 206, 120, .055),
    0 0 0 78px rgba(157, 135, 209, .055),
    0 0 58px rgba(238, 141, 120, .12);
}

.hero .eyebrow {
  color: var(--cream);
}

.hero-copy {
  color: #d6d8e2;
}

.hero-note {
  color: #f6d98e;
  border-color: rgba(242, 206, 120, .55);
  background: radial-gradient(circle, rgba(242, 206, 120, .1), transparent 68%);
  box-shadow: 0 0 44px rgba(242, 206, 120, .08);
}

.hero-note::before {
  background: repeating-conic-gradient(from 5deg, rgba(242, 206, 120, .75) 0deg 1deg, transparent 1deg 30deg);
}

.status-bar {
  color: #ebe9e4;
  background: #171e39;
  border: 1px solid rgba(242, 206, 120, .17);
  border-left: 3px solid var(--cream);
}

.status-bar strong,
.countdown h2,
.section-heading h2,
.round-title,
.screen-head h1,
.screen-head .eyebrow,
.admin-card h2,
.admin-card h3,
.metric,
.data-table th,
.privacy-copy h2 {
  color: var(--cream);
}

.status-dot {
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(242, 206, 120, .14);
}

.status-dot.live {
  background: #82d1ae;
  box-shadow: 0 0 0 4px rgba(130, 209, 174, .16);
}

.demo-ribbon {
  color: #ffd7ca;
  background: rgba(238, 141, 120, .1);
  border-color: rgba(238, 141, 120, .42);
}

.countdown {
  color: #f5f1e8;
  background:
    radial-gradient(circle at 95% 12%, rgba(242, 206, 120, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 8% 88%, rgba(238, 141, 120, .17) 0 2px, transparent 3px),
    linear-gradient(115deg, #1c2345 0%, #25274b 58%, #302748 100%);
  border: 1px solid rgba(242, 206, 120, .35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.countdown p,
.time-unit span,
.section-heading p,
.round-title small {
  color: var(--muted);
}

.time-unit {
  background: rgba(8, 13, 32, .48);
  border-color: rgba(242, 206, 120, .2);
}

.time-unit b {
  color: #f6d98e;
}

.time-colon {
  color: var(--orange);
}

.bracket-wrap {
  scrollbar-color: #8c77b2 transparent;
}

.round-title {
  border-color: rgba(242, 206, 120, .25);
}

.round-title.current {
  border-color: var(--orange);
}

.match-card {
  color: var(--ink);
  background: #171e39;
  border-color: rgba(242, 206, 120, .2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.match-card.current {
  border-color: var(--cream);
  box-shadow: 0 0 0 1px rgba(242, 206, 120, .15), 0 10px 30px rgba(0, 0, 0, .22);
}

.match-card.completed {
  background: #19263a;
}

.match-meta,
.match-foot {
  color: #c1c5d2;
  border-color: rgba(255, 255, 255, .09);
}

.match-meta {
  border-bottom-color: rgba(255, 255, 255, .09);
}

.match-foot {
  background: rgba(8, 13, 32, .36);
}

.word-option {
  color: #f5f1e8;
}

.word-option + .word-option {
  border-top-color: rgba(255, 255, 255, .1);
}

.word-option:hover:not(:disabled) {
  background: rgba(242, 206, 120, .1);
}

.word-option.winner {
  color: #f6d98e;
  background: rgba(242, 206, 120, .12);
}

.word-meaning,
.word-mark {
  color: #c1c5d2;
}

.match-cta {
  color: #f6d98e;
}

.match-cta:hover {
  background: rgba(238, 141, 120, .12);
}

.champion-card {
  color: #1a1d37;
  background: linear-gradient(135deg, #f3d98f, #e9b965 55%, #f0a37d);
  box-shadow: 0 18px 50px rgba(223, 176, 95, .18);
}

.champion-card .laurel {
  color: #6d4e6f;
}

.champion-card p {
  color: #40394d;
}

.champion-card .text-link {
  color: #252143;
}

.info-card,
.admin-card {
  color: var(--ink);
  background: #171e39;
  border: 1px solid rgba(242, 206, 120, .18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.info-card h2 {
  color: var(--cream);
}

.info-card p,
.info-card li,
.check-label,
.privacy-copy {
  color: #c7cad5;
}

.text-link,
.site-footer a {
  color: #f2ce78;
}

.button {
  color: #171b34;
  background: var(--cream);
  border-color: var(--cream);
  box-shadow: 0 5px 16px rgba(242, 206, 120, .15);
}

.button:hover {
  color: #10152e;
  background: #ffdc8a;
}

.button.secondary {
  color: #f4d88e;
  background: rgba(255, 255, 255, .025);
  border-color: rgba(242, 206, 120, .55);
}

.button.secondary:hover:not(:disabled) {
  color: #fff2ce;
  background: rgba(242, 206, 120, .12);
}

.button.accent {
  color: #171b34;
  background: var(--orange);
  border-color: var(--orange);
}

.site-footer {
  color: #c1c5d2;
  background: #080d20;
  border-top: 1px solid rgba(242, 206, 120, .22);
}

.modal-backdrop {
  background: rgba(4, 7, 19, .78);
}

.modal,
.choice-card,
.field input,
.field select,
.toolbar input,
.toolbar select,
.picker-slot,
.dictionary-entry {
  color: var(--ink);
  background: #151c36;
  border-color: rgba(242, 206, 120, .28);
}

.modal h2,
.choice-card strong,
.field label,
.picker-slot strong,
.dictionary-entry strong,
.icon-button {
  color: var(--cream);
}

.modal p,
.choice-card span,
.metric-label {
  color: #c1c5d2;
}

.choice-card.selected {
  background: rgba(242, 206, 120, .12);
  border-color: var(--cream);
}

.icon-button {
  background: #202644;
}

.form-note {
  color: #d1f0df;
  background: #18352f;
}

.form-error,
.error-panel {
  color: #ffd1c5 !important;
  background: #442b36;
}

.error-panel,
.empty-panel {
  color: #f6d98e;
  background: #171e39;
  border: 1px solid rgba(242, 206, 120, .2);
}

.danger-zone {
  border-color: rgba(238, 141, 120, .48);
  background: rgba(103, 45, 54, .3);
}

.readiness-list li,
.plain-list li,
.data-table th,
.data-table td {
  border-color: rgba(255, 255, 255, .12);
}

.check-state {
  color: #281c31;
  background: #f0b3a0;
}

.check-state.ok {
  color: #10271f;
  background: #8bd3b2;
}

.sign-in-panel {
  border: 1px solid rgba(242, 206, 120, .32);
  background: linear-gradient(135deg, #171e39, #282448);
}

.sign-in-panel p {
  color: #d0d3de;
}

.skeleton {
  background: linear-gradient(100deg, #161d38 25%, #252b4c 42%, #161d38 60%);
}

.toast {
  color: #171b34;
  background: #f2ce78;
}

.toast.error {
  color: #fff0ea;
  background: #873f4d;
}

.music-toggle {
  color: var(--cream);
  border-color: rgba(242, 206, 120, .48);
}

.music-toggle[aria-pressed="true"] {
  color: #f8df9d;
  background: rgba(242, 206, 120, .16);
  border-color: rgba(242, 206, 120, .72);
}

.page-header .music-toggle {
  color: var(--cream);
  background: rgba(242, 206, 120, .1);
  border-color: rgba(242, 206, 120, .42);
}

.page-header .music-toggle[aria-pressed="true"] {
  color: #f8df9d;
  background: rgba(242, 206, 120, .2);
  border-color: rgba(242, 206, 120, .76);
}

/* Match the site footer's injected colors to this page without changing other pages. */
.cy-footer {
  background: linear-gradient(135deg, #0b1024 0%, #171e39 55%, #292448 100%) !important;
  border-top: 1px solid rgba(242, 206, 120, .3) !important;
}

.cy-submit-section {
  color: #171b34 !important;
  background: linear-gradient(120deg, #e8bd67, #f1d48b 58%, #eea183) !important;
}

.cy-submit-section h3,
.cy-submit-section .cy-submit-sub {
  color: #171b34 !important;
}

.cy-footer .cy-footer-socials a:hover {
  background: #ee8d78 !important;
}

.cy-footer .cy-submit-section .cy-submit-sub,
.cy-footer .cy-submit-section h3 {
  color: #171b34 !important;
}

.cy-footer .cy-submit-form button {
  color: #f2ce78 !important;
  background: #151b3b !important;
}

.cy-footer .cy-footer-col h4 {
  color: #f2ce78 !important;
  border-bottom-color: rgba(242, 206, 120, .55) !important;
}

.cy-footer .cy-footer-linktree {
  color: #171b34 !important;
  background: #f2ce78 !important;
}

.cy-footer .cy-footer-support .cy-support-btn {
  color: #f5e3b7 !important;
  background: rgba(242, 206, 120, .12) !important;
  border: 1px solid rgba(242, 206, 120, .34) !important;
}

.cy-footer .cy-footer-socials a {
  color: #f2ce78 !important;
  background: rgba(242, 206, 120, .1) !important;
  border: 1px solid rgba(242, 206, 120, .22);
}

/* The separately served no-voting teaser shares the same seasonal palette. */
.page-header {
  color: #f5f1e8;
}

.page-header .brand {
  color: #f2ce78;
}

.language-picker {
  background: rgba(21, 28, 54, .86);
  border-color: rgba(242, 206, 120, .3);
}

.language-picker button {
  color: #c1c5d2;
}

.language-picker button[aria-pressed="true"] {
  color: #171b34;
  background: #f2ce78;
}

.coming-card {
  isolation: isolate;
  border: 1px solid rgba(242, 206, 120, .38);
  border-top: 4px solid #ee8d78;
  background:
    radial-gradient(circle at 96% 10%, rgba(242, 206, 120, .13), transparent 12rem),
    linear-gradient(140deg, #171e39, #242448 72%, #302649);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.coming-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(242, 206, 120, .95) 0 1.5px, transparent 2.5px) 8% 24% / 8px 8px no-repeat,
    radial-gradient(circle, rgba(238, 141, 120, .9) 0 1.5px, transparent 2.5px) 87% 36% / 8px 8px no-repeat,
    radial-gradient(circle, rgba(242, 206, 120, .8) 0 1.5px, transparent 2.5px) 76% 82% / 8px 8px no-repeat,
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(242, 206, 120, .36) 0deg 1deg, transparent 1deg 24deg) 89% 18% / 52px 52px no-repeat,
    radial-gradient(circle, #f2ce78 0 2px, transparent 3px) 89% 18% / 52px 52px no-repeat;
  content: "";
  pointer-events: none;
}

.coming-card::after {
  border-color: rgba(242, 206, 120, .24);
  box-shadow: 0 0 0 22px rgba(151, 130, 196, .06);
}

.coming-card .eyebrow {
  color: #f2ce78;
}

.coming-card h1 {
  color: #fff1d0;
}

.coming-card .intro {
  color: #d1d4df;
}

.format span {
  color: #f5e3b7;
  background: rgba(8, 13, 32, .42);
  border-color: rgba(242, 206, 120, .35);
}

.coming-card .status {
  color: #f7e7c8;
  background: rgba(8, 13, 32, .42);
  border-left-color: #f2ce78;
}

.page-links a {
  color: #f2ce78;
}

.page-links a:hover {
  color: #eea183;
}

body > footer {
  color: #bbc1d1;
}

@media (max-width: 600px) {
  .site-header.cy-site-header .cy-global-nav ul li a {
    border-color: rgba(242, 206, 120, .24) !important;
  }
}
