@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

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

body {
    font-family: 'Nunito', Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #94d6ff 0%, #e8f7ff 52%, #fff4d0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Sky and Clouds */
.sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
}

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

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

.cloud1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}

.cloud1::after {
    width: 60px;
    height: 60px;
    top: -35px;
    left: 40px;
}

.cloud2 {
    width: 120px;
    height: 50px;
    top: 100px;
    right: 15%;
    animation: float 25s ease-in-out infinite reverse;
}

.cloud2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud2::after {
    width: 70px;
    height: 70px;
    top: -40px;
    left: 50px;
}

.cloud3 {
    width: 80px;
    height: 35px;
    top: 150px;
    left: 50%;
    animation: float 18s ease-in-out infinite;
}

.cloud3::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 10px;
}

.cloud3::after {
    width: 55px;
    height: 55px;
    top: -30px;
    left: 30px;
}

@keyframes float {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* Title */
.title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3rem);
    color: #8B4513;
    text-shadow: 3px 3px 0 #FFD700, -1px -1px 0 #654321;
    padding: 14px 14px 8px;
    position: relative;
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Poop Container */
.poop-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.quick-zone {
    width: min(960px, 94vw);
    margin: 0 auto 12px;
    position: relative;
    z-index: 8;
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid #ffd447;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(34, 75, 95, 0.16);
    padding: 12px;
}

.quick-zone-title {
    text-align: center;
    color: #6b3f1f;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quick-card {
    text-decoration: none;
    color: #fff;
    border-radius: 14px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.quick-card:hover,
.quick-card:active {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.06);
}

.quick-card-games { background: linear-gradient(145deg, #ff7ea8, #ff5f7e); }
.quick-card-river { background: linear-gradient(145deg, #00c2ff, #178fff); }
.quick-card-watch { background: linear-gradient(145deg, #4ccb92, #1c9f63); }

.quick-emoji {
    font-size: 1.35rem;
}

.quick-text {
    font-size: 0.95rem;
}

/* Giant Poop */
.giant-poop {
    position: relative;
    width: 700px;
    max-width: 95vw;
    transform-origin: center bottom;
    transition: transform 0.2s ease;
}

/* Poop Top Swirls */
.poop-top {
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
}

.poop-swirl {
    position: absolute;
    background: linear-gradient(145deg, #8B6914 0%, #6B4423 50%, #4A2F17 100%);
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3), inset 5px 5px 15px rgba(255,255,255,0.1);
}

.poop-swirl-1 {
    width: 80px;
    height: 80px;
    top: 0;
    z-index: 3;
}

.poop-swirl-2 {
    width: 140px;
    height: 70px;
    top: 40px;
    z-index: 2;
}

.poop-swirl-3 {
    width: 200px;
    height: 60px;
    top: 70px;
    z-index: 1;
}

/* Poop Face */
.poop-face {
    position: relative;
    background: linear-gradient(145deg, #8B6914 0%, #6B4423 50%, #4A2F17 100%);
    height: 112px;
    width: 350px;
    margin: -20px auto 0;
    border-radius: 50% 50% 40% 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    z-index: 4;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3), inset 5px 5px 15px rgba(255,255,255,0.1);
    cursor: pointer;
}

.poop-status {
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff7d2;
    color: #6b3f1f;
    border: 2px solid #f0c96d;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(80, 54, 18, 0.18);
}

.poop-status::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-width: 8px 7px 0 7px;
    border-style: solid;
    border-color: #f0c96d transparent transparent transparent;
}

.brow {
    position: absolute;
    width: 28px;
    height: 7px;
    background: #3d2614;
    border-radius: 999px;
    top: 26px;
}

.left-brow {
    left: 104px;
    transform: rotate(-12deg);
}

.right-brow {
    right: 104px;
    transform: rotate(12deg);
}

.blush {
    position: absolute;
    width: 22px;
    height: 12px;
    background: rgba(255, 130, 148, 0.5);
    border-radius: 999px;
    top: 66px;
}

.left-blush {
    left: 78px;
}

.right-blush {
    right: 78px;
}

.tear {
    position: absolute;
    width: 10px;
    height: 14px;
    background: linear-gradient(180deg, #8de7ff, #3bc0ea);
    border-radius: 70% 70% 70% 70%;
    top: 70px;
    opacity: 0;
    transform: translateY(-2px) scale(0.7);
}

.left-tear {
    left: 118px;
}

.right-tear {
    right: 118px;
}

.eye {
    width: 35px;
    height: 45px;
    background: white;
    border-radius: 50%;
    position: relative;
    animation: blink 4s ease-in-out infinite;
}

.eye::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.eye::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 35%;
    left: 60%;
    z-index: 1;
}

@keyframes blink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.mouth {
    position: absolute;
    bottom: 13px;
    width: 58px;
    height: 30px;
    background: #2a1810;
    border-radius: 0 0 50px 50px;
    border-top: 3px solid #1a0f0a;
    transition: all 0.15s ease;
}

/* Poop Body */
.poop-body {
    background: linear-gradient(145deg, #8B6914 0%, #6B4423 40%, #4A2F17 100%);
    border-radius: 50% 50% 45% 45%;
    padding: 40px 30px 50px;
    margin-top: -30px;
    box-shadow:
        inset -10px -10px 30px rgba(0,0,0,0.3),
        inset 10px 10px 30px rgba(255,255,255,0.1),
        0 20px 40px rgba(0,0,0,0.3);
    cursor: pointer;
}

.tickle-meter-wrap {
    width: min(380px, 88vw);
    margin: 14px auto 0;
    text-align: center;
}

.tickle-meter-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #6b3f1f;
    margin-bottom: 5px;
}

.tickle-meter {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    border: 2px solid #8b572a;
    overflow: hidden;
}

.tickle-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #37c98b, #ffd447 45%, #ff6f91 100%);
    transition: width 0.15s ease;
}

.tickle-pop {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 1.2rem;
    animation: tickle-pop 0.8s ease-out forwards;
}

@keyframes tickle-pop {
    0% { opacity: 1; transform: translateY(0) scale(0.8); }
    100% { opacity: 0; transform: translateY(-36px) scale(1.2); }
}

.giant-poop.mood-happy .mouth {
    width: 56px;
    height: 26px;
}

.giant-poop.mood-laugh .mouth {
    width: 74px;
    height: 36px;
    border-radius: 0 0 45px 45px;
}

.giant-poop.mood-laugh {
    animation: giggle 0.22s ease-in-out infinite;
}

.giant-poop.mood-laugh .blush {
    background: rgba(255, 130, 148, 0.75);
}

.giant-poop.mood-cry {
    animation: sob 0.18s ease-in-out infinite;
}

.giant-poop.mood-cry .mouth {
    width: 52px;
    height: 20px;
    border-radius: 45px 45px 8px 8px;
}

.giant-poop.mood-cry .tear {
    opacity: 1;
    animation: teardrop 0.5s ease-in-out infinite;
}

.giant-poop.mood-cry .left-brow {
    transform: rotate(15deg);
}

.giant-poop.mood-cry .right-brow {
    transform: rotate(-15deg);
}

@keyframes giggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1.8deg); }
    75% { transform: rotate(1.8deg); }
}

@keyframes sob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}

@keyframes teardrop {
    0% { transform: translateY(-2px) scale(0.8); }
    60% { transform: translateY(8px) scale(1); }
    100% { transform: translateY(12px) scale(0.75); }
}

/* Doors Container */
.doors-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.door-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Doors */
.door {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.door:hover {
    transform: scale(1.1);
}

.door:hover .door-frame {
    box-shadow: 0 0 20px #FFD700, 0 0 40px #FFA500;
}

.door-frame {
    width: 70px;
    height: 90px;
    background: linear-gradient(135deg, #DEB887 0%, #8B4513 100%);
    border: 4px solid #654321;
    border-radius: 5px 5px 0 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: box-shadow 0.3s ease;
}

.door-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid #654321;
    border-radius: 3px;
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
}

.door-handle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 5px #FFA500;
}

.door-sign {
    background: #FFF8DC;
    border: 2px solid #8B4513;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 5px;
    font-size: 0.7rem;
    color: #4A2F17;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    max-width: 90px;
}

.door-sign .small {
    font-size: 0.55rem;
    font-weight: normal;
}

/* Door Colors */
.door-1 .door-frame { background: linear-gradient(135deg, #FF6B6B 0%, #C0392B 100%); }
.door-2 .door-frame { background: linear-gradient(135deg, #74B9FF 0%, #0984E3 100%); }
.door-3 .door-frame { background: linear-gradient(135deg, #55EFC4 0%, #00B894 100%); }
.door-4 .door-frame { background: linear-gradient(135deg, #FDCB6E 0%, #F39C12 100%); }
.door-5 .door-frame { background: linear-gradient(135deg, #A29BFE 0%, #6C5CE7 100%); }
.door-6 .door-frame { background: linear-gradient(135deg, #FD79A8 0%, #E84393 100%); }
.door-7 .door-frame { background: linear-gradient(135deg, #00CEC9 0%, #0984E3 100%); }

/* Ground */
.ground {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #228B22 0%, #006400 100%);
    z-index: 1;
}

.ground::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        #32CD32 0px,
        #228B22 20px,
        #32CD32 40px
    );
}

/* Kid-friendly improvements */
body {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Larger, clearer fonts for kids */
.door-sign {
    font-size: 0.85rem;
    padding: 8px 12px;
    max-width: 100px;
    line-height: 1.3;
}

.door-sign .small {
    font-size: 0.7rem;
}

/* Bigger touch targets */
.door {
    min-width: 80px;
    padding: 10px;
}

.door-frame {
    width: 80px;
    height: 100px;
}

/* Active state for touch */
.door:active {
    transform: scale(0.95);
}

.door:active .door-frame {
    box-shadow: 0 0 25px #FFD700, 0 0 50px #FFA500;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-zone {
        width: 95vw;
    }

    .title {
        font-size: 2.2rem;
        padding: 15px 10px;
    }

    .door-frame {
        width: 70px;
        height: 90px;
    }

    .door-sign {
        font-size: 0.75rem;
        max-width: 85px;
    }

    .door-row {
        gap: 12px;
    }

    .poop-body {
        padding: 30px 20px 40px;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .quick-card {
        min-height: 54px;
    }

    .quick-text {
        font-size: 0.88rem;
    }

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

    .door-frame {
        width: 60px;
        height: 80px;
    }

    .door-sign {
        font-size: 0.7rem;
        max-width: 75px;
        padding: 6px 8px;
    }

    .door-sign .small {
        font-size: 0.6rem;
    }

    .door-row {
        gap: 8px;
    }

    .poop-face {
        width: 250px;
        height: 82px;
        gap: 40px;
    }

    .eye {
        width: 25px;
        height: 35px;
    }

    .poop-status {
        top: -40px;
        font-size: 0.72rem;
        padding: 5px 9px;
    }

    .brow {
        width: 22px;
        top: 20px;
    }

    .left-brow {
        left: 73px;
    }

    .right-brow {
        right: 73px;
    }

    .blush {
        width: 16px;
        top: 49px;
    }

    .left-blush {
        left: 54px;
    }

    .right-blush {
        right: 54px;
    }

    .left-tear {
        left: 82px;
    }

    .right-tear {
        right: 82px;
    }

    .mouth {
        width: 42px;
        height: 18px;
        bottom: 9px;
    }

    .poop-body {
        padding: 25px 15px 35px;
    }

    .doors-container {
        gap: 15px;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .title {
        font-size: 1.5rem;
    }

    .door-frame {
        width: 50px;
        height: 65px;
    }

    .door-sign {
        font-size: 0.6rem;
        max-width: 65px;
    }

    .poop-top {
        height: 80px;
    }

    .poop-swirl-1 {
        width: 50px;
        height: 50px;
    }

    .poop-swirl-2 {
        width: 90px;
        height: 45px;
        top: 25px;
    }

    .poop-swirl-3 {
        width: 130px;
        height: 40px;
        top: 45px;
    }
}
