body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

[x-cloak] {
    display: none !important;
}

.student-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.student-card-queued {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.15), rgba(25, 135, 84, 0.05));
    box-shadow: inset 0 0 0 2px rgba(25, 135, 84, 0.25);
}

.student-card-crown {
    background: linear-gradient(135deg, rgba(251, 196, 45, 0.4), rgba(255, 208, 109, 0.15));
    box-shadow: 0 0.75rem 1.5rem rgba(251, 196, 45, 0.25);
}

.student-card-star {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2), rgba(13, 202, 240, 0.1));
    box-shadow: 0 0.35rem 0.9rem rgba(13, 202, 240, 0.2);
}

body.points-hidden [data-total-points],
body.points-hidden [data-modal-points] {
    display: none !important;
}

.student-card-button {
    border: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    text-align: left;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.student-card .card-body {
    padding: 0.85rem 0.85rem 1rem;
}

@media (min-width: 768px) {
    .student-card .card-body {
        padding: 0.8rem 0.8rem 0.95rem;
    }
}

@media (min-width: 1200px) {
    .student-card .card-body {
        padding: 0.7rem 0.75rem 0.85rem;
    }
}

.student-name-block h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

@media (min-width: 1200px) {
    .student-name-block h2 {
        font-size: 1.05rem;
    }
}

.student-indicators {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.student-indicators .badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.9rem;
}

@media (min-width: 1200px) {
    .student-indicators .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.45rem;
    }
}

.student-card-button:focus {
    outline: none;
    box-shadow: none;
}

.student-card-absent {
    opacity: 0.6;
    position: relative;
}

.student-card-absent::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 193, 7, 0.7);
    border-radius: 0.5rem;
    pointer-events: none;
}

.student-card-suspended {
    position: relative;
}

.student-card-suspended::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(33, 37, 41, 0.4);
    border-radius: 0.5rem;
    pointer-events: none;
}

.student-card-suspended .student-card-button {
    opacity: 0.75;
}

.student-card-absent-container {
    order: 99;
}

.random-highlight {
    animation: pulse 1s ease-in-out 2;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(13, 110, 253, 0); }
    50% { box-shadow: 0 0 0.75rem rgba(13, 110, 253, 0.5); }
}

.student-action-button {
    font-size: 2rem;
    padding: 0.85rem 0;
    line-height: 1;
    border-radius: 1rem;
}

[data-modal-name] {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

[data-modal-turns],
[data-modal-points] {
    font-size: 1.1rem;
    padding: 0.5rem 0.75rem;
}
