/* MAKAO - Grunwaldzkie Styles */

/* === RESET & BASE === */
* {
    box-sizing: border-box;
}

#makao-game-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f5132, #1a6e42);
    border-radius: 20px;
    padding: 20px;
    color: white;
    min-height: 600px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

#makao-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.3;
}

/* === LOADING === */
.makao-loading {
    text-align: center;
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.makao-loading h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #ffd700;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === LOBBY === */
.makao-lobby {
    text-align: center;
    position: relative;
    z-index: 1;
}

.lobby-header {
    margin-bottom: 40px;
}

.lobby-header h1 {
    font-size: 36px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.lobby-header p {
    font-size: 18px;
    color: #ccc;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 20px;
}

.position-slot {
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.position-slot::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
}

.position-slot:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.position-slot:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.position-slot.occupied {
    background: rgba(0,255,0,0.2);
    border-color: #28a745;
}

.position-slot.my-position {
    background: rgba(255,215,0,0.2);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.position-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.position-status {
    font-size: 12px;
    margin-bottom: 8px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.position-nick {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    min-height: 24px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.join-position-btn, .start-game-btn, .leave-position-btn {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.join-position-btn::before, .start-game-btn::before, .leave-position-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.join-position-btn:hover::before, .start-game-btn:hover::before, .leave-position-btn:hover::before {
    left: 100%;
}

.join-position-btn:hover, .start-game-btn:hover, .leave-position-btn:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.start-game-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    font-size: 20px;
    padding: 18px 40px;
    margin: 20px;
    animation: pulse 2s infinite;
}

.start-game-btn:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.leave-position-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.position-slot.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.position-slot.disabled .join-position-btn {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.position-slot.disabled .join-position-btn:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.join-position-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.join-position-btn:disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* === PLANSZA GRY === */
.makao-board {
    position: relative;
    z-index: 1;
}

.game-board {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #2d8f5f, #1a6e42);
    border-radius: 20px;
    border: 4px solid #4a4a4a;
    margin-bottom: 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

.game-board::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 15px;
    pointer-events: none;
}

/* === POZYCJE GRACZY === */
.player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.player-position-1 { top: 20px; left: 20px; }
.player-position-2 { top: 20px; right: 20px; }
.player-position-3 { top: 50%; left: 20px; transform: translateY(-50%); }
.player-position-4 { top: 50%; right: 20px; transform: translateY(-50%); }
.player-position-5 { bottom: 20px; left: 20px; }
.player-position-6 { bottom: 20px; right: 20px; }

.player-info {
    text-align: center;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.player-name {
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 2px;
}

.player-status {
    font-size: 11px;
    color: #ccc;
}

.player-cards {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    min-width: 80px;
}

/* === KARTY GRACZY (REWERS) === */
.card, .card-back {
    width: 35px;
    height: 50px;
    background: linear-gradient(135deg, #000080, #4169E1);
    border: 2px solid #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    position: absolute;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card-back {
    background: linear-gradient(135deg, #000080, #4169E1);
}

.card-back::before {
    content: '🃏';
    font-size: 18px;
}

/* Wachlarz kart */
.card:nth-child(1) { transform: rotate(-20deg) translateY(5px); z-index: 1; }
.card:nth-child(2) { transform: rotate(-10deg) translateY(2px); z-index: 2; }
.card:nth-child(3) { transform: rotate(0deg) translateY(0px); z-index: 3; }
.card:nth-child(4) { transform: rotate(10deg) translateY(2px); z-index: 4; }
.card:nth-child(5) { transform: rotate(20deg) translateY(5px); z-index: 5; }
.card:nth-child(6) { transform: rotate(30deg) translateY(8px); z-index: 6; }
.card:nth-child(7) { transform: rotate(40deg) translateY(12px); z-index: 7; }

/* Gracze po bokach - wachlarz pionowy */
.player-position-3 .card:nth-child(1) { transform: rotate(20deg) translateX(-5px); }
.player-position-3 .card:nth-child(2) { transform: rotate(10deg) translateX(-2px); }
.player-position-3 .card:nth-child(3) { transform: rotate(0deg) translateX(0px); }
.player-position-3 .card:nth-child(4) { transform: rotate(-10deg) translateX(-2px); }
.player-position-3 .card:nth-child(5) { transform: rotate(-20deg) translateX(-5px); }

.player-position-4 .card:nth-child(1) { transform: rotate(-20deg) translateX(5px); }
.player-position-4 .card:nth-child(2) { transform: rotate(-10deg) translateX(2px); }
.player-position-4 .card:nth-child(3) { transform: rotate(0deg) translateX(0px); }
.player-position-4 .card:nth-child(4) { transform: rotate(10deg) translateX(2px); }
.player-position-4 .card:nth-child(5) { transform: rotate(20deg) translateX(5px); }

.card-more {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,215,0,0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

/* === ŚRODEK STOŁU === */
.center-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.game-info {
    background: rgba(0,0,0,0.8);
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid #ffd700;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.game-info h3 {
    margin: 0 0 8px 0;
    color: #ffd700;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #ccc;
}

.deck-area {
    display: flex;
    gap: 30px;
    align-items: center;
}

.deck-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.deck-label {
    font-size: 12px;
    color: #ccc;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deck-card {
    width: 70px;
    height: 95px;
    border: 3px solid #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.deck-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
}

.deck-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(30%, 30%);
}

.deck-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.deck-card.draw-pile {
    background: linear-gradient(135deg, #000080, #4169E1);
    color: white;
}

.deck-card.discard-pile {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #000;
}

.deck-card.discard-pile.red {
    color: #dc3545;
}

.deck-card.discard-pile.black {
    color: #000;
}

/* === TWOJE KARTY === */
.my-cards-container {
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.my-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.my-cards-header h4 {
    margin: 0;
    color: #ffd700;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.play-btn, .draw-btn, .reset-btn, .leave-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.play-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.play-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.play-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.draw-btn {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
}

.draw-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.draw-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.reset-btn, .leave-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.reset-btn:hover, .leave-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.my-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.2);
}

.my-card {
    width: 70px;
    height: 95px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 3px solid #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.my-card.red {
    color: #dc3545;
}

.my-card.black {
    color: #000;
}

.my-card.playable {
    border-color: #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.my-card.unplayable {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.my-card.selected {
    transform: translateY(-15px) scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.6);
    z-index: 10;
}

.my-card:not(.unplayable):hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* === MODALS === */
.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: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #333;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 350px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    border: 3px solid #007cba;
}

@keyframes slideIn {
    from { transform: scale(0.8) translateY(-50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #007cba;
    font-size: 22px;
}

.input-group {
    margin: 20px 0;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 10px rgba(0, 124, 186, 0.3);
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn, .cancel-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirm-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cancel-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Color & Request modals */
.color-choices, .request-choices {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.color-btn, .request-btn {
    padding: 15px 20px;
    border: 3px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.color-btn:hover, .request-btn:hover {
    border-color: #007cba;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* === KOMUNIKATY === */
.makao-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    max-width: 350px;
}

.message {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease;
    border-left: 5px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: #ffd700;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.message.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-left-color: #fff;
}

.message.error::before {
    background: #fff;
}

.message.success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-left-color: #fff;
}

.message.success::before {
    background: #fff;
}

/* === AKCJE GRY === */
.game-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #makao-game-container {
        margin: 10px;
        padding: 15px;
    }
    
    .positions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 500px;
    }
    
    .game-board {
        height: 400px;
    }
    
    .my-cards {
        gap: 8px;
    }
    
    .my-card {
        width: 60px;
        height: 80px;
        font-size: 16px;
    }
    
    .deck-card {
        width: 60px;
        height: 80px;
        font-size: 20px;
    }
    
    .game-controls {
        justify-content: center;
    }
    
    .my-cards-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .positions-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .game-board {
        height: 350px;
    }
    
    .center-area {
        gap: 15px;
    }
    
    .deck-area {
        gap: 20px;
    }
    
    .my-card {
        width: 50px;
        height: 70px;
        font-size: 14px;
    }
}

/* === ANIMACJE === */
@keyframes cardDeal {
    from { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    to { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.card-deal-animation {
    animation: cardDeal 0.5s ease-out;
}

@keyframes cardPlay {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.2) translateY(-20px); }
    100% { transform: scale(0.8) translateY(-100px); opacity: 0; }
}

.card-play-animation {
    animation: cardPlay 0.6s ease-out forwards;
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: linear-gradient(135deg, #2d3748, #1a202c);
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .modal-content h3 {
        color: #63b3ed;
    }
    
    .input-group input {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .input-group input:focus {
        border-color: #63b3ed;
        box-shadow: 0 0 10px rgba(99, 179, 237, 0.3);
    }
    
    .color-btn, .request-btn {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    #makao-game-container {
        border: 3px solid #fff;
    }
    
    .position-slot {
        border-width: 4px;
    }
    
    .my-card {
        border-width: 4px;
    }
    
    .deck-card {
        border-width: 4px;
    }
}

/* === FOCUS STYLES === */
button:focus,
input:focus,
.my-card:focus,
.deck-card:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    #makao-game-container {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .modal, .makao-messages {
        display: none !important;
    }
    
    .game-board {
        background: white;
        border-color: black;
    }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* === TOOLTIPS === */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
    z-index: 1000;
    pointer-events: none;
}