:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --text: #f5f5f5;
    --dim: rgba(245, 245, 245, 0.64);
    --mute: rgba(245, 245, 245, 0.4);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.22);

    --gold: #d6b25e;
    --silver: #c4c7cc;
    --bronze: #b9794a;

    --f-head: 'Mersad', 'Geist', 'Segoe UI', sans-serif;
    --f-body: 'Geist', 'Segoe UI', sans-serif;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --radius: 14px;
}

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

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.eyebrow {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

.top {
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 60% 90% at 75% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px);
}

.top h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.section { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.section:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }

.section h2 {
    margin-bottom: 1.75rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 1rem;
}

.team {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.team h3 {
    padding: 1rem 1.25rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.team ul { list-style: none; margin: 0; padding: 0.35rem 0; }

.team li {
    padding: 0.45rem 1.25rem;
    font-size: 0.95rem;
    color: var(--dim);
}

.team li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.bracket-scroll {
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.5rem;
}

.bracket {
    --col: 220px;
    --gap: 22px;
    display: flex;
    min-width: max-content;
}

.round {
    display: flex;
    flex-direction: column;
    width: calc(var(--col) + var(--gap) * 2);
}

.round:first-child { width: calc(var(--col) + var(--gap)); }

.round-head {
    padding: 0 var(--gap) 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

.round:first-child .round-head,
.round:first-child .slot { padding-left: 0; }

.round-body { flex: 1; display: flex; flex-direction: column; }

.slot {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px var(--gap);
}

.slot > * { width: 100%; }

.slot.c-in::before,
.slot.c-top::after,
.slot.c-bot::after,
.slot.c-straight::after {
    content: '';
    position: absolute;
    width: var(--gap);
    border: 0 solid var(--line-strong);
}

.slot.c-in::before { left: 0; top: 50%; border-top-width: 1px; }
.slot.c-top::after { right: 0; top: 50%; height: 50%; border-top-width: 1px; border-right-width: 1px; }
.slot.c-bot::after { right: 0; top: 0; height: 50%; border-bottom-width: 1px; border-right-width: 1px; }
.slot.c-straight::after { right: 0; top: 50%; border-top-width: 1px; }

.match {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}

.m-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
}

.m-team + .m-team { border-top: 1px solid var(--line); }

.m-team .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-team .score {
    min-width: 1.6rem;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--mute);
}

.m-team.tbd .name { color: var(--mute); }
.m-team.win { font-weight: 600; }
.m-team.win .score { color: var(--bg); background: var(--text); border-radius: 5px; }
.m-team.lose { color: var(--mute); }

.champ {
    padding: 1.1rem;
    text-align: center;
    font-family: var(--f-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mute);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.champ.won {
    color: var(--gold);
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    background: color-mix(in srgb, var(--gold) 8%, var(--surface));
}

.prizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1rem;
}

.prize {
    --medal: var(--dim);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--medal);
    border-radius: var(--radius);
    background: var(--surface);
}

.prize.p1 { --medal: var(--gold); }
.prize.p2 { --medal: var(--silver); }
.prize.p3 { --medal: var(--bronze); }

.prize .place {
    font-family: var(--f-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--medal);
}

.prize .reward { color: var(--dim); }
