:root {
    --soil: #1a1208;
    --bark: #2c1a0e;
    --wheat: #c8960c;
    --wheat-light: #f0c040;
    --hay: #e8d5a0;
    --cream: #fdf6e3;
    --leaf: #4a7c3f;
    --leaf-dark: #2d4f28;
    --rust: #9b3a1a;
    --sky: #7bb3d3;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    background-color: var(--soil);
    color: var(--hay);
    font-family: 'Lora', serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.08'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    z-index: 10;
}

/* Sky / field background */
.scene-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Stars — controlled by JS */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
    overflow: hidden;
}

@keyframes starVisibility {
    0% {
        opacity: 1;
    }

    35% {
        opacity: 0;
    }

    65% {
        opacity: 0;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

/* Sun */
.sun {
    position: fixed;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff7a0 0%, #ffd700 40%, #ff8c00 100%);
    box-shadow: 0 0 40px 20px rgba(255, 200, 0, 0.5), 0 0 80px 40px rgba(255, 150, 0, 0.2);
    left: 60px;
    top: 110vh;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

/* Moon */
.moon {
    position: fixed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fffde7 0%, #e8e0c0 60%, #c8ba90 100%);
    box-shadow: 0 0 25px 10px rgba(220, 210, 150, 0.3), inset -8px -4px 0 rgba(180, 170, 120, 0.4);
    left: 65px;
    top: 12vh;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
}

/* Settings button */
.settings-btn {
    position: fixed;
    top: 76px;
    left: 24px;
    z-index: 1001;
    font-size: 1.4rem;
    background: linear-gradient(to bottom, #221408, #1a1008);
    border: 1px solid rgba(200, 150, 12, 0.35);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.settings-btn:hover {
    transform: scale(1.15) rotate(30deg);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

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

/* Settings panel */
.settings-panel {
    position: fixed;
    top: 76px;
    left: 82px;
    z-index: 1002;
    background: linear-gradient(to bottom, #221408, #1a1008);
    border: 1px solid rgba(200, 150, 12, 0.3);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    min-width: 240px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.settings-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.settings-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: #f0c040;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(200, 150, 12, 0.2);
    padding-bottom: 8px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.settings-label {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #e8d5a0;
    white-space: nowrap;
}

/* Toggle button */
.toggle-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    padding: 5px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #3a2210;
    color: #888;
    transition: background 0.2s, color 0.2s;
}

.toggle-btn.active {
    background: linear-gradient(to bottom, #4a7c3f, #2d4f28);
    color: #a8f090;
    box-shadow: 0 2px 0 #1a3010;
}

/* Speed controls */
.speed-controls {
    display: flex;
    gap: 6px;
}

.speed-btn {
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(200, 150, 12, 0.2);
    background: #3a2210;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.speed-btn:hover {
    transform: scale(1.15);
}

.speed-btn.active {
    background: linear-gradient(to bottom, #6b4820, #4a2e10);
    border-color: #f0c040;
    box-shadow: 0 2px 0 #2a1408;
}

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

.color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.swatch:hover {
    transform: scale(1.2);
}

.swatch.active {
    border-color: #f0c040;
    transform: scale(1.2);
}

.custom-swatch {
    background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
    position: relative;
    overflow: hidden;
}

.custom-swatch input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: none;
    padding: 0;
}

/* Leaderboard button */
.leaderboard-btn {
    position: fixed;
    top: 134px;
    left: 24px;
    z-index: 1001;
    font-size: 1.4rem;
    background: linear-gradient(to bottom, #221408, #1a1008);
    border: 1px solid rgba(200, 150, 12, 0.35);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.leaderboard-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

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

/* Overlay */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1010;
}

/* Leaderboard panel */
.lb-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.92);
    z-index: 1011;
    background: linear-gradient(to bottom, #2a1a0a, #1a1008);
    border: 1px solid rgba(200, 150, 12, 0.35);
    border-radius: 10px;
    width: min(420px, 92vw);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lb-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(200, 150, 12, 0.2);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #f0c040;
}

.lb-close {
    background: none;
    border: none;
    color: #e8d5a0;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lb-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(200, 150, 12, 0.2);
}

.lb-tab {
    flex: 1;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    padding: 10px;
    background: none;
    border: none;
    color: #a08060;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.lb-tab:hover {
    color: #e8d5a0;
    background: rgba(255, 255, 255, 0.04);
}

.lb-tab.active {
    color: #f0c040;
    border-bottom: 2px solid #f0c040;
    background: rgba(200, 150, 12, 0.06);
}

.lb-subtitle {
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-style: italic;
    color: #a08060;
    text-align: center;
    padding: 8px 20px 0;
}

.lb-list {
    list-style: none;
    padding: 12px 20px;
    margin: 0;
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 150, 12, 0.12);
    border-radius: 6px;
}

.lb-entry.lb-you {
    background: rgba(200, 150, 12, 0.12);
    border-color: rgba(200, 150, 12, 0.35);
}

.lb-rank {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    font-family: 'Bebas Neue', sans-serif;
    color: #a08060;
}

.lb-name {
    flex: 1;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #e8d5a0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-you-tag {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    background: rgba(200, 150, 12, 0.3);
    color: #f0c040;
    padding: 1px 5px;
    border-radius: 3px;
}

.lb-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: #f0c040;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.lb-empty {
    font-family: 'Lora', serif;
    font-style: italic;
    color: #a08060;
    text-align: center;
    padding: 24px 0;
    font-size: 0.9rem;
}

.lb-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(200, 150, 12, 0.15);
    display: flex;
    justify-content: center;
}

.lb-clear {
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-style: italic;
    background: none;
    border: 1px solid rgba(200, 80, 80, 0.3);
    color: #c07060;
    border-radius: 4px;
    padding: 5px 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lb-clear:hover {
    background: rgba(200, 80, 80, 0.15);
    color: #ff9080;
}

/* Name prompt modal */
.name-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1012;
    background: linear-gradient(to bottom, #2a1a0a, #1a1008);
    border: 1px solid rgba(200, 150, 12, 0.35);
    border-radius: 10px;
    padding: 28px 28px 24px;
    width: min(360px, 90vw);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: counterPop 0.3s ease both;
}

.name-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    color: #f0c040;
    text-align: center;
}

.name-modal-sub {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: #a08060;
    text-align: center;
}

.name-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 150, 12, 0.35);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #fdf6e3;
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
    user-select: text;
    -webkit-user-select: text;
}

.name-input:focus {
    border-color: #f0c040;
}

.name-input::placeholder {
    color: #605040;
}

.name-submit {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    background: linear-gradient(to bottom, #6b4820, #4a2e10);
    color: #f0c040;
    border: 1px solid rgba(200, 150, 12, 0.4);
    border-radius: 6px;
    padding: 10px 28px;
    cursor: pointer;
    box-shadow: 0 3px 0 #2a1408;
    transition: transform 0.1s;
    width: 100%;
}

.name-submit:hover {
    transform: translateY(-2px);
}

.name-submit:active {
    transform: scale(0.97);
}

/* New high score banner */
.new-hs-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 1015;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 0.1em;
    color: #f0c040;
    text-shadow: 4px 4px 0 #9b3a1a, 0 0 40px rgba(240, 192, 64, 0.8);
    pointer-events: none;
    text-align: center;
    opacity: 0;
}

.new-hs-banner.hs-pop {
    animation: hsPop 3s ease forwards;
}

@keyframes hsPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

    25% {
        transform: translate(-50%, -50%) scale(1);
    }

    75% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.day-night-btn {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 1001;
    font-size: 1.5rem;
    background: linear-gradient(to bottom, #221408, #1a1008);
    border: 1px solid rgba(200, 150, 12, 0.35);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.day-night-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

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

/* Star twinkle */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.2;
        transform: scale(1);
    }

    to {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

/* Ground rows */
.ground {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
}

.ground-row {
    height: 20px;
    width: 100%;
}

.ground-row:nth-child(1) {
    background: #2d1a08;
}

.ground-row:nth-child(2) {
    background: #3a2210;
    height: 16px;
}

.ground-row:nth-child(3) {
    background: #4a2e14;
    height: 14px;
}

.ground-row:nth-child(4) {
    background: #5a3a1a;
    height: 12px;
}

.ground-row:nth-child(5) {
    background: #6a4622;
    height: 10px;
}

/* Fence */
.fence {
    position: fixed;
    bottom: 68px;
    left: 0;
    width: max-content;
    height: 55px;
    z-index: 3;
    display: flex;
    gap: 0;
    animation: scrollFence 20s linear infinite;
}

@keyframes scrollFence {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.fence-post {
    flex-shrink: 0;
    width: 14px;
    height: 55px;
    background: linear-gradient(to bottom, #8b5e2a, #6b4a20);
    border-radius: 2px 2px 0 0;
    position: relative;
}

.fence-post::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: #a07030;
    border-radius: 2px;
    z-index: 1;
}

.fence-rail {
    flex-shrink: 0;
    width: 56px;
    align-self: center;
    height: 8px;
    background: linear-gradient(to bottom, #a07030, #8b5e2a);
    margin-top: -16px;
    border-radius: 2px;
}

/* Crops */
.crop-row {
    position: fixed;
    bottom: 58px;
    left: 0;
    width: max-content;
    display: flex;
    gap: 0;
    z-index: 4;
    animation: scrollCrops 35s linear infinite;
    pointer-events: none;
    user-select: none;
}

@keyframes scrollCrops {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.crop {
    flex-shrink: 0;
    font-size: 28px;
    margin: 0 18px;
    animation: cropSway 2.5s ease-in-out infinite alternate;
    display: inline-block;
}

.crop:nth-child(2n) {
    animation-delay: -1s;
}

.crop:nth-child(3n) {
    animation-delay: -0.5s;
    font-size: 24px;
}

@keyframes cropSway {
    from {
        transform: rotate(-4deg) translateY(0px);
    }

    to {
        transform: rotate(4deg) translateY(-3px);
    }
}

/* Main content */
.wrapper {
    position: relative;
    z-index: 5;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 160px;
}

/* Title block */
.title-block {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeDown 0.8s ease both;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.eyebrow {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.3em;
    color: var(--wheat);
    border: 1px solid var(--wheat);
    padding: 4px 14px;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 14vw, 9rem);
    line-height: 0.88;
    color: var(--wheat-light);
    text-shadow:
        4px 4px 0 var(--rust),
        8px 8px 0 #5a1a08,
        0 0 60px rgba(200, 150, 12, 0.3);
    letter-spacing: 0.03em;
}

.title-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem auto;
    max-width: 420px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--wheat), transparent);
}

.divider-icon {
    font-size: 1.2rem;
}

/* Banner */
.banner-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s 0.2s ease both;
    box-shadow:
        0 0 0 3px var(--wheat),
        0 0 0 6px var(--bark),
        0 8px 40px rgba(0, 0, 0, 0.6);
}

@keyframes counterPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.banner-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(10, 6, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.banner-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Scroll card */
.scroll-card {
    background:
        radial-gradient(ellipse at top, rgba(200, 150, 12, 0.08) 0%, transparent 70%),
        linear-gradient(to bottom, #221408, #1a1008);
    border: 1px solid rgba(200, 150, 12, 0.25);
    border-radius: 6px;
    padding: 2rem 2.5rem;
    position: relative;
    animation: fadeUp 0.8s 0.4s ease both;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(200, 150, 12, 0.15);
}

.scroll-card::before,
.scroll-card::after {
    content: '🌾';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.4;
}

.scroll-card::before {
    top: 14px;
    left: 16px;
}

.scroll-card::after {
    bottom: 14px;
    right: 16px;
    transform: scaleX(-1);
}

.card-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--wheat);
    opacity: 0.6;
    text-align: center;
    margin-bottom: 1rem;
}

.story-text {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.9;
    color: var(--cream);
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

.story-text em {
    color: var(--wheat-light);
    font-style: normal;
    font-weight: 600;
}

/* Buttons */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    animation: fadeUp 0.8s 0.6s ease both;
}

.btn {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.12em;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    text-transform: uppercase;
    color: white;
    display: inline-block;
    text-decoration: none;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: scale(0.97);
}

.btn-game {
    background: linear-gradient(to bottom, #4a9c3f, #2d6028);
    box-shadow: 0 3px 0 #1a4010, 0 4px 12px rgba(74, 156, 63, 0.4);
}

.btn-credits {
    background: linear-gradient(to bottom, #5aa0f0, #3a7abd);
    box-shadow: 0 3px 0 #2a5a8d, 0 4px 12px rgba(58, 122, 189, 0.4);
}

.btn-devlogs {
    background: linear-gradient(to bottom, #8a5fe8, #5a35b0);
    box-shadow: 0 3px 0 #3a2080, 0 4px 12px rgba(90, 53, 176, 0.4);
}

.btn-info {
    background: linear-gradient(to bottom, #e060f8, #b020d8);
    box-shadow: 0 3px 0 #800098, 0 4px 12px rgba(176, 32, 216, 0.4);
}

/* Floating emojis */
.floaters {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 998;
    overflow: hidden;
}

.floater {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0;
    pointer-events: all;
    user-select: none;
    animation: floatUp 8s ease-in infinite;
}

.floater.sliced {
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }

    10% {
        opacity: 0.85;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-80vh) rotate(20deg);
    }
}