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

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
    overflow: hidden;
    background: #8B6914;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Sky - hidden for living room background */
#sky {
    display: none;
}

/* Clouds */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow:
        30px 10px 0 0 white,
        60px 0 0 0 white,
        90px 10px 0 0 white,
        30px -20px 0 10px white,
        60px -25px 0 15px white;
}

.cloud1 {
    width: 60px;
    height: 40px;
    top: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.cloud2 {
    width: 80px;
    height: 50px;
    top: 15%;
    left: 50%;
    animation: float 10s ease-in-out infinite 2s;
}

.cloud3 {
    width: 50px;
    height: 35px;
    top: 8%;
    left: 75%;
    animation: float 7s ease-in-out infinite 4s;
}

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

/* Sun */
.sun {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #FFD700;
    border-radius: 50%;
    top: 5%;
    right: 15%;
    box-shadow: 0 0 50px #FFD700, 0 0 100px #FFA500;
}

/* Timer */
#timer-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
}

#timer-label {
    font-size: 14px;
    color: #FF6B6B;
    font-weight: bold;
    text-shadow: 1px 1px 0 white;
}

#timer {
    width: 80px;
    height: 80px;
    background: white;
    border: 5px solid #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #FF6B6B;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Camera feed */
#camera-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #FF6B6B;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* Game canvas */
#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Ground - hidden for living room background */
#ground {
    display: none;
}

#grass {
    display: none;
}

/* Player indicator - hidden, using canvas Bluey now */
#player {
    display: none;
}

#player-body {
    width: 100px;
    height: 120px;
    background: linear-gradient(180deg, #6FB5E1 0%, #4A9BC7 100%);
    border-radius: 50px 50px 30px 30px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

#player-body::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15px;
    width: 25px;
    height: 30px;
    background: white;
    border-radius: 50%;
}

#player-body::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 15px;
    width: 25px;
    height: 30px;
    background: white;
    border-radius: 50%;
}

#player-name {
    margin-top: 10px;
    background: #228B22;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}

/* Start screen */
#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    color: white;
}

#start-screen h1 {
    font-size: 48px;
    color: #6FB5E1;
    text-shadow: 3px 3px 0 #4A9BC7, 5px 5px 10px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

#start-screen p {
    font-size: 20px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

#start-btn, #restart-btn {
    margin-top: 30px;
    padding: 20px 50px;
    font-size: 24px;
    font-family: inherit;
    background: linear-gradient(180deg, #FF6B6B 0%, #E55555 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

#start-btn:hover, #restart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Game over screen */
#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    color: white;
}

#game-over h1 {
    font-size: 48px;
    color: #FF6B6B;
    text-shadow: 3px 3px 0 #E55555;
    margin-bottom: 20px;
}

#game-over p {
    font-size: 24px;
    margin: 10px 0;
}

#final-time {
    font-size: 72px;
    color: #FFD700;
    text-shadow: 3px 3px 0 #FFA500;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* Balloon pop animation */
@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

/* Bounce effect */
@keyframes bounce {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.1, 0.9); }
    50% { transform: scale(0.95, 1.05); }
    100% { transform: scale(1, 1); }
}
