html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
}

body {
    overflow: hidden;
}

.zw-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
    background: #000;
    z-index: 1;
}

.zw-game {
    width: 100%;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
}

.zw-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at top, #6ff7da 0, #2a8cff 40%, #050b26 100%);
}

/* Forest background */
.zw-forest {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.zw-hills {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.zw-hill {
    position: absolute;
    border-radius: 50%;
}

.zw-hill-1 {
    width: 170%;
    height: 80%;
    background: radial-gradient(circle at top, #0d5b35, #042217);
    bottom: -35%;
    left: -35%;
}

.zw-hill-2 {
    width: 150%;
    height: 75%;
    background: radial-gradient(circle at top, #126b4a, #063125);
    bottom: -25%;
    right: -40%;
}

.zw-ground-glow {
    position: absolute;
    width: 200%;
    height: 80%;
    background: radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 65%);
    bottom: -30%;
    left: -50%;
    opacity: 0.9;
}

.zw-trees {
    position: absolute;
    inset: 0 6% 8% 6%;
    pointer-events: none;
}

.zw-tree {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zw-tree-top {
    width: 90px;
    height: 110px;
    border-radius: 90px 90px 70px 70px;
    background: radial-gradient(circle at top, #3dffb7, #0f6a4e);
    box-shadow: 0 0 18px rgba(61, 255, 183, 0.4);
}

.zw-tree-top--tall {
    height: 130px;
}

.zw-tree-trunk {
    width: 18px;
    height: 70px;
    background: linear-gradient(to bottom, #5b2c1c, #2e140a);
    border-radius: 999px;
    margin-top: -10px;
}

.zw-firefly {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff7ae 0, #ffd54f 40%, transparent 70%);
    opacity: 0.9;
    animation: zw-firefly-move 6s ease-in-out infinite alternate;
}

.zw-firefly:nth-child(odd) {
    animation-duration: 8s;
}

@keyframes zw-firefly-move {
    0% { transform: translate(0,0) scale(0.9); opacity: 0.6; }
    50% { transform: translate(10px,-8px) scale(1.1); opacity: 1; }
    100% { transform: translate(-12px,-4px) scale(0.9); opacity: 0.7; }
}

/* HUD & panels */
.zw-hud {
    position: absolute;
    inset: 0;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.zw-badge {
    background: rgba(0,0,0,0.45);
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.zw-badge-label { opacity: 0.8; }
.zw-badge-value { font-weight: 700; }

.zw-center-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zw-panel {
    background: rgba(5,8,30,0.92);
    border-radius: 24px;
    padding: 22px 26px;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
    border: 2px solid rgba(255,255,255,0.16);
    pointer-events: auto;
}

.zw-panel-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.zw-panel-subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 14px;
}

.zw-panel-task {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffe57f;
}

.zw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff8a00, #ff3d7f);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255,80,80,0.6);
}

.zw-item {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.16s ease, opacity 0.22s ease, filter 0.16s ease;
}

.zw-item-inner { position: relative; }

.zw-item--found {
    pointer-events: none;
    animation: zw-found-pop 0.28s ease forwards;
}

@keyframes zw-found-pop {
    0% { transform: translate(-50%,-50%) scale(1); opacity:1; }
    50% { transform: translate(-50%,-60%) scale(1.25); }
    100% { transform: translate(-50%,-40%) scale(0.1); opacity:0; }
}

/* mushrooms, flowers, animals same as before but removed for brevity in comment—they exist in JS visuals */

.zw-toast {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.zw-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}
