/* ═══════════════════════════════════════════════════════════════════
   Matchday Command Center
   ═══════════════════════════════════════════════════════════════════ */
.matchday-page { max-width: 1200px; margin: 0 auto; }

/* League Selector → base styles in style.css (shared) */
.md-league-selector { margin-bottom: 1rem; width: 100%; }

/* Spieltag Selector (Pill Bar) */
.md-selector {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 0.5rem;
}
.md-selector-scroll {
    display: flex; gap: 0.4rem; overflow-x: auto; flex: 1;
    scrollbar-width: thin;
}
.md-selector-pill {
    flex-shrink: 0; padding: 0.4rem 0.8rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; border: 1px solid var(--gray-300);
    cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
    white-space: nowrap; background: transparent; font-family: var(--font);
    transition: all 0.15s;
}
.md-selector-pill:hover { border-color: var(--gray-500); background: var(--gray-50); }
.md-selector-pill.active { background: var(--primary); color: white; border-color: var(--primary); }
.md-selector-pill .status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.md-selector-pill .pill-date { font-size: 0.7rem; opacity: 0.7; margin-left: 0.15rem; }
.md-selector-add {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
    color: white; border: none; cursor: pointer; font-size: 0.9rem; flex-shrink: 0;
    transition: background 0.15s; display: flex; align-items: center; justify-content: center;
}
.md-selector-add:hover { background: var(--primary-dark, #1a56db); }

/* Pairings Exhausted Banner */
.pairings-exhausted-banner {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    background: #fef3c7; border: 1px solid #fde68a; border-radius: var(--radius-xl);
    padding: 0.85rem 1.25rem; margin-bottom: 1rem;
    font-size: 0.88rem; font-weight: 600; color: #92400e;
}
.pairings-exhausted-banner i { color: #d97706; font-size: 1.1rem; }
.pairings-exhausted-banner span { flex: 1; }

/* Empty State */
.md-empty {
    text-align: center; padding: 4rem 2rem;
}
.md-empty-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--gray-100); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 2rem; color: var(--gray-400);
}
.md-empty h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.md-empty p { color: var(--text-muted); }

/* Create Form */
/* ── Modern Create Form ─────────────────────────────── */
.md-create-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 0;
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Header */
.create-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: white;
}
.create-header-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.create-header h3 {
    font-size: 1.1rem; font-weight: 800; margin: 0;
    letter-spacing: -0.01em;
}
.create-league-badge {
    display: inline-block; padding: 0.2rem 0.7rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 800; color: white;
    letter-spacing: 0.03em; margin-top: 0.25rem;
}

/* Sections */
.create-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}
.create-section:last-of-type { border-bottom: none; }
.create-section-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; font-weight: 700; color: var(--dark);
    margin-bottom: 1rem;
}
.create-step {
    width: 24px; height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800;
    flex-shrink: 0;
}
.create-optional {
    font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
}

/* Form Fields */
.create-field { margin-bottom: 0.85rem; }
.create-label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: var(--text-muted); margin-bottom: 0.35rem;
}
.create-label i { width: 16px; text-align: center; margin-right: 0.2rem; }
.create-input {
    width: 100%; padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font); font-size: 0.9rem; font-weight: 500;
    background: var(--gray-50);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 44px;
}
.create-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.1);
    background: white;
}
.create-input-suffix {
    position: relative;
}
.create-input-suffix .create-input { padding-right: 3rem; }
.input-suffix {
    position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
    font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
    pointer-events: none;
}
.create-hint {
    display: block; font-size: 0.75rem; color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Grid layouts */
.create-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.create-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) {
    .create-grid-2, .create-grid-3 { grid-template-columns: 1fr; }
}

/* Boards Counter */
.boards-counter {
    margin-left: auto;
    font-size: 0.78rem; font-weight: 700;
    color: var(--primary);
    background: rgba(196, 30, 42, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* Boards Quick Actions */
.create-boards-actions {
    display: flex; gap: 0.5rem; margin-bottom: 0.75rem;
}
.create-boards-action {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    font-size: 0.78rem; font-weight: 600; font-family: var(--font);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.create-boards-action:hover {
    background: white; border-color: var(--primary); color: var(--primary);
}

/* Board Cards Grid */
.create-boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
}

/* Board Card */
.board-card {
    cursor: pointer;
    user-select: none;
}
.board-card input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.board-card-inner {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 80px;
}
.board-card:hover .board-card-inner {
    border-color: var(--primary);
    background: rgba(196, 30, 42, 0.03);
    transform: translateY(-1px);
}

/* Board Card — Selected */
.board-card:has(input:checked) .board-card-inner {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(196, 30, 42, 0.08) 0%, rgba(196, 30, 42, 0.15) 100%);
    box-shadow: 0 2px 8px rgba(196, 30, 42, 0.15);
}
.board-card:has(input:checked) .board-card-num {
    background: var(--primary);
    color: white;
}
.board-card:has(input:checked) .board-card-icon {
    color: var(--primary);
}
.board-card:has(input:checked) .board-card-name {
    color: var(--primary);
    font-weight: 700;
}

/* Board Card — Not selected (dimmed) */
.board-card:has(input:not(:checked)) .board-card-inner {
    opacity: 0.45;
}
.board-card:has(input:not(:checked)):hover .board-card-inner {
    opacity: 0.75;
}

/* Board Card Parts */
.board-card-num {
    width: 28px; height: 28px;
    background: var(--gray-200);
    color: var(--text-muted);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 800;
    transition: all 0.2s;
    margin-bottom: 0.3rem;
}
.board-card-icon {
    font-size: 0.7rem;
    color: var(--gray-400);
    transition: color 0.2s;
    margin-bottom: 0.15rem;
}
.board-card-name {
    font-size: 0.7rem; font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Submit */
.create-submit {
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}
.create-submit-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    gap: 0.5rem;
}

/* Top Bar */
.md-topbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 1rem 1.5rem; margin-bottom: 1.5rem;
}
.md-topbar-title { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.md-topbar-date { font-size: 0.85rem; color: var(--text-muted); }
.md-topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.md-badge {
    padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.md-badge.planned { background: #e5e7eb; color: #4b5563; }
.md-badge.attendance_open { background: #fef3c7; color: #92400e; }
.md-badge.generated { background: #dbeafe; color: #1e40af; }
.md-badge.live { background: #fecaca; color: #991b1b; animation: badgePulse 1.5s infinite; }
.md-badge.completed { background: #d1fae5; color: #065f46; }
@keyframes badgePulse { 0%,100%{opacity:1}50%{opacity:0.7} }

/* ── Public Toggle Button ──────────────────────────────────────────── */
.md-public-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    border: 2px solid; cursor: pointer; transition: all 0.25s ease;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.md-public-toggle.is-private {
    background: rgba(239, 68, 68, 0.1); border-color: #ef4444; color: #ef4444;
}
.md-public-toggle.is-private:hover {
    background: rgba(239, 68, 68, 0.2);
}
.md-public-toggle.is-public {
    background: rgba(16, 185, 129, 0.15); border-color: #10b981; color: #10b981;
}
.md-public-toggle.is-public:hover {
    background: rgba(16, 185, 129, 0.25);
}

/* QR & PIN Button (prominent) */
.md-qr-btn {
    animation: qrBtnPulse 2s infinite;
}
@keyframes qrBtnPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(212,160,23,0); }
}

/* Section */
.md-section {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 1.5rem; margin-bottom: 1.5rem;
}
.md-section-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.md-section-header h2 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

/* Counter */
.md-counter {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.9rem;
}
.counter-value { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.counter-label { color: var(--text-muted); }

/* My Attendance Bar */
.my-attend-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
    background: var(--gray-100); border-radius: var(--radius-lg); padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
}
.my-attend-label { font-weight: 600; font-size: 0.9rem; }
.my-attend-buttons { display: flex; gap: 0.5rem; }

.btn-attend {
    min-width: 44px; min-height: 44px; padding: 0.5rem 1.25rem;
    border: 2px solid; border-radius: var(--radius);
    font-family: var(--font); font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 0.4rem; background: transparent;
}
.btn-attend-yes { border-color: var(--success); color: var(--success); }
.btn-attend-yes:hover, .btn-attend-yes.active { background: var(--success); color: white; }
.btn-attend-no { border-color: var(--danger); color: var(--danger); }
.btn-attend-no:hover, .btn-attend-no.active { background: var(--danger); color: white; }

/* Attendance Grid (Admin) */
.attendance-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem;
}
.attend-player {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200); border-radius: var(--radius); transition: all 0.2s;
    cursor: pointer; min-height: 44px;
}
.attend-player:hover { border-color: var(--gray-400); }
.attend-player .player-name { flex: 1; font-weight: 600; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attend-player .attend-toggle {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gray-300);
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: transparent;
    transition: all 0.2s; flex-shrink: 0;
}
.attend-player.present { border-color: var(--success); background: #ecfdf5; }
.attend-player.present .attend-toggle { border-color: var(--success); background: var(--success); color: white; }
.attend-player.absent { border-color: var(--danger); background: #fef2f2; }
.attend-player.absent .attend-toggle { border-color: var(--danger); background: var(--danger); color: white; }
.attend-player.pending { border-color: var(--gray-300); background: var(--gray-50); }
.attend-player.pending .attend-toggle { border-color: var(--gray-400); color: var(--gray-400); }

/* Extended Attendance Status Colors */
.attend-player.excused { border-color: #f59e0b; background: #fefce8; }
.attend-player.excused .attend-toggle { border-color: #f59e0b; background: #f59e0b; color: white; }
.attend-player.sick { border-color: #8b5cf6; background: #faf5ff; }
.attend-player.sick .attend-toggle { border-color: #8b5cf6; background: #8b5cf6; color: white; }
.attend-player.no-show { border-color: #dc2626; background: #fef2f2; }
.attend-player.no-show .attend-toggle { border-color: #dc2626; background: #dc2626; color: white; }
.attend-player.late-cancel { border-color: #ea580c; background: #fff7ed; }
.attend-player.late-cancel .attend-toggle { border-color: #ea580c; background: #ea580c; color: white; }

/* Attendance badges (penalty & note) */
.attend-badges { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.attend-penalty-badge {
    font-size: 0.6rem; font-weight: 800; color: #dc2626; background: #fecaca;
    padding: 0.1rem 0.35rem; border-radius: 8px;
    display: flex; align-items: center; gap: 0.15rem;
}
.attend-penalty-badge i { font-size: 0.55rem; }
.attend-note-icon {
    font-size: 0.65rem; color: #f59e0b; cursor: help;
}

/* Block-Restriction Hint (orange clock) */
.attend-block-hint {
    font-size: 0.55rem; font-weight: 700; color: #d97706; background: #fef3c7;
    padding: 0.1rem 0.35rem; border-radius: 8px;
    display: flex; align-items: center; gap: 0.15rem; white-space: nowrap;
}
.attend-block-hint i { font-size: 0.5rem; }

/* Check-in badge (green phone icon) */
.attend-checkin-badge {
    font-size: 0.6rem; font-weight: 800; color: #10b981; background: #d1fae5;
    padding: 0.1rem 0.3rem; border-radius: 8px;
    display: flex; align-items: center; gap: 0.1rem;
}
.attend-checkin-badge i { font-size: 0.55rem; }

/* Checked-in player has subtle green glow */
.attend-player.checked-in.present {
    box-shadow: 0 0 0 1px #10b981, inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

/* Check-in counter in header */
.checkin-counter {
    display: inline-flex; align-items: center; gap: 0.3rem;
    margin-left: 0.75rem; padding: 0.2rem 0.6rem;
    background: #d1fae5; color: #065f46; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600;
}
.checkin-counter i { font-size: 0.7rem; color: #10b981; }

/* Manual check-in section in attendance menu */
.attend-menu-checkin {
    padding: 0.6rem 0.8rem; border-top: 1px solid var(--gray-200);
    display: flex; align-items: center; gap: 0.5rem;
}
.attend-menu-checkin.checked {
    color: #10b981; font-size: 0.8rem; font-weight: 600;
}
.attend-menu-checkin.checked i {
    font-size: 0.9rem;
}
.attend-menu-checkin .btn-success {
    background: #10b981; color: white; border: none; font-weight: 600;
}
.attend-menu-checkin .btn-success:hover {
    background: #059669;
}

/* Admin attendance actions bar */
.attend-admin-actions {
    display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}

/* Attendance Status Modal (Admin) */
.attend-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; animation: fadeIn 0.15s ease;
}
.attend-menu-modal {
    background: var(--white); border-radius: var(--radius-xl);
    padding: 1.25rem; max-width: 380px; width: 92%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.attend-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
}
.attend-menu-header h3 {
    font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.5rem; margin: 0;
}
.attend-menu-header .btn-close {
    background: none; border: none; font-size: 1.3rem; color: var(--text-muted);
    cursor: pointer; padding: 0.25rem; line-height: 1;
}
.attend-menu-options {
    display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem;
}
.attend-menu-option {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 0.75rem; border: 1px solid var(--gray-200);
    border-radius: var(--radius); cursor: pointer;
    background: transparent; font-family: var(--font); text-align: left;
    transition: all 0.15s; width: 100%;
}
.attend-menu-option:hover { border-color: var(--primary); background: var(--gray-50); }
.attend-menu-option.active { border-color: var(--primary); background: rgba(196,30,42,0.06); }
.attend-menu-option > i:first-child { font-size: 0.9rem; width: 20px; text-align: center; color: var(--text-muted); }
.attend-menu-text { flex: 1; }
.attend-menu-text strong { display: block; font-size: 0.85rem; color: var(--text-dark); }
.attend-menu-text small { font-size: 0.73rem; color: var(--text-muted); }
.attend-menu-penalty {
    font-size: 0.65rem; color: #dc2626; background: #fecaca;
    padding: 0.15rem 0.4rem; border-radius: 8px;
}
.attend-menu-check { color: var(--primary); font-size: 0.85rem; }

/* Note input in attendance modal */
/* Block restriction inputs */
.attend-menu-blocks {
    border-top: 1px solid var(--gray-200); padding-top: 0.75rem; margin-top: 0.25rem;
}
.attend-menu-blocks label {
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
    display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.4rem;
}
.attend-menu-blocks-row {
    display: flex; align-items: flex-end; gap: 0.4rem;
}
.block-input-group {
    flex: 1; display: flex; flex-direction: column; gap: 0.15rem;
}
.block-input-group small {
    font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
}
.block-input-group .form-input {
    font-size: 0.82rem; padding: 0.35rem 0.5rem; text-align: center; width: 100%;
}

.attend-menu-note {
    display: flex; align-items: center; gap: 0.5rem;
    border-top: 1px solid var(--gray-200); padding-top: 0.75rem;
}
.attend-menu-note label {
    font-size: 0.8rem; font-weight: 600; white-space: nowrap; color: var(--text-muted);
    display: flex; align-items: center; gap: 0.3rem;
}
.attend-menu-note .form-input {
    flex: 1; font-size: 0.82rem; padding: 0.4rem 0.6rem;
}

/* Simple attendance list (Player view) */
.attendance-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.attend-group-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.35rem; }
.attend-group-title i { color: var(--success); }
.attend-group-title.attend-absent i { color: var(--danger); }
.attend-list { display: flex; flex-direction: column; gap: 0.2rem; }
.attend-item { font-size: 0.85rem; padding: 0.25rem 0.5rem; background: var(--gray-50); border-radius: var(--radius); }

/* Blocks Grid */
.blocks-grid { display: flex; flex-direction: column; gap: 1rem; }

.block-card {
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden;
}
.block-card.active-block { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.block-head {
    background: var(--gray-100); padding: 0.65rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--gray-200);
}
.block-head-left { display: flex; align-items: center; gap: 0.75rem; }
.block-num { font-weight: 800; font-size: 0.95rem; }
.block-time { font-size: 0.8rem; color: var(--text-muted); }
.block-time-badge {
    font-size: 0.78rem; font-weight: 700; color: #065f46;
    background: #d1fae5; padding: 0.15rem 0.5rem; border-radius: 10px;
}
.block-boards-edit {
    display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--text-muted);
}
.block-boards-input {
    width: 40px; padding: 0.2rem 0.35rem; border: 1px solid var(--gray-300);
    border-radius: 4px; text-align: center; font-size: 0.8rem; font-weight: 700;
}
.block-head-right { display: flex; align-items: center; gap: 0.5rem; }
.block-status {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.5rem;
    border-radius: 4px; letter-spacing: 0.04em;
}
.block-status.pending { background: #e5e7eb; color: #6b7280; }
.block-status.ready { background: #dbeafe; color: #1e40af; }
.block-status.active { background: #fecaca; color: #991b1b; }
.block-status.completed { background: #d1fae5; color: #065f46; }

.block-body { padding: 0.5rem; }

.blk-match {
    display: grid; grid-template-columns: 60px 1fr auto auto auto; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.5rem; border-radius: var(--radius); margin-bottom: 0.25rem;
}
.blk-match:hover { background: var(--gray-50); }
.blk-match-done { cursor: pointer; transition: background 0.15s, border-left 0.15s; border-left: 3px solid transparent; }
.blk-match-done:hover { background: var(--gray-100); border-left-color: var(--primary); }
.blk-board { font-size: 0.75rem; color: var(--accent-dark); font-weight: 700; min-width: 2.2rem; text-align: center; }
.board-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.8rem; height: 1.8rem; border-radius: 50%;
    background: var(--primary, #c41e2a); color: #fff;
    font-size: 0.8rem; font-weight: 800; line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* ★ "Dein nächstes Spiel"-Box */
.my-next-match {
    padding: 0.8rem 1rem; border-radius: var(--radius, 8px);
    margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.25rem;
    border-left: 4px solid; animation: myNextPulse 2s ease-in-out infinite;
}
.my-next-play {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left-color: #10b981; color: #065f46;
}
.my-next-write {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left-color: #2563eb; color: #1e40af;
}
.my-next-break {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-left-color: #eab308; color: #854d0e;
}
.my-next-label {
    font-size: 0.8rem; font-weight: 600; opacity: 0.85;
    display: flex; align-items: center; gap: 0.4rem;
}
.my-next-info { font-size: 1.1rem; font-weight: 700; }
@keyframes myNextPulse {
    0%, 100% { box-shadow: 0 1px 4px rgba(0,0,0,.08); }
    50% { box-shadow: 0 2px 12px rgba(0,0,0,.15); }
}
.blk-players { font-size: 0.9rem; font-weight: 600; }
.blk-winner { color: var(--success, #10b981); font-weight: 700; }
.blk-vs { color: var(--text-muted); margin: 0 0.2rem; font-weight: 400; }
.blk-writer {
    font-size: 0.78rem; font-weight: 600; color: var(--info, #2563eb);
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #eff6ff; padding: 0.2rem 0.55rem; border-radius: 12px;
    white-space: nowrap;
}
.blk-writer i { font-size: 0.65rem; }
.blk-writer.blk-writer-none { color: var(--gray-400); background: transparent; font-weight: 400; }
.blk-score {
    font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 800;
    min-width: 50px; text-align: center;
}
.blk-score.live { color: var(--primary); }
.blk-action a { font-size: 0.75rem; }

/* Breaks / Pause Section */
.block-breaks-section {
    padding: 0.6rem 1rem; border-top: 1px solid var(--gray-200);
    background: #fef9ee; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.block-breaks-label {
    font-size: 0.78rem; font-weight: 700; color: #92400e;
    display: flex; align-items: center; gap: 0.3rem; white-space: nowrap;
}
.block-breaks-label i { color: #d97706; }
.block-breaks-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.break-tag {
    font-size: 0.75rem; font-weight: 600; color: #92400e; background: #fde68a;
    padding: 0.15rem 0.55rem; border-radius: 10px; white-space: nowrap;
}

/* Remove Player Modal */
.remove-player-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; animation: fadeIn 0.2s ease;
}
.remove-player-modal {
    background: var(--white); border-radius: var(--radius-xl);
    padding: 1.5rem; max-width: 420px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.remove-player-modal h3 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.remove-player-modal h3 i { color: var(--danger); }
.remove-player-modal .form-group { margin-bottom: 1rem; }
.remove-player-modal .form-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; display: block; }
.remove-player-modal .form-input { width: 100%; }
.remove-player-modal .modal-actions {
    display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.25rem;
}
.remove-player-modal .warning-text {
    font-size: 0.8rem; color: var(--text-muted); background: #fef3c7;
    padding: 0.5rem 0.75rem; border-radius: var(--radius); margin-bottom: 1rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Match list header row */
.blk-header {
    display: grid; grid-template-columns: 60px 1fr auto auto auto; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.5rem; font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .md-topbar { padding: 0.75rem 1rem; }
    .md-section { padding: 1rem; }
    .attendance-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .attendance-summary { grid-template-columns: 1fr; }
    .blk-match { grid-template-columns: 50px 1fr auto auto; }
    .blk-header { grid-template-columns: 50px 1fr auto auto; }
    .blk-writer { font-size: 0.7rem; padding: 0.15rem 0.4rem; }
    /* md-league-selector responsive handled in style.css */
    .md-selector { overflow-x: auto; }
    .md-selector-pill { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .pairings-exhausted-banner { font-size: 0.82rem; }
    .checkin-player-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .checkin-manual-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   Check-in Übersicht (Admin)
   ═══════════════════════════════════════════════════════════════════ */
.checkin-overview {
    margin-top: 1.25rem;
    border-top: 2px solid var(--gray-200);
    padding-top: 1.25rem;
}
.checkin-overview-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.checkin-overview-header h3 {
    margin: 0; font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.5rem;
}
.checkin-overview-header h3 i { color: #10b981; }
.checkin-overview-counter {
    font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
    background: var(--gray-100); padding: 0.3rem 0.75rem;
    border-radius: 20px;
}
.checkin-overview-counter span:first-child { color: #10b981; }

.checkin-group { margin-bottom: 1rem; }
.checkin-group h4 {
    font-size: 0.85rem; font-weight: 700; margin: 0 0 0.5rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.checkin-group-done h4 { color: #10b981; }
.checkin-group-pending h4 { color: var(--text-muted); }
.checkin-group-list {
    display: flex; flex-direction: column; gap: 0.35rem;
}
.checkin-player-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0.75rem; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--gray-200);
    gap: 0.5rem;
}
.checkin-player-item.checked {
    background: #f0fdf4; border-color: #bbf7d0;
}
.checkin-player-item.pending {
    background: var(--gray-50);
}
.checkin-player-name {
    font-weight: 600; font-size: 0.88rem; flex: 1;
}
.checkin-player-time {
    font-size: 0.75rem; color: #10b981; font-weight: 500;
    display: flex; align-items: center; gap: 0.3rem;
}
.checkin-manual-btn {
    font-size: 0.78rem !important;
    padding: 0.3rem 0.75rem !important;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   Late Arrival Requests (Admin Matchday Page)
   ═══════════════════════════════════════════════════════════════════════ */

.late-requests-section {
    margin-bottom: 1.5rem;
}
.late-requests-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.late-requests-header h3 {
    margin: 0; font-size: 1rem; font-weight: 700;
    color: #f59e0b;
}
.late-requests-header h3 i { margin-right: 0.3rem; }
.late-requests-badge {
    background: #ef4444; color: white;
    font-size: 0.75rem; font-weight: 800;
    padding: 0.15rem 0.5rem; border-radius: 999px;
    min-width: 20px; text-align: center;
    animation: lateBadgePulse 1.5s ease-in-out infinite;
}
@keyframes lateBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.late-request-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.04));
    border: 1px solid rgba(245,158,11,0.3);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}
.late-request-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 12px rgba(245,158,11,0.15);
}

.late-request-card.late-request-approved {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.04));
    border-color: rgba(34,197,94,0.3);
}
.late-request-card.late-request-denied {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
    border-color: rgba(239,68,68,0.3);
    opacity: 0.7;
}
.late-request-card.late-request-decided {
    opacity: 0.7;
}

.late-request-info {
    display: flex; flex-direction: column; gap: 0.2rem;
    min-width: 0; flex: 1;
}
.late-request-name {
    font-weight: 700; font-size: 0.9rem; color: var(--text-dark);
}
.late-request-name i { color: #f59e0b; margin-right: 0.3rem; }
.late-request-time {
    font-size: 0.78rem; color: var(--text-muted);
}
.late-request-status {
    font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
}

.late-request-actions {
    display: flex; gap: 0.5rem; align-items: center;
    flex-shrink: 0;
}

.btn-approve-late {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important; border: none !important;
    font-weight: 700; font-size: 0.8rem !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s;
}
.btn-approve-late:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: scale(1.03);
}

.btn-deny-late {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239,68,68,0.4) !important;
    font-weight: 600; font-size: 0.8rem !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s;
}
.btn-deny-late:hover {
    background: rgba(239,68,68,0.1) !important;
    border-color: #ef4444 !important;
}

@media (max-width: 480px) {
    .late-request-card { flex-direction: column; align-items: stretch; }
    .late-request-actions { justify-content: flex-end; }
}

/* ── Board-Empfehlung & Regenerate ──────────────────────────────── */
.checkin-regenerate-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}
.board-recommendation {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.75rem 1rem; border-radius: var(--radius);
    font-size: 0.85rem; line-height: 1.5;
}
.board-recommendation.warning {
    background: #fef3c7; border: 1px solid #f59e0b; color: #92400e;
}
.board-recommendation.warning i { color: #f59e0b; font-size: 1.2rem; margin-top: 0.15rem; }
.board-recommendation.info {
    background: #eff6ff; border: 1px solid #60a5fa; color: #1e40af;
}
.board-recommendation.info i { color: #60a5fa; font-size: 1.2rem; margin-top: 0.15rem; }
.board-recommendation p { margin: 0.2rem 0 0; font-size: 0.8rem; opacity: 0.85; }
.board-recommendation strong { font-weight: 600; }
.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; border: none;
}
.btn-gold:hover { background: linear-gradient(135deg, #d97706, #b45309); }

/* ── Board Choice Modal ────────────────────────────────────────── */
.bc-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.bc-modal {
    background: var(--white, #fff); border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
    padding: 1.5rem;
}
.bc-modal-header { text-align: center; margin-bottom: 1.25rem; }
.bc-modal-header h3 { margin: 0 0 0.25rem; font-size: 1.2rem; color: var(--text, #1a1a2e); }
.bc-modal-header p { margin: 0; color: var(--text-muted, #6b7280); font-size: 0.9rem; }

.bc-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem; margin-bottom: 1rem;
}

.bc-card {
    border: 2px solid var(--gray-200, #e5e7eb); border-radius: 0.75rem;
    padding: 0.75rem; text-align: center; cursor: pointer;
    transition: all 0.15s ease; background: var(--white, #fff);
}
.bc-card:hover { border-color: var(--primary, #6366f1); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.bc-card-rec { border-color: var(--primary, #6366f1); background: #f0f0ff; }

.bc-card-header { margin-bottom: 0.5rem; }
.bc-boards-num { font-size: 1.8rem; font-weight: 800; color: var(--text, #1a1a2e); line-height: 1; }
.bc-boards-label { display: block; font-size: 0.75rem; color: var(--text-muted, #6b7280); }

.bc-badge {
    display: inline-block; font-size: 0.65rem; font-weight: 600;
    padding: 0.15rem 0.5rem; border-radius: 1rem; margin-top: 0.25rem;
}
.bc-badge-rec { background: var(--primary, #6366f1); color: #fff; }
.bc-badge-current { background: var(--gray-200, #e5e7eb); color: var(--text-muted, #6b7280); }

.bc-card-body { font-size: 0.8rem; color: var(--text, #1a1a2e); }
.bc-stat { padding: 0.15rem 0; }
.bc-stat i { width: 1rem; text-align: center; margin-right: 0.25rem; font-size: 0.7rem; }
.bc-stat-good { color: #059669; font-weight: 600; }
.bc-stat-warn { color: #dc2626; font-weight: 600; }

.bc-warning {
    margin-top: 0.35rem; padding: 0.25rem 0.5rem;
    background: #fef2f2; color: #dc2626; border-radius: 0.35rem;
    font-size: 0.7rem; font-weight: 600;
}

.bc-card-footer { margin-top: 0.5rem; }
.bc-card-footer .btn { width: 100%; }

.bc-modal-footer { text-align: center; padding-top: 0.5rem; border-top: 1px solid var(--gray-200, #e5e7eb); }

@media (max-width: 400px) {
    .bc-cards { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   Block Stats Panel (Admin — Spieltag-Übersicht pro Spieler)
   ═══════════════════════════════════════════════════════════════════ */
.block-stats-panel {
    margin-top: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.block-stats-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    font-size: 0.95rem; font-weight: 700;
}
.block-stats-header i { color: #94a3b8; }

.block-stats-table {
    width: 100%; border-collapse: collapse;
}
.block-stats-table thead th {
    padding: 0.6rem 0.75rem;
    background: var(--gray-50);
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--gray-200);
    text-align: left;
}
.block-stats-table thead th.bs-num {
    text-align: center; white-space: nowrap;
}
.block-stats-table thead th i {
    margin-right: 0.25rem; font-size: 0.7rem; opacity: 0.7;
}
.block-stats-table tbody td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
    vertical-align: middle;
}
.block-stats-table tbody tr:last-child td {
    border-bottom: none;
}
.block-stats-table tbody tr:hover {
    background: var(--gray-50);
}

/* Hard violation row (2x Schreiber, 2x Pause = VERBOTEN) */
.block-stats-table tbody tr.bs-violation-hard {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}
.block-stats-table tbody tr.bs-violation-hard:hover {
    background: #fee2e2;
}
/* Soft violation row (3x Spielen = Ausnahme/Warnung) */
.block-stats-table tbody tr.bs-violation-soft {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}
.block-stats-table tbody tr.bs-violation-soft:hover {
    background: #fef3c7;
}

/* Name column */
td.bs-name {
    font-weight: 700; color: var(--dark);
    white-space: nowrap;
}

/* Number columns */
td.bs-num {
    text-align: center; font-variant-numeric: tabular-nums;
}
td.bs-num strong {
    color: var(--primary); font-size: 0.95rem;
}

/* Sequence column */
td.bs-sequence {
    display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap;
}

/* Sequence badges */
.bs-seq {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 800; line-height: 1;
    flex-shrink: 0;
}
.bs-seq-play {
    background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd;
}
.bs-seq-write {
    background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
}
.bs-seq-break {
    background: #e5e7eb; color: #6b7280; border: 1px solid #d1d5db;
}

/* Warning icons */
.bs-warn-hard {
    margin-left: 0.35rem;
    font-size: 0.9rem;
    cursor: help;
    animation: bsWarnPulse 1.5s ease-in-out infinite;
}
.bs-warn-soft {
    margin-left: 0.25rem;
    font-size: 0.85rem;
    cursor: help;
    opacity: 0.8;
}
@keyframes bsWarnPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 640px) {
    .block-stats-table thead th,
    .block-stats-table tbody td {
        padding: 0.4rem 0.5rem;
        font-size: 0.78rem;
    }
    .bs-seq { width: 20px; height: 20px; font-size: 0.6rem; }
    td.bs-name { font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   Board-Auswahl Panel
   ═══════════════════════════════════════════════════════════════════ */
.board-need-info {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af; padding: 0.35rem 0.85rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}
.board-need-info .peak { color: #dc2626; font-weight: 800; }
.board-need-info .optimal { color: #059669; font-weight: 800; }

.board-need-banner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #1e40af;
    display: flex; align-items: center; gap: 0.5rem;
    flex-wrap: wrap;
}
.board-need-banner strong { color: #1d4ed8; }
.board-need-detail { color: #3b82f6; font-size: 0.78rem; }

.board-selection-hint {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 1rem; line-height: 1.4;
}

.board-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.board-select-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.board-select-card:hover {
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.board-select-card.selected {
    border-color: var(--primary, #c41e2a);
    background: rgba(196, 30, 42, 0.04);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.15);
}
.board-select-card.selected .bsc-num {
    background: var(--primary, #c41e2a);
    color: #fff;
}
.board-select-card.maintenance {
    opacity: 0.4;
    pointer-events: none;
}

.bsc-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--gray-100); color: var(--text-dark);
    font-size: 1.1rem; font-weight: 800;
    margin-bottom: 0.3rem;
    transition: all 0.2s;
}
.bsc-name {
    font-size: 0.7rem; font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bsc-hint {
    font-size: 0.6rem; font-weight: 500;
    color: var(--text-muted); opacity: 0.7;
    margin-top: 0.1rem; font-style: italic;
}
.board-select-card.out-of-range {
    opacity: 0.6; border-style: dashed;
}
.board-select-card.out-of-range.selected {
    opacity: 1; border-style: solid;
}
.bsc-check {
    position: absolute; top: 4px; right: 6px;
    font-size: 0.7rem; color: var(--primary, #c41e2a);
    opacity: 0; transition: opacity 0.2s;
}
.board-select-card.selected .bsc-check { opacity: 1; }

.board-selection-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}
.board-selection-actions {
    display: flex; gap: 0.5rem;
}

.board-selected-count {
    font-size: 0.85rem; font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.board-selected-count .count-num {
    color: var(--primary, #c41e2a);
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .board-selection-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
    .bsc-num { width: 2rem; height: 2rem; font-size: 0.9rem; }
    .board-selection-footer { flex-direction: column; gap: 0.75rem; }
}
