.game-modes-panel {
    position: relative;
    min-height: calc(100svh - 6rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 5rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(100%, 58rem);
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.page-header-copy {
    flex: 1;
    text-align: left;
}

.page-header-art {
    display: block;
    flex: 0 0 auto;
    width: clamp(10rem, 24vw, 15rem);
    height: auto;
    filter: drop-shadow(0 12px 26px rgba(123, 190, 255, 0.13));
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: #8fe8c5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin: 0;
}

.page-description {
    max-width: 38rem;
    margin: 0.8rem 0 0;
    color: rgba(239, 255, 248, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(1160px, 100%);
}

.mode-card {
    display: flex;
    flex-direction: column;
    cursor: default;
    background: linear-gradient(145deg, var(--geo-panel), var(--geo-panel-alt));
    border: 1px solid var(--geo-border);
    border-radius: var(--geo-radius-large);
    min-height: 21rem;
    padding: clamp(1.2rem, 2vw, 1.6rem);
    box-shadow: 0 18px 38px var(--geo-shadow);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mode-card * {
    cursor: default;
}

.mode-card.is-live:hover,
.mode-card.is-progress:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 174, 0.6);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(0, 255, 174, 0.12);
}

.mode-card.is-upcoming:hover {
    transform: none;
    border-color: var(--geo-border);
    box-shadow: 0 18px 38px var(--geo-shadow);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.mode-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: rgba(0, 255, 174, 0.12);
    border: 1px solid rgba(0, 255, 174, 0.28);
}

.mode-icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.mode-icon svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: none;
    stroke: #8fffd3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.mode-copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mode-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.mode-card.is-live .mode-badge {
    background: rgba(0, 255, 174, 0.12);
    color: #9ef7d4;
    border: 1px solid rgba(0, 255, 174, 0.38);
}

.mode-card.is-upcoming .mode-badge {
    background: rgba(120, 145, 255, 0.12);
    color: #b4c4ff;
    border: 1px solid rgba(120, 145, 255, 0.35);
}

.mode-card.is-progress .mode-badge {
    background: rgba(255, 198, 90, 0.12);
    color: #ffd77a;
    border: 1px solid rgba(255, 198, 90, 0.35);
}

.mode-card h3 {
    margin: 0;
    font-size: 1.7rem;
    color: var(--geo-text);
}

.mode-description {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    min-height: 4.8rem;
}

.mode-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mode-meta li {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dfece8;
    font-size: 0.78rem;
}

.mode-action {
    margin-top: auto;
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.mode-action:not(:disabled) {
    cursor: pointer;
}

.mode-action.primary {
    background: linear-gradient(135deg, #00f5b3, #00c78a);
    color: #031a15;
    box-shadow: 0 10px 20px rgba(0, 255, 174, 0.2);
}

.mode-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 255, 174, 0.25);
}

.mode-action.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

.mode-action:disabled {
    min-height: 3.2rem;
    opacity: 0.82;
    cursor: not-allowed;
    letter-spacing: 0.015em;
}

.game-modes-panel .line {
    display: none;
}

@media (max-width: 900px) {
    .mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .mode-card {
        min-height: 20rem;
    }
}

@media (max-width: 600px) {
    .game-modes-panel {
        min-height: auto;
        padding: 2rem 1rem 3.5rem;
    }

    .page-header {
        gap: 0.35rem;
    }

    .page-header-art {
        width: 7.5rem;
    }

    .page-header-copy .title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 0.88rem;
    }

    .mode-grid {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 28rem);
        gap: 0.85rem;
    }

    .mode-card {
        min-height: 0;
        padding: 1.2rem;
    }

    .mode-card h3 {
        font-size: 1.4rem;
    }

    .mode-description {
        min-height: 0;
    }
}
