@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Sora:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #000000;
    --bg-2: #0b0b0b;
    --text: #ffffff;
    --muted: #bdbdbd;
    --border: rgba(255,255,255,0.12);
    --border-strong: rgba(255,255,255,0.35);
    --accent: var(--primary, #f6c000);
    --shadow: 0 20px 60px rgba(0,0,0,0.55);
    --header-h: 72px;
    --footer-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(1200px 600px at 50% -100px, rgba(255,255,255,0.06), transparent), var(--bg);
    color: var(--text);
    overflow-x: hidden;
    padding-top: var(--header-h);
    padding-bottom: var(--footer-h);
}

/* Gold scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(200,169,90,0.85) rgba(255,255,255,0.08);
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(246,193,0,0.9), rgba(200,169,90,0.85));
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,0.6);
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(246,193,0,1), rgba(200,169,90,0.95));
}
body.cursor-enabled, body.cursor-enabled * { cursor: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

#bg-canvas-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
#bg-canvas { width: 100%; height: 100%; display: block; }
.tactical-grid {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
}
.tactical-shapes { display: none; }

.custom-cursor {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.custom-cursor-trail {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translate(-50%, -50%);
}
.cursor-hover .custom-cursor { width: 12px; height: 12px; opacity: 1; }
.cursor-hover .custom-cursor-trail { width: 32px; height: 32px; border-color: rgba(255,255,255,0.5); opacity: 1; }
.cursor-enabled .custom-cursor,
.cursor-enabled .custom-cursor-trail { opacity: 1; }

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo { font-size: 1.4rem; font-weight: 700; position: relative; display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 28px; width: auto; }
.logo::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.logo:hover::after { transform: scaleX(1); }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-link { color: #9c9c9c; position: relative; transition: color 0.2s ease; }
.nav-link.active, .nav-link:hover { color: #fff; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
    background: none;
    border: 1px solid var(--border);
    color: #fff;
    display: none;
    border-radius: 10px;
    padding: 8px 10px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px 0; }

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-inner { max-width: 1000px; margin: 0 auto; padding: 90px 20px; display: grid; gap: 18px; }
.menu-link { font-size: clamp(1.6rem, 5vw, 3rem); text-transform: capitalize; }

.btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover {
    border-color: rgba(200,169,90,0.55);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.btn-secondary { background: transparent; }

.hero {
    min-height: calc(100vh + var(--header-h) + var(--footer-h));
    height: calc(100vh + var(--header-h) + var(--footer-h));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(120px + var(--header-h)) 20px calc(60px + var(--footer-h));
    margin-top: calc(-1 * var(--header-h));
    margin-bottom: calc(-1 * var(--footer-h));
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), rgba(0,0,0,0.9));
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-title { color: #ffffff; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; text-shadow: 0 10px 30px rgba(246,192,0,0.25); }
.hero-subtitle { color: var(--muted); font-size: 1.25rem; margin: 16px 0 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.page-section { padding: 90px 20px; position: relative; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; margin: 0 0 10px; }
.section-header p { color: var(--muted); margin: 0; }

.content-page .section-header { text-align: left; }
.content-page .section-header h2 { font-family: 'Sora', sans-serif; letter-spacing: 0.02em; }
.content-page .section-header p { font-family: 'Manrope', sans-serif; }
.content-panel {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(246,192,0,0.18), transparent 55%),
        radial-gradient(140% 120% at 0% 100%, rgba(90,120,255,0.2), transparent 60%),
        rgba(8,8,10,0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.content-panel::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}
.content-default h2 { font-family: 'Sora', sans-serif; font-size: 2.4rem; margin: 6px 0 12px; }
.content-kicker {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: 'Sora', sans-serif;
}
.content-lead {
    font-family: 'Manrope', sans-serif;
    color: #e2e2e2;
    font-size: 1.1rem;
    line-height: 1.8;
}
.content-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}
.content-hero-text { display: flex; flex-direction: column; gap: 8px; }
.content-tagline {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.45);
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
}
.content-hero-card {
    border-radius: 18px;
    padding: 18px;
    background: rgba(12,12,14,0.75);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    gap: 12px;
}
.content-hero-title { font-family: 'Sora', sans-serif; font-size: 1.1rem; color: #fff; }
.content-hero-card p { margin: 0; color: #d6d6d6; font-family: 'Manrope', sans-serif; }
.content-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.content-hero-grid div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.content-hero-grid span { display: block; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }
.content-hero-grid strong { font-family: 'Sora', sans-serif; font-size: 0.95rem; }
.content-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-top: 20px;
}
.content-col p {
    font-family: 'Manrope', sans-serif;
    color: #d5d5d5;
    line-height: 1.8;
    margin-top: 0;
}
.content-callout {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(135deg, rgba(246,192,0,0.12), rgba(255,255,255,0.02));
    font-family: 'Manrope', sans-serif;
    color: #f1f1f1;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.feature-item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    font-family: 'Manrope', sans-serif;
    color: #e9e9e9;
    position: relative;
}
.feature-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(246,192,0,0.6);
}
.feature-item { padding-left: 28px; }
.content-whitelist {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.content-whitelist h4 {
    font-family: 'Sora', sans-serif;
    margin: 0 0 6px;
}
.content-whitelist p { margin: 0; font-family: 'Manrope', sans-serif; color: #d6d6d6; }
.content-footer {
    margin-top: 22px;
    font-family: 'Sora', sans-serif;
    color: #ffffff;
    font-size: 1rem;
}
.content-stack { display: grid; gap: 20px; }
.content-block { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.content-media {
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    min-height: 160px;
    border: 1px solid var(--border);
}
.content-body h3 { font-family: 'Sora', sans-serif; margin: 0 0 8px; }
.content-text { font-family: 'Manrope', sans-serif; color: #d7d7d7; line-height: 1.8; }
.content-text h3, .content-text h4 { font-family: 'Sora', sans-serif; margin: 0 0 8px; }
.content-text p { margin: 0 0 14px; }
.content-text ul { margin: 0 0 14px; padding-left: 18px; }
.content-text li { margin-bottom: 6px; }

.formatted-text h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    margin: 0 0 14px;
}
.formatted-text h3 {
    margin-top: 22px;
    font-size: 1.25rem;
}
.formatted-text h4 { margin-top: 18px; }
.formatted-text ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 8px;
}
.formatted-text li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.formatted-text li::before {
    content: '•';
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 2px;
}
.formatted-text .accent { color: var(--accent); font-weight: 700; }
.formatted-text strong { color: #ffffff; font-weight: 700; }
.formatted-text .callout {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(135deg, rgba(246,192,0,0.14), rgba(255,255,255,0.02));
}

@media (max-width: 900px) {
    .content-hero { grid-template-columns: 1fr; }
    .content-columns { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .content-block { grid-template-columns: 1fr; }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    transition: all 0.25s ease;
}
.card:hover { border-color: var(--border-strong); transform: scale(1.02); background: rgba(255,255,255,0.04); }
.card-media { height: 170px; border-radius: 14px; overflow: hidden; margin: 16px; background-size: cover; background-position: center; }
.card-body { padding: 18px; }
.card-text { color: var(--muted); line-height: 1.6; }
.tactical-card { border-radius: 16px; }

.rank-section { margin-bottom: 48px; }
.rank-header { text-align: center; margin-bottom: 24px; }
.rank-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.rank-header .rank-title {
    color: var(--rank-color, #f6c000);
    text-shadow: 0 0 12px color-mix(in srgb, var(--rank-color, #f6c000) 70%, transparent);
}
.rank-header i {
    color: var(--rank-color, #f6c000);
    text-shadow: 0 0 10px color-mix(in srgb, var(--rank-color, #f6c000) 65%, transparent);
}
.rank-header .glitch-text::before,
.rank-header .glitch-text::after {
    color: var(--rank-color, #f6c000);
    opacity: 0.85;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    justify-items: center;
}
.team-grid .card { justify-self: center; text-align: center; }
.team-grid.single {
    grid-template-columns: 1fr;
    justify-items: center;
}

@media (max-width: 1000px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .team-grid { grid-template-columns: 1fr; }
}
.team-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    transition: all 0.25s ease;
    width: 100%;
    max-width: 320px;
}
.team-card:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.03); transform: scale(1.02); }
.team-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-avatar span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: rgba(200,169,90,0.85);
    text-transform: uppercase;
}
.team-avatar.has-image span { display: none; }
.team-avatar.placeholder { background: radial-gradient(circle at 30% 30%, rgba(200,169,90,0.2), rgba(0,0,0,0.6)); border: 1px solid rgba(200,169,90,0.25); }
.team-avatar.placeholder span { display: flex; }

.team-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
}
.team-card h4 { margin: 8px 0 4px; font-size: 1.1rem; }
.team-role { color: var(--muted); margin: 0 0 10px; }
.team-socials a {
    display: inline-flex;
    margin: 0 6px;
    color: rgba(255,255,255,0.6);
    transition: transform 0.2s ease, color 0.2s ease;
}
.team-socials a:hover { color: white; transform: scale(1.1); }

.accordion-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}
.accordion-body { padding: 16px; color: var(--muted); display: none; }
.rule-item h4 { margin: 0 0 6px; }

.status-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status-main { display: flex; align-items: center; gap: 16px; }
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; }
.status-badge.online { background: rgba(0,200,100,0.2); color: #7CFFAF; }
.status-badge.offline { background: rgba(200,0,50,0.2); color: #ff8c8c; }
.status-logo {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.status-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.status-top h3 span { font-weight: 700; }
.status-players { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.status-players span { background: rgba(255,255,255,0.06); padding: 6px 10px; border-radius: 999px; font-size: 0.85rem; }
.status-meta { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.resources-card { margin-top: 20px; }
.resources-card summary { list-style: none; cursor: pointer; }
.resources-card summary::-webkit-details-marker { display: none; }
.resources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.resources-card[open] .resources-header { margin-bottom: 12px; }
.resources-card:not([open]) .resources-header { margin-bottom: 0; }
.resources-header h3 { margin: 0; font-size: 1.1rem; }
#resourceCount {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.resource-pill {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.social-card { display: flex; gap: 16px; align-items: center; padding: 16px; }
.social-card img { width: 42px; height: 42px; object-fit: contain; }

.live-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.live-layout-stacked { grid-template-columns: 1fr; gap: 28px; }
.live-embed { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; padding: 0; background: rgba(255,255,255,0.02); }
.live-embed-16x9 .live-embed-frame { aspect-ratio: 16 / 9; width: 100%; display: flex; align-items: center; justify-content: center; }
.live-embed-frame iframe { width: 100%; height: 100%; border: 0; }
.embed-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.live-lists h3 { margin: 12px 0; }
.live-card { cursor: pointer; }
.live-stream-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) {
    .live-stream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .live-stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .live-stream-grid { grid-template-columns: 1fr; }
}
.streamer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    transition: all 0.2s ease;
    cursor: pointer;
}
.streamer-card:hover { border-color: var(--border-strong); transform: translateY(-2px); background: rgba(255,255,255,0.04); }
.streamer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.streamer-meta h4 { margin: 0; font-size: 1rem; }
.streamer-meta p { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.streamer-status { font-size: 0.75rem; color: var(--muted); margin-top: 4px; display: inline-block; }
.streamer-card.online .streamer-status { color: #7CFFAF; }
.streamer-card.offline .streamer-status { color: #ff8c8c; }

.event-timer {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
    background: rgba(255,255,255,0.03);
}
.event-header { text-align: center; margin: 18px 0 10px; }
.event-header h3 { margin: 0 0 6px; font-size: 1.4rem; }
.event-header p { margin: 0; color: var(--muted); }

.event-timer-header h3 { margin: 0 0 4px; }
.event-timer-header p { margin: 0 0 12px; color: var(--muted); }
.event-timer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.timer-box { border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; }
.timer-box .num { font-size: 1.4rem; font-weight: 700; }
.timer-box .label { font-size: 0.75rem; color: var(--muted); }
.event-timer-expired { margin-top: 12px; color: var(--accent); font-weight: 600; }

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 16px 20px;
    color: var(--muted);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    z-index: 9999;
}

.glitch-text { position: relative; color: #ffffff; text-shadow: 0.05em 0 0 rgba(255,255,255,0.25), -0.05em -0.025em 0 rgba(255,255,255,0.2), 0.025em 0.05em 0 rgba(255,255,255,0.2); animation: glitch 4000ms infinite; }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; opacity: 0.7; pointer-events: none; color: rgba(246,192,0,0.6); }
.glitch-text::before { transform: translate(1px, 0); }
.glitch-text::after { transform: translate(-1px, 0); }
@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255,255,255,0.3), -0.05em -0.025em 0 rgba(255,255,255,0.3), -0.025em 0.05em 0 rgba(255,255,255,0.3); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255,255,255,0.3), 0.025em 0.025em 0 rgba(255,255,255,0.3), -0.05em -0.05em 0 rgba(255,255,255,0.3); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255,255,255,0.3), 0.05em 0 0 rgba(255,255,255,0.3), 0 -0.05em 0 rgba(255,255,255,0.3); }
    100% { text-shadow: -0.025em 0 0 rgba(255,255,255,0.3), -0.025em -0.025em 0 rgba(255,255,255,0.3), -0.025em -0.05em 0 rgba(255,255,255,0.3); }
}

.typing-text {
    border-right: 2px solid rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: rgba(255,255,255,0.75) } }

.js section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js section.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: inline-flex; }
    .live-layout { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
}


body.menu-open { overflow: hidden; }

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,169,90,0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.team-card:hover::after { opacity: 1; }

.team-grid .card {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    max-width: 420px;
}





.hero-video {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-video video,
.hero-video iframe {
    width: 120vw;
    height: 120vh;
    min-width: 120vw;
    min-height: 120vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
}

.countdown {
    margin-top: 36px;
    padding: 18px 10px;
    border: 1px solid rgba(200,169,90,0.25);
    border-radius: 16px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
}
.countdown, .countdown * {
    font-family: 'Poppins', sans-serif;
}

.countdown-header { text-align: center; margin-bottom: 16px; }
.countdown-header h3 { margin: 0 0 6px; }
.countdown-header p { margin: 0; color: var(--muted); }
.countdown-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.countdown { --digit-height: 80px; }
.time-part-wrapper { display: inline-flex; align-items: flex-end; position: relative; gap: 6px; padding-right: 18px; }
.time-part-wrapper:not(:last-child)::after {
    content: ':';
    position: absolute;
    right: 0;
    bottom: 6px;
    color: rgba(200,169,90,0.35);
    font-size: 64px;
    line-height: 1;
}
.time-label {
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: rgba(200,169,90,0.55);
}
.time-part {
    width: 52px;
    height: var(--digit-height);
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: flex-start;
}
.digit-wrapper {
    transform: translateY(calc(var(--digit, 0) * -1 * var(--digit-height)));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.digit {
    display: block;
    height: var(--digit-height);
    line-height: 1;
    font-size: 64px;
    color: rgba(200,169,90,0.45);
    text-shadow: 0 0 24px rgba(200,169,90,0.18);
    font-weight: 700;
    animation: glitch 4000ms infinite;
}
.event-timer-expired { text-align: center; margin-top: 12px; color: var(--accent); font-weight: 600; }
.event-timer-missing { text-align: center; margin-top: 12px; color: var(--muted); }
.timer-gold .digit {
    color: rgba(246, 193, 0, 0.85);
    text-shadow: 0 0 26px rgba(246,193,0,0.35);
}
.timer-gold .time-part-wrapper:not(:last-child)::after {
    color: rgba(246, 193, 0, 0.75);
}
.event-soon {
    margin-top: 24px;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
}

.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; opacity: 0.7; pointer-events: none; color: rgba(246,192,0,0.6); }

@media (max-width: 900px) {
    .digit { font-size: 48px; }
    .time-part { width: 40px; }
    .countdown { --digit-height: 60px; }
    .time-part-wrapper:not(:last-child)::after { font-size: 44px; }
    .time-label { bottom: -20px; }
}


/* Countdown override: full-width, no card */
.countdown {
    border: none;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
}
.countdown-header { margin-bottom: 10px; }
.countdown-header h3 { color: var(--accent); letter-spacing: 0.02em; }

.countdown-row { justify-content: center; gap: 40px; }
.countdown { --digit-height: 160px; }
.time-part-wrapper { margin-right: 50px; padding-right: 30px; }
.time-part-wrapper:not(:last-child)::after {
    color: rgba(246, 193, 0, 0.705);
    font-size: 200px;
    line-height: 0.9;
    right: 0;
    bottom: 0;
}
.time-part {
    width: 110px;
    height: var(--digit-height);
}
.digit {
    height: var(--digit-height);
    font-size: 180px;
    color: rgba(246, 193, 0, 0.705);
}

.glitch-text { position: relative; color: #ffffff; text-shadow: 0.05em 0 0 rgba(255, 255, 255, 0.25), -0.05em -0.025em 0 rgba(255,255,255,0.2), 0.025em 0.05em 0 rgba(255,255,255,0.2); animation: glitch 4000ms infinite; }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; opacity: 0.7; pointer-events: none; color: rgba(252, 252, 252, 0.6); }

@media (max-width: 900px) {
    .countdown { --digit-height: 90px; }
    .digit { font-size: 90px; }
    .time-part { width: 60px; }
    .time-part-wrapper:not(:last-child)::after { font-size: 90px; }
}

/* Countdown sizing tweak */
.countdown-row { flex-wrap: nowrap; gap: 18px; }
.countdown { --digit-height: 110px; }
.time-part { width: 70px; }
.digit { font-size: 110px; }
.time-part-wrapper:not(:last-child)::after { font-size: 110px; }

.hero-title { color: #ffffff; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; text-shadow: 0 10px 30px rgba(246,192,0,0.25); }

@media (max-width: 900px) {
    .countdown-row { overflow-x: auto; justify-content: flex-start; }
    .countdown { --digit-height: 70px; }
    .digit { font-size: 70px; }
    .time-part { width: 46px; }
    .time-part-wrapper:not(:last-child)::after { font-size: 70px; }
}


.rank-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(246,192,0,0.3));
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
}
.page-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    filter: brightness(0.6) saturate(1.05);
    transition: opacity 0.6s ease;
}
.page-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 120vw;
    min-height: 120vh;
    transform: translate(-50%, -50%);
    filter: brightness(0.6) saturate(1.05);
    opacity: 0;
    transition: opacity 0.6s ease;
}
.page-bg.video-loaded iframe { opacity: 1; }
.page-bg.video-loaded .page-bg-image { opacity: 0; }
#bg-canvas-wrapper { z-index: 1; }
.hero, .page-section { position: relative; z-index: 2; }
.site-header { z-index: 50; }
.site-footer { z-index: 40; }

