* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 199, 39, 0.08), transparent 28%),
        #050b16;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER */

.site-header {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    background: rgba(2, 7, 15, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffd21f;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.6rem;
}

.site-header nav {
    display: flex;
    gap: 26px;
}

.site-header nav a {
    opacity: 0.9;
}

.site-header nav a:hover {
    color: #ffd21f;
}

/* HERO HOME */

.hero{
    min-height:720px;

    padding:120px 7% 150px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    position:relative;
    overflow:hidden;

    background:
        linear-gradient(
            rgba(2,7,15,.35),
            rgba(2,7,15,.85)
        ),
        url("../img/worldcup26/hero/hero-worldcup26.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 14%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.16), transparent 14%);
    opacity: .35;
}

.hero::after {
    content: "⚽";
    position: absolute;
    font-size: 42rem;
    opacity: .035;
    transform: rotate(-18deg);
}

.hero > div {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.tag {
    display: inline-block;
    margin-bottom: 20px;
    color: #ffd21f;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3.6rem, 10vw, 8rem);
    line-height: 0.86;
    margin: 0 0 24px;
    text-transform: uppercase;
    text-shadow: 0 10px 35px rgba(0,0,0,.75);
}

.hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 999px;
    background: #ffd21f;
    color: #06101d;
    font-weight: 900;
    border: 1px solid #ffd21f;
}

.btn.secondary {
    background: rgba(0,0,0,.35);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.45);
}

.btn:hover {
    transform: translateY(-2px);
}

/* STATS */

.stats-section {
    padding: 0 7%;
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border-radius: 22px;
    background: rgba(8, 18, 33, .92);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.stat-icon {
    font-size: 2.2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #ffd21f;
}

.stat-label {
    opacity: .75;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: 1px;
}

/* SECTIONS */

.section {
    padding: 70px 7%;
}

.section h2 {
    font-size: 2rem;
    margin: 0 0 28px;
    text-align: center;
    text-transform: uppercase;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    display: block;
    padding: 28px;
    min-height: 190px;
    border-radius: 24px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,0.12);
    transition: .25s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #ffd21f;
}

.card span {
    font-size: 2.5rem;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.card p {
    opacity: 0.8;
}

/* INTERNAL HERO */

.page-hero,
.game-hero {
    padding: 80px 7%;
    background:
        radial-gradient(circle at top right, rgba(255, 210, 31, 0.18), transparent 35%),
        linear-gradient(135deg, #0d1a2f, #123b63);
}

.page-hero h1,
.game-hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.95;
    margin: 0 0 20px;
}

.page-hero p,
.game-hero p {
    max-width: 620px;
    font-size: 1.15rem;
    opacity: 0.88;
}

.game-hero span {
    font-size: 3rem;
}

/* GAME PAGE */

.game-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 50px 7%;
}

.ranking-panel,
.game-area,
.ranking-box {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 24px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 50px 1fr 90px;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ranking-row span:last-child {
    color: #ffd21f;
    font-weight: 900;
}

.game-frame-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    background: #000;
}

.game-score-panel {
    margin-top: 20px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.score-label {
    opacity: 0.7;
    margin-bottom: 4px;
}

#current-score {
    display: block;
    font-size: 3rem;
    margin-bottom: 16px;
    color: #ffd21f;
}

.score-result {
    min-height: 50px;
    margin-top: 12px;
    line-height: 1.5;
}

.share-btn {
    margin-top: 12px;
}

/* FOOTER */

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 42px 7%;
    background: #020711;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
}

.site-footer strong {
    color: #ffd21f;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .phase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .phase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .game-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        order: 2;
    }

    .game-area {
        order: 1;
    }
}

@media (max-width: 600px) {
    .site-header {
        height: auto;
        flex-direction: column;
        gap: 14px;
        padding: 18px 7%;
    }

    .hero {
        min-height: 620px;
        padding: 90px 7% 130px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.phase-card {
    min-height: 180px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.12);
    text-align: center;
    transition: .25s;
}

.phase-card:hover {
    transform: translateY(-6px);
    border-color: #ffd21f;
}

.phase-card span {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
}

.phase-card h3 {
    margin: 0 0 10px;
    color: #ffd21f;
}

.phase-card p {
    margin: 0;
    font-size: .9rem;
    opacity: .75;
    line-height: 1.4;
}

.final-card {
    background:
        radial-gradient(circle at top, rgba(255,210,31,.22), transparent 48%),
        linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
}