:root {
  color-scheme: light;
  --ink: #05080d;
  --ink-2: #101820;
  --paper: #f5f9ff;
  --paper-2: #e8f3ff;
  --white: #ffffff;
  --muted: #5d6b7a;
  --line: rgba(5, 8, 13, 0.12);
  --red: #2f9cf4;
  --green: #0f6fb8;
  --blue: #2f9cf4;
  --gold: #cfeeff;
  --lilac: #b6a7ff;
  --qcc-blue: #2f9cf4;
  --qcc-blue-dark: #1376c7;
  --qcc-blue-soft: #dff2ff;
  --qcc-black: #020407;
  --shadow: 0 18px 48px rgba(5, 8, 13, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

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

.site-frame {
  min-height: 100svh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 4, 7, 0.96);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  background: url("logos/qc-crokinole-mark-fixed.png") center / contain no-repeat;
}

.brand span:last-child {
  display: block;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a {
  position: relative;
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav a:hover,
.nav a.is-active {
  background: rgba(47, 156, 244, 0.2);
  color: var(--white);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.nav-toggle,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.1);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
}

.cart-button {
  gap: 8px;
  padding: 8px 12px;
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--qcc-blue);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.icon {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

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

.btn-primary {
  background: var(--qcc-blue);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(47, 156, 244, 0.24);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  border-color: rgba(255, 253, 248, 0.32);
  background: rgba(255, 253, 248, 0.14);
  color: var(--white);
}

.btn-outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 62svh;
  padding: clamp(58px, 8vw, 112px) clamp(16px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(16, 19, 23, 0.95), rgba(16, 19, 23, 0.72) 44%, rgba(16, 19, 23, 0.22)),
    linear-gradient(0deg, rgba(16, 19, 23, 0.85), rgba(16, 19, 23, 0.08) 42%),
    url("crokinole-club-night.png") center / cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 253, 248, 0.06) 27px 28px),
    radial-gradient(circle at 79% 48%, rgba(228, 180, 73, 0.38) 0 5%, transparent 6%),
    radial-gradient(circle at 73% 54%, transparent 0 18%, rgba(255, 253, 248, 0.13) 19% 20%, transparent 21%),
    radial-gradient(circle at 73% 54%, transparent 0 31%, rgba(255, 253, 248, 0.11) 32% 33%, transparent 34%);
  mix-blend-mode: screen;
}

.hero-compact {
  min-height: 44svh;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.48fr);
  gap: clamp(26px, 6vw, 86px);
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.display {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.9;
}

.hero-compact h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.lede {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  padding: 22px;
  background: rgba(16, 19, 23, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -66px;
  width: 190px;
  aspect-ratio: 1;
  border: 18px solid rgba(228, 180, 73, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-card p {
  margin-bottom: 18px;
  color: rgba(255, 253, 248, 0.72);
}

.ticker {
  display: flex;
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  min-width: max-content;
  animation: marquee 24s linear infinite;
}

.ticker span {
  padding: 12px 22px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(54px, 8vw, 98px) clamp(16px, 5vw, 72px);
}

.section-dark {
  background:
    radial-gradient(circle at 9% 0%, rgba(182, 167, 255, 0.16), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(8, 120, 93, 0.22), transparent 28%),
    var(--ink);
  color: var(--white);
}

.section-white {
  background: var(--white);
}

.calendar-page {
  background: var(--white);
}

.home-page .page-hero {
  background:
    linear-gradient(100deg, rgba(16, 19, 23, 0.95), rgba(16, 19, 23, 0.7) 44%, rgba(16, 19, 23, 0.18)),
    linear-gradient(0deg, rgba(16, 19, 23, 0.78), rgba(16, 19, 23, 0.04) 42%),
    var(--hero-image, url("photos/home-hero-stock.jpg")) center 54% / cover;
}

.home-page .page-hero::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 9px), var(--qcc-blue) calc(100% - 9px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 82px),
    radial-gradient(circle at 78% 54%, transparent 0 18%, rgba(255, 253, 248, 0.14) 19% 20%, transparent 21%),
    radial-gradient(circle at 78% 54%, transparent 0 31%, rgba(255, 253, 248, 0.11) 32% 33%, transparent 34%);
  mix-blend-mode: normal;
}

.about-page,
.gallery-page {
  background: var(--white);
}

.about-page .page-hero {
  min-height: 42svh;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.94), rgba(2, 4, 7, 0.62), rgba(2, 4, 7, 0.22)),
    var(--hero-image, url("photos/about-hero-stock.jpg")) center 52% / cover;
}

.gallery-page .page-hero {
  min-height: 42svh;
}

.gallery-page .page-hero {
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.9), rgba(2, 4, 7, 0.48)),
    var(--hero-image, url("photos/gallery-hero-crokinole-stock.jpg")) center 48% / cover;
}

.about-page .page-hero::before,
.gallery-page .page-hero::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 9px), var(--qcc-blue) calc(100% - 9px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 82px);
  mix-blend-mode: normal;
}

.calendar-page .page-hero {
  min-height: 42svh;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.96), rgba(2, 4, 7, 0.72), rgba(2, 4, 7, 0.24)),
    var(--hero-image, url("photos/calendar-hero-stock.jpg")) center 50% / cover;
}

.shop-page .page-hero {
  min-height: 42svh;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.95), rgba(2, 4, 7, 0.64), rgba(2, 4, 7, 0.16)),
    var(--hero-image, url("photos/shop-hero-stock.jpg")) center 62% / cover;
}

.calendar-page .page-hero::before,
.shop-page .page-hero::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 9px), var(--qcc-blue) calc(100% - 9px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 82px);
  mix-blend-mode: normal;
}

.calendar-page .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.calendar-page .eyebrow::before {
  background: var(--qcc-blue);
}

.calendar-page .lede,
.calendar-page .hero-card p {
  color: rgba(255, 255, 255, 0.76);
}

.calendar-page .hero-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.calendar-page .hero-card::after {
  border-color: rgba(47, 156, 244, 0.38);
}

.join-page {
  background: var(--white);
}

.join-page .join-hero {
  min-height: 48svh;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.94), rgba(2, 4, 7, 0.7) 48%, rgba(2, 4, 7, 0.28)),
    var(--hero-image, url("photos/league-hero-stock.jpg")) center 58% / cover;
}

.join-page .join-hero::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 9px), var(--green) calc(100% - 9px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 82px);
  mix-blend-mode: normal;
}

.join-page .eyebrow::before {
  background: var(--green);
}

.join-hero-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.join-hero-card::after {
  border-color: rgba(8, 120, 93, 0.42);
}

.join-intro {
  padding-bottom: clamp(42px, 6vw, 76px);
}

.crokinole-playground {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 104px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 14%, rgba(47, 156, 244, 0.22), transparent 28%),
    linear-gradient(145deg, #07101a, #101820 56%, #07111c);
  color: var(--white);
}

.crokinole-playground::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 42px);
  content: "";
  pointer-events: none;
}

.crokinole-playground-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .55fr) minmax(590px, 1.15fr);
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
}

.crokinole-playground-inner {
  position: relative;
}

.crokinole-playground-heading {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.crokinole-playground-heading h2 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.6rem);
  line-height: .9;
}

.crokinole-playground-copy .kicker {
  color: #79c7ff;
}

.crokinole-playground-lede {
  max-width: 550px;
  margin: 0;
  color: rgba(255,255,255,.73);
  font-size: 1.08rem;
  line-height: 1.7;
}

.crokinole-mode-switcher {
  display: inline-flex;
  gap: 5px;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 5px;
  background: rgba(0,0,0,.22);
}

.crokinole-mode-switcher button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 17px;
  background: transparent;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 900;
}

.crokinole-mode-switcher button.is-active {
  background: var(--qcc-blue);
  color: #04111b;
}

.crokinole-tour-intro {
  display: grid;
  gap: 8px;
  max-width: 540px;
  margin-top: 24px;
  border: 1px solid rgba(121,199,255,.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(47,156,244,.1);
}

.crokinole-tour-intro[hidden],
.crokinole-controls[hidden],
.crokinole-tour-prompt[hidden],
.crokinole-shot-prompt[hidden],
.crokinole-flow-prompt[hidden],
.crokinole-scoring-prompt[hidden],
.crokinole-freeplay-prompt[hidden],
.crokinole-freeplay-reset[hidden],
.crokinole-shot-help[hidden],
.crokinole-game-hint[hidden],
.crokinole-reset[hidden] {
  display: none;
}

.crokinole-outline-label {
  margin: 0 0 3px;
  color: #79c7ff;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.crokinole-outline-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  padding: 11px;
  background: rgba(0,0,0,.16);
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.crokinole-outline-item.is-active {
  border-color: rgba(121,199,255,.6);
  background: rgba(47,156,244,.16);
}

.crokinole-outline-item > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: #79c7ff;
  font-size: .72rem;
  font-weight: 950;
}

.crokinole-outline-item strong,
.crokinole-outline-item small {
  display: block;
}

.crokinole-outline-item strong {
  font-size: .86rem;
}

.crokinole-outline-item small {
  margin-top: 2px;
  color: rgba(255,255,255,.62);
  font-size: .69rem;
  line-height: 1.35;
}

.crokinole-controls {
  display: grid;
  gap: 11px;
  max-width: 540px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.crokinole-controls li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.crokinole-controls li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--qcc-blue);
  color: #03101b;
  font-weight: 950;
}

.crokinole-controls strong,
.crokinole-controls small {
  display: block;
}

.crokinole-controls small {
  margin-top: 2px;
  color: rgba(255,255,255,.62);
  font-size: .82rem;
}

.crokinole-playground-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.crokinole-reset {
  border: 0;
  cursor: pointer;
}

.crokinole-game-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 255px);
  gap: 0 16px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  padding: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(50px, 5vw, 58px);
  background: rgba(255,255,255,.075);
  box-shadow: 0 40px 100px rgba(0,0,0,.44);
  backdrop-filter: blur(12px);
}

@media (min-width: 1025px) {
  .crokinole-game-shell {
    height: 490px;
  }
}

.crokinole-game-topline {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 13px;
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crokinole-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 18px 38px rgba(0,0,0,.5);
}

.crokinole-twenties-tracker {
  position: absolute;
  z-index: 2;
  top: 2.2%;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.crokinole-twenties-tracker span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(4,11,17,.84);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  color: rgba(255,255,255,.82);
  font-size: clamp(.68rem, 1vw, .84rem);
  font-weight: 900;
  letter-spacing: .02em;
}

.crokinole-twenties-tracker i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.crokinole-twenties-tracker i.is-white {
  border: 1px solid #aeb4b7;
  background: #f4f5f5;
}

.crokinole-twenties-tracker i.is-red {
  border: 1px solid #8f1719;
  background: #dc302d;
}

.crokinole-twenties-tracker b {
  min-width: .65em;
  color: #79c7ff;
  font-size: 1.15em;
  text-align: center;
}

.crokinole-twenties-tracker span.is-receiving-twenty {
  animation: crokinole-twenty-arrival .52s ease-out;
}

@keyframes crokinole-twenty-arrival {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
  42% { transform: scale(1.13); box-shadow: 0 0 0 5px rgba(121,199,255,.2), 0 6px 18px rgba(0,0,0,.45); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
}

.crokinole-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crokinole-effects-canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crokinole-shot-help {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26%;
  width: min(76%, 310px);
  transform: translateX(-50%);
  border: 1px solid rgba(121,199,255,.5);
  border-radius: 9px;
  padding: 10px 13px;
  background: rgba(4,12,19,.9);
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
  color: var(--white);
  pointer-events: none;
  text-align: center;
}

.crokinole-shot-help strong,
.crokinole-shot-help span {
  display: block;
}

.crokinole-shot-help strong {
  color: #79c7ff;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.crokinole-shot-help span {
  margin-top: 3px;
  color: rgba(255,255,255,.78);
  font-size: .68rem;
  line-height: 1.4;
}

.crokinole-canvas.is-aiming {
  cursor: grabbing;
}

.crokinole-canvas.is-moving-disc {
  cursor: grabbing;
}

html.is-crokinole-aiming,
html.is-crokinole-aiming body {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.crokinole-canvas.is-touring {
  cursor: default;
}

.crokinole-game-hint {
  margin: 12px 0 0;
  color: rgba(255,255,255,.42);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
}

.crokinole-tour-prompt {
  margin-top: 0;
  border: 1px solid rgba(121,199,255,.25);
  border-radius: 10px;
  padding: 16px 18px;
  background: rgba(3,10,17,.72);
}

.crokinole-shot-prompt {
  margin-top: 0;
  border: 1px solid rgba(121,199,255,.25);
  border-radius: 10px;
  padding: 16px 18px;
  background: rgba(3,10,17,.72);
}

.crokinole-flow-prompt,
.crokinole-scoring-prompt,
.crokinole-freeplay-prompt {
  margin-top: 0;
  border: 1px solid rgba(121,199,255,.25);
  border-radius: 10px;
  padding: 16px 18px;
  background: rgba(3,10,17,.72);
}

.crokinole-flow-prompt {
  padding: 14px 16px;
}

.crokinole-flow-prompt h3,
.crokinole-scoring-prompt h3 {
  margin: 12px 0 0;
  color: var(--white);
  font-size: 1.35rem;
}

.crokinole-flow-prompt h3 {
  margin-top: 8px;
}

.crokinole-freeplay-prompt h3 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 1.35rem;
}

.crokinole-freeplay-prompt > p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.64);
  font-size: .78rem;
  line-height: 1.45;
}

.crokinole-disc-picker {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.crokinole-disc-picker button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 37px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255,255,255,.06);
  color: var(--white);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 900;
}

.crokinole-disc-picker button.is-active {
  border-color: rgba(121,199,255,.7);
  background: rgba(47,156,244,.17);
  box-shadow: inset 3px 0 0 #79c7ff;
}

.crokinole-disc-picker i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.crokinole-disc-picker i.is-white {
  border: 1px solid #aeb4b7;
  background: #f4f5f5;
}

.crokinole-disc-picker i.is-red {
  border: 1px solid #8f1719;
  background: #dc302d;
}

.crokinole-freeplay-prompt .crokinole-freeplay-note {
  color: rgba(255,255,255,.42);
  font-size: .68rem;
  text-align: center;
}

.crokinole-practice-presets {
  display: grid;
  gap: 5px;
  margin-top: 11px;
  border-top: 1px solid rgba(255,255,255,.11);
  padding-top: 10px;
}

.crokinole-practice-presets > p {
  margin: 0 0 2px;
  color: #79c7ff;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crokinole-practice-presets button {
  display: block;
  width: 100%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(255,255,255,.045);
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.crokinole-practice-presets button:hover,
.crokinole-practice-presets button.is-active {
  border-color: rgba(121,199,255,.62);
  background: rgba(47,156,244,.13);
}

.crokinole-practice-presets strong {
  display: block;
  font-size: .73rem;
}

.crokinole-freeplay-reset {
  position: absolute;
  z-index: 4;
  bottom: 15px;
  left: clamp(16px, 2vw, 24px);
  margin: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(3,10,17,.55);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: .67rem;
  font-weight: 850;
}

.crokinole-flow-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.crokinole-flow-list > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
}

.crokinole-flow-list > div > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(47,156,244,.16);
  color: #79c7ff;
  font-size: .68rem;
  font-weight: 950;
}

.crokinole-flow-list p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .68rem;
  line-height: 1.3;
}

.crokinole-flow-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--white);
  font-size: .78rem;
}

.crokinole-flow-prompt .crokinole-scenario-actions {
  margin-top: 10px;
}

.crokinole-score-totals {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.crokinole-score-totals > div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 3px 8px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255,255,255,.055);
}

.score-team-dot {
  grid-row: 1 / 3;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.score-team-dot.is-white {
  border: 1px solid #aeb4b7;
  background: #f4f5f5;
}

.score-team-dot.is-red {
  border: 1px solid #8f1719;
  background: #dc302d;
}

.crokinole-score-totals strong {
  color: var(--white);
  font-size: .76rem;
}

.crokinole-score-totals small {
  grid-column: 2;
  color: rgba(255,255,255,.5);
  font-size: .67rem;
}

.crokinole-score-totals b {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #79c7ff;
  font-size: 1.25rem;
}

.crokinole-score-result {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  border-left: 3px solid #79c7ff;
  border-radius: 5px;
  padding: 9px 10px;
  background: rgba(47,156,244,.09);
}

.crokinole-score-result span {
  color: #79c7ff;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.crokinole-score-result strong {
  color: var(--white);
  font-size: .78rem;
}

.crokinole-canvas.has-score-hover {
  cursor: pointer;
}

.crokinole-shot-prompt h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
}

.crokinole-shot-prompt > p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  line-height: 1.5;
}

.crokinole-shot-result {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.crokinole-scenario-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.crokinole-scenario-actions button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 900;
}

.crokinole-scenario-actions button:last-child {
  border-color: var(--qcc-blue);
  background: var(--qcc-blue);
  color: #04111b;
}

.crokinole-scenario-actions button:disabled {
  cursor: default;
  opacity: .38;
}

.crokinole-tour-progress {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: rgba(255,255,255,.5);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crokinole-tour-dots {
  display: flex;
  gap: 5px;
}

.crokinole-tour-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.crokinole-tour-dots i.is-current {
  width: 20px;
  border-radius: 999px;
  background: #79c7ff;
}

.crokinole-tour-kicker {
  margin: 13px 0 2px;
  color: #79c7ff;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crokinole-tour-prompt h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
}

.crokinole-tour-prompt > p:not(.crokinole-tour-kicker) {
  margin: 5px 0 0;
  color: rgba(255,255,255,.65);
  font-size: .86rem;
  line-height: 1.55;
}

.crokinole-tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.crokinole-tour-actions button {
  min-width: 94px;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 900;
}

.crokinole-tour-actions button:last-child {
  border-color: var(--qcc-blue);
  background: var(--qcc-blue);
  color: #04111b;
}

.crokinole-tour-actions button:disabled {
  cursor: default;
  opacity: .35;
}

.join-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.join-path-card {
  min-height: 220px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}

.join-path-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 950;
}

.join-path-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.join-path-card p {
  margin: 0;
  color: var(--muted);
}

.join-form-band {
  background:
    linear-gradient(90deg, rgba(16, 19, 23, 0.96), rgba(16, 19, 23, 0.9)),
    url("logos/qcc-banner.jpeg") center / cover;
  color: var(--white);
}

.join-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(340px, 0.62fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.join-form-copy {
  position: sticky;
  top: 104px;
}

.join-form-copy h2 {
  max-width: 640px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
}

.join-form-copy p {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.65;
}

.join-checklist {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.join-checklist li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.join-checklist li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(8, 120, 93, 0.2);
}

.join-form-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.section-red {
  background:
    radial-gradient(circle at 82% 16%, rgba(228, 180, 73, 0.3), transparent 28%),
    #f6e0e3;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.5fr);
  gap: clamp(20px, 6vw, 78px);
  align-items: end;
  margin-bottom: 28px;
}

.kicker {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-dark .kicker {
  color: var(--gold);
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.section-head p,
.muted {
  color: var(--muted);
}

.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 253, 248, 0.7);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.event-card,
.product-card,
.panel,
.rule-card,
.archive-card,
.story-card {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(16, 19, 23, 0.1);
}

.feature-card {
  min-height: 260px;
  padding: 22px;
}

.feature-card:nth-child(1) {
  transform: rotate(-1.2deg);
}

.feature-card:nth-child(2) {
  transform: translateY(20px);
}

.feature-card:nth-child(3) {
  transform: rotate(1.2deg);
}

.feature-card .number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 950;
}

.feature-card h3,
.event-card h3,
.product-card h3,
.rule-card h3,
.archive-card h3,
.story-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.feature-card p,
.event-card p,
.product-card p,
.rule-card p,
.archive-card p,
.story-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 22px;
}

.home-routes-section {
  background:
    linear-gradient(180deg, var(--white), var(--paper));
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-route-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border: 2px solid rgba(5, 8, 13, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(16, 19, 23, 0.08);
}

.home-route-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 8px;
  background: var(--qcc-blue);
  color: var(--white);
  font-weight: 950;
}

.home-route-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.home-route-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-route-card:hover {
  transform: translateY(-4px);
}

.home-feature {
  align-items: center;
}

.home-photo-panel {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 2px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

.home-photo-panel img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.home-photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(2, 4, 7, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 82px);
}

.home-photo-panel > div {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  max-width: 520px;
}

.home-photo-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.1rem;
}

.home-photo-panel p {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.74);
}

.home-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto;
  gap: 24px;
  align-items: end;
}

.scoreboard {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.score-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 72px 72px;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  background: var(--ink-2);
}

.score-row:first-child {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 950;
}

.player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-grid,
.archive-grid,
.product-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calendar-page .event-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-sections {
  display: grid;
  gap: clamp(36px, 7vw, 72px);
}

.gallery-section {
  display: grid;
  gap: 18px;
}

.gallery-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.44fr);
  gap: clamp(18px, 5vw, 68px);
  align-items: end;
}

.gallery-section-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.gallery-section-head > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  cursor: zoom-in;
}

.gallery-card:focus-visible {
  outline: 3px solid var(--qcc-blue);
  outline-offset: 4px;
}

.gallery-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 520px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.78;
}

.gallery-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(2, 4, 7, 0.88), transparent);
}

.gallery-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--qcc-blue-soft);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gallery-card h3 {
  max-width: 460px;
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.02;
}

.gallery-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.gallery-empty,
.gallery-loading {
  border: 1px dashed rgba(5, 8, 13, 0.22);
  border-radius: 8px;
  padding: 22px;
  background: rgba(5, 8, 13, 0.03);
  color: var(--muted);
  font-weight: 850;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(2, 4, 7, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-close {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 2;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-frame {
  display: grid;
  width: min(1120px, 100%);
  max-height: calc(100vh - clamp(32px, 8vw, 84px));
  margin: 0;
  gap: 14px;
}

.gallery-lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 8px;
  background: #05080d;
}

.gallery-lightbox-frame figcaption {
  display: grid;
  gap: 5px;
  color: var(--white);
}

.gallery-lightbox-frame span {
  color: var(--qcc-blue-soft);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gallery-lightbox-frame strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.gallery-lightbox-frame small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 800;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

.about-layout > div:first-child {
  position: sticky;
  top: 104px;
}

.about-list {
  display: grid;
  gap: 14px;
}

.about-actions {
  margin-top: 22px;
}

.about-band {
  background:
    linear-gradient(180deg, #f6f9fc, #ffffff);
}

.about-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 22px;
  align-items: start;
}

.about-main {
  display: grid;
  gap: 18px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.board-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 150px;
  border: 1px solid rgba(5, 8, 13, 0.1);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(5, 8, 13, 0.06);
}

.board-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--qcc-blue) 16%, white);
  color: var(--qcc-blue-dark);
  font-weight: 950;
}

.board-card span,
.history-list time {
  display: block;
  margin-bottom: 8px;
  color: var(--qcc-blue-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.board-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.1;
}

.board-card p {
  margin: 0;
  color: var(--muted);
}

.history-rail {
  position: sticky;
  top: 104px;
  border: 1px solid rgba(5, 8, 13, 0.1);
  border-radius: 8px;
  padding: 22px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(5, 8, 13, 0.2);
}

.history-rail h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 7vw, 3.8rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.history-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
  counter-reset: history;
}

.history-list > li {
  position: relative;
  padding-left: 28px;
  counter-increment: history;
}

.history-list > li::before {
  content: counter(history);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--qcc-blue);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.history-list time {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(81, 181, 247, 0.13);
  color: var(--qcc-blue-soft);
}

.history-list > li > span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.history-list ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.history-list ul li {
  border-left: 2px solid rgba(81, 181, 247, 0.42);
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
  line-height: 1.35;
}

.history-list ul strong {
  display: block;
  margin-bottom: 2px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bylaws-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: clamp(12px, 3vw, 34px);
  background: rgba(2, 4, 7, 0.72);
}

.bylaws-modal.is-open {
  display: grid;
  place-items: center;
}

.bylaws-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(840px, calc(100svh - 24px));
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(2, 4, 7, 0.34);
}

.bylaws-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.bylaws-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.bylaws-head .icon-btn {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--white);
}

.bylaws-text {
  min-height: 0;
  overflow: auto;
  padding: 28px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.bylaws-text h1,
.bylaws-text h2,
.bylaws-text h3,
.bylaws-text p,
.bylaws-text ul,
.bylaws-text ol {
  max-width: 760px;
}

.bylaws-text h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.bylaws-text h2 {
  margin: 30px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.02;
}

.bylaws-text h3 {
  margin: 22px 0 8px;
  color: var(--qcc-blue-dark);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bylaws-text p {
  margin: 0 0 12px;
  color: var(--muted);
}

.bylaws-text .bylaws-label {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
}

.bylaws-text ul,
.bylaws-text ol {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

.bylaws-text li::marker {
  color: var(--qcc-blue-dark);
  font-weight: 950;
}

.bylaws-text hr {
  width: min(760px, 100%);
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--line);
}

.event-view {
  display: grid;
  gap: 14px;
}

.events-layout {
  display: grid;
  gap: 18px;
}

.month-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
}

.month-toolbar h2 {
  width: min(590px, calc(100% - 116px));
  margin: 0;
  text-align: center;
}

.month-nav {
  width: 44px;
  height: 44px;
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.calendar-page .month-nav {
  border-color: rgba(5, 8, 13, 0.14);
  background: var(--white);
  color: var(--qcc-black);
  box-shadow: none;
}

.calendar-page .month-nav:not(:disabled):hover {
  border-color: var(--qcc-blue);
  color: var(--qcc-blue-dark);
}

.month-nav:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  box-shadow: none;
}

.event-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 310px;
  overflow: hidden;
}

.calendar-page .event-card,
.calendar-page .filter-group {
  border: 1px solid rgba(5, 8, 13, 0.1);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(5, 8, 13, 0.06);
}

.event-card-loading,
.event-card-empty {
  opacity: 0.88;
}

.event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
}

.calendar-page .event-top {
  min-height: 76px;
  border-bottom: 1px solid color-mix(in srgb, var(--event-accent, var(--qcc-blue)) 24%, transparent);
  background: color-mix(in srgb, var(--event-accent, var(--qcc-blue)) 14%, white);
  color: var(--ink);
}

.calendar-page .event-card,
.calendar-page .event-source-qcc {
  --event-accent: var(--qcc-blue);
  --event-accent-dark: var(--qcc-blue-dark);
}

.calendar-page .event-source-non-qcc {
  --event-accent: #7c8da1;
  --event-accent-dark: #405064;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.event-source-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.calendar-page .event-source-tag {
  background: var(--white);
  color: var(--qcc-black);
}

.date-block {
  display: grid;
  width: 74px;
  min-height: 72px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  font-weight: 950;
}

.calendar-page .date-block {
  background: var(--event-accent, var(--qcc-blue));
  color: var(--white);
  width: 58px;
  min-height: 58px;
}

.date-block span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.date-block strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 253, 248, 0.14);
  color: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.calendar-page .pill {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--event-accent, var(--qcc-blue)) 36%, transparent);
  color: var(--event-accent-dark, var(--qcc-blue-dark));
}

.event-body,
.archive-body {
  padding: 18px;
}

.calendar-page .event-body {
  padding-top: 18px;
}

.event-kicker {
  border-block: 1px solid color-mix(in srgb, var(--event-accent, var(--qcc-blue)) 20%, transparent);
  padding: 9px 18px;
  background: color-mix(in srgb, var(--event-accent, var(--qcc-blue)) 10%, white);
  color: var(--event-accent-dark, var(--qcc-blue-dark));
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-meta {
  display: grid;
  gap: 7px;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1.44fr);
  gap: 22px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.rail-card,
.stat-tile {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 18px;
  background: var(--gold);
  box-shadow: 8px 8px 0 var(--ink);
}

.rail-card h3 {
  margin-bottom: 8px;
}

.rail-card p {
  margin-bottom: 0;
}

.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.filter-group {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}

.calendar-page .filter-group {
  display: flex;
  align-items: center;
  align-content: start;
  gap: 12px;
  flex: 1 1 320px;
  padding: 10px 12px;
  box-shadow: none;
}

.filter-group h4 {
  margin-bottom: 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.calendar-page .filter-group h4 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-tile-wide {
  grid-column: 1 / -1;
}

.stat-tile {
  background: var(--white);
}

.stat-tile strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.stat-tile span {
  color: var(--muted);
  font-size: 0.88rem;
}

.calendar-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.league-page {
  background: var(--qcc-black);
}

.league-page .league-hero {
  min-height: 42svh;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.96), rgba(2, 4, 7, 0.74)),
    var(--hero-image, url("photos/league-hero-stock.jpg")) center 62% / cover;
}

.league-page .league-hero::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 9px), var(--qcc-blue) calc(100% - 9px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 82px);
  mix-blend-mode: normal;
}

.league-page .eyebrow,
.league-page .lede,
.league-page .hero-card p {
  color: rgba(255, 255, 255, 0.76);
}

.league-page .eyebrow::before {
  background: var(--qcc-blue);
}

.league-page .hero-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.league-shell {
  padding: clamp(34px, 5vw, 64px) 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 156, 244, 0.18), transparent 34%),
    linear-gradient(180deg, #020407, #08111b 52%, #f6f9fc 52%);
}

.league-loading,
.league-empty {
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 760px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: 0 22px 60px rgba(2, 4, 7, 0.24);
}

.league-loading[hidden],
.league-empty[hidden],
.league-content[hidden] {
  display: none;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--qcc-blue);
  border-radius: 50%;
  animation: qcc-spin 0.8s linear infinite;
}

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

.league-empty h2 {
  margin: 0;
  max-width: 680px;
}

.league-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.league-content {
  display: grid;
  gap: 18px;
}

.league-season-panel,
.league-panel,
.league-stat,
.league-archive-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(2, 4, 7, 0.14);
}

.league-season-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(47, 156, 244, 0.18), rgba(255, 255, 255, 0.96) 42%),
    var(--white);
}

.league-season-panel h2 {
  max-width: 900px;
}

.league-season-panel p:not(.kicker) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.league-season-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.league-recap[hidden] {
  display: none;
}

.league-recap {
  --recap-bg: #f3f8ff;
  --recap-card: rgba(255, 255, 255, 0.74);
  --recap-card-strong: #ffffff;
  --recap-border: rgba(47, 156, 244, 0.24);
  --recap-accent: var(--qcc-blue);
  --recap-accent-dark: var(--qcc-blue-dark);
  --recap-text: #0a111b;
  --recap-muted: #6f7f91;
  display: grid;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--recap-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 156, 244, 0.16), rgba(243, 248, 255, 0.98) 40%, rgba(7, 17, 29, 0.05)),
    var(--recap-bg);
  color: var(--recap-text);
  box-shadow: 0 18px 50px rgba(5, 8, 13, 0.14), 0 2px 8px rgba(5, 8, 13, 0.08);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
}

.league-recap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--recap-border);
  padding: 16px 20px;
}

.league-recap-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--recap-accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.league-recap-toolbar h2 {
  margin: 0;
  color: var(--recap-text);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.league-recap-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.league-recap-action-btn,
.league-recap-icon-btn {
  border: 1px solid var(--recap-border);
  border-radius: 8px;
  background: rgba(47, 156, 244, 0.08);
  color: var(--recap-text);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-weight: 700;
}

.league-recap-action-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.league-recap-icon-btn {
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  line-height: 1;
}

.league-recap-card {
  margin: 18px;
  border: 1px solid var(--recap-border);
  border-radius: 10px;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 156, 244, 0.18), transparent 34%),
    linear-gradient(145deg, var(--recap-card-strong), var(--recap-card));
}

.league-recap-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.82fr);
  gap: 24px;
  align-items: center;
}

.league-recap-brand {
  color: var(--recap-accent-dark);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.75;
}

.league-recap-title-block {
  text-align: center;
}

.league-recap-title-block h3 {
  margin: 4px 0 0;
  color: var(--recap-text);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-size: 2.05rem;
  line-height: 1.05;
}

.league-recap-title-block p {
  margin: 6px 0 0;
  color: #516478;
  font-size: 0.95rem;
}

.league-recap-champion-block {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  border: 1px solid var(--recap-border);
  border-radius: 10px;
  padding: 14px;
  background: rgba(47, 156, 244, 0.1);
  text-align: center;
}

.league-recap-champion-badge {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(5, 8, 13, 0.2));
}

.league-recap-label,
.league-recap-leader-card span,
.league-recap-stats span {
  display: block;
  color: var(--recap-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.league-recap-champion-block strong {
  display: block;
  margin: 3px 0;
  color: var(--recap-text);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.league-recap-note {
  margin-top: 16px;
  border-left: 3px solid var(--recap-accent);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(47, 156, 244, 0.09);
  color: #4d6278;
  font-size: 0.88rem;
}

.league-recap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.league-recap-podium,
.league-recap-leaders,
.league-recap-stats {
  display: grid;
  gap: 10px;
}

.league-recap-podium {
  grid-template-columns: repeat(3, 1fr);
}

.league-recap-leaders {
  grid-template-columns: repeat(2, 1fr);
}

.league-recap-podium-place,
.league-recap-leader-card,
.league-recap-stats > div {
  border: 1px solid var(--recap-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.league-recap-podium-place {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 108px;
  gap: 8px;
  padding: 12px;
  text-align: center;
}

.league-recap-podium-place.place-1 {
  border-color: rgba(47, 156, 244, 0.38);
  background: rgba(47, 156, 244, 0.12);
}

.league-recap-medal {
  font-size: 3rem;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 6px 10px rgba(5, 8, 13, 0.18));
}

.league-recap-podium-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.league-recap-podium-place strong,
.league-recap-leader-card strong {
  display: block;
  color: var(--recap-text);
  font-size: 1rem;
}

.league-recap-leader-card {
  position: relative;
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  overflow: hidden;
  padding: 14px 132px;
  text-align: center;
}

.league-recap-leader-card strong {
  margin-top: 4px;
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-size: 1.25rem;
}

.league-recap-leader-content {
  position: relative;
  z-index: 1;
}

.league-recap-side-badges {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  transform: translateY(-50%);
}

.league-recap-side-left {
  left: 48px;
}

.league-recap-side-right {
  right: 48px;
}

.league-recap-side-badges img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(5, 8, 13, 0.18));
}

.league-recap-metric-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
}

.league-recap-metric-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid var(--recap-border);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(47, 156, 244, 0.08);
  color: #516478;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.league-recap-metric-pill strong {
  display: inline;
  margin: 0;
  color: var(--recap-accent-dark);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1;
}

.league-recap-metric-pill span {
  display: inline;
  color: #516478;
}

.league-recap-stats {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 18px;
}

.league-recap-stats > div {
  padding: 12px 10px;
  text-align: center;
}

.league-recap-stats strong {
  display: block;
  margin-bottom: 5px;
  color: var(--recap-accent-dark);
  font-family: "Fredoka", Inter, system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.league-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.league-stats[hidden] {
  display: none;
}

.league-hero sup {
  position: relative;
  top: -0.25em;
  font-size: 0.48em;
  font-weight: 850;
  line-height: 0;
}

.league-stat {
  padding: 16px;
  background: #07111d;
  color: var(--white);
}

.league-stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.95;
}

.league-stat span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.league-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.league-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.league-panel-standings {
  grid-column: 1 / -1;
}

.league-panel-sessions {
  grid-column: 1 / -1;
}

.league-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.league-panel-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.league-panel-head > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.league-standings-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.league-standings-filter label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #394656;
  cursor: pointer;
  white-space: nowrap;
}

.league-standings-filter input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--qcc-blue);
  cursor: pointer;
}

.league-standings {
  position: relative;
  max-height: 640px;
  overflow: auto;
  border: 1px solid rgba(5, 8, 13, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.league-standings-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.league-session-history {
  display: grid;
  gap: 12px;
}

.league-session-detail {
  border: 1px solid rgba(47, 156, 244, 0.22);
  border-radius: 8px;
  background: #f6fbff;
  overflow: hidden;
}

.league-session-detail summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 44px 10px 16px;
  cursor: pointer;
  list-style: none;
}

.league-session-detail summary::-webkit-details-marker {
  display: none;
}

.league-session-detail summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--qcc-blue-dark);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.league-session-detail[open] summary::after {
  content: "-";
}

.league-session-detail summary strong {
  min-width: 0;
  color: #07111d;
  font-size: 0.98rem;
  font-weight: 950;
}

.league-session-detail summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.league-session-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 22px;
  border-top: 1px solid rgba(47, 156, 244, 0.18);
  padding: 0 16px 16px;
}

.league-session-rounds {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 14px;
}

.league-session-round {
  display: grid;
  gap: 7px;
}

.league-session-round h4,
.league-session-leaderboard h4 {
  margin: 0;
  color: var(--qcc-blue-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.league-session-matches {
  display: grid;
  gap: 5px;
}

.league-session-match {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  padding: 6px 10px;
  background: rgba(47, 156, 244, 0.08);
  color: #496074;
  font-size: 0.8rem;
  line-height: 1.2;
}

.league-session-match strong {
  color: #07111d;
  font-weight: 950;
  white-space: nowrap;
}

.league-session-match span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-session-match span:first-child {
  text-align: right;
}

.league-session-match .is-winner {
  color: #07111d;
  font-weight: 950;
}

.league-session-match .is-loser {
  color: #7a8997;
  font-weight: 750;
}

.league-session-match .is-tie {
  color: #27445c;
  font-weight: 900;
}

.league-session-leaderboard {
  display: grid;
  align-content: start;
  gap: 9px;
  padding-top: 14px;
}

.league-session-leaderboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.league-session-leaderboard th,
.league-session-leaderboard td {
  border-bottom: 1px solid rgba(47, 156, 244, 0.2);
  padding: 7px 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.league-session-leaderboard th {
  color: var(--qcc-blue-dark);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.league-session-leaderboard th:nth-child(2),
.league-session-leaderboard td:nth-child(2) {
  max-width: 130px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.league-standings-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.league-standings-table thead tr {
  position: sticky;
  top: 0;
  z-index: 5;
}

.league-standings-table th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #07111d;
  color: var(--white);
  padding: 11px 10px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.league-standings-table td {
  border-bottom: 1px solid rgba(5, 8, 13, 0.08);
  padding: 10px;
  vertical-align: middle;
}

.league-standings-table tbody tr:hover td {
  background: #f6f9fc;
}

.league-rank-cell,
.league-number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  white-space: nowrap;
}

.league-player-cell {
  min-width: 180px;
  font-weight: 900;
}

.league-player-cell strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-session-cell {
  min-width: 260px;
}

.league-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  min-height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
}

.league-sort-button span:last-child {
  color: var(--qcc-blue);
  font-size: 0.78rem;
  line-height: 1;
}

.league-sort-button:focus-visible {
  outline: 2px solid var(--qcc-blue);
  outline-offset: 3px;
}

.league-score-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 240px;
}

.league-score-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(47, 156, 244, 0.26);
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(47, 156, 244, 0.1);
  color: var(--qcc-blue-dark);
  font-size: 0.78rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.league-score-pill.is-dropped {
  border-color: rgba(91, 105, 121, 0.24);
  background: #eef3f8;
  color: var(--muted);
  text-decoration: line-through;
}

.league-score-pill.is-absent {
  border-color: rgba(5, 8, 13, 0.12);
  background: #f2f4f7;
  color: #99a3af;
}

.league-tooltip-value {
  color: var(--qcc-blue-dark);
  cursor: pointer;
}

.league-muted-cell {
  color: var(--muted);
}

.league-standings [data-tip],
.league-standings-table [data-tip] {
  position: relative;
  cursor: pointer;
}

.league-floating-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(440px, calc(100vw - 24px));
  border: 1px solid rgba(47, 156, 244, 0.28);
  border-radius: 8px;
  padding: 11px 12px;
  background: #07111d;
  color: var(--white);
  box-shadow: 0 18px 40px rgba(5, 8, 13, 0.32);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.42;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  white-space: pre-line;
}

.league-floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.league-floating-tooltip.has-rich-content {
  max-width: min(420px, calc(100vw - 24px));
  border-color: rgba(47, 156, 244, 0.34);
  padding: 0;
  background: #edf7ff;
  color: #07111d;
  box-shadow: 0 16px 36px rgba(5, 24, 44, 0.24);
  pointer-events: auto;
  white-space: normal;
}

.league-score-tooltip-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.league-score-tooltip-card > strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.league-score-tooltip-card > p {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.league-score-tooltip-matches {
  display: grid;
  gap: 5px;
}

.league-score-tooltip-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #304357;
  font-size: 0.74rem;
  line-height: 1.2;
}

.league-score-tooltip-row.is-win {
  background: rgba(47, 156, 244, 0.14);
  color: #07518f;
}

.league-score-tooltip-row.is-loss {
  background: rgba(218, 72, 54, 0.12);
  color: #963024;
}

.league-score-tooltip-row.is-tie {
  background: rgba(91, 105, 121, 0.14);
  color: #394656;
}

.league-score-tooltip-row strong {
  color: inherit;
  font-size: 0.8rem;
  font-weight: 950;
  white-space: nowrap;
}

.league-score-tooltip-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-score-tooltip-row span:last-child {
  text-align: right;
}

.league-score-tooltip-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.league-strength-tooltip-card,
.league-star-tooltip-card {
  display: grid;
  gap: 9px;
  width: min(300px, calc(100vw - 48px));
  max-height: 330px;
  overflow: auto;
  padding: 12px;
}

.league-strength-tooltip-card > strong,
.league-star-tooltip-card > strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.league-strength-tooltip-card > p,
.league-star-tooltip-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.league-star-tooltip-card > p {
  color: #07111d;
  font-size: 0.82rem;
  font-weight: 950;
}

.league-strength-tooltip-card table,
.league-star-tooltip-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  line-height: 1.25;
}

.league-strength-tooltip-card th,
.league-strength-tooltip-card td,
.league-star-tooltip-card th,
.league-star-tooltip-card td {
  border-bottom: 1px solid rgba(47, 156, 244, 0.24);
  padding: 5px 7px;
}

.league-strength-tooltip-card th,
.league-star-tooltip-card th {
  color: var(--qcc-blue-dark);
  font-size: 0.66rem;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.league-strength-tooltip-card td,
.league-star-tooltip-card td {
  color: #07111d;
  font-weight: 800;
}

.league-strength-tooltip-card th:nth-child(n + 2),
.league-strength-tooltip-card td:nth-child(n + 2),
.league-star-tooltip-card th:nth-child(n + 2),
.league-star-tooltip-card td:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.league-leaders,
.league-bars,
.league-list {
  display: grid;
  gap: 10px;
}

.league-leader,
.league-list-row,
.league-empty-inline {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(5, 8, 13, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #f6f9fc;
}

.league-leader {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.league-leader span,
.league-list-row span,
.league-empty-inline span {
  color: var(--muted);
  font-size: 0.84rem;
}

.league-leader strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-leader em {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--qcc-blue-dark);
  font-style: normal;
  font-weight: 950;
}

.league-bar-row {
  display: grid;
  gap: 7px;
}

.league-bar-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 850;
}

.league-bar {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf5;
}

.league-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--qcc-blue);
}

.league-trends {
  display: flex;
  align-items: end;
  min-height: 170px;
  gap: 9px;
  border: 1px solid rgba(5, 8, 13, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: #f6f9fc;
}

.league-trend-column {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  flex: 1 1 0;
  min-width: 0;
  height: 140px;
  gap: 6px;
  text-align: center;
}

.league-trend-column span,
.league-trend-column em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-trend-column i {
  display: block;
  width: 100%;
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--qcc-blue), var(--qcc-blue-dark));
}

.league-archive-section {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  border-top: 1px solid rgba(5, 8, 13, 0.12);
  padding-top: 28px;
}

.league-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.league-archive-card {
  display: grid;
  min-height: 170px;
  padding: 18px;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.league-archive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 156, 244, 0.28);
}

.league-archive-card.is-current {
  border-color: rgba(47, 156, 244, 0.42);
  background: linear-gradient(135deg, rgba(47, 156, 244, 0.12), var(--white) 48%);
  box-shadow: 0 18px 48px rgba(47, 156, 244, 0.16);
}

.league-archive-card h3 {
  margin: 8px 0;
  font-size: 1.2rem;
}

.league-archive-card p {
  margin: 0;
  color: var(--muted);
}

.league-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--qcc-blue-soft);
  color: var(--qcc-blue-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.league-card-foot {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.league-card-foot span {
  min-width: 0;
}

.league-card-foot button {
  min-height: 32px;
  border: 1px solid rgba(47, 156, 244, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--white);
  color: var(--qcc-blue-dark);
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.league-card-foot button[aria-current="true"] {
  border-color: var(--qcc-blue);
  background: var(--qcc-blue);
  color: var(--white);
  cursor: default;
}

.tournaments-page {
  background: var(--qcc-black);
}

.tournaments-page .tournament-hero {
  min-height: 46svh;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.96) 0%, rgba(2, 4, 7, 0.88) 36%, rgba(2, 4, 7, 0.46) 72%, rgba(2, 4, 7, 0.22) 100%),
    var(--hero-image, url("photos/tournament-hero-stock.jpg")) center 44% / cover;
}

.tournaments-page .tournament-hero::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 9px), rgba(47, 156, 244, 0.82) calc(100% - 9px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 82px);
  mix-blend-mode: normal;
}

.tournaments-page .eyebrow,
.tournaments-page .lede,
.tournaments-page .hero-card p {
  color: rgba(255, 255, 255, 0.76);
}

.tournaments-page .eyebrow::before {
  background: var(--qcc-blue);
}

.tournaments-page .hero-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 4, 7, 0.46);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.tournaments-page .hero-card::after {
  border-color: rgba(47, 156, 244, 0.38);
}

.tournaments-page .tournament-newsflash {
  position: relative;
  overflow: hidden;
  border-color: rgba(47, 156, 244, 0.48);
}

.tournaments-page .tournament-newsflash::before {
  content: "We have a winner!";
  display: inline-block;
  width: max-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--qcc-blue);
  color: var(--qcc-black);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tournaments-page .tournament-newsflash strong {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.05;
}

.tournaments-page sup {
  position: relative;
  top: -0.25em;
  font-size: 0.48em;
  font-weight: 850;
  line-height: 0;
}

.tournament-shell {
  padding: clamp(34px, 5vw, 64px) 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(47, 156, 244, 0.2), transparent 34%),
    linear-gradient(180deg, #020407, #08111b 46%, #f6f9fc 46%);
}

.tournament-content[hidden] {
  display: none;
}

.tournament-content {
  display: grid;
  gap: 18px;
}

.tournament-history-list {
  display: grid;
  gap: 16px;
}

.tournament-history {
  overflow: hidden;
  border: 1px solid rgba(47, 156, 244, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(2, 4, 7, 0.14);
}

.tournament-history > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, auto) 22px;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 20px 52px 20px 20px;
  cursor: pointer;
  list-style: none;
}

.tournament-history > summary::-webkit-details-marker {
  display: none;
}

.tournament-history > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--qcc-blue-dark);
  font-size: 1.4rem;
  font-weight: 950;
}

.tournament-history[open] > summary::after {
  content: "-";
}

.tournament-history h3 {
  margin: 0 0 5px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
}

.tournament-history p {
  margin: 0;
  color: var(--muted);
}

.tournament-champion-pill {
  display: grid;
  gap: 3px;
  min-width: 220px;
  border: 1px solid rgba(47, 156, 244, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(47, 156, 244, 0.08);
}

.tournament-champion-pill span {
  color: var(--qcc-blue-dark);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tournament-champion-pill strong {
  color: #07111d;
  line-height: 1.15;
}

.tournament-croke-card-link {
  justify-self: end;
  white-space: nowrap;
  border: 1px solid rgba(0, 115, 207, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--qcc-blue-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-decoration: none;
}

.tournament-croke-card-link:hover {
  border-color: var(--qcc-blue);
  background: rgba(47, 156, 244, 0.12);
}

.tournament-history-body {
  display: grid;
  gap: 18px;
  border-top: 1px solid rgba(47, 156, 244, 0.18);
  padding: 18px;
  background: #f6f9fc;
}

.tournament-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tournament-podium-card,
.tournament-archive-section,
.tournament-result-card {
  border: 1px solid rgba(47, 156, 244, 0.18);
  border-radius: 8px;
  background: var(--white);
}

.tournament-podium-card {
  display: grid;
  gap: 4px;
  min-height: 120px;
  padding: 16px;
}

.tournament-podium-card.place-1 {
  border-color: rgba(47, 156, 244, 0.42);
  background: linear-gradient(135deg, rgba(47, 156, 244, 0.15), var(--white));
}

.tournament-podium-card span,
.tournament-place {
  color: var(--qcc-blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.tournament-podium-card strong {
  color: #07111d;
  font-size: 1.05rem;
  line-height: 1.15;
}

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

.tournament-archive-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(5, 8, 13, 0.08);
}

.tournament-section-panel {
  padding: 0;
}

.tournament-section-panel > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 16px;
  align-items: center;
  padding: 18px 48px 18px 18px;
  cursor: pointer;
  list-style: none;
}

.tournament-section-panel > summary::-webkit-details-marker {
  display: none;
}

.tournament-section-panel > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--qcc-blue-dark);
  font-size: 1.2rem;
  font-weight: 950;
}

.tournament-section-panel[open] > summary::after {
  content: "-";
}

.tournament-section-summary h3 {
  margin: 4px 0 0;
}

.tournament-section-summary > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-section-content {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(47, 156, 244, 0.14);
  padding: 0 18px 18px;
}

.tournament-subhead {
  margin: 8px 0 -4px;
  color: var(--qcc-blue-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tournament-round-list {
  display: grid;
  gap: 10px;
}

.tournament-round-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(47, 156, 244, 0.18);
  padding: 12px;
}

.tournament-match-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(5, 8, 13, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: #f9fcff;
}

.tournament-match-card.is-compact {
  min-width: 210px;
  background: var(--white);
}

.tournament-match-head,
.tournament-match-team,
.tournament-result-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tournament-match-head {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tournament-match-team {
  border-left: 3px solid color-mix(in srgb, var(--team-color, var(--qcc-blue)) 55%, transparent);
  border-radius: 4px;
  padding: 7px 8px;
  background: color-mix(in srgb, var(--team-color, var(--qcc-blue)) 9%, white);
}

.tournament-match-team.is-winner {
  border-left-color: var(--team-color, var(--qcc-blue));
  background: color-mix(in srgb, var(--team-color, var(--qcc-blue)) 17%, white);
}

.tournament-match-team div {
  min-width: 0;
}

.tournament-match-team strong,
.tournament-match-team span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-match-team strong {
  color: #07111d;
  font-size: 0.84rem;
}

.tournament-match-team span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.tournament-match-team b {
  color: #07111d;
  font-weight: 950;
  white-space: nowrap;
}

.tournament-game-dots {
  display: flex;
  gap: 4px;
}

.tournament-game-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--dot-color, #d8e2ec);
}

.tournament-game-dots .team-one {
  background: var(--dot-color, var(--qcc-blue));
}

.tournament-game-dots .team-two {
  background: var(--dot-color, #07111d);
}

.tournament-table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(5, 8, 13, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.tournament-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.tournament-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #07111d;
  color: var(--white);
  padding: 10px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tournament-table td {
  border-bottom: 1px solid rgba(5, 8, 13, 0.08);
  padding: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.tournament-table td:first-child,
.tournament-table td:nth-child(n + 3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tournament-table td:nth-child(2) {
  min-width: 220px;
  text-align: left;
}

.tournament-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.tournament-bracket-stack {
  display: grid;
  gap: 16px;
}

.tournament-bracket-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.tournament-bracket-section h4 {
  margin: 0;
  color: var(--qcc-blue-dark);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tournament-bracket-scroller {
  overflow-x: auto;
  border: 1px solid rgba(5, 8, 13, 0.1);
  border-radius: 8px;
  padding: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 156, 244, 0.05) 0 1px, transparent 1px 84px),
    #f6fbff;
}

.tournament-bracket-columns {
  display: flex;
  align-items: start;
  gap: 12px;
  min-width: max-content;
}

.tournament-bracket-column {
  display: grid;
  gap: 10px;
  width: 250px;
}

.tournament-bracket-round {
  color: #07111d;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.tournament-results-list {
  display: grid;
  gap: 8px;
}

.tournament-result-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(260px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.tournament-result-card.place-1 {
  border-color: rgba(47, 156, 244, 0.42);
  background: rgba(47, 156, 244, 0.1);
}

.tournament-result-card strong,
.tournament-result-card span {
  display: block;
}

.tournament-result-card strong {
  color: #07111d;
}

.tournament-result-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.tournament-result-stats {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tournament-result-stats span {
  display: inline-flex;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(47, 156, 244, 0.1);
  color: var(--muted);
  white-space: nowrap;
}

.tournament-result-stats b {
  color: var(--qcc-blue-dark);
}

.qcc-bracket.tournament-bracket-viewer {
  --bracket-column-gap: 12px;
  --bracket-side-inset: 8px;
  --bracket-card-scale: 1;
  --bracket-match-height: 104px;
  --bracket-team-row-height: 32px;
  --bracket-match-header-height: 28px;
  --bracket-viewport-width: 100%;
  --bracket-effective-columns-visible: var(--bracket-visual-columns-visible, var(--bracket-columns-visible));
  --bracket-column-width: calc((var(--bracket-viewport-width) - (var(--bracket-side-inset) * 2) - (var(--bracket-column-gap) * (var(--bracket-effective-columns-visible) - 1))) / var(--bracket-effective-columns-visible));
  --bracket-effective-column-width: max(var(--bracket-column-width), 0px);
  width: 100%;
  min-width: 0;
  color: #07111d;
  overflow: visible;
  user-select: none;
}

.qcc-bracket .bracket-density-shell {
  position: sticky;
  top: 0;
  z-index: 6;
  min-height: 98px;
  touch-action: none;
}

.qcc-bracket .bracket-drop-toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 32px;
  padding: 2px 8px 0;
  pointer-events: none;
}

.qcc-bracket .bracket-drop-toggle {
  position: relative;
  z-index: 4;
  min-height: 30px;
  border: 1px solid rgba(47, 156, 244, 0.28);
  border-radius: 8px;
  padding: 5px 10px;
  background: #f7fcff;
  color: #07111d;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
  white-space: nowrap;
}

.qcc-bracket.show-drop-connectors .bracket-drop-toggle {
  border-color: var(--qcc-blue);
  background: var(--qcc-blue);
  color: var(--white);
}

.qcc-bracket .bracket-density-control {
  position: relative;
  padding: 4px 2px 12px;
}

.qcc-bracket .bracket-density-slider {
  min-height: 46px;
  border: 1px solid rgba(47, 156, 244, 0.24);
  border-radius: 18px;
  padding: 5px;
  background: #eef8ff;
}

.qcc-bracket .bracket-density-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--bracket-round-count, 4), minmax(0, 1fr));
  align-items: center;
  height: 36px;
  border-radius: 14px;
  cursor: grab;
  touch-action: none;
}

.qcc-bracket .bracket-density-pill {
  position: absolute;
  inset-block: 0;
  left: calc((100% / var(--bracket-round-count, 4)) * var(--bracket-visual-start-column, var(--bracket-start-column)));
  width: calc((100% / var(--bracket-round-count, 4)) * var(--bracket-visual-columns-visible, var(--bracket-columns-visible)));
  z-index: 1;
  border-radius: 13px;
}

.qcc-bracket .bracket-density-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: rgba(47, 156, 244, 0.28);
  box-shadow: inset 0 0 0 1px rgba(47, 156, 244, 0.34);
}

.qcc-bracket .bracket-density-drag-handle {
  position: absolute;
  inset-block: 0;
  left: 42px;
  right: 42px;
  z-index: 2;
  border: 0;
  border-radius: 11px;
  padding: 0;
  background: transparent;
  cursor: grab;
}

.qcc-bracket .bracket-density-grip {
  position: absolute;
  top: -7px;
  bottom: -7px;
  z-index: 3;
  width: 52px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
}

.qcc-bracket .bracket-density-grip.start {
  left: -12px;
}

.qcc-bracket .bracket-density-grip.end {
  right: -12px;
}

.qcc-bracket .bracket-density-grip::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 42px;
  border: 1px solid rgba(47, 156, 244, 0.24);
  background: #fff;
  transform: translateY(-50%);
}

.qcc-bracket .bracket-density-grip.start::before {
  left: 12px;
  border-radius: 999px 5px 5px 999px;
}

.qcc-bracket .bracket-density-grip.end::before {
  right: 12px;
  border-radius: 5px 999px 999px 5px;
}

.qcc-bracket .bracket-density-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 15px;
  border-radius: 999px;
  background: var(--qcc-blue-dark);
  transform: translateY(-50%);
}

.qcc-bracket .bracket-density-grip.start::after {
  left: 18px;
}

.qcc-bracket .bracket-density-grip.end::after {
  right: 18px;
}

.qcc-bracket .bracket-density-option {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(7, 17, 29, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.56rem, 1.6vw, 0.72rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  pointer-events: none;
}

.qcc-bracket .bracket-density-option.active {
  color: #07111d;
}

.qcc-bracket .bracket-density-option span {
  display: block;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qcc-bracket .tournament-bracket-scroller {
  overflow: hidden;
  overscroll-behavior-x: contain;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background-color: #07111d;
  background-image:
    linear-gradient(rgba(47, 156, 244, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 156, 244, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.qcc-bracket .tournament-bracket-track {
  position: relative;
  display: flex;
  gap: var(--bracket-column-gap);
  width: max-content;
  min-height: var(--bracket-height, 520px);
  padding: 18px var(--bracket-side-inset) 28px;
  transform: translateX(calc(var(--bracket-visual-start-column, var(--bracket-start-column)) * -1 * (var(--bracket-effective-column-width) + var(--bracket-column-gap))));
  transition: transform 0.22s cubic-bezier(.2, .8, .2, 1);
  user-select: none;
  -webkit-user-select: none;
}

.qcc-bracket .tournament-bracket-track::before {
  content: "";
  position: absolute;
  top: 12px;
  left: var(--bracket-side-inset);
  right: var(--bracket-side-inset);
  z-index: 1;
  height: 58px;
  border: 1px solid rgba(47, 156, 244, 0.38);
  border-radius: 8px;
  background: #0d2235;
  pointer-events: none;
}

.qcc-bracket .tournament-bracket-column {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--bracket-effective-column-width);
  width: var(--bracket-effective-column-width);
  min-height: var(--bracket-height, 520px);
}

.qcc-bracket .tournament-bracket-connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.qcc-bracket .tournament-bracket-connectors path {
  fill: none;
  stroke: rgba(207, 238, 255, 0.82);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.qcc-bracket .tournament-bracket-connectors path.drop-connector {
  opacity: 0;
  stroke: rgba(47, 156, 244, 0.88);
  stroke-width: 3;
  stroke-dasharray: 7 5;
  transition: opacity 160ms ease;
}

.qcc-bracket.show-drop-connectors .tournament-bracket-connectors path.drop-connector,
.qcc-bracket .tournament-bracket-connectors path.drop-connector[data-force-visible="true"] {
  opacity: 0.42;
}

.qcc-bracket .bracket-round-title {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  height: 58px;
  padding: 4px 8px;
  color: #fff;
  font-size: clamp(0.72rem, 1.7vw, 0.88rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  pointer-events: none;
}

.qcc-bracket .bracket-round-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qcc-bracket .tournament-bracket-match-slot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: block;
  height: var(--bracket-match-height);
}

.qcc-bracket .bracket-match-wrapper {
  position: relative;
  display: block;
  transform: scale(var(--bracket-card-scale));
  transform-origin: top center;
}

.qcc-bracket .bracket-match {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid rgba(47, 156, 244, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcff, #eaf5ff);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.qcc-bracket .bracket-match.ready {
  border-color: rgba(47, 156, 244, 0.62);
}

.qcc-bracket .bracket-match.completed {
  border-color: rgba(27, 171, 103, 0.62);
}

.qcc-bracket .bracket-match-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bracket-match-header-height);
  border-bottom: 2px solid rgba(47, 156, 244, 0.22);
  padding: 6px 10px 5px;
  background: linear-gradient(180deg, #ffffff, #e2f3ff);
  color: var(--qcc-blue-dark);
  font-size: clamp(0.64rem, 1.2vw, 0.78rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.qcc-bracket .bracket-team {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: var(--bracket-team-row-height);
  border-bottom: 1px solid rgba(5, 8, 13, 0.08);
  color: #07111d;
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 850;
}

.qcc-bracket .bracket-team:last-of-type {
  border-bottom: 0;
}

.qcc-bracket .bracket-team.winner {
  background: rgba(47, 156, 244, 0.14);
  color: #06111d;
  font-weight: 950;
}

.qcc-bracket .bracket-team.loser {
  color: rgba(7, 17, 29, 0.52);
}

.qcc-bracket .bracket-team.pending,
.qcc-bracket .bracket-team.bye-slot {
  color: rgba(7, 17, 29, 0.48);
}

.qcc-bracket .bracket-team-seed,
.qcc-bracket .bracket-team-score {
  color: var(--qcc-blue-dark);
  font-size: 0.74em;
  font-weight: 950;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qcc-bracket .bracket-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qcc-bracket .bracket-table-info {
  min-height: 20px;
  border-top: 1px solid rgba(47, 156, 244, 0.16);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.qcc-bracket.density-many .bracket-team {
  grid-template-columns: 18px minmax(0, 1fr) 24px;
  font-size: 0.76rem;
}

.board-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle, var(--red) 0 5%, transparent 6%),
    radial-gradient(circle, transparent 0 22%, rgba(255, 253, 248, 0.34) 23% 24%, transparent 25%),
    radial-gradient(circle, transparent 0 46%, rgba(255, 253, 248, 0.28) 47% 48%, transparent 49%),
    radial-gradient(circle, transparent 0 68%, rgba(255, 253, 248, 0.2) 69% 70%, transparent 71%),
    linear-gradient(135deg, #8b552f, #d79e55 48%, #704022);
  box-shadow: var(--shadow);
}

.board-visual::before {
  content: "";
  width: min(360px, 76%);
  aspect-ratio: 1;
  border: 18px solid rgba(16, 19, 23, 0.58);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 5px rgba(255, 253, 248, 0.28),
    0 0 0 3px rgba(255, 253, 248, 0.22);
}

.disc {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 253, 248, 0.32);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 12px 20px rgba(16, 19, 23, 0.26);
}

.disc.red {
  background: var(--red);
}

.d1 {
  left: 24%;
  top: 24%;
}

.d2 {
  left: 62%;
  top: 33%;
}

.d3 {
  left: 49%;
  bottom: 25%;
}

.d4 {
  right: 21%;
  bottom: 18%;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-page .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.shop-toolbar:empty {
  display: none;
}

.shop-toolbar .filter-chip span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.76rem;
}

.shop-toolbar .filter-chip.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.shop-status {
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.shop-hero-actions,
.shop-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-about-trigger {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.shop-about-trigger:hover,
.shop-about-trigger:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

body.shop-about-open {
  overflow: hidden;
}

.shop-about-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  padding: clamp(12px, 3vw, 36px);
  background: rgba(2, 4, 7, 0.78);
  backdrop-filter: blur(8px);
}

.shop-about-modal.is-open {
  display: grid;
  place-items: center;
}

.shop-about-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(1040px, 100%);
  max-height: calc(100svh - 24px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 34px 100px rgba(2, 4, 7, 0.42);
}

.shop-about-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  background: rgba(16, 19, 23, 0.92);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(2, 4, 7, 0.24);
}

.shop-about-photo {
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.shop-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-about-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 3.2vw, 48px);
}

.shop-about-logo {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.shop-about-copy .kicker,
.shop-about-copy h2,
.shop-about-copy p {
  margin: 0;
}

.shop-about-copy h2 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 0.94;
}

.shop-about-copy > p:not(.kicker):not(.shop-about-signoff) {
  color: var(--muted);
  line-height: 1.65;
}

.shop-about-signoff {
  font-weight: 950;
}

.shop-about-actions {
  margin-top: 6px;
}

.filter-chip {
  min-height: 38px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--white);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 720px) {
  .shop-about-modal {
    padding: 0;
  }

  .shop-about-dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .shop-about-photo {
    min-height: 0;
    height: 250px;
  }

  .shop-about-copy {
    padding: 28px 20px 36px;
  }

  .shop-about-logo {
    width: 56px;
    height: 56px;
  }
}

.calendar-page .filter-chip {
  min-height: 32px;
  border-color: rgba(5, 8, 13, 0.12);
  padding: 6px 11px;
  background: var(--white);
  color: var(--muted);
}

.filter-chip.is-active {
  border-color: var(--qcc-blue);
  background: var(--qcc-blue);
  color: var(--white);
}

.product-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.shop-product-card {
  align-content: start;
  padding: 0;
  overflow: hidden;
}

.product-card-copy {
  display: grid;
  gap: 13px;
  padding: 0 18px 18px;
}

.product-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.product-title-row h3 {
  margin: 0;
}

.product-title-row > strong {
  color: var(--qcc-blue-dark);
  font-size: 0.9rem;
  white-space: nowrap;
}

.product-description-copy {
  margin: 0;
  line-height: 1.55;
}

.product-more-details {
  border-block: 1px solid var(--line);
}

.product-more-details summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--qcc-blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.product-more-details summary::-webkit-details-marker {
  display: none;
}

.product-more-details summary span:last-child {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.product-more-details[open] summary span:last-child {
  transform: rotate(45deg);
}

.product-information-list {
  display: grid;
  gap: 16px;
  padding: 2px 0 14px;
}

.product-information-section {
  display: grid;
  gap: 7px;
}

.product-information-section h4 {
  margin: 0;
  font-size: 0.82rem;
}

.product-rich-text {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.product-rich-text p,
.product-rich-text ul,
.product-rich-text ol {
  margin: 0;
}

.product-rich-text ul,
.product-rich-text ol {
  display: grid;
  gap: 5px;
  padding-left: 20px;
}

.product-art {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(8, 120, 93, 0.16), rgba(35, 108, 162, 0.16)),
    #e9ece7;
}

.product-art::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 19, 23, 0.09);
}

.product-art-live {
  min-height: 0;
  aspect-ratio: 4 / 4.25;
  border-radius: 6px 6px 0 0;
  background: #f2f4f6;
}

.product-owner-badge {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 12px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.product-owner-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-owner-badge-qcc img {
  width: 24px;
  height: 34px;
}

.product-art-live::after {
  display: none;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.18s ease;
}

.product-media {
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f2f4f6;
}

.shop-product-card[hidden] {
  display: none !important;
}

.product-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(5, 8, 13, 0.78);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.product-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px 12px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.product-thumbnails[hidden] {
  display: none;
}

.product-thumbnail {
  display: block;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  padding: 2px;
  background: var(--white);
  cursor: pointer;
  scroll-snap-align: start;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.product-thumbnail:hover,
.product-thumbnail:focus-visible {
  border-color: rgba(35, 108, 162, 0.5);
  outline: none;
}

.product-thumbnail.is-active {
  border-color: var(--qcc-blue);
  box-shadow: 0 0 0 2px rgba(35, 108, 162, 0.13);
}

.product-choice {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.product-choice legend,
.product-option-label > span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-choice legend strong {
  margin-left: 5px;
  color: var(--ink);
  font-weight: 800;
  text-transform: none;
}

.product-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-swatch {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 3px;
  background: transparent;
  cursor: pointer;
}

.product-swatch span {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(5, 8, 13, 0.22);
  border-radius: inherit;
  background: var(--product-swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.product-swatch:hover,
.product-swatch:focus-visible {
  border-color: rgba(35, 108, 162, 0.48);
  outline: none;
}

.product-swatch.is-active {
  border-color: var(--qcc-blue);
  box-shadow: 0 0 0 2px rgba(35, 108, 162, 0.13);
}

.product-option-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.product-option-label select {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px 34px 8px 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: none;
}

.product-card-loading {
  min-height: 520px;
  border-color: transparent;
  background: linear-gradient(110deg, #edf0f3 8%, #f8fafb 18%, #edf0f3 33%);
  background-size: 200% 100%;
  animation: product-loading 1.25s linear infinite;
}

@keyframes product-loading {
  to { background-position-x: -200%; }
}

.shop-error {
  grid-column: 1 / -1;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
  text-align: center;
}

.shirt,
.hoodie,
.cap,
.mug,
.sticker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.shirt {
  width: 126px;
  height: 134px;
  clip-path: polygon(28% 0, 72% 0, 100% 20%, 86% 44%, 78% 36%, 78% 100%, 22% 100%, 22% 36%, 14% 44%, 0 20%);
  background: var(--ink);
}

.hoodie {
  width: 132px;
  height: 138px;
  border-radius: 18px 18px 8px 8px;
  background: var(--red);
}

.hoodie::before {
  content: "";
  position: absolute;
  top: -16px;
  width: 62px;
  height: 52px;
  border: 9px solid #8d1828;
  border-bottom: 0;
  border-radius: 48px 48px 8px 8px;
}

.cap {
  width: 140px;
  height: 74px;
  border-radius: 72px 72px 22px 22px;
  background: var(--green);
}

.cap::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: 0;
  width: 70px;
  height: 24px;
  border-radius: 0 60px 20px 0;
  background: #07503f;
}

.mug {
  width: 110px;
  height: 126px;
  border: 8px solid #e0e5e6;
  border-radius: 8px 8px 20px 20px;
  background: #fff;
}

.mug::after {
  content: "";
  position: absolute;
  right: -38px;
  top: 30px;
  width: 46px;
  height: 54px;
  border: 10px solid #e0e5e6;
  border-left: 0;
  border-radius: 0 40px 40px 0;
}

.sticker {
  width: 128px;
  height: 128px;
  border: 7px solid var(--gold);
  border-radius: 50%;
  background: var(--white);
}

.product-badge {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.add-to-cart {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.add-to-cart:hover {
  background: var(--qcc-blue-dark);
}

.add-to-cart:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.story-card,
.rule-card,
.archive-card {
  padding: 22px;
}

.panel-pad {
  padding: 22px;
}

.story-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.shot-icon {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

.shot-icon::before,
.shot-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.shot-icon::before {
  inset: 18px;
  border: 3px solid var(--ink);
}

.shot-icon::after {
  width: 18px;
  height: 18px;
  right: 17px;
  top: 18px;
  background: var(--red);
  box-shadow:
    -34px 30px 0 var(--ink),
    16px 38px 0 var(--green);
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 16px;
}

.photo-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(16, 19, 23, 0.46), rgba(16, 19, 23, 0.1)),
    url("crokinole-club-night.png") center / cover;
  box-shadow: 8px 8px 0 var(--ink);
}

.photo-tile:nth-child(2) {
  background:
    radial-gradient(circle at 34% 46%, var(--red) 0 8%, transparent 9%),
    radial-gradient(circle at 56% 38%, var(--ink) 0 7%, transparent 8%),
    radial-gradient(circle at 48% 65%, var(--green) 0 7%, transparent 8%),
    linear-gradient(135deg, #e8c782, #8d5632);
}

.photo-tile:nth-child(3) {
  background:
    repeating-linear-gradient(135deg, rgba(255, 253, 248, 0.1) 0 14px, transparent 15px 28px),
    var(--blue);
}

.photo-tile span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--white);
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.field label {
  color: #34404a;
  font-size: 0.82rem;
  font-weight: 950;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.join-form {
  display: grid;
  gap: 14px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: var(--red);
}

.join-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 34px clamp(16px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  display: grid;
  width: min(420px, 100%);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  background: var(--white);
  box-shadow: -24px 0 60px rgba(16, 19, 23, 0.18);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head,
.cart-foot {
  padding: 20px;
  border-bottom: 2px solid var(--line);
}

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

.cart-head h3 {
  margin-bottom: 0;
}

.cart-foot {
  border-top: 2px solid var(--line);
  border-bottom: 0;
}

.cart-lines {
  min-height: calc(100svh - 168px);
  max-height: calc(100svh - 168px);
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.cart-empty p {
  margin: 0;
}

.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 2px solid var(--line);
  padding: 14px 0;
}

.cart-line:first-child {
  padding-top: 0;
}

.cart-line span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-line > img {
  width: 58px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper-2);
}

.cart-line-copy {
  min-width: 0;
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
}

.cart-line-actions button {
  min-width: 28px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.cart-line-actions .cart-remove {
  margin-left: 4px;
  border: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  transform: translate(-50%, 20px);
  opacity: 0;
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1240px) {
  .calendar-page .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    position: fixed;
    inset: 76px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 2px solid rgba(255, 253, 248, 0.16);
    border-radius: 8px;
    padding: 10px;
    background: rgba(16, 19, 23, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .section-head,
  .split-grid,
  .route-layout,
  .home-cta {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }

  .product-grid,
  .event-grid,
  .archive-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .about-layout,
  .about-details,
  .gallery-section-head,
  .join-form-layout,
  .crokinole-playground-layout {
    grid-template-columns: 1fr;
  }

  .crokinole-playground-copy {
    max-width: 720px;
  }

  .join-form-copy {
    position: static;
  }

  .join-path-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .about-layout > div:first-child,
  .history-rail {
    position: static;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .league-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .league-recap-grid,
  .league-recap-hero {
    grid-template-columns: 1fr;
  }

  .league-recap-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .league-recap-leaders {
    grid-template-columns: 1fr;
  }

  .league-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .league-panel-standings {
    grid-row: auto;
  }

  .league-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-podium,
  .tournament-round-body {
    grid-template-columns: 1fr;
  }

  .tournament-result-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .tournament-result-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .home-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:nth-child(n) {
    transform: none;
  }
}

@media (max-width: 720px) {
  html {
    min-width: 0;
  }

  .crokinole-game-shell {
    grid-template-columns: 1fr;
  }

  .crokinole-tour-prompt {
    margin-top: 14px;
  }

  .crokinole-shot-prompt {
    margin-top: 14px;
  }

  .crokinole-flow-prompt,
  .crokinole-scoring-prompt,
  .crokinole-freeplay-prompt {
    margin-top: 14px;
  }

  .topbar {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand span:last-child,
  .cart-button > span:not(.cart-count) {
    display: none;
  }

  .page-hero {
    min-height: 58svh;
    padding: 46px 16px;
  }

  .home-route-grid {
    grid-template-columns: 1fr;
  }

  .home-route-card {
    min-height: 220px;
  }

  .home-photo-panel,
  .home-photo-panel img {
    min-height: 340px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .hero-actions,
  .action-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .product-grid,
  .event-grid,
  .archive-grid,
  .rules-grid,
  .gallery-grid,
  .gallery-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .shop-page .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-page {
    background: #f3f5f7;
  }

  .shop-page .page-hero {
    min-height: 0;
    padding: 28px 18px 30px;
    background-position: center 58%;
  }

  .shop-page .hero-grid {
    gap: 0;
  }

  .shop-page .page-hero .eyebrow {
    margin-bottom: 12px;
  }

  .shop-page .page-hero h1 {
    max-width: 340px;
    margin-bottom: 13px;
    font-size: clamp(2.75rem, 14vw, 3.45rem);
    line-height: 0.9;
  }

  .shop-page .page-hero .lede {
    margin-bottom: 0;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .shop-page .hero-card {
    display: none;
  }

  .shop-page .section {
    padding: 30px 12px 54px;
  }

  .shop-page .section-white {
    background: #f3f5f7;
  }

  .shop-page .section-head {
    gap: 10px;
    margin-bottom: 18px;
  }

  .shop-page .section-head .kicker {
    margin-bottom: 7px;
  }

  .shop-page .section-head h2 {
    font-size: clamp(2rem, 9vw, 2.25rem);
    line-height: 0.98;
  }

  .shop-page .section-head > p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .shop-page .shop-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 11px;
    overflow: visible;
    padding: 0;
  }

  .shop-page .shop-toolbar::-webkit-scrollbar,
  .shop-page .product-thumbnails::-webkit-scrollbar {
    display: none;
  }

  .shop-page .shop-toolbar .filter-chip {
    width: 100%;
    min-height: 40px;
    padding: 8px 9px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .shop-page .shop-status {
    margin: 0 0 14px;
    font-size: 0.82rem;
  }

  .shop-page .shop-product-grid {
    gap: 16px;
  }

  .shop-page .shop-product-card {
    border-width: 1px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(16, 19, 23, 0.09);
  }

  .shop-page .product-art-live {
    aspect-ratio: auto;
    border-radius: 13px 13px 0 0;
  }

  .shop-page .product-image {
    height: auto;
    object-fit: contain;
  }

  .shop-page .product-photo-count {
    right: 9px;
    bottom: 9px;
  }

  .shop-page .product-owner-badge {
    top: 4px;
    left: 9px;
  }

  .shop-page .product-thumbnails {
    gap: 7px;
    padding: 8px 10px 9px;
    scrollbar-width: none;
  }

  .shop-page .product-thumbnail {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }

  .shop-page .product-thumbnail img {
    object-fit: contain;
  }

  .shop-page .product-card-copy {
    gap: 12px;
    padding: 0 14px 15px;
  }

  .shop-page .product-title-row {
    gap: 10px;
    align-items: center;
  }

  .shop-page .product-title-row h3 {
    font-size: 1.13rem;
    line-height: 1.15;
  }

  .shop-page .product-title-row > strong {
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(35, 108, 162, 0.09);
    font-size: 0.8rem;
  }

  .shop-page .product-description-copy {
    color: #45515a;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .shop-page .product-more-details {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding-inline: 11px;
    background: #f8fafb;
  }

  .shop-page .product-more-details summary {
    min-height: 44px;
  }

  .shop-page .product-information-list {
    gap: 14px;
    padding-bottom: 12px;
  }

  .shop-page .product-swatch {
    width: 42px;
    height: 42px;
  }

  .shop-page .product-swatch span {
    width: 28px;
    height: 28px;
  }

  .shop-page .product-option-label select {
    min-height: 48px;
    border-width: 1px;
    border-radius: 9px;
    font-size: 0.95rem;
  }

  .shop-page .add-to-cart {
    min-height: 48px;
    border-radius: 9px;
    font-size: 0.96rem;
  }

  .shop-page .product-card-loading {
    min-height: 540px;
  }

  .calendar-page .event-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .calendar-page .filter-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .calendar-page .filter-group h4 {
    min-height: 0;
  }

  .calendar-page .filter-options {
    gap: 8px;
  }

  .calendar-page .filter-chip {
    min-height: 36px;
    padding: 7px 11px;
  }

  .calendar-page .event-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-page .event-card {
    min-height: 0;
  }

  .calendar-page .event-top {
    min-height: 0;
  }

  .gallery-card,
  .gallery-card-large {
    min-height: 320px;
  }

  .bylaws-modal {
    padding: 0;
  }

  .bylaws-dialog {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
  }

  .league-shell {
    padding-block: 22px;
  }

  .league-season-panel,
  .league-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .league-season-actions {
    justify-content: stretch;
  }

  .league-stats,
  .league-recap-podium,
  .league-recap-stats,
  .league-archive-grid {
    grid-template-columns: 1fr;
  }

  .league-recap-toolbar,
  .league-recap-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .league-recap-card {
    margin: 10px;
    padding: 14px;
  }

  .league-recap-champion-block {
    grid-template-columns: 1fr;
  }

  .league-recap-champion-badge {
    width: 78px;
    height: 78px;
  }

  .league-recap-leader-card {
    min-height: 132px;
    padding: 76px 12px 12px;
  }

  .league-recap-side-badges {
    top: 14px;
    transform: none;
  }

  .league-recap-side-left {
    left: calc(50% - 78px);
  }

  .league-recap-side-right {
    right: calc(50% - 78px);
  }

  .league-recap-side-badges img {
    width: 52px;
    height: 52px;
  }

  .league-trends {
    overflow-x: auto;
  }

  .league-trend-column {
    min-width: 42px;
  }

  .league-session-detail summary {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 42px;
  }

  .league-session-detail summary span {
    grid-column: auto;
    white-space: normal;
  }

  .league-session-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-inline: 10px;
  }

  .league-session-match {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .tournament-history > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px 44px 16px 16px;
  }

  .tournament-history > summary::after,
  .tournament-section-panel > summary::after,
  .league-session-detail summary::after {
    top: 18px;
    transform: none;
  }

  .tournament-champion-pill {
    min-width: 0;
  }

  .tournament-croke-card-link {
    justify-self: start;
  }

  .tournament-history-body,
  .tournament-archive-section {
    padding: 12px;
  }

  .tournament-section-panel {
    padding: 0;
  }

  .tournament-section-panel > summary {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 42px 14px 14px;
  }

  .tournament-section-summary > span {
    grid-column: auto;
  }

  .tournament-section-content {
    padding: 0 12px 12px;
  }

  .tournament-bracket-column {
    width: min(230px, calc(100vw - 76px));
  }

  .score-row {
    grid-template-columns: 42px minmax(0, 1fr) 54px;
  }

  .score-row span:nth-child(4) {
    display: none;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}
