:root {
    --bg-start: #FFDEE9;
    --bg-end: #B5FFFC;
    --clay-pink: #FFB6DF;
    --clay-white: #FFFFFF;
    --text-pink: #ff69b4;
    --shadow-soft: rgba(255, 105, 180, 0.2);
    --shadow-inner: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: #444;
    transition: opacity 0.5s ease;
}

body.fade-out {
    opacity: 0;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

#bg-canvas.visible {
    opacity: 1;
}

.clay-box {
    background: var(--clay-white);
    border-radius: 40px;
    padding: 2rem;
    box-shadow: 
        20px 20px 60px var(--shadow-soft),
        -20px -20px 60px #ffffff,
        inset 5px 5px 10px rgba(0,0,0,0.02);
    border: 8px solid var(--clay-white);
}

.clay-button {
    background: #ff85c1;
    color: white;
    border: 4px solid var(--clay-white);
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 
        8px 8px 25px var(--shadow-soft),
        inset 0 4px 10px rgba(255, 255, 255, 0.8),
        inset 0 -4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.clay-button:hover {
    transform: scale(1.1) rotate(2deg);
    background: #ff60ad;
}

.heading-kawaii {
    font-family: 'Fredoka One', cursive;
    color: var(--text-pink);
    text-shadow: 3px 3px 0px rgba(255, 255, 255, 0.8);
}

.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: revealAnim 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes revealAnim {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Page Specific */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    z-index: 10;
    position: relative;
}

#countdown-screen {
    font-family: 'Fredoka One', cursive;
    font-size: 10rem;
    color: var(--text-pink);
    text-shadow: 10px 10px 0px rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    z-index: 100;
}

#orientation-warning {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

#entry-ui {
    display: none;
    width: 85%;
    max-width: 600px;
    z-index: 20;
}

#typewriter {
    font-size: 2.2rem;
    color: var(--text-pink);
    font-weight: 700;
    margin-bottom: 2rem;
    min-height: 4.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.meme-sticker {
    position: absolute;
    width: 120px;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.1));
    pointer-events: none;
    z-index: 5;
    animation: float-slow 4s ease-in-out infinite;
    display: none;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(var(--rot)); }
    50% { transform: translateY(-15px) rotate(calc(var(--rot) + 5deg)); }
}

/* Mobile Fix for GIFs */
@media screen and (max-width: 768px) {
    .meme-sticker {
        width: 80px;
        opacity: 0.6;
        z-index: 1; /* Move behind content */
    }
    
    #sticker-1 { top: 5% !important; right: 5% !important; }
    #sticker-2 { bottom: 5% !important; left: 5% !important; }
}
