:root {
  --ink: #0a0a0b;
  --ink-2: #3f3f46;
  --ink-3: #52525b;
  --muted: #66666f;
  --faint: #686870;
  --line: #e7e7ea;
  --line-2: #d6d6db;
  --line-3: #b9b9c0;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-sunken: #f4f4f5;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(9, 9, 11, 0.05);
  --shadow-2: 0 6px 20px -8px rgba(9, 9, 11, 0.18);
  --shadow-3: 0 18px 40px -20px rgba(9, 9, 11, 0.28);
  --maxw: 1140px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --ink-3: #a1a1aa;
  --muted: #a1a1aa;
  --faint: #94949d;
  --line: #2f2f35;
  --line-2: #3f3f46;
  --line-3: #52525b;
  --bg: #101011;
  --bg-soft: #18181b;
  --bg-sunken: #242428;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .28);
  --shadow-2: 0 8px 24px -10px rgba(0, 0, 0, .65);
  --shadow-3: 0 18px 40px -20px rgba(0, 0, 0, .75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); }
h3 { font-size: 1.05rem; }

p { margin: 0; }

button,
select,
input {
  font: inherit;
  color: inherit;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

svg {
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ---------------------------------------------------------------- Theme control */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  padding: 0;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--line-3);
  color: var(--ink);
}

.theme-toggle-icon { display: inline-flex; }
.theme-icon-dark { display: none; }

:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline-flex; }

/* ---------------------------------------------------------------- Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-xs);
  background: var(--ink);
  color: #fff;
}

.brand-name {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.94rem;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-link:hover {
  background: var(--bg-sunken);
  color: var(--ink);
  text-decoration: none;
}

.nav-link.active {
  background: var(--bg-sunken);
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  background: #fff;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-sunken);
}

.nav-fed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg-soft);
  color: var(--ink-3);
  font-size: 0.86rem;
}

.nav-fed-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--muted);
}

.nav-fed select {
  border: 0;
  background: transparent;
  padding: 4px 4px;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  max-width: 190px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 550;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.05s var(--ease);
}

.btn:hover {
  border-color: var(--line-3);
  background: var(--bg-soft);
  text-decoration: none;
  box-shadow: var(--shadow-1);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn.primary:hover {
  background: #26262b;
  border-color: #26262b;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn.ghost:hover {
  background: var(--bg-sunken);
  border-color: transparent;
  box-shadow: none;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, #fafafa 0%, #ffffff 55%),
    var(--bg);
  padding: clamp(28px, 4vw, 56px);
  margin-bottom: 8px;
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
  display: grid;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--ink-3);
  box-shadow: var(--shadow-1);
}

.hero .lead {
  color: var(--ink-3);
  font-size: 1.06rem;
  max-width: 60ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Sections */
.section {
  margin-top: 44px;
}

.section-heading {
  margin-bottom: 20px;
  display: grid;
  gap: 6px;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 70ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
  display: grid;
  gap: 10px;
  transition: border-color 0.15s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.card-icon,
.tile,
.state-icon,
.t-header-icon,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
  color: var(--ink);
}

.card-icon {
  width: 40px;
  height: 40px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.steps li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 8px;
  background: var(--bg);
}

.step-index {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--line-2);
  line-height: 1;
}

.step-icon {
  width: 38px;
  height: 38px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.step-body {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Band */
.band {
  margin-top: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.band-copy {
  display: grid;
  gap: 6px;
  max-width: 60ch;
}

.band h2 {
  color: #fff;
}

.band p {
  color: rgba(255, 255, 255, 0.72);
}

.band-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72) !important;
}

.band .btn.primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.band .btn.primary:hover {
  background: #ececef;
  border-color: #ececef;
}

/* ---------------------------------------------------------------- Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.plan > .btn {
  margin-top: auto;
}

.plan.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.plan.featured .plan-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 3px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-soft);
}

.plan-price {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
}

.fineprint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 18px;
}

/* ---------------------------------------------------------------- FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 840px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 550;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--bg-soft);
}

.faq-chevron {
  color: var(--muted);
  transition: transform 0.18s var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--muted);
  padding: 0 18px 16px;
}

/* ---------------------------------------------------------------- Badges & meta */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--bg-soft);
  white-space: nowrap;
}

.badge-live {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.badge-live .dot {
  background: #fff;
}

.live-round {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-round-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: live-glow 1.8s var(--ease) infinite;
}

@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.dot.pulse {
  position: relative;
}

.dot.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.5;
  animation: pulse 1.8s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  80% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------- Crumbs */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.crumbs a {
  color: var(--ink-2);
  font-weight: 550;
}

.crumb-sep {
  color: var(--faint);
}

/* ---------------------------------------------------------------- Lists */
.page-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.page-head p {
  color: var(--muted);
  max-width: 70ch;
}

.item-list {
  display: grid;
  gap: 12px;
}

.item-group {
  display: grid;
  gap: 12px;
}

.item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 14px 16px;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.15s var(--ease);
}

.item-row:hover {
  border-color: var(--line-3);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}

.item-row.open {
  border-color: var(--line-3);
  background: var(--bg-soft);
}

.tile {
  width: 40px;
  height: 40px;
  flex: none;
}

.item-row-main {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.item-row-main b {
  font-size: 1rem;
}

.item-row-main .meta-row {
  gap: 4px 14px;
}

.row-chevron,
.card-chevron {
  color: var(--faint);
  transition: transform 0.18s var(--ease), color 0.15s var(--ease);
}

.item-row:hover .row-chevron,
.tournament-card:hover .card-chevron {
  color: var(--ink);
  transform: translateX(2px);
}

.row-chevron.open {
  transform: rotate(180deg);
}

.item-children {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0 0 0 20px;
  padding-left: 16px;
  border-left: 2px solid transparent;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows .34s var(--ease), margin .34s var(--ease), opacity .22s var(--ease), border-color .34s var(--ease);
}

.item-children-inner {
  display: grid;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
}

details.item-group.closing > .item-children {
  grid-template-rows: 0fr;
  margin-bottom: 0;
  border-color: transparent;
  opacity: 0;
}

details.item-group[open] > .item-children {
  grid-template-rows: 1fr;
  margin-bottom: 4px;
  border-color: var(--line);
  opacity: 1;
}

details.item-group[open].closing > .item-children {
  grid-template-rows: 0fr;
  margin-bottom: 0;
  border-color: transparent;
  opacity: 0;
}

details.item-group[open] .item-children-inner > * {
  animation: series-row-in .3s var(--ease) both;
}

details.item-group[open] .item-children-inner > :nth-child(2) { animation-delay: .04s; }
details.item-group[open] .item-children-inner > :nth-child(3) { animation-delay: .08s; }
details.item-group[open] .item-children-inner > :nth-child(4) { animation-delay: .12s; }

@keyframes series-row-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Series / tournament cards */
.tournament-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.tournament-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg);
  transition: border-color 0.15s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.tournament-card:hover {
  border-color: var(--line-3);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
  text-decoration: none;
}

.tournament-card-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tournament-card-body b {
  font-size: 1rem;
}

.series-subtitle {
  margin-top: 24px;
}

/* ---------------------------------------------------------------- Tournament */
.t-header {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 16px;
  margin-bottom: 18px;
}

.t-header-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.t-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.t-header-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.t-header h1 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
}

.t-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.t-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 24px;
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.t-info > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.t-info dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.t-info dd {
  margin: 0;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.t-info dd a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-2);
}

.t-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* Series navigation */
.series-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.series-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.series-pill {
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  padding: 5px 12px;
  font-size: 0.86rem;
  color: var(--ink-2);
  background: var(--bg);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.series-pill:hover {
  border-color: var(--line-3);
  text-decoration: none;
  background: var(--bg-soft);
}

.series-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Toolbar + tabs */
.t-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.t-toolbar .field select {
  border-radius: var(--radius-sm);
}

.t-toolbar-fields {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.field select,
select {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  background: #fff;
  padding: 9px 12px;
  cursor: pointer;
}

.section-meta {
  display: grid;
  gap: 2px;
}

.section-meta b {
  font-size: 1rem;
}

.section-meta-detail {
  color: var(--muted);
  font-size: 0.86rem;
}

.tabs {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 3px;
  gap: 3px;
}

.t-toolbar .tabs {
  flex: 1 1 auto;
}

.t-toolbar .tabs .tab {
  flex: 1 1 0;
  justify-content: center;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 550;
  font-size: 0.9rem;
  color: var(--ink-3);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* Rounds */
.rounds {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.rounds > span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-right: 2px;
}

.round-tab {
  min-width: 38px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.round-tab:hover {
  border-color: var(--line-3);
  background: var(--bg-soft);
}

.round-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------------------------------------------------------------- Data tables */
.data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.data-table .thead,
.data-table .trow {
  display: grid;
  align-items: center;
}

.data-table .thead {
  background: var(--bg-sunken);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.data-table .thead span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table .thead span,
.data-table .trow span {
  padding: 11px 14px;
  min-width: 0;
}

.data-table .trow span {
  overflow-wrap: break-word;
}

.data-table .elo,
.data-table .pts,
.data-table .tb,
.data-table .wl,
.data-table .rank,
.data-table .board-no,
.data-table .result {
  white-space: nowrap;
}

.data-table .trow {
  border-top: 1px solid var(--line);
  transition: background 0.12s var(--ease);
}

.data-table .trow:hover {
  background: var(--bg-soft);
}

.data-table .trow.leader {
  background: var(--bg-soft);
  box-shadow: inset 3px 0 0 var(--ink);
}

.data-table.pairings .thead,
.data-table.pairings .trow {
  grid-template-columns: 72px minmax(0, 1fr) 110px minmax(0, 1fr);
}

.data-table.pairings.with-dgt .thead,
.data-table.pairings.with-dgt .trow {
  grid-template-columns: 72px minmax(0, 1fr) 110px minmax(0, 1fr) 124px;
}

.data-table .board-no {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-3);
}

.data-table .player {
  font-weight: 550;
}

.data-table.pairings .player {
  display: flex;
  align-items: center;
  gap: 7px;
}

.color-indicator {
  display: inline-flex;
  flex: 0 0 auto;
}

.color-indicator svg {
  fill: currentColor;
  stroke: currentColor;
}

.color-indicator.white {
  color: #fff;
  filter: drop-shadow(0 0 0.5px var(--ink-3));
}

.color-indicator.black {
  color: #18181b;
}

.data-table .result {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* The standings columns come from the component (they depend on the number of
   tie-breaks configured) but both the desktop and the mobile layout are set
   here, so the narrow layout can drop the least important columns. A very wide
   standings table scrolls inside its own box instead of clipping columns. */
.data-table.standings .thead,
.data-table.standings .trow {
  grid-template-columns: var(--cols);
}

.data-table.standings {
  overflow-x: auto;
}

.bye-chip {
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-soft);
}

.data-table .pts {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.data-table .elo,
.data-table .wl {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.data-table .tb {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.data-table.standings .thead span,
.data-table.standings .trow span {
  align-items: center;
}

.rank {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.rank.top {
  color: var(--ink);
}

.dgt-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
}

.dgt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: #fff;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}

.dgt-toggle:hover {
  border-color: var(--line-3);
  background: var(--bg-soft);
}

.dgt-toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.dgt-none {
  color: var(--faint);
}

/* Board shown only for the table the viewer opened */
.t-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.t-detail-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.live-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.t-detail .mini-board {
  width: 208px;
}

.t-detail .mini-board .sq {
  font-size: 21px;
}

/* Live DGT board position */
.mini-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 96px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.mini-board .sq {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

.mini-board .sq.light { background: #fff; }
.mini-board .sq.dark { background: #ececef; }

.mini-board .sq.white {
  color: #fff;
  text-shadow: 0 0 1px #333, 0 0 1px #333;
}

.mini-board .sq.black {
  color: #1b1b1e;
}

.fen-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

/* The full header label is replaced by a shorter one on narrow screens. */
.th-short::after {
  content: "";
}

.label-short {
  display: none;
}

/* ---------------------------------------------------------------- Team matches */
.team-matches {
  display: grid;
  gap: 16px;
}

.team-match {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.tm-head {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-sunken);
  font-weight: 650;
  font-size: 0.94rem;
}

.tm-board {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
}

.tm-head .right {
  text-align: right;
}

.tm-score {
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  padding: 2px 12px;
  background: #fff;
}

.team-boards {
  border: 0;
  border-radius: 0;
}

.team-boards .thead,
.team-boards .trow {
  grid-template-columns: 84px minmax(0, 1fr) 110px minmax(0, 1fr);
}

/* ---------------------------------------------------------------- States */
.state {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 40px 24px;
  color: var(--ink-2);
}

.state-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  background: #fff;
}

.state p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 46ch;
}

.state.error {
  border-style: solid;
  border-color: var(--line-2);
}

/* Skeletons */
.skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-sunken) 25%, #ededf0 37%, var(--bg-sunken) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.skeleton-row {
  pointer-events: none;
}

.skeleton-tile {
  background: var(--bg-sunken);
  border-color: var(--line);
  animation: shimmer 1.4s ease infinite;
  background-image: linear-gradient(90deg, var(--bg-sunken) 25%, #ededf0 37%, var(--bg-sunken) 63%);
  background-size: 400% 100%;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------- Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  margin-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-brand p {
  color: var(--ink-3);
  font-size: 0.92rem;
  max-width: 40ch;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted) !important;
  font-size: 0.84rem !important;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 2px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.footer-stat {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-bottom-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-backdrop,
.nav-mobile-footer,
.nav-drawer-head {
  display: none;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  /* Stack the list rows so the name and dates get the full width instead of
     being squeezed by the status badge. */
  .item-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
  }

  .item-row > .tile {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .item-row > .item-row-main {
    grid-column: 2;
    grid-row: 1;
  }

  .item-row > .badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .item-row > .live-round {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }

  .item-row > .row-chevron {
    display: none;
  }

  .tournament-card {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 8px;
  }

  .tournament-card > .tile {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .tournament-card > .tournament-card-body {
    grid-column: 2;
  }

  .tournament-card > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .tournament-card > .card-chevron {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 70;
  }

  .nav {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 60;
    width: min(88vw, 360px);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 88px 22px 24px;
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: -18px 0 50px -24px rgba(9, 9, 11, .35);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .24s var(--ease), visibility .24s var(--ease);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(9, 9, 11, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--ease);
  }

  .nav.open ~ .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  html.nav-locked {
    overflow: hidden;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 1.08rem;
  }

  .nav-drawer-head .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    display: grid;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link.active {
    border-color: var(--line);
    background: var(--bg-sunken);
  }

  .nav-link svg {
    width: 19px;
    height: 19px;
    color: var(--muted);
  }

  .nav-aside {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .theme-toggle,
  .nav-fed,
  .nav-lang {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    padding: 8px 12px;
  }

  .theme-toggle {
    justify-content: center;
    width: 48px;
    min-height: 48px;
    border-radius: 50%;
    padding: 0;
  }

  .nav-fed {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .nav-fed-label {
    align-self: center;
  }

  .nav-fed select {
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    text-align: right;
  }

  .nav-lang {
    justify-content: space-between;
    padding: 8px 12px;
  }

  .nav-mobile-footer {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .nav-mobile-footer-title {
    margin-bottom: 3px;
    color: var(--muted-2);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .nav-mobile-footer a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    color: var(--muted);
    font-size: .86rem;
  }

  .nav-mobile-footer a:hover {
    color: var(--ink);
  }

  .nav-mobile-rights {
    margin-top: 8px;
    color: var(--faint);
    font-size: .72rem;
    line-height: 1.4;
  }

  .navbar-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 20px 16px 44px;
  }

  .wrap {
    padding: 0 16px;
  }

  .band {
    flex-direction: column;
    align-items: flex-start;
  }

  .t-toolbar,
  .t-toolbar-fields {
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
  }

  .t-toolbar {
    overflow: hidden;
  }

  .tabs {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 3px;
  }

  .tab {
    min-width: 0;
    width: 100%;
    justify-content: center;
    padding: 9px 5px;
    font-size: .78rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .tab svg {
    width: 14px;
    height: 14px;
  }

  .t-header {
    padding: 14px;
  }

  .t-header-top {
    gap: 12px;
  }

  .t-header-icon {
    width: 40px;
    height: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .footer-bottom-right {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
  }

  .footer-bottom-note {
    max-width: 26ch;
    align-items: flex-start;
  }

  /* Tables: keep readable without horizontal scrolling */
  .data-table.pairings .thead,
  .data-table.pairings .trow {
    grid-template-columns: 46px minmax(0, 1fr) 58px minmax(0, 1fr);
  }

  .data-table.pairings.with-dgt .thead,
  .data-table.pairings.with-dgt .trow {
    grid-template-columns: 40px minmax(0, 1fr) 54px minmax(0, 1fr) 56px;
  }

  .th-short {
    font-size: 0;
  }

  .th-short::after {
    content: attr(data-short);
    font-size: 0.62rem;
  }

  .label-short {
    display: inline;
  }

  .label-full {
    display: none;
  }

  /* Standings keep every configured tie-break. With three or four criteria,
     horizontal scrolling is safer than silently hiding ranking data. */
  .data-table.standings .thead,
  .data-table.standings .trow {
    grid-template-columns: var(--cols-mobile);
    min-width: max-content;
  }

  .only-mobile {
    display: block;
  }

  .data-table.team-boards .thead,
  .data-table.team-boards .trow {
    grid-template-columns: 44px minmax(0, 1fr) 60px minmax(0, 1fr);
  }

  .data-table .thead span,
  .data-table .trow span {
    padding: 9px 8px;
  }

  .data-table .thead {
    font-size: 0.66rem;
  }

  .data-table .trow {
    font-size: 0.9rem;
  }

  .dgt-toggle {
    padding: 5px 9px;
  }

  .dgt-toggle > svg {
    display: none;
  }

  .tm-head {
    grid-template-columns: auto 1fr auto 1fr;
    font-size: 0.86rem;
    gap: 8px;
    padding: 12px;
  }

  .tm-board {
    font-size: 0.7rem;
  }

  .round-tab {
    min-width: 40px;
    height: 40px;
  }

  .mini-board {
    width: 60px;
  }

  .t-detail .mini-board {
    width: 176px;
  }

  .t-detail .mini-board .sq {
    font-size: 18px;
  }
}

.player-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0 0, #fafafa, #fff 60%);
}

.player-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}

.player-hero h1 {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.player-subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.player-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.player-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.player-summary small,
.player-game small,
.player-metrics small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.player-summary strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.player-section {
  margin-top: 32px;
}

.player-games {
  display: grid;
  gap: 8px;
}

.player-game {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.player-game-round,
.player-game-opponent,
.player-game-result {
  display: grid;
  gap: 3px;
}

.player-game-round span {
  font-weight: 750;
}

.player-game-round small,
.player-game-opponent small,
.player-game-result small {
  color: var(--muted);
  font-size: .78rem;
}

.player-game-opponent strong {
  overflow-wrap: anywhere;
}

.player-game-result {
  min-width: 70px;
  text-align: right;
}

.player-game-result strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.player-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-metrics > div {
  display: grid;
  gap: 3px;
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.player-metrics strong {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.player-metrics span {
  color: var(--muted);
  font-size: .78rem;
}

.player-link {
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.player-link:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 640px) {
  .player-hero {
    align-items: flex-start;
    padding: 18px;
  }

  .player-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .player-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-summary > div {
    padding: 12px;
  }

  .player-game {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px;
  }

  .player-game-result {
    min-width: 48px;
  }
}

.start-list-panel,
.tournament-info-panel {
  display: grid;
  gap: 0;
}

.start-list-panel .section-heading,
.tournament-info-panel .section-heading {
  margin-bottom: 8px;
}

.start-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.start-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 14px;
  background: var(--bg);
}

.start-list-rank {
  min-width: 48px;
  color: var(--muted);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.start-list .player-link {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

@media (max-width: 640px) {
  .start-list {
    grid-template-columns: 1fr;
  }

  .start-list,
  .start-list li {
    min-width: 0;
    max-width: 100%;
  }

  .start-list li {
    padding: 12px;
  }
}

/* ---------------------------------------------------------------- Motion */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes content-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(9, 9, 11, 0); }
  50% { box-shadow: 0 0 0 4px rgba(9, 9, 11, .06); }
}


.nav-link,
.tab,
.btn,
.round-tab,
.series-pill,
.lang-switch a,
.filter-pills a {
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.nav-link:hover,
.tab:hover,
.series-pill:hover,
.round-tab:hover {
  transform: translateY(-1px);
}

.btn:hover {
  transform: translateY(-1px);
}

.card,
.tournament-card,
.item-row,
.player-game,
.pairing-card,
.standing-card {
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.card:hover,
.tournament-card:hover,
.item-row:hover,
.player-game:hover,
.pairing-card:hover,
.standing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.dgt-toggle:active,
.nav-toggle:active,
.tab:active,
.btn:active {
  transform: scale(.98);
}

/* ---------------------------------------------------------------- Minimal mode */
/* Keep the portal scannable: headings and data stay, explanatory copy does not
   compete with the action. */
.hero .lead,
.section-heading > p,
.page-head > p,
.step-body,
.band-copy > p:not(.band-meta),
.footer-brand > p {
  display: none;
}

.card,
.plan,
.item-row,
.t-header,
.player-hero,
.player-summary > div,
.player-game,
.player-metrics > div {
  border-radius: 10px;
  box-shadow: none;
}


.section {
  margin-top: 32px;
}

.section-heading {
  margin-bottom: 14px;
}

.hero {
  padding: clamp(24px, 4vw, 44px);
}

.hero-copy {
  gap: 12px;
}

.band {
  margin-top: 32px;
}

/* A compact footer keeps navigation useful without repeating marketing copy. */
.footer {
  margin-top: 36px;
}

@keyframes player-back-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.player-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  animation: player-back-in .4s var(--ease) both;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.player-back:hover {
  color: var(--ink);
  text-decoration: none;
  transform: translateX(-3px);
}

.player-back-icon {
  display: inline-flex;
  transform: rotate(180deg);
  transition: transform .2s var(--ease);
}

.player-back:hover .player-back-icon {
  transform: translateX(-3px) rotate(180deg);
}

@media (max-width: 640px) {
  .footer {
    margin-top: 24px;
  }

  .footer-inner {
    display: none;
  }

  .footer-bottom {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .footer-bottom-note {
    display: none;
  }

  .hero {
    padding: 24px 18px;
  }

  .hero-stats {
    margin-top: 18px;
    padding-top: 14px;
    gap: 7px 14px;
  }

  .hero-stats li {
    font-size: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- Language */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
}

.lang-switch button {
  border: 0;
  background: transparent;
  border-radius: calc(var(--radius-xs) - 2px);
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.lang-switch.compact button {
  padding: 3px 6px;
  font-size: 0.68rem;
}

.nav-aside {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
}

.footer-bottom-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------------------------------------------------------------- Legal */
.legal-doc {
  max-width: 840px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: clamp(22px, 3vw, 40px);
}

.legal-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  padding: 12px 14px;
  color: var(--ink-2);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.legal-intro {
  color: var(--ink-2);
  margin-bottom: 24px;
}

.legal-section {
  margin-bottom: 22px;
}

.legal-section h2 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.legal-section p {
  color: var(--ink-2);
  margin-bottom: 8px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.state.big {
  padding: 56px 24px;
  gap: 12px;
}

.table-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.only-mobile {
  display: none;
}

.state.big .state-icon {
  width: 54px;
  height: 54px;
}

.state .btn {
  margin-top: 6px;
}

@media (max-width: 820px) {
  .nav-aside {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-lang {
    justify-content: space-between;
    padding: 6px 2px;
  }
}


/* ------------------------------------------------------- Tournaments filters */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  text-decoration: none;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  background: #fff;
  color: var(--muted);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.search-box:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-box input:focus {
  outline: none;
  box-shadow: none;
}

.filter-pills {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-sunken);
}

.filter-pills button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 550;
  cursor: pointer;
}

.filter-pills button:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.filter-pills button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: var(--shadow-1);
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.state-action {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* --------------------------------------------------------------- Champion */
.champion-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: var(--shadow-1);
}

.champion-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: #fff;
  color: #92400e;
  box-shadow: var(--shadow-1);
}

.champion-copy {
  display: grid;
  gap: 2px;
}

.champion-label {
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.champion-copy strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.champion-copy > span:last-child {
  color: #92400e;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    flex: none;
  }

  .result-count {
    margin-left: 0;
  }

  .filter-pills {
    justify-content: space-between;
  }

  .champion-banner {
    align-items: flex-start;
    padding: 18px;
  }

  .champion-copy strong {
    font-size: 1.15rem;
  }
}

/* --------------------------------------------------- Server-rendered portal */
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: calc(var(--radius-xs) - 2px);
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.lang-switch a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang-switch a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.lang-switch.compact a {
  padding: 3px 8px;
  font-size: 0.72rem;
}

.filter-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 550;
  text-decoration: none;
}

.filter-pills a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-decoration: none;
}

.filter-pills a.active {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: var(--shadow-1);
}

summary.item-row {
  list-style: none;
}

summary.item-row::-webkit-details-marker {
  display: none;
}

details[open] > summary.item-row {
  border-color: var(--line-3);
  background: var(--bg-soft);
}

details[open] > summary .row-chevron {
  transform: rotate(180deg);
}

.result-count-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 10px;
}

.section-switch {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}

.section-switch .field {
  margin: 0;
}

.nav-icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-icon-close {
  display: inline-flex;
}

a.round-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#tournament-results.htmx-request,
#tournament-content.htmx-request,
#tournament-panel.htmx-request {
  opacity: 0.55;
  transition: opacity 0.15s var(--ease);
}

/* ---------------------------------------------------------------- Mobile hardening */
/* Long player/team names and configurable tie-break columns must not widen the
   viewport. Data tables scroll as a unit instead of clipping or squeezing text
   into unreadable columns. */
html,
body {
  overflow-x: clip;
}

.page,
.wrap,
.tournament,
.t-header-copy,
.t-toolbar-fields {
  min-width: 0;
}

.data-table {
  max-width: 100%;
  min-width: 0;
}

.data-table .player,
.data-table .tm-team,
.item-row-main b,
.t-header h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 720px) {
  .t-header-top {
    align-items: flex-start;
  }

  .t-header-copy {
    flex: 1;
  }

  .t-meta,
  .meta-item {
    font-size: 0.84rem;
  }

  .t-toolbar-fields,
  .section-switch,
  .section-switch .field,
  .section-switch select {
    width: 100%;
  }

  .section-meta {
    width: 100%;
  }

  /* Keep player names readable. A horizontal gesture is preferable to a
     four-column table that wraps every name into a vertical strip. */
  .data-table.pairings,
  .data-table.team-boards {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .data-table.pairings .thead,
  .data-table.pairings .trow {
    min-width: 520px;
  }

  .data-table.pairings.with-dgt .thead,
  .data-table.pairings.with-dgt .trow {
    min-width: 590px;
  }

  .data-table.team-boards .thead,
  .data-table.team-boards .trow {
    min-width: 520px;
  }

  .data-table.standings {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .data-table.standings .rank,
  .data-table.standings .player {
    position: sticky;
    z-index: 1;
  }

  .data-table.standings .rank {
    left: 0;
    background: var(--bg);
  }

  .data-table.standings .player {
    left: 48px;
    background: var(--bg);
    box-shadow: 8px 0 10px -12px rgba(9, 9, 11, 0.5);
  }

  .data-table.standings .thead .rank,
  .data-table.standings .thead .player {
    background: var(--bg-sunken);
  }

  .data-table.standings .trow.leader .rank,
  .data-table.standings .trow.leader .player {
    background: var(--bg-soft);
  }

  .tm-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "board score"
      "white right";
    align-items: center;
  }

  .tm-board { grid-area: board; }
  .tm-head > .tm-team:not(.right) { grid-area: white; text-align: left; }
  .tm-score { grid-area: score; }
  .tm-head > .tm-team.right { grid-area: right; text-align: left; }

  .item-children {
    margin-left: 8px;
    padding-left: 10px;
  }

  .rounds {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .rounds > span {
    flex: none;
  }

  .round-tab {
    flex: none;
  }
}

.standings-cards,
.pairing-cards {
  display: none;
}

@media (max-width: 720px) {
  .data-table.standings,
  .data-table.pairings:not(.with-dgt) {
    display: none;
  }

  .standings-cards,
  .pairing-cards {
    display: grid;
    gap: 8px;
  }

  .pairing-cards {
    gap: 8px;
  }

  .pairing-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
  }

  .pairing-card-head,
  .pairing-card-players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .pairing-card-head {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .pairing-card-head span::before {
    content: "♟";
    margin-right: 5px;
    color: var(--ink-3);
  }

  .pairing-card-head b {
    color: var(--ink);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
  }

  .pairing-card-players {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    font-weight: 600;
  }

  .pairing-card-players span {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-wrap: anywhere;
  }

  .pairing-card-players > span:last-child {
    color: var(--ink-3);
  }

  .standing-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
  }

  .standing-card.leader {
    border-color: var(--line-3);
    background: var(--bg-soft);
    box-shadow: inset 3px 0 0 var(--ink);
  }

  .standing-card > summary,
  .pairing-card > summary {
    list-style: none;
    cursor: pointer;
  }

  .standing-card > summary::-webkit-details-marker,
  .pairing-card > summary::-webkit-details-marker {
    display: none;
  }

  .standing-card-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 8px;
  }

  .standing-card-main::after {
    content: "⌄";
    color: var(--muted);
    font-size: 1.1rem;
    transition: transform .26s var(--ease), color .2s var(--ease);
  }

  .standing-card[open] .standing-card-main::after {
    color: var(--ink);
    transform: rotate(180deg);
  }

  .standing-card-details {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-5px);
    transition: max-height .26s var(--ease), margin-top .26s var(--ease), opacity .22s var(--ease), transform .26s var(--ease);
  }

  .standing-card[open] .standing-card-details {
    max-height: 220px;
    margin-top: 2px;
    opacity: 1;
    transform: translateY(0);
  }

  .standing-card[open].closing .standing-card-details {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-5px);
  }

  .standing-card-main strong {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .standing-card-main b {
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
  }

  .standing-rank {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--bg-sunken);
    color: var(--ink-3);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .standing-rank.top {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .standing-card.leader .standing-rank::before {
    content: "♛";
    font-size: 0.72rem;
  }

  .standing-card.leader .standing-rank {
    font-size: 0;
  }


  .standing-card-details {
    display: flex;
    margin-top: 2px;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 42px;
  }

  .standing-card-details span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--bg-sunken);
    color: var(--ink-2);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
  }

  .standing-card-details small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .standing-card-details small::before {
    display: inline-block;
    margin-right: 3px;
    color: var(--ink-3);
    content: "•";
  }

  .standing-card-details [data-metric="elo"] small::before { content: "◈"; }
  .standing-card-details [data-metric="v"] small::before { content: "✓"; }
  .standing-card-details [data-metric="e"] small::before { content: "½"; }
  .standing-card-details [data-metric="d"] small::before { content: "×"; }

  .standing-card > summary::after,
  .pairing-card > summary::after {
    content: "⌄";
    color: var(--muted);
    font-size: 1.1rem;
    transition: transform .18s var(--ease);
  }

  .standing-card[open] > summary::after,
  .pairing-card[open] > summary::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 420px) {
  .page {
    padding-inline: 12px;
  }

  .t-header {
    padding: 14px;
  }

  .t-header-icon {
    width: 38px;
    height: 38px;
  }

  .tabs {
    font-size: 0.84rem;
  }

  .tab {
    padding-inline: 8px;
    gap: 5px;
  }

  .champion-banner {
    gap: 10px;
    padding: 14px;
  }

  .champion-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 640px) {
  .footer {
    display: none;
  }

  .footer-bottom-note {
    display: none;
  }

  .player-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-metrics > div {
    min-width: 0;
  }
}

/* ---------------------------------------------------------------- Dark theme surfaces */
:root[data-theme="dark"] body,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .nav {
  background: var(--bg);
}

:root[data-theme="dark"] .navbar {
  background: rgba(16, 16, 17, .88);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .item-row,
:root[data-theme="dark"] .tournament-card,
:root[data-theme="dark"] .pairing-card,
:root[data-theme="dark"] .standing-card,
:root[data-theme="dark"] .player-game,
:root[data-theme="dark"] .data-table,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: var(--bg-soft);
  color: var(--ink);
}

:root[data-theme="dark"] .lang-switch,
:root[data-theme="dark"] .lang-switch a.active,
:root[data-theme="dark"] .btn:not(.btn-primary),
:root[data-theme="dark"] .tile,
:root[data-theme="dark"] .t-header-icon {
  background: var(--bg-sunken);
  color: var(--ink-2);
}

:root[data-theme="dark"] .hero {
  background: radial-gradient(120% 140% at 0% 0%, #242428 0%, #18181b 55%);
}

:root[data-theme="dark"] .eyebrow {
  background: var(--bg-sunken);
  color: var(--ink-2);
}

:root[data-theme="dark"] .band {
  border-color: var(--line-2);
  background: var(--bg-sunken);
  color: var(--ink);
}

:root[data-theme="dark"] .band h2 {
  color: var(--ink);
}

:root[data-theme="dark"] .band p,
:root[data-theme="dark"] .band-meta {
  color: var(--muted) !important;
}

:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .state-icon,
:root[data-theme="dark"] .card-icon,
:root[data-theme="dark"] .step-icon,
:root[data-theme="dark"] .tab.active,
:root[data-theme="dark"] .round-tab,
:root[data-theme="dark"] .dgt-toggle,
:root[data-theme="dark"] .tm-score,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .lang-switch a.active {
  background: var(--bg-sunken);
  color: var(--ink-2);
}

:root[data-theme="dark"] .state-icon,
:root[data-theme="dark"] .card-icon,
:root[data-theme="dark"] .step-icon {
  border-color: var(--line-2);
}

:root[data-theme="dark"] .icon,
:root[data-theme="dark"] .brand-mark svg {
  color: var(--ink-2);
  stroke: var(--ink-2);
}

:root[data-theme="dark"] .nav-toggle {
  background: var(--bg-sunken);
  color: var(--ink-2);
}

:root[data-theme="dark"] .nav-backdrop {
  background: rgba(0, 0, 0, .58);
}
