/* Kudi Clash design system.
 *
 * One stylesheet, no framework. Tokens first, then base styles, then
 * components prefixed kc-. Pages that still use the old Vue/Vuetify stack
 * extend legacy_base.html, which loads the old frameworks after this file
 * and renders inside a light .kc-legacy area.
 */

/* Fonts are served by the app (SIL Open Font License, see fonts/*/LICENSE)
 * rather than fetched from Google, so pages render the same on slow or
 * filtered connections. Latin subsets only. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow/barlow-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  --kc-bg: #0B0F14;
  --kc-surface: #141A22;
  --kc-surface-2: #1E2733;
  --kc-border: #273140;
  --kc-border-soft: #1E2733;
  --kc-text: #F2F5F7;
  --kc-muted: #9AA7B5;
  --kc-dim: #6B7A8A;
  --kc-accent: #35E08A;
  --kc-accent-soft: rgba(53, 224, 138, 0.12);
  --kc-accent-ink: #0B0F14;
  --kc-gold: #F3C13A;
  --kc-gold-soft: rgba(243, 193, 58, 0.12);
  --kc-live: #FF6B70;
  --kc-live-soft: rgba(255, 107, 112, 0.14);
  --kc-danger: #FF8A8E;
  --kc-danger-soft: #2A1B1F;
  --kc-radius: 14px;
  --kc-radius-sm: 10px;
  --kc-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kc-display: 'Barlow', 'Manrope', system-ui, sans-serif;
  --kc-header-h: 64px;
  --kc-tabbar-h: 76px;
  --kc-max: 1200px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kc-bg);
  color: var(--kc-text);
  font-family: var(--kc-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #FFFFFF; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .kc-display {
  font-family: var(--kc-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0; }
.kc-main { flex: 1 1 auto; width: 100%; }
.kc-container { width: 100%; max-width: var(--kc-max); margin: 0 auto; padding: 0 20px; }
.kc-page { padding-top: 24px; padding-bottom: 48px; }
.kc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kc-muted); }
.kc-muted { color: var(--kc-muted); }
.kc-dim { color: var(--kc-dim); }
.kc-gold { color: var(--kc-gold); }
.kc-accent { color: var(--kc-accent); }
.kc-small { font-size: 13px; }
.kc-strong { font-weight: 800; }
.kc-center { text-align: center; }
.kc-stack { display: flex; flex-direction: column; gap: 12px; }
.kc-stack--lg { gap: 20px; }
.kc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kc-row--between { justify-content: space-between; }
.kc-grow { flex: 1 1 auto; min-width: 0; }
.kc-link { color: var(--kc-accent); font-weight: 700; }
.kc-link:hover { color: #7CF2B4; }
.kc-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-hide-mobile { display: none; }
@media (min-width: 760px) {
  .kc-hide-mobile { display: initial; }
  .kc-hide-desktop { display: none; }
  h1 { font-size: 36px; }
}

/* -------------------------------------------------------------- header */
.kc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kc-border-soft);
}
.kc-header__inner {
  height: var(--kc-header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
/* Explicit colours so a legacy page's Bulma `a` rule cannot recolour the shell. */
.kc-header a, .kc-tabbar a, .kc-toasts a, .kc-footer a { color: var(--kc-text); }
.kc-header a:hover { color: #FFFFFF; }
.kc-header .kc-brand { color: var(--kc-text); }
.kc-brand {
  font-family: var(--kc-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.kc-brand span { color: var(--kc-accent); }
.kc-nav { display: none; gap: 4px; }
.kc-nav a {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--kc-muted);
  border: 1px solid transparent;
}
.kc-nav a:hover { color: var(--kc-text); }
.kc-nav a.is-active { color: var(--kc-text); background: var(--kc-surface); border-color: var(--kc-border); font-weight: 800; }
.kc-header__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 760px) {
  .kc-nav { display: flex; }
  .kc-header__end { gap: 10px; }
}
.kc-live-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--kc-live); display: inline-block; }

/* --------------------------------------------------------------- pills */
.kc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.kc-pill--gold { color: var(--kc-gold); background: var(--kc-gold-soft); border-color: transparent; }
.kc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--kc-surface-2);
  border: 1px solid var(--kc-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kc-display);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- buttons */
.kc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--kc-border);
  background: var(--kc-surface);
  color: var(--kc-text);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  transition: background 120ms, border-color 120ms, transform 80ms;
}
.kc-btn:hover { background: var(--kc-surface-2); color: var(--kc-text); }
.kc-btn:active { transform: translateY(1px); }
.kc-btn:disabled, .kc-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.kc-btn--primary { background: var(--kc-accent); border-color: var(--kc-accent); color: var(--kc-accent-ink); }
.kc-btn--primary:hover { background: #4DE89A; border-color: #4DE89A; color: var(--kc-accent-ink); }
.kc-btn--ghost { background: transparent; border-color: transparent; color: var(--kc-muted); }
.kc-btn--ghost:hover { background: var(--kc-surface); color: var(--kc-text); }
.kc-btn--danger { background: var(--kc-danger-soft); border-color: #4A2A30; color: var(--kc-danger); }
.kc-btn--block { width: 100%; height: 52px; font-size: 16px; border-radius: 14px; }
.kc-btn--sm { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
.kc-btn--icon { width: 40px; height: 40px; padding: 0; border-radius: 999px; }

/* --------------------------------------------------------------- cards */
.kc-card {
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  border-radius: var(--kc-radius);
  padding: 20px;
}
.kc-card--accent { background: linear-gradient(160deg, #18281F 0%, #141A22 60%); border-color: #2B4A39; }
.kc-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--kc-surface-2);
  color: var(--kc-muted);
}
.kc-chip--accent { background: var(--kc-accent); color: var(--kc-accent-ink); }
.kc-chip--gold { background: var(--kc-gold-soft); color: var(--kc-gold); }
.kc-chip--live { background: var(--kc-live-soft); color: var(--kc-danger); gap: 5px; }

/* --------------------------------------------------------------- forms */
.kc-field { display: flex; flex-direction: column; gap: 6px; }
.kc-label { font-size: 13px; font-weight: 700; color: var(--kc-muted); }
.kc-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--kc-bg);
  border: 1px solid var(--kc-border);
  color: var(--kc-text);
  font-size: 15px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.kc-input::placeholder { color: var(--kc-dim); }
.kc-input:focus { border-color: var(--kc-accent); box-shadow: 0 0 0 3px var(--kc-accent-soft); }
.kc-input.is-invalid { border-color: var(--kc-danger); }
.kc-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--kc-muted); }
.kc-check input { width: 18px; height: 18px; accent-color: var(--kc-accent); margin: 0; }
.kc-help { font-size: 12px; color: var(--kc-dim); }
.kc-error {
  font-size: 13px;
  font-weight: 700;
  color: var(--kc-danger);
  background: var(--kc-danger-soft);
  border: 1px solid #4A2A30;
  border-radius: 10px;
  padding: 10px 12px;
}
.kc-form { display: flex; flex-direction: column; gap: 16px; }
.kc-form ul.errorlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.kc-form ul.errorlist li { font-size: 13px; font-weight: 700; color: var(--kc-danger); }

/* ---------------------------------------------------------------- auth */
.kc-auth { max-width: 440px; margin: 0 auto; padding: 32px 0 48px; display: flex; flex-direction: column; gap: 20px; }
.kc-auth__card { background: var(--kc-surface); border: 1px solid var(--kc-border); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.kc-auth__head { display: flex; flex-direction: column; gap: 6px; }
.kc-auth__head p { color: var(--kc-muted); font-weight: 600; }
.kc-auth__foot { text-align: center; color: var(--kc-muted); font-weight: 600; font-size: 14px; }
@media (min-width: 760px) {
  .kc-auth { padding-top: 56px; }
  .kc-auth__card { padding: 32px; }
}

/* -------------------------------------------------------------- toasts */
.kc-toasts { position: fixed; top: calc(var(--kc-header-h) + 12px); left: 0; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.kc-toast {
  pointer-events: auto;
  max-width: 560px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--kc-surface-2);
  border: 1px solid var(--kc-border);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: kc-toast-in 200ms ease-out;
}
.kc-toast--success { border-color: #2B4A39; background: #15201B; color: var(--kc-accent); }
.kc-toast--error { border-color: #4A2A30; background: var(--kc-danger-soft); color: var(--kc-danger); }
.kc-toast--warning { border-color: #4A3D16; background: #26200F; color: var(--kc-gold); }
.kc-toast__close { margin-left: auto; background: none; border: 0; color: inherit; opacity: 0.7; padding: 4px; }
.kc-toast__close:hover { opacity: 1; }
@keyframes kc-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- tab bar */
.kc-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--kc-tabbar-h) + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(11, 15, 20, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--kc-border-soft);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.kc-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 700;
  color: var(--kc-muted);
  border-radius: 10px;
}
.kc-tabbar a.is-active { color: var(--kc-accent); font-weight: 800; }
body.has-tabbar .kc-main { padding-bottom: calc(var(--kc-tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  .kc-tabbar { display: none; }
  body.has-tabbar .kc-main { padding-bottom: 0; }
}

/* -------------------------------------------------------------- footer */
.kc-footer { border-top: 1px solid var(--kc-border-soft); padding: 24px 0; color: var(--kc-dim); font-size: 13px; font-weight: 600; }
.kc-footer .kc-container { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }

/* --------------------------------------------------------------- lobby */
.kc-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.kc-layout__main { flex: 999 1 560px; min-width: 0; }
.kc-layout__aside { flex: 1 1 300px; min-width: 0; }
.kc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kc-chip--lg { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; gap: 6px; }
.kc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.kc-chips::-webkit-scrollbar { display: none; }
.kc-chip-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--kc-border);
  background: var(--kc-surface);
  color: var(--kc-text);
  font-weight: 700;
  font-size: 13px;
}
.kc-chip-btn:hover { border-color: #3A4756; color: var(--kc-text); }
.kc-chip-btn.is-active { background: var(--kc-accent); border-color: var(--kc-accent); color: var(--kc-accent-ink); font-weight: 800; }
.kc-progress { height: 6px; border-radius: 999px; background: var(--kc-border); overflow: hidden; }
.kc-progress__bar { height: 100%; border-radius: 999px; background: var(--kc-accent); }
.kc-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.kc-stat { display: flex; flex-direction: column; }
.kc-stat__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kc-muted); }
.kc-stat__value { font-weight: 800; font-size: 15px; }

.kc-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, #18281F 0%, #141A22 55%);
  border: 1px solid #2B4A39;
  color: var(--kc-text);
  transition: border-color 120ms;
}
.kc-feature:hover { border-color: var(--kc-accent); color: var(--kc-text); }
.kc-feature__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kc-feature__head h2 { font-size: 22px; }
.kc-feature__pool { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.kc-feature__amount { font-family: var(--kc-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--kc-gold); white-space: nowrap; }
.kc-feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (min-width: 760px) {
  .kc-feature { padding: 22px 24px; }
  .kc-feature__head h2 { font-size: 26px; }
  .kc-feature__amount { font-size: 32px; }
}

.kc-contest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  color: var(--kc-text);
  transition: border-color 120ms, background 120ms;
}
.kc-contest:hover { border-color: #3A4756; background: #171E28; color: var(--kc-text); }
.kc-contest--past { opacity: 0.8; }
.kc-tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: rgba(154, 167, 181, 0.14); color: var(--kc-text); }
.kc-tile--gold { background: var(--kc-gold-soft); color: var(--kc-gold); }
.kc-tile--accent { background: var(--kc-accent-soft); color: var(--kc-accent); }
.kc-contest__body { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.kc-contest__name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 800; font-size: 15px; min-width: 0; line-height: 1.25; }
.kc-contest__meta { font-size: 12px; font-weight: 600; color: var(--kc-muted); }
.kc-contest__prize { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; text-align: right; max-width: 40%; }
.kc-contest__amount { font-family: var(--kc-display); font-weight: 800; font-size: 18px; line-height: 1; color: var(--kc-gold); white-space: nowrap; }
.kc-contest__label { font-size: 11px; font-weight: 700; color: var(--kc-muted); }

.kc-fixtures { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.kc-fixtures::-webkit-scrollbar { display: none; }
.kc-fixture { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--kc-bg); border: 1px solid var(--kc-border-soft); min-width: 120px; }
.kc-fixture__teams { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.kc-fixture__team { display: inline-flex; align-items: center; gap: 4px; }
.kc-fixture__team img { width: 18px; height: 18px; object-fit: contain; }
.kc-fixture__team img[src=""] { display: none; }
.kc-fixture__time { font-size: 11px; font-weight: 700; color: var(--kc-muted); }
@media (min-width: 760px) {
  .kc-fixtures { flex-direction: column; gap: 0; overflow: visible; }
  .kc-fixture { flex-direction: row; justify-content: space-between; padding: 9px 0; border: 0; border-top: 1px solid var(--kc-border-soft); border-radius: 0; background: transparent; min-width: 0; }
  .kc-fixture__teams { font-size: 14px; }
}
.kc-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.kc-steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.4; }
.kc-steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 999px; background: var(--kc-accent); color: var(--kc-accent-ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.kc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 20px; border-radius: 16px; border: 1px dashed var(--kc-border); color: var(--kc-muted); }
.kc-empty h3 { color: var(--kc-text); }

/* --------------------------------------------------------- contest page */
[v-cloak] { display: none !important; }
.kc-contest-head { display: flex; align-items: flex-start; gap: 12px; }
.kc-contest-head__title { font-size: 24px; }
.kc-contest-head__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px; font-size: 13px; font-weight: 600; color: var(--kc-muted); }
.kc-contest-head__meta a { color: var(--kc-text); text-decoration: underline; text-decoration-color: var(--kc-border); }
.kc-contest-head__pool { display: none; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.kc-contest-head__amount { font-family: var(--kc-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--kc-gold); }
@media (min-width: 760px) {
  .kc-contest-head__title { font-size: 30px; }
  .kc-contest-head__pool { display: flex; }
}
.kc-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--kc-border-soft); scrollbar-width: none; }
.kc-tabs::-webkit-scrollbar { display: none; }
.kc-tab { flex: 0 0 auto; height: 44px; padding: 0 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--kc-muted); font-weight: 700; font-size: 14px; margin-bottom: -1px; }
.kc-tab:hover { color: var(--kc-text); }
.kc-tab.is-active { color: var(--kc-text); border-bottom-color: var(--kc-accent); font-weight: 800; }
.kc-tabpanel[hidden] { display: none; }
.kc-right { text-align: right; }
.kc-table-wrap { border-radius: 14px; background: var(--kc-surface); border: 1px solid var(--kc-border); overflow-x: auto; }
.kc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kc-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kc-muted); }
.kc-table td { padding: 12px 16px; border-top: 1px solid var(--kc-border-soft); vertical-align: middle; }
.kc-table tr.is-me td { background: #15201B; }
.kc-fixtures--list { flex-direction: column; gap: 0; overflow: visible; }
.kc-fixtures--list .kc-fixture { flex-direction: row; justify-content: space-between; padding: 10px 0; border: 0; border-top: 1px solid var(--kc-border-soft); border-radius: 0; background: transparent; min-width: 0; }
.kc-fixtures--list .kc-fixture:first-child { border-top: 0; padding-top: 0; }
.kc-fixtures--list .kc-fixture__teams { font-size: 15px; }

/* ------------------------------------------------------------ builder */
.kc-builder { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "panel" "list" "cta"; gap: 16px; align-items: start; }
.kc-builder__panel { grid-area: panel; }
.kc-builder__list { grid-area: list; min-width: 0; }
.kc-builder__cta { grid-area: cta; position: fixed; left: 12px; right: 12px; bottom: calc(var(--kc-tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 30; padding: 10px; border-radius: 16px; background: rgba(20, 26, 34, 0.96); border: 1px solid var(--kc-border); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 6px; }
.kc-builder { padding-bottom: 110px; }
.kc-builder__panel-cta { display: none; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px solid var(--kc-border-soft); }
@media (min-width: 960px) {
  .kc-builder { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "list panel"; gap: 16px 24px; padding-bottom: 0; }
  .kc-builder__panel { position: sticky; top: calc(var(--kc-header-h) + 16px); }
  .kc-builder__panel-cta { display: flex; }
  .kc-builder__cta { display: none; }
}
.kc-budget { font-family: var(--kc-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--kc-accent); }
.kc-budget small { font-size: 14px; font-weight: 700; color: var(--kc-muted); }
.kc-budget.is-tight { color: var(--kc-gold); }
.kc-progress__bar.is-gold { background: var(--kc-gold); }
.kc-slots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kc-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kc-slot__box { width: 100%; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--kc-display); font-weight: 800; font-size: 13px; border: 1px dashed #3A4756; color: var(--kc-muted); background: transparent; padding: 0; }
.kc-slot.is-filled .kc-slot__box { border: 1px solid var(--kc-accent); background: #1E2E26; color: var(--kc-accent); cursor: pointer; }
.kc-slot.is-filled .kc-slot__box:hover { border-color: var(--kc-danger); color: var(--kc-danger); background: var(--kc-danger-soft); }
.kc-slot__label { font-size: 10px; font-weight: 700; color: var(--kc-muted); letter-spacing: 0.06em; }
.kc-picked { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: 6px; }
@media (min-width: 960px) { .kc-picked { display: flex; } }
.kc-picked__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--kc-border-soft); font-size: 13px; min-width: 0; }
.kc-picked__price { font-family: var(--kc-display); font-weight: 800; color: var(--kc-gold); }
.kc-avatar-sm { width: 32px; height: 32px; border-radius: 999px; background: var(--kc-surface-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--kc-display); font-weight: 800; font-size: 12px; text-transform: uppercase; flex: 0 0 auto; overflow: hidden; }
.kc-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.kc-builder__tools { display: flex; flex-direction: column; gap: 10px; }
.kc-chips button.kc-chip-btn { cursor: pointer; }
.kc-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--kc-surface); border: 1px solid var(--kc-border); color: var(--kc-muted); min-width: 0; }
.kc-search input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none; color: var(--kc-text); font-size: 14px; }
.kc-search input::placeholder { color: var(--kc-dim); }
.kc-search:focus-within { border-color: var(--kc-accent); }
.kc-select { height: 40px; padding: 0 32px 0 12px; border-radius: 999px; background: var(--kc-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239AA7B5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--kc-border); color: var(--kc-text); font-weight: 700; font-size: 13px; appearance: none; -webkit-appearance: none; max-width: 46%; }
.kc-players__head { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 44px; gap: 8px; padding: 0 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kc-muted); }
.kc-players__head span:nth-child(2), .kc-players__head span:nth-child(3) { text-align: right; }
.kc-players { display: flex; flex-direction: column; gap: 6px; }
.kc-player { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 44px; gap: 8px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--kc-surface); border: 1px solid var(--kc-border-soft); }
.kc-player.is-picked { background: #132019; border-color: #2B4A39; }
.kc-player.is-out .kc-player__name { color: var(--kc-muted); }
.kc-player__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kc-avatar-wrap { position: relative; width: 38px; height: 38px; flex: 0 0 auto; }
.kc-avatar-wrap img { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; background: var(--kc-surface-2); }
.kc-avatar-wrap .kc-avatar-sm { width: 38px; height: 38px; font-size: 13px; }
.kc-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 999px; border: 2px solid var(--kc-surface); background: #3A4756; }
.kc-dot--lineup { background: var(--kc-accent); }
.kc-dot--bench { background: var(--kc-gold); }
.kc-dot--sidelined { background: var(--kc-live); }
.kc-player__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kc-player__name { font-weight: 800; font-size: 14px; }
.kc-player__meta { font-size: 11px; font-weight: 700; color: var(--kc-muted); }
.kc-player__meta strong { color: var(--kc-text); }
.kc-player__fppg { text-align: right; font-weight: 800; font-size: 14px; }
.kc-player__price { text-align: right; font-family: var(--kc-display); font-weight: 800; font-size: 16px; color: var(--kc-gold); }
.kc-addbtn { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; justify-self: end; background: var(--kc-accent); color: var(--kc-accent-ink); border: 1px solid var(--kc-accent); transition: background 120ms, border-color 120ms; }
.kc-addbtn:disabled { background: var(--kc-surface); border-color: var(--kc-border); color: #4F5D6D; cursor: not-allowed; }
.kc-addbtn.is-remove { background: var(--kc-danger-soft); border-color: #4A2A30; color: var(--kc-danger); }
.kc-addbtn.is-remove:disabled { opacity: 0.6; }
.kc-addbtn.is-busy { opacity: 0.6; }
.kc-addbtn--sm { width: 32px; height: 32px; border-radius: 9px; }
.kc-toasts--island { top: calc(var(--kc-header-h) + 12px); }
@media (max-width: 759px) {
  .kc-player { grid-template-columns: minmax(0, 1fr) 44px 48px 44px; gap: 6px; }
  .kc-players__head { grid-template-columns: minmax(0, 1fr) 44px 48px 44px; gap: 6px; }
  .kc-player__price { font-size: 15px; }
}

/* ------------------------------------------------- legacy page support */
/* Pages not yet rebuilt render their old light Vuetify/Bulma markup here. */
.kc-legacy { background: #F4F6F8; color: #1A1F26; }
.kc-legacy .v-application { font-family: var(--kc-font) !important; }
.kc-legacy .v-application--wrap { min-height: 0; }
