/* Crypto Match Styles */

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    height: 100%;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 4px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: min(90vw, 500px);
    height: min(90vw, 500px);
    position: relative;
    user-select: none;
    touch-action: none;
}

.match-tile {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-tile:hover {
    filter: brightness(1.2);
    z-index: 10;
}

.match-tile.selected {
    border: 2px solid #f59e0b; /* Amber 500 */
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transform: scale(1.05);
    z-index: 20;
}

.match-tile.matched {
    animation: popOut 0.3s ease-out forwards;
}

.match-tile.dropping {
    transition: top 0.3s ease-in;
}

/* Token Types */
.token-btc { color: #f7931a; }
.token-eth { color: #627eea; }
.token-stable { color: #26a17b; }
.token-meme { color: #fbcc5d; }
.token-scam { color: #ef4444; }

/* Special Tokens */
.token-special-bomb {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, rgba(30, 41, 59, 0.5) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: pulse-red 2s infinite;
}

.token-special-burn {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, rgba(30, 41, 59, 0.5) 100%);
    border: 1px solid rgba(249, 115, 22, 0.5);
    animation: pulse-orange 2s infinite;
}

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

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 5px rgba(249, 115, 22, 0.2); }
    50% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.5); }
}

.game-stats {
    display: flex;
    gap: 1rem;
    width: min(90vw, 500px);
    justify-content: space-between;
}

.powerup-btn {
    position: relative;
    overflow: hidden;
}

.powerup-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.powerup-btn:hover::after {
    transform: translateX(100%);
}
