/*
Theme Name: Poker League
Description: A custom WordPress theme for managing poker league scoring, leaderboards, and game statistics.
Version: 1.0
Author: Ashley Hollinworth
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0d0e08;
    min-height: 100vh;
}

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

/* Logo Styles */
.home-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.logo-section {
    margin-bottom: 0.5rem;
}

.poker-logo {
    display: inline-block;
    text-align: center;
}

.logo-emblem {
    margin-bottom: 0.5rem;
}

.logo-chip {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    position: relative;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.chip-border {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d0e08, #0d0e08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-pattern {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #DC143C 0deg 30deg, #000000 30deg 60deg);
}

.logo-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 25px;
    background: #D4AF37;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.fleur-de-lis {
    font-size: 14px;
    color: #000000;
    font-weight: bold;
}

.logo-banner {
    background: linear-gradient(135deg, #0d0e08, #0d0e08);
    color: #D4AF37;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.banner-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
}

.banner-year {
    font-size: 1rem;
    font-weight: bold;
    color: #DC143C;
}

/* Logo image styling */
.poker-logo-img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
}

.site-description {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
.main-navigation {
    background-color: #34495e;
    padding: 0.5rem 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #2c3e50;
}

/* Main Content */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Leaderboard Table */
.leaderboard-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.leaderboard-title {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #D4AF37;
}

.leaderboard-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    margin: 2rem 0;
}

.leaderboard-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.leaderboard-container::-webkit-scrollbar-track {
    background: #1a1b15;
    border-radius: 6px;
}

.leaderboard-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 6px;
    border: 2px solid #1a1b15;
}

.leaderboard-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
}

.leaderboard-table th {
    background: linear-gradient(135deg, #0d0e08, #1a1b15);
    color: #D4AF37;
    padding: 1.2rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-right: 1px solid #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table th:last-child {
    border-right: none;
}

.leaderboard-table td {
    padding: 1rem 1.2rem;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    color: #0d0e08;
    background-color: #ffffff;
    text-align: center;
    font-weight: 500;
}

.leaderboard-table td:first-child {
    text-align: left;
    font-weight: bold;
}

.leaderboard-table td:last-child {
    border-right: none;
    font-weight: bold;
    font-size: 1.1em;
}

.leaderboard-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.leaderboard-table tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.leaderboard-table tr:hover {
    background-color: #fff8dc;
}

.leaderboard-table tr:hover td {
    background-color: #fff8dc;
}

.player-name {
    font-weight: bold;
    color: #0d0e08;
    text-align: left !important;
}

.position-1 { 
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700) !important; 
    color: #000000 !important; 
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.position-2 { 
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #C0C0C0) !important; 
    color: #000000 !important; 
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.position-3 { 
    background: linear-gradient(135deg, #CD7F32, #B8860B, #CD7F32) !important; 
    color: #FFFFFF !important; 
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Karaoke highlight for bottom place */
.karaoke-highlight {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #ffffff !important;
}

.karaoke-highlight td {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #ffffff !important;
    border-right: 1px solid #e74c3c !important;
    border-bottom: 1px solid #e74c3c !important;
}

.karaoke-highlight td:last-child {
    border-right: none !important;
}

.karaoke-highlight .player-name::after {
    content: " 🎤";
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    margin-left: 0.5rem;
}

/* Fancy dress marker using CSS pseudo-element like karaoke */
.fancy-dress-highlight .player-name::after {
    content: " 👠";
    font-size: 1.2rem;
    animation: wiggle 3s infinite;
    margin-left: 0.5rem;
}

/* Combined karaoke + fancy dress for bottom place with no top 2 finish */
.karaoke-highlight.fancy-dress-highlight .player-name::after {
    content: " 🎤 👠";
    font-size: 1.2rem;
    animation: pulse 2s infinite, wiggle 3s infinite;
    margin-left: 0.5rem;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Fancy dress marker */
.fancy-dress-marker {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    animation: wiggle 3s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Make all h2 titles consistent */
h2 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Legend labels (no box, no title) */
.legend-items {
    margin: 0.5rem 0 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: #fff8dc;
    border-color: #D4AF37;
}

.legend-icon {
    font-size: 1rem;
    display: inline-block;
}

.legend-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #0d0e08;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Pot Display */
.pot-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    padding: 2rem;
    margin: 2rem 0;
}

.beer-pizza-container {
    border: 2px solid #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.beer-pizza-container .pot-title {
    color: #e74c3c;
}

.beer-pizza-container .pot-amount-large {
    color: #e74c3c;
    font-weight: bold;
}

.pot-title {
    color: #0d0e08;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 1rem;
}

.pot-main {
    text-align: center;
    margin-bottom: 2rem;
}

.pot-amount-large {
    font-size: 3.5rem;
    font-weight: bold;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.pot-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-style: italic;
}

.prize-breakdown {
    margin-top: 2rem;
}

.prize-breakdown h3 {
    color: #0d0e08;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.prize-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.prize-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.prize-item.position-1 {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prize-item.position-2 {
    border-color: #C0C0C0;
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #C0C0C0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prize-item.position-3 {
    border-color: #CD7F32;
    background: linear-gradient(135deg, #CD7F32, #B8860B, #CD7F32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prize-position {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-item.position-1 .prize-position,
.prize-item.position-1 .prize-percentage,
.prize-item.position-1 .prize-amount {
    color: #000000;
}

.prize-item.position-2 .prize-position,
.prize-item.position-2 .prize-percentage,
.prize-item.position-2 .prize-amount {
    color: #000000;
}

.prize-item.position-3 .prize-position,
.prize-item.position-3 .prize-percentage,
.prize-item.position-3 .prize-amount {
    color: #FFFFFF;
}

.prize-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

.prize-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d0e08;
}

/* Game History Accordion */
.game-history-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    padding: 2rem;
    margin: 2rem 0;
}

.history-title {
    color: #0d0e08;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 1rem;
}

.history-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #D4AF37;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #fff8dc;
}

.accordion-item.active .accordion-header {
    background: linear-gradient(135deg, #fff8dc, #f8f9fa);
    border-bottom: 1px solid #D4AF37;
}

.game-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d0e08;
}

.game-number {
    color: #D4AF37;
    font-weight: bold;
    margin-right: 0.5rem;
}

.game-winner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.winner-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.winner-name {
    font-size: 1rem;
    font-weight: bold;
    color: #D4AF37;
}

.no-winner {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.game-stats-summary {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0d0e08;
}

.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #D4AF37;
    transition: all 0.3s ease;
}

.toggle-icon {
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.game-details {
    padding: 1.5rem;
    background: transparent;
    color: #ffffff;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: bold;
    color: #ffffff;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: bold;
    color: #D4AF37;
    font-size: 1rem;
}

.key-events h4 {
    color: #0d0e08;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 0.5rem;
}

.key-events ul,
.key-events .events-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
}

.key-events li,
.key-events .event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
    color: #0d0e08;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e0e0e0;
}

.event-item.event-knockout {
    border-left-color: #e74c3c;
}

.event-item.event-special_hand {
    border-left-color: #9b59b6;
}

.event-item.event-elimination {
    border-left-color: #95a5a6;
}

.event-time {
    font-weight: bold;
    color: #7f8c8d;
    min-width: 60px;
    font-size: 0.8rem;
}

.event-description {
    flex: 1;
    color: #0d0e08;
}

.no-events {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Game Placings Table */
.game-placings {
    margin-bottom: 2rem;
}

.game-placings h4 {
    color: #0d0e08;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 0.5rem;
}

.placings-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.placings-header {
    display: grid;
    grid-template-columns: 60px 1fr 50px 50px 50px 80px;
    background: linear-gradient(135deg, #0d0e08, #1a1b15);
    color: #D4AF37;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.placings-header > div {
    padding: 0.8rem 0.5rem;
    text-align: center;
    border-right: 1px solid #D4AF37;
}

.placings-header > div:last-child {
    border-right: none;
}

.placing-row {
    display: grid;
    grid-template-columns: 60px 1fr 50px 50px 50px 80px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.placing-row:hover:not(.placing-position-1):not(.placing-position-2):not(.placing-position-3) {
    background-color: #f8f9fa;
}

.placing-row:last-child {
    border-bottom: none;
}

.placing-row > div {
    padding: 0.8rem 0.5rem;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #0d0e08;
}

.placing-row > div:last-child {
    border-right: none;
}

.placing-player {
    text-align: left !important;
    font-weight: bold;
}

/* Position-specific styling */
.placing-row.placing-position-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700) !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.placing-row.placing-position-1 > div {
    color: #000000 !important;
    font-weight: bold !important;
    border-right-color: rgba(0, 0, 0, 0.2) !important;
}

.placing-row.placing-position-2 {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #C0C0C0) !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.placing-row.placing-position-2 > div {
    color: #000000 !important;
    font-weight: bold !important;
    border-right-color: rgba(0, 0, 0, 0.2) !important;
}

.placing-row.placing-position-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B, #CD7F32) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.placing-row.placing-position-3 > div {
    color: #FFFFFF !important;
    font-weight: bold !important;
    border-right-color: rgba(255, 255, 255, 0.2) !important;
}
.rules-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    padding: 2rem;
    margin-bottom: 2rem;
}

.rules-title {
    color: #0d0e08;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 1rem;
}

.rules-overview {
    max-width: 720px;
    margin: 0 auto;
}

.rules-overview p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.rules-overview p:last-child {
    margin-bottom: 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.rule-section h3 {
    color: #D4AF37;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid #e74c3c;
    padding-left: 1rem;
}

.rule-section ul {
    list-style: none;
    padding-left: 0;
}

.rule-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    color: #000000;
}

.rule-section li:before {
    content: "♠ ";
    color: #e74c3c;
    font-weight: bold;
}

/* Special Hands */
.special-hands {
    background: linear-gradient(135deg, #0d0e08, #1a1b15);
    color: #D4AF37;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #D4AF37;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.special-hands h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #D4AF37;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

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

.hand-item {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0d0e08;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #0d0e08;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hand-item.penalty {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hand-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.hand-points {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #27ae60;
    padding-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Live Scorer Page Styles */
.live-scorer-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.scorer-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.start-game-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.players-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.player-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.player-checkbox:hover {
    background: #e8f4f8;
}

.player-checkbox input {
    margin-right: 0.5rem;
}

.active-game-dashboard {
    display: grid;
    gap: 2rem;
}

.game-info {
    background: linear-gradient(135deg, #0d0e08, #1a1b15);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #D4AF37;
}

.game-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Winner Declaration Section */
.winner-declaration {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FF8C00;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.winner-declaration .section-header h4 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.winner-declaration .section-header p {
    color: #333;
    font-weight: 500;
}

.winner-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #FF8C00;
}

.winner-player {
    margin-bottom: 1rem;
}

.winner-label {
    font-weight: bold;
    color: #333;
    margin-right: 0.5rem;
}

.winner-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
}

.winner-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.winner-stats .stat {
    background: #FFD700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    color: #000;
    border: 1px solid #FF8C00;
}

.btn-winner {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: 2px solid #E55A2B;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-winner:hover {
    background: linear-gradient(135deg, #E55A2B, #D67E1A);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-winner:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Game Complete Section */
.game-complete {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 2px solid #1e7e34;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
}

.game-complete .section-header h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-complete .section-header p {
    color: #e8f5e8;
    font-weight: 500;
}

.complete-actions {
    margin-top: 1.5rem;
}

.btn-complete {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 2px solid #1e7e34;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-complete:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-complete:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.control-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.control-section h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-row select {
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
}

.special-hand-link-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 8px;
    color: #1b5e20;
}
.special-hand-link-intro {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #1b5e20;
    font-weight: 500;
}
.special-hand-link-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.special-hand-link-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
}
.special-hand-link-input:hover {
    border-color: #D4AF37;
    background: #fffef8;
}
.special-hand-link-row .btn-share {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.special-hand-link-row .btn-share:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-1px);
}
/* Hide "Deduct from" when "Let player decide" is checked (class toggled by JS) */
#special-hand-deduct-wrap.special-hand-deduct-hidden {
    display: none !important;
}

.special-hand-let-player-decide {
    grid-column: 1 / -1;
}
.special-hand-let-player-decide label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Player choice page (shortcode) - hide main page title, we show it below logo */
.has-poker-choice-shortcode .entry-header {
    display: none;
}

.poker-choice-page-title {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #D4AF37;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.poker-choice-page {
    max-width: 480px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
.poker-choice-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.poker-choice-logo .poker-logo-img {
    max-height: 80px;
    width: auto;
}
.poker-choice-logo .poker-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.poker-choice-logo .logo-chip {
    width: 56px;
    height: 56px;
}
.poker-choice-logo .banner-text {
    font-size: 1rem;
}
.poker-choice-logo .banner-year {
    font-size: 0.85rem;
}
.poker-special-hand-choice {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    color: #0d0e08;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 2px solid #D4AF37;
}
.poker-special-hand-choice .poker-choice-hello {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0d0e08;
    margin-bottom: 0.5rem;
}
.poker-special-hand-choice .poker-choice-intro,
.poker-special-hand-choice .poker-choice-prompt {
    margin-bottom: 1rem;
}
.poker-special-hand-choice p {
    margin-bottom: 1rem;
}
.poker-special-hand-choice .poker-choice-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.poker-special-hand-choice .poker-choice-select {
    margin-left: 0.5rem;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #D4AF37;
    border-radius: 6px;
    background: #fff;
    color: #0d0e08;
    min-width: 160px;
}
.poker-special-hand-choice .poker-choice-select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}
.poker-special-hand-choice .btn.poker-choice-submit {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0d0e08;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.poker-special-hand-choice .btn.poker-choice-submit:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}
.poker-choice-done {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    color: #0d0e08;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 2px solid #D4AF37;
}
.poker-choice-done p {
    margin: 0;
    font-size: 1.1rem;
}
.poker-choice-message {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #0d0e08;
}

.live-scoreboard {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

#participants-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.participant-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    transition: transform 0.3s;
}

.participant-card.eliminated {
    border-left-color: #e74c3c;
    opacity: 0.7;
}

.participant-card:hover {
    transform: translateY(-2px);
}

.player-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.player-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.player-stats span {
    background: #ecf0f1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.events-log {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

#events-display {
    margin-top: 1rem;
}

.event-item {
    background: white;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.event-item.event-knockout {
    border-left-color: #e74c3c;
}

.event-item.event-special_hand {
    border-left-color: #f39c12;
}

.event-item.event-elimination {
    border-left-color: #95a5a6;
}

.event-time {
    font-weight: bold;
    margin-right: 1rem;
    color: #7f8c8d;
}

.complete-game-section {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.game-status-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d0e08;
}

.status-value.active-count {
    color: #e74c3c;
}

.status-value.eliminated-count {
    color: #27ae60;
}

.completion-note {
    margin-top: 1rem;
    color: #e74c3c;
    font-style: italic;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Admin Tools Section */
.admin-tools-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #e74c3c;
}

.admin-tools-section h3 {
    color: #e74c3c;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-tool {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.admin-tool h4 {
    color: #0d0e08;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.admin-tool p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    font-size: 0.9rem;
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h4 {
    margin: 0;
    color: #0d0e08;
    font-size: 1.2rem;
}

.section-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Force metallic gradients for main leaderboard table */
.leaderboard-table tr.position-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700) !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.leaderboard-table tr.position-1 td {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700) !important;
    color: #000000 !important;
    font-weight: bold !important;
    border-right-color: rgba(0, 0, 0, 0.2) !important;
}

.leaderboard-table tr.position-2 {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #C0C0C0) !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.leaderboard-table tr.position-2 td {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #C0C0C0) !important;
    color: #000000 !important;
    font-weight: bold !important;
    border-right-color: rgba(0, 0, 0, 0.2) !important;
}

.leaderboard-table tr.position-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B, #CD7F32) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.leaderboard-table tr.position-3 td {
    background: linear-gradient(135deg, #CD7F32, #B8860B, #CD7F32) !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
    border-right-color: rgba(255, 255, 255, 0.2) !important;
}

/* Force metallic gradients for placings table - higher specificity */
.game-placings .placing-row.placing-position-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700) !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.game-placings .placing-row.placing-position-1 > div {
    color: #000000 !important;
    font-weight: bold !important;
    border-right-color: rgba(0, 0, 0, 0.2) !important;
}

.game-placings .placing-row.placing-position-2 {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #C0C0C0) !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.game-placings .placing-row.placing-position-2 > div {
    color: #000000 !important;
    font-weight: bold !important;
    border-right-color: rgba(0, 0, 0, 0.2) !important;
}

.game-placings .placing-row.placing-position-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B, #CD7F32) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.game-placings .placing-row.placing-position-3 > div {
    color: #FFFFFF !important;
    font-weight: bold !important;
    border-right-color: rgba(255, 255, 255, 0.2) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Mobile logo optimization - make much smaller */
    .home-header {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .logo-section {
        margin-bottom: 0.25rem;
    }
    
    .logo-chip {
        width: 50px;
        height: 50px;
    }
    
    .logo-shield {
        width: 12px;
        height: 15px;
    }
    
    .fleur-de-lis {
        font-size: 8px;
    }
    
    .logo-banner {
        padding: 0.4rem 0.8rem;
    }
    
    .banner-text {
        font-size: 0.9rem;
    }
    
    .banner-year {
        font-size: 0.8rem;
    }
    
    .poker-logo-img {
        max-width: 150px;
        margin-bottom: 0.25rem;
    }
    
    /* Mobile table optimization */
    .leaderboard-table {
        font-size: 0.8rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.4rem 0.3rem;
    }
    
    /* Mobile name optimization - show only first name + initial */
    .player-name {
        white-space: nowrap;
        overflow: visible;
        word-wrap: break-word;
        max-width: none;
    }
    
    /* Ensure the player name cell doesn't truncate content */
    .leaderboard-table td:nth-child(1) {
        overflow: visible;
        white-space: nowrap;
    }
    
    /* Ensure emojis display properly on mobile */
    .fancy-dress-marker {
        display: inline !important;
        font-size: 1.5rem !important;
        margin-left: 0.5rem !important;
        animation: wiggle 3s infinite !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #e74c3c !important;
        background: rgba(255, 255, 255, 0.8) !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
    }
    
    /* Ensure table fits on mobile width */
    .leaderboard-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .leaderboard-table {
        min-width: 100%;
        table-layout: fixed;
    }
    
    .leaderboard-table th:nth-child(1),
    .leaderboard-table td:nth-child(1) {
        width: 45%;
        max-width: 45%;
        min-width: 120px;
    }
    
    .leaderboard-table th:nth-child(2),
    .leaderboard-table td:nth-child(2),
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3),
    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4),
    .leaderboard-table th:nth-child(5),
    .leaderboard-table td:nth-child(5) {
        width: 13.75%;
        max-width: 13.75%;
        text-align: center;
    }
    
    /* Make points column even more prominent on mobile */
    .leaderboard-table td:nth-child(5) {
        font-weight: bold;
        font-size: 1.2em;
        color: #D4AF37;
    }
    
    
    .rules-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .game-controls {
        grid-template-columns: 1fr;
    }
    
    .players-selection {
        grid-template-columns: 1fr;
    }
    
    #participants-display {
        grid-template-columns: 1fr;
    }
    
    /* Shorten column headers in placings table */
    .placings-header {
        grid-template-columns: 30px 1fr 30px 25px 40px;
        font-size: 0.7rem;
    }
    
    .placing-row {
        grid-template-columns: 30px 1fr 30px 25px 40px;
        font-size: 0.7rem;
    }
    
    .placings-header > div,
    .placing-row > div {
        padding: 0.4rem 0.2rem;
    }
    
    /* Mobile scorer container optimization */
    .live-scorer-container {
        padding: 1rem;
        margin: 0.5rem 0 1rem 0;
    }
    
    /* Mobile form optimization */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .simple-players-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .simple-player-card {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Mobile Scorer Page Optimization */
    .live-scorer-container {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .start-game-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
        padding-bottom: 0.4rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input[type="date"] {
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    .player-selection-controls {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 120px;
    }
    
    .simple-players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .simple-player-card {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        gap: 0.5rem;
        border-radius: 8px;
    }
    
    .simple-player-card .player-name {
        font-size: 0.85rem;
    }
    
    .simple-checkbox {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .simple-checkbox:checked::after {
        font-size: 10px;
    }
    
    .selection-summary {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .count-number {
        font-size: 1.3rem;
    }
    
    .count-label {
        font-size: 0.9rem;
    }
    
    /* Mobile Active Game Controls */
    .game-info-card {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .game-status {
        margin-bottom: 1rem;
    }
    
    .game-status h3 {
        font-size: 1rem;
    }
    
    .status-indicator {
        width: 10px;
        height: 10px;
        margin-right: 0.5rem;
    }
    
    .game-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .detail-item {
        padding: 0.5rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    .game-controls {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .control-section {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .control-section .section-header {
        margin-bottom: 1rem;
    }
    
    .control-section .section-header h4 {
        font-size: 0.95rem;
        padding-left: 0.5rem;
        margin-bottom: 0.3rem;
        letter-spacing: 0.5px;
    }
    
    .control-section .section-header p {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
    
    .form-row {
        gap: 0.75rem;
    }
    
    .form-field {
        margin-bottom: 0.75rem;
    }
    
    .form-field label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .form-field select {
        font-size: 0.85rem;
        padding: 0.5rem;
        border-radius: 6px;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .btn-icon {
        font-size: 1em;
    }
    
    .btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-knockout,
    .btn-special {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Mobile Scoreboard */
    #participants-display {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .participant-card {
        padding: 1rem;
    }
    
    .player-name {
        font-size: 0.95rem;
    }
    
    .position-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .stat-item {
        padding: 0.75rem;
        min-height: 70px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Mobile Events Log */
    .events-log {
        padding: 1rem;
        max-height: 400px;
    }
    
    .event-item {
        padding: 0.75rem;
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }
    
    .event-time {
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .event-description {
        font-size: 0.85rem;
    }
    
    /* Mobile Game Complete Section */
    .complete-game-section {
        padding: 1rem;
    }
    
    .game-status-info {
        font-size: 0.9rem;
    }
    
    .status-label {
        font-size: 0.8rem;
    }
    
    .status-value {
        font-size: 1.1rem;
    }
    
    .completion-note {
        font-size: 0.85rem;
    }
    
    /* Mobile Winner Declaration */
    .winner-declaration {
        padding: 1rem;
    }
    
    .winner-declaration h3 {
        font-size: 1.1rem;
    }
    
    .winner-info {
        font-size: 0.9rem;
    }
    
    /* Mobile Game History Accordion */
    .game-history-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .history-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .accordion-item {
        border-radius: 8px;
    }
    
    .accordion-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .game-summary {
        width: 100%;
        order: 1;
    }
    
    .game-date {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .game-winner {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .winner-label {
        font-size: 0.85rem;
    }
    
    .winner-name {
        font-size: 0.95rem;
    }
    
    .game-stats-summary {
        order: 2;
        gap: 1.5rem;
        width: auto;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .accordion-toggle {
        order: 3;
        width: 28px;
        height: 28px;
    }
    
    .toggle-icon {
        font-size: 0.9rem;
    }
    
    .game-details {
        padding: 1rem;
    }
    
    .game-placings h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Adjust placing table for mobile in accordion */
    .game-placings .placings-table {
        font-size: 0.75rem;
    }
    
    .game-placings .placings-header,
    .game-placings .placing-row {
        grid-template-columns: 40px 1fr 35px 35px 35px 50px;
        gap: 0.25rem;
        padding: 0.4rem 0.25rem;
    }
    
    .game-placings .placing-position,
    .game-placings .placing-base,
    .game-placings .placing-knockouts,
    .game-placings .placing-special,
    .game-placings .placing-points {
        font-size: 0.75rem;
    }
    
    .game-placings .placing-player {
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wiggle {
    0%, 7% { transform: rotateZ(0); }
    15% { transform: rotateZ(-15deg); }
    20% { transform: rotateZ(10deg); }
    25% { transform: rotateZ(-10deg); }
    30% { transform: rotateZ(6deg); }
    35% { transform: rotateZ(-4deg); }
    40%, 100% { transform: rotateZ(0); }
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
