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

:root {
    --pill-green: #3CB371;
    --pill-dark: #2D8B5E;
    --pill-light: #5CDB95;
    --pill-bg: rgba(60, 179, 113, 0.08);
    --pill-border: rgba(60, 179, 113, 0.25);
    --pill-glow: rgba(60, 179, 113, 0.3);

    --bat-orange: #E8641E;
    --bat-dark: #C8520E;
    --bat-light: #FF7A33;
    --bat-bg: rgba(232, 100, 30, 0.08);
    --bat-border: rgba(232, 100, 30, 0.25);
    --bat-glow: rgba(232, 100, 30, 0.3);

    --text: #1a1a2e;
    --text-muted: rgba(26, 26, 46, 0.5);
}

body {
    background: linear-gradient(
        90deg,
        #e8f5e9 0%,
        #f1f8f2 15%,
        #ffffff 40%,
        #ffffff 60%,
        #fff3e8 85%,
        #fde8d8 100%
    );
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Floating Background Sprites ─── */
.floaters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floater {
    position: absolute;
    bottom: -120px;
    will-change: transform;
    opacity: 0.12;
}

.floater-pill {
    filter: hue-shift(0deg) drop-shadow(0 0 6px var(--pill-glow));
}

.floater-bat {
    filter: drop-shadow(0 0 6px var(--bat-glow));
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30vh) translateX(20px) rotate(15deg);
    }
    50% {
        transform: translateY(-60vh) translateX(-15px) rotate(-10deg);
    }
    75% {
        transform: translateY(-90vh) translateX(18px) rotate(20deg);
    }
    100% {
        transform: translateY(-120vh) translateX(0) rotate(0deg);
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(30vh) translateX(-18px) rotate(-12deg);
    }
    50% {
        transform: translateY(60vh) translateX(12px) rotate(8deg);
    }
    75% {
        transform: translateY(90vh) translateX(-20px) rotate(-15deg);
    }
    100% {
        transform: translateY(120vh) translateX(0) rotate(0deg);
    }
}

/* ─── Main 3-Column Layout ─── */
main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    gap: 32px;
    align-items: center;
}

/* ─── Side Panels (PILL / BAT) ─── */
.side {
    display: flex;
    justify-content: center;
}

.side-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 320px;
}

.side-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    animation: logoHover 3s ease-in-out infinite;
}

.side-pill .side-img {
    border-color: var(--pill-light);
    box-shadow:
        0 8px 24px rgba(60, 179, 113, 0.25),
        0 0 20px rgba(60, 179, 113, 0.2),
        0 0 40px rgba(60, 179, 113, 0.1),
        0 0 0 6px rgba(60, 179, 113, 0.1);
    animation: logoHover 3s ease-in-out infinite, glowPill 2s ease-in-out infinite alternate;
}

.side-bat .side-img {
    border-color: var(--bat-light);
    box-shadow:
        0 8px 24px rgba(232, 100, 30, 0.25),
        0 0 20px rgba(232, 100, 30, 0.2),
        0 0 40px rgba(232, 100, 30, 0.1),
        0 0 0 6px rgba(232, 100, 30, 0.1);
    animation: logoHover 3s ease-in-out infinite, glowBat 2s ease-in-out infinite alternate;
}

.side-img:hover {
    transform: scale(1.08) rotate(-2deg) translateY(-4px);
}

.side-bat .side-img:hover {
    transform: scale(1.08) rotate(2deg) translateY(-4px);
}

@keyframes logoHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glowPill {
    0% {
        box-shadow:
            0 8px 24px rgba(60, 179, 113, 0.2),
            0 0 20px rgba(60, 179, 113, 0.15),
            0 0 40px rgba(60, 179, 113, 0.08),
            0 0 0 6px rgba(60, 179, 113, 0.08);
    }
    100% {
        box-shadow:
            0 8px 32px rgba(60, 179, 113, 0.35),
            0 0 30px rgba(60, 179, 113, 0.25),
            0 0 60px rgba(60, 179, 113, 0.15),
            0 0 0 8px rgba(60, 179, 113, 0.12);
    }
}

@keyframes glowBat {
    0% {
        box-shadow:
            0 8px 24px rgba(232, 100, 30, 0.2),
            0 0 20px rgba(232, 100, 30, 0.15),
            0 0 40px rgba(232, 100, 30, 0.08),
            0 0 0 6px rgba(232, 100, 30, 0.08);
    }
    100% {
        box-shadow:
            0 8px 32px rgba(232, 100, 30, 0.35),
            0 0 30px rgba(232, 100, 30, 0.25),
            0 0 60px rgba(232, 100, 30, 0.15),
            0 0 0 8px rgba(232, 100, 30, 0.12);
    }
}

.side-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
}

.pill-name {
    background: linear-gradient(180deg, var(--pill-light), var(--pill-green), var(--pill-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px var(--pill-glow));
}

.bat-name {
    background: linear-gradient(180deg, var(--bat-light), var(--bat-orange), var(--bat-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px var(--bat-glow));
}

/* ─── Platform Badges ─── */
.platform-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
}

.pill-badge {
    background: var(--pill-bg);
    color: var(--pill-dark);
    border: 1px solid var(--pill-border);
}

.bat-badge {
    background: var(--bat-bg);
    color: var(--bat-dark);
    border: 1px solid var(--bat-border);
}

/* ─── CA Boxes ─── */
.ca-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, monospace;
    color: var(--text);
    position: relative;
    width: 100%;
    max-width: 280px;
}

.pill-ca {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
}

.pill-ca:hover {
    border-color: var(--pill-green);
    box-shadow: 0 0 0 3px var(--pill-glow), 0 4px 12px rgba(60, 179, 113, 0.15);
    transform: translateY(-1px);
}

.bat-ca {
    background: var(--bat-bg);
    border: 1px solid var(--bat-border);
}

.bat-ca:hover {
    border-color: var(--bat-orange);
    box-shadow: 0 0 0 3px var(--bat-glow), 0 4px 12px rgba(232, 100, 30, 0.15);
    transform: translateY(-1px);
}

.ca-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.ca-address {
    font-size: 11px;
    letter-spacing: 0.03em;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.copy-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.copied-toast {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ca-box.copied .copied-toast { opacity: 1; }

/* ─── Buy Buttons ─── */
.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.pill-buy {
    background: linear-gradient(135deg, var(--pill-green), var(--pill-dark));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(60, 179, 113, 0.3), 0 0 0 1px rgba(60, 179, 113, 0.2);
}

.pill-buy:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(60, 179, 113, 0.4), 0 0 20px rgba(60, 179, 113, 0.2);
    background: linear-gradient(135deg, var(--pill-light), var(--pill-green));
}

.pill-buy:active {
    transform: translateY(0) scale(0.98);
}

.bat-buy {
    background: linear-gradient(135deg, var(--bat-orange), var(--bat-dark));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(232, 100, 30, 0.3), 0 0 0 1px rgba(232, 100, 30, 0.2);
}

.bat-buy:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(232, 100, 30, 0.4), 0 0 20px rgba(232, 100, 30, 0.2);
    background: linear-gradient(135deg, var(--bat-light), var(--bat-orange));
}

.bat-buy:active {
    transform: translateY(0) scale(0.98);
}

/* ─── Side Trackers ─── */
.side-tracker {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
}

.side-pill .side-tracker {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    box-shadow: 0 4px 16px rgba(60, 179, 113, 0.08);
}

.side-bat .side-tracker {
    background: var(--bat-bg);
    border: 1px solid var(--bat-border);
    box-shadow: 0 4px 16px rgba(232, 100, 30, 0.08);
}

.tracker-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracker-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tracker-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.side-pill .tracker-value { color: var(--pill-green); }
.side-bat .tracker-value { color: var(--bat-orange); }

/* ─── Center Panel ─── */
.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.vs-banner {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        -12px 0 40px rgba(60, 179, 113, 0.15),
        12px 0 40px rgba(232, 100, 30, 0.15),
        0 0 60px rgba(0, 0, 0, 0.06);
    animation: bannerGlow 3s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.12),
            -12px 0 40px rgba(60, 179, 113, 0.12),
            12px 0 40px rgba(232, 100, 30, 0.12),
            0 0 40px rgba(0, 0, 0, 0.04);
    }
    100% {
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.15),
            -16px 0 60px rgba(60, 179, 113, 0.22),
            16px 0 60px rgba(232, 100, 30, 0.22),
            0 0 80px rgba(0, 0, 0, 0.06);
    }
}

.vs-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.04em;
    color: var(--text);
}

.vs-text {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
}

.vs-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: -12px;
}

/* ─── Tug-of-War Section ─── */
.tug-section {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
}

.tug-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tug-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.tug-label-center {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pill-color { color: var(--pill-green); }
.bat-color { color: var(--bat-orange); }

.tug-bar {
    width: 100%;
    height: 44px;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
}

.tug-fill-pill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--pill-dark), var(--pill-green), var(--pill-light));
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.tug-fill-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
    border-radius: 12px 0 0 0;
}

.tug-fill-bat {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--bat-light), var(--bat-orange), var(--bat-dark));
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.tug-fill-bat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

.tug-divider {
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.tug-pcts {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

/* ─── Winner Callout ─── */
.winner-callout {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    border-radius: 100px;
    animation: pulse 2s ease-in-out infinite;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.winner-callout.pill-winning {
    background: var(--pill-bg);
    color: var(--pill-green);
    border: 1px solid var(--pill-border);
    box-shadow: 0 0 20px var(--pill-glow);
}

.winner-callout.bat-winning {
    background: var(--bat-bg);
    color: var(--bat-orange);
    border: 1px solid var(--bat-border);
    box-shadow: 0 0 20px var(--bat-glow);
}

.winner-callout.tied {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ─── Socials ─── */
.socials {
    display: flex;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.social-button:hover {
    background: var(--text);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
    body {
        background: linear-gradient(
            180deg,
            #e8f5e9 0%,
            #ffffff 30%,
            #ffffff 70%,
            #fde8d8 100%
        );
    }

    main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 32px 16px;
        gap: 40px;
    }

    /* Reorder: center first, then pill, then bat */
    .center { order: -1; }
    .side-pill { order: 0; }
    .side-bat { order: 1; }

    .side-content {
        max-width: 100%;
    }

    .side-img {
        width: 140px;
        height: 140px;
    }

    .side-tracker {
        max-width: 100%;
    }

    .ca-box {
        max-width: 100%;
    }

    .ca-address {
        max-width: 200px;
    }

    .buy-btn {
        max-width: 100%;
    }

    .vs-banner {
        max-width: 100%;
    }

    .tug-section {
        max-width: 100%;
        padding: 16px;
    }

    .tug-label {
        font-size: 12px;
    }

    .tug-bar {
        height: 36px;
    }

    .tracker-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 24px 12px;
        gap: 32px;
    }

    .side-img {
        width: 120px;
        height: 120px;
    }

    .side-name {
        font-size: 28px;
    }

    .vs-title {
        font-size: 22px;
    }

    .tug-section {
        padding: 12px;
    }

    .tug-bar {
        height: 32px;
    }

    .winner-callout {
        font-size: 13px;
        padding: 8px 16px;
    }

    .social-button {
        padding: 10px 18px;
        font-size: 13px;
    }
}
