:root {
    color-scheme: light;
    --paper: #f5f5ef;
    --white: #fff;
    --ink: #142b25;
    --muted: #4e635a;
    --line: #d9ded4;
    --field: #14352d;
    --lime: #dbfa79;
    --accent: #327653;
    font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #257b58; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: 10px 15px; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.frame { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.top-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.1rem; font-weight: 900; line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 43px; display: block; border-radius: 50%; overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: auto; }
.brand small { display: block; margin-top: 3px; font-size: .6rem; font-weight: 750; letter-spacing: .18em; color: var(--muted); }
.top-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 37px); }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 660; font-size: .92rem; }
.top-nav .nav-discord { padding: 5px 10px; border-radius: 8px; color: #303fa1; background: #e8eaff; font-weight: 760; }
.top-nav a:hover, .site-footer a:hover, .text-link:hover, .back:hover { text-decoration: underline; text-underline-offset: .22em; }
.language { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.language a { min-width: 40px; padding: 6px 9px; border-radius: 999px; text-align: center; text-decoration: none; font-size: .75rem; font-weight: 800; }
.language a[aria-current] { background: var(--ink); color: var(--white); }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.kicker { display: flex; align-items: center; gap: .65em; margin-bottom: 11px; color: var(--accent); font-size: .73rem; font-weight: 840; letter-spacing: .13em; text-transform: uppercase; }
.indicator { width: .65em; height: .65em; display: inline-block; background: currentColor; border-radius: 100%; flex: 0 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: 407px; margin-top: 34px; overflow: hidden; border-radius: 24px; background: radial-gradient(ellipse at 89% 32%, #29436a 0%, transparent 55%), linear-gradient(116deg, #101829, #1b2b47); color: var(--white); }
.hero-copy { align-self: center; z-index: 1; padding: clamp(28px, 5.2vw, 68px); padding-right: 12px; }
.hero h1 { font-size: clamp(2.8rem, 6.1vw, 5.35rem); line-height: .98; letter-spacing: -.067em; }
.hero-league { display: block; color: #aecdff; font-size: .84em; letter-spacing: -.055em; line-height: 1.04; }
.hero .kicker { color: #bdd5ff; margin-bottom: 17px; }
.hero-summary { max-width: 41ch; margin-top: 21px; color: #d7e1f1; font-size: clamp(.95rem, 1.65vw, 1.1rem); }
.primary { display: inline-flex; align-items: center; gap: 23px; margin-top: 28px; padding: 12px 17px; border-radius: 10px; background: var(--lime); color: #182820; text-decoration: none; font-weight: 800; font-size: .92rem; }
.primary:hover { background: #eeffb9; }
.primary:focus-visible { outline-color: var(--lime); }
.hero .primary { background: #bed7ff; color: #121f34; }
.hero .primary:hover { background: #e1ecff; }
.hero .primary:focus-visible { outline-color: #bed7ff; }
.hero-actions { display: flex; align-items: center; gap: 13px 17px; flex-wrap: wrap; margin-top: 23px; }
.hero .discord-cta { margin: 0; gap: 12px; background: #5865f2; color: #fff; }
.hero .discord-cta:hover { background: #4352d8; }
.hero-archive-link { color: #e4edff; font-size: .88rem; font-weight: 720; text-underline-offset: .25em; }
.hero-archive-link:focus-visible { outline-color: #bed7ff; }
.game-capture { min-width: 0; align-self: center; margin: 30px clamp(22px, 4vw, 54px) 30px 12px; overflow: hidden; border-radius: 12px; }
.highlight-player { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; background: #0a1020; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 19px 0; margin: 16px 0 54px; border-bottom: 1px solid var(--line); }
.stats div { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 5px 8px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font-size: clamp(1.3rem, 3.2vw, 2.05rem); line-height: 1.1; letter-spacing: -.045em; }
.stats span { font-size: .88rem; color: var(--muted); }
.section-head { margin-bottom: 22px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
.text-link, .back { text-decoration: none; color: #215f40; font-weight: 760; }
.text-link { padding: 4px 0; white-space: nowrap; }
.competition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.competition-card { position: relative; display: block; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.competition-card:hover { border-color: #87a995; background: #fafff1; }
.card-token { display: inline-grid; place-items: center; min-width: 49px; height: 37px; margin-bottom: 15px; padding-inline: 8px; border-radius: 8px; background: #e8f0e4; color: #1b5139; font-size: .78rem; font-weight: 850; letter-spacing: .04em; }
.competition-card[data-mode="3v3"] .card-token { background: #e5eeff; color: #18437d; }
.competition-card[data-mode="1v1"] .card-token { background: #f8e5e4; color: #8e2630; }
.card-arrow { position: absolute; top: 19px; right: 22px; font-size: 1.15rem; color: #327653; }
.competition-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.competition-card p { font-size: .91rem; color: var(--muted); max-width: 38ch; }
.historic-archive { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 13px; padding: 20px 22px; border: 1px solid #ddd7c3; border-radius: 16px; background: #f0ecdd; text-decoration: none; }
.historic-archive:hover { background: #f6f0df; border-color: #ad9f73; }
.historic-archive .kicker { margin-bottom: 5px; color: #6f541d; }
.historic-archive h3 { font-size: 1.25rem; margin-bottom: 4px; }
.historic-description { display: block; color: var(--muted); font-size: .91rem; }
.historic-arrow { flex: 0 0 auto; font-size: 1.15rem; color: #6f541d; }
.home-news { max-width: 860px; margin-top: 60px; }
.news h2 { margin-bottom: 18px; }
.story { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 650; }
.story:hover { color: #215f40; }
.story time { font-size: .78rem; font-weight: 580; color: var(--muted); }
.more-stories { display: inline-block; margin-top: 9px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 60px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer a { text-decoration: none; }
.site-footer strong { font-size: .78rem; letter-spacing: .09em; }

.detail-heading { margin-top: 32px; padding: clamp(20px, 4vw, 42px); border: 1px solid #d1ddc8; border-radius: 19px; background: #eaf1e4; }
.back { display: inline-block; margin-bottom: 21px; font-size: .88rem; }
.detail-heading h1 { margin-bottom: 11px; font-size: clamp(2.4rem, 5.7vw, 4.5rem); }
.detail-heading p:not(.kicker), .edition-section > p { color: var(--muted); }
.edition-section { margin-block: 34px 42px; max-width: 900px; }
.edition-section > p { margin: 8px 0 18px; }
.round-list { display: grid; gap: 8px; }
.round-group { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.round-group summary, .record-link { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 680; overflow-wrap: anywhere; }
.round-group summary { list-style: none; cursor: pointer; }
.round-group summary::-webkit-details-marker { display: none; }
.round-group summary span, .record-link span { color: var(--accent); }
.round-group[open] > summary { border-bottom: 1px solid var(--line); }
.round-group[open] > summary span { transform: rotate(45deg); }
.round-children { display: grid; gap: 7px; padding: 10px 12px; background: #f5f7f2; border-radius: 0 0 10px 10px; }
.record-link { border: 1px solid var(--line); background: var(--white); border-radius: 10px; text-decoration: none; }
.record-link:hover, .round-group summary:hover { background: #f3f8ed; border-radius: 10px; }

@media (max-width: 900px) {
    .frame { width: calc(100% - 40px); }
    .hero { min-height: 355px; }
    .hero-copy { padding-left: 32px; }
    .competition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .frame { width: calc(100% - 28px); }
    .top-bar { flex-wrap: wrap; gap: 11px 16px; padding-block: 11px; }
    .top-nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
    .top-nav a { font-size: .84rem; }
    .hero { grid-template-columns: minmax(0, 1fr); margin-top: 18px; min-height: auto; border-radius: 16px; }
    .hero-copy { padding: 29px 24px 0; }
    .hero h1 { font-size: clamp(2.55rem, 10vw, 3.5rem); }
    .hero-summary { margin-top: 15px; }
    .primary { margin-top: 19px; }
    .game-capture { margin: 21px 17px 17px; }
    .stats { margin: 11px 0 35px; padding: 12px 0; }
    .stats div { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
    .stats span { font-size: .75rem; }
    .section-head { margin-bottom: 15px; }
    .competition-grid { gap: 9px; }
    .competition-card { padding: 13px; border-radius: 11px; }
    .competition-card h3 { font-size: 1.06rem; }
    .competition-card p { font-size: .83rem; }
    .card-arrow { right: 13px; top: 14px; }
    .card-token { margin-bottom: 10px; height: 32px; min-width: 43px; }
    .historic-archive { padding: 15px; }
    .home-news { margin-top: 42px; }
    .story { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; }
    .story time { grid-column: span 2; }
    .site-footer { margin-top: 34px; }
    .round-children { padding-inline: 7px; }
    .round-group summary, .record-link { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
