@font-face {
    font-family: 'Cubic-11';
    src: url('/fonts/Cubic_11.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Retro Palette */
    --bg-color: #FFE5B4;
    /* Peach/Cream */
    --text-color: #2C3E50;

    /* 8-bit Jewel Tones */
    --ruby: #D32F2F;
    --sapphire: #1976D2;
    --emerald: #388E3C;
    --gold: #FBC02D;

    --border-color: #000;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Cubic-11', 'VT323', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Tiny Pixel Hearts Pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 9h1v1h-1z M12 9h1v1h-1z M9 10h5v2h-5z M10 12h3v1h-3z M11 13h1v1h-1z' fill='%23D32F2F' fill-opacity='0.15'/%3E%3C/svg%3E");
    background-size: 24px 24px;
}

/* Pixel Border Mixin */
.pixel-box {
    background: #fff;
    border: 4px solid var(--border-color);
    box-shadow: 8px 8px 0px var(--shadow-color);
    position: relative;
    padding: 2rem;
}

.pixel-box::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    box-shadow: inset 0 0 0 4px #fff;
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3 {
    font-family: 'Cubic-11', cursive;
    margin-bottom: 1rem;
}

button {
    font-family: 'Cubic-11', monospace;
    font-size: 1.2rem;
    padding: 10px 20px;
    background-color: var(--sapphire);
    color: white;
    border: 4px solid #000;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.4);
}

input:not([type="radio"]):not([type="checkbox"]) {
    font-family: 'Cubic-11', monospace;
    font-size: 1.2rem;
    padding: 10px;
    border: 4px solid #000;
    margin-bottom: 1rem;
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.center-screen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === Sprite Animation Classes (Shared) === */
.animation-sprite {
    position: absolute;
    left: 0;
    width: 400%;
    /* 4 columns */
    height: 300%;
    /* 3 rows */
    background-repeat: no-repeat;
    background-size: 100% 100%;
    image-rendering: pixelated;
}

.animation-sprite.animate {
    animation: sprite-slide 1.5s steps(4) infinite;
}

@keyframes sprite-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Row 1: Blowing a Kiss */
.anim-blowing-kiss {
    top: 0;
}

/* Row 2: Shy Glances */
.anim-shy-glances {
    top: -100%;
}

/* Row 3: Cheers */
.anim-cheers {
    top: -200%;
}