:root[data-theme="blue"] {
  color-scheme: dark;
  --bg: #10284a;
  --ink: #eaf3ff;
  --muted: #b3cced;
  --blue: #8fc8ff;
  --deep: #f4f8ff;
  --line: #335783;
  --soft: #214b80;
  --blue-panel: #193b66;
  --blue-raised: #204675;
  --blue-highlight: #214b80;
  --blue-control: #24548c;
}

:where(:root[data-theme="blue"]) body {
  background:
    radial-gradient(ellipse 110% 49% at 103% 5%, #ecf8ff33 0%, transparent 69%),
    linear-gradient(151deg, transparent 18%, #f3faff15 24%, #f3faff35 28%, #f3faff12 34%, transparent 43%),
    linear-gradient(164deg, transparent 53%, #e2f3ff26 62%, #f8fcff16 65%, transparent 73%),
    radial-gradient(ellipse at 85% 12%, #2d6096 0%, transparent 60%), var(--bg);
}
:where(:root[data-theme="blue"]) body::before { opacity: .085; }
:where(:root[data-theme="blue"]) .top {
  background:
    linear-gradient(157deg, transparent 34%, #edf8ff16 42%, #f1f9ff42 52%, #f1f9ff1b 57%, transparent 68%),
    radial-gradient(ellipse 65% 130% at 92% -10%, #edf8ff4a, transparent 74%),
    linear-gradient(118deg,#10294d,#19447b 58%,#2b5f97);
  border-color: #4678b1;
  box-shadow: 0 4px 24px #040e2280;
}
:where(:root[data-theme="blue"]) .top nav { background: #0b2447; border-color: #4974a6; }
:where(:root[data-theme="blue"]) .top nav a { color: #d3e6ff; }
:where(:root[data-theme="blue"]) .top nav a[aria-current] { background: #2d62a1; color: #fff; }
:where(:root[data-theme="blue"]) .top nav a:hover { background: #214b80; color: #fff; }

:where(:root[data-theme="blue"]) .card, :where(:root[data-theme="blue"]) dialog, :where(:root[data-theme="blue"]) .placeholder, :where(:root[data-theme="blue"]) .gallery-tile, :where(:root[data-theme="blue"]) .gallery-open { background: var(--blue-panel); }
:where(:root[data-theme="blue"]) .event { background: linear-gradient(155deg,#255489,#183a63); }
:where(:root[data-theme="blue"]) .card-header { background: linear-gradient(155deg,transparent 34%,#eaf6ff25 53%,#eaf6ff12 61%,transparent 76%),linear-gradient(110deg,#225087,#193b66); border-top-color: #578fca; }
:where(:root[data-theme="blue"]) .archive-item { border-top-color: #578fca; }
:where(:root[data-theme="blue"]) .event-row, :where(:root[data-theme="blue"]) td, :where(:root[data-theme="blue"]) .matrix tbody th { border-bottom-color: #294b75; }
:where(:root[data-theme="blue"]) .event-row .icon, :where(:root[data-theme="blue"]) .winner .icon, :where(:root[data-theme="blue"]) .team.own, :where(:root[data-theme="blue"]) .standings .points { color: #9ed0ff; }
:where(:root[data-theme="blue"]) .event-note { background: #1d4471; border-color: #4e7db4; border-left-color: #8fc8ff; }
:where(:root[data-theme="blue"]) .progress, :where(:root[data-theme="blue"]) .team-mark, :where(:root[data-theme="blue"]) .podium-trophy { background: #234d7e; color: #c5e1ff; }
:where(:root[data-theme="blue"]) .winner, :where(:root[data-theme="blue"]) .playoff-match, :where(:root[data-theme="blue"]) .roster-grid li, :where(:root[data-theme="blue"]) .gallery-status { background: var(--blue-raised); }
:where(:root[data-theme="blue"]) .gallery-thumb { background: #1e4b80; }

:where(:root[data-theme="blue"]) .button { background: #1d4777; }
:where(:root[data-theme="blue"]) .button:hover, :where(:root[data-theme="blue"]) .portrait-button:hover { background: var(--blue-control); }
:where(:root[data-theme="blue"]) .button.primary { background: #285fa6; border-color: #6496cf; }
:where(:root[data-theme="blue"]) .button.primary:hover { background: #3473bf; }
:where(:root[data-theme="blue"]) .button.add { background: #24548c; border-color: #75a2d3; }
:where(:root[data-theme="blue"]) .button.danger { background: #863348; border-color: #b06072; }
:where(:root[data-theme="blue"]) .button.danger:hover { background: #a14358; }
:where(:root[data-theme="blue"]) .archive-trash { color: #ffc0ca; }
:where(:root[data-theme="blue"]) .archive-trash:hover { background: #67354c; border-color: #a35f74; }
:where(:root[data-theme="blue"]) .portrait-button { background: #1c4372; border-color: #6995c6; }

:where(:root[data-theme="blue"]) .switch { background: #0b2549; }
:where(:root[data-theme="blue"]) .switch button[aria-pressed=true] { color: #fff; background: #2a5790; }
:where(:root[data-theme="blue"]) select { background-color: #102b4f; background-image: linear-gradient(45deg,transparent 50%,#b3cced 50%),linear-gradient(135deg,#b3cced 50%,transparent 50%); }
:where(:root[data-theme="blue"]) thead, :where(:root[data-theme="blue"]) .matrix th:first-child { background: #205085; color: #f2f7ff; }
:where(:root[data-theme="blue"]) .match-table .round td { background: #214b78; color: #d4e9ff; }
:where(:root[data-theme="blue"]) .match-table .club-row, :where(:root[data-theme="blue"]) .standings .club-row, :where(:root[data-theme="blue"]) .matrix .club-row th { background: #1c487b; }
:where(:root[data-theme="blue"]) .standings .cutoff td { border-bottom-color: #79abe0; }
:where(:root[data-theme="blue"]) .matrix tbody th { background: var(--blue-panel); }
:where(:root[data-theme="blue"]) .matrix .diagonal { background: #0c264a; }
:where(:root[data-theme="blue"]) .score.filled { background: #194f48; color: #c7f3db; border-color: #548d7d; }

:where(:root[data-theme="blue"]) .dialog-header, :where(:root[data-theme="blue"]) .dialog-footer { background: #163963; }
:where(:root[data-theme="blue"]) .field input, :where(:root[data-theme="blue"]) .field textarea, :where(:root[data-theme="blue"]) .field select, :where(:root[data-theme="blue"]) .edit-table input, :where(:root[data-theme="blue"]) .edit-table select, :where(:root[data-theme="blue"]) .score-inputs input { background-color: #0b284c; border-color: #4e78a7; }
:where(:root[data-theme="blue"]) .import-box { background: #193e6d; border-color: #6b97c7; }
:where(:root[data-theme="blue"]) .import-box input::file-selector-button { background: #214b80; border-color: #6a92bc; }
:where(:root[data-theme="blue"]) .error, :where(:root[data-theme="blue"]) .gallery-queue .upload-error span { color: #ffb3bd !important; }

:where(:root[data-theme="blue"]) .podium { background: linear-gradient(105deg,#1d4879,#12325a); border-top-color: #78a9df; }
:where(:root[data-theme="blue"]) .podium-place-1 { --medal-background:#4b3a1d; --medal-border:#e8c366; --medal-text:#312400; }
:where(:root[data-theme="blue"]) .podium-place-2 { --medal-background:#2c415d; --medal-border:#b5cce8; --medal-text:#1b324e; }
:where(:root[data-theme="blue"]) .podium-place-3 { --medal-background:#50372b; --medal-border:#e7b193; --medal-text:#422418; }
