/* ============================================
   BBATTL.com v2 - Pop-Art Comic Book Showdowns
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary-yellow: #FFD700;
    --hero-red: #E63946;
    --rival-blue: #1D3557;
    --halftone-pink: #FF6B9D;
    --ink-black: #0d0d0d;
    --paper-white: #FAFAF5;
    --speed-cyan: #00D4FF;
    --ko-green: #39FF14;
    --gutter-dots: #f5f5f5;
    --gutter-bg: #e0e0e0;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    font-size: clamp(15px, 1.1vw, 18px);
    background-color: var(--paper-white);
    color: var(--ink-black);
    overflow-x: hidden;
}

/* --- Onomatopoeia Background Watermarks --- */
.onomatopoeia-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ono-text {
    position: absolute;
    font-family: 'Bangers', cursive;
    font-size: clamp(120px, 15vw, 200px);
    text-transform: uppercase;
    opacity: 0.06;
    letter-spacing: 0.04em;
    animation: ono-drift 8s ease-in-out infinite alternate;
}

.ono-1 {
    top: 5%;
    left: 10%;
    transform: rotate(-12deg);
    color: var(--hero-red);
}

.ono-2 {
    top: 25%;
    right: 5%;
    transform: rotate(8deg);
    color: var(--rival-blue);
}

.ono-3 {
    top: 50%;
    left: 5%;
    transform: rotate(15deg);
    color: var(--hero-red);
}

.ono-4 {
    top: 70%;
    right: 15%;
    transform: rotate(-10deg);
    color: var(--rival-blue);
}

.ono-5 {
    top: 40%;
    left: 55%;
    transform: rotate(5deg);
    color: var(--hero-red);
}

.ono-6 {
    top: 85%;
    left: 30%;
    transform: rotate(-8deg);
    color: var(--rival-blue);
}

@keyframes ono-drift {
    from { transform: translateY(0); }
    to { transform: translateY(20px); }
}

.ono-1 { animation-delay: 0s; }
.ono-2 { animation-delay: 1.2s; }
.ono-3 { animation-delay: 2.4s; }
.ono-4 { animation-delay: 0.6s; }
.ono-5 { animation-delay: 1.8s; }
.ono-6 { animation-delay: 3s; }

/* --- HERO SPLASH PANEL --- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--paper-white);
    overflow: hidden;
    z-index: 1;
}

.hero-border-frame {
    position: absolute;
    top: 3%;
    left: 2%;
    width: 96%;
    height: 94%;
    z-index: 2;
    pointer-events: none;
}

.hero-border-svg {
    width: 100%;
    height: 100%;
}

.hero-border-rect {
    stroke-dasharray: 3768;
    stroke-dashoffset: 3768;
    animation: drawBorder 800ms ease-out 200ms forwards;
}

@keyframes drawBorder {
    to { stroke-dashoffset: 0; }
}

/* Speed Lines */
.speed-lines-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    animation: speedLinesIn 600ms ease-out 400ms forwards;
}

.speed-lines {
    width: 100%;
    height: 100%;
    animation: rotateLines 40s linear infinite;
}

@keyframes speedLinesIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    to { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
}

@keyframes rotateLines {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Halftone Overlay */
.halftone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    animation: halftoneIn 400ms ease-out 1200ms forwards;
    background-image: radial-gradient(circle, var(--halftone-pink) 3px, transparent 3px);
    background-size: 8px 8px;
}

@keyframes halftoneIn {
    to { opacity: 0.15; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.hero-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(250px, 40vw, 600px);
    height: clamp(250px, 40vw, 600px);
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
    animation: burstIn 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55) 1200ms forwards;
}

.hero-burst svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes burstIn {
    0% { transform: translate(-50%, -50%) scale(0); }
    70% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.hero-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(60px, 12vw, 140px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-black);
    -webkit-text-stroke: 4px var(--primary-yellow);
    text-shadow: 3px 3px 0px var(--ink-black), 6px 6px 0px rgba(255, 215, 0, 0.4);
    transform: translateY(-100vh);
    animation: heroSlam 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 800ms forwards;
}

@keyframes heroSlam {
    to { transform: translateY(0); }
}

.hero-subtitle {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(18px, 3vw, 36px);
    color: var(--hero-red);
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleFade 500ms ease-out 1500ms forwards;
    margin-top: 16px;
}

@keyframes subtitleFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- NAVIGATION --- */
#main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--rival-blue);
    border-bottom: 4px solid var(--ink-black);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}

.nav-logo {
    font-family: 'Bangers', cursive;
    font-size: 28px;
    color: var(--primary-yellow);
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 0px var(--ink-black);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-family: 'Bangers', cursive;
    font-size: 18px;
    color: var(--paper-white);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 200ms ease, transform 200ms ease;
}

.nav-links a:hover {
    color: var(--primary-yellow);
    transform: scale(1.1);
}

/* --- SECTION TITLES --- */
.section-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(32px, 6vw, 80px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 3px 3px 0px var(--ink-black);
    color: var(--ink-black);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.content-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- COMIC PANELS - Core System --- */
.comic-panel {
    position: relative;
    background-color: var(--paper-white);
    border: 4px solid var(--ink-black);
    overflow: hidden;
    transition: transform 300ms ease;
}

.comic-panel:hover .panel-halftone {
    background-image: radial-gradient(circle, var(--halftone-pink) 5px, transparent 5px);
    opacity: 0.15;
}

.panel-halftone {
    background-image: radial-gradient(circle, var(--halftone-pink) 3px, transparent 3px);
    background-size: 8px 8px;
    opacity: 0.08;
    transition: opacity 300ms ease, background-image 300ms ease;
}

/* Panel Border Draw Animation */
.panel-border-draw {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Splash Panel */
.splash-panel {
    width: 100%;
    min-height: 80vh;
}

/* Action Panels */
.action-panel {
    min-height: 300px;
}

.tilt-right {
    transform: rotate(1.5deg);
}

.tilt-left {
    transform: rotate(-1.5deg);
}

.action-panel:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 10;
}

/* Bleed Panel */
.bleed-panel {
    width: calc(100% + 5vw);
    margin-left: -2.5vw;
    min-height: 400px;
}

/* Small Panels */
.small-panel {
    width: 100%;
    min-height: 180px;
}

/* Panel Content */
.panel-content {
    position: relative;
    z-index: 5;
    padding: 24px;
}

.panel-heading {
    font-family: 'Bangers', cursive;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 0px var(--ink-black);
    color: var(--ink-black);
    margin-bottom: 20px;
    text-align: center;
}

/* --- Scroll Animation States --- */
.panel-scroll {
    opacity: 0;
    transition: opacity 200ms ease 400ms;
}

.panel-scroll[data-direction="left"] {
    transform: translateX(-40vw);
}

.panel-scroll[data-direction="right"] {
    transform: translateX(40vw);
}

.panel-scroll.panel-visible {
    opacity: 1;
    animation: panelSlam 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.panel-scroll.panel-visible[data-direction="left"] {
    animation-name: panelSlamLeft;
}

.panel-scroll.panel-visible[data-direction="right"] {
    animation-name: panelSlamRight;
}

/* Preserve tilts after animation */
.panel-scroll.panel-visible.tilt-right {
    animation-name: panelSlamRightTilt;
}

.panel-scroll.panel-visible.tilt-left[data-direction="left"] {
    animation-name: panelSlamLeftTilt;
}

.panel-scroll.panel-visible.tilt-right[data-direction="right"] {
    animation-name: panelSlamRightTiltFromRight;
}

.panel-scroll.panel-visible.tilt-left[data-direction="right"] {
    animation-name: panelSlamLeftTiltFromRight;
}

@keyframes panelSlamLeft {
    0% { transform: translateX(-40vw); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

@keyframes panelSlamRight {
    0% { transform: translateX(40vw); }
    80% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

@keyframes panelSlamLeftTilt {
    0% { transform: translateX(-40vw) rotate(-1.5deg); }
    80% { transform: translateX(10px) rotate(-1.5deg); }
    100% { transform: translateX(0) rotate(-1.5deg); }
}

@keyframes panelSlamRightTilt {
    0% { transform: translateX(-40vw) rotate(1.5deg); }
    80% { transform: translateX(10px) rotate(1.5deg); }
    100% { transform: translateX(0) rotate(1.5deg); }
}

@keyframes panelSlamRightTiltFromRight {
    0% { transform: translateX(40vw) rotate(1.5deg); }
    80% { transform: translateX(-10px) rotate(1.5deg); }
    100% { transform: translateX(0) rotate(1.5deg); }
}

@keyframes panelSlamLeftTiltFromRight {
    0% { transform: translateX(40vw) rotate(-1.5deg); }
    80% { transform: translateX(-10px) rotate(-1.5deg); }
    100% { transform: translateX(0) rotate(-1.5deg); }
}

/* --- PANEL GRID LAYOUTS --- */
.panel-grid {
    display: grid;
    gap: 12px;
    background-image: radial-gradient(circle, var(--gutter-dots) 2px, transparent 2px);
    background-size: 6px 6px;
    background-color: var(--gutter-bg);
    padding: 12px;
    border: 4px solid var(--ink-black);
    border-radius: 2px;
}

/* Arena Grid - Single featured panel */
#arena .panel-grid {
    grid-template-columns: 1fr;
}

/* Battles Grid - 2x2 */
.battles-grid {
    grid-template-columns: 1fr 1fr;
}

/* Leaderboard Grid */
.leaderboard-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

/* --- CONFRONTATION LAYOUT --- */
.confrontation {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.challenger-side,
.defender-side {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Avatar Insets */
.avatar-inset {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.avatar-inset svg {
    width: 100%;
    height: 100%;
}

/* VS Badge */
.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--ink-black);
    border-radius: 50%;
    border: 3px solid var(--primary-yellow);
    flex-shrink: 0;
    animation: vsPulse 600ms ease-in-out infinite alternate;
    align-self: center;
}

.vs-text {
    font-family: 'Bangers', cursive;
    font-size: 32px;
    color: var(--primary-yellow);
    letter-spacing: 0.04em;
}

@keyframes vsPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* --- SPEECH BUBBLES --- */
.speech-bubble {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.bubble-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bubble-text {
    position: relative;
    z-index: 1;
    padding: 20px 24px;
}

.speech-bubble:hover {
    animation: bubbleWobble 200ms ease-in-out;
}

@keyframes bubbleWobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

.debater-name {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(14px, 1.5vw, 20px);
    display: block;
    margin-bottom: 6px;
}

.challenger-name {
    color: var(--hero-red);
}

.defender-name {
    color: var(--rival-blue);
    text-align: right;
}

.argument-text {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.5;
    color: var(--ink-black);
}

/* --- VOTE BUTTONS --- */
.vote-area {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.vote-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: none;
    border: 3px solid var(--ink-black);
    cursor: pointer;
    transition: transform 200ms ease;
    font-family: 'Bangers', cursive;
    background-color: var(--paper-white);
}

.vote-btn:hover {
    transform: scale(1.08);
}

.vote-btn:active {
    transform: scale(0.95);
}

.vote-burst {
    width: 50px;
    height: 50px;
    transition: transform 200ms ease;
}

.vote-btn:hover .vote-burst {
    transform: scale(1.3);
}

.vote-burst svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.vote-label {
    font-size: 16px;
    letter-spacing: 0.04em;
    color: var(--ink-black);
}

.vote-challenger .vote-label {
    color: var(--hero-red);
}

.vote-defender .vote-label {
    color: var(--rival-blue);
}

.vote-count {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink-black);
}

/* --- BATTLE CARDS --- */
.battle-card {
    text-align: center;
}

.battle-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 0px var(--ink-black);
    color: var(--ink-black);
    margin-bottom: 8px;
}

.battle-question {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--ink-black);
}

.battle-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
}

.stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.3;
}

.stat-burst svg {
    width: 100%;
    height: 100%;
}

.stat-value {
    font-family: 'Bangers', cursive;
    font-size: 28px;
    color: var(--ink-black);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-black);
    position: relative;
    z-index: 1;
}

.battle-sides {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.side-tag {
    font-family: 'Bangers', cursive;
    font-size: 14px;
    letter-spacing: 0.04em;
    padding: 4px 16px;
    border: 2px solid var(--ink-black);
}

.challenger-tag {
    background-color: var(--hero-red);
    color: var(--paper-white);
}

.defender-tag {
    background-color: var(--rival-blue);
    color: var(--paper-white);
}

/* --- FEATURED THREAD --- */
.thread-layout {
    max-width: 900px;
    margin: 0 auto;
}

.thread-topic {
    font-family: 'Bangers', cursive;
    font-size: clamp(26px, 4vw, 52px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 0px var(--ink-black);
    color: var(--ink-black);
    text-align: center;
    margin-bottom: 30px;
}

.thread-exchange {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.thread-bubble {
    max-width: 75%;
}

.thread-bubble-left {
    align-self: flex-start;
}

.thread-bubble-right {
    align-self: flex-end;
}

.thread-argument {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.5;
    color: var(--ink-black);
}

/* --- LEADERBOARD --- */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 2px solid var(--ink-black);
    background-color: var(--paper-white);
    position: relative;
    transition: transform 200ms ease;
}

.lb-entry:hover {
    transform: translateX(8px);
}

.lb-gold {
    border-color: var(--primary-yellow);
    border-width: 3px;
}

.lb-rank {
    font-family: 'Bangers', cursive;
    font-size: 28px;
    color: var(--ink-black);
    width: 36px;
    text-align: center;
}

.lb-gold .lb-rank {
    color: var(--primary-yellow);
    text-shadow: 1px 1px 0px var(--ink-black);
}

.lb-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.lb-avatar svg {
    width: 100%;
    height: 100%;
}

.lb-name {
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    flex-grow: 1;
}

.lb-wins {
    font-family: 'Bangers', cursive;
    font-size: 18px;
    color: var(--hero-red);
    white-space: nowrap;
}

.lb-burst {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    opacity: 0.6;
}

.lb-burst svg {
    width: 100%;
    height: 100%;
}

/* --- RECENT KNOCKOUTS --- */
.recent-cluster {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cluster-heading {
    color: var(--ink-black);
    text-align: center;
}

.small-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ko-card {
    text-align: center;
    padding: 12px;
}

.ko-badge {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
}

.ko-badge svg {
    width: 100%;
    height: 100%;
}

.ko-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bangers', cursive;
    font-size: 14px;
    color: var(--ink-black);
}

.ko-topic {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 16px;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.ko-winner {
    display: block;
    font-family: 'Permanent Marker', cursive;
    font-size: 12px;
    color: var(--ko-green);
}

/* --- JOIN CTA SECTION --- */
.join-panel {
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.join-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(200px, 35vw, 450px);
    height: clamp(200px, 35vw, 450px);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.5;
}

.join-burst svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
}

.join-speed-lines {
    opacity: 0.2;
}

.join-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-black);
    text-shadow: 3px 3px 0px var(--primary-yellow), 6px 6px 0px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
}

.join-subtitle {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(16px, 2.5vw, 28px);
    color: var(--hero-red);
    margin-bottom: 30px;
}

.join-btn {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--hero-red);
    color: var(--paper-white);
    border: 4px solid var(--ink-black);
    font-family: 'Bangers', cursive;
    font-size: clamp(20px, 3vw, 32px);
    letter-spacing: 0.04em;
    cursor: pointer;
    position: relative;
    transition: transform 200ms ease, background-color 200ms ease;
}

.join-btn:hover {
    transform: scale(1.08) rotate(-2deg);
    background-color: var(--primary-yellow);
    color: var(--ink-black);
}

.join-btn:active {
    transform: scale(0.95);
}

/* --- FOOTER --- */
#site-footer {
    background-color: var(--ink-black);
    border-top: 4px solid var(--primary-yellow);
    padding: 40px 24px;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Bangers', cursive;
    font-size: 36px;
    color: var(--primary-yellow);
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 0px var(--hero-red);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-family: 'Bangers', cursive;
    font-size: 16px;
    color: var(--paper-white);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 200ms ease;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-copy {
    font-family: 'Permanent Marker', cursive;
    font-size: 14px;
    color: var(--hero-red);
    opacity: 0.7;
}

/* --- IMPACT BURST CLICK ANIMATION --- */
.impact-burst.burst-clicked svg {
    animation: burstClick 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes burstClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- KIRBY CRACKLE BORDER --- */
.kirby-crackle-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
    border: 4px solid transparent;
    background: none;
    animation: cracklePulse 2s ease-in-out infinite alternate;
}

@keyframes cracklePulse {
    from { box-shadow: inset 0 0 8px rgba(0, 212, 255, 0.4), inset 0 0 16px rgba(255, 215, 0, 0.2); }
    to { box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.7), inset 0 0 24px rgba(255, 215, 0, 0.4); }
}

/* --- RESPONSIVE - Mobile --- */
@media (max-width: 768px) {
    .battles-grid {
        grid-template-columns: 1fr;
    }

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

    .small-panels {
        grid-template-columns: 1fr 1fr;
    }

    .tilt-right {
        transform: rotate(0.5deg);
    }

    .tilt-left {
        transform: rotate(-0.5deg);
    }

    .confrontation {
        flex-direction: column;
        align-items: center;
    }

    .vs-badge {
        order: 0;
    }

    .challenger-side,
    .defender-side {
        min-width: unset;
        width: 100%;
    }

    .thread-bubble {
        max-width: 95%;
    }

    .bleed-panel {
        width: 100%;
        margin-left: 0;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .ono-text {
        font-size: clamp(80px, 12vw, 120px);
    }

    /* Reduce panel overlap on mobile */
    .panel-scroll.panel-visible[data-direction="left"],
    .panel-scroll.panel-visible[data-direction="right"] {
        animation-duration: 250ms;
    }
}

@media (max-width: 480px) {
    .small-panels {
        grid-template-columns: 1fr;
    }

    .vote-area {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        gap: 10px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .panel-scroll {
        opacity: 1;
        transform: none !important;
    }

    .hero-title {
        transform: none;
    }

    .hero-subtitle {
        opacity: 1;
        transform: none;
    }

    .hero-burst {
        transform: translate(-50%, -50%) scale(1);
    }

    .speed-lines-container {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    .halftone-overlay {
        opacity: 0.15;
    }

    .hero-border-rect {
        stroke-dashoffset: 0;
    }
}
