/* ---------- Tokens ---------- */
:root {
    --bg: #17171a;
    --bg-elevated: #1e1e22;
    --card: #2a292e;
    --card-border: rgba(236, 233, 228, 0.08);
    --gold: #8c2a1d;
    --text: #ece9e4;
    --text-hero-sub: #dcdcdcf1;
    --text-dim: #a3a09b;
    --text-faint: #6e6b67;

    --display: "Space Grotesk", sans-serif;
    --body: "Inter", sans-serif;
    --mono: "IBM Plex Mono", monospace;

    --wrap: 1160px;
}

* {
    box-sizing: border-box;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms;
        animation-iteration-count: 1;
        transition-duration: 0.001ms;
    }
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: var(--display);
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 12px;
}

/* subtle grain overlay for texture */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-gold {
    background: var(--gold);
    color: #ffffff;
}

.btn-gold:hover {
    background: #a3341f;
}

.btn-outline {
    border-color: rgba(244, 241, 234, 0.25);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(23, 23, 26, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    transition: transform 0.25s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 24px;
    width: 100%;
}

.logo-mark {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-mark img {
    height: 52px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.15s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
    padding: 76px 0 96px;
    position: relative;
    overflow: hidden;
    /* Add your image path here */
    background-image: linear-gradient(rgba(23, 23, 26, 0.75), rgba(23, 23, 26, 0.85)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 600px;
    background: radial-gradient(ellipse at 30% 0%, rgba(140, 42, 29, 0.16), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(181, 80, 58, 0.1), transparent 55%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 66ch;
}

.hero-copy h1 {
    font-size: clamp(38px, 5.2vw, 60px);
    line-height: 1.03;
    font-weight: 700;
    margin-bottom: 22px;
    overflow-wrap: break-word;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-hero-sub);
    max-width: 46ch;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* ----- Hero: simple & centered ----- */
.hero--simple .hero-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.hero--simple .hero-sub {
    margin-left: auto;
    margin-right: auto;
}

.hero--simple .hero-actions {
    justify-content: center;
}

/* ---------- Games ---------- */
.games {
    padding: 90px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--card-border);
}

.games h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin-bottom: 12px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.game-slot {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-slot:hover {
    border-color: rgba(244, 241, 234, 0.2);
    transform: translateY(-3px);
}

.game-slot h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.game-slot p {
    color: var(--text-dim);
    font-size: 14.5px;
}

/* ---------- Tournaments ---------- */
.events {
    padding: 90px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.events h2 {
    font-size: clamp(28px, 3.4vw, 38px);
}

.section-lede {
    color: var(--text-dim);
    margin-top: 12px;
    font-size: 15.5px;
}

.ticket-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.ticket {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.45);
}

.ticket-day {
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    background: var(--bg-elevated);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--card-border);
}

.ticket-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.ticket-body h3 {
    font-size: 17px;
}

.ticket-time {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text);
}

.schedule-list {
    margin-top: 40px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card);
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.45);
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--card-border);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-day {
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    min-width: 110px;
}

.schedule-event {
    flex: 1;
    font-size: 15px;
    color: var(--text-dim);
}

.schedule-time {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Community Events ---------- */
.community {
    padding: 90px 0;
    background: var(--bg-elevated);
}

.community h2 {
    font-size: clamp(28px, 3.4vw, 38px);
}

.community-row {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------- Visit ---------- */
.visit {
    padding: 90px 0;
    border-top: 1px solid var(--card-border);
}

.visit-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.visit h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin-bottom: 28px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 0 30px;
}

.info-list dt {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.info-list dd {
    margin: 0;
    font-size: 16px;
}

.info-list dd a:hover {
    color: var(--gold);
}

.visit-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    aspect-ratio: 4 / 3;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.25) invert(0.9) contrast(0.9);
}

/* ---------- Social ---------- */
.social {
    padding: 90px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--card-border);
}

.social h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin-bottom: 36px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.social-pin {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.social-pin:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.social-pin svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--gold);
}

.social-pin span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 14.5px;
}

.social-pin small {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ---------- Reviews ---------- */
.reviews {
    padding: 90px 0;
    border-top: 1px solid var(--card-border);
}

.reviews h2 {
    font-size: clamp(28px, 3.4vw, 38px);
}

.review-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.review-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.45);
}

.review-stars {
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 14px;
}

.review-body {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
    flex: 1;
}

.review-author {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-faint);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--card-border);
    background: var(--bg-elevated);
}

.footer-row {
    display: flex;
    justify-content: center;
}

.footer-fine {
    margin: 0;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .ticket-row {
        grid-template-columns: 1fr;
    }

    .review-track {
        grid-template-columns: 1fr 1fr;
    }

    .visit-inner {
        grid-template-columns: 1fr;
    }

    .visit-map {
        display: none;
    }

    .social-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--card-border);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 18px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .schedule-day {
        min-width: 0;
        flex-basis: 100%;
    }

    .review-track {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 52px 0 64px;
    }

    .games,
    .events,
    .community,
    .visit,
    .social,
    .reviews {
        padding: 64px 0;
    }
}