@font-face {
    font-family: 'Zpix';
    src: url('/assets/fonts/zpix.woff2') format('woff2'),
         url('/assets/fonts/zpix.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-sunflower: #E8A838;
    --color-sunflower-dark: #D4922A;
    --color-green: #4A6741;
    --color-dark: #3D3D3D;
    --color-bg: #FAFAF8;
    --color-bg-dark: #0A0A0A;
    --color-gold: #D4A840;
    --color-gold-light: #E8C860;
    --color-blush: #F2A5A5;

    --font-main: 'Zpix', monospace;

    --fs-sm: 12px;
    --fs-md: 24px;
    --fs-lg: 36px;
    --fs-xl: 48px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    image-rendering: pixelated;
    background: var(--color-bg);
    color: var(--color-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: normal;
}

a {
    color: var(--color-green);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 24px;
    padding: 24px;
    text-align: center;
}

.welcome-logo {
    width: 120px;
    height: auto;
    image-rendering: pixelated;
}

.welcome h1 {
    font-size: var(--fs-lg);
    color: var(--color-sunflower-dark);
}

/* ===== Deco doodles ===== */
.deco {
    position: absolute;
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 0;
    animation: deco-spin 2s steps(8) infinite;
    opacity: 0.6;
}

.deco--lg { width: 56px; height: 56px; }
.deco--sm { width: 28px; height: 28px; }

@keyframes deco-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== BGM player ===== */
.bgm-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 500;
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-dark);
    background: var(--color-sunflower);
    color: #fff;
    font-family: var(--font-main);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bgm-toggle.paused {
    opacity: 0.5;
}
