/* ============================================
   RACE SELECTION — SHADOWMERE FINAL VERSION
============================================ */

/* GRID OF RACE CARDS */
#race-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding: 25px;
    margin-top: 20px;
    overflow: visible; /* ensures cards are not clipped */
}

/* ============================================
   CARD CONTAINER
============================================ */

.race-card {
    background: rgba(0,0,0,0.50);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.race-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(255,255,255,0.18);
}

/* ============================================
   PORTRAIT FRAME — TALL, CENTERED, CLEAN
============================================ */

.race-portrait-frame {
    height: 260px;
    padding: 8px;
    border-radius: 12px;

    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 0 12px rgba(0,0,0,0.7),
        0 0 18px rgba(128,0,128,0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    margin-bottom: 14px;
}

/* ============================================
   PORTRAIT INSIDE THE FRAME — FIXED POSITIONING
============================================ */

.race-portrait {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.15);
}

/* ============================================
   DETAILS BLOCK
============================================ */

.race-card-details {
    background: rgba(0,0,0,0.40);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    font-family: "Cinzel", serif;
    color: #ddd;
}

/* Identity */
.race-card-identity {
    font-size: 15px;
    margin-bottom: 14px;
    color: #f0e6d2;
    text-shadow: 0 0 4px #000;
}

/* Section headers */
.race-card-abilities strong,
.race-card-traits strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #ffdf8c;
    text-shadow: 0 0 6px #000;
}

/* Lists */
.race-card-abilities ul,
.race-card-traits ul {
    margin: 0;
    padding-left: 20px;
}

.race-card-abilities li,
.race-card-traits li {
    font-size: 14px;
    margin-bottom: 4px;
    color: #d4d4d4;
    line-height: 1.35;
}

/* ============================================
   THE BIG PURPLE NEON PANEL — NOW SCROLLABLE
============================================ */

#race-selection-panel {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;

    /* ⭐ prevents clipping of bottom rows */
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 12px; /* room for scrollbar */

    background: radial-gradient(circle at top,
        rgba(120, 80, 200, 0.55),
        rgba(10, 10, 30, 0.95)
    );

    border-radius: 24px;

    box-shadow:
        0 0 25px rgba(120, 80, 200, 0.7),
        0 0 45px rgba(80, 40, 160, 0.6),
        inset 0 0 20px rgba(255,255,255,0.1);
}
