/* =========================================================
   BDC E-SPORT — Esports Club Website
   ========================================================= */

:root {
  --bg: #0a0e18;
  --bg-2: #0c1120;
  --panel: #111a2b;
  --panel-2: #16203a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fc;
  --muted: #9aa6bf;
  --muted-2: #6d7a93;
  --accent: #f5b301;
  --accent-rgb: 245, 179, 1;
  --accent-2: #ffd35c;
  --success: #3ddc97;
  --danger: #ff5470;
  --warning: #ffb547;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font-display: 'Kanit', 'Noto Sans Thai', 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans Thai', 'Segoe UI', 'Leelawadee UI', sans-serif;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(var(--accent-rgb), 0.13), transparent 62%),
    radial-gradient(900px 520px at -8% 28%, rgba(52, 105, 220, 0.07), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 65%);
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(var(--accent-rgb), 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a1020; }
::-webkit-scrollbar-thumb { background: #232838; border-radius: 99px; border: 2px solid #0a1020; }
::-webkit-scrollbar-thumb:hover { background: #303650; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #0a0e18;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 14px; }

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ffcf4d 55%, var(--accent-2) 100%);
  color: #06070b;
  box-shadow: 0 10px 32px rgba(var(--accent-rgb), 0.32);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.075); border-color: rgba(255, 255, 255, 0.24); }

.btn-soft {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: #ffe3a0;
}
.btn-soft:hover { background: rgba(var(--accent-rgb), 0.2); }

.btn-danger {
  background: rgba(255, 84, 112, 0.12);
  border-color: rgba(255, 84, 112, 0.32);
  color: #ff8fa3;
}
.btn-danger:hover { background: rgba(255, 84, 112, 0.2); }

.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 6px 9px; font-size: 11px; border-radius: 7px; gap: 5px; }
.btn-xs svg { width: 12px; height: 12px; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 14px; }

.icon-btn {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: #fff; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(255, 84, 112, 0.4); background: rgba(255, 84, 112, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(10, 14, 24, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(130%);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--maxw), calc(100% - 48px));
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06070b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.45);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.09em; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.045); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
}

.header-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.admin-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 6px 2px;
  transition: color 0.18s;
}
.admin-link:hover { color: var(--muted); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s, opacity 0.22s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 5, 9, 0.6);
  backdrop-filter: blur(4px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(660px, 94vh, 920px);
  display: flex;
  align-items: center;
  padding: 140px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.03);
  z-index: -3;
  filter: saturate(115%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 24, 0.97) 0%, rgba(10, 14, 24, 0.86) 34%, rgba(10, 14, 24, 0.42) 68%, rgba(10, 14, 24, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 24, 0.25) 26%, transparent 55%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, var(--bg) 4%, transparent 100%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  width: min(var(--maxw), calc(100% - 48px));
}
.hero-copy { max-width: 700px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.5);
  backdrop-filter: blur(10px);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cdd2e2;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(41, 224, 255, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(41, 224, 255, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(41, 224, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 224, 255, 0); }
}

.hero h1 {
  margin: 24px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 .accent-line { display: block; }
.hero-sub {
  max-width: 560px;
  margin: 0 0 32px;
  color: #b9c0d1;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.hero-meta strong { color: #e6e9f4; font-weight: 600; }

.next-match {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(155deg, rgba(20, 24, 38, 0.86), rgba(9, 11, 17, 0.8));
  backdrop-filter: blur(24px) saturate(130%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.next-match::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nm-label { font-size: 10px; letter-spacing: 0.2em; color: var(--accent-2); font-weight: 600; }
.nm-tour { font-size: 10.5px; color: var(--muted-2); }
.nm-game { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.nm-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.nm-teams em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.nm-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #d6dae6;
}
.nm-date svg { width: 15px; height: 15px; color: var(--muted-2); }
.nm-empty { color: var(--muted); font-size: 13px; }

/* ---------- Stats / ticker ---------- */
.stats-wrap { position: relative; z-index: 4; margin-top: -58px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 13, 20, 0.8);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}
.stat {
  padding: 20px 26px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: var(--line);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

.game-ticker {
  margin-top: 44px;
  border-block: 1px solid var(--line);
  background: rgba(8, 9, 14, 0.7);
  overflow: hidden;
  padding: 17px 0;
  position: relative;
}
.game-ticker::before,
.game-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.game-ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.game-ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
  will-change: transform;
}
.game-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #aeb6c9;
  white-space: nowrap;
}
.ticker-item i {
  font-style: normal;
  color: var(--game-color, var(--accent));
  font-size: 10px;
  opacity: 0.9;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-head p {
  max-width: 480px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
  padding: 0 0 6px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: gap 0.18s;
}
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- Game cards ---------- */
.grid-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.game-card {
  --game-color: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  min-height: 216px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 180px at 100% 0%, color-mix(in srgb, var(--game-color) 16%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--game-color) 45%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--game-color) 18%, transparent);
}
.game-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--game-color) 22%, transparent);
  opacity: 0.6;
}
.game-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--game-color);
  background: color-mix(in srgb, var(--game-color) 13%, #0b1120);
  border: 1px solid color-mix(in srgb, var(--game-color) 35%, transparent);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--game-color) 12%, transparent);
}
.game-card h3 {
  margin: auto 0 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
}
.game-card .game-full { display: block; margin-top: 3px; font-size: 12px; color: var(--muted-2); }
.game-card-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.game-card-foot .grow { flex: 1; }
.game-card-foot svg { width: 16px; height: 16px; color: var(--game-color); transition: transform 0.2s; }
.game-card:hover .game-card-foot svg { transform: translateX(4px); }

/* ---------- Teams ---------- */
.grid-teams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--game-color, var(--accent)) 40%, transparent);
  background: rgba(255, 255, 255, 0.05);
}
.team-card-info { min-width: 0; flex: 1; }
.team-card-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-card-info span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.team-card-arrow { color: var(--muted-2); }
.team-card-arrow svg { width: 15px; height: 15px; }

.team-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #1a1f2e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.team-logo img { width: 100%; height: 100%; object-fit: cover; }
.team-logo.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }
.team-logo.xl { width: 88px; height: 88px; border-radius: 24px; font-size: 27px; }

/* ---------- Game page ---------- */
.page-head {
  position: relative;
  padding: 148px 0 42px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 620px;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(var(--accent-rgb), 0.18), transparent 70%),
    radial-gradient(500px 260px at 80% 0%, rgba(41, 224, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.page-head.compact { padding: 132px 0 6px; }
.page-head.compact .breadcrumbs { margin-bottom: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { opacity: 0.5; }
.page-head h1 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.page-head .lead { max-width: 660px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.game-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 220px at 100% 0%, color-mix(in srgb, var(--game-color) 16%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}
.game-head .game-icon { width: 76px; height: 76px; border-radius: 20px; font-size: 27px; }
.game-head-info { flex: 1; min-width: 0; }
.game-head-info h1 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; }
.game-head-info p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.game-head-info .game-head-desc { margin-top: 8px; color: var(--muted-2); font-size: 12.5px; line-height: 1.7; max-width: 620px; }
.game-head-stats { display: flex; gap: 26px; }
.game-head-stats div { text-align: right; }
.game-head-stats strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.game-head-stats span { font-size: 11px; color: var(--muted-2); }

.team-block {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006));
  padding: 22px;
  margin-bottom: 18px;
}
.team-block-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.team-block-head .team-logo { width: 52px; height: 52px; }
.tbh-info { flex: 1; min-width: 0; }
.tbh-info h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.tbh-info p { margin: 2px 0 0; font-size: 12px; color: var(--muted-2); }
.team-block-head .btn { margin-left: auto; }

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.player-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 11, 17, 0.55);
  transition: border-color 0.18s, background 0.18s;
}
.player-card:hover { border-color: var(--line-strong); background: rgba(15, 18, 27, 0.8); }
.player-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  overflow: hidden;
  background: #222838;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { min-width: 0; flex: 1; }
.player-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-meta span { display: block; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-number {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted-2);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.chip-role {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffe3a0;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  white-space: nowrap;
}
.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--game-color, var(--accent));
  background: color-mix(in srgb, var(--game-color, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--game-color, var(--accent)) 30%, transparent);
  white-space: nowrap;
}

/* ---------- Filters / matches ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 24px; }
.toolbar .grow { flex: 1; }
.chip-filter {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s;
}
.chip-filter:hover { color: #fff; border-color: var(--line-strong); }
.chip-filter.active {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.12);
}

.match-list { display: flex; flex-direction: column; gap: 11px; }
.match-row {
  display: grid;
  grid-template-columns: 104px minmax(140px, 0.7fr) minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 22px;
  padding: 17px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.match-row:hover {
  border-color: color-mix(in srgb, var(--game-color, var(--accent)) 32%, transparent);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}
.match-date { display: flex; flex-direction: column; line-height: 1.25; }
.match-date strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.01em; }
.match-date span { font-size: 11px; color: var(--muted-2); }
.match-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.match-tour { font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.match-teams { display: flex; align-items: center; gap: 14px; min-width: 0; }
.match-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-display); font-size: 16.5px; font-weight: 500; }
.match-team .team-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.match-team span.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-team.away { color: #c3c9d8; }
.match-vs {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted-2);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  letter-spacing: 0.04em;
}
.match-vs.score { font-size: 17px; font-weight: 600; color: #fff; border: 0; padding: 0 4px; }
.match-vs.score.win { color: var(--success); }
.match-vs.score.loss { color: var(--danger); }
.match-vs.score.live { color: var(--danger); }
.match-side { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-upcoming { color: #ffd35c; background: rgba(245, 179, 1, 0.1); border-color: rgba(245, 179, 1, 0.25); }
.status-live { color: #ff96a8; background: rgba(255, 84, 112, 0.12); border-color: rgba(255, 84, 112, 0.3); }
.status-finished { color: #98a1b5; background: rgba(255, 255, 255, 0.04); border-color: var(--line); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006));
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.news-thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(380px 200px at 20% 0%, rgba(var(--accent-rgb), 0.35), transparent 70%),
    linear-gradient(140deg, #1b2740, #0d1322);
  position: relative;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-thumb img { transform: scale(1.045); }
.news-thumb .placeholder-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.16);
}
.news-thumb .placeholder-mark svg { width: 46px; height: 46px; }
.news-pin {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(10, 14, 24, 0.75);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: #d9d1ff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.news-meta { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.04em; }
.news-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-body .link-arrow { margin-top: auto; padding-top: 8px; font-size: 12px; }
.news-card.featured { grid-column: span 2; }
.news-card.featured .news-thumb { aspect-ratio: 21 / 9; }
.news-card.featured .news-body h3 { font-size: 24px; -webkit-line-clamp: 3; }

/* News detail */
.article { max-width: 820px; margin-inline: auto; }
.article-cover {
  aspect-ratio: 21 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 30px;
  background: linear-gradient(140deg, #1b2740, #0d1322);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article h1 {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.22;
  font-weight: 700;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--muted-2); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article-content { padding-top: 26px; color: #c8cedd; font-size: 15.5px; line-height: 1.9; }
.article-content p { margin: 0 0 20px; }
.article-content p:first-child { font-size: 17px; color: #dde2ee; }
.article-back { margin-top: 40px; }

/* ---------- CTA / About / Join ---------- */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background:
    radial-gradient(700px 260px at 15% 0%, rgba(var(--accent-rgb), 0.32), transparent 70%),
    radial-gradient(500px 220px at 90% 100%, rgba(41, 224, 255, 0.12), transparent 70%),
    linear-gradient(140deg, #12131f, #080a10);
  overflow: hidden;
}
.cta-band h2 { margin: 8px 0 10px; font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.2; }
.cta-band p { margin: 0; color: var(--muted); font-size: 14px; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

.prose { max-width: 760px; color: #c4cada; font-size: 15px; line-height: 1.9; }
.prose p { margin: 0 0 18px; }
.prose p:first-of-type { font-size: 17px; color: #dfe3ee; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.value-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.value-card .value-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  color: #ffe3a0;
  margin-bottom: 16px;
}
.value-card .value-icon svg { width: 20px; height: 20px; }
.value-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.value-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: 40px; align-items: start; }
.contact-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  position: sticky;
  top: 100px;
}
.contact-card h3 { margin: 0 0 16px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.contact-cta { margin-top: 18px; }
.success-cta { margin-top: 18px; }
.head-actions { margin-top: 24px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11.5px;
  color: var(--muted);
  transition: all 0.16s;
}
.social-link:hover { color: #fff; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.social-link svg { width: 14px; height: 14px; }

.join-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.join-info h2 { margin: 10px 0 14px; font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
.join-info > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.steps { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.step { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: #ffe3a0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}
.step strong { display: block; font-size: 13.5px; font-weight: 600; }
.step p { margin: 2px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

.form-panel {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(20, 24, 38, 0.7), rgba(10, 12, 18, 0.85));
  backdrop-filter: blur(14px);
}
.form-panel h3 { margin: 0 0 20px; font-family: var(--font-display); font-size: 21px; font-weight: 600; }

/* ---------- Forms (shared) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field > label { font-size: 11.5px; font-weight: 600; color: #b9c0d1; letter-spacing: 0.02em; }
.form-field .req { color: var(--danger); margin-left: 2px; }
.field-hint { font-size: 10.5px; color: var(--muted-2); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%;
  background: #090b11;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.input::placeholder, .textarea::placeholder { color: #4f576b; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7f889e 50%), linear-gradient(135deg, #7f889e 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.select option { background: #0f1626; color: var(--text); }
input[type="color"].input {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}
input[type="file"] { font-family: inherit; font-size: 12px; color: var(--muted); }

.checkbox-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

.form-error {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 84, 112, 0.1);
  border: 1px solid rgba(255, 84, 112, 0.3);
  color: #ff9bad;
  font-size: 12px;
}
.form-success {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(55, 224, 154, 0.3);
  background: rgba(55, 224, 154, 0.08);
  text-align: center;
}
.form-success .check {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(55, 224, 154, 0.15);
  border: 1px solid rgba(55, 224, 154, 0.4);
  color: var(--success);
}
.form-success .check svg { width: 24px; height: 24px; }
.form-success h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; }
.form-success p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(6, 7, 11, 0.85);
  padding: 58px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(118px, 1fr));
  gap: 32px;
}
.footer-brand p { margin: 14px 0 18px; font-size: 12.5px; color: var(--muted); max-width: 320px; line-height: 1.7; }
.footer-col h4 {
  margin: 4px 0 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-col a, .footer-col span {
  display: block;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.16s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: #fff; }
.footer-socials { display: flex; gap: 8px; }

/* ---------- Misc ---------- */
.boot-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.loader-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  padding: 54px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.01);
}
.empty-state strong { display: block; color: #dfe3ee; font-size: 15px; margin-bottom: 5px; font-family: var(--font-display); font-weight: 500; }

.section-soft {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 30%, rgba(255, 255, 255, 0.018) 70%, transparent);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  padding: 12px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: rgba(16, 19, 28, 0.96);
  backdrop-filter: blur(14px);
  color: #e6e9f2;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.25s; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.error-card {
  text-align: center;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  max-width: 440px;
}
.error-code {
  font-family: var(--font-display);
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-card h1 { font-family: var(--font-display); font-size: 22px; margin: 14px 0 8px; }
.error-card p { color: var(--muted); font-size: 13px; margin: 0 0 24px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   ADMIN
   ========================================================= */
.admin-body { background: #080910; }
.admin-body::before { display: none; }
.boot-loader[hidden], .login-screen[hidden], .admin-shell[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}
.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  isolation: isolate;
  border-right: 1px solid var(--line);
}
.login-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 24, 0.5), rgba(10, 14, 24, 0.92) 78%),
    linear-gradient(90deg, rgba(10, 14, 24, 0.55), transparent 60%);
  z-index: -1;
}
.login-visual .brand { position: relative; z-index: 1; }
.login-quote { max-width: 520px; }
.login-quote h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.18;
}
.login-quote p { margin: 0; color: #b6bdcf; font-size: 13.5px; line-height: 1.8; max-width: 440px; }
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(9, 11, 17, 0.55);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #cfd4e3;
  backdrop-filter: blur(8px);
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.login-card { width: min(410px, 100%); }
.login-card h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.login-card > p { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-form { display: flex; flex-direction: column; gap: 15px; }
.login-form .btn { margin-top: 4px; }
.login-hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.07);
  font-size: 11.5px;
  color: #c7c0e8;
  line-height: 1.7;
}
.login-hint code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 11px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px solid #d7dbe3;
  background: #f7f8fa;
  color: #1f2430;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.16s, transform 0.16s;
}
.google-btn:hover { background: #fff; transform: translateY(-1px); }
.google-btn svg { width: 18px; height: 18px; }
.login-back { margin-top: 26px; text-align: center; font-size: 12px; }
.login-back a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.login-back a:hover { color: #fff; }
.login-error { margin-bottom: 16px; }

/* Shell */
.admin-shell { display: grid; grid-template-columns: 262px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(9, 11, 17, 0.92);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 45;
}
.admin-sidebar .brand { padding: 4px 6px 0; }
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}
.admin-user .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.admin-user-info { min-width: 0; }
.admin-user-info strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-info span { display: block; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.admin-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-nav button svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.8; }
.admin-nav button:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.admin-nav button.active {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.26);
}
.admin-nav button.active svg { opacity: 1; color: var(--accent-2); }
.nav-count {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255, 84, 112, 0.18);
  border: 1px solid rgba(255, 84, 112, 0.35);
  color: #ff9bad;
  font-size: 9.5px;
  font-weight: 600;
}
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-side-foot a, .admin-side-foot button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.admin-side-foot a:hover, .admin-side-foot button:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.admin-side-foot svg { width: 15px; height: 15px; }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 16, 0.82);
  backdrop-filter: blur(16px);
}
.admin-topbar-info { flex: 1; min-width: 0; }
.admin-topbar h1 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.admin-topbar p { margin: 1px 0 0; font-size: 11.5px; color: var(--muted-2); }
.admin-top-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.admin-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.admin-menu-btn svg { width: 18px; height: 18px; }
.admin-view { padding: 28px 30px 64px; }

/* Admin dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.admin-stat {
  position: relative;
  padding: 18px 20px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.admin-stat span { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: 0.03em; }
.admin-stat strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.admin-stat small { font-size: 10.5px; color: var(--muted-2); }
.admin-stat .stat-spark {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: #bfb3ff;
}
.admin-stat .stat-spark svg { width: 17px; height: 17px; }

.admin-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(15, 18, 27, 0.62);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-family: var(--font-display); font-size: 15.5px; font-weight: 600; }
.panel-head .link-arrow { padding-bottom: 0; font-size: 11.5px; }
.panel-body { padding: 18px 19px; }
.panel-body.flush { padding: 0; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.quick-action:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.07); }
.quick-action svg { width: 16px; height: 16px; color: var(--accent-2); }

.mini-list { display: flex; flex-direction: column; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}
.mini-row:last-child { border-bottom: 0; }
.mini-row-main { flex: 1; min-width: 0; }
.mini-row-main strong { display: block; font-weight: 500; color: #dfe3ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row-main span { display: block; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row time { font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }

/* Admin tables */
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.015);
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.admin-table .cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-table .cell-main .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
.admin-table .cell-main .team-logo { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }
.game-tile {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--game-color, #7c5cff) 20%, #0f1626);
  border: 1px solid color-mix(in srgb, var(--game-color, #7c5cff) 42%, transparent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.thumb-sm {
  width: 48px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #10131c;
  color: var(--muted-2);
  overflow: hidden;
}
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm svg { width: 15px; height: 15px; }
.badge[data-color] {
  color: color-mix(in srgb, var(--game-color, #7c5cff) 55%, #fff);
  background: color-mix(in srgb, var(--game-color, #7c5cff) 12%, transparent);
  border-color: color-mix(in srgb, var(--game-color, #7c5cff) 35%, transparent);
}
.match-score-cell { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.08em; }
.row-actions .btn-xs { white-space: nowrap; }
.row-actions .btn svg { width: 12px; height: 12px; }
.cell-title { min-width: 0; }
.cell-title strong { display: block; font-weight: 500; font-size: 13px; color: #e8ebf4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.cell-title span { display: block; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.table-empty { padding: 40px 20px; text-align: center; color: var(--muted-2); font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.badge.green { color: #7fe9bc; background: rgba(55, 224, 154, 0.08); border-color: rgba(55, 224, 154, 0.25); }
.badge.red { color: #ff9bad; background: rgba(255, 84, 112, 0.08); border-color: rgba(255, 84, 112, 0.25); }
.badge.blue { color: #a5c3ff; background: rgba(245, 179, 1, 0.08); border-color: rgba(245, 179, 1, 0.25); }
.badge.violet { color: #cfc2ff; background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.28); }
.tier-badges { display: flex; flex-wrap: wrap; gap: 5px; max-width: 420px; }
.badge.tier-badge { font-weight: 700; }
.badge.tier-badge[data-tier="SS"] { color: #ffb14e; background: rgba(255, 157, 46, 0.12); border-color: rgba(255, 157, 46, 0.4); }
.badge.tier-badge[data-tier="S+"] { color: #ff8d80; background: rgba(255, 122, 106, 0.12); border-color: rgba(255, 122, 106, 0.4); }
.badge.tier-badge[data-tier="S"] { color: #ffb054; background: rgba(255, 176, 84, 0.1); border-color: rgba(255, 176, 84, 0.35); }
.badge.tier-badge[data-tier="A"] { color: #ffd35c; background: rgba(255, 211, 92, 0.1); border-color: rgba(255, 211, 92, 0.32); }
.badge.tier-badge[data-tier="B"] { color: #6ee7b7; background: rgba(110, 231, 183, 0.09); border-color: rgba(110, 231, 183, 0.3); }
.badge.tier-badge[data-tier="C"] { color: #b3bfd4; background: rgba(179, 191, 212, 0.09); border-color: rgba(179, 191, 212, 0.3); }
.badge.tier-badge[data-tier="D"] { color: #a08d72; background: rgba(160, 141, 114, 0.1); border-color: rgba(160, 141, 114, 0.32); }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 16px; }
.admin-toolbar .input, .admin-toolbar .select { width: auto; min-width: 150px; font-size: 12.5px; padding: 8px 11px; }
.admin-toolbar .select { padding-right: 32px; }
.admin-toolbar .spacer { flex: 1; }
.admin-toolbar .search { min-width: 220px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 9, 0.7);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(660px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 19px;
  border: 1px solid var(--line-strong);
  background: #0f1626;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s ease;
}
.modal.modal-wide { width: min(840px, 100%); }
.modal-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close:hover { color: #fff; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.modal-close svg { width: 15px; height: 15px; }
.confirm-text { margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.confirm-text strong { color: #fff; font-weight: 600; }
.score-inputs { display: flex; align-items: center; gap: 8px; }
.score-inputs .input { text-align: center; }
.score-inputs > span { color: var(--muted-2); font-weight: 600; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.modal-head p { margin: 2px 0 0; font-size: 11px; color: var(--muted-2); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: #0f1626;
  flex-shrink: 0;
  border-radius: 0 0 19px 19px;
}
.modal-foot .btn { padding: 9px 17px; font-size: 13px; }

.image-field { display: flex; gap: 12px; align-items: flex-start; }
.image-preview {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: #0b1120;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
  overflow: hidden;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-controls { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.image-buttons { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.upload-btn:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.4); }
.upload-btn svg { width: 13px; height: 13px; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-card { padding: 22px; }
.settings-card h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.settings-card > p { margin: 0 0 20px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.settings-card .form-grid { gap: 14px; }
.settings-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; }
.settings-note {
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.settings-note code { color: #cfc2ff; background: rgba(var(--accent-rgb), 0.1); padding: 1px 5px; border-radius: 4px; font-size: 10.5px; }

.inbox-list { display: flex; flex-direction: column; gap: 10px; }
.inbox-card {
  padding: 16px 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.16s;
}
.inbox-card.unread { border-color: rgba(var(--accent-rgb), 0.3); background: rgba(var(--accent-rgb), 0.045); }
.inbox-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inbox-head strong { font-size: 13px; font-weight: 600; }
.inbox-head time { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }
.inbox-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; font-size: 11px; color: var(--muted-2); }
.inbox-text { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.inbox-actions { display: flex; gap: 6px; margin-top: 12px; justify-content: flex-end; }

.admin-loading { padding: 60px; display: flex; justify-content: center; }
.admin-error { padding: 22px; border-radius: 12px; border: 1px solid rgba(255, 84, 112, 0.3); background: rgba(255, 84, 112, 0.08); color: #ff9bad; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .next-match { max-width: 420px; }
  .admin-columns { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .main-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    z-index: 56;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(11, 13, 20, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; font-size: 14.5px; }
  .main-nav a.active::after { left: 14px; bottom: 6px; transform: none; width: 14px; }
  .nav-toggle { display: flex; }
  .admin-link { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 268px;
    z-index: 58;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
  }
  .admin-sidebar.open { transform: none; }
  .admin-menu-btn { display: grid; }
  .admin-view { padding: 22px 20px 60px; }
  .admin-topbar { padding: 16px 20px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 32px 22px; }
  .login-back { display: block; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.featured { grid-column: span 2; }
  .about-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .join-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container, .hero-inner, .header-inner { width: calc(100% - 32px); }
  .hero { min-height: 620px; padding: 120px 0 90px; }
  .hero h1 { margin-top: 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 4px; }
  .stat { padding: 16px 18px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(even)::before { display: block; left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats-wrap { margin-top: -44px; }
  .game-ticker { margin-top: 34px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid-games, .grid-teams, .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .news-card.featured .news-thumb { aspect-ratio: 16 / 9; }
  .news-card.featured .news-body h3 { font-size: 20px; -webkit-line-clamp: 2; }
  .match-row { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .match-date { flex-direction: row; align-items: baseline; gap: 8px; }
  .match-date strong { font-size: 15px; }
  .match-info { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .match-teams { gap: 10px; }
  .match-side { justify-content: flex-start; }
  .match-team { font-size: 15px; }
  .match-team .team-logo { width: 28px; height: 28px; }
  .match-vs.score { font-size: 15px; }
  .game-head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .game-head-stats { width: 100%; gap: 20px; }
  .game-head-stats div { text-align: left; }
  .team-block { padding: 16px; }
  .roster { grid-template-columns: 1fr 1fr; gap: 9px; }
  .player-card { padding: 11px; }
  .avatar { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 20px; }
  .page-head { padding-top: 120px; }
  .admin-topbar h1 { font-size: 18px; }
  .admin-top-actions .btn span { display: none; }
  .admin-top-actions .btn { padding: 9px 11px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stat { padding: 14px 15px; }
  .admin-stat strong { font-size: 24px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100vh - 24px); border-radius: 15px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px; }
  .modal-head { padding: 15px 16px; }
  .image-field { flex-direction: column; }
  .inbox-head time { margin-left: 0; width: 100%; }
  .row-actions { flex-wrap: wrap; }
  .admin-toolbar .search { min-width: 100%; flex: 1 1 100%; }
  .admin-toolbar .select { flex: 1 1 auto; min-width: 130px; }
  .admin-toolbar .chip-filter { padding: 7px 11px; font-size: 11px; }
  .inbox-actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { font-size: 11.5px; }
  .roster { grid-template-columns: 1fr; }
  .grid-teams { grid-template-columns: 1fr; }
  .stat strong { font-size: 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-view { padding: 18px 14px 50px; }
  .admin-topbar { padding: 14px; }
  .settings-card { padding: 17px; }
  .quick-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* แถบชื่อเกมยังเลื่อนเสมอตามที่เจ้าของเว็บต้องการ */
  .ticker-track {
    animation-duration: 30s !important;
    animation-iteration-count: infinite !important;
  }
}

/* =========================================================
   RoV TOOLS — Tier List / Draft / App nav (rovlab-inspired)
   ========================================================= */

/* ---------- Tool launcher cards ---------- */
.section-tools { padding-top: 10px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.tool-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-2);
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tool-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.tool-tag em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent);
  color: #1a1200;
  font-weight: 700;
}
.tool-copy strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.tool-copy > span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tool-arrow { margin-left: auto; color: var(--accent-2); display: grid; place-items: center; }
.tool-arrow svg { width: 20px; height: 20px; }

/* ---------- Shared tool chrome ---------- */
.tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 500;
}
.tool-count { font-size: 12px; color: var(--muted); }
.tool-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--muted-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tier-toolbar { align-items: flex-start; }
.tier-toolbar .search-field { margin-left: auto; }
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  min-width: 220px;
}
.search-field svg { width: 16px; height: 16px; flex-shrink: 0; }
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.search-field.wide { width: 100%; margin-bottom: 14px; }

/* ---------- Tier board ---------- */
.tier-scroll { overflow-x: auto; padding-bottom: 4px; }
.tier-grid {
  display: grid;
  gap: 7px;
  min-width: 862px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.tier-grid.cols-5 { grid-template-columns: 60px repeat(5, minmax(150px, 1fr)); }
.tier-grid.cols-4 { grid-template-columns: 60px repeat(4, minmax(150px, 1fr)); }
.tier-grid.cols-3 { grid-template-columns: 60px repeat(3, minmax(150px, 1fr)); }
.tier-grid.cols-2 { grid-template-columns: 60px repeat(2, minmax(150px, 1fr)); }
.tier-grid.cols-1 { grid-template-columns: 60px minmax(220px, 1fr); min-width: 0; }
.tier-cell {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  padding: 8px;
  min-height: 62px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  background: rgba(255, 255, 255, 0.02);
}
.tier-head {
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 4px 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.tier-head strong { font-size: 12.5px; font-weight: 600; }
.tier-head span { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.tier-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.tier-label {
  display: grid;
  align-items: start;
  justify-items: center;
  padding-top: 12px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #1a1200;
  background: linear-gradient(165deg, #ffd35c, #f5b301);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tier-label[data-tier="SS"] { background: linear-gradient(165deg, #ff9d2e, #ff4d6d); color: #fff; }
.tier-label[data-tier="S+"] { background: linear-gradient(165deg, #ff7a6a, #e02748); color: #fff; }
.tier-label[data-tier="S"] { background: linear-gradient(165deg, #ffb054, #ef6d1f); color: #240f00; }
.tier-label[data-tier="A"] { background: linear-gradient(165deg, #ffd35c, #f5b301); color: #1c1300; }
.tier-label[data-tier="B"] { background: linear-gradient(165deg, #6ee7b7, #2fbf86); color: #042417; }
.tier-label[data-tier="C"] { background: linear-gradient(165deg, #b3bfd4, #7c8aa3); color: #101724; }
.tier-label[data-tier="D"] { background: linear-gradient(165deg, #8d7a5f, #5f5245); color: #14100b; }
.tier-empty { padding: 8px; font-size: 11px; color: var(--muted-2); }

.hero-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 64px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.hero-face {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  background-color: #1b2334;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.16s, transform 0.16s;
}
.hero-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hbmark {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 2;
}
.hbmark.buff {
  right: 0;
  bottom: 0;
  border-left: 12px solid transparent;
  border-bottom: 12px solid #2bd67b;
}
.hbmark.nerf {
  top: 0;
  right: 0;
  border-right: 12px solid #ff5a66;
  border-bottom: 12px solid transparent;
}
.hero-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 48%, rgba(0, 0, 0, 0.28));
}
.hero-face.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; }
.hero-tile:hover .hero-face {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.65), 0 8px 22px rgba(var(--accent-rgb), 0.22);
  transform: translateY(-1px);
}
.hero-tile-name {
  width: 100%;
  font-size: 9.5px;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* สามเหลี่ยมปรับสมดุล + ชิปเลน/Tier ในหน้ารายละเอียดฮีโร่ */
.lane-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.lane-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  color: var(--muted);
}
.lane-chip b { font-weight: 700; color: var(--text); }
.lane-chip[data-tier="SS"] b { color: #ff9d2e; }
.lane-chip[data-tier="S+"] b { color: #ff7a6a; }
.lane-chip[data-tier="S"] b { color: #ffb054; }
.lane-chip[data-tier="A"] b { color: #ffd35c; }
.lane-chip[data-tier="B"] b { color: #6ee7b7; }
.lane-chip[data-tier="C"] b { color: #b3bfd4; }
.lane-chip[data-tier="D"] b { color: #a08d72; }

/* ---------- Game tabs on tier list ---------- */
.game-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.game-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.16s, background 0.16s;
}
.game-tab:hover { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.06); }
.game-tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #16110a;
}

/* ---------- Hero meta rows (MLBB detail) ---------- */
.hero-meta-list { display: flex; flex-direction: column; gap: 0; }
.hero-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.hero-meta-row:last-child { border-bottom: 0; }
.hero-meta-row span { color: var(--muted-2); font-size: 12px; }
.hero-meta-row strong { color: var(--text); font-weight: 600; text-align: right; }
.hero-detail-head strong small { font-size: 12px; color: var(--muted); font-weight: 400; }
.hero-traits { margin: 8px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.hero-balance { margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.hero-balance.buff { border: 1px solid rgba(43, 214, 123, 0.35); background: rgba(43, 214, 123, 0.08); color: #7ce8ae; }
.hero-balance.nerf { border: 1px solid rgba(255, 90, 102, 0.35); background: rgba(255, 90, 102, 0.08); color: #ff9aa2; }

/* ---------- Hero detail ---------- */
.hero-detail { margin-top: 16px; }
.hero-detail-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  background:
    radial-gradient(500px 160px at 0% 0%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
}
.hero-detail-head { display: flex; align-items: center; gap: 12px; }
.hero-detail-head strong { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
.hero-detail-head span { font-size: 12px; color: var(--muted); }
.hero-detail-head .icon-btn { margin-left: auto; }
.hero-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.hero-detail-body h4 {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-detail-foot { margin-top: 16px; }
.mini-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-hero {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #1b2334;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: box-shadow 0.15s, transform 0.15s;
}
.mini-hero:hover { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.65); transform: translateY(-1px); }
.mini-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-str {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}
.mini-str.s3 { background: rgba(43, 214, 123, 0.88); color: #042417; }
.mini-str.s2 { background: rgba(245, 179, 1, 0.88); color: #241a00; }
.mini-str.s1 { background: rgba(150, 163, 184, 0.82); color: #0d1422; }
.tier-tag {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #1a1200;
}
.tier-tag[data-tier="S+"] { background: #ff5a66; color: #fff; }
.tier-tag[data-tier="B"] { background: #3ddc97; color: #042417; }
.tier-tag[data-tier="C"] { background: #96a3b8; color: #0d1422; }

/* ---------- Draft ---------- */
.draft-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.draft-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.draft-side {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.draft-side.side-blue { border-color: rgba(92, 157, 255, 0.24); }
.draft-side.side-red { border-color: rgba(255, 90, 110, 0.24); }
.draft-side-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.side-dot { width: 9px; height: 9px; border-radius: 50%; }
.side-blue .side-dot { background: #5c9dff; box-shadow: 0 0 12px rgba(92, 157, 255, 0.85); }
.side-red .side-dot { background: #ff5a6e; box-shadow: 0 0 12px rgba(255, 90, 110, 0.85); }
.draft-side-head strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.side-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.draft-ban-row { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.draft-row-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); flex-shrink: 0; }
.draft-pick-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.draft-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.draft-slot.empty:hover { border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.05); }
.draft-slot.filled {
  border-style: solid;
  border-color: rgba(var(--accent-rgb), 0.26);
  background: linear-gradient(170deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.02));
}
.draft-slot.sm { width: 46px; flex: 0 0 auto; padding: 6px 3px; border-radius: 10px; }
.draft-slot .hero-face { width: 40px; height: 40px; border-radius: 11px; font-size: 12px; }
.draft-slot.sm .hero-face { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.draft-slot.sm .hbmark { display: none; }
.draft-slot.sm .slot-name, .draft-slot.sm .slot-role { display: none; }
.slot-plus { font-size: 16px; line-height: 1; color: var(--muted-2); }
.slot-label { font-size: 8.5px; line-height: 1.2; color: var(--muted-2); }
.slot-name { max-width: 100%; font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-role { font-size: 8px; color: var(--muted-2); }
.slot-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #0f1626;
  color: var(--muted);
  cursor: pointer;
}
.slot-x svg { width: 9px; height: 9px; }
.slot-x:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ---------- Suggestions ---------- */
.draft-suggest {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.suggest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.suggest-head h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.segmented button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
}
.segmented button.active { background: var(--accent); color: #1a1200; font-weight: 600; }
.suggest-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.suggest-panel h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.suggest-list { display: flex; flex-direction: column; gap: 7px; }
.suggest-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.suggest-row:hover { border-color: rgba(var(--accent-rgb), 0.4); background: rgba(var(--accent-rgb), 0.05); }
.suggest-row .hero-face { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; flex-shrink: 0; }
.suggest-row .hbmark { display: none; }
.suggest-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.suggest-info strong { font-size: 13px; }
.suggest-info small { font-size: 10.5px; color: var(--muted-2); }
.suggest-info em { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; font-style: normal; }
.suggest-info em span {
  padding: 1px 7px;
  border-radius: 99px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-2);
  font-size: 9.5px;
}
.suggest-add {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-2);
  font-size: 15px;
  line-height: 1;
}

/* ---------- Hero picker ---------- */
.picker-modal { width: min(760px, 100%); }
.picker-chips { margin: 12px 0; }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}
.picker-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.picker-hero:hover { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.06); }
.picker-hero.taken { opacity: 0.35; cursor: not-allowed; }
.picker-name { max-width: 100%; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-sub { font-size: 8.5px; color: var(--muted-2); text-align: center; }

/* ---------- Mobile app nav ---------- */
.app-nav { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(18px) saturate(130%);
  }
  .app-nav a, .app-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--muted-2);
    font: inherit;
    font-size: 9.5px;
    cursor: pointer;
  }
  .app-nav svg { width: 20px; height: 20px; }
  .app-nav a.active { color: var(--accent-2); }
  .app-nav a.active svg { filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.65)); }
  .site-footer { padding-bottom: 26px; }
  .tools-grid { grid-template-columns: 1fr; }
  .draft-board { grid-template-columns: 1fr; }
  .suggest-columns { grid-template-columns: 1fr; }
  .hero-detail-body { grid-template-columns: 1fr; }
  .tier-toolbar .search-field { width: 100%; margin-left: 0; }
  .picker-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .draft-side { padding: 14px; }
}
