:root {
    --bg-color: #0f172a;
    /* Deep tech blue/slate */
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    /* Cyan/Sky blue for 'Cloud' feel */
    --accent-glow: rgba(56, 189, 248, 0.3);
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --brand-blue: #0ea5e9;
    --success-color: #22c55e;

    --border-color: #334155;

    --field-green: #2e7d32;
    /* Keep for terrain */
    --field-line: rgba(255, 255, 255, 0.8);

    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    /* Global font application */
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Spectator Overrides */
.spectator-body .card-header {
    justify-content: center;
    /* Center horizontally */
    text-align: center;
    padding: 20px;
}

.spectator-body .header-row {
    flex-direction: column;
    /* Stack Title and Status */
    gap: 15px;
    align-items: center;
    width: 100%;
}

.spectator-body .terrain-title-display {
    font-size: 2.5rem;
    /* Much larger */
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.spectator-body .status-indicator {
    font-size: 1.5rem;
    /* Larger status */
    padding: 8px 24px;
    border-radius: 50px;
    font-family: var(--font-body);
}


/* --- Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
    position: relative;
    user-select: none;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent-color);
}

.btn-icon-small {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.my-message {
    align-self: flex-end;
    background: var(--accent-color);
    color: #0f172a;
    border-bottom-right-radius: 2px;
}

.other-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.msg-sender {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    outline: none;
    font-family: var(--font-body);
}

.chat-input-area button {
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
    font-weight: bold;
    font-size: 1.2rem;
}

.spectator-body .next-match-display {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--accent-color);
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 10px;
}

.spectator-body .queue-mini-section h4 {
    text-align: center;
    font-size: 1.2rem;
}

/* --- Common Components --- */
.btn-action {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.2rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-action:active {
    transform: scale(0.98);
}

.btn-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

@keyframes blink-red {
    0% {
        background-color: var(--card-bg);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }

    50% {
        background-color: rgba(239, 68, 68, 0.2);
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.5);
    }

    100% {
        background-color: var(--card-bg);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.blink-alert {
    animation: blink-red 1s infinite;
    border: 2px solid var(--danger-color) !important;
}

/* --- Login Page --- */
.login-page {
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

.login-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    text-align: center;
}

.logo-wrapper {
    margin-bottom: 30px;
}

.login-logo {
    max-width: 200px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #2d333b;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: 2px solid var(--brand-blue);
    border-color: transparent;
}

.login-footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Landing Page (New) --- */
.landing-page {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
    font-family: var(--font-body);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-login {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 160px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 90vh;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
    color: var(--brand-blue);
    -webkit-text-fill-color: var(--brand-blue);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--accent-color));
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-large {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.3));
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.football-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--brand-blue);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    z-index: 0;
}

/* Services Section */
.services-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-arrow {
    align-self: flex-end;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 20px;
    background: #0b1120;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
}

.footer-logo {
    height: 30px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Admin Interface --- */
.navbar {
    height: 70px;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-logo {
    height: 40px;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn-nav {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-logout {
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.btn-logout:hover {
    background-color: var(--danger-color);
    color: white;
}

.admin-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.terrains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.terrain-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.name-input {
    background: transparent;
    border: 1px solid transparent;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
}

.name-input:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.name-input:focus {
    background-color: #2d333b;
    border-color: var(--brand-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.2);
}

.status-indicator {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: 20px;
}

.active-match-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.active-match-section h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.team-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.team-inputs input {
    flex: 1;
    padding: 10px;
    background-color: #2d333b;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    text-align: center;
}

.vs {
    font-weight: bold;
    color: var(--text-secondary);
}

.live-score {
    margin: 20px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.score-names {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.score-values {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.btn-collect {
    width: 100%;
    background-color: var(--warning-color);
    color: black;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* --- Mini Queue Section --- */
.queue-mini-section h4 {
    margin-bottom: 15px;
    color: var(--brand-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.queue-controls-mini {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.queue-controls-mini input {
    flex: 1;
    padding: 8px;
    background-color: #2d333b;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

.vs-mini {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.btn-mini-add {
    background-color: var(--brand-blue);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.queue-list-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 50px;
}

.queue-item-mini {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.queue-actions-mini {
    display: flex;
    gap: 5px;
}

.btn-icon {
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
}

.btn-promote {
    background-color: var(--accent-color);
    color: white;
}

.btn-delete {
    background-color: var(--danger-color);
    color: white;
}

.queue-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 10px;
    font-style: italic;
    font-size: 0.9rem;
}

.history-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.history-section h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-delete-history {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-delete-history:hover {
    opacity: 0.8;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-secondary);
    font-weight: normal;
}

tr:last-child td {
    border-bottom: none;
}

.main-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* --- Terrain Interface (Keep existing styles, ensure compatibility) --- */
.match-header {
    height: 80px;
    /* Taller header */
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Default spread */
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    position: relative;
    /* For absolute centering */
}

.match-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.next-match {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtler bg */
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 1.4rem;
    /* Larger font */
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.next-label {
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.next-teams {
    font-weight: bold;
    color: var(--brand-blue);
}

.game-container {
    flex: 1;
    display: flex;
    position: relative;
    background-color: var(--field-green);
}

.team-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.divider {
    width: 4px;
    background-color: var(--field-line);
    height: 100%;
}

.team-name {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    word-wrap: break-word;
}

.score-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-display {
    font-size: 10rem;
    font-weight: 800;
    min-width: 200px;
    text-align: center;
    line-height: 1;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-round {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
}

.btn-round:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.3);
}

.shortcut-hint {
    margin-top: 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.penalty-section {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid var(--warning-color);
    border-bottom: 2px solid var(--warning-color);
    z-index: 20;
    transition: transform 0.3s ease;
}

.penalty-section.hidden {
    transform: translateY(150%);
    visibility: hidden;
}

.penalty-header {
    color: var(--warning-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.penalty-controls-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.penalty-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.penalty-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--warning-color);
    min-width: 60px;
    text-align: center;
}

.btn-small {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    border-width: 2px;
}

.action-bar {
    height: 80px;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    z-index: 30;
}

.btn-action-terrain {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-action-terrain:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
    max-width: 500px;
}

.overlay-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--warning-color);
}

.overlay-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .team-name {
        font-size: 2rem;
    }

    .score-display {
        font-size: 8rem;
    }

    .btn-round {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .team-name {
        font-size: 1.5rem;
    }

    .score-display {
        font-size: 6rem;
        min-width: 120px;
    }

    .btn-round {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .score-wrapper {
        gap: 10px;
    }

    .shortcut-hint {
        display: none;
    }
}

/* Penalty Display in Admin */
.penalty-display {
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--warning-color);
    font-weight: bold;
}

.pen-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-right: 5px;
}