/* Game 4: Hydraulic Press exclusive styles */
.press-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
    padding: 1rem;
}

.press-game-layout {
    display: grid;
    grid-template-columns: 200px 1fr 220px;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
}

.press-item-select {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.press-item-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.press-item-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.press-item-option.selected {
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--neon-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.item-option-emoji {
    font-size: 1.5rem;
}

.item-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
}

.item-option-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.item-option-cost {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
}

.press-visualizer-container {
    background: rgba(5, 6, 12, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

/* Hydraulic Press Machine graphics */
.press-machine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.press-top-beam {
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-bottom: 2px solid #555;
    position: absolute;
    top: 0;
}

.press-pillar {
    width: 12px;
    height: 100%;
    background: linear-gradient(90deg, #444 0%, #222 50%, #111 100%);
    position: absolute;
    top: 0;
}

.press-pillar-left { left: 40px; }
.press-pillar-right { right: 40px; }

.press-base {
    width: calc(100% - 40px);
    height: 30px;
    background: linear-gradient(0deg, #333 0%, #151515 100%);
    border-top: 2px solid #444;
    position: absolute;
    bottom: 20px;
    border-radius: 4px;
}

.press-shaft {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 200px;
    background: linear-gradient(90deg, #e6e6e6 0%, #8c8c8c 50%, #4c4c4c 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: height 0.05s linear, width 0.05s linear;
}

.press-head {
    position: absolute;
    top: 230px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: linear-gradient(180deg, #666 0%, #333 100%);
    border-bottom: 3px solid #ffcc00;
    border-top: 1px solid #999;
    transition: transform 0.05s linear;
}

/* Placement slot for crushables */
.press-anvil {
    z-index: 2;
    margin-bottom: 10px;
    position: relative;
    width: 100px;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.crushable-object {
    font-size: 5.5rem;
    transition: transform 0.05s linear;
    transform-origin: bottom center;
    user-select: none;
    line-height: 1;
}

.press-controls-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.press-lever-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.btn-crush-lever {
    background: radial-gradient(circle at 30% 30%, #ff4d4d 0%, #cc0000 70%, #800000 100%);
    border: 3px solid #ff9999;
    color: white;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    text-transform: uppercase;
    box-shadow: 0 6px 15px rgba(204, 0, 0, 0.5), inset 0 3px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.1s;
    user-select: none;
}

.btn-crush-lever:active {
    transform: scale(0.92) translateY(2px);
    background: radial-gradient(circle at 30% 30%, #cc0000 0%, #990000 70%, #600000 100%);
    box-shadow: 0 2px 5px rgba(204, 0, 0, 0.3), inset 0 1px 3px rgba(0,0,0,0.5);
}

.press-gauge {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-mono);
    width: 180px;
}

.gauge-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.gauge-track {
    background: rgba(255, 255, 255, 0.05);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.gauge-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: var(--shadow-glow-pink);
    transition: width 0.05s linear;
}

/* Floating particle sparks */
.particle-spark {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: spark-shoot 0.5s forwards ease-out;
}

@keyframes spark-shoot {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .press-game-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .press-item-select {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .press-item-option {
        flex: 1 1 140px;
    }
}

.press-item-option.locked-mystery {
    border: 1px dashed rgba(255, 99, 132, 0.4);
    background: rgba(255, 99, 132, 0.02);
}
.press-item-option.locked-mystery:hover {
    background: rgba(255, 99, 132, 0.08);
    border-color: rgba(255, 99, 132, 0.7);
}

/* Redshift and Explosion effects classes */
.press-explosion-shockwave {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translate(-50%, 0%) scale(0.1);
    transform-origin: bottom center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 120, 0, 0.95) 0%, rgba(255, 50, 0, 0.6) 40%, rgba(255, 0, 0, 0) 70%);
    box-shadow: 0 0 35px rgba(255, 50, 0, 0.8);
    pointer-events: none;
    z-index: 3;
    animation: shockwave-expand 0.5s ease-out forwards;
}

@keyframes shockwave-expand {
    0% {
        transform: translate(-50%, 0%) scale(0.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -20px) scale(2.2);
        opacity: 0;
    }
}

.press-screen-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: flash-animation 0.25s ease-out forwards;
}

@keyframes flash-animation {
    0% { opacity: 0.85; }
    100% { opacity: 0; }
}

.redshift-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0);
    mix-blend-mode: screen;
    z-index: 3;
    transition: background 0.05s linear, opacity 0.05s linear;
}

/* Debug collision boxes */
.debug-box {
    position: absolute;
    border: 2px dashed rgba(0, 255, 128, 0.9);
    pointer-events: none;
    z-index: 60;
    background: rgba(0,255,128,0.04);
}
.debug-head-box { border-color: rgba(255, 80, 80, 0.95); background: rgba(255,80,80,0.06); }
.debug-object-box { border-color: rgba(0, 200, 255, 0.95); background: rgba(0,200,255,0.04); }
.debug-label {
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 11px;
    font-family: var(--font-mono);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 61;
}

