/* Waiting Game Card - Enhanced */
.waiting-game-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(30, 33, 36, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    animation: waitingPulse 3s ease-in-out infinite;
}

@keyframes waitingPulse {
    0%, 100% { border-color: rgba(212, 175, 55, 0.5); }
    50% { border-color: rgba(212, 175, 55, 0.9); box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); }
}

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

.waiting-badge {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.searching-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.countdown-timer {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.waiting-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.mini-board {
    width: 120px;
    height: 120px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.mini-square {
    aspect-ratio: 1;
}

.mini-square.light { background: #f0d9b5; }
.mini-square.dark { background: #b58863; }

.waiting-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waiting-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 4px;
}

.waiting-subtitle {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
}

.stake-display {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stake-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
}

.stake-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stake-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.stake-value.green { color: #10b981; }
.stake-value.gold { color: #d4af37; }

.escrow-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #10b981;
}

.player-stats-row {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.player-stat {
    font-size: 13px;
    color: #9ca3af;
}

.player-stat strong {
    color: #fff;
}

.searching-animation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    margin-top: 16px;
}

.radar-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

.radar-circle {
    position: absolute;
    border: 2px solid #d4af37;
    border-radius: 50%;
    animation: radarPing 2s ease-out infinite;
}

.radar-circle:nth-child(1) { width: 10px; height: 10px; top: 15px; left: 15px; animation-delay: 0s; }
.radar-circle:nth-child(2) { width: 20px; height: 20px; top: 10px; left: 10px; animation-delay: 0.4s; }
.radar-circle:nth-child(3) { width: 30px; height: 30px; top: 5px; left: 5px; animation-delay: 0.8s; }
.radar-circle:nth-child(4) { width: 40px; height: 40px; top: 0; left: 0; animation-delay: 1.2s; }

@keyframes radarPing {
    0% { opacity: 1; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.2); }
}

.searching-text {
    flex: 1;
}

.searching-text strong {
    color: #d4af37;
    display: block;
    margin-bottom: 4px;
}

.searching-text span {
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 600px) {
    .waiting-content {
        grid-template-columns: 1fr;
    }
    .mini-board {
        margin: 0 auto;
    }
}

/* Fix header layout - stack vertically */
.waiting-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.waiting-badge {
    width: 100%;
    justify-content: center;
}

.countdown-timer {
    width: 100%;
    text-align: center;
}

/* Fix header layout - stack vertically */
.waiting-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.waiting-badge {
    width: 100%;
    justify-content: center;
}

.countdown-timer {
    width: 100%;
    text-align: center;
}

/* Stake items on same line */
.stake-display {
    flex-direction: row;
    justify-content: flex-start;
}

.stake-item {
    min-width: auto;
    flex: 1;
}
