@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #0b0f1a;
    --panel: #111827;
    --muted: #6d6d6d;
    --text: #000;
    --brand: #CFB991;
    --brand-2: #B1946C;
    --ring: rgba(207,185,145,0.35);
    --border: #d4d4d4;
    --card: #0f1524;
    --success: #CFB991;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 25px;
    --shadow: 20px 20px 30px rgba(0,0,0,.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan', sans-serif;
}
html, body { height: 100%; margin: 0; padding: 0; }
body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    font-family: 'Spartan', sans-serif;
    line-height: 1.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,157,0,.55); }
    50%      { box-shadow: 0 0 0 10px rgba(255,157,0,0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9);}
    to { opacity: 1; transform: scale(1);}
}

@keyframes flashy-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(207, 185, 145, 0.6), 0 0 15px rgba(177, 148, 108, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(207, 185, 145, 1), 0 0 30px rgba(177, 148, 108, 1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(207, 185, 145, 0.6), 0 0 15px rgba(177, 148, 108, 0.6);
    }
}

.flashy-glow {
    animation: flashy-glow 1.5s infinite ease-in-out;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Card Navigation */
.card-nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 99;
    box-sizing: border-box;
}

.card-nav {
    display: block;
    height: 70px;
    padding: 0;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    will-change: height;
}

.card-nav-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    z-index: 2;
    overflow: visible;
}

.hamburger-menu {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
}

.hamburger-menu:hover .hamburger-line {
    opacity: 0.75;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #222;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: 50% 50%;
    border-radius: 2px;
}

.hamburger-menu.open .hamburger-line:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-logo-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
}

.nav-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-title-main {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.nav-title-sub {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.3px;
}

.card-nav-cta-button {
    background: var(--brand);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.card-nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(207, 185, 145, 0.3);
}

.card-nav-user-button {
    background: transparent;
    border: 2px solid var(--brand);
    border-radius: 50%;
    padding: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-nav-user-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(207, 185, 145, 0.4);
}

.nav-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#navUserProfile {
    position: relative;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 99999;
    overflow: visible;
}

.nav-dropdown-item {
    width: 100%;
    background: white;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222;
    transition: background 0.2s ease;
}

.nav-dropdown-item:hover {
    background: #f5f1e8;
}

.nav-dropdown-item span {
    font-size: 1.1rem;
}

.card-nav-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    bottom: 0;
    padding: 0.75rem;
    display: flex;
    align-items: stretch;
    gap: 12px;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.card-nav.open .card-nav-content {
    visibility: visible;
    pointer-events: auto;
}

.nav-card {
    height: 100%;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    gap: 8px;
    user-select: none;
    opacity: 0;
    transform: translateY(20px);
}

.nav-card-label {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.nav-card-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-card-link {
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-weight: 500;
    color: #000;
}

.nav-card-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.nav-card-link-icon {
    width: 16px;
    height: 16px;
}

.tabs {
    margin-top: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tablist {
    display: none;
}

@media (max-width: 768px) {
    .card-nav-container {
        width: 95%;
        top: 15px;
    }

    .card-nav {
        height: 60px;
    }

    .card-nav-top {
        height: 60px;
        padding: 0.5rem 0.75rem;
        justify-content: space-between;
    }

    .nav-logo-container {
        position: static;
        transform: none;
        order: 1;
        flex: 1;
        gap: 8px;
    }

    .nav-logo-img {
        height: 35px;
        width: 35px;
    }

    .nav-title-main {
        font-size: 13px;
    }

    .nav-title-sub {
        font-size: 10px;
    }

    .hamburger-menu {
        order: 2;
    }

    .card-nav-cta-button {
        display: none;
    }

    .card-nav-user-button {
        display: none;
    }

    .card-nav-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0.75rem;
        top: 60px;
    }

    .nav-card {
        height: auto;
        min-height: 100px;
        flex: 0 0 auto;
        padding: 14px 16px;
    }

    .nav-card-label {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .nav-card-link {
        font-size: 14px;
        padding: 3px 0;
    }

    .hero-section {
        margin-top: 0;
        min-height: 100vh;
    }

    .hero-content {
        padding: 5rem 1rem;
        min-height: 100vh;
    }

    .hero-content h2 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-title-main {
        font-size: 11px;
    }

    .nav-title-sub {
        font-size: 9px;
    }

    .nav-logo-img {
        height: 30px;
        width: 30px;
    }
}

.tabpanel { display: none; padding: 1.25rem; }
.tabpanel.active { display: block; }

.controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.input, .select {
    background: #fff; color: #222; border: 1px solid var(--border);
    padding: .55rem .7rem; border-radius: 4px; min-width: 200px;
}
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
    position: sticky; top: 0; z-index: 1; background: #f5f1e8;
    text-align: left; font-size: .9rem; color: #222;
    border-bottom: 1px solid var(--border); padding: .75rem .9rem;
}
tbody td { padding: .85rem .9rem; border-bottom: 1px solid var(--border); color: #222; }
tbody tr:hover { background: #f6f6f6; }
.badge { font-size: .75rem; padding: .25rem .5rem; border-radius: 4px; border: 1px solid var(--border); background: #f5f1e8; color: #000; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.team-card {
    grid-column: span 12;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px;
    display: flex; gap: .9rem; align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}
.team-card:hover {
    background: #fff;
    border-color: var(--border);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
}
@media (min-width: 600px) { .team-card { grid-column: span 6; } }
@media (min-width: 900px) { .team-card { grid-column: span 4; } }
.avatar { width: 46px; height: 46px; border-radius: 20px; background: #e8f6ea; display: grid; place-items: center; border: 1px solid var(--border); font-size: 1.5rem; }
.team-card h4 { margin: 0; font-size: 1rem; color: #222; }
.team-card p { margin: .25rem 0 0; color: #606063; font-size: .9rem; }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    padding: 2rem;
    overflow-y: auto;
}
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    animation: popIn .3s ease;
}
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.5rem; color: #222; }
.close-btn {
    background: none;
    border: none;
    color: #222;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: all 0.2s;
}
.close-btn:hover {
    background: #f6f6f6;
    color: var(--brand);
}
.modal-body {
    padding: 1.5rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
}
.stat-box .label {
    color: #606063;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.stat-box .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #222;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.roster-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.roster-list li {
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.game-item {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.game-item .game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.game-item .matchup {
    font-weight: 600;
    color: #222;
}
.game-item .game-info {
    color: #606063;
    font-size: 0.9rem;
}

.faq { max-width: 900px; margin-inline: auto; }
details {
    border: 1px solid var(--border); border-radius: 4px; background: #fff; padding: .9rem 1rem; margin: .6rem 0; transition: background .2s ease;
}
details[open] { background: #f6f6f6; }
summary { cursor: pointer; font-weight: 700; list-style: none; color: #222; }
summary::-webkit-details-marker { display: none; }
details p { margin: .6rem 0 0; color: #606063; }

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    background-color: #f5f1e8;
    min-height: 100vh;
}
.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(207, 185, 145, 0.7), rgba(0, 0, 0, 0.7));
    opacity: 0.7;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 8rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0 0 1rem 0;
}
.hero-content p {
    color: rgba(255,255,255,0.95);
    margin: 0 0 1.5rem 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}
.hero-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    border: 2px solid #fff;
}
.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    background: #fff;
    color: var(--brand);
}

/* Hero Wave Transition */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
    z-index: 11;
}
.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Stats Bar */
.stats-bar {
    margin-top: -1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
    position: relative;
    z-index: 20;
}
@media (min-width: 768px) {
    .stats-bar {
    grid-template-columns: repeat(4, 1fr);
    }
}
.stat-card {
    padding: 1.5rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}
.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
}
.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    margin: 0;
}
.stat-card p {
    color: #606063;
    margin: 0.25rem 0 0 0;
}

footer { text-align: center; color: #606063; font-size: .85rem; margin: 1.25rem 0 3rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .55rem; background: #f5f1e8; border: 1px solid var(--border); border-radius: 4px; font-size: .8rem; color: #000; font-weight: 600; }

/* Admin button */
.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.75rem 1.25rem;
    background: var(--brand);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(207, 185, 145, 0.3);
    transition: all 0.2s ease;
    z-index: 60;
    display: none; /* Hidden by default, shown only for approved admins */
}
.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(207, 185, 145, 0.4);
}

/* Admin login modal */
.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}
.admin-modal.active { display: flex; }
.admin-modal-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.admin-modal h3 {
    margin: 0 0 1.5rem 0;
    color: #222;
    font-size: 1.5rem;
}
.admin-input {
    width: 100%;
    background: #fff;
    color: #222;
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.admin-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}
.admin-buttons {
    display: flex;
    gap: 0.75rem;
}
.admin-submit, .admin-cancel {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.admin-submit {
    background: var(--brand);
    color: #000;
}
.admin-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(207, 185, 145, 0.3);
}
.admin-cancel {
    background: #f6f6f6;
    color: #222;
    border: 1px solid var(--border);
}
.admin-cancel:hover {
    background: #e0e0e0;
}
.admin-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* Admin mode styles */
.admin-mode .admin-btn {
    background: var(--success);
}
.visitor-count {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: #222;
    font-weight: 600;
}
.admin-mode .visitor-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.visitor-count .count {
    color: var(--brand);
}
.edit-btn {
    display: none;
    padding: 0.4rem 0.8rem;
    background: var(--brand);
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5rem;
}
.admin-mode .edit-btn {
    display: inline-block;
}
.edit-team-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10;
}
.edit-btn:hover {
    opacity: 0.9;
}
.delete-btn {
    display: none;
    padding: 0.4rem 0.8rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5rem;
}
.admin-mode .delete-btn {
    display: inline-block !important;
}
.delete-btn:hover {
    opacity: 0.9;
}
.add-game-btn {
    display: none;
    padding: 0.75rem 1.5rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
}
.admin-mode .add-game-btn {
    display: inline-block;
}
.add-game-btn:hover {
    opacity: 0.9;
}

/* Edit team icon button */
.edit-icon-btn {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 0.3rem 0.5rem;
    background: var(--brand);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}
.admin-mode .edit-icon-btn {
    display: block;
}
.admin-mode .team-card {
    position: relative;
}
.edit-icon-btn:hover {
    opacity: 0.9;
}

/* Edit icon modal */
.edit-icon-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 110;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}
.edit-icon-modal.active { display: flex; }
.edit-icon-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.edit-icon-content h3 {
    margin: 0 0 1.5rem 0;
    color: #222;
}

.icon-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.icon-option {
    font-size: 2rem;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.icon-option:hover {
    border-color: var(--brand);
    background: #f6f6f6;
}
.icon-option.selected {
    border-color: var(--brand);
    background: #f5f1e8;
    box-shadow: 0 0 0 3px var(--ring);
}

/* Edit game modal */
.edit-game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 110;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}
.edit-game-modal.active { display: flex; }
.edit-game-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.edit-game-content h3 {
    margin: 0 0 1.5rem 0;
    color: #222;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    color: #606063;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.form-group input, .form-group select {
    width: 100%;
    background: #fff;
    color: #222;
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}

/* Bracket styles */
.bracket-container {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    min-width: max-content;
    align-items: center;
}
.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 220px;
}
.bracket-round-title {
    text-align: center;
    font-weight: 700;
    color: #222;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.bracket-match {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* Round of 16 spacing */
.bracket-round:nth-child(1) .bracket-match {
    margin: 0.75rem 0;
}

/* Quarterfinals spacing - double the gaps */
.bracket-round:nth-child(2) .bracket-match {
    margin: 2.5rem 0;
}

/* Semifinals spacing - quadruple the gaps */
.bracket-round:nth-child(3) .bracket-match {
    margin: 6rem 0;
}

/* Move first semifinal match up */
.bracket-round:nth-child(3) .bracket-match:first-of-type {
    margin-top: 4.5rem;
}

/* Finals spacing */
.bracket-round:nth-child(4) .bracket-match {
    margin: 13.5rem 0;
}

/* Move finals match up */
.bracket-round:nth-child(4) .bracket-match:first-of-type {
    margin-top: 11rem;
}

/* Champion - centered */
.bracket-round:nth-child(5) {
    justify-content: center;
}

.bracket-team {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 45px;
    transition: all 0.2s ease;
    color: #222;
}
.bracket-team:hover {
    background: #f6f6f6;
    border-color: var(--brand);
}
.bracket-team.champion {
    background: var(--brand);
    border-color: var(--brand);
    font-weight: 700;
    color: #000;
    box-shadow: 0 0 20px rgba(207, 185, 145, 0.3);
}
.bracket-team .team-name {
    flex: 1;
}
.edit-bracket-btn {
    display: none;
    padding: 0.25rem 0.5rem;
    background: var(--brand);
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5rem;
}
.admin-mode .edit-bracket-btn {
    display: inline-block;
}
.edit-bracket-btn:hover {
    opacity: 0.9;
}

/* Roster management styles */
.roster-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.roster-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}
.roster-item-name {
    flex: 1;
}
.captain-badge {
    background: #ffd700;
    color: #0b0f1a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}
.roster-item-actions {
    display: flex;
    gap: 0.5rem;
}
.make-captain-btn {
    padding: 0.4rem 0.6rem;
    background: #ffd700;
    color: #0b0f1a;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.make-captain-btn:hover {
    opacity: 0.9;
}
.remove-player-btn {
    padding: 0.4rem 0.6rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.remove-player-btn:hover {
    opacity: 0.9;
}

/* Complete game modal styles */
.winner-btn:hover {
    border-color: var(--brand) !important;
    background: #111a2e !important;
}
.winner-btn.selected {
    border-color: var(--success) !important;
    background: var(--success) !important;
    color: #0b0f1a !important;
}
/* ============================================================================
   STATS CAROUSEL STYLES
   ============================================================================ */
.stats-carousel-section {
    width: 100%;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f5f0, #faf7f2);
    overflow: hidden;
}

.stats-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

.stats-carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stats-carousel-track::-webkit-scrollbar {
    display: none;
}

.stat-card-large {
    flex: 0 0 400px;
    height: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f8f5f0);
    border: 2px solid var(--brand);
    box-shadow: 0 8px 24px rgba(207, 185, 145, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(207, 185, 145, 0.35);
    border-color: #d4be9c;
}

.stat-card-label {
    padding: 2rem;
    color: #0a1122;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand);
    color: #000;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(207, 185, 145, 0.4);
    transition: all 0.3s ease;
    font-weight: 700;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(207, 185, 145, 0.6);
}

.carousel-btn-left {
    left: 0.5rem;
}

.carousel-btn-right {
    right: 0.5rem;
}

@media (max-width: 768px) {
    .stats-carousel-container {
        padding: 0 3rem;
    }

    .stat-card-large {
        flex: 0 0 300px;
        height: 250px;
    }

    .stat-card-label {
        font-size: 1.2rem;
        padding: 1.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
