:root {
    --kid-bg: linear-gradient(180deg, #bde7ff 0%, #e8f7ff 38%, #fff7d9 100%);
    --kid-panel: rgba(255, 255, 255, 0.95);
    --kid-panel-border: #f3d58b;
    --kid-brown: #6b3f1f;
    --kid-brown-2: #8b572a;
    --kid-gold: #ffd447;
    --kid-pink: #ff7ea8;
    --kid-green: #37c98b;
    --kid-shadow: 0 14px 40px rgba(49, 74, 91, 0.18);
}

.page-body {
    min-height: 100vh;
    margin: 0;
    padding-bottom: 90px;
    background: var(--kid-bg);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.back-button {
    position: fixed;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(145deg, #ff8f5a 0%, #ff6f91 50%, #8b572a 100%);
    box-shadow: 0 8px 24px rgba(255, 111, 145, 0.35);
    z-index: 100;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.back-button:hover,
.back-button:active {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 12px 28px rgba(255, 111, 145, 0.45);
}

.page-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 84px 14px 36px;
}

.page-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.14;
    color: var(--kid-brown);
    text-shadow: 0 2px 0 #fff, 0 5px 0 rgba(255, 212, 71, 0.58);
    margin-bottom: 24px;
}

.content-box {
    background: var(--kid-panel);
    border-radius: 24px;
    padding: 22px;
    border: 3px solid var(--kid-panel-border);
    box-shadow: var(--kid-shadow);
    text-align: center;
}

.content-box p {
    color: #5a432a;
    font-size: 1.08rem;
    line-height: 1.45;
    margin: 10px 0;
}

.game-btn,
.control-btn,
button {
    min-height: 48px;
    min-width: 48px;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    touch-action: manipulation;
}

.tap-area {
    min-height: 44px;
    min-width: 44px;
}

.coming-soon {
    color: #ff5f7e !important;
    animation: pulse 1.7s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mini-poop-icon {
    font-size: 4.5rem;
    animation: bounce 1s ease-in-out infinite;
}

.line-queue {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    margin: 20px 0;
}

.queue-person {
    animation: shuffle 1s ease-in-out infinite;
}

.queue-person:nth-child(2) { animation-delay: 0.1s; }
.queue-person:nth-child(3) { animation-delay: 0.2s; }
.queue-person:nth-child(4) { animation-delay: 0.3s; }
.queue-person:nth-child(5) { animation-delay: 0.4s; }

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

.queue-text {
    font-style: italic;
    color: #7d6d5c !important;
}

.river {
    height: 150px;
    background: linear-gradient(to bottom, #ffe066 0%, #ffcc00 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 40px;
    background: repeating-linear-gradient(90deg, transparent 0px, rgba(255,255,255,0.3) 50px, transparent 100px);
    animation: wave-move 3s linear infinite;
}

.wave2 {
    bottom: 20px;
    animation-delay: -1.5s;
    opacity: 0.5;
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

.floater {
    position: absolute;
    font-size: 2.5rem;
    top: 30%;
    animation: float-river 8s linear infinite;
}

.floater2 {
    animation-delay: -4s;
    top: 50%;
}

@keyframes float-river {
    0% { left: -10%; }
    100% { left: 110%; }
}

.warning {
    color: #ff6b6b !important;
    font-style: italic;
}

.tv-screen {
    width: min(100%, 420px);
    height: 200px;
    background: #333;
    border: 10px solid #222;
    border-radius: 12px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.static {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(0,0,0,0.03) 1px);
    animation: static-move 0.1s steps(3) infinite;
}

@keyframes static-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 3px; }
}

.tv-text {
    color: #888;
    z-index: 1;
}

.snacks {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
}

.poop-land-scene {
    display: flex;
    justify-content: space-around;
    font-size: 3rem;
    margin: 20px 0;
}

.attractions {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.attraction {
    background: #fff8dc;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.attraction span {
    font-size: 3rem;
}

.attraction p {
    font-size: 1rem !important;
    margin-top: 10px !important;
    font-weight: bold;
}

.world-map {
    position: relative;
    padding: 22px;
}

.globe {
    font-size: clamp(4.6rem, 13vw, 8rem);
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.poop-marker {
    position: absolute;
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

.marker1 { top: 20%; left: 30%; }
.marker2 { top: 40%; right: 25%; animation-delay: 0.3s; }
.marker3 { bottom: 30%; left: 40%; animation-delay: 0.6s; }

.poop-facts {
    text-align: left;
    margin-top: 24px;
}

.poop-facts h3 {
    color: var(--kid-brown-2);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.poop-facts ul {
    list-style: none;
    padding: 0;
}

.poop-facts li {
    padding: 10px 0;
    border-bottom: 1px dashed #deb887;
    font-size: 1.03rem;
    color: #4a2f17;
}

.poop-facts li::before {
    content: '💩 ';
}

.newspaper {
    text-align: left;
}

.news-item {
    background: #fff8dc;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 5px solid #8b4513;
}

.news-item h3 {
    color: var(--kid-brown-2);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 1rem !important;
    text-align: left;
    color: #5f5f5f !important;
}

.news-date {
    display: block;
    text-align: right;
    color: #999;
    font-size: 0.88rem;
    margin-top: 8px;
    font-style: italic;
}

@media (max-width: 768px) {
    .content-box {
        padding: 18px;
    }

    .content-box p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 70px 10px 24px;
    }

    .back-button {
        top: max(8px, env(safe-area-inset-top));
        left: 10px;
        padding: 11px 16px;
        font-size: 0.92rem;
    }

    .content-box {
        border-radius: 18px;
        padding: 14px;
    }

    .attractions {
        gap: 12px;
    }

    .snacks {
        font-size: 2.4rem;
    }
}

@media (max-width: 380px) {
    .page-title {
        font-size: 1.45rem;
    }

    .back-button {
        padding: 10px 14px;
    }
}
