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

body {
    font-family: 'Comic Sans MS', 'Chalkboard', cursive, sans-serif;
    background: linear-gradient(135deg, #FFE4EC 0%, #FFF0F5 50%, #FFE4EC 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

#game-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ========== HOME SCREEN STYLES ========== */
#home-screen {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #FFE4EC 0%, #FFF0F5 30%, #E8F4FF 70%, #D4ECFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

#home-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,182,193,0.3) 0%, transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(255,192,203,0.3) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(173,216,230,0.3) 0%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(255,218,233,0.3) 0%, transparent 22%);
    pointer-events: none;
}

#home-content {
    text-align: center;
    z-index: 10;
    padding: 20px;
}

#home-title {
    font-size: 3.5rem;
    color: #FF69B4;
    text-shadow: 3px 3px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    margin-bottom: 20px;
    animation: titleBounce 2s ease-in-out infinite;
}

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

#home-axolotl {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    animation: floatBob 3s ease-in-out infinite;
}

#home-axolotl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(255, 105, 180, 0.3));
}

@keyframes floatBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Sparkle animation */
.sparkle {
    animation: sparkleRotate 2s ease-in-out infinite;
    transform-origin: 55px 35px;
}

@keyframes sparkleRotate {
    0%, 100% { opacity: 1; transform: rotate(0deg) scale(1); }
    50% { opacity: 0.5; transform: rotate(180deg) scale(0.8); }
}

/* Name input section */
#name-section {
    margin-bottom: 30px;
}

#name-section label {
    display: block;
    font-size: 1.3rem;
    color: #FF69B4;
    margin-bottom: 10px;
}

#axolotl-name {
    padding: 12px 20px;
    font-size: 1.2rem;
    font-family: inherit;
    border: 3px solid #FFB6C1;
    border-radius: 25px;
    outline: none;
    text-align: center;
    width: 250px;
    background: white;
    color: #FF69B4;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#axolotl-name:focus {
    border-color: #FF69B4;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

#axolotl-name::placeholder {
    color: #FFB6C1;
}

/* Game selection */
#game-selection h2 {
    font-size: 1.5rem;
    color: #FF69B4;
    margin-bottom: 20px;
}

#game-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(180deg, #fff 0%, #FFF0F5 100%);
    border: 3px solid #FFB6C1;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-width: 160px;
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    border-color: #FF69B4;
}

.game-btn:active:not(:disabled) {
    transform: translateY(-2px);
}

.game-btn.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.game-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF69B4;
    margin-bottom: 5px;
}

.game-desc {
    font-size: 0.85rem;
    color: #999;
}

#credit {
    margin-top: 40px;
    font-size: 1rem;
    color: #FF69B4;
    opacity: 0.8;
}

/* ========== CATCHING PHASE STYLES ========== */
#catch-screen {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    touch-action: none;
}

#title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFB6C1;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

#hint {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.8;
    z-index: 10;
    pointer-events: none;
}

/* Kawaii Axolotl */
#axolotl {
    position: absolute;
    width: 150px;
    height: 150px;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.1s ease-out;
}

#axolotl:hover {
    transform: scale(1.08);
}

#axolotl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 182, 193, 0.6));
    pointer-events: none;
}

/* Gill animation */
.gills {
    animation: gillWave 1s ease-in-out infinite;
    transform-origin: center right;
}

@keyframes gillWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

/* Leash (catch phase) */
#leash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#leash.visible {
    opacity: 1;
}

/* ========== WALKING PHASE STYLES ========== */
#walk-screen {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
    overflow: hidden;
}

#walk-screen.visible {
    opacity: 1;
}

.hidden {
    display: none !important;
}

#outdoor-scene {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Sky */
#sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 50%, #E0F6FF 100%);
}

/* Sun */
#sun {
    position: absolute;
    top: 50px;
    right: 100px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px #FFD700, 0 0 100px #FFA50080;
    animation: sunPulse 3s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { box-shadow: 0 0 50px #FFD700, 0 0 100px #FFA50080; }
    50% { box-shadow: 0 0 60px #FFD700, 0 0 120px #FFA50080; }
}

/* Clouds */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.9;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-1 {
    top: 80px;
    left: -150px;
    width: 120px;
    height: 40px;
    animation: cloudFloat 30s linear infinite;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}

.cloud-1::after {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 60px;
}

.cloud-2 {
    top: 150px;
    left: -100px;
    width: 100px;
    height: 35px;
    animation: cloudFloat 25s linear infinite;
    animation-delay: -10s;
}

.cloud-2::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 15px;
}

.cloud-2::after {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 50px;
}

@keyframes cloudFloat {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* Ground */
#ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, #90EE90 0%, #228B22 100%);
}

/* Path/sidewalk */
#ground::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #D2B48C 0%, #C4A484 100%);
}

/* Trees */
.tree {
    position: absolute;
    bottom: calc(30% - 20px);
    width: 60px;
    height: 120px;
}

.tree::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 40px;
    background: #8B4513;
    border-radius: 3px;
}

.tree::after {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 90px solid #228B22;
}

.tree-1 { left: 10%; }
.tree-2 { left: 50%; }
.tree-3 { left: 85%; }

/* Walker (person) */
#walker {
    position: absolute;
    bottom: calc(30% - 40px);
    left: -100px;
    width: 60px;
    height: 100px;
    z-index: 10;
}

#walker svg {
    width: 100%;
    height: 100%;
}

/* Walking leg animation */
#walker .leg-left {
    animation: walkLeft 0.5s ease-in-out infinite;
    transform-origin: 20px 45px;
}

#walker .leg-right {
    animation: walkRight 0.5s ease-in-out infinite;
    transform-origin: 20px 45px;
}

@keyframes walkLeft {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

@keyframes walkRight {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
}

/* Walking axolotl */
#walking-axolotl {
    position: absolute;
    bottom: calc(30% - 100px);
    left: -50px;
    width: 120px;
    height: 120px;
    z-index: 9;
}

#walking-axolotl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Walking axolotl leg animation */
.walk-leg {
    animation: axolotlWalk 0.3s ease-in-out infinite alternate;
}

@keyframes axolotlWalk {
    0% { transform: translateY(-2px); }
    100% { transform: translateY(2px); }
}

/* Walking leash */
#walking-leash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

/* Victory message */
#victory-message {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    animation: fadeInBounce 1s ease-out;
}

#victory-message h2 {
    font-size: 3rem;
    color: #FF69B4;
    text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff;
    margin-bottom: 10px;
}

#victory-message p {
    font-size: 1.5rem;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* End game buttons */
#end-buttons {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
    opacity: 0;
    animation: fadeIn 1s ease-out 3s forwards;
}

#play-again, #home-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: inherit;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#play-again {
    background: linear-gradient(180deg, #FF69B4 0%, #FF1493 100%);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

#play-again:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

#home-btn {
    background: linear-gradient(180deg, #87CEEB 0%, #4169E1 100%);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

#home-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.6);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Stars in catch phase background */
#catch-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(2px 2px at 50px 160px, white, transparent),
        radial-gradient(2px 2px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, white, transparent),
        radial-gradient(1px 1px at 200px 50px, white, transparent),
        radial-gradient(1px 1px at 250px 90px, white, transparent),
        radial-gradient(1px 1px at 300px 150px, white, transparent),
        radial-gradient(1px 1px at 350px 30px, white, transparent),
        radial-gradient(2px 2px at 400px 100px, white, transparent),
        radial-gradient(1px 1px at 450px 60px, white, transparent),
        radial-gradient(1px 1px at 500px 140px, white, transparent),
        radial-gradient(2px 2px at 550px 80px, white, transparent),
        radial-gradient(1px 1px at 600px 120px, white, transparent);
    background-repeat: repeat;
    background-size: 600px 200px;
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Caught animation */
#axolotl.caught {
    animation: caughtWiggle 0.5s ease-in-out;
}

@keyframes caughtWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-10deg) scale(1.1); }
    40% { transform: rotate(10deg) scale(1.1); }
    60% { transform: rotate(-5deg) scale(1.05); }
    80% { transform: rotate(5deg) scale(1.05); }
}

/* Speed boost visual effect */
#axolotl.fast {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

#axolotl.slow {
    filter: drop-shadow(0 0 15px rgba(100, 149, 237, 0.8));
}

/* ========== BATH GAME STYLES ========== */
#bath-screen {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #E6F3FF 0%, #CCE5FF 100%);
    overflow: hidden;
    touch-action: none;
}

#bath-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FF69B4;
    font-size: 2.2rem;
    text-shadow: 2px 2px 0 #fff;
    z-index: 100;
    white-space: nowrap;
}

#bathroom {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#bathroom-wall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, #B8E6FF 0%, #87CEEB 100%);
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(255,255,255,0.1) 100px, rgba(255,255,255,0.1) 102px),
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(255,255,255,0.1) 100px, rgba(255,255,255,0.1) 102px);
}

/* Shelf - positioned near bathtub */
#shelf {
    position: absolute;
    top: 35%;
    right: 80px;
    width: 80px;
    height: 50px;
    background: linear-gradient(180deg, #DEB887 0%, #D2691E 100%);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

#shelf::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 8px;
    right: 8px;
    height: 8px;
    background: #8B4513;
    border-radius: 0 0 5px 5px;
}

/* Wall bracket for shelf */
#shelf::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -15px;
    width: 15px;
    height: 30px;
    background: linear-gradient(90deg, #A9A9A9, #C0C0C0);
    border-radius: 3px 0 0 3px;
}

#soap {
    width: 70px;
    height: 45px;
    cursor: grab;
    transition: transform 0.2s, filter 0.2s;
    z-index: 51;
}

#soap:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(152, 251, 152, 0.6));
}

#soap:active {
    cursor: grabbing;
}

#soap.dragging {
    position: fixed;
    z-index: 200;
    transform: scale(1.2);
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.3));
    pointer-events: none;
}

#soap.selected {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(152, 251, 152, 0.8));
}

/* Dragging shower head */
#shower-head.dragging {
    position: fixed;
    z-index: 200;
    transform: scale(0.8);
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.3));
    pointer-events: none;
}

#shower-head.dragging::before,
#shower-head.dragging::after {
    display: none;
}

/* Shower head - wall mounted */
#shower-head {
    position: absolute;
    top: 25%;
    left: 80px;
    width: 120px;
    height: 140px;
    cursor: grab;
    transition: filter 0.2s;
    z-index: 50;
}

#shower-head:active {
    cursor: grabbing;
}

#shower-head.selected {
    filter: drop-shadow(0 0 10px rgba(135, 206, 235, 0.8));
}

#shower-head.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wall pipe for shower */
#shower-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    width: 16px;
    height: 60px;
    background: linear-gradient(90deg, #888, #C0C0C0, #888);
    border-radius: 3px;
}

/* Wall mount plate */
#shower-head::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    width: 36px;
    height: 20px;
    background: linear-gradient(180deg, #A0A0A0, #808080);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Water drops - attached to shower head */
#water-drops {
    position: absolute;
    top: 85px;
    left: 20px;
    width: 80px;
    height: 200px;
    pointer-events: none;
}

/* When shower is being dragged, water drops follow */
#shower-head.dragging #water-drops {
    top: 60px;
    left: 25px;
}

.water-drop {
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(180deg, #87CEEB 0%, #4169E1 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: waterFall 0.6s linear infinite;
    opacity: 0.8;
}

.water-drop:nth-child(1) { left: 10px; animation-delay: 0s; }
.water-drop:nth-child(2) { left: 25px; animation-delay: 0.1s; }
.water-drop:nth-child(3) { left: 40px; animation-delay: 0.2s; }
.water-drop:nth-child(4) { left: 18px; animation-delay: 0.3s; }
.water-drop:nth-child(5) { left: 32px; animation-delay: 0.15s; }

@keyframes waterFall {
    0% { transform: translateY(0); opacity: 0.8; }
    100% { transform: translateY(150px); opacity: 0; }
}

/* Bathtub - large and realistic */
#bathtub {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 550px;
    height: 300px;
    z-index: 20;
}

#tub-back {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 65%;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 50%, #E8E8E8 100%);
    border-radius: 30px 30px 0 0;
    box-shadow: inset 0 10px 40px rgba(0,0,0,0.1), inset 5px 0 20px rgba(0,0,0,0.05), inset -5px 0 20px rgba(0,0,0,0.05);
}

/* Tub rim */
#tub-back::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -10px;
    right: -10px;
    height: 20px;
    background: linear-gradient(180deg, #FFF 0%, #E0E0E0 100%);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

#tub-water {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 50%;
    background: linear-gradient(180deg, rgba(135, 206, 250, 0.8) 0%, rgba(100, 149, 237, 0.6) 100%);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: waterRipple 3s ease-in-out infinite;
}

@keyframes waterRipple {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#tub-water::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 100%);
}

/* Water shine effect */
#tub-water::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20%;
    width: 60%;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    filter: blur(3px);
}

#tub-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42%;
    background: linear-gradient(180deg, #F8F8F8 0%, #E8E8E8 50%, #D0D0D0 100%);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Tub feet */
#tub-front::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 60px;
    width: 40px;
    height: 25px;
    background: linear-gradient(180deg, #C0C0C0, #909090);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#tub-front::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 60px;
    width: 40px;
    height: 25px;
    background: linear-gradient(180deg, #C0C0C0, #909090);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Faucet */
#faucet {
    position: absolute;
    bottom: 55%;
    right: 40px;
    width: 60px;
    height: 80px;
    z-index: 30;
}

#faucet::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 50px;
    background: linear-gradient(90deg, #C0C0C0, #E8E8E8, #C0C0C0);
    border-radius: 5px;
}

#faucet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 25px;
    background: linear-gradient(180deg, #D0D0D0, #A0A0A0);
    border-radius: 10px 25px 5px 5px;
}

/* Axolotl in bath */
#bath-axolotl {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    z-index: 25;
}

#bath-axolotl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.25));
}

/* Soap suds */
#soap-suds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sud {
    position: absolute;
    background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.8) 50%, transparent 70%);
    border-radius: 50%;
    animation: sudFloat 2s ease-in-out infinite;
}

.sud:nth-child(1) { width: 40px; height: 40px; top: 20%; left: 10%; animation-delay: 0s; }
.sud:nth-child(2) { width: 35px; height: 35px; top: 15%; left: 70%; animation-delay: 0.3s; }
.sud:nth-child(3) { width: 30px; height: 30px; top: 40%; left: 20%; animation-delay: 0.6s; }
.sud:nth-child(4) { width: 45px; height: 45px; top: 35%; left: 60%; animation-delay: 0.2s; }
.sud:nth-child(5) { width: 25px; height: 25px; top: 55%; left: 40%; animation-delay: 0.5s; }
.sud:nth-child(6) { width: 35px; height: 35px; top: 50%; left: 75%; animation-delay: 0.1s; }
.sud:nth-child(7) { width: 30px; height: 30px; top: 25%; left: 45%; animation-delay: 0.4s; }
.sud:nth-child(8) { width: 40px; height: 40px; top: 60%; left: 15%; animation-delay: 0.7s; }

@keyframes sudFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
    50% { transform: translateY(-5px) scale(1.1); opacity: 1; }
}

#soap-suds.rinsing .sud {
    animation: sudRinse 1s ease-out forwards;
}

@keyframes sudRinse {
    0% { transform: translateY(0) scale(1); opacity: 0.9; }
    100% { transform: translateY(100px) scale(0.5); opacity: 0; }
}

/* Rubber ducky */
#rubber-ducky {
    position: absolute;
    top: 80px;
    right: 80px;
    width: 90px;
    height: 80px;
    cursor: pointer;
    z-index: 26;
    transition: transform 0.1s;
    animation: duckFloat 3s ease-in-out infinite;
}

#rubber-ducky:hover {
    transform: scale(1.1);
}

#rubber-ducky:active {
    transform: scale(0.95);
}

#rubber-ducky.quacking {
    animation: duckQuack 0.3s ease-in-out;
}

@keyframes duckFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes duckQuack {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* Tool indicator */
#tool-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.2rem;
    color: #FF69B4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Bath progress */
#bath-progress {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 100;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.progress-icon {
    font-size: 1.5rem;
}

.progress-label {
    font-size: 1rem;
    color: #666;
}

.progress-bar {
    width: 80px;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF69B4, #FF1493);
    border-radius: 6px;
    transition: width 0.3s ease;
}

#rinse-progress {
    opacity: 0.5;
}

#rinse-progress.active {
    opacity: 1;
}

/* Bath complete */
#bath-complete {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 150;
    animation: fadeInBounce 1s ease-out;
}

#bath-complete h2 {
    font-size: 2.5rem;
    color: #FF69B4;
    text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff;
    margin-bottom: 10px;
}

#bath-complete p {
    font-size: 1.5rem;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
}

/* Bath end buttons */
#bath-end-buttons {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 150;
}

#bath-play-again, #bath-home-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: inherit;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#bath-play-again {
    background: linear-gradient(180deg, #FF69B4 0%, #FF1493 100%);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

#bath-play-again:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

#bath-home-btn {
    background: linear-gradient(180deg, #87CEEB 0%, #4169E1 100%);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

#bath-home-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.6);
}

/* Cursor styles for tools */
body.soap-cursor {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="4" y="8" width="24" height="16" rx="3" fill="%2398FB98" stroke="%23228B22" stroke-width="2"/></svg>') 16 16, auto;
}

body.shower-cursor {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="20" r="10" fill="%23C0C0C0"/><line x1="16" y1="10" x2="16" y2="0" stroke="%23888" stroke-width="4"/></svg>') 16 16, auto;
}

/* ========== RESPONSIVE STYLES FOR MOBILE ========== */

/* Tablets and smaller */
@media screen and (max-width: 768px) {
    #home-title {
        font-size: 2.5rem;
    }

    #home-axolotl {
        width: 140px;
        height: 140px;
    }

    #axolotl-name {
        width: 200px;
        font-size: 1rem;
        padding: 10px 15px;
    }

    #game-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .game-btn {
        min-width: 200px;
        padding: 15px 20px;
    }

    #title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    #hint {
        font-size: 1rem;
        padding: 0 10px;
    }

    #axolotl {
        width: 120px;
        height: 120px;
    }

    /* Bath game responsive */
    #bath-title {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    #bathtub {
        width: 90vw;
        max-width: 450px;
        height: 250px;
        bottom: 40px;
    }

    #bath-axolotl {
        width: 150px;
        height: 150px;
    }

    #rubber-ducky {
        width: 55px;
        height: 45px;
        top: 40px;
        right: 40px;
    }

    #shelf {
        top: 30%;
        right: 20px;
        width: 60px;
        height: 40px;
    }

    #soap {
        width: 50px;
        height: 35px;
    }

    #shower-head {
        top: 22%;
        left: 20px;
        width: 80px;
        height: 100px;
    }

    #bath-progress {
        top: 80px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }

    .progress-item {
        padding: 8px 12px;
        gap: 6px;
    }

    .progress-bar {
        width: 60px;
    }

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

    .progress-label {
        font-size: 0.85rem;
    }

    #tool-indicator {
        bottom: 60px;
        padding: 8px 15px;
        font-size: 1rem;
    }

    #bath-complete h2 {
        font-size: 1.8rem;
    }

    #bath-complete p {
        font-size: 1.2rem;
    }

    #bath-end-buttons, #end-buttons {
        flex-direction: column;
        gap: 15px;
        bottom: 30px;
    }

    #bath-play-again, #bath-home-btn, #play-again, #home-btn {
        padding: 12px 30px;
        font-size: 1.2rem;
    }

    #victory-message h2 {
        font-size: 2rem;
    }

    #victory-message p {
        font-size: 1.2rem;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    #home-title {
        font-size: 2rem;
    }

    #home-axolotl {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    #name-section label {
        font-size: 1.1rem;
    }

    #axolotl-name {
        width: 180px;
        font-size: 0.95rem;
    }

    #game-selection h2 {
        font-size: 1.2rem;
    }

    .game-btn {
        min-width: 180px;
        padding: 12px 15px;
    }

    .game-icon {
        font-size: 2rem;
    }

    .game-name {
        font-size: 1.1rem;
    }

    .game-desc {
        font-size: 0.75rem;
    }

    #credit {
        font-size: 0.85rem;
        margin-top: 30px;
    }

    #title {
        font-size: 1.5rem;
        top: 15px;
    }

    #hint {
        font-size: 0.9rem;
        top: 60px;
    }

    #axolotl {
        width: 100px;
        height: 100px;
    }

    /* Bath game small phones */
    #bath-title {
        font-size: 1.3rem;
        top: 15px;
    }

    #bathtub {
        width: 95vw;
        max-width: 320px;
        height: 200px;
        bottom: 30px;
    }

    #bath-axolotl {
        width: 110px;
        height: 110px;
        top: 15px;
    }

    #rubber-ducky {
        width: 40px;
        height: 35px;
        top: 25px;
        right: 25px;
    }

    #shelf {
        top: 28%;
        right: 10px;
        width: 50px;
        height: 35px;
    }

    #soap {
        width: 40px;
        height: 28px;
    }

    #soap svg {
        width: 40px;
        height: 28px;
    }

    #shower-head {
        top: 20%;
        left: 10px;
        width: 60px;
        height: 80px;
    }

    #shower-head svg {
        width: 60px;
        height: 80px;
    }

    #bath-progress {
        top: 60px;
        gap: 10px;
    }

    .progress-item {
        padding: 6px 8px;
        gap: 4px;
    }

    .progress-bar {
        width: 45px;
        height: 10px;
    }

    .progress-icon {
        font-size: 1rem;
    }

    .progress-label {
        font-size: 0.75rem;
    }

    #tool-indicator {
        bottom: 50px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    #bath-complete {
        top: 25%;
    }

    #bath-complete h2 {
        font-size: 1.5rem;
    }

    #bath-complete p {
        font-size: 1rem;
    }

    #bath-end-buttons, #end-buttons {
        bottom: 20px;
    }

    #bath-play-again, #bath-home-btn, #play-again, #home-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    #victory-message {
        top: 15%;
    }

    #victory-message h2 {
        font-size: 1.6rem;
    }

    #victory-message p {
        font-size: 1rem;
    }

    /* Adjust faucet for small screens */
    #faucet {
        width: 40px;
        height: 50px;
        right: 20px;
    }

    #faucet::before {
        width: 12px;
        height: 30px;
    }

    #faucet::after {
        width: 40px;
        height: 18px;
    }
}

/* Handle safe areas on notched phones */
@supports (padding: max(0px)) {
    #home-screen,
    #catch-screen,
    #walk-screen,
    #bath-screen {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
