/* Another Level Games — shared site stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Jersey+15&display=swap');

:root {
    --bg: #0e0e10;
    --bg-raised: #17171a;
    --bg-raised-2: #1e1e22;
    --border: #2a2a2f;
    --border-strong: #3a3a41;
    --text: #d9d9dc;
    --text-dim: #9a9aa2;
    --text-faint: #6c6c74;
    --accent: #c73a3a;
    --accent-strong: #e14b4b;
    --accent-2: #2f9e6b;
    --accent-2-strong: #3fbd82;
    --max-width: 1100px;
    --font-display: 'Jersey 15', sans-serif;
    --font-body: 'Jersey 15', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 0.75em;
    color: #f2f2f3;
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 40;
    background: transparent;
}

.site-header.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14, 14, 16, 0.92);
    backdrop-filter: blur(6px);
    animation: header-drop 0.25s ease;
}

@keyframes header-drop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.site-header .wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    gap: 1rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    height: 6rem;
    width: auto;
    border-radius: 4px;
    transition: height 0.2s ease;
}

.site-header.is-stuck .brand img {
    height: 4rem;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #f2f2f3;
    letter-spacing: 0.02em;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.main-nav a {
    color: var(--text-dim);
    font-size: 1.25rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.main-nav a.active {
    color: #f2f2f3;
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    color: var(--text);
    padding: 0.4rem 0.55rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 100%);
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.5rem 2rem;
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
        border-top: 1px solid var(--border);
    }
    .main-nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .main-nav a {
        width: 100%;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1.25rem;
    }
    .nav-toggle {
        display: inline-flex;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: #fff;
}

.btn-green {
    background: var(--accent-2);
    color: #fff;
}

.btn-green:hover {
    background: var(--accent-2-strong);
}

.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn[disabled]:hover {
    background: var(--accent);
}

/* ---------- Sections ---------- */

section {
    padding: 4.5rem 0;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--accent-strong);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-lede {
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 2.5rem;
}

/* ---------- Hero ---------- */

.hero {
    padding: 5.5rem 0 4rem;
}

.hero-inner {
    max-width: 720px;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

/* ---------- Cards / grids ---------- */

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.75rem;
    transition: border-color 0.15s ease;
}

.card:hover {
    border-color: var(--border-strong);
}

.card img {
    border-radius: 4px;
}

.card-game img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.card-game h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.card-game p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Team */

.team-card {
    text-align: left;
}

.team-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.team-role {
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    background: var(--bg-raised-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.team-note {
    color: var(--text-faint);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Stats */

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-2-strong);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Feature list */

.feature-list {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    list-style: none;
    padding: 0;
}

@media (min-width: 700px) {
    .feature-list { grid-template-columns: repeat(2, 1fr); }
}

.feature-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.feature-list .dot {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent-2-strong);
    margin-top: 0.5rem;
}

.feature-list strong {
    display: block;
    color: #f2f2f3;
    font-size: 0.98rem;
}

.feature-list span {
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* Update / changelog */

.update-post {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
}

.update-post img {
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.update-post .update-date {
    color: var(--text-faint);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.update-note {
    background: var(--bg-raised-2);
    border-left: 3px solid var(--accent-2);
    border-radius: 0 4px 4px 0;
    padding: 1rem;
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* Socials */

.social-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.85rem 1.25rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

.social-link:hover {
    border-color: var(--border-strong);
    text-decoration: none;
    color: #fff;
}

.social-link img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 3px;
}

/* Support / FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-raised);
    transition: border-color 0.15s ease;
}

.faq-item[open],
.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
    padding: 0.75rem 1.1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #f2f2f3;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--accent-strong);
    font-size: 1.35rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "\2013";
}

.faq-answer {
    padding: 0 1.1rem 0.9rem;
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* Support page */

body[data-page="support"] section {
    padding: 2rem 0;
}

body[data-page="support"] .support-intro {
    padding-top: 2.5rem;
}

body[data-page="support"] .section-heading {
    margin-bottom: 0.35rem;
}

body[data-page="support"] .section-lede {
    margin-bottom: 1.25rem;
}

.contact-row {
    gap: 1rem;
}

body[data-page="support"] .contact-box {
    padding: 1.25rem;
}

body[data-page="support"] .contact-box h2 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

body[data-page="support"] .contact-box p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

body[data-page="support"] .contact-box .btn {
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
}

.contact-box {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
}

/* ---------- Legal pages ---------- */

.legal-page section {
    padding-top: 3rem;
}

.legal-updated {
    color: var(--text-faint);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 2.25rem;
    color: var(--accent-strong);
}

.legal-page h3 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    color: #e8e8ea;
}

.legal-page p, .legal-page li {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ---------- Game picker / compact game template ---------- */

.game-picker {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.game-picker label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.game-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a9aa2'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 0.6rem 2.2rem 0.6rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 220px;
}

.game-select:focus {
    outline: none;
    border-color: var(--accent);
}

.game-detail {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.game-detail-media {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.game-detail-body {
    padding: 1.75rem;
}

.game-detail-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.game-detail-top h2 {
    margin: 0;
    font-size: 1.6rem;
}

.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    background: rgba(47, 158, 107, 0.15);
    color: var(--accent-2-strong);
    border: 1px solid rgba(47, 158, 107, 0.35);
}

.status-badge.status-red {
    background: rgba(199, 58, 58, 0.15);
    color: var(--accent-strong);
    border-color: rgba(199, 58, 58, 0.35);
}

.status-badge.status-neutral {
    background: rgba(154, 154, 162, 0.12);
    color: var(--text-dim);
    border-color: var(--border-strong);
}

.game-tagline {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.game-stat-row {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.game-stat-row .stat-value {
    font-size: 1.5rem;
}

.game-stat-row .stat-label {
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.chip {
    background: var(--bg-raised-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.game-update-mini {
    background: var(--bg-raised-2);
    border-left: 3px solid var(--accent-2);
    border-radius: 0 4px 4px 0;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
}

.game-update-mini .update-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 0.25rem;
}

.game-update-mini strong {
    display: block;
    color: #f2f2f3;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.game-update-mini p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 2.5rem 0;
}

.site-footer .wrap {
    text-align: center;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    color: var(--text-faint);
    font-size: 0.82rem;
    margin: 0;
}

/* ---------- Home page ---------- */

body[data-page="home"] section {
    padding: 2rem 0;
}

body[data-page="home"] .hero {
    display: flex;
    align-items: center;
    min-height: 36vh;
    padding: 2.5rem 0 1.5rem;
}

body[data-page="home"] .hero .wrap {
    width: 100%;
    max-width: var(--max-width);
}

body[data-page="home"] .hero h1 {
    max-width: 720px;
}

body[data-page="home"] .hero h1 {
    margin-bottom: 0.5rem;
}

body[data-page="home"] .hero p {
    margin-bottom: 0;
}

body[data-page="home"] .hero-actions {
    margin-top: 1.1rem;
}

body[data-page="home"] .section-eyebrow {
    margin-bottom: 0.35rem;
}

body[data-page="home"] .section-heading {
    margin-bottom: 1rem;
}

body[data-page="home"] .section-lede {
    margin-bottom: 1.25rem;
}

body[data-page="home"] .grid {
    gap: 1.25rem;
}

body[data-page="home"] .site-footer {
    padding: 1.75rem 0;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
