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

body {
    min-height: 100vh;
    background: #1A1A2E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    padding: 1rem;
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 560px;
}

/* ---- SPRITE ---- */
.sprite-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sprite {
    width: 64px;
    height: 128px;
    background-image: url('../game/assets/sprites/player_32.png');
    background-size: 192px 512px;
    background-position: 0 0;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    animation: idle-bob 2.4s ease-in-out infinite;
}

@keyframes idle-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.sprite-shadow {
    width: 34px;
    height: 8px;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    margin-top: -4px;
    filter: blur(1px);
}

/* ---- DIALOGUE ---- */
.dialogue-box {
    width: 100%;
    background: #F0E9D2;
    border: 4px solid #2C2C3A;
    border-radius: 8px;
    padding: 4px;
}

.dialogue-inner {
    border: 2px solid #534AB7;
    border-radius: 5px;
    padding: 18px 20px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#dialogue-text {
    color: #2C2C2A;
    font-size: 15px;
    line-height: 1.6;
    min-height: 48px;
}

.dialogue-hint {
    align-self: flex-end;
    color: #888780;
    font-size: 12px;
    margin-top: 12px;
}
.dialogue-hint span {
    background: #534AB7;
    color: #EEEDFE;
    padding: 2px 8px;
    border-radius: 3px;
}
.dialogue-hint .arrow {
    background: none;
    color: #534AB7;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- CHOICES ---- */
.intro-choices {
    display: none;               /* mostrato da JS all'ultima riga */
    gap: 10px;
    margin-top: 16px;
}
.intro-choices.visible { display: flex; }

.choice-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;
    border: 3px solid #2C2C3A;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: transform 0.08s;
}
.choice-btn:hover { transform: translateY(-2px); }
.choice-btn small { font-size: 10px; opacity: 0.75; font-weight: normal; }

.choice-new     { background: #534AB7; color: #EEEDFE; }
.choice-classic { background: #2C2C3A; color: #F0E9D2; }

@media (max-width: 460px) {
    .intro-choices { flex-direction: column; }
}
#credits-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 150;
    width: 40px;
    height: 40px;
    background: #26262A;
    border: 2px solid #F0E9D2;
    border-radius: 50%;
    color: #F0E9D2;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .1s ease, background .15s ease;
}
#credits-btn:hover {
    background: #A32D2D;
    transform: scale(1.08);
}