/* Online Poker - Main Stylesheet */
/* Color Palette: Deep Green & Gold (Classic Poker) */

:root {
    --primary-dark: #0d1f0d;
    --primary: #1a3a1a;
    --primary-light: #2d5a2d;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #b8960c;
    --red: #dc3545;
    --felt-green: #1e5631;
    --felt-dark: #0f3d1f;
    --text-primary: #ffffff;
    --text-secondary: #b8c5b8;
    --text-muted: #7a8f7a;
    --card-white: #ffffff;
    --card-red: #dc3545;
    --card-black: #1a1a1a;
    --shadow: rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header */
.main-header {
    background: rgba(13, 31, 13, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    gap: 2px;
    font-size: 1.5rem;
}

.card-suit.spade { color: var(--gold); }
.card-suit.heart { color: var(--red); }

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav a {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: rgba(212, 175, 55, 0.1);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Hamburger animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Poker Cards Fan Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.poker-cards-fan {
    position: relative;
    width: 300px;
    height: 350px;
}

.fan-card {
    position: absolute;
    width: 100px;
    height: 140px;
    background: linear-gradient(145deg, #fff, #f0f0f0);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 10px 30px var(--shadow);
    transform-origin: bottom center;
    animation: cardFloat 3s ease-in-out infinite;
}

.fan-card .suit { font-size: 2.5rem; }
.fan-card .suit.red { color: var(--red); }

.card-1 { left: 50%; transform: translateX(-50%) rotate(-20deg); animation-delay: 0s; }
.card-2 { left: 50%; transform: translateX(-50%) rotate(-10deg); animation-delay: 0.2s; }
.card-3 { left: 50%; transform: translateX(-50%) rotate(0deg); animation-delay: 0.4s; z-index: 5; }
.card-4 { left: 50%; transform: translateX(-50%) rotate(10deg); animation-delay: 0.6s; }
.card-5 { left: 50%; transform: translateX(-50%) rotate(20deg); animation-delay: 0.8s; }

@keyframes cardFloat {
    0%, 100% { transform: translateX(-50%) rotate(var(--rotation, 0deg)) translateY(0); }
    50% { transform: translateX(-50%) rotate(var(--rotation, 0deg)) translateY(-10px); }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Poker Game Section */
.game-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.poker-game-container {
    max-width: 1000px;
    margin: 0 auto;
}

.poker-table {
    position: relative;
    margin-bottom: 30px;
}

.table-felt {
    background: radial-gradient(ellipse at center, var(--felt-green) 0%, var(--felt-dark) 100%);
    border-radius: 200px;
    padding: 60px;
    min-height: 500px;
    position: relative;
    border: 15px solid #2d1810;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.table-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.15);
    text-transform: uppercase;
    letter-spacing: 5px;
    pointer-events: none;
}

/* Community Cards */
.community-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.card-slot {
    width: 70px;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-slot .card {
    width: 100%;
    height: 100%;
}

/* Playing Cards */
.card {
    width: 70px;
    height: 100px;
    background: linear-gradient(145deg, #fff, #f5f5f5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.card.back {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border: 2px solid var(--gold);
}

.card.back::before {
    content: '♠♥';
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.5;
}

.card .rank {
    font-size: 1.2rem;
    position: absolute;
    top: 5px;
    left: 8px;
}

.card .suit-icon {
    font-size: 2rem;
}

.card.red { color: var(--red); }
.card.black { color: #1a1a1a; }

/* Pot Display */
.pot-display {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 20px;
    text-align: center;
}

.pot-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.pot-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

/* Player Seats */
.player-seat {
    position: absolute;
    text-align: center;
    z-index: 20;
    background: rgba(13, 31, 13, 0.9);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 10px 15px;
    min-width: 120px;
    transition: var(--transition);
}

.player-seat.active {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    border-color: var(--gold-light);
}

/* When any player is active, dim the others */
.table-felt:has(.player-seat.active) .player-seat:not(.active):not(.player-human) {
    opacity: 0.5;
}

.player-seat.folded {
    opacity: 0.4;
    border-color: var(--text-muted);
}

/* 6-player layout positions */
.seat-top-left { top: 5%; left: 10%; }
.seat-top-center { top: 0; left: 50%; transform: translateX(-50%); }
.seat-top-right { top: 5%; right: 10%; }
.seat-bottom-left { bottom: 15%; left: 5%; }
.seat-bottom-right { bottom: 15%; right: 5%; }
.seat-bottom-center { bottom: -60px; left: 50%; transform: translateX(-50%); }

.player-human {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(30, 86, 49, 0.95);
}

/* Player Avatars */
.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.player-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

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

/* Different avatar colors for each player */
.avatar-1 {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #5dade2;
    color: #d6eaf8;
}

.avatar-2 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #f1948a;
    color: #fadbd8;
}

.avatar-3 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border-color: #bb8fce;
    color: #e8daef;
}

.avatar-4 {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border-color: #76d7c4;
    color: #d1f2eb;
}

.avatar-5 {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #f0b27a;
    color: #fdebd0;
}

.avatar-human {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-light);
    color: var(--primary-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.avatar-human .avatar-svg {
    width: 32px;
    height: 32px;
}

.avatar-crown {
    position: absolute;
    top: -12px;
    font-size: 18px;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Active player avatar glow */
.player-seat.active .player-avatar {
    animation: avatarPulse 1s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 20px rgba(212, 175, 55, 0.6); }
}

/* Folded player avatar */
.player-seat.folded .player-avatar {
    filter: grayscale(80%);
    opacity: 0.6;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.player-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.player-chips {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
}

/* Human Player Horizontal Layout */
.human-player-layout {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
}

.human-player-layout .player-avatar {
    margin: 0;
    flex-shrink: 0;
}

.human-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.human-info-section .player-name {
    font-size: 1rem;
    font-weight: 700;
}

.human-info-section .player-cards {
    margin: 0;
    min-height: auto;
}

.human-chips-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-left: 15px;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
}

.human-chips-section .player-chips-display {
    flex-direction: column;
}

.human-chips-section .player-bet-area {
    margin-top: 0;
}

.player-human.seat-bottom-center {
    min-width: auto;
    padding: 12px 20px;
}

.player-cards,
.opponent-cards {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 8px 0;
    min-height: 50px;
}

.player-cards .card,
.opponent-cards .card {
    width: 40px;
    height: 56px;
    font-size: 0.8rem;
}

.player-bet {
    font-size: 0.8rem;
    color: var(--gold-light);
    font-weight: 600;
    min-height: 18px;
}

.player-action {
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    min-height: 18px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 2px 8px;
}

/* Player Chips Display */
.player-chips-display {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 5px;
}

.my-chips-stack {
    display: flex;
    gap: 2px;
}

/* Human Player Balance - More Prominent */
.player-human .player-chips {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 150, 12, 0.2));
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--gold);
    display: inline-block;
    min-width: 100px;
    text-align: center;
    animation: balancePulse 2s ease-in-out infinite;
}

@keyframes balancePulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }
}

.player-human .player-chips::before {
    content: 'Balance: ';
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.player-bet-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.player-bet-chips {
    display: flex;
    gap: 4px;
    min-height: 24px;
}

.player-bet-amount {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 600;
}

/* Dealer Button */
.dealer-button {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #fff, #ddd);
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    bottom: 30%;
    left: 40%;
    z-index: 25;
}

/* Game Controls */
.game-controls {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.control-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.control-row:last-child {
    margin-bottom: 0;
}

.poker-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.fold-btn {
    background: #666;
    color: white;
}

.fold-btn:hover { background: #777; }

.check-btn {
    background: var(--primary-light);
    color: white;
    border: 2px solid var(--gold);
}

.check-btn:hover { background: var(--primary); }

.call-btn {
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: white;
}

.call-btn:hover { transform: translateY(-2px); }

.raise-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-dark);
}

.raise-btn:hover { transform: translateY(-2px); }

.allin-btn {
    background: linear-gradient(135deg, var(--red), #a02030);
    color: white;
}

.allin-btn:hover { transform: translateY(-2px); }

.hint-btn {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.hint-btn:hover { background: rgba(212, 175, 55, 0.3); }

.new-game-btn {
    background: var(--felt-green);
    color: white;
    border: 2px solid var(--gold);
}

.new-game-btn:hover { background: var(--felt-dark); }

.deal-btn {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    border: 2px solid var(--gold);
}

.deal-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.auto-btn {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.auto-btn:hover { background: rgba(52, 152, 219, 0.3); }

.auto-btn.active {
    background: #3498db;
    color: white;
}

.poker-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.poker-btn:disabled:hover {
    transform: none;
}

/* Bet Slider */
.bet-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
}

#bet-slider {
    width: 150px;
    accent-color: var(--gold);
}

.bet-amount {
    color: var(--gold);
    font-weight: 600;
    min-width: 60px;
}

/* Hand Strength */
.hand-strength-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.strength-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.hand-strength-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.hand-strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e74c3c, #f1c40f, #2ecc71);
    border-radius: 6px;
    transition: width 0.5s ease, background 0.3s ease;
}

.hand-strength-text {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: right;
}

/* Current Bet Display */
.current-bet-display {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.current-bet-display span:last-child {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Game Log */
.game-log {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.log-entry:last-child { border-bottom: none; }

/* Games Grid */
.games-grid-section {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.game-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.game-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.game-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.game-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gold);
    color: var(--primary-dark);
}

.game-badge.coming-soon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

/* How to Play Section */
.how-to-play-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.rule-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.rule-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.rule-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.rule-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hand Rankings */
.hand-rankings {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hand-rankings h3 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.rankings-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.ranking-item .rank {
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.ranking-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    padding: 35px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   BEAUTIFUL EFFECTS & ANIMATIONS
   ============================================ */

/* Shine sweep effect for cards */
@keyframes cardShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.1) 45%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0.1) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
    animation: cardShine 1.5s ease-in-out;
}

/* Glowing border effect */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px var(--gold), 0 0 10px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 15px var(--gold), 0 0 30px rgba(212, 175, 55, 0.5); }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Button hover effects */
.poker-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.poker-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.poker-btn:hover:not(:disabled)::after {
    width: 300px;
    height: 300px;
}

.poker-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Table felt texture effect */
.table-felt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    border-radius: inherit;
    pointer-events: none;
}

/* Pot glow effect */
.pot-display {
    animation: glowPulse 2s ease-in-out infinite;
    border-radius: 20px;
}

/* Active player indicator */
.player-seat.active {
    position: relative;
}

.player-seat.active::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    animation: glowPulse 1s ease-in-out infinite;
    pointer-events: none;
}

/* Smooth number transitions */
.player-chips,
.pot-amount,
.bet-amount-text {
    transition: all 0.3s ease;
}

/* Card shadow depth */
.card {
    box-shadow:
        0 2px 4px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.15),
        0 8px 16px rgba(0,0,0,0.1);
}

/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .rules-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .rankings-list { grid-template-columns: 1fr; }

    /* Poker table adjustments */
    .table-felt {
        min-height: 450px;
    }

    .player-seat {
        padding: 8px 12px;
        min-width: 100px;
    }

    .player-avatar {
        width: 40px;
        height: 40px;
    }

    .avatar-svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13, 31, 13, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
    }

    .main-nav li {
        margin: 0 15px;
    }

    .main-nav a {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
        min-height: 52px;
        transition: all 0.2s ease;
        position: relative;
        border-bottom: none;
    }

    .main-nav a::after {
        content: '\203A';
        font-size: 1.5rem;
        color: var(--gold);
        opacity: 0.5;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .main-nav a:hover,
    .main-nav a:active {
        background: rgba(212, 175, 55, 0.15);
    }

    .main-nav a:active::after {
        transform: translateX(5px);
        opacity: 1;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }

    /* Poker Game Section - Mobile Layout */
    .poker-game-section {
        padding: 70px 0 20px;
    }

    .poker-game-section .container {
        padding: 0 5px;
    }

    .poker-table-wrapper {
        margin-bottom: 10px;
    }

    /* ===== TABLE BECOMES FLEX COLUMN ===== */
    .table-felt {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 8px;
        min-height: auto;
        border-radius: 20px;
        gap: 8px;
    }

    /* Disable position/size transitions on mobile */
    .table-felt,
    .table-felt > *,
    .player-seat,
    .pot-display,
    .community-cards,
    .dealer-button,
    .player-chips,
    .player-name,
    .player-info,
    .opponent-cards {
        transition: opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    }

    /* Table logo hidden */
    .table-logo {
        display: none;
        order: 0;
    }

    /* ===== OPPONENTS - ALL IN A ROW, FIXED SIZE ===== */
    .player-seat:not(.seat-bottom-center) {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 6px 5px;
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 95px !important;
        min-height: 95px !important;
        max-height: 95px !important;
        font-size: 0.7rem;
        border-radius: 10px;
        border-width: 2px;
        transition: opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
        order: 1;
        overflow: hidden;
        box-sizing: border-box !important;
    }

    /* Order for flex layout */
    .seat-top-left { order: 1; }
    .seat-top-center { order: 2; }
    .seat-top-right { order: 3; }
    .seat-bottom-left { order: 4; }
    .seat-bottom-right { order: 5; }

    /* Active player - just opacity and glow, NO movement */
    .player-seat.active {
        opacity: 1 !important;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    }

    /* Disable ::before on mobile to prevent layout issues */
    .player-seat.active::before {
        display: none !important;
    }

    /* Inactive players - dimmed */
    .table-felt:has(.player-seat.active) .player-seat:not(.active):not(.player-human) {
        opacity: 0.5;
    }

    /* Fixed size for opponent cards container */
    .opponent-cards {
        height: 42px;
        min-height: 42px;
    }

    /* ===== POT DISPLAY ===== */
    .pot-display {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        transition: none !important;
        order: 10;
        margin: 5px 0;
        padding: 8px 25px;
        border-radius: 25px;
        background: rgba(0,0,0,0.8);
    }

    .pot-label {
        font-size: 0.7rem;
    }

    .pot-amount {
        font-size: 1.4rem;
        font-weight: 700;
    }

    /* ===== COMMUNITY CARDS - CENTER ===== */
    .community-cards {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        transition: none !important;
        display: flex !important;
        justify-content: center;
        gap: 6px;
        order: 11;
        margin: 10px 0;
        padding: 10px;
        background: rgba(0,0,0,0.3);
        border-radius: 15px;
    }

    .community-cards .card,
    .card-slot {
        width: 50px;
        height: 70px;
        border-radius: 6px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    .community-cards .card {
        background: linear-gradient(145deg, #fff, #f0f0f0);
        border: 2px solid #ddd;
    }

    .community-cards .card .rank {
        font-size: 1.1rem;
        top: 4px;
        left: 5px;
        font-weight: 800;
    }

    .community-cards .card .suit-icon {
        font-size: 1.7rem;
    }

    .card-slot {
        background: rgba(255,255,255,0.1);
        border: 2px dashed rgba(212,175,55,0.6);
    }

    /* ===== HUMAN PLAYER - BOTTOM, FIXED SIZE ===== */
    .seat-bottom-center {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        order: 20;
        width: 100%;
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
        border-radius: 15px;
        padding: 12px 15px;
        margin-top: 5px;
        background: linear-gradient(180deg, rgba(30, 86, 49, 0.98), rgba(15, 61, 31, 0.98));
        border: 2px solid var(--gold);
        transition: opacity 0.3s ease, box-shadow 0.3s ease !important;
        overflow: hidden;
        box-sizing: border-box !important;
    }

    .human-player-layout {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 15px;
        justify-content: center;
    }

    .human-player-layout .player-avatar {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .human-info-section {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .human-info-section .player-name {
        font-size: 1rem;
        font-weight: 700;
        color: var(--gold);
    }

    .human-info-section .player-cards {
        flex-direction: row;
        gap: 6px;
    }

    .human-chips-section {
        border-left: 2px solid rgba(212, 175, 55, 0.5);
        padding-left: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .player-bet-area {
        font-size: 0.8rem;
    }

    /* Dealer button */
    .dealer-button {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        transition: none !important;
        order: 15;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin: 5px 0;
    }

    /* ===== AVATARS ===== */
    .player-avatar {
        width: 32px;
        height: 32px;
        margin: 0 auto 4px;
        border-width: 2px;
    }

    .avatar-svg {
        width: 18px;
        height: 18px;
    }

    .avatar-crown {
        font-size: 16px;
        top: -14px;
    }

    /* Names and chips - fixed line height */
    .player-name {
        font-size: 0.7rem;
        display: block !important;
        white-space: nowrap;
        font-weight: 600;
        line-height: 1.2;
        height: 14px;
        overflow: hidden;
    }

    .player-chips {
        font-size: 0.65rem;
        display: block !important;
        color: var(--gold);
        font-weight: 600;
        line-height: 1.2;
        height: 13px;
        overflow: hidden;
    }

    .player-info {
        height: 28px;
        min-height: 28px;
        overflow: hidden;
    }

    /* Human player balance - BIG */
    .player-human .player-chips {
        font-size: 1.3rem;
        font-weight: 700;
    }

    /* ===== OPPONENT CARDS ===== */
    .opponent-cards {
        margin-top: 4px;
        display: flex !important;
        justify-content: center;
        gap: 3px;
    }

    .opponent-cards .card {
        width: 28px;
        height: 40px;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
        border: 1px solid rgba(255,255,255,0.3);
    }

    .opponent-cards .card.back {
        background: linear-gradient(145deg, #1a5f2a, #0d3d17);
        border: 2px solid var(--gold);
    }

    .opponent-cards .card .rank {
        font-size: 0.6rem;
        top: 2px;
        left: 3px;
        font-weight: 700;
    }

    .opponent-cards .card .suit-icon {
        font-size: 0.85rem;
    }

    /* ===== PLAYER CARDS - BIG ===== */
    .player-cards {
        display: flex !important;
        gap: 8px;
    }

    .player-cards .card {
        width: 60px;
        height: 84px;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.5);
        background: linear-gradient(145deg, #fff, #f8f8f8);
        border: 2px solid #ccc;
    }

    .player-cards .card .rank {
        font-size: 1.3rem;
        top: 5px;
        left: 7px;
        font-weight: 800;
    }

    .player-cards .card .suit-icon {
        font-size: 2rem;
    }

    /* Hide bet/action on opponents */
    .player-seat:not(.seat-bottom-center) .player-bet,
    .player-seat:not(.seat-bottom-center) .player-action {
        display: none;
    }

    /* ===== GAME CONTROLS ===== */
    .game-controls {
        position: relative;
        margin: 10px 0;
        padding: 12px;
        border-radius: 15px;
        background: rgba(13, 31, 13, 0.95);
        border: 1px solid rgba(212, 175, 55, 0.3);
    }

    .control-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-bottom: 8px;
    }

    .control-row:last-child {
        margin-bottom: 0;
    }

    .poker-btn {
        padding: 12px 14px;
        font-size: 0.85rem;
        flex: 1 1 30%;
        min-width: 70px;
        max-width: 110px;
        text-align: center;
        border-radius: 10px;
        font-weight: 600;
    }

    /* Bet slider */
    .bet-slider-container {
        flex: 1 1 50%;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(0,0,0,0.3);
        border-radius: 10px;
    }

    #bet-slider {
        flex: 1;
    }

    .bet-amount {
        font-size: 0.9rem;
        min-width: 50px;
        color: var(--gold);
        font-weight: 700;
    }

    /* Info buttons */
    .control-row.game-info .poker-btn {
        flex: 1 1 22%;
        padding: 10px 8px;
        font-size: 0.75rem;
        min-width: 60px;
    }

    /* ===== HAND STRENGTH ===== */
    .hand-strength-container {
        margin: 8px 0;
        padding: 10px 15px;
        background: rgba(0,0,0,0.6);
        border-radius: 12px;
    }

    .strength-label {
        font-size: 0.75rem;
    }

    .hand-strength-text {
        font-size: 0.9rem;
    }

    /* Game log */
    .game-log {
        max-height: 60px;
        font-size: 0.75rem;
        margin-top: 10px;
    }

    /* Other sections */
    .games-grid, .features-grid { grid-template-columns: 1fr; }
    .rules-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }

    /* Smaller elements */
    .table-felt {
        padding: 8px 5px;
        gap: 6px;
    }

    .player-seat:not(.seat-bottom-center) {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 88px !important;
        min-height: 88px !important;
        max-height: 88px !important;
        padding: 5px 4px;
    }

    .opponent-cards {
        height: 36px;
        min-height: 36px;
    }

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

    .avatar-svg {
        width: 16px;
        height: 16px;
    }

    .player-name {
        font-size: 0.6rem;
    }

    .player-chips {
        font-size: 0.55rem;
    }

    /* Opponent cards */
    .opponent-cards .card {
        width: 24px;
        height: 34px;
    }

    .opponent-cards .card .rank {
        font-size: 0.5rem;
    }

    .opponent-cards .card .suit-icon {
        font-size: 0.7rem;
    }

    /* Community cards */
    .community-cards {
        gap: 4px;
        padding: 8px;
    }

    .community-cards .card,
    .card-slot {
        width: 42px;
        height: 60px;
    }

    .community-cards .card .rank {
        font-size: 0.9rem;
    }

    .community-cards .card .suit-icon {
        font-size: 1.4rem;
    }

    /* Human player */
    .seat-bottom-center {
        padding: 10px 12px;
    }

    .human-player-layout {
        gap: 10px;
    }

    .human-player-layout .player-avatar {
        width: 42px;
        height: 42px;
    }

    .player-cards .card {
        width: 50px;
        height: 70px;
    }

    .player-cards .card .rank {
        font-size: 1.1rem;
    }

    .player-cards .card .suit-icon {
        font-size: 1.6rem;
    }

    .player-human .player-chips {
        font-size: 1.1rem;
    }

    /* Pot */
    .pot-display {
        padding: 6px 18px;
    }

    .pot-amount {
        font-size: 1.2rem;
    }

    /* Controls */
    .game-controls {
        padding: 10px;
    }

    .poker-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 60px;
    }

    .control-row {
        gap: 6px;
    }

    .control-row.game-info .poker-btn {
        padding: 8px 6px;
        font-size: 0.7rem;
        min-width: 52px;
    }
}

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATION
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .poker-game-section {
        padding-top: 55px;
    }

    .table-felt {
        gap: 4px;
        padding: 5px;
    }

    .player-seat:not(.seat-bottom-center) {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
        padding: 3px;
    }

    .opponent-cards {
        height: 30px;
        min-height: 30px;
    }

    .seat-bottom-center {
        padding: 5px 8px;
    }

    .human-player-layout {
        gap: 8px;
    }

    .human-player-layout .player-avatar {
        width: 30px;
        height: 30px;
    }

    .player-cards .card {
        width: 38px;
        height: 54px;
    }

    .community-cards {
        padding: 5px;
        gap: 3px;
    }

    .community-cards .card,
    .card-slot {
        width: 35px;
        height: 50px;
    }

    .opponent-cards .card {
        width: 20px;
        height: 28px;
    }

    .pot-display {
        padding: 4px 12px;
    }

    .pot-amount {
        font-size: 1rem;
    }

    .game-controls {
        padding: 6px;
    }

    .poker-btn {
        padding: 6px 10px;
        font-size: 0.65rem;
        min-width: 50px;
    }

    .control-row.game-info .poker-btn {
        padding: 5px 6px;
        font-size: 0.6rem;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .poker-btn {
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Remove hover effects that don't work on touch */
    .card:hover::before {
        display: none;
    }

    .poker-btn:hover:not(:disabled)::after {
        display: none;
    }

    /* Add active state for touch feedback */
    .poker-btn:active:not(:disabled) {
        background: var(--gold);
        transform: scale(0.98);
    }

    .card:active {
        transform: scale(1.05);
    }

    /* Mobile menu touch friendly */
    .main-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   MOBILE GAME CONTROLS ENHANCEMENTS
   ============================================ */
@media (max-width: 768px) {
    /* Color-coded action buttons */
    .fold-btn {
        background: linear-gradient(180deg, #c0392b, #922b21);
        border-color: #e74c3c;
    }

    .fold-btn:active:not(:disabled) {
        background: #e74c3c;
    }

    .call-btn,
    .check-btn {
        background: linear-gradient(180deg, #27ae60, #1e8449);
        border-color: #2ecc71;
    }

    .call-btn:active:not(:disabled),
    .check-btn:active:not(:disabled) {
        background: #2ecc71;
    }

    .raise-btn,
    .allin-btn {
        background: linear-gradient(180deg, var(--gold), #b8860b);
        color: var(--primary-dark);
    }

    /* Bet slider improved touch */
    #bet-slider {
        -webkit-appearance: none;
        height: 6px;
        border-radius: 3px;
        background: rgba(212, 175, 55, 0.3);
    }

    #bet-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--gold);
        cursor: pointer;
    }

    #bet-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--gold);
        cursor: pointer;
        border: none;
    }

    .bet-amount {
        min-width: 60px;
        text-align: right;
        font-weight: 700;
        color: var(--gold);
    }

    /* Secondary buttons (Hints, Auto, New Game, Deal) */
    .control-row.game-info .poker-btn {
        padding: 10px 8px;
        font-size: 0.75rem;
        background: rgba(212, 175, 55, 0.1);
        border-color: rgba(212, 175, 55, 0.3);
    }

    .control-row.game-info .deal-btn {
        background: linear-gradient(180deg, #3498db, #2980b9);
        border-color: #3498db;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (360px and below)
   ============================================ */
@media (max-width: 360px) {
    .table-felt {
        padding: 6px 4px;
        gap: 5px;
    }

    .player-seat:not(.seat-bottom-center) {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
        padding: 4px 3px;
    }

    .opponent-cards {
        height: 30px;
        min-height: 30px;
    }

    .player-name {
        font-size: 0.5rem !important;
    }

    .player-chips {
        font-size: 0.45rem !important;
    }

    .player-avatar {
        width: 24px;
        height: 24px;
    }

    .opponent-cards .card {
        width: 20px;
        height: 28px;
    }

    .community-cards {
        gap: 3px;
        padding: 6px;
    }

    .community-cards .card,
    .card-slot {
        width: 36px;
        height: 50px;
    }

    .community-cards .card .rank {
        font-size: 0.8rem;
    }

    .community-cards .card .suit-icon {
        font-size: 1.2rem;
    }

    .seat-bottom-center {
        padding: 8px 10px;
    }

    .human-player-layout {
        gap: 8px;
    }

    .human-player-layout .player-avatar {
        width: 36px;
        height: 36px;
    }

    .player-cards .card {
        width: 42px;
        height: 60px;
    }

    .player-cards .card .rank {
        font-size: 0.95rem;
    }

    .player-cards .card .suit-icon {
        font-size: 1.4rem;
    }

    .player-human .player-chips {
        font-size: 1rem !important;
    }

    .pot-display {
        padding: 5px 15px;
    }

    .pot-amount {
        font-size: 1.1rem;
    }

    .control-row.game-info .poker-btn {
        flex: 1 1 45%;
    }

    .poker-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
        min-width: 50px;
    }
}

/* ============================================
   PREVENT SCROLL BOUNCE & IMPROVE SCROLL
   ============================================ */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Smooth scroll to sections */
    html {
        scroll-behavior: smooth;
    }

    /* Prevent pull-to-refresh on game area */
    .poker-game-section {
        overscroll-behavior: contain;
    }
}
