:root{
    --font-sans: "Rajdhani", system-ui, Arial, sans-serif;
    --font-display: "Orbitron", system-ui, Arial, sans-serif;

    --bg: #0f111a;
    --surface: #1a1d28;
    --muted: #7b879d;
    --text: #f0f1f5;
    --primary: #995af2;
    --primary-contrast: #ffffff;
    --alert: #f9a921;
    --success: #1dc978;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    background: transparent;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand .logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-contrast);
    font-weight: 700;
    font-family: var(--font-display);
}

.brand-title,
.brand h1 {
    margin: 0;
    font-size: 20px;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

nav,
.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a,
.main-nav a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    opacity: 0.95;
}

nav a:hover,
.main-nav a:hover {
    color: var(--primary);
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coins {
    background: var(--surface);
    border-radius: 9999px;
    padding: 6px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    background: transparent;
    color: var(--text);
    font-weight: 600;
}

.btn.primary {
    background: var(--primary);
    color: var(--primary-contrast);
    border: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.container {
    padding: 48px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.hero {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.hero-left {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text);
}

.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.badge.live {
    background: rgba(245,61,177,0.95);
    color: #fff;
}

.badge.season {
    background: rgba(37,40,55,0.9);
    color: var(--muted);
}

.hero h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.cta-row .btn {
    padding: 12px 24px;
    border-radius: 8px;
}

.stats-panel {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stat {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    min-width: 140px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.03);
}

.stat h3 {
    margin: 0;
    font-size: 28px;
    color: var(--primary);
    font-family: var(--font-display);
}

.stat small {
    color: var(--muted);
    display: block;
    margin-top: 6px;
    font-weight: 600;
}

.hero-right {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.03);
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
}

.events-fullwidth {
    max-width: 1600px;
    margin: 40px auto 0;
    padding: 0 48px 32px;
    width: 100%;
}

.events-title {
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 20px;
    font-family: var(--font-display);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.event-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
    min-width: 0;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.event-media {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #0b0c10;
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

.event-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 18px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.6);
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.event-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.event-meta .dot {
    opacity: 0.6;
}

.event-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn.small {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    display: inline-block;
}

.actions .btn.primary {
    margin-right: 8px;
}

@media (max-width: 980px) {
    .container {
        padding: 24px;
        flex-direction: column;
    }

    .hero {
        flex-direction: column;
    }

    .hero-left {
        flex-basis: auto;
    }

    .left {
        width: 100%;
    }
}

@media (max-width: 860px) {
    header {
        padding: 14px 24px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .brand {
        width: 100%;
        justify-content: space-between;
    }

    nav,
    .main-nav {
        width: 100%;
        order: 3;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .actions > div {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .events-fullwidth {
        padding: 0 16px 28px;
        margin-top: 28px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 34px;
        line-height: 1.05;
    }

    .hero p {
        max-width: none;
        font-size: 16px;
    }

    .cta-row {
        flex-direction: column;
    }

    .cta-row .btn {
        width: 100%;
        text-align: center;
    }

    .stats-panel {
        gap: 12px;
    }

    .stat {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }
}
