/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');

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

body {
    font-family: 'Rye', cursive;
    background-color: #1a1a1a;
    background-image: url('/static/images/black_leather_bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    padding: 50px;
    text-align: center;
}

/* Title section with decorative elements */
.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.main-title {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.left-decorations,
.right-decorations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* API card image styles */
.api-card {
    width: 60px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: rotate(-10deg);
    transition: opacity 0.3s ease-in-out;
}

.right-decorations .api-card {
    transform: rotate(10deg);
}

/* Poker chip styles */
.poker-chip {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.poker-chip.red {
    background: linear-gradient(145deg, #dc3545, #c82333);
}

.poker-chip.blue {
    background: linear-gradient(145deg, #007bff, #0056b3);
}

.chip-value {
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* leather-background class removed as it is now default on body */

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

/* Shared Table Styling */
.game-table-look {
    background-color: #35654d;
    background-image: url('/static/images/felt-texture.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
    border: 15px solid #5d4037;
    /* Wood border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.8);
    padding: 30px;
    min-height: 600px;
    position: relative;
    color: white;
    margin-top: 20px;
}

.game-table-look::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid #3e2723;
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
}

/* Specific overrides */
.player-board {
    /* Inherits game-table-look via HTML class or we mixin here if we could */
    /* Keeping existing specific styles if any */
}

.dealer-board {
    /* Inherits game-table-look */
}

.landing-container {
    max-width: 1000px;
    margin: 40px auto;
}

/* Dealer Avatar & Message Panel */
.dealer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.dealer-avatar-mini {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    /* Gold border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    background-color: #1a1a1a;
    margin-bottom: 15px;
}

.dealer-message-panel {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 400px;
    text-align: center;
    font-size: 1.1em;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    margin-bottom: 20px;
}

.dealer-message-panel::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Poker Table Styling - Updated to be a shared class */
.player-board {
    /* Now uses shared styling, keeping specific dimensions */
}

/* Adjust existing styles for better visibility on felt */
.player-header,
.game-info,
.opponents-section h3,
.game-log h4 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    text-shadow: 2px 2px #000;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    font-size: 20px;
    color: #fff;
    background-color: #c0392b;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 2px 2px 5px #000;
}

.btn:hover {
    background-color: #a93226;
}

.form-input {
    width: 80%;
    max-width: 300px;
    padding: 15px;
    margin: 10px auto;
    font-size: 18px;
    border: 2px solid #fff;
    border-radius: 10px;
    background-color: #444;
    color: #fff;
    outline: none;
    text-align: center;
}

.form-input::placeholder {
    color: #ccc;
}

.table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    text-align: center;
}

.table th,
.table td {
    padding: 15px;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.table th {
    background-color: rgba(255, 255, 255, 0.2);
}

.cards img,
.chips img {
    width: 80px;
    height: auto;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px #000;
}

/* New Real-time Interface Styles */
.game-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.option-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-group {
    margin: 15px 0;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #f8f9fa;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #c0392b;
    outline: none;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 16px;
    font-family: 'Rye', cursive;
    cursor: pointer;
    line-height: 1.5;
    min-height: 48px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    transition: all 0.3s ease;
}

.form-group select:focus {
    border-color: #c0392b;
    outline: none;
    background-color: #444;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group select:hover {
    border-color: #666;
    background-color: #3a3a3a;
}

.form-group select option {
    background-color: #333;
    color: white;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
    font-style: italic;
}

.btn-primary {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
}

.status-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: bold;
}

.status-message.success {
    background-color: rgba(40, 167, 69, 0.3);
    border: 1px solid #28a745;
    color: #d4edda;
}

.status-message.error {
    background-color: rgba(220, 53, 69, 0.3);
    border: 1px solid #dc3545;
    color: #f8d7da;
}

.status-message.info {
    background-color: rgba(23, 162, 184, 0.3);
    border: 1px solid #17a2b8;
    color: #bee5eb;
}

.game-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.game-code {
    font-size: 28px;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 2px 2px 4px #000;
}

.game-links {
    margin-top: 20px;
}

.game-links a {
    margin: 10px;
}

/* Dealer Board Styles */
.dealer-board {
    max-width: 1200px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.community-section {
    margin: 30px 0;
}

.community-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.community-card img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-placeholder {
    width: 100px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.game-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pot-info,
.turn-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.player-card,
.opponent-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.player-card.current-turn,
.opponent-card.current-turn {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.player-card.folded,
.opponent-card.folded {
    opacity: 0.5;
    background: rgba(220, 53, 69, 0.1);
}

.game-log {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
}

.log-content {
    height: 200px;
    overflow-y: auto;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.log-content p {
    margin: 5px 0;
    font-size: 14px;
}

.timestamp {
    color: #6c757d;
    font-size: 12px;
}

/* Player Board Styles */
.player-board {
    max-width: 1000px;
}

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

.player-info {
    display: flex;
    gap: 20px;
    font-size: 18px;
    font-weight: bold;
}

.hand-section {
    margin: 30px 0;
}

.player-hand {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.player-card img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 3px solid #ffc107;
}

/* Card reveal system for hole cards */
.revealable-card {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: transform 0.2s ease;
}

.revealable-card:hover {
    transform: translateY(-5px);
}

.revealable-card:active {
    transform: translateY(-2px);
}

.revealable-card .card-back,
.revealable-card .card-front {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 3px solid #ffc107;
    display: block;
    transition: all 0.2s ease;
}

.revealable-card .card-front.hidden {
    display: none;
}

.revealable-card.revealed {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.3);
}

.card-instruction {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffc107;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.revealable-card:hover .card-instruction {
    opacity: 1;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-instruction {
        font-size: 12px;
        bottom: -30px;
        padding: 6px 10px;
    }

    .revealable-card:hover {
        transform: none;
    }

    .revealable-card:active {
        transform: translateY(-3px);
    }
}

.betting-controls {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #ffc107;
}

.betting-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.betting-buttons .btn {
    min-width: 100px;
    font-size: 16px;
}

.raise-controls {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.raise-controls label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.raise-controls input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.raise-controls input[type="number"] {
    width: 150px;
    padding: 8px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #333;
    color: white;
}

.opponents-section {
    margin: 30px 0;
}

.opponents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.status {
    font-weight: bold;
    text-transform: uppercase;
}

.position {
    font-size: 12px;
    color: #adb5bd;
}

.current-turn {
    color: #f1c40f;
    font-weight: bold;
    text-shadow: 1px 1px #000;
}

.actions {
    margin: 20px 0;
}

.actions .btn {
    width: 180px;
}

.footer {
    margin-top: 30px;
    font-size: 14px;
    color: #bbb;
}

/* Player Badges */
.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.badge.dealer {
    background-color: #ffc107;
    color: black;
}

.badge.sb {
    background-color: #17a2b8;
}

.badge.bb {
    background-color: #dc3545;
}

/* Queued Players Section */
.queued-section {
    margin: 20px 0;
}

.queued-players {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.queued-player {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    text-align: center;
}

.queued-player h4 {
    margin-bottom: 10px;
    color: #ffc107;
}

.queue-position {
    font-size: 12px;
    color: #ffc107;
    font-weight: bold;
    margin-top: 8px;
}

/* Player Queue Status */
.queue-status {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.queue-status h3 {
    color: #ffc107;
    margin-bottom: 15px;
}

.queue-status p {
    margin: 8px 0;
    color: #ffffff;
}

/* Rebuy Dialog */
.rebuy-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.rebuy-content {
    background: rgba(220, 53, 69, 0.9);
    border: 3px solid #dc3545;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.rebuy-content h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.rebuy-content p {
    color: #ffffff;
    margin: 10px 0;
    font-size: 16px;
}

.rebuy-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.rebuy-info p {
    margin: 5px 0;
    font-weight: bold;
}

.rebuy-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.rebuy-buttons .btn {
    min-width: 120px;
    font-weight: bold;
}

/* Raise Controls Styling */
.raise-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.raise-info p {
    margin: 5px 0;
}

.total-bet-info {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    padding: 8px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    color: #d4edda;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-options {
        grid-template-columns: 1fr;
    }

    .game-header,
    .player-header {
        flex-direction: column;
        gap: 15px;
    }

    .game-info {
        grid-template-columns: 1fr;
    }

    .betting-buttons {
        flex-direction: column;
    }

    .community-cards,
    .player-hand {
        flex-wrap: wrap;
    }

    .player-card img,
    .community-card img {
        width: 80px;
    }
}

@media (max-width: 600px) {

    .cards img,
    .chips img {
        width: 60px;
    }

    .btn {
        width: 150px;
        font-size: 18px;
    }

    .form-input {
        width: 90%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px;
    }

    .container {
        padding: 15px;
    }

    .title-section {
        flex-direction: column;
        gap: 20px;
    }

    .left-decorations,
    .right-decorations {
        flex-direction: row;
        gap: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Side Pots Styling */
#sidePots {
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(192, 57, 43, 0.1);
    border: 1px solid #c0392b;
    border-radius: 8px;
}

#sidePots h4 {
    margin: 0 0 8px 0;
    color: #c0392b;
    font-size: 14px;
}

#sidePotsContent div {
    font-size: 12px;
    color: #ccc;
    margin: 2px 0;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Eliminated Players Section Styling */
.eliminated-section {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 8px;
}

.eliminated-section h2 {
    color: #dc3545;
    margin-top: 0;
    font-size: 18px;
}

.eliminated-players {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eliminated-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid #666;
}

.eliminated-player-info h4 {
    margin: 0 0 5px 0;
    color: #dc3545;
    font-size: 16px;
}

.eliminated-player-info p {
    margin: 2px 0;
    font-size: 12px;
    color: #ccc;
}

.rebuy-controls {
    display: flex;
    gap: 8px;
}

.rebuy-controls button {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    min-width: 120px;
}

.rebuy-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Games List Styles */
.games-list-section {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.games-list-section h2 {
    color: #ffd700;
    margin-bottom: 20px;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.games-table th,
.games-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.games-table th {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: bold;
}

.games-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Player Management Styles */
.player-management {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.player-management h2 {
    color: #ffd700;
    margin-bottom: 15px;
}

.add-player-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.add-player-form input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.player-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-link-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
}

.player-link-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.player-name {
    flex: 1;
    min-width: 120px;
}

.btn-copy {
    background: #28a745;
    color: white;
}

.btn-copy:hover {
    background: #218838;
}

.btn-join {
    background: #007bff;
    color: white;
}

.btn-join:hover {
    background: #0056b3;
}

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

/* Dealer Code Display */
.game-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.game-code,
.dealer-code {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.dealer-code {
    color: #ff6b6b;
    font-weight: bold;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #2c3e50;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #d4af37;
    text-align: center;
    color: #ecf0f1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-content input {
    display: block;
    margin: 1rem auto;
    padding: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    width: 150px;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
}

/* Player Links Table */
.player-links-list {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 5px;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: #ecf0f1;
}

.links-table th,
.links-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.link-input-small {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #7f8c8d;
    color: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Creator Credit Styling */
.creator-credit {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffc107;
    object-fit: cover;
    flex-shrink: 0;
}

.creator-text {
    text-align: left;
}

.creator-text p {
    margin: 2px 0;
    color: #ffffff;
    line-height: 1.3;
}

.creator-text strong {
    color: #ffc107;
    font-size: 1.05em;
}

.license-text {
    font-size: 0.85em;
    color: #cccccc !important;
    font-style: italic;
}

/* Mobile responsiveness for new layout */
@media (max-width: 768px) {
    .games-table {
        font-size: 12px;
    }

    .games-table th,
    .games-table td {
        padding: 5px;
    }

    .add-player-form {
        flex-direction: column;
    }

    .add-player-form input {
        width: 100%;
    }

    .player-link-info {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .player-name {
        text-align: center;
        min-width: auto;
    }

    .btn-small {
        width: 100%;
        padding: 8px;
    }

    .creator-info {
        gap: 6px;
    }

    .creator-avatar {
        width: 28px;
        height: 28px;
    }

    .creator-text strong {
        font-size: 1em;
    }
}