/* --- Variables --- */
:root {
    --bg-color: #fce4ec;
    --card-color: #ffffff;
    --primary: #ff4081;
    --accent: #ffd700;
    --text: #2d3436;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    overflow-x: hidden;
    text-align: center;
}

/* --- Hero --- */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #f8bbd0 0%, #f48fb1 100%);
    padding: 20px;
}

.hero h1 {
    font-family: 'Comic Neue', cursive; /* Use a funny font */
    font-size: 4rem;
    color: #c2185b;
    margin-bottom: 20px;
}

.wobbly {
    animation: wobble 2s infinite ease-in-out;
}

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

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    border: 3px solid white;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    transition: 0.2s;
    cursor: pointer;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

/* --- Mini Game Styles --- */
.game-section {
    background: #fff;
    margin: 50px auto;
    border-radius: 20px;
    border: 4px dashed var(--primary);
    max-width: 800px;
    padding: 30px;
}

.game-area {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    position: relative;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    cursor: crosshair;
}

.target {
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
}

.target:active { transform: scale(0.8); }

.hidden { display: none; }
#winner-msg { color: #27ae60; margin-top: 20px; animation: popIn 0.5s; }

/* --- Gallery --- */
.container { padding: 60px 20px; max-width: 1000px; margin: 0 auto; }
.subtitle { color: #666; font-style: italic; margin-bottom: 30px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: rotate(1deg);
}

.card:hover { transform: scale(1.05) rotate(-1deg); }
.card img { width: 100%; height: 250px; object-fit: cover; }
.caption { margin-top: 10px; font-family: 'Comic Neue', cursive; font-size: 1.2rem; }

/* --- Prank Section --- */
.prank-section {
    padding: 80px 20px;
    background: #ffecb3;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* The runaway button needs to move freely */
#runaway-btn {
    position: relative;
    background: #27ae60; /* Green like money */
    transition: 0.1s ease-out; /* Fast movement */
}

/* --- Letter --- */
.letter-section {
    background: #fff;
    padding: 60px 20px;
    border-top: 10px solid var(--primary);
}

.letter-paper {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Confetti Animation --- */
.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    background: red;
    animation: fall linear forwards;
    z-index: 999;
}

@keyframes fall {
    to { transform: translateY(100vh) rotate(720deg); }
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
