:root {
    --frog-green: #32CD32;
    --gold: #FFD700;
    --dark: #1a1a1a;
}

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

body {
    background: linear-gradient(to bottom, #0f4c3a, #1a5f3a);
    font-family: "Comic Sans MS", cursive;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* background video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    opacity: 0.5;
    pointer-events: none;
}

/* image overlay */
.jungle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://images.unsplash.com/photo-1502086223501-1f1f3e1d8a7f?q=80&w=1974") center/cover no-repeat;
    opacity: 0.3;
    z-index: -2;
}

.fog {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(transparent, #0f4c3a);
    opacity: 0.7;
    z-index: -1;
}

/* navbar */
.navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.5);
    z-index: 1000;
}

.market-cap {
    font-size: 1.3rem;
    color: var(--gold);
    text-shadow: 0 0 20px yellow, 0 0 35px orange;
    animation: pulse 2s infinite;
    font-weight: bold;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.nav-link {
    color: limegreen !important;
    font-weight: bold;
    transition: 0.3s;
}

/* hide road canvas on mobile */
#roadCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

/* scene mobile */
.scene {
    position: relative;
    min-height: 60vh;
    overflow: visible;
    display: none;
    margin-top: 110px;
}

.scene.active {
    display: block;
}

/* sign column, with 20px bottom gap before hero text */
.sign-row {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 4;
    margin-top: 20px;
    margin-bottom: 20px;
}

.sign {
    width: 210px;
    height: 110px;
    background: #fff;
    color: #00008B;
    border: 7px solid var(--gold);
    border-radius: 20px;
    text-align: center;
    padding: 12px;
    box-shadow: 0 0 30px yellow;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sign .range {
    font-size: 20px;
    color: #006400;
    margin: 4px 0;
}

.sign .target {
    font-size: 14px;
    color: #8B0000;
    font-style: italic;
}

/* frog mobile: JS sets left & top (no centering here) */
.frog {
    position: absolute;
    width: 80px;
    height: 75px;
    background: var(--frog-green);
    border-radius: 50% 50% 40% 40%;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    z-index: 5;
    cursor: pointer;
}

.eye {
    position: absolute;
    top: 16px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
}

.eye.left {
    left: 14px;
}

.eye.right {
    right: 14px;
}

.pupil {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 9px;
    height: 9px;
    background: #000;
    border-radius: 50%;
}

.mouth {
    position: absolute;
    bottom: 16px;
    left: 20px;
    width: 40px;
    height: 16px;
    border-bottom: 5px solid darkgreen;
    border-radius: 50%;
}

/* speech bubble */
.speech-bubble {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #006400;
    padding: 10px 16px;
    border-radius: 24px;
    font-weight: bold;
    font-size: 1rem;
    opacity: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
    z-index: 6;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.9);
}

/* hero block */
.hero-block {
    padding-bottom: 2rem;
}

/* pages */
.page {
    display: none;
    padding: 1.5rem 1rem;
    margin-top: 110px;
}

.page.active {
    display: block;
}

/* vesting */
.vesting-table th,
.vesting-table td {
    border: 2px solid var(--gold);
    padding: 10px;
    text-align: center;
}

.vesting-table th {
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold);
}

.vesting-table td {
    background: rgba(0, 0, 0, 0.5);
}

/* footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 0.8rem 0;
    z-index: 1000;
    font-size: 0.8rem;
}