@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #0E0E12;
  --bar: #141419;
  --card: #18181E;
  --tile: #202028;
  --line: #2B2B35;
  --text: #F3F3F6;
  --soft: #D6D6DE;
  --muted: #A3A3AF;
  --accent: #A68BFF;
  --accent-soft: #C7B6FF;
  --accent-bg: #231C3B;
  --accent-line: #4A3B85;
  --win: #4CD07D;
  --loss: #FF5A5F;
  --wrap: 1240px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 Rubik, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
a:hover { color: var(--accent-soft); }

img { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { background: var(--bar); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }

.brand { display: flex; align-items: center; gap: 10px; min-height: 68px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-weight: 800; font-size: 20px; }
.brand-name span, .footer-brand span { color: var(--accent); }

.main-nav { display: flex; flex-wrap: wrap; gap: 0 26px; flex-grow: 1; }
.main-nav a {
  display: flex; align-items: center; min-height: 68px; padding-top: 3px;
  color: var(--muted); font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 10px; padding: 12px 0; }

.mini-search {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px;
  border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
}
.mini-search:focus-within { border-color: var(--accent); }
.mini-search input {
  width: 150px; min-height: 40px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px;
}

.lang-pick {
  min-height: 42px; padding: 0 30px 0 12px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A3A3AF' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 700; appearance: none;
}
.lang-pick:hover, .lang-pick:focus { border-color: var(--accent); outline: 0; }
.lang-pick option { background: var(--card); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--text); border-color: #3A3A47; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn-accent:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--bg); }
.btn-big { min-height: 48px; padding: 0 22px; font-weight: 800; font-size: 15px; text-transform: uppercase; }

main { flex-grow: 1; }

.page-head { background: var(--bar); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 32px; padding-bottom: 32px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head h1 { margin: 0; font-weight: 800; font-size: 42px; text-transform: uppercase; }
.page-head p { margin: 0; color: var(--muted); }

.page-body { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0; font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.01em; }
.section-head a { font-weight: 600; }

.card { border-radius: 8px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.card-head a { font-size: 13px; font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.note { font-size: 13px; color: var(--muted); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th {
  padding: 12px 16px; font-weight: 600; text-align: left; color: var(--muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.data td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.data .num { text-align: right; white-space: nowrap; }
.data th.sortable { cursor: pointer; user-select: none; }
.data th.sortable:hover { color: var(--text); }
.data th.sorted { color: var(--accent-soft); }
.data tbody tr:hover { background: #1C1C23; }

.rank { font-weight: 800; color: var(--muted); }
.rank.first { color: var(--accent); }

.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.who-name { font-weight: 600; color: var(--text); }
.who-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
a.who { text-decoration: none; }

.hero-img { width: 64px; height: 36px; border-radius: 4px; object-fit: cover; background: var(--tile); flex-shrink: 0; }
.hero-sq { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; object-position: center; background: var(--tile); flex-shrink: 0; }
.item-img { width: 40px; height: 30px; border-radius: 4px; object-fit: cover; background: var(--tile); border: 1px solid var(--line); flex-shrink: 0; }

.bar-cell { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.bar-cell span { font-weight: 700; }
.bar { height: 5px; border-radius: 3px; background: #26262F; overflow: hidden; }
.bar > div { height: 100%; border-radius: 3px; background: var(--accent); }

.good { color: var(--win); }
.bad { color: var(--loss); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.tile { padding: 18px 20px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.tile-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tile-value { font-weight: 800; font-size: 32px; }
.tile-sub { font-size: 13px; color: var(--muted); }

.state { padding: 40px 24px; text-align: center; color: var(--muted); }
.state strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 17px; }

.skeleton { background: linear-gradient(90deg, #1B1B22 0%, #23232B 50%, #1B1B22 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.soon {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px;
  background: var(--accent-bg); color: var(--accent-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

.hero-block { position: relative; overflow: hidden; background: var(--accent-bg); border-bottom: 1px solid var(--accent-line); }
.hero-block .ghost {
  position: absolute; right: -60px; bottom: -70px; font-weight: 800; font-size: 300px; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px var(--accent-line); white-space: nowrap; pointer-events: none;
}
.hero-block .wrap { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 88px; padding-bottom: 88px; }
.hero-block h1 { margin: 0; max-width: 820px; font-weight: 800; font-size: 70px; line-height: 1; text-transform: uppercase; }
.hero-block p { margin: 0; max-width: 600px; color: #D2CBEA; font-size: 18px; line-height: 1.5; }

.big-search { width: 100%; max-width: 760px; display: flex; flex-wrap: wrap; gap: 10px; }
.big-search .field {
  flex: 1 1 340px; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 0 18px;
  border-radius: 8px; background: var(--bg); border: 2px solid var(--accent);
}
.big-search input { flex-grow: 1; min-width: 0; min-height: 58px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; }
.big-search button {
  min-height: 62px; padding: 0 34px; border-radius: 8px; border: 0; background: var(--accent); color: var(--bg);
  font: inherit; font-weight: 800; font-size: 16px; text-transform: uppercase; cursor: pointer;
}
.big-search button:hover { background: var(--accent-soft); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
}
.pill:hover { color: var(--text); border-color: var(--accent-line); }

.home-body { display: flex; flex-direction: column; gap: 56px; padding-top: 56px; }
.home-section { display: flex; flex-direction: column; gap: 18px; }

.hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.hero-card { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hero-card:hover { color: var(--text); border-color: var(--accent-line); }
.hero-card > img, .hero-card > .skeleton { width: 100%; height: 120px; object-fit: cover; border-radius: 0; }
.hero-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.hero-card-body .name { font-weight: 700; }
.hero-card-body .attr { font-size: 12px; font-weight: 600; }
.hero-card-body .line { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; }
.hero-card-body .line span:first-child { color: var(--muted); }
.hero-card-body .line span:last-child { font-weight: 700; }

.two-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.two-cols .item-img { width: 50px; height: 36px; }
.two-cols > .card { flex: 1 1 380px; min-width: 0; }

.app-block { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.app-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.app-text h2 { margin: 0; font-weight: 800; font-size: 34px; line-height: 1.1; text-transform: uppercase; }
.app-text p { margin: 0; color: var(--muted); line-height: 1.6; }
.app-preview { flex: 1 1 340px; display: flex; gap: 14px; padding: 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.app-preview img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.app-preview div { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.app-preview b { font-size: 15px; }
.app-preview span { color: var(--soft); }
.app-preview span:last-child { color: var(--muted); }

.news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.news-card:hover { color: var(--text); border-color: var(--accent-line); }
.news-cover {
  height: 170px; display: flex; align-items: flex-end; padding: 18px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, #4A3B85 0%, transparent 55%), linear-gradient(135deg, #231C3B, #121218);
}
.news-cover span { font-weight: 800; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent-soft); }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.news-body .title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.news-body .when { font-size: 13px; color: var(--muted); }

.item-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.item-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.item-card .top { display: flex; align-items: center; gap: 14px; }
.item-card .top img { width: 56px; height: 42px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); background: var(--tile); }
.item-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.item-card .meta { font-size: 12px; color: var(--muted); }
.item-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item-stats div { display: flex; flex-direction: column; gap: 2px; }
.item-stats span:first-child { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.item-stats span:last-child { font-weight: 800; font-size: 20px; }

.player-head .wrap { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; }
.player-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.player-avatar { width: 104px; height: 104px; border-radius: 10px; border: 2px solid var(--accent); background: var(--accent-bg); object-fit: cover; }
.player-info { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-width: 240px; }
.player-info .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.player-info h1 { margin: 0; font-weight: 800; font-size: 42px; word-break: break-word; text-transform: none; }
.player-info .sub { color: var(--muted); font-size: 14px; }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; background: #10302D; color: #8CEBE1; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.rank-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2FD4C4; }
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.player-tabs { display: flex; flex-wrap: wrap; gap: 0 28px; }
.player-tabs a { display: flex; align-items: center; min-height: 52px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 500; text-decoration: none; }
.player-tabs a:hover { color: var(--text); }
.player-tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); font-weight: 700; }

.player-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.player-grid > section { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.player-grid > aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }
.player-grid h2 { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.side-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.side-card h2 { font-size: 16px !important; }
.fav { display: flex; align-items: center; gap: 12px; }
.fav .info { flex-grow: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fav .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.fav .sub { font-size: 12px; color: var(--muted); }
.often { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.often span:nth-child(2) { flex-grow: 1; font-weight: 600; }
.often span:last-child { color: var(--muted); font-size: 13px; }

.result { font-weight: 700; }
.small { font-size: 12px; color: var(--muted); }

.results-list { display: flex; flex-direction: column; }
.results-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.results-list a:first-child { border-top: 0; }
.results-list a:hover { background: #1C1C23; color: var(--text); }
.results-list img { width: 44px; height: 44px; border-radius: 6px; background: var(--tile); }

.me-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; margin: 16px auto 0; }
.me-form input {
  flex: 1 1 260px; min-height: 46px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; outline: 0;
}
.me-form input:focus { border-color: var(--accent); }

.podium { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.podium > div {
  flex: 1 1 260px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px;
  border-radius: 10px; background: var(--card); border: 1px dashed var(--line); text-align: center; color: var(--muted);
}

.site-footer { margin-top: 72px; background: var(--bar); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.footer-about { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.footer-about p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 56px; font-size: 14px; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav b { font-weight: 700; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.copyright { border-top: 1px solid var(--line); }
.copyright .wrap { padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: 0.2s;
  padding: 12px 18px; border-radius: 8px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--text);
  font-size: 14px; z-index: 50; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .hero-block h1 { font-size: 42px; }
  .hero-block .ghost { font-size: 160px; }
  .page-head h1, .player-info h1 { font-size: 32px; }
  .hide-sm { display: none; }
  .data td, .data th { padding: 10px; }
}

.attr-tag { display: inline-flex; align-items: center; gap: 5px; }
.attr-icon { width: 16px; height: 16px; flex-shrink: 0; }
.chip .attr-icon { width: 18px; height: 18px; margin-left: -4px; }
.rank-medal { width: 30px; height: 30px; margin: -6px -2px -6px -9px; }

.data tr.clickable { cursor: pointer; }

.match-head .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; padding-bottom: 32px; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.scoreline .side { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--muted); }
.scoreline .side.right { justify-content: flex-end; }
.scoreline .side.won { color: var(--text); }
.scoreline .score { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 56px; line-height: 1; }
.scoreline .score i { font-style: normal; color: var(--muted); font-size: 40px; }
.team-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.match-meta { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.match-meta b { color: var(--text); }
.match-meta b.good { color: var(--win); }
.match-meta b.bad { color: var(--loss); }

.team { overflow: hidden; }
.team-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px 18px; }
.team-head h2 { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.team-sum { margin-left: auto; font-size: 13px; color: var(--muted); }
.win-tag { background: rgba(76, 208, 125, 0.14); color: var(--win); }
.table-scroll { overflow-x: auto; }
.match-table td { padding: 10px 14px; }
.match-table th { padding: 10px 14px; }
.match-table tbody tr { cursor: pointer; }
.match-table tbody tr.picked { background: var(--accent-bg); }
.match-table tbody tr.picked td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.match-table .who-name { text-decoration: none; }
.match-table a.who-name:hover { color: var(--accent-soft); }
.muted-name { color: var(--muted) !important; font-style: italic; }
.hero-lvl { position: relative; flex-shrink: 0; }
.hero-lvl span {
  position: absolute; right: -4px; bottom: -6px; min-width: 20px; padding: 1px 4px; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--line); font-size: 11px; font-weight: 700; text-align: center;
}
.row-medal { width: 34px; height: 34px; margin-left: auto; flex-shrink: 0; }
.slots { display: flex; gap: 3px; align-items: center; }
.slot { width: 38px; height: 28px; border-radius: 3px; object-fit: cover; background: var(--tile); border: 1px solid var(--line); flex-shrink: 0; }
.slot.empty { display: inline-block; opacity: 0.5; }
.slot.neutral { width: 28px; height: 28px; border-radius: 50%; margin-left: 6px; }
.slots.backpack { margin-top: 4px; }
.slot.small { width: 26px; height: 19px; opacity: 0.6; }

.build .card-head, .chart-card .card-head { flex-wrap: wrap; gap: 8px 16px; }
.timeline { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 10px; }
.timeline li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.timeline img { width: 52px; height: 38px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); background: var(--tile); }
.timeline .t-name { font-size: 12px; line-height: 1.25; color: var(--soft); }
.timeline .t-time { font-size: 12px; font-weight: 700; color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart { padding: 8px 18px 16px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 12px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: #4A4A58; stroke-width: 1; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart #cross-dot { stroke: var(--card); stroke-width: 2; }
.chart-tip {
  position: absolute; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px;
  background: var(--bar); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

@media (max-width: 760px) {
  .scoreline .side { font-size: 15px; }
  .scoreline .score { font-size: 38px; }
  .row-medal { display: none; }
}
.chart-tip[hidden] { display: none; }
.match-table { table-layout: fixed; min-width: 1000px; }
.match-table th:nth-child(2) { width: 100px; }
.match-table th:nth-child(3) { width: 90px; }
.match-table th:nth-child(4) { width: 110px; }
.match-table th:nth-child(5) { width: 100px; }
.match-table th:nth-child(6) { width: 80px; }
.match-table th:nth-child(7) { width: 330px; }
@media (max-width: 760px) { .match-table { table-layout: auto; min-width: 0; } .match-table th { width: auto !important; } }

.user-slot { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 9px; min-height: 42px; max-width: 210px; padding: 0 14px 0 5px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none;
}
.user-chip:hover { border-color: var(--accent); color: var(--text); }
.user-chip img { width: 32px; height: 32px; border-radius: 5px; background: var(--tile); flex-shrink: 0; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 42px; padding: 0; color: var(--muted); }
