/* =========================================================
   COMPETITION RECORD PAGE
========================================================= */

.competition-page {
    background:
        radial-gradient(
            circle at 28% 10%,
            rgba(180, 20, 53, 0.11),
            transparent 32rem
        ),
        var(--background);
}

.competition-main {
    min-height: 70vh;
}

.competition-record-page {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    padding: 8rem 0 6rem;
}


/* =========================================================
   ACHIEVEMENTS INTRO
========================================================= */

.achievement-intro {
    max-width: 900px;
    padding-bottom: 6rem;
}

.achievement-intro h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(2.8rem, 5.8vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.achievement-intro-copy {
    max-width: 780px;
    margin-top: 1.5rem;
}

.achievement-intro-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

.achievement-intro-copy p + p {
    margin-top: 1.35rem;
}


/* =========================================================
   COMPETITION RECORD HEADER
========================================================= */

.competition-record-header h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4.2vw, 3.45rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.competition-record-intro {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.competition-top-rule {
    height: 2px;
    margin-top: 2.6rem;
    background: var(--red-light);
}

.competition-record-entry {
    position: relative;
    padding: 1.9rem 0;
    border-bottom: 1px solid #292c31;
    transition: background 0.18s ease;
}

.competition-record-entry:hover {
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(214, 30, 67, 0.10) 0%,
        rgba(214, 30, 67, 0.055) 30%,
        rgba(214, 30, 67, 0.02) 55%,
        transparent 75%
    );
}

.competition-record-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 18px;
    align-items: start;
}

.competition-titleline {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 22px;
}

.competition-name {
    margin: 0;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-stretch: condensed;
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.competition-season {
    color: #9da5b4;
    font-size: 0.95rem;
    white-space: nowrap;
}

.competition-article-icon {
    width: 32px;
    height: 32px;
    justify-self: end;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #afb6c1;
    text-decoration: none;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.competition-article-icon:hover {
    color: white;
    transform: translateY(-1px);
}

.competition-article-icon:focus-visible {
    color: white;
    outline: 1px solid rgba(214, 30, 67, 0.7);
    outline-offset: 2px;
    transform: translateY(-1px);
}

.competition-article-icon svg {
    width: 17px;
    height: 17px;
    transition: filter 0.18s ease;
}

.competition-article-icon:hover svg,
.competition-article-icon:focus-visible svg {
    filter:
        drop-shadow(0 0 4px rgba(214, 30, 67, 0.55))
        drop-shadow(0 0 9px rgba(214, 30, 67, 0.18));
}

.competition-result-list {
    margin-top: 1.35rem;
    display: grid;
    gap: 1rem;
}

.competition-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 18px;
    align-items: center;
}

.competition-team {
    min-width: 0;
}

.competition-team-name {
    font-size: 1.05rem;
    font-weight: 780;
    line-height: 1.25;
}

.competition-bracket {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.35;
}

.competition-stage-name {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.competition-place {
    min-width: 0;
    text-align: right;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .competition-record-page {
        width: min(calc(100% - 28px), var(--max-width));
        padding-top: 5rem;
    }

    .achievement-intro {
        padding-bottom: 4rem;
    }

    .competition-top-rule {
        margin-top: 1.9rem;
    }

    .competition-record-entry {
        padding: 1.5rem 0;
    }

    .competition-record-head,
    .competition-result {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 12px;
    }

    .competition-titleline {
        display: block;
    }

    .competition-season {
        display: block;
        margin-top: 8px;
    }

    .competition-article-icon {
        width: 32px;
        height: 32px;
    }
}
