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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('./rooms/castle.png') center center / cover no-repeat fixed,
        linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
}

:root {
    --sidebar-panel-width: 260px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* New Game Layout */
.game-layout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    display: grid;
    grid-template-areas: 
        "left game-log debug";
    grid-template-columns: minmax(320px, 1fr) minmax(0, 20%) 350px;
    grid-template-rows: 1fr;
    gap: 10px;
    transition: grid-template-columns 0.3s ease;
}

.left-column {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.bottom-panels {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.game-layout.debug-hidden {
    grid-template-areas: 
        "left game-log";
    grid-template-columns: minmax(320px, 1fr) minmax(0, 20%);
    grid-template-rows: 1fr;
}

/* Panel Base Styles */
.players-panel, .room-panel, .actions-panel, .debug-panel, .game-log-panel {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

/* Top Left: Players Panel */
.players-panel {
    background: none;
    padding: 10px;
    box-shadow: none;
    backdrop-filter: none;
}

.room-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: var(--sidebar-panel-width);
    max-width: var(--sidebar-panel-width);
    align-self: flex-start;
}

.room-panel h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1em;
}

.game-info-layout {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.game-status-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.phase-timer-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    min-width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.phase-timer-badge span {
    display: block;
    line-height: 1.2;
}

.phase-timer-badge #timer-display {
    font-size: 1.1em;
    font-weight: bold;
    padding: 8px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    background: #fff3cd;
    color: #ffffff;
    border: 1px solid #ffeaa7;
}

#timer-display.timer-warning {
    background: #f8d7da;
    color: #ffffff;
    border-color: #f5c6cb;
    animation: pulse 1s infinite;
}

#timer-display.timer-warning {color: #ffffff;
    animation: pulse 1s infinite;
}

.round-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.players-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    flex: 1;
    align-items: flex-start;
}

.players-row .player-card {
    flex-shrink: 0;
    width: 80px;
    padding: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.players-row .player-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 5px;
    border-radius: 50%;
    object-fit: cover;
}

.players-row .player-name {
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 2px;
    color: #2c3e50;
}

.players-row .player-details {
    font-size: 0.7em;
    color: #666;
}

/* Bottom Left: Actions Panel */

.actions-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: var(--sidebar-panel-width);
    max-width: var(--sidebar-panel-width);
    overflow: visible;
    align-self: flex-start;
}

.room-selector-compact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 0.9em;
}

.room-selector-compact select {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.room-selector-compact .btn {
    width: 100%;
}

.control-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 12px;
}

.control-row select {
    display: block;
    width: auto;
    min-width: 220px;
    padding: 6px 10px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.control-row .btn {
    display: block;
    width: auto;
    min-width: 220px;
    padding: 8px 12px;
    font-size: 0.9em;
    white-space: nowrap;
}

.actions-panel select {
    display: block;
    width: auto;
    min-width: 220px;
    padding: 6px 10px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.actions-panel .btn {
    width: auto;
}

.control-hint {
    font-size: 0.8em;
    color: #5d6d7e;
    margin-top: -6px;
}

/* Right: Debug Panel */
.debug-panel {
    grid-area: debug;
    overflow-y: auto;
    background: rgba(240, 248, 255, 0.95);
    border: 2px solid #3498db;
    transition: all 0.3s ease;
    align-self: stretch;
    height: 100%;
}

/* Center Bottom: Game Log */
.game-log-panel {
    grid-area: game-log;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}

.game-log-panel h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.game-log-panel #log-content {
    flex: 1;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    min-width: 0;
}

.game-layout.debug-hidden .game-log-panel {
    width: 100%;
}

.game-layout.debug-hidden .game-log-panel #log-content {
    width: 100%;
}


.debug-panel.hidden {
    display: none;
}

.debug-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.debug-header h3 {
    margin: 0;
    color: #2c3e50;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.debug-player {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 10px;
}

.debug-player.dead {
    opacity: 0.6;
    background: #ffebee;
}

.debug-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.debug-player-name {
    font-weight: bold;
    font-size: 14px;
}

.debug-player-role {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
}

.debug-role-faithful {
    background: #4caf50;
}

.debug-role-traitor {
    background: #f44336;
}

.debug-personality {
    margin-bottom: 8px;
}

.debug-personality h5 {
    font-size: 12px;
    margin: 0 0 4px 0;
    color: #666;
}

.debug-trait {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 2px;
}

.debug-trait-name {
    color: #555;
}

.debug-trait-value {
    font-weight: bold;
    color: #333;
}

.debug-suspicions {
    margin-top: 8px;
}

.debug-suspicions h5 {
    font-size: 12px;
    margin: 0 0 4px 0;
    color: #666;
}

.debug-suspicion {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 2px;
}

.debug-suspicion-target {
    color: #555;
}

.debug-suspicion-value {
    font-weight: bold;
}

.suspicion-low {
    color: #4caf50;
}

.suspicion-medium {
    color: #ff9800;
}

.suspicion-high {
    color: #f44336;
}

.debug-confidence {
    margin-bottom: 8px;
}

.debug-confidence h5 {
    font-size: 12px;
    margin: 0 0 4px 0;
    color: #666;
}

.debug-confidence-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 2px;
}

.debug-confidence-target {
    color: #555;
}

.debug-confidence-value {
    font-weight: bold;
}

.confidence-high {
    color: #4caf50;
}

.confidence-medium {
    color: #ff9800;
}

.confidence-low {
    color: #f44336;
}

.room-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.room-selector h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.current-room {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 5px;
    border-left: 4px solid #3498db;
}


.room-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.room-switcher label {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

#room-select {
    width: 100%;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

#change-room-btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* Screen Management */
.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Start Screen */
.start-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.start-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.game-description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
    min-width: 200px;
}

/* Settings Screen */
.settings-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    max-width: 750px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.settings-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.8em;
}

.setting-section {
    margin-bottom: 25px;
}

.setting-section h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 4px;
}

/* Character Selection */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.character-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.character-option:hover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.character-option.selected {
    border-color: #2ecc71;
    background: #e8f5e8;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.character-option img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.character-option.selected img {
    border-color: #2ecc71;
}

.character-option .character-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #2c3e50;
    font-size: 0.95em;
}

.character-option .character-details {
    font-size: 0.85em;
    color: #666;
}

.character-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    font-size: 22px;
    margin: 0 auto 10px;
    border: 2px solid #ddd;
}

/* Role Selection */
.role-selection {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 2px solid #ddd;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    font-size: 0.95em;
}

.role-option:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.role-option input[type="radio"] {
    margin: 0;
}

.role-option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #2ecc71;
}

.role-option:has(input[type="radio"]:checked) {
    border-color: #2ecc71;
    background: #e8f5e8;
}

/* Time Selection */
.time-selection {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.time-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 2px solid #ddd;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    font-size: 0.95em;
}

.time-option:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.time-option input[type="radio"] {
    margin: 0;
}

.time-option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #2ecc71;
}

.time-option:has(input[type="radio"]:checked) {
    border-color: #2ecc71;
    background: #e8f5e8;
}

/* Settings Buttons */
.settings-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.settings-buttons .btn {
    flex: 1;
    padding: 11px 18px;
    font-size: 1.05em;
}

.debug-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.debug-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.debug-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.debug-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}

.debug-tab-content {
    display: none;
}

.debug-tab-content.active {
    display: block;
}

.debug-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.debug-events-header h4 {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

#debug-events-log {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: #fafafa;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.debug-event {
    margin-bottom: 4px;
    padding: 2px 4px;
    border-radius: 2px;
    line-height: 1.3;
}

.debug-event-timestamp {
    color: #666;
    font-weight: bold;
}

.debug-event-confidence {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.debug-event-personality {
    background: #f3e5f5;
    border-left: 3px solid #9c27b0;
}

.debug-event-decision {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
}

.debug-event-dialogue {
    background: #e8f5e8;
    border-left: 3px solid #4caf50;
}

.debug-event-system {
    background: #ffebee;
    border-left: 3px solid #f44336;
}

#communication-section {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

#communication-section h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

#communication-section select {
    margin-bottom: 8px;
}

#suspicion-target-section,
#defend-target-section {
    margin-bottom: 8px;
}

.communication-log {
    background: #e8f4fd;
    border-left: 4px solid #17a2b8;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
}

.communication-private {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.communication-response {
    background: #d1ecf1;
    border-left: 4px solid #bee5eb;
    font-style: italic;
}

.player-info {
    margin-bottom: 25px;
}

.role-display {
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.role-faithful {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 2px solid #4caf50;
}

.role-traitor {
    background: #ffeaea;
    color: #8b0000;
    border: 2px solid #f44336;
}

.roster h3,
.game-controls h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

#player-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
}

.player-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px 12px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 110px;
    height: 180px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    justify-content: center;
}

.player-card.player-traitor {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
}

.player-card.player-faithful {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
}

.player-card:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.player-card.dead {
    opacity: 0.6;
}

.player-name {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 14px;
    color: #2c3e50;
}

.player-status {
    font-size: 0.8em;
    color: #666;
}

.player-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    margin-bottom: 10px;
}

.player-avatar.placeholder {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    font-size: 18px;
    margin-bottom: 10px;
}

.player-avatar.dead {
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
}

.player-info-text {
    width: 100%;
}

.player-details {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.game-controls {
    margin-top: 0;
}

.phase-controls {
    margin-bottom: 20px;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    margin: 5px 0;
    width: 100%;
}

.btn:hover {
    background: #2980b9;
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-primary {
    background: #2ecc71;
}

.btn-primary:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.game-log {
    height: 60vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: #fafafa;
}

.log-entry {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.log-system {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    font-style: italic;
}

.log-dialogue {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
}

.log-action {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    font-weight: bold;
}

.log-death {
    background: #ffebee;
    border-left: 4px solid #f44336;
    font-weight: bold;
}

.game-status {
    margin-top: 20px;
    text-align: center;
}

.game-buttons {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}


#restart-game-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

#restart-game-btn:hover {
    background: #c0392b;
}

#toggle-debug-panel-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

#toggle-debug-panel-btn:hover {
    background: #2980b9;
}

#phase-indicator {
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.phase-timer-badge.phase-day {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
    border-color: #ffc107;
}

.phase-timer-badge.phase-day #timer-display {
    color: #ffffff;
}

.phase-timer-badge.phase-night {
    background: rgba(23, 162, 184, 0.9);
    color: white;
    border-color: #17a2b8;
}

.phase-timer-badge.phase-night #timer-display {
    color: #ffffff;
}

#turn-counter {
    font-size: 1em;
    color: #666;
}

#timer-display {
    font-size: 1.1em;
    font-weight: bold;
    padding: 8px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    background: #fff3cd;
    color: #ffffff;
    border: 1px solid #ffeaa7;
}

#timer-display.timer-warning {
    background: #f8d7da;
    color: #ffffff;
    border-color: #f5c6cb;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .game-layout {
        grid-template-areas: 
            "players"
            "actions"
            "game-log"
            "debug";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        padding: 5px;
    }
    
    .players-row {
        flex-wrap: wrap;
    }
    
    .players-row .player-card {
        width: 70px;
    }
}

