/* COMBO ENGINE CSS */
.gp-combo-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
}

.gp-combo-bg {
    position: absolute;
    inset: -50px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, transparent 100%);
    transition: background 0.3s ease;
}

.gp-combo-score-display {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.gp-combo-total {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.gp-combo-multiplier {
    font-size: 8rem;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(.36,.07,.19,.97);
}

.gp-combo-board {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 40px;
    min-height: 200px;
    background: rgba(10, 15, 25, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-content: center;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.gp-combo-board:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1) inset;
}

/* Tier 1 (x2) > 10 combo */
.gp-combo-container.tier-1 .gp-combo-multiplier {
    opacity: 0.1;
    color: #00ffff;
    transform: translate(-50%, -50%) scale(1.1);
}
.gp-combo-container.tier-1 .gp-combo-board {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1) inset;
}

/* Tier 2 (x3) > 30 combo */
.gp-combo-container.tier-2 .gp-combo-multiplier {
    opacity: 0.15;
    color: #b000ff;
    transform: translate(-50%, -50%) scale(1.2);
    text-shadow: 0 0 20px #b000ff;
}
.gp-combo-container.tier-2 .gp-combo-board {
    border-color: rgba(176, 0, 255, 0.4);
    box-shadow: 0 0 40px rgba(176, 0, 255, 0.2) inset;
}
.gp-combo-container.tier-2 .gp-combo-bg {
    background: radial-gradient(circle at center, rgba(176, 0, 255, 0.1) 0%, transparent 60%);
}

/* Tier 3 (x5) > 50 combo */
.gp-combo-container.tier-3 .gp-combo-multiplier {
    opacity: 0.2;
    color: #ff00ff;
    transform: translate(-50%, -50%) scale(1.3);
    text-shadow: 0 0 30px #ff00ff;
    animation: pulseCombo 0.5s infinite alternate;
}
.gp-combo-container.tier-3 .gp-combo-board {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.3) inset;
    animation: shakeBoard 0.1s infinite;
}
.gp-combo-container.tier-3 .gp-combo-bg {
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.15) 0%, transparent 70%);
}

@keyframes pulseCombo {
    0% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1.35); }
}

@keyframes shakeBoard {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    50% { transform: translate(-1px, -1px) rotate(-0.5deg); }
    100% { transform: translate(1px, -1px) rotate(0.5deg); }
}

/* Combo Break */
.gp-combo-container.broken .gp-combo-board {
    border-color: #ff0055;
    background: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 50px rgba(255, 0, 85, 0.3) inset;
    animation: breakShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes breakShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-8px, 0, 0); }
    40%, 60% { transform: translate3d(8px, 0, 0); }
}
