:root {
    --poke-red: #ff3a3a;
    --poke-white: #f0f0f0;
    --poke-dark: #2c2c2c;
    --gold: #ffcb05;
    --blue: #3b4cca;
    --green: #4dad5b;
}

body {
    background-color: var(--poke-red);
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    color: var(--poke-dark);
    background-image: radial-gradient(circle at 50% 50%, #ff5a5a 2px, transparent 2.5px);
    background-size: 20px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--poke-white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-left: 10px solid var(--poke-dark);
    border-right: 10px solid var(--poke-dark);
}

/* HEADER */
header {
    background: var(--poke-dark);
    color: var(--poke-white);
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid var(--gold);
    position: relative;
}

header h1 {
    font-size: 20px;
    line-height: 1.5;
    margin: 10px 0;
}

.sprites-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

/* SECTIONS */
section {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px double var(--poke-dark);
}

/* RHYME SECTION */
#rhyme-box {
    background: #fff;
    border: 4px solid var(--poke-dark);
    padding: 20px;
    border-radius: 10px;
    min-height: 100px;
    font-size: 12px;
    line-height: 2;
    text-align: left;
    position: relative;
}

#rhyme-box::after {
    content: "▼";
    position: absolute;
    bottom: 10px;
    right: 10px;
    animation: bounce 1s infinite;
}

/* GAME SECTION */
.game-area {
    background: #333;
    border: 5px solid #999;
    border-radius: 10px 10px 40px 10px;
    padding: 20px;
    color: white;
    position: relative;
}

.silhouette {
    filter: brightness(0);
    transition: filter 1s ease;
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.revealed {
    filter: brightness(1);
}

/* New Grid for 4 Options */
.options-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.game-btn {
    background: var(--blue);
    color: white;
    border: 4px solid white;
    padding: 15px 5px;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    font-size: 10px;
    transition: background 0.2s;
}

.game-btn:hover { background: #5566ee; }

/* Classes for Right/Wrong answers */
.btn-wrong {
    background: #555 !important;
    border-color: #777 !important;
    color: #999;
    cursor: not-allowed;
}

.btn-correct {
    background: var(--green) !important;
    border-color: #aaffaa !important;
    animation: shake 0.5s;
}

/* GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-frame {
    border: 5px solid var(--gold);
    background: white;
    padding: 5px;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* GIFT SECTION */
.present-container {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s;
}

.present-img {
    width: 150px;
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

/* MODAL */
#gift-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card-reveal {
    border: 10px solid var(--gold);
    box-shadow: 0 0 50px var(--gold);
    max-width: 80%;
    max-height: 60vh;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn {
    margin-top: 20px;
    color: white;
    cursor: pointer;
    text-decoration: underline;
}

/* ANIMATIONS */
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }