* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #5fb854;
    --primary-green-hover: #7bc96f;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --text-muted: #909090;
    --discord-blurple: #5865F2;
    --discord-blurple-hover: #6f7af7;
    --video-credit-color: #666;
    --video-credit-hover: #888;
    --keyword-green-1: #69bd69;
    --keyword-green-2: #5fb854;
    --keyword-green-3: #4a9c4a;
    --keyword-green-4: #3d8b3d;
    --keyword-green-5: #2f6b2f;
    --pride-red: #e40303;
    --pride-orange: #ff8c00;
    --pride-yellow: #ffed00;
    --pride-green: #008018;
    --pride-blue: #0066ff;
    --pride-purple: #732982;
    --pride-brown: #613915;
    --pride-black: #000000;
    --pride-light-blue: #55cdfc;
    --pride-pink: #f7a8b8;
    --pride-white: #ffffff;
}

body {
    font-family: 'Titillium Web', Arial, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    cursor: url('/img/crosshair-dimmed.svg') 16 16, auto;
}

h2 {
    font-size: 2.2rem;
}

a {
    color: var(--primary-green);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green-hover);
}

a, button, .btn, [role="button"], input[type="button"], input[type="submit"] {
    cursor: url('/img/crosshair.svg') 16 16, pointer !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-green);
    text-shadow: 0 0 15px rgba(74, 103, 65, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(74, 103, 65, 0.3);
}
.btn-primary:hover {
    background: var(--primary-green-hover);
    border-color: var(--primary-green-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 184, 84, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-discord {
    background: var(--discord-blurple);
    color: white;
    border-color: var(--discord-blurple);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}
.btn-discord:hover {
    background: var(--discord-blurple-hover);
    border-color: var(--discord-blurple-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}

.btn-icon {
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}
.btn-icon i, .btn-icon img {
    width: 20px;
    height: 20px;
}
.btn-icon img {
    filter: brightness(0) invert(1);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-frame {
    width: 500px;
    height: 300px;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateX(8deg) rotateY(-3deg);
    transition: transform 0.3s ease;
    position: relative;
    --glare-opacity: 0.25;
}

.game-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, var(--glare-opacity)) 0%, rgba(255, 255, 255, calc(var(--glare-opacity) * 0.4)) 40%, transparent 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 8px 8px 0 0;
}

.frame-content {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a2a2a 0%, var(--card-bg) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-credit {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.02rem;
}

.video-credit a {
    color: var(--video-credit-color);
    text-decoration: none !important;
}

.video-credit a:hover {
    color: var(--video-credit-hover);
}

.player-stats {
    margin: 0.5rem 0;
    text-align: center;
}

.player-stats h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.current-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.join-message {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.join-message span {
    color: var(--primary-green);
    font-weight: 700;
}

.chart-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.chart-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}
.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}
.chart-loading, .chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    font-size: 1.1rem;
    text-align: center;
}
.chart-loading { color: var(--text-secondary); }
.chart-error { color: var(--error-color); }

#playerChart {
    max-width: 100%;
    height: auto;
}

.features {
    margin: 2rem 0;
    text-align: center;
}

.features h3 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature-icon i {
    width: 48px;
    height: 48px;
    color: var(--primary-green);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.keywords {
    margin: 0.5rem 0 1.5rem 0;
    text-align: center;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.keyword-tag {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: default;
}

.keyword-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 184, 84, 0.3);
}

.keyword-tag a {
    color: inherit;
    text-decoration: none !important;
}

.keyword-green-1 { background: var(--keyword-green-1); }
.keyword-green-2 { background: var(--keyword-green-2); }
.keyword-green-3 { background: var(--keyword-green-3); }
.keyword-green-4 { background: var(--keyword-green-4); }
.keyword-green-5 { background: var(--keyword-green-5); }

.keyword,
.keyword-green-1,
.keyword-green-2,
.keyword-green-3,
.keyword-green-4,
.keyword-green-5 {
    cursor: inherit !important;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    margin-top: 4rem;
}

.pride-flag-bar {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0;
}

.pride-color {
    width: 12px;
    height: 4px;
    display: inline-block;
}

.pride-red { background-color: var(--pride-red); }
.pride-orange { background-color: var(--pride-orange); }
.pride-yellow { background-color: var(--pride-yellow); }
.pride-green { background-color: var(--pride-green); }
.pride-blue { background-color: var(--pride-blue); }
.pride-purple { background-color: var(--pride-purple); }
.pride-brown { background-color: var(--pride-brown); }
.pride-black { background-color: var(--pride-black); }
.pride-light-blue { background-color: var(--pride-light-blue); }
.pride-pink { background-color: var(--pride-pink); }
.pride-white { background-color: var(--pride-white); }

.hitmarker {
    position: fixed;
    width: 40px;
    height: 40px;
    background-image: url('/img/hitmarker.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.hitmarker.show {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-title { font-size: 2.5rem; }
    .cta-buttons { justify-content: center; }
    .game-frame {
        width: 300px;
        height: 200px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .features-grid { grid-template-columns: 1fr; }
    .join-message {
        font-size: 1.2rem;
        text-align: center;
    }
    .chart-container { padding: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 2rem; }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    .hero-visual { margin-top: 2rem; }
    .game-frame {
        width: 100%;
        max-width: 350px;
        height: 200px;
        margin: 0 auto;
    }
    #gameVideo {
        width: 100%;
        height: 100%;
    }
    body { cursor: auto; }
    a, button, .btn, [role="button"], input[type="button"], input[type="submit"] {
        cursor: pointer !important;
    }
}