:root {
    --sky: #9ed9ff;
    --sun: #ffd56b;
    --road: #2f3a44;
    --road-line: #f7d86a;
    --brand-yellow: #ffd54f;
    --brand-blue: #57b6ff;
    --brand-orange: #ff9f43;
    --mint: #5ad58a;
    --navy: #1f2a2e;
    --cream: #fff7da;
    --white: #ffffff;
    --shadow: 0 12px 24px rgba(0,0,0,0.18);
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.16);
    --glass: rgba(255,255,255,0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Comic Sans MS", "Trebuchet MS", "Chalkboard SE", sans-serif;
    background: linear-gradient(180deg, #c8edff 0%, #f7f6ef 100%);
}

button {
    font-family: inherit;
    cursor: pointer;
}

#app {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

@supports (height: 100dvh) {
    #app {
        height: 100dvh;
    }
}

.global-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #c8edff 0%, #f7f6ef 100%);
    background-image: none !important;
    background-position: center;
    background-size: cover;
    z-index: 0;
}

.global-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 70%);
    z-index: -1;
}

.global-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(255,255,255,0.35), transparent 55%),
        radial-gradient(circle at 78% 12%, rgba(255,255,255,0.28), transparent 55%);
    opacity: 0.3;
    z-index: -1;
}

.global-bg {
    animation: bgDrift 28s ease-in-out infinite;
    transform-origin: center;
}

.bg-animations {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

@keyframes bgDrift {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.03) translateY(-1%); }
}

.bg-sun {
    position: absolute;
    top: 6vh;
    right: 8vw;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ffe79a 0%, #ffd54f 60%, rgba(255,213,79,0.2) 100%);
    border-radius: 50%;
    filter: drop-shadow(0 10px 14px rgba(255,214,120,0.5));
    animation: sunPulse 6s ease-in-out infinite;
    z-index: 1;
}

.bg-cloud {
    position: absolute;
    width: 160px;
    height: 70px;
    background: rgba(255,255,255,0.8);
    border-radius: 60px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.08));
    animation: cloudDrift 18s linear infinite;
    z-index: 1;
}

.bg-cloud::before,
.bg-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
}

.bg-cloud::before {
    width: 70px;
    height: 70px;
    top: -20px;
    left: 20px;
}

.bg-cloud::after {
    width: 90px;
    height: 90px;
    top: -30px;
    right: 15px;
}

.bg-cloud.cloud-1 { top: 12vh; left: -20vw; animation-duration: 26s; }
.bg-cloud.cloud-2 { top: 22vh; left: -30vw; animation-duration: 30s; animation-delay: -6s; }
.bg-cloud.cloud-3 { top: 8vh; left: -40vw; animation-duration: 34s; animation-delay: -12s; }
.bg-cloud.cloud-4 { top: 30vh; left: -35vw; animation-duration: 28s; animation-delay: -18s; }

.bg-float {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.05) 70%, transparent 100%);
    opacity: 0.35;
    animation: floatDrift 16s ease-in-out infinite;
    z-index: 1;
}

.bg-float.float-1 { top: 12vh; left: 12vw; animation-delay: -2s; }
.bg-float.float-2 { top: 38vh; left: 8vw; animation-delay: -6s; }
.bg-float.float-3 { top: 50vh; right: 10vw; animation-delay: -10s; }
.bg-float.float-4 { top: 22vh; right: 20vw; animation-delay: -4s; }
.bg-float.float-5 { top: 62vh; left: 24vw; animation-delay: -12s; }

@keyframes cloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(160vw); }
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes floatDrift {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-14px) translateX(10px); }
}

.screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)) 16px;
    z-index: 2;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen.is-active { display: flex; }

.screen-header {
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.title-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.title-lockup .title-logo {
    display: none;
}

.title-lockup::before {
    content: "Trash Truck";
    font-size: 32px;
    font-weight: 900;
    color: #0c2f4b;
    text-shadow: 0 2px 0 rgba(255,255,255,0.85);
}

.title-lockup::after {
    content: "Tap-Tap";
    display: inline-block;
    margin-top: 2px;
    padding: 8px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffb347 0%, #ff9240 100%);
    color: #3a1c00;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 16px rgba(0,0,0,0.12), inset 0 4px 8px rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.08);
}

.screen[data-screen="home"] .screen-header {
    justify-content: center;
}

.screen[data-screen="home"] {
    align-items: center;
    gap: 12px;
    padding-top: calc(18px + env(safe-area-inset-top));
}

.header-text h2 { font-size: 28px; color: var(--navy); }
.header-text p { color: #3d4b50; }

.title-logo {
    width: min(300px, 78vw);
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

.title-sub {
    margin-top: 6px;
    color: #243338;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 0 rgba(255,255,255,0.6);
}

.home-hero {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-mascot {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.18));
}

.hero-badge {
    background: rgba(255,255,255,0.78);
    padding: 6px 14px;
    border-radius: 14px;
    border: 2px solid rgba(31,42,46,0.12);
    font-weight: 800;
    color: #0c2f4b;
    backdrop-filter: blur(6px);
}

.home-actions {
    margin-top: 20px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: min(340px, 90vw);
    z-index: 2;
}

.btn-big {
    width: 100%;
    height: 64px;
    border-radius: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    background: linear-gradient(120deg, #6ef3a9 0%, #36d873 55%, #27b45f 100%);
    color: #0f3c21;
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(0,0,0,0.14), inset 0 4px 10px rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.btn-outline {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: 2px solid rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #7dd3ff 0%, #4ba7ff 100%);
    color: #0c2f4b;
    font-size: 17px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 16px rgba(0,0,0,0.14), inset 0 4px 10px rgba(255,255,255,0.35);
}

.btn-outline.settings::before {
    background: none;
}

.btn-outline.settings {
    background: linear-gradient(135deg, #ffc978 0%, #ff9f43 100%);
    color: #4a2500;
    box-shadow: 0 10px 16px rgba(0,0,0,0.14), inset 0 4px 10px rgba(255,255,255,0.38);
}

.btn-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    transition: transform 0.12s ease;
}

.btn-pill {
    min-width: 200px;
    height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    border: 2px solid rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #ffd27f 0%, #ffb74a 100%);
    color: #3a2504;
    font-weight: 800;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 14px rgba(0,0,0,0.12), inset 0 4px 10px rgba(255,255,255,0.42);
}

.btn-icon img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
}

.btn-big,
.btn-outline,
.btn-pill,
.btn-icon {
    transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-big:active,
.btn-outline:active,
.btn-pill:active,
.btn-icon:active {
    transform: scale(0.96);
}

.btn-reward {
    box-shadow: var(--shadow-soft);
}

.modes-grid {
    margin-top: 20px;
    width: min(960px, 94vw);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    z-index: 2;
}

.mode-card {
    background: transparent;
    border-radius: 20px;
    border: none;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    animation: float 7s ease-in-out infinite;
}

.mode-card:active { transform: scale(0.98); }

.mode-icon {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: transparent;
    display: grid;
    place-items: center;
    box-shadow: none;
}

.mode-icon img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,0.2));
    animation: iconBob 5s ease-in-out infinite;
}

@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.mode-text {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 14px;
    padding: 6px 10px;
    width: fit-content;
    max-width: 100%;
    min-width: 140px;
    min-height: 48px;
}

.mode-text h3 {
    font-size: 17px;
    color: var(--navy);
}

.mode-text p {
    font-size: 13px;
    color: #2b3940;
}

.mode-text h3,
.mode-text p {
    text-align: center;
}

.mode-sparkle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6a8 0%, #f7d86a 40%, rgba(247,216,106,0) 70%);
    pointer-events: none;
    animation: sparklePop 0.8s ease-out forwards;
}

@keyframes sparklePop {
    0% { transform: scale(0.4); opacity: 0.9; }
    100% { transform: translateY(-30px) scale(1.2); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.game-screen {
    background: transparent;
    --road-bottom: 16vh;
    justify-content: flex-start;
}

.game-screen .game-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prompt-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 12px;
    z-index: 3;
}

.prompt-pill {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fb 100%);
    border-radius: 16px;
    border: 1px solid rgba(12,47,75,0.08);
    padding: 12px 18px;
    font-size: 22px;
    font-weight: 800;
    color: #0c2f4b;
    box-shadow: 0 10px 18px rgba(0,0,0,0.1);
    backdrop-filter: blur(6px);
}

.game-area {
    margin-top: 20px;
    width: min(960px, 96vw);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 24px 12px;
    z-index: 3;
    position: relative;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.game-area::before {
    content: none;
}

.game-area::after {
    content: none;
}

.game-area > * {
    position: relative;
    z-index: 3;
}

.game-card {
    width: min(170px, 42vw);
    aspect-ratio: 1;
    border-radius: 20px;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform 0.15s ease;
}

.game-card:active { transform: scale(0.97); }

.game-card img {
    width: 80%;
    height: auto;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2));
}

.game-card.truck-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.game-card.truck-card img {
    width: 180px;
    min-width: 120px;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2));
}

.road-lane {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    z-index: 10;
}

.road-truck {
    position: relative;
}

.road-lane.backdrop {
    pointer-events: none;
}

.road-truck.deco img {
    width: 120px;
    opacity: 0.95;
}

.road-truck.drive {
    animation: truckBounce 2s ease-in-out infinite;
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.press-pop {
    animation: pressPop 0.18s ease-out;
}

@keyframes pressPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

.wiggle {
    animation: wiggle 0.4s ease-in-out;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

.celebrate {
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-8px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.game-card.hint {
    animation: pulse 0.6s ease-in-out infinite;
}

.game-card.hint img {
    filter: drop-shadow(0 0 12px rgba(255, 214, 120, 0.8)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.route-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    justify-content: center;
}

.route-stop {
    width: 90px;
    height: 90px;
    border: none;
    background: transparent;
    position: relative;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
}

.route-stop img {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2));
}

.route-stop span {
    position: absolute;
    color: #1f2a2e;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.7);
}

.route-stop.done span { color: #0f5132; }

.wash-card {
    width: min(320px, 82vw);
    height: min(220px, 50vw);
    border-radius: 24px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
}

.wash-card img {
    width: 70%;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2));
}

.fix-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.fix-slots { display: flex; gap: 10px; }

.fix-slot {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
}

.fix-slot.filled {
    background: transparent;
}

.fix-tray { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.fix-part {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    transition: transform 0.12s ease;
}

.fix-part img { width: 60%; }

.fix-part.dragging { transform: scale(1.08); }

.drag-stage {
    position: relative;
    width: min(520px, 90vw);
    height: 200px;
}

.drag-stage .road-lane {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
}

.drag-bin,
.drag-truck {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    touch-action: none;
}

.drag-bin img,
.drag-truck img {
    width: 70%;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2));
}

.drag-bin.dragging { opacity: 0.8; box-shadow: var(--shadow-soft); }

.game-area .big-target {
    width: min(320px, 80vw);
    height: 120px;
    border-radius: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: 800;
    color: #0f3c21;
    position: relative;
    z-index: 1;
}

.star-counter {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid rgba(12,47,75,0.08);
    box-shadow: 0 8px 14px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.star-counter img { width: 28px; height: 28px; }

#star-count { font-weight: 800; font-size: 22px; }

.truckdex-grid {
    margin-top: 20px;
    width: min(960px, 94vw);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.truckdex-card {
    border-radius: 20px;
    border: none;
    background: transparent;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 200px;
    box-shadow: none;
    position: relative;
}

.truckdex-card img { width: 80%; height: auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2)); }

.truckdex-card .silhouette { filter: grayscale(1) brightness(0.2); }

.truckdex-label { font-weight: 700; color: var(--navy); }

.truckdex-meter { color: #3b4a4f; font-size: 14px; }

.truckdex-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.2));
}

.settings-panel {
    margin-top: 20px;
    width: min(520px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(31,42,46,0.2);
    backdrop-filter: blur(8px);
}

.toggle {
    min-width: 80px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid rgba(31,42,46,0.3);
    background: #fff;
    font-weight: 700;
}

.tier-select { display: flex; gap: 8px; }

.tier {
    width: 70px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid rgba(31,42,46,0.2);
    background: rgba(255,255,255,0.9);
    font-weight: 700;
}

.tier.is-active {
    background: rgba(110,231,164,0.7);
    border-color: rgba(31,42,46,0.4);
}

.reward-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, #c8edff 0%, #f7f6ef 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.reward-overlay.is-active { display: flex; }

.reward-card {
    width: min(92vw, 640px);
    background: transparent;
    border-radius: 28px;
    border: none;
    padding: 8px;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reward-message {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.reward-card video {
    width: 100%;
    border-radius: 16px;
    background: #000;
    box-shadow: var(--shadow);
}

.reward-stars { display: flex; gap: 8px; }

.reward-star { width: 42px; height: 42px; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2)); }

.reward-star {
    animation: starPop 0.6s ease-out;
}

.reward-star:nth-child(2) { animation-delay: 0.1s; }
.reward-star:nth-child(3) { animation-delay: 0.2s; }

@keyframes starPop {
    0% { transform: scale(0.6); opacity: 0.6; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

.bonus-parade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: none;
    z-index: 25;
}

.bonus-parade.is-active { display: block; pointer-events: auto; }

.parade-floater {
    position: absolute;
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    animation: floaty 6s ease-in-out infinite;
}

.parade-floater img { width: 70%; height: auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2)); }

.parade-floater.picked { transform: scale(0.7); opacity: 0.3; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.parent-gate {
    position: absolute;
    inset: 0;
    background: rgba(15,18,20,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.parent-gate.is-active { display: flex; }

.gate-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 20px;
    width: min(90vw, 360px);
    text-align: center;
    box-shadow: var(--shadow);
}

.gate-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }

.gate-question { font-size: 24px; margin-bottom: 12px; }

.gate-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }

.gate-choice { width: 60px; height: 48px; border-radius: 12px; border: 2px solid rgba(31,42,46,0.2); background: #fff; font-size: 18px; font-weight: 700; }

.devtools {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    font-size: 12px;
    display: none;
    z-index: 50;
    max-width: 220px;
}

.devtools.is-active { display: block; }

.missing-list { padding: 16px; width: min(960px, 94vw); }

.missing-item { padding: 8px 0; border-bottom: 1px dashed rgba(31,42,46,0.2); }

.loading-screen {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    z-index: 60;
}

.loading-screen.is-active { display: flex; }

.loader-card {
    width: min(90vw, 520px);
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
    border: 2px solid rgba(31,42,46,0.12);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.loader-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.loader-road {
    position: relative;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(47,58,68,0.3), rgba(47,58,68,0.9));
    overflow: hidden;
}

.loader-track {
    position: absolute;
    inset: 0;
}

.loader-track::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    background: repeating-linear-gradient(90deg, transparent 0 18px, var(--road-line) 18px 36px);
    opacity: 0.8;
}

.loader-truck-wrap {
    position: absolute;
    left: -20%;
    top: 10px;
    width: 80px;
    animation: truckDrive 3s linear infinite;
}

.loader-truck {
    width: 100%;
    height: auto;
    transform: scaleX(-1);
}

.loader-dump {
    position: absolute;
    right: 12px;
    bottom: 16px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffd166 0%, #f39c12 100%);
    animation: dumpBounce 1.4s ease-in-out infinite;
}

.loader-sky {
    position: relative;
    height: 60px;
}

.loader-cloud {
    position: absolute;
    width: 70px;
    height: 30px;
    background: #fff;
    border-radius: 20px;
    opacity: 0.85;
    animation: loaderDrift 10s linear infinite;
}

.loader-bird {
    position: absolute;
    width: 18px;
    height: 8px;
    border-radius: 50%;
    border-top: 2px solid #2f3a44;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    animation: birdFly 6s linear infinite;
}

.loader-star {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffe79a;
    animation: starTwinkle 2.4s ease-in-out infinite;
}

.loader-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0.9;
    animation: iconFloat 5.6s ease-in-out infinite;
}

.loader-icon.icon-1 { top: 4px; left: 10%; animation-delay: -1s; }
.loader-icon.icon-2 { top: 18px; left: 28%; animation-delay: -2s; }
.loader-icon.icon-3 { top: 10px; left: 70%; animation-delay: -3s; }
.loader-icon.icon-4 { top: 32px; left: 82%; animation-delay: -4s; }
.loader-icon.icon-5 { top: 40px; left: 52%; animation-delay: -5s; }
.loader-icon.icon-6 { top: 28px; left: 6%; animation-delay: -6s; }
.loader-icon.icon-7 { top: 6px; left: 56%; animation-delay: -7s; }
.loader-icon.icon-8 { top: 36px; left: 18%; animation-delay: -8s; }

.loader-cloud.cloud-1 { top: 8px; left: -20%; animation-delay: 0s; }
.loader-cloud.cloud-2 { top: 18px; left: -40%; animation-delay: -3s; }
.loader-cloud.cloud-3 { top: 28px; left: -30%; animation-delay: -6s; }
.loader-cloud.cloud-4 { top: 4px; left: -50%; animation-delay: -9s; }
.loader-cloud.cloud-5 { top: 38px; left: -35%; animation-delay: -12s; }
.loader-cloud.cloud-6 { top: 12px; left: -60%; animation-delay: -15s; }

.loader-bird.bird-1 { top: 6px; right: -10%; animation-delay: 0s; }
.loader-bird.bird-2 { top: 20px; right: -20%; animation-delay: -2s; }
.loader-bird.bird-3 { top: 34px; right: -30%; animation-delay: -4s; }
.loader-bird.bird-4 { top: 14px; right: -40%; animation-delay: -6s; }
.loader-bird.bird-5 { top: 30px; right: -50%; animation-delay: -8s; }

.loader-star.star-1 { top: 4px; left: 40%; animation-delay: 0s; }
.loader-star.star-2 { top: 20px; left: 60%; animation-delay: -1s; }
.loader-star.star-3 { top: 36px; left: 50%; animation-delay: -2s; }
.loader-star.star-4 { top: 12px; left: 22%; animation-delay: -3s; }
.loader-star.star-5 { top: 28px; left: 78%; animation-delay: -4s; }

.loader-hint { color: #3b4a4f; font-weight: 700; }

@keyframes truckDrive {
    0% { transform: translateX(0); }
    100% { transform: translateX(140%); }
}

@keyframes dumpBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes loaderDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(180%); }
}

@keyframes birdFly {
    0% { transform: translateX(0); opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { transform: translateX(-180%); opacity: 0.2; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

@media (max-width: 600px) {
    .title-logo { width: min(260px, 78vw); }
    .hero-mascot { width: 200px; }
    .btn-big { height: 64px; font-size: 22px; }
    .prompt-pill { font-size: 20px; }
    .game-card { width: 44vw; }
    .mode-icon { width: 72px; height: 72px; }
    .mode-icon img { width: 68px; height: 68px; }
}

@media (max-height: 740px) {
    .screen {
        padding-top: calc(12px + env(safe-area-inset-top));
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .home-hero { margin-top: 14px; }
    .title-logo { width: min(260px, 74vw); }
    .hero-mascot { width: 190px; }

    .home-actions { gap: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .btn-big { height: 62px; font-size: 21px; }
    .btn-outline { height: 52px; font-size: 17px; }

    .prompt-pill { font-size: 20px; padding: 10px 16px; }
    .game-area { min-height: 40vh; padding-top: 18px; }
}

@media (max-height: 640px) {
    .home-hero { margin-top: 10px; }
    .hero-mascot { width: 160px; }
    .hero-badge { display: none; }
    .btn-big { height: 58px; font-size: 20px; }
    .btn-outline { height: 48px; }
    .modes-grid { margin-top: 14px; gap: 12px; }
    .truckdex-grid { margin-top: 14px; gap: 12px; }
    .game-area { min-height: 36vh; }
}

.splash-screen {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.25), transparent 60%),
        rgba(0,0,0,0.04);
    z-index: 70;
}

.splash-screen.is-active {
    display: flex;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 18px;
}

.splash-logo {
    width: min(320px, 82vw);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
    animation: splashTitle 2.2s ease-out both;
}

.splash-mascot-wrap {
    position: relative;
    width: min(240px, 60vw);
}

.splash-mascot {
    width: 100%;
    height: auto;
    animation: mascotRoll 2.2s ease-out both, mascotIdle 3s ease-in-out 2.2s infinite;
}

/* Continuous mascot idle animations */
@keyframes mascotIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(-4px) rotate(-1deg); }
    75% { transform: translateY(-10px) rotate(1deg); }
}

/* Also animate the hero mascot on home screen */
.hero-mascot {
    animation: mascotBounce 2.5s ease-in-out infinite, mascotBlink 4s ease-in-out infinite;
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes mascotBlink {
    0%, 45%, 55%, 100% { filter: drop-shadow(0 12px 22px rgba(0,0,0,0.18)); }
    50% { filter: drop-shadow(0 12px 22px rgba(0,0,0,0.18)) brightness(1.05); }
}

.splash-wave {
    position: absolute;
    right: -6%;
    top: 18%;
    width: 46px;
    height: 46px;
    background: url("../assets/img/icons/sparkle.png") center/contain no-repeat;
    animation: wavePop 1.6s ease-in-out infinite;
}

.splash-hint {
    font-size: 18px;
    font-weight: 800;
    color: #1f2a2e;
    text-shadow: 0 2px 0 rgba(255,255,255,0.7);
    animation: hintPulse 1.8s ease-in-out infinite;
}

@keyframes splashTitle {
    0% { opacity: 0; transform: translateY(-10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mascotRoll {
    0% { opacity: 0; transform: translateX(-40px) scale(0.92); }
    60% { opacity: 1; transform: translateX(0) scale(1.04); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes wavePop {
    0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.1) rotate(12deg); opacity: 1; }
}

@keyframes hintPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}

/* ===========================================
   PWA Install & Update UI
   =========================================== */

.pwa-update-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-blue);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

.pwa-update-banner span {
    font-weight: 700;
    font-size: 14px;
}

.pwa-update-banner button {
    background: white;
    color: var(--brand-blue);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.pwa-ios-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.pwa-ios-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    max-width: 300px;
    text-align: center;
    box-shadow: var(--shadow);
}

.pwa-ios-card h3 {
    color: var(--navy);
    margin-bottom: 16px;
    font-size: 18px;
}

.pwa-ios-card p {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
}

.pwa-ios-card button {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 16px;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===========================================
   Enhanced Celebration Animations (Toddler)
   =========================================== */

/* Confetti container */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

.confetti.circle { border-radius: 50%; }
.confetti.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0);
        opacity: 1;
    }
    10% {
        transform: translateY(0) rotate(45deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Super celebrate - bigger bounce for 3-star wins */
.super-celebrate {
    animation: superCelebrate 0.8s ease-out;
}

@keyframes superCelebrate {
    0% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-20px) scale(1.15); }
    40% { transform: translateY(-10px) scale(1.08); }
    60% { transform: translateY(-15px) scale(1.12); }
    80% { transform: translateY(-5px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

/* Glow pulse for correct answers */
.glow-success {
    animation: glowSuccess 0.6s ease-out;
}

@keyframes glowSuccess {
    0% {
        filter: drop-shadow(0 0 0 rgba(110, 231, 164, 0));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(110, 231, 164, 0.9))
                drop-shadow(0 0 60px rgba(110, 231, 164, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(110, 231, 164, 0.3));
    }
}

/* Rainbow burst behind correct answer */
.rainbow-burst {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b
    );
    opacity: 0;
    animation: rainbowBurst 0.8s ease-out forwards;
    z-index: -1;
}

@keyframes rainbowBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(2) rotate(360deg);
        opacity: 0;
    }
}

/* Sparkle trail effect */
.sparkle-trail {
    position: fixed;
    pointer-events: none;
    z-index: 99;
}

.sparkle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffe79a 0%, #ffd54f 40%, transparent 70%);
    border-radius: 50%;
    animation: sparkleFloat 0.8s ease-out forwards;
}

@keyframes sparkleFloat {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(-30px);
        opacity: 0;
    }
}

/* Star shower for 3-star achievement */
.star-shower {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
}

.shower-star {
    position: absolute;
    width: 24px;
    height: 24px;
    background: url('../assets/img/icons/star.png') center/contain no-repeat;
    animation: starShower 2s ease-out forwards;
}

@keyframes starShower {
    0% {
        transform: translateY(-50px) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(0) rotate(45deg) scale(1);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(540deg) scale(0.6);
        opacity: 0;
    }
}

/* Big tap ripple effect */
.tap-ripple {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
    animation: tapRipple 0.5s ease-out forwards;
    z-index: 98;
}

@keyframes tapRipple {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
        margin-left: -50px;
        margin-top: -50px;
    }
}

/* Bounce in for game elements */
.bounce-in {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Slide in from sides */
.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Happy shake for encouragement */
.happy-shake {
    animation: happyShake 0.4s ease-in-out;
}

@keyframes happyShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px) rotate(-2deg); }
    40% { transform: translateX(6px) rotate(2deg); }
    60% { transform: translateX(-4px) rotate(-1deg); }
    80% { transform: translateX(4px) rotate(1deg); }
}

/* Color flash on correct answer */
.color-flash {
    animation: colorFlash 0.4s ease-out;
}

@keyframes colorFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5) saturate(1.3); }
    100% { filter: brightness(1); }
}

/* Reward overlay enhanced animations */
.reward-overlay.is-active .reward-card {
    animation: rewardCardPop 0.5s ease-out;
}

@keyframes rewardCardPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced star pop with rotation */
.reward-star {
    animation: starPopEnhanced 0.6s ease-out both;
}

@keyframes starPopEnhanced {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.3) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Pulsing glow for interactive elements */
.interactive-glow {
    animation: interactiveGlow 1.5s ease-in-out infinite;
}

@keyframes interactiveGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 214, 120, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 214, 120, 0.8));
    }
}

/* Big dump button glow */
.dump-button {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #ff6b6b 0%, #ee4444 100%) !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border: 6px solid #cc3333 !important;
    box-shadow: 0 15px 30px rgba(238, 68, 68, 0.4),
                inset 0 4px 10px rgba(255,255,255,0.3) !important;
    animation: dumpGlow 1.2s ease-in-out infinite, truckBounce 2s ease-in-out infinite;
}

@keyframes dumpGlow {
    0%, 100% {
        box-shadow: 0 15px 30px rgba(238, 68, 68, 0.4),
                    inset 0 4px 10px rgba(255,255,255,0.3),
                    0 0 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 15px 30px rgba(238, 68, 68, 0.6),
                    inset 0 4px 10px rgba(255,255,255,0.3),
                    0 0 40px rgba(255, 107, 107, 0.6);
    }
}

/* Part choice cards enhanced */
.part-choice {
    transition: transform 0.15s ease, filter 0.15s ease;
}

.part-choice:hover,
.part-choice:focus {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 214, 120, 0.6));
}

/* Success checkmark overlay */
.success-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #6ef3a9 0%, #36d873 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.5s ease-out forwards;
    box-shadow: 0 10px 20px rgba(54, 216, 115, 0.4);
}

.success-check::after {
    content: '✓';
    font-size: 32px;
    color: white;
    font-weight: bold;
}

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-45deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

/* ========================================
   FRENZY MODE - Constant toddler engagement
   ======================================== */

/* Corner Video - BIGGER and more visible! */
.corner-video-wrap {
    position: fixed;
    width: 220px;
    height: 160px;
    border-radius: 20px;
    overflow: visible;
    z-index: 200;
    opacity: 0;
    transform: scale(0.3) rotate(-15deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

/* Random corner positioning */
.corner-video-wrap.corner-top-left {
    top: 20px;
    left: 20px;
}

.corner-video-wrap.corner-top-right {
    top: 20px;
    right: 20px;
}

.corner-video-wrap.corner-bottom-left {
    bottom: 20px;
    left: 20px;
}

.corner-video-wrap.corner-bottom-right {
    bottom: 20px;
    right: 20px;
}

.corner-video-wrap.is-active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    pointer-events: auto;
    animation: videoBounceIn 0.5s ease-out, videoPulse 2s ease-in-out infinite 0.5s;
}

/* Slide-in animations from each corner */
.corner-video-wrap.corner-top-left.is-active {
    animation: slideFromTopLeft 0.5s ease-out, videoPulse 2s ease-in-out infinite 0.5s;
}

.corner-video-wrap.corner-top-right.is-active {
    animation: slideFromTopRight 0.5s ease-out, videoPulse 2s ease-in-out infinite 0.5s;
}

.corner-video-wrap.corner-bottom-left.is-active {
    animation: slideFromBottomLeft 0.5s ease-out, videoPulse 2s ease-in-out infinite 0.5s;
}

.corner-video-wrap.corner-bottom-right.is-active {
    animation: slideFromBottomRight 0.5s ease-out, videoPulse 2s ease-in-out infinite 0.5s;
}

@keyframes slideFromTopLeft {
    0% { transform: translate(-100%, -100%) scale(0.3) rotate(-15deg); opacity: 0; }
    50% { transform: translate(0, 0) scale(1.15) rotate(5deg); opacity: 1; }
    75% { transform: translate(0, 0) scale(0.95) rotate(-3deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes slideFromTopRight {
    0% { transform: translate(100%, -100%) scale(0.3) rotate(15deg); opacity: 0; }
    50% { transform: translate(0, 0) scale(1.15) rotate(-5deg); opacity: 1; }
    75% { transform: translate(0, 0) scale(0.95) rotate(3deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes slideFromBottomLeft {
    0% { transform: translate(-100%, 100%) scale(0.3) rotate(15deg); opacity: 0; }
    50% { transform: translate(0, 0) scale(1.15) rotate(-5deg); opacity: 1; }
    75% { transform: translate(0, 0) scale(0.95) rotate(3deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes slideFromBottomRight {
    0% { transform: translate(100%, 100%) scale(0.3) rotate(-15deg); opacity: 0; }
    50% { transform: translate(0, 0) scale(1.15) rotate(5deg); opacity: 1; }
    75% { transform: translate(0, 0) scale(0.95) rotate(-3deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes videoBounceIn {
    0% { transform: scale(0.3) rotate(-15deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    75% { transform: scale(0.95) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes videoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 5px rgba(255, 107, 107, 0.3); }
}

/* VIDEO! label that bounces */
.corner-video-wrap::before {
    content: 'VIDEO!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 16px;
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    animation: labelBounce 0.5s ease-in-out infinite alternate;
    white-space: nowrap;
    z-index: 10;
}

@keyframes labelBounce {
    0% { transform: translateX(-50%) translateY(0) scale(1); }
    100% { transform: translateX(-50%) translateY(-5px) scale(1.05); }
}

.corner-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.corner-video-glow {
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
    background-size: 400% 400%;
    animation: videoGlow 3s ease infinite;
    z-index: -1;
}

@keyframes videoGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Frenzy truck styles */
.frenzy-truck {
    position: absolute;
    background: none !important;
    border: none !important;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.1s ease;
}

.frenzy-truck:hover,
.frenzy-truck:active {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.frenzy-truck img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: truckBob 1.5s ease-in-out infinite;
}

@keyframes truckBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Game area for frenzy mode */
.game-area.frenzy-mode {
    position: fixed;
    inset: 0;
    top: 80px;
    z-index: 50;
    overflow: hidden;
}

/* Quick star popup */
.quick-star {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 300;
    animation: starFlyUp 0.6s ease-out forwards;
}

.quick-star img {
    width: 100%;
    height: 100%;
}

@keyframes starFlyUp {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.5) rotate(360deg) translateY(-100px);
        opacity: 0;
    }
}

/* Combo indicator */
.combo-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 900;
    color: #ffd54f;
    text-shadow: 3px 3px 0 #ff6b6b, -3px -3px 0 #4d96ff;
    pointer-events: none;
    z-index: 250;
    opacity: 0;
    animation: comboPopIn 0.5s ease-out forwards;
}

@keyframes comboPopIn {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg) translateY(-20px);
        opacity: 0;
    }
}

/* Background particles - constant movement */
.bg-particle {
    position: fixed;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.bg-particle.star {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd54f"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    animation: floatParticle 8s ease-in-out infinite;
}

.bg-particle.heart {
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b6b"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    animation: floatParticle 10s ease-in-out infinite reverse;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(10deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-40px) rotate(15deg);
    }
}

/* Tap encouragement pulse */
.tap-encouragement {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    animation: encouragePulse 1.5s ease-in-out infinite;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

@keyframes encouragePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* Speed up all existing animations for better responsiveness */
.frenzy-mode .confetti {
    animation-duration: 1.5s !important;
}

.frenzy-mode .sparkle {
    animation-duration: 0.4s !important;
}

/* Ken Burns zoom effect on video content */
.corner-video-wrap.is-active video {
    animation: kenBurnsZoom 5s ease-in-out forwards;
}

@keyframes kenBurnsZoom {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.15) translate(-3%, -2%); }
    100% { transform: scale(1.25) translate(2%, 3%); }
}

/* Background zoom effect when video plays */
.video-playing #game-area {
    animation: backgroundZoom 5s ease-in-out;
}

@keyframes backgroundZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); filter: brightness(1.05); }
}

/* ========================================
   ENHANCED TAP FEEDBACK EFFECTS
   ======================================== */

/* Screen shake for high combos */
@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-8px) rotate(-0.5deg); }
    20% { transform: translateX(8px) rotate(0.5deg); }
    30% { transform: translateX(-6px) rotate(-0.3deg); }
    40% { transform: translateX(6px) rotate(0.3deg); }
    50% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-1px); }
}

.screen-shake {
    animation: screenShake 0.4s ease-out !important;
}

/* Mega explosion burst for tap */
.tap-burst {
    position: fixed;
    pointer-events: none;
    z-index: 300;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
}

.tap-burst-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(255, 215, 0, 0.8);
    animation: burstRing 0.5s ease-out forwards;
}

.tap-burst-ring:nth-child(2) {
    border-color: rgba(255, 107, 107, 0.7);
    animation-delay: 0.05s;
}

.tap-burst-ring:nth-child(3) {
    border-color: rgba(107, 203, 119, 0.7);
    animation-delay: 0.1s;
}

@keyframes burstRing {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Radial color flash */
.color-flash {
    position: fixed;
    pointer-events: none;
    z-index: 290;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%);
    animation: colorFlash 0.3s ease-out forwards;
}

@keyframes colorFlash {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Star explosion particles */
.star-particle {
    position: fixed;
    pointer-events: none;
    z-index: 310;
    width: 24px;
    height: 24px;
    background: url("../assets/img/icons/star.png") center/contain no-repeat;
    animation: starExplode 0.6s ease-out forwards;
}

@keyframes starExplode {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 50px), var(--ty, -50px)) scale(0.8) rotate(180deg);
        opacity: 0;
    }
}

/* Heart burst for super combos */
.heart-burst {
    position: fixed;
    pointer-events: none;
    z-index: 305;
    font-size: 32px;
    animation: heartFloat 0.8s ease-out forwards;
}

@keyframes heartFloat {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -100px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150px) scale(0.8);
        opacity: 0;
    }
}

/* Rainbow wave effect */
.rainbow-wave {
    position: fixed;
    pointer-events: none;
    z-index: 295;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b
    );
    animation: rainbowWave 0.5s ease-out forwards;
    opacity: 0.7;
}

@keyframes rainbowWave {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3) rotate(180deg);
        opacity: 0;
    }
}

/* Bouncy emoji pop */
.emoji-pop {
    position: fixed;
    pointer-events: none;
    z-index: 320;
    font-size: 48px;
    transform: translate(-50%, -50%);
    animation: emojiPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes emojiPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-20deg);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.3) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -100px) scale(0.5) rotate(0deg);
        opacity: 0;
    }
}

/* Pulse ring on tap location */
.tap-pulse {
    position: fixed;
    pointer-events: none;
    z-index: 280;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.8);
    animation: tapPulse 0.4s ease-out forwards;
}

@keyframes tapPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    }
}

/* Combo multiplier floating number */
.combo-float {
    position: fixed;
    pointer-events: none;
    z-index: 315;
    font-size: 28px;
    font-weight: 900;
    color: #ffd54f;
    text-shadow: 2px 2px 0 #ff6b6b, -2px -2px 0 #6bcb77, 0 3px 10px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%);
    animation: comboFloat 0.8s ease-out forwards;
}

@keyframes comboFloat {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.4);
    }
    100% {
        transform: translate(-50%, -120px) scale(1);
        opacity: 0;
    }
}

/* Mega blast for 10+ combos */
.mega-blast {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 400;
    background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%),
        rgba(255, 215, 0, 0.4) 0%,
        rgba(255, 107, 107, 0.2) 30%,
        transparent 60%);
    animation: megaBlast 0.5s ease-out forwards;
}

@keyframes megaBlast {
    0% {
        opacity: 1;
        background-size: 50% 50%;
    }
    100% {
        opacity: 0;
        background-size: 200% 200%;
    }
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .corner-video-wrap {
        width: 160px;
        height: 120px;
        bottom: 15px;
        right: 15px;
    }

    .corner-video-wrap::before {
        font-size: 13px;
        padding: 6px 14px;
        top: -25px;
    }

    .combo-indicator {
        font-size: 36px;
    }

    .frenzy-truck img {
        animation: none; /* Reduce animation on mobile for performance */
    }

    /* Smaller effects on mobile */
    .tap-burst {
        width: 80px;
        height: 80px;
    }

    .color-flash {
        width: 120px;
        height: 120px;
    }

    .emoji-pop {
        font-size: 36px;
    }

    .combo-float {
        font-size: 22px;
    }
}

/* ========================================
   FLYING STAR EFFECT (tap → counter)
   ======================================== */

.flying-star {
    animation: flyingStarTrail 0.6s ease-out forwards;
}

@keyframes flyingStarTrail {
    0% {
        transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    }
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
}

/* ========================================
   ENHANCED GAME CARD FLOATING
   ======================================== */

/* Staggered floating for game cards - organic feel */
.game-card:nth-child(1) { animation: floatCard1 4s ease-in-out infinite; }
.game-card:nth-child(2) { animation: floatCard2 4.5s ease-in-out infinite; }
.game-card:nth-child(3) { animation: floatCard3 3.8s ease-in-out infinite; }
.game-card:nth-child(4) { animation: floatCard4 4.2s ease-in-out infinite; }

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(-3px) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(-5px) rotate(0.5deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes floatCard4 {
    0%, 100% { transform: translateY(-2px) rotate(-0.5deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

/* Enhanced mode card entrance animation */
.mode-card {
    opacity: 0;
    animation:
        modeCardEntrance 0.5s ease-out forwards,
        floatDriftSoft 6s ease-in-out infinite 0.5s;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

@keyframes modeCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatDriftSoft {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(0.5deg); }
    50% { transform: translateY(-3px) rotate(-0.5deg); }
    75% { transform: translateY(-8px) rotate(0.3deg); }
}

/* Enhanced correct tap visual feedback */
.game-card.correct {
    animation: correctCelebration 0.6s ease-out forwards !important;
}

@keyframes correctCelebration {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(110, 231, 164, 0);
    }
    30% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(110, 231, 164, 0.9);
    }
    60% {
        transform: scale(1.1);
        box-shadow: 0 0 60px rgba(110, 231, 164, 0.7);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(110, 231, 164, 0.4);
    }
}

/* Gentle wrong tap feedback (amber, not red) */
.game-card.wrong {
    animation: wrongGentleWiggle 0.5s ease-out !important;
}

@keyframes wrongGentleWiggle {
    0% { transform: translateX(0); box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
    20% { transform: translateX(-8px); box-shadow: 0 0 25px rgba(251, 191, 36, 0.6); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
}

/* ========================================
   ENHANCED SCREEN TRANSITIONS
   ======================================== */

.screen {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.screen:not(.is-active) {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

.screen.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Splash screen fade out */
.splash-screen.hiding {
    animation: splashFadeOut 0.4s ease-out forwards;
}

@keyframes splashFadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* ========================================
   ENHANCED BACKGROUND LAYERS
   ======================================== */

/* Make floating decorations more visible */
.bg-float {
    opacity: 0.45 !important;
    animation: floatDrift 14s ease-in-out infinite;
}

/* Add subtle movement to clouds */
.bg-cloud {
    animation: cloudDrift 22s linear infinite, cloudBob 6s ease-in-out infinite;
}

@keyframes cloudBob {
    0%, 100% { transform: translateX(var(--cloud-x, 0)) translateY(0); }
    50% { transform: translateX(var(--cloud-x, 0)) translateY(-8px); }
}

/* Pulsing sun */
.bg-sun {
    animation: sunPulse 5s ease-in-out infinite, sunGlow 8s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 14px rgba(255,214,120,0.5));
        background-size: 100%;
    }
    50% {
        filter: drop-shadow(0 15px 25px rgba(255,214,120,0.7));
        background-size: 105%;
    }
}

/* Add decorative floating elements */
.bg-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-trash-can,
.bg-recycle-symbol {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.25;
    animation: floatDecoration 12s ease-in-out infinite;
}

@keyframes floatDecoration {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

/* ========================================
   LOGO ANIMATION
   ======================================== */

.splash-logo {
    animation: splashTitle 2.2s ease-out both, logoPulse 4s ease-in-out 2.2s infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 12px 22px rgba(0,0,0,0.35)); }
}

/* ========================================
   THEMATIC BACKGROUND DECORATIONS
   ======================================== */

.bg-decoration {
    position: absolute;
    width: 28px;
    height: 28px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

/* Trash bin icon */
.deco-bin {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234a90a4"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4h-3.5z"/></svg>') center/contain no-repeat;
    animation: floatBin 14s ease-in-out infinite;
}

/* Recycling symbol */
.deco-recycle {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2356a65e"><path d="M12 2L8 6h3v4h2V6h3L12 2zm-8 8v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8H4zm8 6l-4-4h2.5v-2h3v2H16l-4 4z"/></svg>') center/contain no-repeat;
    animation: floatRecycle 16s ease-in-out infinite reverse;
}

/* Sparkle */
.deco-sparkle {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd54f"><path d="M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8L12 2z"/></svg>') center/contain no-repeat;
    animation: floatSparkle 10s ease-in-out infinite;
    opacity: 0.35;
}

/* Wheel */
.deco-wheel {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><circle cx="12" cy="12" r="10" stroke="%23333" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="3" fill="%23333"/><line x1="12" y1="2" x2="12" y2="6" stroke="%23333" stroke-width="2"/><line x1="12" y1="18" x2="12" y2="22" stroke="%23333" stroke-width="2"/><line x1="2" y1="12" x2="6" y2="12" stroke="%23333" stroke-width="2"/><line x1="18" y1="12" x2="22" y2="12" stroke="%23333" stroke-width="2"/></svg>') center/contain no-repeat;
    animation: floatWheel 18s linear infinite;
}

/* Decoration positions - scattered around screen */
.deco-1 { top: 15%; left: 8%; animation-delay: 0s; }
.deco-2 { top: 25%; right: 12%; animation-delay: -4s; }
.deco-3 { top: 55%; left: 5%; animation-delay: -2s; }
.deco-4 { top: 70%; right: 8%; animation-delay: -6s; }
.deco-5 { top: 40%; left: 85%; animation-delay: -3s; }
.deco-6 { top: 80%; left: 15%; animation-delay: -5s; }

@keyframes floatBin {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatRecycle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-18px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
    25% { transform: translateY(-12px) scale(1.2); opacity: 0.5; }
    50% { transform: translateY(-6px) scale(0.9); opacity: 0.25; }
    75% { transform: translateY(-16px) scale(1.1); opacity: 0.45; }
}

@keyframes floatWheel {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
