:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --surface: rgba(23, 27, 36, 0.88);
  --surface-2: rgba(31, 36, 47, 0.92);
  --surface-3: #2a3140;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --gold-line: rgba(222, 185, 116, 0.24);
  --white: #f4f6fa;
  --sub: #9aa2b2;
  --dim: #666e7e;
  --accent: #e5484d;
  --champagne: #e5c37b;
  --kpl-blue: #478cff;
  --kpl-red: #f25565;
  --green: #38c994;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
  isolation: isolate;
}
/* Championship Arena Trophy Ambient Backdrop + MOBA Canyon Geometric Rune Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% 10%, rgba(71, 140, 255, 0.11), transparent 70%),
    radial-gradient(680px 420px at 88% 14%, rgba(229, 72, 77, 0.10), transparent 70%),
    radial-gradient(820px 520px at 50% 0%, rgba(229, 195, 123, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(13, 15, 20, 0.42) 0%, rgba(13, 15, 20, 0.84) 52%, #0d0f14 95%),
    url('/assets/arena.webp') center top / cover no-repeat;
  opacity: .92;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23deb974' stroke-opacity='0.065' stroke-width='1'%3E%3Cpath d='M60 8l14 14-14 14-14-14z'/%3E%3Cpath d='M60 13l9 9-9 9-9-9z' stroke-opacity='0.04'/%3E%3Cpath d='M0 60h40M80 60h40M60 40v40' stroke-opacity='0.035'/%3E%3Ccircle cx='60' cy='60' r='3' stroke-opacity='0.08'/%3E%3Cpath d='M12 108L24 96M108 108L96 96' stroke-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 35%, transparent 100%);
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn { cursor: pointer; }
button:disabled { opacity: .45; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

/* Clean Soft Buttons (Zero Hard Borders) */
button, .btn {
  border: 0;
  background: var(--surface-2);
  color: #e6e9f0;
  border-radius: 6px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  font-size: .9rem;
  min-height: 36px;
  transition: background-color .15s ease, color .15s ease;
}
button:hover, .btn:hover { background: var(--surface-3); color: #fff; }
.primary {
  background: #f2f4f8;
  color: #101216;
  font-weight: 600;
}
.primary:hover { background: #ffffff; color: #101216; }
.accent-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.accent-btn:hover { background: #f0565b; color: #fff; }
.outline {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}
.outline:hover { background: rgba(255, 255, 255, 0.13); }
.flat { background: transparent; color: var(--sub); padding: 5px 8px; min-height: 28px; }
.flat:hover { background: rgba(255, 255, 255, 0.05); color: var(--white); }
.danger { background: rgba(242, 85, 101, 0.14); color: #ff808d; }
.danger:hover { background: rgba(242, 85, 101, 0.24); color: #ffa1ab; }

.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; flex: none; vertical-align: middle; }
.lane-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; opacity: .8; }

/* Centered, Comfortable Container Width (Not Stretched to Edges!) */
.shell, .top-in {
  width: min(940px, calc(100% - 40px));
  margin-inline: auto;
}
.narrow-wrap {
  max-width: 680px;
  margin-inline: auto;
}

/* Top Navigation */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 18, 22, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-in { height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand img { object-fit: contain; }
.score, .ranknum, .number, .match-time strong { font-variant-numeric: tabular-nums; }
.brand strong { font-size: 1.35rem; line-height: 1; font-weight: 700; color: #fff; }
.brand span {
  color: var(--sub);
  font-weight: 400;
  font-size: .86rem;
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
}

nav { align-self: stretch; display: flex; align-items: stretch; gap: 22px; white-space: nowrap; }
nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  color: var(--sub);
  font-weight: 500;
  font-size: .92rem;
  transition: color .15s;
}
nav a:hover { color: var(--white); }
nav a.active { color: var(--white); font-weight: 600; }
nav a.active::after {
  content: "";
  height: 2px;
  background: linear-gradient(90deg, var(--champagne), var(--accent));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 2px;
}
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(229, 195, 123, 0.22);
  color: var(--champagne);
  font-size: .7rem;
  font-weight: 700;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff7a85;
  font-size: .7rem;
  font-weight: 600;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.account { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.account .login { background: transparent; color: var(--sub); }
.account .login:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }

/* Top Match Ticker */
.ticker-wrap { background: #13161b; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; overflow-x: auto; scrollbar-width: none; }
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-item {
  flex: 0 0 196px;
  padding: 9px 16px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 4px;
  transition: background-color .15s;
}
.ticker-item:first-child { padding-left: 0; }
.ticker-item:hover { background: var(--surface); }
.ticker-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--sub); }
.ticker-teams { display: grid; gap: 2px; font-size: .83rem; font-variant-numeric: tabular-nums; }
.ticker-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #b5bcc9; }
.ticker-row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-row.win { color: var(--white); font-weight: 600; }

/* Tags & Status */
.badge, .tag, .status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #bdc4d2;
}
.tag.gold, .tag-group-s { background: rgba(222, 185, 116, 0.15); color: var(--champagne); }
.tag-group-a { background: rgba(71, 140, 255, 0.15); color: #93c0ff; }
.tag-group-b { background: rgba(255, 255, 255, 0.08); color: #d5dbe6; }
.status.live { background: rgba(229, 72, 77, 0.18); color: #ff99a2; }
.status.up { background: rgba(255, 255, 255, 0.06); color: #d5dbe6; }
.status.done { background: transparent; color: var(--dim); padding-inline: 0; }
.minor, .muted { color: var(--sub); }
.minor, small { font-size: .82rem; }

/* Centered Championship Trophy Hero Banner */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #11141c;
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before {
  background: url('/assets/arena.webp') center 38% / cover no-repeat;
  opacity: .78;
  filter: contrast(1.08) saturate(1.16);
}
.hero::after {
  background:
    radial-gradient(ellipse 64% 88% at 66% 42%, rgba(229, 195, 123, 0.16) 0%, rgba(13, 15, 20, 0.28) 46%, rgba(13, 15, 20, 0.86) 100%),
    linear-gradient(90deg, rgba(13, 15, 20, 0.88) 0%, rgba(13, 15, 20, 0.48) 45%, rgba(13, 15, 20, 0.24) 72%, rgba(13, 15, 20, 0.76) 100%),
    linear-gradient(0deg, #0d0f14 0%, rgba(13, 15, 20, 0.55) 20%, transparent 48%);
}
.hero-split {
  padding-block: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: center;
}
.hero-split > *, .home-grid > *, .main-stack, .side-stack, .panel, .cast-scoreline > * { min-width: 0; }
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .16em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.hero-gem {
  width: 7px;
  height: 7px;
  background: var(--champagne);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(229, 195, 123, 0.8);
}
.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.18;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72);
}
.hero-lane-runes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: rgba(229, 195, 123, 0.82);
  font-size: .78rem;
  letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-lane-runes .lane-ico { opacity: .95; color: var(--champagne); }
.hero .actions { margin-top: 22px; gap: 10px; }

.spotlight-card {
  background: rgba(19, 23, 31, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.spot-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.spot-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 6px 0 14px; }
.spot-side { display: grid; justify-items: center; gap: 7px; text-align: center; }
.spot-side strong { font-size: .96rem; font-weight: 600; }
.spot-vs { text-align: center; }
.spot-vs .big-score { font-size: 1.9rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.spot-vs .countdown { font-size: .76rem; color: var(--sub); margin-top: 3px; }
.spot-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Support Bar */
.cheer-box { margin: 10px 0 6px; }
.cheer-top { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; margin-bottom: 6px; color: var(--sub); }
.cheer-Blue { color: #69a5ff; font-weight: 500; }
.cheer-Red { color: #ff7585; font-weight: 500; }
.cheer-track { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; display: flex; gap: 2px; }
.cheer-fill-a { background: var(--kpl-blue); transition: width .35s ease; }
.cheer-fill-b { background: var(--kpl-red); flex: 1; }
.cheer-btns { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cheer-btns button { font-size: .76rem; min-height: 28px; padding: 4px 10px; background: rgba(255, 255, 255, 0.05); color: var(--sub); }
.cheer-btns button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cheer-btns button.voted { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Main Content Grid */
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { padding: 30px 0 48px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.side-stack, .main-stack { display: grid; gap: 22px; }

.panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head { display: flex; gap: 10px; align-items: center; padding: 18px 20px 12px; flex-wrap: wrap; }
.panel-head h2, .section-title, .panel-body > h2 {
  font-size: 1.02rem;
  margin: 0;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.panel-head h2::before, .panel-body > h2::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--champagne);
  transform: rotate(45deg);
  flex: none;
  box-shadow: 0 0 8px rgba(229, 195, 123, 0.55);
}
.panel-head .end { margin-left: auto; }
.text-link { background: none; color: var(--sub); padding: 2px 0; min-height: 24px; font-size: .82rem; font-weight: 400; }
.text-link:hover { background: none; color: #fff; }
.panel .inset { padding: 4px 20px 18px; }

/* Segmented Filter Bar */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #121419;
  padding: 3px;
  border-radius: 6px;
  flex-wrap: wrap;
}
.tabs button {
  background: transparent;
  color: var(--sub);
  font-size: .8rem;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 4px;
  font-weight: 500;
}
.tabs button:hover { color: #fff; background: transparent; }
.tabs button.on { background: var(--surface-3); color: #fff; }
.subbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 20px 10px; flex-wrap: wrap; }

/* Schedule Rows */
.day-header { margin: 18px 0 6px; color: var(--sub); font-size: .8rem; font-weight: 600; }
.day-header:first-child { margin-top: 4px; }
.match-list { display: grid; }
.match-card {
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  transition: background-color .15s;
}
.match-card:first-child { border-top: 0; }
.match-card:hover { background: var(--surface-2); }
.match-time { display: grid; gap: 2px; }
.match-time strong { font-size: 1.05rem; font-weight: 600; color: #fff; }
.match-time small, .row-meta { color: var(--sub); font-size: .75rem; }
.match-mid { min-width: 0; }
.row-meta { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; flex-wrap: wrap; }
.duel { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.squad { display: flex; gap: 9px; align-items: center; min-width: 0; }
.squad.right { justify-content: flex-end; }
.squad strong, .squad b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; font-weight: 500; }

/* Crests */
.crest {
  --h: #a1a1aa;
  display: inline-grid;
  place-items: center;
  color: var(--h);
  background: rgba(255, 255, 255, 0.06);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex: none;
  font-weight: 700;
  font-size: .72rem;
  overflow: hidden;
}
.crest img { width: 100%; height: 100%; object-fit: cover; }
.big.crest { width: 54px; height: 54px; border-radius: 12px; font-size: .98rem; }
.orange { --h: #fb923c; }
.violet { --h: #a78bfa; }
.blue { --h: #60a5fa; }
.mint { --h: #34d399; }
.gold { --h: #deb974; }
.rose { --h: #f472b6; }
.crimson { --h: #fb7185; }
.cyan { --h: #22d3ee; }

.score { font-size: 1.02rem; font-weight: 700; color: #fff; text-align: center; }
.score.vs { font-size: .76rem; color: var(--dim); font-weight: 600; }

/* Standings Table */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th { font-size: .74rem; font-weight: 500; color: var(--dim); text-align: right; padding: 6px 5px 9px; border-bottom: 1px solid var(--line); }
.rank-table td { text-align: right; padding: 10px 5px; border-bottom: 1px solid var(--line); font-size: .86rem; font-variant-numeric: tabular-nums; color: #d5dbe6; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table th:first-child, .rank-table td:first-child { text-align: left; width: 30px; }
.rank-table th:nth-child(2), .rank-table td:nth-child(2) { text-align: left; color: #fff; }
.rank-table .crest { width: 26px; height: 26px; font-size: .64rem; }
.ranknum { font-weight: 600; color: var(--dim); }
.ranknum.top-seed { color: var(--champagne); }
.pts { font-weight: 700; color: #fff; }
.diff-pos { color: var(--green); }
.diff-neg { color: #ff808d; }

/* Official Hero Portraits & 3-Per-Row Centered Grid! */
.kpl-hero-avatar {
  --hc: #949ba8;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  color: #f2f4f8;
  font-weight: 600;
  font-size: .76rem;
  flex: none;
  overflow: hidden;
}
.kpl-hero-avatar img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kpl-hero-avatar.has-img i { display: none; }
.kpl-hero-avatar.img-fallback img.hero-img { display: none; }
.kpl-hero-avatar.img-fallback i { display: inline; font-style: normal; }
.kpl-hero-avatar.empty, .kpl-item-slot.empty { padding: 0; }
.kpl-hero-avatar.xs { width: 22px; height: 22px; border-radius: 5px; font-size: .6rem; }
.kpl-hero-avatar.sm { width: 32px; height: 32px; border-radius: 7px; font-size: .7rem; }
.kpl-hero-avatar.ban { width: 100%; height: 100%; border-radius: 6px; font-size: .68rem; }
.kpl-hero-avatar.lg { width: 46px; height: 46px; border-radius: 10px; font-size: .88rem; }
.kpl-hero-avatar.portrait {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.kpl-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  background: var(--surface-2);
  border-radius: 6px;
  margin: 2px;
  font-size: .8rem;
  color: #dce1ec;
}
.kpl-hero-chip b { font-weight: 500; }

/* 3-Columns Hero Portrait Grid: Avatar on top, Name centered below! */
.hero-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  max-width: 330px;
  margin: 12px auto 0;
  justify-items: center;
}
.hero-card-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 7px;
  width: 100%;
}
.hero-card-v span {
  font-size: .84rem;
  color: #e2e6f0;
  line-height: 1.3;
}

/*Centered Player Profile Card */
.profile-card-centered {
  background: var(--surface);
  border-radius: 12px;
  padding: 30px 28px;
  text-align: center;
  display: grid;
  gap: 20px;
}
.profile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.profile-top h2 {
  margin: 2px 0 0;
  font-size: 1.55rem;
  font-weight: 700;
}
.profile-meta-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-meta-item small {
  display: block;
  color: var(--sub);
  font-size: .78rem;
  margin-bottom: 4px;
}
.game-bind-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .84rem;
  color: #cfd5e2;
}
.profile-section-title {
  color: var(--sub);
  font-size: .8rem;
  font-weight: 500;
  margin: 0 0 6px;
}
.profile-bio {
  color: #cfd5e2;
  font-size: .92rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Playoff Bracket */
.bracket-wrap { overflow-x: auto; padding: 8px 0 12px; }
.bracket-section { margin-bottom: 24px; }
.bracket-section h3 { font-size: .88rem; color: var(--sub); margin: 0 0 12px; font-weight: 600; }
.bracket-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: center; }
.bracket-col { display: grid; gap: 12px; }
.bracket-col-title { font-size: .75rem; color: var(--dim); font-weight: 600; }
.bracket-node { display: block; background: var(--surface-2); border-radius: 8px; padding: 12px 14px; transition: background-color .15s; }
.bracket-node:hover { background: var(--surface-3); }
.bracket-node.grand-final { border-left: 3px solid var(--champagne); }
.bracket-meta { display: flex; justify-content: space-between; font-size: .72rem; color: var(--sub); margin-bottom: 8px; }
.bracket-team { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: .88rem; color: var(--sub); }
.bracket-team + .bracket-team { border-top: 1px solid var(--line); }
.bracket-team.winner { color: #fff; font-weight: 600; }

/* Stats Center */
.podium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.podium-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; position: relative; }
.podium-card:first-child { border-color: var(--gold-line); box-shadow: inset 0 0 24px rgba(229, 195, 123, 0.06); }
.podium-rank { font-size: .72rem; font-weight: 700; color: var(--dim); position: absolute; right: 14px; top: 12px; }
.podium-val { font-size: 1.25rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat-bar-wrap { display: flex; align-items: center; gap: 10px; min-width: 110px; }
.stat-bar { flex: 1; height: 4px; background: #252a35; border-radius: 2px; overflow: hidden; }
.stat-bar > i { display: block; height: 100%; background: #e6e9f0; }
.stat-bar.blue > i { background: var(--kpl-blue); }
.stat-bar.green > i { background: var(--green); }

/* General Pages & Directory */
.page-head { padding: 28px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}
.page-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--champagne), var(--accent));
}
.page-head p { margin: 4px 0 0; color: var(--sub); font-size: .9rem; }
.page { padding-bottom: 52px; }
.page .panel + .panel { margin-top: 18px; }
.panel-body { padding: 22px; }
.panel-body > h2, .panel-body > h3 { margin: 0 0 14px; }
.filters { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; max-width: 100%; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.tile { display: block; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: background-color .15s, border-color .15s, transform .15s; }
.tile:hover { background: var(--surface-2); border-color: var(--gold-line); transform: translateY(-1px); }
.tile h3 { margin: 10px 0 6px; font-size: 1rem; font-weight: 600; }
.tile p { color: var(--sub); line-height: 1.55; margin: 6px 0; font-size: .86rem; }
.tile-head { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--dim);
  object-fit: cover;
  flex: none;
}
.avatar .ico { width: 48%; height: 48%; }
.avatar.large { width: 88px; height: 88px; border-radius: 18px; }
.avatar.mini { width: 32px; height: 32px; border-radius: 8px; }

.radar-box { display: grid; place-items: center; padding: 8px; }
.radar-box svg { max-width: 230px; width: 100%; height: auto; }

.replay-summary { background: #13161c; border-radius: 8px; padding: 16px; margin-top: 12px; }
.curve-svg { width: 100%; height: auto; max-height: 170px; display: block; background: #101216; border-radius: 6px; margin: 12px 0; }

.news-item { padding: 13px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.news-item:first-child { border-top: 0; padding-top: 2px; }
.news-head { display: flex; align-items: flex-start; gap: 6px 8px; flex-wrap: wrap; }
.news-tags { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-top: 1px; }
.news-head b {
  font-size: .93rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 1 1 180px;
}
.news-body {
  margin: 0;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.empty { text-align: center; padding: 38px 14px; color: var(--sub); line-height: 1.65; }
.empty b { display: block; color: var(--white); font-size: .98rem; margin-bottom: 4px; font-weight: 600; }
.empty .actions { justify-content: center; margin-top: 14px; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list-row .push { margin-left: auto; }
.list-row:first-child { border-top: 0; }
.detail-top { padding: 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.detail-top h2 { margin: 0 0 4px; }
.details { padding: 20px 22px; display: grid; gap: 16px; }
.details b.label { color: var(--sub); font-size: .8rem; font-weight: 500; display: block; margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--surface-2); color: #e2e6f0; border-radius: 6px; margin: 2px; font-size: .82rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.group { margin-top: 20px; }
.group h3 { margin: 0 0 10px; font-size: .92rem; color: var(--sub); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 5px; color: var(--sub); font-size: .85rem; margin-top: 22px; }
.back:hover { color: #fff; }
.notice { background: var(--surface-2); border-left: 3px solid var(--champagne); border-radius: 6px; padding: 12px 15px; color: #d5dbe6; font-size: .86rem; line-height: 1.55; margin: 0 0 14px; }

.desk-tabs { display: flex; gap: 5px; overflow-x: auto; white-space: nowrap; padding-bottom: 16px; }
.desk-tabs .on { background: #f2f4f8; color: #101216; font-weight: 600; }
.scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data th, .data td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 9px; font-size: .86rem; }
.data th { color: var(--sub); font-weight: 500; font-size: .78rem; }
.data tr:hover td { background: rgba(255, 255, 255, 0.02); }
.data button { min-height: 28px; padding: 4px 9px; font-size: .78rem; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; }
.metrics > div { background: var(--surface-2); border-radius: 8px; padding: 14px 14px; color: var(--sub); font-size: .8rem; text-align: center; }
.number { display: block; font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.record { font-size: .86rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.record small { display: block; color: var(--sub); margin-top: 2px; }
.section-note { color: var(--dim); font-size: .76rem; margin: 12px 0 0; }

/* Dialogs & Multi-Lane / Hero Portrait Picker */
dialog {
  background: #181b22;
  color: var(--white);
  border: 1px solid var(--line-strong);
  padding: 0;
  border-radius: 12px;
  width: min(520px, calc(100% - 24px));
  max-height: 90vh;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}
dialog.wide {
  width: min(940px, calc(100% - 20px));
}
dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
#dialogBody { padding: 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.dialog-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; color: #fff; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .85rem; color: #cfd5e2; }
.form small { color: var(--sub); font-size: .76rem; }
.form input:not([type=checkbox]), input[type=search], .form select, .filters select, .form textarea {
  min-height: 38px;
  width: 100%;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #111318;
  color: #f2f4f8;
}
.form input:focus, input[type=search]:focus, .form select:focus, .filters select:focus, .form textarea:focus {
  border-color: #949ba8;
  outline: none;
}
.form textarea { resize: vertical; min-height: 76px; }
.form .check { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; color: #e2e6f0; }
fieldset { border: 0; background: var(--surface-2); border-radius: 8px; padding: 12px 14px; margin: 4px 0; }
legend { font-size: .8rem; font-weight: 600; color: var(--sub); padding: 0 4px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error { color: #ff808d; font-size: .85rem; }
.form-error:empty { display: none; }
.form-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.form-foot .primary { min-width: 104px; }

/* Multi-Lane Toggle Group */
.lane-toggles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.lane-toggles button {
  padding: 7px 6px;
  font-size: .82rem;
  background: #111318;
  color: var(--sub);
  border-radius: 6px;
}
.lane-toggles button[aria-pressed="true"] {
  background: #f2f4f8;
  color: #101216;
  font-weight: 600;
}

/* Hero Portrait Picker Grid inside Edit Modal */
.hero-picker-box { background: #111318; border-radius: 8px; padding: 12px; }
.mate-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding: 10px;
  background: #111318;
  border-radius: 8px;
}
.mate-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
}
.mate-option:hover { background: var(--surface-2); }
.mate-option input[type="checkbox"] { width: 16px; height: 16px; flex: none; margin: 0; }
.hero-picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  max-height: 230px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}
.hero-picks button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px;
  background: var(--surface);
  border-radius: 8px;
  font-size: .76rem;
  color: var(--sub);
}
.hero-picks button:hover { background: var(--surface-2); color: #fff; }
.hero-picks button[aria-pressed="true"] {
  background: rgba(242, 244, 248, 0.14);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px #f2f4f8;
}

#toast {
  position: fixed;
  z-index: 60;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #101216;
  background: #f2f4f8;
  font-weight: 600;
  font-size: .86rem;
  border-radius: 8px;
  padding: 10px 18px;
  max-width: 90vw;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: none;
}
#toast.show { display: block; }
.loading { padding-block: 80px; text-align: center; color: var(--sub); }

footer { border-top: 1px solid var(--line); background: var(--bg); }
.foot { padding-block: 22px; display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: .8rem; flex-wrap: wrap; }
.foot .small strong { font-size: 1.05rem; color: var(--sub); }
.foot-en { margin-left: auto; font-size: .72rem; letter-spacing: .12em; }

/* In-Page Broadcast Center (#/cast) */
.cast-match-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
}
.cast-match-pill {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  text-align: left;
  justify-items: start;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 8px;
  min-width: 158px;
}
.cast-match-pill .pill-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--sub);
}
.cast-match-pill b { font-size: .9rem; color: var(--white); font-variant-numeric: tabular-nums; }
.cast-match-pill.on {
  background: var(--surface-3);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.cast-media-panel { background: #0d0f13; }
.cast-media-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.cast-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050608;
  position: relative;
}
.cast-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.cast-screen-stage {
  position: relative;
  width: 100%;
  background: #07090e;
}
.cast-overlay-host {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #0b0e15;
}
.cast-screen-stage.is-auto-height .cast-overlay-host {
  aspect-ratio: auto;
  min-height: 420px;
}

/* Minimal Live Top Bar (Big Score + Kill Score + Match Time ONLY) */
.cast-live-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.96), rgba(17, 20, 28, 0.98));
  border: 1px solid var(--gold-line);
}
.clt-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.clt-side.right {
  justify-content: flex-end;
}
.clt-name {
  font-size: 1.04rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clt-series {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: .8rem;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.clt-series b {
  color: var(--champagne);
  font-size: .95rem;
  margin-left: 2px;
}
.clt-kills {
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.clt-kills.blue {
  background: rgba(71, 140, 255, 0.22);
  color: #82b4ff;
  border: 1px solid rgba(71, 140, 255, 0.45);
}
.clt-kills.red {
  background: rgba(242, 85, 101, 0.22);
  color: #ff8592;
  border: 1px solid rgba(242, 85, 101, 0.45);
}
.clt-center {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0 14px;
}
.clt-clock {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1.1;
}

/* KPL Symmetric 5v5 Hero Loading Screen (Figure 1) */
.kpl-loading-screen {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(92px, 1.05fr) minmax(0, 5fr);
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ece8df 0%, #dcd5c7 50%, #cfc6b4 100%);
  color: #16181f;
}
.kpl-load-wing {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  height: 100%;
}
.kpl-load-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #141821;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(20, 24, 33, 0.25);
}
.kpl-load-card.is-blue { border-top: 3px solid #3b82f6; }
.kpl-load-card.is-red { border-top: 3px solid #ef4444; }
.kpl-load-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(165deg, #252b3b 0%, #11141d 100%);
  display: grid;
  place-items: center;
}
.kpl-load-art .kpl-load-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .14s ease-out;
}
.kpl-load-art .kpl-load-canvas.is-painted {
  opacity: 1;
}
.kpl-mvp-poster .mvp-bg-img {
  opacity: 0;
  transition: opacity .15s ease-out;
}
.kpl-mvp-poster .mvp-bg-img.is-aligned {
  opacity: 1;
}
.kpl-load-glyph {
  font-style: normal;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
}
.kpl-load-card.has-art:not(.img-fallback) .kpl-load-glyph { display: none; }
.kpl-load-card.img-fallback .hero-splash-img { display: none; }
.kpl-load-hname {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 4px 5px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 18, 0.88));
  color: rgba(255, 255, 255, 0.92);
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpl-load-plate {
  background: linear-gradient(180deg, #fbfaf7 0%, #eee9dd 100%);
  padding: 7px 4px 8px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 2px;
  border-top: 2px solid #cbb07a;
}
.kpl-load-lane {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(186, 145, 72, 0.18);
  color: #9b732b;
  display: inline-grid;
  place-items: center;
}
.kpl-load-lane svg { width: 12px; height: 12px; }
.kpl-load-nick {
  font-size: .86rem;
  font-weight: 800;
  color: #161922;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.kpl-load-club {
  font-size: .66rem;
  color: #666c7a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.kpl-load-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 241, 231, 0.88));
  border-radius: 6px;
  border: 1px solid rgba(190, 154, 86, 0.35);
}
.kpl-load-logo { width: 42px; height: 42px; margin-bottom: 4px; }
.kpl-load-brand {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: #8f6826;
}
.kpl-load-sub {
  font-size: .68rem;
  font-weight: 700;
  color: #7c6236;
  margin-top: 1px;
}
.kpl-load-divider {
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c49a4e, transparent);
  margin: 10px 0;
}
.kpl-load-stage {
  font-size: .86rem;
  color: #232733;
}
.kpl-load-gnum {
  font-size: .72rem;
  color: #676d7c;
  margin-top: 3px;
}

/* Post-Game Waiting Screen & Post-Game Data Screen */
.cast-wait-screen {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(229, 195, 123, 0.16), rgba(11, 14, 21, 0.94)),
    url("/assets/arena.webp") center / cover no-repeat;
}
.cast-wait-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 620px;
  padding: 32px 38px;
  border-radius: 14px;
  background: rgba(14, 17, 25, 0.84);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(6px);
}
.cast-wait-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--champagne);
  font-weight: 700;
  font-size: .9rem;
}
.cast-wait-teams {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.cast-wait-teams small {
  color: var(--champagne);
  font-size: .85rem;
}
.cast-wait-inner h2 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  color: #fff;
  letter-spacing: .03em;
}
.cast-wait-inner p { margin: 0; font-size: .88rem; }

.cast-post-stats-screen {
  padding: 18px 20px 22px;
  background: linear-gradient(180deg, #131722 0%, #0e1119 100%);
  display: grid;
  gap: 14px;
}
.cps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cps-boards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.cps-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}
.cps-side.is-win { border-top: 3px solid #f25565; }
.cps-side.is-loss { border-top: 3px solid #478cff; }
.cps-side-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.cps-row {
  display: grid;
  grid-template-columns: minmax(175px, 1.15fr) minmax(200px, 1.25fr) auto;
  align-items: center;
  gap: 16px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}
.cps-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.cps-hero { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cps-nick-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .88rem; }

/* Shared KDA-Above-Items Stack & 4-Row Uniform Stat Column */
.hok-build-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.hok-kda-top {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hok-kda-num.number {
  display: inline;
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  letter-spacing: .01em;
}
.hok-quad-stats {
  display: grid;
  gap: 2px;
  text-align: left;
  justify-self: end;
  min-width: 168px;
  font-size: .78rem;
  line-height: 1.38;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hok-quad-stats span {
  color: var(--sub);
}
.hok-quad-stats b {
  color: #edf1f8;
  font-weight: 600;
}

/* Pre-fabricated Winning MVP Poster (Figure 2) */
.kpl-mvp-poster {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 35%, #2b2418 0%, #0c0e14 80%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.kpl-mvp-poster .mvp-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 18%;
}
.kpl-mvp-poster.img-fallback .mvp-bg-img { display: none; }
.kpl-mvp-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 18, 0.94) 0%, rgba(12, 14, 20, 0.72) 48%, rgba(12, 14, 20, 0.14) 100%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.25) 0%, transparent 45%, rgba(10, 12, 18, 0.85) 100%);
}
.kpl-mvp-corner {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(12, 15, 22, 0.68);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(4px);
}
.kpl-mvp-corner strong {
  display: block;
  font-size: .84rem;
  color: var(--champagne);
}
.kpl-mvp-corner small {
  display: block;
  font-size: .72rem;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}
.kpl-mvp-content {
  position: relative;
  z-index: 2;
  padding: 28px 36px;
  display: grid;
  gap: 12px;
  max-width: 66%;
}
.kpl-mvp-sub {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--champagne);
}
.kpl-mvp-word {
  font-size: clamp(3.4rem, 7.6vw, 6.4rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #fff3cc 0%, #e1b868 52%, #9a7029 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
}
.kpl-mvp-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 22px 7px 8px;
  background: linear-gradient(90deg, rgba(248, 245, 238, 0.96), rgba(235, 228, 214, 0.92));
  border-radius: 8px;
  border-left: 4px solid #c59b4d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  width: fit-content;
  max-width: 100%;
}
.kpl-mvp-lane-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #c49a4e;
  color: #fff;
  font-size: .8rem;
  flex: none;
}
.kpl-mvp-lane-box svg { width: 15px; height: 15px; }
.kpl-mvp-player {
  font-size: clamp(1rem, 1.9vw, 1.38rem);
  font-weight: 800;
  color: #151821;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpl-mvp-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.kpl-mvp-portrait {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(18, 22, 31, 0.85);
  border: 1.5px solid var(--champagne);
}
.kpl-mvp-portrait span {
  font-size: .76rem;
  font-weight: 700;
  color: #f3ead6;
}
.kpl-mvp-stat-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.kpl-mvp-stat {
  display: grid;
  gap: 4px;
}
.kpl-mvp-stat-label {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(229, 195, 123, 0.34), rgba(229, 195, 123, 0.08));
  color: var(--champagne);
  font-size: .74rem;
  font-weight: 700;
}
.kpl-mvp-stat b, .kpl-mvp-stat .number {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.cast-scorebox { padding: 20px 22px; }
.cast-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.cast-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cast-side.right { justify-content: flex-end; text-align: right; }
.cast-team-name { font-size: 1.12rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-pips { display: inline-flex; gap: 5px; margin-top: 5px; }
.cast-pips i { width: 14px; height: 4px; border-radius: 2px; background: var(--surface-3); display: block; }
.cast-pips i.on { background: var(--champagne); }
.cast-center { text-align: center; display: grid; justify-items: center; gap: 4px; }
.cast-points { font-size: 2rem; font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.cast-hud-strip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cast-hud-mid { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.cast-pre-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.cast-subcard { background: var(--surface-2); border-radius: 8px; padding: 14px 16px; }
.cast-lane-list { display: grid; gap: 8px; margin-top: 12px; }
.cast-lane-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 8px;
}
.cast-lane-tag { text-align: center; font-size: .78rem; color: var(--sub); font-weight: 600; }
.cast-bp-side { background: var(--surface-2); border-radius: 8px; padding: 14px; }
.cast-ban-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cast-ban-slot {
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 34px;
  border-radius: 7px;
  background: #111318;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  display: inline-grid;
  place-items: center;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1;
  color: var(--dim);
  overflow: hidden;
  position: relative;
}
.cast-ban-slot.filled {
  border: 1px solid rgba(242, 85, 101, 0.55);
  opacity: .88;
}
.cast-ban-slot.filled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(242, 85, 101, 0.72) 48%, rgba(242, 85, 101, 0.72) 52%, transparent 54%);
  pointer-events: none;
}
.cast-pick-list { display: grid; gap: 8px; }
.cast-pick-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: rgba(16, 18, 22, 0.45); border-radius: 7px; }
.cast-timer { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--champagne); }
.cast-timer.urgent { color: var(--accent); }
.cast-live-p { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-variant-numeric: tabular-nums; }
.cast-hp { height: 5px; background: #111318; border-radius: 3px; overflow: hidden; margin-top: 5px; }
.cast-hp i { display: block; height: 100%; background: var(--kpl-blue); }
.cast-hp.red i { background: var(--kpl-red); }
.cast-op-desk { background: #151922; border-top: 2px solid rgba(222, 185, 116, 0.35); }
.cast-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding: 10px;
  background: #101216;
  border-radius: 8px;
}
.cast-hero-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 4px;
  background: var(--surface);
  font-size: .74rem;
}
.cast-hero-pick.on { box-shadow: inset 0 0 0 1.5px #f2f4f8; color: #fff; }
.cast-op-table input {
  width: 68px;
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: #101216;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Honor of Kings Career Overview, Match History List & Single-Game Detail */
.kpl-hero-avatar.md {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: .82rem;
}
.career-subhead {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--champagne);
  display: flex;
  align-items: center;
  gap: 8px;
}
.career-subhead::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--champagne), var(--accent));
}
.career-metrics-7 {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}
.hok-empty {
  padding: 26px 14px;
  text-align: center;
  color: var(--sub);
  background: var(--surface-2);
  border-radius: 8px;
  font-size: .86rem;
}
.hok-items {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.kpl-item-slot {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #0f1218;
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  flex: none;
  font-size: .58rem;
  color: #cfd6e4;
}
.kpl-item-slot.empty {
  opacity: .38;
  border-style: dashed;
}
.kpl-item-slot .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kpl-item-slot > i {
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}
.kpl-item-slot.has-img:not(.img-fallback) > i { display: none; }
.kpl-item-slot.img-fallback > .hero-img { display: none; }

/* Red = Win / Winning MVP, Blue = Loss / Losing MVP */
.hok-res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 21px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  flex: none;
}
.hok-res.win {
  background: rgba(242, 85, 101, 0.22);
  color: #ff7a88;
  border: 1px solid rgba(242, 85, 101, 0.52);
}
.hok-res.loss {
  background: rgba(71, 140, 255, 0.22);
  color: #7eb3ff;
  border: 1px solid rgba(71, 140, 255, 0.52);
}
.hok-mvp {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.hok-mvp.win-mvp {
  background: linear-gradient(135deg, rgba(242, 85, 101, 0.3), rgba(242, 85, 101, 0.14));
  color: #ff8794;
  border: 1px solid rgba(242, 85, 101, 0.56);
}
.hok-mvp.loss-mvp {
  background: linear-gradient(135deg, rgba(71, 140, 255, 0.3), rgba(71, 140, 255, 0.14));
  color: #8cb9ff;
  border: 1px solid rgba(71, 140, 255, 0.56);
}

.hok-history-list {
  display: grid;
  gap: 10px;
}
.hok-game-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--surface-2);
  transition: transform .15s, border-color .15s, background-color .15s;
}
.hok-game-row.is-win {
  border-left-color: #f25565;
  background: linear-gradient(90deg, rgba(242, 85, 101, 0.11) 0%, rgba(26, 30, 40, 0.95) 45%);
}
.hok-game-row.is-loss {
  border-left-color: #478cff;
  background: linear-gradient(90deg, rgba(71, 140, 255, 0.11) 0%, rgba(26, 30, 40, 0.95) 45%);
}
.hok-game-row:hover {
  transform: translateX(2px);
  border-color: var(--gold-line);
}
.hok-game-row.is-win:hover { border-left-color: #ff6b7a; }
.hok-game-row.is-loss:hover { border-left-color: #639eff; }
.hok-hero-col {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hok-main-col {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.hok-score-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hok-hero-name {
  font-size: .92rem;
  color: #fff;
}
.hok-kda.number {
  display: inline;
  font-size: 1.04rem;
  margin: 0;
  letter-spacing: .02em;
}
.hok-lane-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sub);
  font-size: .74rem;
}
.hok-lane-pill svg { width: 12px; height: 12px; }
.hok-meta-col {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.hok-meta-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .84rem;
  color: #e6ebf5;
}
.hok-opp { color: var(--champagne); font-weight: 600; }
.hok-gnum {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  font-size: .74rem;
  color: #d3d9e6;
}
.hok-time { color: var(--dim); font-size: .75rem; font-variant-numeric: tabular-nums; }
.hok-arrow { color: var(--dim); display: inline-flex; align-items: center; }
.hok-arrow .ico { width: 16px; height: 16px; }

/* Series Game Cards (#/match/:id) */
.series-games-list { display: grid; gap: 10px; }
.series-game-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.series-game-card:hover {
  background: var(--surface-3);
  border-color: var(--gold-line);
  transform: translateY(-1px);
}
.sgc-left { display: grid; gap: 3px; }
.sgc-left b { font-size: .96rem; color: #fff; }
.sgc-sides { display: grid; gap: 7px; min-width: 0; }
.sgc-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sgc-tname { font-size: .88rem; min-width: 68px; }
.sgc-kills.number { display: inline; font-size: .82rem; color: var(--sub); margin: 0; min-width: 34px; }
.sgc-heroes { display: inline-flex; gap: 4px; align-items: center; }
.sgc-right { display: flex; align-items: center; gap: 10px; }
.sgc-mvps { display: grid; gap: 5px; justify-items: end; }

/* Full Single-Game Scoreboard (#/match/:id/:gameNum) */
.hok-team-board.board-win { border-top: 3px solid #f25565; }
.hok-team-board.board-loss { border-top: 3px solid #478cff; }
.hok-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hok-board-totals { display: inline-flex; gap: 14px; font-size: .83rem; }
.hok-board-totals .number { display: inline; font-size: .92rem; margin: 0 0 0 3px; }
.hok-ban-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.hok-player-table { display: grid; }
.hok-detail-row {
  display: grid;
  grid-template-columns: minmax(175px, 1.15fr) minmax(200px, 1.25fr) auto;
  align-items: center;
  gap: 16px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.hok-detail-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.hok-detail-hero { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hok-detail-names { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Categorized Icon-Only Equipment Shop & Interactive 6-Slot Build Bar */
.hok-item-shop {
  background: #11141c;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}
.hok-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hok-shop-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hok-shop-meta b {
  color: var(--champagne);
}
.hok-shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 122px;
  overflow-y: auto;
  padding: 2px 0;
}
.item-icon-only {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.item-icon-only:hover {
  transform: translateY(-1px) scale(1.05);
  border-color: var(--champagne);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.item-icon-only .kpl-item-slot {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 5px;
}

.hok-edit-build {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 7px;
  background: #0e1118;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color .14s, background-color .14s, box-shadow .14s;
}
.hok-edit-build.is-active {
  border-color: var(--champagne);
  background: rgba(229, 195, 123, 0.08);
  box-shadow: 0 0 0 2px rgba(229, 195, 123, 0.16);
}
.hok-edit-slots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hok-slot-btn {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  background: #151923;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--dim);
  font-size: .82rem !important;
  line-height: 1;
}
.hok-slot-btn.is-empty:hover {
  border-color: var(--champagne);
  color: var(--champagne);
}
.hok-slot-btn.filled {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  position: relative;
}
.hok-slot-btn.filled:hover {
  border-color: #ff7a88;
}
.hok-slot-btn.filled .kpl-item-slot {
  width: 28px;
  height: 28px;
  border: 0;
}

.adm-game-table th, .adm-game-table td { padding: 6px 5px; }
.adm-game-table select, .adm-game-table input:not([type="hidden"]) {
  min-height: 32px !important;
  padding: 4px 7px !important;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.adm-game-table input[type="number"]::-webkit-inner-spin-button,
.adm-game-table input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.adm-game-table input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 860px) {
  .hero-split, .home-grid, .cast-pre-grid, .cps-boards { grid-template-columns: 1fr; }
  .kpl-loading-screen {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px;
  }
  .cast-screen-stage.is-overlay-active .cast-overlay-host {
    aspect-ratio: auto;
    min-height: 300px;
  }
  .kpl-load-card { min-height: 150px; }
  .kpl-load-center { flex-direction: row; gap: 10px; padding: 6px 12px; }
  .kpl-load-divider { display: none; }
  .kpl-mvp-content { max-width: 100%; padding: 20px 18px; }
  .kpl-mvp-corner { position: static; margin: 12px 18px 0; width: fit-content; }
  .kpl-mvp-poster { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 320px; }
  .hero-split { padding-block: 30px; gap: 22px; }
  .hero::before { background-position: center 32%; opacity: .74; }
  .hero::after {
    background:
      radial-gradient(ellipse 90% 70% at 50% 28%, rgba(229, 195, 123, 0.16) 0%, rgba(13, 15, 20, 0.48) 55%, rgba(13, 15, 20, 0.92) 100%),
      linear-gradient(180deg, rgba(13, 15, 20, 0.35) 0%, rgba(13, 15, 20, 0.72) 68%, #0d0f14 100%);
  }
}
@media (max-width: 680px) {
  :root { font-size: 14.5px; }
  .shell, .top-in { width: calc(100% - 24px); }
  .top-in { height: auto; min-height: 50px; flex-wrap: wrap; gap: 6px 10px; justify-content: space-between; padding-top: 8px; }
  .brand strong { font-size: 1.2rem; }
  .brand span { font-size: .78rem; padding-left: 7px; }
  .account { gap: 6px; }
  .account button, .account .btn { padding: 5px 10px; min-height: 31px; font-size: .82rem; }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    height: 40px;
    border-top: 1px solid var(--line);
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { font-size: .86rem; }
  .content { padding: 20px 0 36px; }
  .page { padding-bottom: 36px; }
  .page-head { padding: 20px 0 14px; }
  .page-head h1 { font-size: 1.35rem; }
  .panel-head { padding: 15px 15px 10px; }
  .subbar { padding: 0 15px 10px; }
  .panel .inset { padding: 4px 15px 15px; }
  .panel-body, .detail-top, .details { padding: 16px; }
  .spotlight-card { padding: 16px; }
  .spot-vs .big-score { font-size: 1.55rem; }
  .big.crest { width: 42px; height: 42px; border-radius: 10px; font-size: .84rem; }
  .match-card { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 12px 6px; }
  .match-card > .status { display: none; }
  .duel { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 6px; }
  .squad { gap: 6px; }
  .squad strong, .squad b { font-size: .88rem; }
  .crest { width: 26px; height: 26px; font-size: .64rem; }
  .filters select, .filters input[type=search] { flex: 1 1 140px; }
  .pair { grid-template-columns: 1fr; }
  .lane-toggles { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .lane-toggles button { padding: 6px 2px; font-size: .75rem; }
  .mate-picker-list { grid-template-columns: 1fr; }
  .hero-picks { grid-template-columns: repeat(3, 1fr); }
  .profile-card-centered { padding: 22px 16px; }
  .profile-meta-row { gap: 16px 22px; }
  .cast-media-bar { padding: 10px 12px; gap: 8px; }
  .cast-scorebox { padding: 16px 14px; }
  .cast-scoreline { gap: 8px; }
  .cast-team-name { font-size: .92rem; }
  .cast-points { font-size: 1.45rem; }
  .cast-live-topbar { padding: 10px 12px; gap: 6px; }
  .clt-name { font-size: .86rem; }
  .clt-series { padding: 2px 6px; font-size: .72rem; }
  .clt-kills { min-width: 30px; height: 28px; font-size: 1rem; padding: 0 6px; }
  .clt-clock { font-size: 1.2rem; }
  .cps-row { grid-template-columns: 1fr; gap: 8px; }
  .hok-quad-stats { justify-self: start; min-width: 0; }
  .cast-hud-strip { justify-content: center; gap: 8px; font-size: .78rem; }
  .cast-lane-row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 6px; padding: 8px 10px; }
  .hok-game-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
  }
  .hok-meta-col {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .hok-meta-title { justify-content: flex-start; }
  .hok-game-row > .hok-arrow { display: none; }
  .kpl-item-slot { width: 23px; height: 23px; }
  .series-game-card { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .sgc-right { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
  .sgc-mvps { display: flex; flex-wrap: wrap; gap: 6px; justify-items: start; }
  .hok-detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 2px;
  }
  .hok-detail-stats { justify-content: flex-start; }
  dialog, dialog.wide { width: calc(100% - 16px); max-height: 92dvh; }
  #dialogBody { padding: 16px; }
  .foot-en { display: none; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
  .hero-lane-runes { gap: 5px 10px; font-size: .73rem; }
}
