@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --field-green: #059669;
    --grass: #34d399;
    --yellow: #fcd34d;
    --dark-field: #042f2e;
    --pitch: #134e4a;
    --white: #ffffff;
    --gray: #9ca3af;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--dark-field);
    color: var(--white);
    line-height: 1.7;
}

.match-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(4, 47, 46, 0.97);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--field-green);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-ball {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--field-green), var(--grass));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.team-name {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--grass);
}

.pitch-nav {
    display: flex;
    gap: 2.5rem;
}

.pitch-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.pitch-nav a:hover {
    color: var(--grass);
}

.whistle-btn {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.whistle-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--grass);
    margin: 5px 0;
}

.bench-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--pitch);
    padding: 1rem;
    border-bottom: 2px solid var(--field-green);
}

.bench-menu.active {
    display: block;
}

.bench-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}

.field {
    padding-top: 90px;
}

.kickoff {
    background: linear-gradient(135deg, var(--field-green) 0%, var(--grass) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.kickoff-zone {
    max-width: 1100px;
    margin: 0 auto;
}

.kickoff h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.kickoff-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.scoreboard {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.score-tag {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.half {
    padding: 4rem 2rem;
}

.half-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--grass);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.goal-box {
    background: var(--pitch);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid var(--field-green);
}

.goal-view {
    width: 100%;
    height: 580px;
    border: none;
    border-radius: 8px;
}

.squad-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.player-card {
    background: var(--pitch);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--grass);
}

.player-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.player-card h3 {
    color: var(--yellow);
    margin-bottom: 0.75rem;
    font-weight: 900;
}

.player-card p {
    color: var(--gray);
}

.ref-box {
    background: var(--pitch);
    border-left: 5px solid var(--yellow);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.ref-box h2 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-weight: 900;
}

.ref-box p {
    color: var(--gray);
}

.tactics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.tactic-item {
    background: var(--pitch);
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tactic-icon {
    color: var(--grass);
    font-size: 1.3rem;
}

.locker-room {
    background: var(--pitch);
    padding: 3rem 2rem;
    border-top: 4px solid var(--field-green);
}

.locker-center {
    text-align: center;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.support-links a {
    color: var(--grass);
    text-decoration: none;
    font-weight: 700;
}

.support-links a:hover {
    text-decoration: underline;
}

.locker-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.entrance-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gate-panel {
    background: var(--pitch);
    border: 3px solid var(--grass);
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    margin: 1rem;
    text-align: center;
}

.gate-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.gate-panel h2 {
    color: var(--grass);
    margin-bottom: 1rem;
    font-weight: 900;
}

.gate-panel p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s;
}

.gate-btn:hover {
    transform: scale(1.05);
}

.gate-btn.enter {
    background: linear-gradient(135deg, var(--field-green), var(--grass));
    color: white;
}

.gate-btn.leave {
    background: transparent;
    border: 2px solid var(--grass);
    color: var(--grass);
}

.match-banner {
    background: linear-gradient(135deg, var(--field-green), var(--grass));
    padding: 4rem 2rem;
    text-align: center;
}

.match-banner h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

.playbook {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.play-section {
    background: var(--pitch);
    border-radius: 10px;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--grass);
}

.play-section h2 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-weight: 900;
}

.play-section p {
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.play-section ul {
    color: var(--gray);
    margin: 1rem 0 1rem 1.5rem;
}

.play-section li {
    margin-bottom: 0.4rem;
}

@media (max-width: 1024px) {
    .squad-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .tactics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pitch-nav {
        display: none;
    }

    .whistle-btn {
        display: block;
    }

    .kickoff h1 {
        font-size: 2rem;
    }

    .squad-cards {
        grid-template-columns: 1fr;
    }

    .tactics-grid {
        grid-template-columns: 1fr;
    }

    .goal-view {
        height: 400px;
    }

    .gate-buttons {
        flex-direction: column;
    }
}
