/* ====================================================
   DROP ENGINE CSS - GLYPHPULSE ARCADE
==================================================== */

.gp-drop-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(5, 5, 10, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 85, 0.2);
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.1);
    overflow: hidden;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
}

/* Drop Scene */
.gp-drop-scene {
    position: relative;
    width: 100%;
    height: 500px;
    background: radial-gradient(circle at center, #110022 0%, #050011 100%);
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 0, 85, 0.8);
    box-shadow: inset 0 -10px 20px rgba(255, 0, 85, 0.2);
}

/* The laser floor */
.gp-drop-laser {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ff0055;
    box-shadow: 0 0 15px #ff0055, 0 0 30px #ff0055;
    z-index: 5;
}

/* Falling Word Container */
.gp-drop-word {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transition: top 0.1s linear, transform 0.2s ease;
    z-index: 10;
}

/* Character formatting */
.gp-drop-word .gp-char {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.1s, text-shadow 0.1s;
    text-transform: uppercase;
}

.gp-drop-word .gp-char.correct {
    color: #fff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.gp-drop-word .gp-char.active {
    color: #fff;
    border-bottom: 3px solid #00ffff;
}

.gp-drop-word .gp-char.error {
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055;
    border-bottom-color: #ff0055;
    animation: dropShake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

.gp-drop-word .gp-char.space-char {
    color: rgba(255, 255, 255, 0.1);
    margin-left: 2px;
    margin-right: 2px;
}

/* Explosion state when hitting the bottom */
.gp-drop-word.exploded {
    animation: dropExplode 0.5s ease forwards;
}
.gp-drop-word.exploded .gp-char:not(.correct) {
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055;
}

/* Animations */
@keyframes dropShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes dropExplode {
    0% { transform: translateX(-50%) scale(1); filter: brightness(1); }
    50% { transform: translateX(-50%) scale(1.2); filter: brightness(2); }
    100% { transform: translateX(-50%) scale(1); filter: brightness(1); }
}

/* Top bar for stats */
.gp-drop-stats {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 20;
    color: #00ffff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.gp-drop-level-badge {
    background: rgba(0, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Level auto-continue flash */
.gp-drop-level-up {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
}

.gp-drop-level-up.show {
    animation: levelUpFlash 1.5s ease-out forwards;
}

@keyframes levelUpFlash {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -70%) scale(1.2); filter: blur(10px); }
}
