@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Rubik+Dirt&family=Inter:wght@400;700;900&display=swap');

:root {
    --bg: #0b0a08;
    --bg2: #131210;
    --jungle: #1a2e12;
    --jungle-light: #2d4a1e;
    --blood: #8b1a1a;
    --blood-bright: #cc2222;
    --gold: #c9a84c;
    --gold-dim: #8a7333;
    --bone: #d4c9a8;
    --text: #c9c0a8;
    --text-dim: #6b6450;
    --vine: #3a5e28;
    --mud: #3d2e1a;
    --scratch: rgba(200, 180, 140, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.02) 3px, rgba(0,0,0,0.02) 6px);
}

body::after {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
}

::selection { background: var(--blood); color: var(--bone); }

/* ═══ TORN EDGE DECORATOR ═══ */
.torn-edge {
    position: relative;
}
.torn-edge::after {
    content: '';
    position: absolute; bottom: -12px; left: 0; right: 0; height: 12px;
    background: linear-gradient(135deg, var(--bg) 33.33%, transparent 33.33%) 0 0,
                linear-gradient(225deg, var(--bg) 33.33%, transparent 33.33%) 0 0;
    background-size: 18px 12px;
}

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(11, 10, 8, 0.95);
    border-bottom: 2px solid var(--mud);
    padding: 0 2rem;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}

.nav-brand img {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--gold-dim);
    filter: sepia(0.3) contrast(1.1);
}

.nav-brand span {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 3px;
}

.nav-ticker {
    font-family: 'Inter', monospace;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--blood-bright);
    background: rgba(139, 26, 26, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(139, 26, 26, 0.3);
    letter-spacing: 1px;
}

.nav-links {
    display: flex; align-items: center; gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    content: '';
    position: absolute; bottom: -6px; left: 0; right: 0;
    height: 2px;
    background: var(--blood-bright);
}

.nav-socials {
    display: flex; gap: 1rem; align-items: center;
}

.nav-socials a {
    color: var(--text-dim);
    transition: color 0.2s, transform 0.2s;
    font-size: 1.1rem;
}

.nav-socials a:hover {
    color: var(--gold);
    transform: scale(1.2) rotate(-5deg);
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.btn-primary {
    background: var(--blood);
    color: var(--bone);
    clip-path: polygon(3% 0%, 100% 2%, 97% 100%, 0% 98%);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.btn-primary:hover {
    background: var(--blood-bright);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold-dim);
    clip-path: polygon(2% 3%, 98% 0%, 100% 97%, 0% 100%);
}

.btn-outline:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}

.btn-ghost {
    background: rgba(58, 94, 40, 0.2);
    color: var(--vine);
    border: 1px solid rgba(58, 94, 40, 0.3);
}

.btn-ghost:hover {
    background: rgba(58, 94, 40, 0.35);
    color: var(--bone);
}

/* ═══ HERO ═══ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 80px 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(26, 46, 18, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(139, 26, 26, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none; z-index: 1;
}

.hero-bg-claw {
    position: absolute;
    top: 10%; right: -5%;
    width: 500px; height: 600px;
    opacity: 0.03;
    background: repeating-linear-gradient(
        -30deg, transparent, transparent 20px,
        var(--bone) 20px, var(--bone) 22px
    );
    transform: rotate(15deg);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Rubik Dirt', cursive;
    font-size: 4rem;
    line-height: 0.95;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.7), 0 0 40px rgba(139, 26, 26, 0.2);
}

.text-blood { color: var(--blood-bright); }
.text-gold { color: var(--gold); }
.text-jungle { color: var(--vine); }
.text-bone { color: var(--bone); }

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 500px;
    border-left: 3px solid var(--mud);
    padding-left: 1rem;
}

.hero-ticker-box {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg2);
    border: 1px solid var(--mud);
    padding: 8px 16px;
    margin-bottom: 2rem;
    font-family: 'Inter', monospace;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--gold);
    cursor: pointer;
    transition: border-color 0.2s;
    clip-path: polygon(1% 0%, 100% 3%, 99% 100%, 0% 97%);
}

.hero-ticker-box:hover { border-color: var(--gold); }

.hero-ticker-box .copy-hint {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.hero-buttons {
    display: flex; gap: 1rem; flex-wrap: wrap;
}

.hero-image {
    display: flex; justify-content: center; align-items: center;
    position: relative;
}

.hero-image img {
    width: 100%; max-width: 500px;
    filter: drop-shadow(0 0 30px rgba(139, 26, 26, 0.2)) drop-shadow(0 5px 20px rgba(0,0,0,0.5));
    animation: sway 5s ease-in-out infinite;
    transform: rotate(0deg);
}

@keyframes sway {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-8px); }
}

.stamp {
    position: absolute;
    font-family: 'Permanent Marker', cursive;
    color: var(--blood-bright);
    font-size: 2.5rem;
    letter-spacing: 4px;
    border: 4px solid var(--blood-bright);
    padding: 4px 16px;
    transform: rotate(-18deg);
    opacity: 0.7;
    top: 15%; right: 5%;
    pointer-events: none;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* ═══ DIVIDER ═══ */
.jungle-divider {
    height: 40px;
    background:
        linear-gradient(180deg, var(--bg), var(--jungle) 40%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--mud);
    border-bottom: 1px solid var(--mud);
}

.jungle-divider::before {
    content: '/// $PUNCHR /// HARDCORE MONKEY FIGHTER /// $PUNCHR /// FIGHT OR DIE /// $PUNCHR ///';
    position: absolute;
    white-space: nowrap;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.75rem;
    color: var(--gold-dim);
    letter-spacing: 6px;
    top: 50%; transform: translateY(-50%);
    animation: marquee 20s linear infinite;
    opacity: 0.6;
}

@keyframes marquee {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-50%); }
}

/* ═══ STATS ═══ */
.stats-bar {
    display: flex; justify-content: center; gap: 0;
    background: var(--bg2);
    border-bottom: 2px solid var(--mud);
}

.stat-item {
    text-align: center;
    padding: 1.5rem 3rem;
    border-right: 1px solid var(--mud);
    position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-value {
    font-family: 'Rubik Dirt', cursive;
    font-size: 1.8rem;
    color: var(--gold);
}

.stat-label {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ═══ SECTIONS ═══ */
.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Rubik Dirt', cursive;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--bone);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px; height: 3px;
    background: var(--blood);
    margin-top: 0.8rem;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    font-style: italic;
}

/* ═══ FEATURES ═══ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.feature-card {
    background: var(--bg2);
    border: 1px solid var(--mud);
    padding: 1.8rem;
    transition: all 0.3s;
    position: relative;
    clip-path: polygon(0% 2%, 98% 0%, 100% 98%, 2% 100%);
}

.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--jungle-light);
    transition: background 0.3s;
}

.feature-card:hover {
    border-color: var(--gold-dim);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--mud);
}

.feature-card:hover::before { background: var(--blood); }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    filter: grayscale(0.3);
}

.feature-card h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    color: var(--gold);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ═══ HOW TO BUY ═══ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.step {
    padding: 2rem;
    border: 1px solid var(--mud);
    position: relative;
    background: var(--bg2);
}

.step::before {
    content: '';
    position: absolute; top: -1px; left: 20%; right: 20%; height: 2px;
    background: var(--blood);
}

.step-number {
    font-family: 'Rubik Dirt', cursive;
    font-size: 3rem;
    color: var(--mud);
    opacity: 0.5;
    position: absolute;
    top: 10px; right: 15px;
}

.step h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--bone);
}

.step p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ═══ CTA ═══ */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(26, 46, 18, 0.08), transparent);
}

.cta-section h2 {
    font-family: 'Rubik Dirt', cursive;
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.cta-section p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-style: italic;
}

/* ═══ GAME PAGE ═══ */
.game-page {
    padding-top: 60px;
    background: var(--bg);
}

.game-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    position: relative;
}

.game-container {
    width: 100%;
    aspect-ratio: 900 / 600;
    overflow: hidden;
    border: 3px solid var(--mud);
    box-shadow: 0 0 60px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.2);
    position: relative;
    background: #1a0a00;
}

.game-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.game-controls-hint {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--mud);
}

.control-key {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.key-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg2);
    border: 1px solid var(--mud);
    padding: 2px 7px;
    font-weight: 900;
    font-size: 0.65rem;
    color: var(--gold);
    min-width: 24px;
    font-family: 'Inter', monospace;
}

/* ═══ ARENA BELOW GAME ═══ */
.arena-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.arena-panel {
    background: var(--bg2);
    border: 1px solid var(--mud);
    padding: 1.2rem 1.5rem;
    clip-path: polygon(0% 1%, 99% 0%, 100% 99%, 1% 100%);
}

.arena-panel-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mud);
}

.arena-lb-list {
    list-style: none;
}

.arena-lb-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(61,46,26,0.25);
    font-size: 0.8rem;
}

.arena-lb-item:last-child { border-bottom: none; }

.arena-lb-rank {
    font-family: 'Rubik Dirt', cursive;
    font-size: 0.85rem;
    color: var(--mud);
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.arena-lb-item:nth-child(1) .arena-lb-rank { color: var(--gold); }
.arena-lb-item:nth-child(2) .arena-lb-rank { color: #a0a0a0; }
.arena-lb-item:nth-child(3) .arena-lb-rank { color: #8b5e3c; }

.arena-lb-name {
    color: var(--bone);
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arena-lb-score {
    color: var(--gold);
    font-weight: 700;
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
}

.arena-lb-wave {
    color: var(--text-dim);
    font-size: 0.7rem;
    width: 3rem;
    text-align: right;
    flex-shrink: 0;
}

.arena-lb-empty {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.8rem;
    padding: 1rem 0;
}

.arena-lb-more {
    display: block;
    text-align: center;
    margin-top: 0.8rem;
    color: var(--gold-dim);
    font-family: 'Permanent Marker', cursive;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.2s;
}
.arena-lb-more:hover { color: var(--gold); }

.arena-tip {
    display: flex; gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(61,46,26,0.25);
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.arena-tip:last-child { border-bottom: none; }

.arena-tip-icon {
    flex-shrink: 0;
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
}

.arena-tip strong {
    color: var(--bone);
}

.arena-powerups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.arena-pu {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 0.35rem 0.5rem;
    background: rgba(26,46,18,0.1);
    border: 1px solid rgba(61,46,26,0.2);
}

.arena-pu-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.arena-pu strong {
    color: var(--bone);
    display: block;
    font-size: 0.7rem;
}

.arena-panel-wide {
    grid-column: 1 / -1;
}

/* Tabs */
.arena-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--mud);
    margin-bottom: 1rem;
}

.arena-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.arena-tab:hover {
    color: var(--bone);
    background: rgba(61, 46, 26, 0.15);
}

.arena-tab.active {
    color: var(--gold);
}

.arena-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--blood-bright);
}

.arena-tab-content {
    display: none;
}

.arena-tab-content.active {
    display: block;
}

.arena-powerups-full {
    grid-template-columns: 1fr 1fr;
}

/* Controls grid */
.arena-controls-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.arena-ctrl {
    text-align: center;
    padding: 0.6rem 0.4rem;
    background: rgba(11, 10, 8, 0.5);
    border: 1px solid rgba(61, 46, 26, 0.3);
}

.arena-ctrl-keys {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.arena-ctrl-or {
    font-size: 0.6rem;
    color: var(--text-dim);
    font-style: italic;
    margin: 0 2px;
}

.arena-ctrl-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.3;
}

/* Enemies list */
.arena-enemies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arena-enemy {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(61, 46, 26, 0.25);
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.arena-enemy:last-child { border-bottom: none; }

.arena-enemy strong {
    color: var(--bone);
    font-size: 0.8rem;
}

.arena-enemy-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

/* ═══ LEADERBOARD ═══ */
.leaderboard-page {
    padding-top: 80px;
    min-height: 100vh;
}

.leaderboard-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.leaderboard-table th {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold-dim);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--mud);
    text-transform: uppercase;
}

.leaderboard-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(61, 46, 26, 0.4);
    font-size: 0.9rem;
}

.leaderboard-table tr:hover td {
    background: rgba(26, 46, 18, 0.1);
}

.rank-1 { color: var(--gold); font-weight: 900; text-shadow: 0 0 10px rgba(201, 168, 76, 0.3); }
.rank-2 { color: #a0a0a0; font-weight: 700; }
.rank-3 { color: #8b5e3c; font-weight: 700; }

.lb-wave { color: var(--text-dim); }
.lb-score { color: var(--gold); font-weight: 700; font-family: 'Inter', monospace; }
.lb-name { font-weight: 600; color: var(--bone); }

.lb-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    font-size: 1rem;
    font-style: italic;
}

/* ═══ FOOTER ═══ */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--mud);
    color: var(--text-dim);
    font-size: 0.75rem;
    background: var(--bg2);
    font-style: italic;
}

.footer a {
    color: var(--gold-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover { color: var(--gold); }

/* ═══ MOBILE ═══ */
.nav-burger {
    display: none;
    background: none; border: none;
    color: var(--bone);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { border-left: none; padding-left: 0; margin: 0 auto 1.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 260px; }
    .hero-content h1 { font-size: 2.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .stats-bar { flex-wrap: wrap; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--mud); flex: 1 1 50%; }
    .stamp { display: none; }
    .arena-content { grid-template-columns: 1fr; }
    .arena-panel-wide { grid-column: 1; }
    .arena-controls-grid { grid-template-columns: repeat(2, 1fr); }
    .arena-powerups-full { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-socials { display: none; }
    .nav-burger { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: rgba(11, 10, 8, 0.98);
        padding: 1rem 2rem;
        border-bottom: 2px solid var(--mud);
    }
    .game-wrapper { padding: 0.5rem 0.5rem 0; }
    .game-controls-hint { gap: 0.6rem; padding: 0.5rem 0; font-size: 0.65rem; }
    .key-badge { padding: 2px 5px; font-size: 0.6rem; min-width: 20px; }
    .arena-content { padding: 1rem 0.5rem; gap: 1rem; }
    .arena-powerups { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .arena-panel { padding: 1rem; }
    .arena-controls-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .arena-powerups { grid-template-columns: 1fr; }
    .arena-powerups-full { grid-template-columns: 1fr; }
    .arena-tab { font-size: 0.7rem; padding: 0.5rem 0.5rem; letter-spacing: 1px; }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mud); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
