﻿/* Personality theme tokens (scoped to this page via PageShell) */
.eqn-page.ltei.kai {
    --card-bg: #fdf8e4;
    --ninja-color: #f7b32b;
}

.eqn-page.ltei.ryu {
    --card-bg: #ffe6e6;
    --ninja-color: #b22222;
}

.eqn-page.ltei.haru {
    --card-bg: #eaffea;
    --ninja-color: #4cae4c;
}

.eqn-page.ltei.sora {
    --card-bg: #e0f0ff;
    --ninja-color: #3b4d72;
}

/* Header visual (layout/centering comes from PageShell) */
.ltei-header {
    text-align: center;
}

    .ltei-header img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background-color: #f0f0f0;
        padding: 0.25rem;
    }

    .ltei-header h2 {
        font-size: 1.4rem;
        font-weight: 800;
        margin: 0.25rem 0 0;
        color: var(--ninja-color);
    }

/* Paragraph visuals (not layout) */
.ltei-subtext,
.ltei-bottom-prompt {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.ltei-subtext {
    color: #555;
}

.ltei-bottom-prompt {
    color: #666;
    font-style: italic;
}

/* Card grid */
.ltei-cards {
    display: grid;
    justify-items: center;
}

.ltei-cards-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.ltei-cards-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    justify-items: center;
}

@media (min-width: 900px) {
    .ltei-cards-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

span.newline {
    display: block;
    margin: 0; /* prevent extra space */
}

/* Individual card (button) */
.ltei-card {
    width: 100%;
    min-width: 100px;
    min-height: 100px;
    max-width: 150px;
    max-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg, #f0f0f0);
    border-radius: 1rem;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    border: none;
    color: black;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, transform 0.15s ease;
    animation: fadeInCard 0.4s ease-in-out;
    position: relative;
}

    .ltei-card:active {
        transform: scale(0.98);
    }

    .ltei-card img {
        max-width: 40px;
        max-height: 40px;
        margin-bottom: 0.25rem;
    }

.card-label {
    font-weight: 600;
    margin-top: 0.25rem;
}

/* States */
.ltei-card.selected {
    outline: 2px solid var(--ninja-color);
    background-color: rgba(255, 255, 200, 0.4);
}

.ltei-card.listened {
    opacity: 0.95;
    box-shadow: 0 0 0 2px var(--ninja-color);
}

.ltei-checkmark {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1rem;
    color: var(--ninja-color);
    font-weight: bold;
    pointer-events: none;
}

/* Animation */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Small screens tweak */
@media (max-width: 420px) {
    .ltei-header h2 {
        font-size: 1.15rem;
    }
}
