/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0d5a0d;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Site Header */
.site-header {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    color: #ffd700;
    margin: 0;
}

/* Main Content */
.container {
    max-width: 1200px;
    width: 100%;
    padding: 10px;
    margin: 0 auto;
    flex: 1;
}

.game-header {
    margin-bottom: 15px;
    text-align: center;
}

.game-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.balance {
    font-size: 1.5rem;
    color: #ffd700;
}

.language-selector select {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid #ffd700;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.language-selector select option {
    background-color: #1a7a1a;
}

/* Game area */
.game-area {
    background-color: #1a7a1a;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.dealer-section, .player-section {
    text-align: center;
    margin-bottom: 15px;
}

.hand {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

/* Card styles */
.card {
    width: 70px;
    height: 98px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.3s ease;
    font-family: Georgia, serif;
}

.card.empty {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.card.back {
    background: linear-gradient(45deg, #2b5876 25%, #4e4376 25% 50%, #2b5876 50% 75%, #4e4376 75%);
    background-size: 10px 10px;
    border: 2px solid #fff;
}

.card.face {
    background-color: #fffef5;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: #000; /* Default text color */
}

/* Card colors */
.card.hearts,
.card.diamonds {
    color: #d40000;
}

.card.clubs,
.card.spades {
    color: #000;
}

/* Corner rank and suit */
.card .rank-top,
.card .rank-bottom {
    position: absolute;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1;
    color: inherit;
}

.card .suit-top,
.card .suit-bottom {
    position: absolute;
    font-size: 0.75rem;
    line-height: 1;
    color: inherit;
}

.card .rank-top {
    top: 3px;
    left: 3px;
}

.card .suit-top {
    top: 24px;
    left: 3px;
}

.card .rank-bottom {
    bottom: 3px;
    right: 3px;
    transform: rotate(180deg);
}

.card .suit-bottom {
    bottom: 24px;
    right: 3px;
    transform: rotate(180deg);
}

/* Center suits */
.card .center-suits {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: inherit;
}

.hand-info {
    font-size: 1.2rem;
    margin-top: 10px;
    min-height: 30px;
}

/* Betting area */
.betting-area {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.bet-spot {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.bet-spot label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ffd700;
}

.bet-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Controls */
.controls {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

/* Sticky controls for hand setting (Pai Gow Poker) */
#setting-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 122, 26, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 2px solid #4ecdc4;
    border-radius: 0;
    margin: 0;
    max-width: none;
}

#setting-controls .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#setting-controls .btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: capitalize;
}

/* Info button */
.info-btn {
    position: absolute;
    top: -8px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #4ecdc4;
    background-color: rgba(13, 90, 13, 0.95);
    color: #4ecdc4;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.info-btn:hover {
    background-color: #4ecdc4;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.8);
}

.info-btn svg {
    width: 14px;
    height: 14px;
}

.controls h3 {
    margin-bottom: 15px;
}

.bet-input {
    display: inline-block;
    margin: 10px 15px;
}

.bet-input label {
    margin-right: 10px;
}

.bet-input input {
    width: 80px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

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

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

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

.btn-success:hover {
    background-color: #218838;
}

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

.btn-danger:hover {
    background-color: #c82333;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

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

/* Result display */
.result-display {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 122, 26, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 2px solid #ffd700;
    padding: 20px;
    text-align: center;
}

.result-display .result-message {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.result-display .result-details {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.result-display .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.payout-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
}

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

.payout-table th {
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* Card selection styles for Pai Gow Poker */
.card.selectable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card.selectable:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.card.selected {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(255, 217, 61, 0.6);
    border: 3px solid #ffd93d;
}

.card.selected:hover {
    transform: translateY(-12px);
    box-shadow: 0 10px 25px rgba(255, 217, 61, 0.8);
}

/* Card selection counter */
.selection-counter {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #ffd93d;
}

.selection-counter h4 {
    color: #ffd93d;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.counter-text {
    font-size: 1rem;
    color: #e0e0e0;
    margin: 5px 0;
}

.counter-text.error {
    color: #ff6b6b;
    font-weight: bold;
}

.counter-text.success {
    color: #4caf50;
    font-weight: bold;
}

/* 7-card display container */
.all-cards {
    margin-bottom: 20px;
}

.all-cards.hidden {
    display: none;
}

/* Error message styles */
.error-message {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.error-message h4 {
    color: #dc3545;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.error-message p {
    color: #ffb3b3;
    margin: 0;
    font-size: 0.95rem;
}

/* Deal button for new game - removed special styling, will use default btn-primary */

/* Animations */
@keyframes cardDeal {
    from {
        transform: translateY(-50px) rotateY(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateY(0);
        opacity: 1;
    }
}

.card.dealing {
    animation: cardDeal 0.5s ease-out;
}

/* Site Footer */
.site-footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: 40px;
    position: relative;
    z-index: 1; /* Below sticky buttons */
}

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

.footer-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive design for Pai Gow */
@media (max-width: 900px) {
    .pai-gow-poker .table-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hand {
        gap: 10px;
    }
    
    .card {
        width: 80px;
        height: 112px;
    }
    
    .card .rank-top,
    .card .rank-bottom {
        font-size: 1rem;
    }
    
    .card .suit-top,
    .card .suit-bottom {
        font-size: 0.8rem;
    }
    
    .card .center-suits {
        font-size: 2rem;
    }
    
    .betting-area {
        gap: 20px;
    }
    
    .bet-spot {
        width: 80px;
        height: 80px;
    }
}

/* Let It Ride specific styles */
.bet-status {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    white-space: nowrap;
}

.bet-status.pulled-back {
    color: #ff6b6b;
    font-style: italic;
    font-weight: bold;
    background: rgba(255, 107, 107, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.bet-spot {
    position: relative;
    transition: all 0.3s ease;
}

.bet-spot.active {
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    background: rgba(78, 205, 196, 0.05);
}

.bet-spot.inactive {
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.05);
}

.bet-spot.current-decision {
    border-color: #ffd93d;
    box-shadow: 0 0 15px rgba(255, 217, 61, 0.7);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 217, 61, 0.7);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 217, 61, 0.9);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 217, 61, 0.7);
    }
}

.decision-controls {
    text-align: center;
    padding: 20px;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 10px;
    margin: 20px 0;
}

.decision-controls h3 {
    color: #ffd93d;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #2a2a2a;
    border: 2px solid #4ecdc4;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #ffd93d;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    min-width: 100px;
}

/* Mississippi Stud and Let It Ride community cards */
.community-section {
    text-align: center;
    margin: 30px 0;
}

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

/* Payout tables for games with multiple tables */
.payout-tables {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.payout-section {
    text-align: center;
}

.payout-section h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Make payout tables more compact for Pai Gow */
.pai-gow-poker .payout-table {
    font-size: 0.9em;
}

.pai-gow-poker .payout-table th,
.pai-gow-poker .payout-table td {
    padding: 6px 12px;
}

/* Pai Gow Poker enhanced layout */
.pai-gow-poker {
    display: flex;
    flex-direction: column;
    padding-bottom: 220px; /* Space for sticky controls + footer */
}

/* Ensure payout details and footer are accessible */
.payout-details {
    margin-bottom: 250px; /* Space for footer + sticky buttons */
}

.pai-gow-poker .table-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.pai-gow-poker .hands-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.pai-gow-poker .hand-group {
    margin-bottom: 10px;
}

.pai-gow-poker .hand-group h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #ffd700;
}

.pai-gow-poker .all-cards {
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid #4ecdc4;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Compact controls */
.pai-gow-poker .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.pai-gow-poker .bet-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pai-gow-poker .input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pai-gow-poker .input-group label {
    font-size: 0.9rem;
}

.pai-gow-poker .input-group input {
    width: 60px;
}

/* Play buttons for Four Card Poker */
.play-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: #2a2a2a;
    border-left: 4px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 15px;
    flex: 1;
    color: #fff;
}

.toast-icon {
    font-size: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 15px;
    transition: color 0.2s ease;
}

.toast-close:hover,
.toast-close:focus {
    color: #fff;
    outline: none;
}

/* Loading Spinner Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(3px);
}

.loading-overlay.hidden {
    display: none;
}

.loading-overlay-element {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 9997;
    backdrop-filter: blur(2px);
}

.loading-spinner-container {
    text-align: center;
    color: #fff;
}

.loading-spinner {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.loading-spinner-small {
    width: 32px;
    height: 32px;
}

.loading-spinner .spinner-ring {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid #4ecdc4;
    border-radius: 50%;
    animation: loading-spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #4ecdc4 transparent transparent transparent;
}

.loading-spinner-small .spinner-ring {
    width: 26px;
    height: 26px;
    margin: 3px;
    border-width: 3px;
}

.loading-spinner .spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.loading-spinner .spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
}

.loading-spinner .spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes loading-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 15px;
    font-size: 14px;
    color: #ccc;
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: loading-spinner 1s linear infinite;
}

.btn.processing {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Sticky controls mobile adjustments */
    #setting-controls .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    #setting-controls .btn {
        width: 100%;
        max-width: 400px;
    }

    /* Result display mobile adjustments */
    .result-display .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .result-display .btn {
        width: 100%;
        max-width: 400px;
    }

    .result-display .result-message {
        font-size: 1.2rem;
    }

    .result-display .result-details {
        font-size: 1rem;
    }

    /* Increase bottom padding on mobile to account for stacked buttons */
    .pai-gow-poker {
        padding-bottom: 300px;
    }

    .payout-details {
        margin-bottom: 320px;
    }

    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }

    .toast {
        margin-bottom: 8px;
    }

    /* Larger touch targets for inputs */
    input[type="number"] {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px;
    }

    /* Better spacing for betting inputs on mobile */
    .bet-inputs {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .input-group {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .input-group label {
        margin-bottom: 5px;
        font-weight: bold;
    }

    /* Action buttons responsive layout */
    .action-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
        margin-top: 15px;
    }

    /* Improve game area layout on mobile */
    .game-area {
        padding: 20px 15px;
    }

    .betting-area {
        flex-wrap: wrap;
        gap: 15px;
    }

    .bet-spot {
        width: 70px;
        height: 70px;
        padding: 8px;
    }

    .bet-spot label {
        font-size: 0.8rem;
    }

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

    /* Improved mobile card layout */
    .community-cards {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Better mobile navigation */
    .game-controls {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .balance {
        font-size: 1.3rem;
    }
}

/* Screen Reader Only Content */
.screen-reader-only {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Focus styles for better keyboard navigation */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #fff;
    }
    
    .btn {
        border: 2px solid;
    }
    
    .toast {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-spinner .spinner-ring {
        animation: none;
    }
    
    .loading-spinner .spinner-ring:after {
        content: '⟳';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        color: #4ecdc4;
    }
}

/* Keyboard Help Styles */
.keyboard-help h3 {
    color: #ffd93d;
    margin-bottom: 20px;
    text-align: center;
}

.shortcut-list {
    display: grid;
    gap: 10px;
}

.shortcut-list div {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

kbd {
    background: #444;
    border: 1px solid #666;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    margin-right: 8px;
    padding: 2px 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PAI GOW POKER - SIDEBAR LAYOUT STYLES
   ============================================ */

/* Main app container */
.pgp-app-container {
    flex: 1;
    display: flex;
    padding-bottom: 80px; /* Space for footer and content */
    min-height: calc(100vh - 140px); /* Minimum height to fill viewport */
}

.pgp-app-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar with controls */
.pgp-sidebar {
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 2px solid #ffd700;
    min-height: 600px; /* Ensure minimum height for content */
}

.pgp-game-logo {
    text-align: center;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #ffd700;
}

.pgp-game-logo h2 {
    font-size: 1.4rem;
    color: #ffd700;
    margin-bottom: 5px;
}

.pgp-game-logo small {
    color: #999;
    font-size: 0.85rem;
}

.pgp-balance-display {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid #4ecdc4;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.pgp-balance-label {
    font-size: 0.85rem;
    color: #4ecdc4;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pgp-balance-amount {
    font-size: 1.8rem;
    color: #fff;
    font-weight: bold;
}

/* Betting section */
.pgp-betting-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.pgp-section-title {
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pgp-bet-control {
    margin-bottom: 20px;
}

.pgp-bet-control label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 8px;
}

.pgp-bet-value {
    color: #4ecdc4;
    font-weight: bold;
}

.pgp-bet-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 100%);
    outline: none;
    margin-bottom: 10px;
}

.pgp-bet-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pgp-bet-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Bet Limits Display */
.pgp-bet-limits {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0 0.25rem;
}

.pgp-bet-limit-min,
.pgp-bet-limit-max {
    color: rgba(255, 215, 0, 0.6);
    letter-spacing: 0.5px;
}

.pgp-bet-limit-max {
    text-align: right;
}

/* Validation message for inline bet editing */
.pgp-validation-msg {
    position: absolute;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    color: #ff8888;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 4px;
    border: 1px solid rgba(255, 102, 102, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.pgp-quick-bet-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pgp-quick-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.pgp-quick-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.pgp-quick-chip.selected {
    background: #4ecdc4;
    border-color: #4ecdc4;
    color: #1a1a1a;
    font-weight: bold;
}

/* Action buttons */
.pgp-action-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pgp-btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pgp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.pgp-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pgp-btn-secondary {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background: transparent;
    color: #4ecdc4;
    border: 2px solid #4ecdc4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pgp-btn-secondary:hover {
    background: rgba(78, 205, 196, 0.1);
}

.pgp-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar footer */
.pgp-sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: #999;
    text-align: center;
}

/* Main game area */
.pgp-main-content {
    background: radial-gradient(ellipse at center, #2a8a2a 0%, #0a4a0a 100%);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    padding-bottom: 200px; /* Extra space for selection area */
    min-height: 800px; /* Ensure minimum height for all content */
}

.pgp-game-table {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: 500px;
}

.pgp-table-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 250px; /* Ensure space for cards and info */
}

.pgp-player-label {
    font-size: 1.1rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.pgp-hands-container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.pgp-hand-wrapper {
    text-align: center;
}

.pgp-hand-wrapper .hand {
    margin-bottom: 8px;
}

/* Updated card sizing with clamp for responsiveness */
.pgp-main-content .card {
    width: clamp(60px, 6vw, 90px);
    height: clamp(84px, 8.4vw, 126px);
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.pgp-hand-type {
    font-size: 0.85rem;
    color: #4ecdc4;
    text-transform: uppercase;
}

.pgp-hand-rank {
    font-size: 0.95rem;
    color: #ffd700;
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
}

/* Selection area for 7 cards */
.pgp-selection-area {
    margin-top: 30px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid #4ecdc4;
    border-radius: 15px;
    padding: 15px 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pgp-selection-cards {
    display: flex;
    gap: clamp(6px, 1vw, 15px);
}

.pgp-selection-cards .card {
    cursor: pointer;
    position: relative;
}

.pgp-selection-cards .card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
    border: 2px solid #4ecdc4;
}

.pgp-selection-cards .card.selected {
    transform: translateY(-12px) scale(1.08);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
    border: 3px solid #ffd700;
}

.pgp-selection-cards .card.selected::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    color: #1a1a1a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Info panel */
.pgp-info-panel {
    margin-top: 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 12px;
    min-width: 200px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 215, 61, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.pgp-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.pgp-info-label {
    color: #bbb;
}

.pgp-info-value {
    color: #4ecdc4;
    font-weight: bold;
}

.pgp-info-value.complete {
    color: #4caf50;
}

.pgp-info-value.error {
    color: #ff8a8a;
    text-shadow: 0 0 8px rgba(255, 100, 100, 0.6);
}

/* Result overlay backdrop - dims the game area for focus */
.pgp-result-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    backdrop-filter: blur(3px);
}

/* Result overlay - positioned below cards in game area */
.pgp-result-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.98), rgba(26, 26, 26, 0.98));
    backdrop-filter: blur(15px);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 30px 35px;
    text-align: center;
    min-width: 400px;
    max-width: 500px;
    z-index: 1001;
    overflow: hidden; /* Fix rounded corners */
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.9),
        inset 0 1px 2px rgba(255, 215, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.pgp-result-message {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.pgp-result-details {
    font-size: 1.15rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Close button for result modal */
.pgp-result-overlay .pgp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0;
}

.pgp-result-overlay .pgp-modal-close:hover,
.pgp-result-overlay .pgp-modal-close:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    outline: none;
}

.pgp-result-overlay .pgp-modal-close:focus-visible {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Bet breakdown container */
.pgp-result-breakdown {
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

/* Individual breakdown item */
.pgp-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgp-breakdown-item:last-child {
    border-bottom: none;
}

/* Breakdown label (bet name) */
.pgp-breakdown-label {
    font-size: 1rem;
    color: #ccc;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Breakdown result (win/lose/push) */
.pgp-breakdown-result {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 10px;
}

.pgp-breakdown-result.win {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.pgp-breakdown-result.lose {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.pgp-breakdown-result.push {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.15);
}

/* Breakdown amount */
.pgp-breakdown-amount {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 90px;
    text-align: right;
}

.pgp-breakdown-amount.positive {
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.pgp-breakdown-amount.negative {
    color: #ff6b6b;
}

.pgp-breakdown-amount.neutral {
    color: #ffd93d;
}

/* Fortune bonus hand rank - distinctive styling */
.pgp-bonus-rank {
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: 600;
    font-style: italic;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    margin-top: 2px;
}

.pgp-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.pgp-result-actions button {
    min-width: 140px;
}

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

.pgp-modal-content {
    background: #2a2a2a;
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.pgp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.pgp-modal-close:hover {
    color: #fff;
}

/* Responsive design for Pai Gow Poker sidebar layout */
@media (max-width: 1024px) {
    .pgp-app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .pgp-app-container {
        max-height: none;
    }

    .pgp-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
        border-right: none;
        border-bottom: 2px solid #ffd700;
        height: auto;
    }

    .pgp-action-section {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pgp-sidebar-footer {
        display: none;
    }

    .pgp-btn-primary {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .pgp-hands-container {
        flex-direction: column;
        gap: 20px;
    }

    .pgp-selection-area {
        width: calc(100% - 40px);
        margin: 20px auto;
    }

    .pgp-selection-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pgp-info-panel {
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
    }

    .pgp-result-overlay {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        min-width: auto;
        padding: 25px 20px;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .pgp-result-message {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .pgp-result-details {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .pgp-result-breakdown {
        padding: 15px;
        margin: 15px 0;
    }

    .pgp-breakdown-item {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .pgp-breakdown-label {
        font-size: 0.9rem;
        flex: 1;
        min-width: 100px;
    }

    .pgp-breakdown-result {
        font-size: 0.8rem;
        padding: 3px 10px;
        margin-right: 8px;
    }

    .pgp-breakdown-amount {
        font-size: 1.1rem;
        min-width: 70px;
    }

    .pgp-bonus-rank {
        font-size: 0.8rem;
    }

    .pgp-result-actions {
        flex-direction: column;
    }

    .pgp-result-actions button {
        width: 100%;
        min-width: auto;
    }

    .pgp-result-overlay .pgp-modal-close {
        top: 12px;
        right: 15px;
        font-size: 1.5rem;
        width: 28px;
        height: 28px;
    }
}

/* Confirmation Dialog Styles */
.pgp-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
}

.pgp-confirm-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.pgp-confirm-header {
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    padding: 20px;
    border-bottom: 1px solid #4a5568;
}

.pgp-confirm-header h3 {
    margin: 0;
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: bold;
}

.pgp-confirm-body {
    padding: 25px 20px;
}

.pgp-confirm-body p {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.pgp-confirm-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #2d3748;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pgp-confirm-footer button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgp-btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
}

.pgp-btn-secondary:hover {
    background: #5a6578;
}

.pgp-btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.pgp-btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: scale(1.05);
}

/* Animations for confirm dialog */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================================
   SHARED CASINO STYLES
   These styles are used by all casino games via casino-common.js
   ===================================================== */

/* Confirmation Dialog - Shared */
.casino-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.casino-confirm-overlay.show {
    opacity: 1;
}

.casino-confirm-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
    overflow: hidden;
}

.casino-confirm-overlay.show .casino-confirm-modal {
    transform: translateY(0);
}

.casino-confirm-header {
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    padding: 20px;
    border-bottom: 1px solid #4a5568;
}

.casino-confirm-header h3 {
    margin: 0;
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: bold;
}

.casino-confirm-body {
    padding: 25px 20px;
}

.casino-confirm-body p {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.casino-confirm-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #2d3748;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.casino-confirm-footer button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Shared Button Styles */
.casino-btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
}

.casino-btn-secondary:hover {
    background: #5a6578;
}

.casino-btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.casino-btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: scale(1.05);
}

.casino-btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
}

.casino-btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    transform: scale(1.05);
}

.casino-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.casino-btn-success:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: scale(1.05);
}

/* Quick Chips - Shared */
.casino-quick-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.casino-quick-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.casino-quick-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.casino-quick-chip.selected {
    background: #4ecdc4;
    border-color: #4ecdc4;
    color: #1a1a1a;
    font-weight: bold;
}

/* Inline Bet Editing - Shared */
.casino-inline-edit-input {
    width: 80px;
    padding: 4px 8px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #4ecdc4;
    border-radius: 4px;
    color: #e2e8f0;
    outline: none;
}

.casino-inline-edit-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.casino-validation-msg {
    position: absolute;
    background: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
}

.casino-validation-msg.show {
    opacity: 1;
}

/* Toast Notifications - Shared */
.casino-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.casino-toast {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    pointer-events: auto;
}

.casino-toast.show {
    transform: translateX(0);
}

.casino-toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.casino-toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.casino-toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.casino-toast-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Responsive adjustments for shared components */
@media (max-width: 768px) {
    .casino-confirm-modal {
        width: 95%;
        max-width: none;
    }

    .casino-quick-chips {
        grid-template-columns: repeat(2, 1fr);
    }

    .casino-toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }

    .casino-toast {
        transform: translateY(120%);
    }

    .casino-toast.show {
        transform: translateY(0);
    }
}