:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #151c26;
  --panel-2: #1a2330;
  --panel-3: #202b39;
  --line: rgba(208, 220, 235, .09);
  --line-strong: rgba(208, 220, 235, .15);
  --text: #edf1f5;
  --muted: #929eac;
  --dim: #667382;
  --gold: #c7a45c;
  --gold-bright: #e0c17e;
  --gold-soft: rgba(199, 164, 92, .13);
  --green: #73c6a0;
  --red: #e17d78;
  --blue: #7fa9dc;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 80% -15%, rgba(96, 118, 145, .14), transparent 42%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; padding: 27px 18px 22px; display: flex; flex-direction: column; z-index: 20; background: rgba(15, 21, 29, .96); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, #e1c17d, #a9823e); box-shadow: 0 6px 22px rgba(199,164,92,.18); }
.brand-mark svg { width: 34px; height: 34px; fill: none; stroke: #171b22; stroke-width: 1.7; stroke-linejoin: round; }
.brand-mark svg path:last-child { fill: #171b22; stroke: none; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 13px; letter-spacing: .17em; font-weight: 800; }
.brand-copy small { color: var(--gold); font-size: 9px; letter-spacing: .24em; font-weight: 700; }
.sidebar-label { padding: 0 12px 11px; color: #647181; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border: 1px solid transparent; border-radius: 10px; color: #aab5c1; font-size: 12px; font-weight: 650; transition: .18s ease; }
.side-nav a:hover { color: var(--text); background: rgba(255,255,255,.035); }
.side-nav a.active { color: #f1d99f; background: linear-gradient(90deg, rgba(199,164,92,.15), rgba(199,164,92,.045)); border-color: rgba(199,164,92,.16); }
.nav-icon { display: inline-grid; place-items: center; width: 19px; color: #8693a2; font-size: 17px; }
.side-nav a.active .nav-icon { color: var(--gold-bright); }
.sidebar-bottom { margin-top: auto; }
.sidebar-rule { height: 1px; background: var(--line); margin: 0 8px 19px; }
.sidebar-clan { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.clan-mini-mark { width: 34px; height: 34px; border: 1px solid rgba(199,164,92,.45); border-radius: 10px; color: var(--gold-bright); background: var(--gold-soft); display: grid; place-items: center; font-weight: 900; font-size: 11px; letter-spacing: -.05em; }
.sidebar-clan div:last-child { display: grid; gap: 4px; }
.sidebar-clan strong { font-size: 11px; }
.sidebar-clan small { color: var(--dim); font-size: 9px; letter-spacing: .08em; }
.sidebar-footnote { padding: 15px 10px 0; color: #687584; font-size: 10px; line-height: 1.6; }
.main-area { grid-column: 2; min-width: 0; padding: 0 36px; display: flex; flex-direction: column; }
.topbar { height: 75px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: .14em; color: #74808e; font-weight: 700; }
.breadcrumbs i { color: #45505d; font-style: normal; }
.breadcrumbs strong { color: #c6ced7; font-weight: 800; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: #9db6a9; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(115,198,160,.1); }
.topbar-divider { width: 1px; height: 18px; background: var(--line-strong); }
.mobile-menu { display: none; border: 1px solid var(--line-strong); color: var(--text); background: var(--panel); padding: 8px 10px; border-radius: 8px; }
.page-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 30px 0 38px; flex: 1; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; border-top: 1px solid var(--line); color: #657180; font-size: 9px; letter-spacing: .1em; font-weight: 700; }
.site-footer b { color: var(--gold); padding: 0 5px; }
.site-footer a { color: #99a5b2; transition: color .2s; }
.site-footer a:hover { color: var(--gold-bright); }
.eyebrow { color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.page-title { margin: 9px 0 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.045em; font-weight: 780; }
.page-intro { color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 650px; margin: 11px 0 0; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.heading-action { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--panel-2); color: #dce3ea; border-radius: 9px; padding: 10px 13px; font-size: 10px; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: .18s; }
.btn:hover { border-color: rgba(199,164,92,.4); color: var(--gold-bright); transform: translateY(-1px); }
.btn-primary { color: #1c1b17; background: linear-gradient(135deg, #dfc27e, #b38a47); border-color: transparent; }
.btn-primary:hover { color: #171715; filter: brightness(1.07); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); gap: 30px; min-height: 245px; padding: 32px 34px; border: 1px solid rgba(199,164,92,.2); border-radius: 19px; background: linear-gradient(112deg, rgba(38,46,56,.97) 0%, rgba(26,34,45,.96) 53%, rgba(36,39,43,.95) 100%); box-shadow: 0 18px 60px rgba(0,0,0,.12); }
.hero:before { content: ""; position: absolute; inset: -1px; pointer-events: none; background: radial-gradient(circle at 83% 45%, rgba(199,164,92,.18), transparent 30%), linear-gradient(120deg, transparent 53%, rgba(255,255,255,.025) 53.1%, transparent 53.4%); }
.hero:after { content: ""; position: absolute; right: 10%; top: -120px; width: 330px; height: 330px; border: 1px solid rgba(199,164,92,.12); border-radius: 50%; box-shadow: 0 0 0 22px rgba(199,164,92,.025), 0 0 0 50px rgba(199,164,92,.02), 0 0 0 83px rgba(199,164,92,.014); }
.hero-copy, .hero-clan { position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; color: #d5c08f; font-size: 9px; letter-spacing: .17em; font-weight: 850; }
.hero-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(31px, 4vw, 49px); line-height: 1; letter-spacing: -.055em; margin: 20px 0 13px; font-weight: 820; }
.hero h1 span { color: var(--gold-bright); }
.hero-copy p { max-width: 490px; color: #a9b2bd; font-size: 12px; line-height: 1.75; margin: 0; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 23px; }
.hero-clan { justify-self: end; align-self: center; display: flex; align-items: center; gap: 16px; width: min(100%, 290px); }
.clan-badge { width: 82px; height: 82px; flex: 0 0 82px; display: grid; place-items: center; border-radius: 20px; border: 1px solid rgba(199,164,92,.35); background: rgba(11,15,20,.34); padding: 9px; }
.clan-badge img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.clan-badge-fallback { color: var(--gold-bright); font-weight: 950; font-size: 23px; letter-spacing: -.08em; }
.hero-clan-copy { display: grid; gap: 7px; }
.hero-clan-copy strong { font-size: 17px; }
.hero-clan-copy span { color: #929eac; font-size: 10px; }
.hero-clan-copy small { color: #d0b575; font-size: 9px; letter-spacing: .12em; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin: 18px 0 23px; }
.stat-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(25,33,44,.95), rgba(19,26,35,.94)); min-width: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #9ba7b5; font-size: 10px; font-weight: 700; }
.stat-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(199,164,92,.19); border-radius: 8px; color: var(--gold-bright); background: var(--gold-soft); font-size: 13px; }
.stat-value { margin-top: 12px; font-size: 28px; font-weight: 820; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-foot { margin-top: 4px; color: var(--dim); font-size: 9px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(270px,.8fr); gap: 16px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21,28,38,.88); overflow: hidden; }
.panel-head { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 12px; font-weight: 800; letter-spacing: -.01em; }
.panel-subtitle { color: var(--dim); margin-top: 4px; font-size: 9px; }
.panel-link { color: var(--gold-bright); font-size: 9px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.panel-body { padding: 18px 19px; }
.empty-state { display: grid; justify-items: center; text-align: center; padding: 26px 17px 28px; }
.empty-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(199,164,92,.09); border: 1px solid rgba(199,164,92,.18); color: var(--gold-bright); font-size: 20px; }
.empty-state h3 { margin: 13px 0 6px; font-size: 13px; }
.empty-state p { max-width: 350px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.empty-state .btn { margin-top: 15px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-label { color: #9ba7b5; font-size: 10px; }
.status-value { font-size: 10px; font-weight: 750; text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 8px; border: 1px solid var(--line-strong); color: #b5c0cb; background: rgba(255,255,255,.03); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pill-success { color: #9dd9ba; border-color: rgba(115,198,160,.2); background: rgba(115,198,160,.08); }
.pill-gold { color: var(--gold-bright); border-color: rgba(199,164,92,.23); background: var(--gold-soft); }
.pill-muted { color: #9aa6b3; }
.archive-months { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.month-card { display: flex; flex-direction: column; gap: 9px; padding: 12px; background: #1a2330; border: 1px solid var(--line); border-radius: 11px; transition: .18s; }
.month-card:hover { border-color: rgba(199,164,92,.36); transform: translateY(-1px); }
.month-card strong { font-size: 11px; }
.month-card small { color: var(--dim); font-size: 9px; }
.month-count { color: var(--gold-bright); font-size: 19px; font-weight: 850; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 13px; color: #768495; font-size: 8px; text-align: left; letter-spacing: .12em; font-weight: 850; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 13px; border-bottom: 1px solid var(--line); font-size: 10px; color: #c5ced7; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.table-primary { color: var(--text); font-weight: 750; }
.table-secondary { color: var(--dim); font-size: 9px; margin-top: 4px; }
.score { color: var(--gold-bright); font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.rule-card { display: flex; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(21,28,38,.65); }
.rule-num { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: var(--gold-bright); background: var(--gold-soft); font-size: 10px; font-weight: 900; }
.rule-card strong { display: block; margin: 1px 0 5px; font-size: 10px; }
.rule-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.list-stack { display: grid; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 17px; border-bottom: 1px solid var(--line); transition: background .18s; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(255,255,255,.02); }
.list-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.list-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 10px; color: var(--gold-bright); background: var(--gold-soft); border: 1px solid rgba(199,164,92,.15); }
.list-copy { min-width: 0; }
.list-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.list-copy small { display: block; color: var(--dim); margin-top: 4px; font-size: 9px; }
.round-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.round-card { min-height: 105px; display: grid; align-content: space-between; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #1a2330; }
.round-card strong { color: var(--gold-bright); font-size: 11px; }
.round-card span { color: #dce2e9; font-size: 9px; font-weight: 750; }
.round-card small { color: var(--dim); font-size: 8px; }
.round-card.complete { border-color: rgba(115,198,160,.25); background: rgba(115,198,160,.045); }
.round-card.pending { border-color: rgba(199,164,92,.18); }
.match-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 23px; background: linear-gradient(135deg, #202b39, #151c26); border: 1px solid var(--line); border-radius: 15px; }
.team-block { min-width: 0; }
.team-block:last-child { text-align: right; }
.team-block strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.team-block small { display: block; color: var(--dim); margin-top: 5px; font-size: 8px; }
.score-center { display: flex; align-items: center; gap: 11px; font-size: 28px; font-weight: 900; letter-spacing: -.06em; }
.score-center i { color: #687584; font-size: 10px; font-style: normal; }
.section-gap { margin-top: 17px; }
.section-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; }
.empty-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; color: #c6b17d; border: 1px solid rgba(199,164,92,.17); border-radius: 11px; background: rgba(199,164,92,.055); }
.empty-banner strong { display: block; font-size: 10px; margin-bottom: 4px; }
.empty-banner p { margin: 0; color: #a7a18d; font-size: 9px; line-height: 1.65; }
.skeleton { height: 12px; border-radius: 8px; background: linear-gradient(90deg, #1c2531, #293545, #1c2531); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-state { min-height: 360px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 11px; }
.loader { width: 17px; height: 17px; border: 2px solid rgba(199,164,92,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-card { margin: 30px auto; max-width: 520px; text-align: center; padding: 35px; border: 1px solid rgba(225,125,120,.2); border-radius: 15px; background: rgba(225,125,120,.045); }
.error-card h2 { font-size: 16px; }
.error-card p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 40; padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 9px; background: #202b39; color: var(--text); font-size: 10px; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .sidebar { width: 220px; }
  .main-area { padding: 0 24px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,1fr) minmax(200px,.75fr); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-101%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.3); width: 255px; }
  .sidebar.open { transform: translateX(0); }
  .main-area { padding: 0 16px; }
  .topbar { height: 62px; gap: 12px; }
  .mobile-menu { display: block; }
  .breadcrumbs { margin-right: auto; font-size: 8px; }
  .live-indicator span { display: none; }
  .topbar-right { gap: 10px; }
  .page-content { padding-top: 23px; }
  .hero { grid-template-columns: 1fr; padding: 25px 22px; }
  .hero-clan { justify-self: start; width: auto; }
  .hero:after { right: -90px; top: 45px; }
  .content-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .rule-grid { grid-template-columns: 1fr; }
  .round-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; padding: 13px 0; }
}
@media (max-width: 420px) {
  .main-area { padding: 0 12px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-value { font-size: 23px; }
  .archive-months { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .round-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .match-scoreboard { gap: 9px; padding: 16px 12px; }
  .score-center { font-size: 21px; gap: 6px; }
  .team-block strong { font-size: 10px; }
}
