/* ============================================ */
/* EFFECTS.CSS - Projectiles (CC Laser, Repair */
/* Laser, Rocket, Enemy Laser), Building       */
/* Damage, Building Radial Menu, Wall Building */
/* ============================================ */

/* ============================================ */
/* PROJECTILES - DOM Elements                  */
/* ============================================ */

/* AA Laser Turret - Strobe Variant */
.aa-beam-strobe .aa-beam-glow,
.aa-beam-strobe .aa-beam-core {
    animation: aaStrobeFlash 0.08s linear infinite;
}
@keyframes aaStrobeFlash {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0.1; }
    100% { opacity: 1; }
}

/* Command Center Laser - Design 1: Classic Gold Beam */
.cc-laser {
    position: absolute;
    width: 42px;
    height: 6px;
    pointer-events: none;
    z-index: 8;
}
.cc-laser .laser-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.4), transparent);
    border-radius: 3px;
}
.cc-laser .laser-core {
    position: absolute;
    width: 100%;
    height: 3px;
    top: 1.5px;
    background: linear-gradient(90deg, #ffdd44, #ffff88, #ffdd44);
    border-radius: 1.5px;
    box-shadow: 0 0 8px #ffcc00, 0 0 15px rgba(255, 204, 0, 0.5);
}

/* Repair Laser - Green Healing Beam */
.repair-laser {
    position: absolute;
    height: 8px;
    pointer-events: none;
    transform-origin: left center;
}
.repair-laser .repair-laser-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 100, 0.6), rgba(100, 255, 150, 0.3), rgba(0, 255, 100, 0.6));
    border-radius: 4px;
    animation: repairLaserPulse 0.5s ease-in-out infinite;
}
.repair-laser .repair-laser-core {
    position: absolute;
    width: 100%;
    height: 3px;
    top: 2.5px;
    background: linear-gradient(90deg, #00ff66, #88ffaa, #00ff66);
    border-radius: 1.5px;
    box-shadow: 0 0 10px #00ff66, 0 0 20px rgba(0, 255, 100, 0.6), 0 0 30px rgba(0, 255, 100, 0.3);
}
@keyframes repairLaserPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Healing Cross Particles - Phaser DOM version */
.healing-cross-dom {
    font-size: 12px;
    color: #44ff88;
    text-shadow: 0 0 4px #00ff66;
    pointer-events: none;
    font-family: Arial, sans-serif;
    opacity: 0.5;
}

/* Healing Cross Particles - old DOM version */
.healing-cross {
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    color: #00ff66;
    text-shadow: 0 0 6px #00ff66, 0 0 12px rgba(0, 255, 100, 0.8);
    pointer-events: none;
    z-index: 9001 !important;
    animation: healingCrossFloat 1s ease-out forwards;
    font-family: Arial, sans-serif;
}
@keyframes healingCrossFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
}

/* Blue Rocket - Design 10 (Homing Seeker) + Trail from Design 4 (Neon Streak) */
.blue-rocket-projectile {
    position: absolute;
    width: 34px;
    height: 12px;
    pointer-events: none;
    z-index: 8;
    transform-origin: center center;
}
.blue-rocket-projectile .fin-top {
    position: absolute;
    left: 2px;
    top: 0;
    width: 8px;
    height: 3px;
    background: #2266aa;
    transform: skewX(-20deg);
}
.blue-rocket-projectile .fin-bottom {
    position: absolute;
    left: 2px;
    bottom: 0;
    width: 8px;
    height: 3px;
    background: #2266aa;
    transform: skewX(20deg);
}
.blue-rocket-projectile .body {
    position: absolute;
    width: 26px;
    height: 8px;
    background: linear-gradient(180deg, #4499cc 0%, #2277aa 50%, #4499cc 100%);
    border-radius: 4px;
    top: 2px;
    left: 2px;
}
.blue-rocket-projectile .sensor {
    position: absolute;
    right: 0;
    top: 3px;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ff4444, #aa2222);
    border-radius: 50%;
    box-shadow: 0 0 6px #ff4444;
    animation: blueRocketSensor 0.5s ease-in-out infinite;
}
@keyframes blueRocketSensor {
    0%, 100% { box-shadow: 0 0 6px #ff4444; }
    50% { box-shadow: 0 0 12px #ff6666; }
}
.blue-rocket-projectile .exhaust {
    position: absolute;
    left: -6px;
    top: 4px;
    width: 8px;
    height: 4px;
    background: radial-gradient(ellipse at right, #00ffff, #0088ff, transparent);
    animation: blueRocketExhaust 0.08s linear infinite;
}
@keyframes blueRocketExhaust {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.3); }
}
.blue-rocket-projectile .trail {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 32px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #00ffff 50%, #44ffff 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px #00ffff, 0 0 25px rgba(0, 255, 255, 0.6);
    animation: blueRocketTrail 0.08s linear infinite;
}
@keyframes blueRocketTrail {
    0%, 100% { opacity: 1; transform: scaleX(1); }
    50% { opacity: 0.8; transform: scaleX(1.1); }
}

/* Enemy Laser - Design 5: Double Helix (50% scale) */
.enemy-laser-projectile {
    position: absolute;
    width: 35px;
    height: 10px;
    pointer-events: none;
    z-index: 8;
    transform: scale(0.5);
    transform-origin: center center;
}
.enemy-laser-projectile .helix-strand {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ff3333;
    box-shadow: 0 0 4px #ff0000, 0 0 8px rgba(255, 0, 0, 0.5);
}
.enemy-laser-projectile .helix-strand.top {
    top: 2px;
    animation: helixTop 0.2s ease-in-out infinite;
}
.enemy-laser-projectile .helix-strand.bottom {
    bottom: 2px;
    animation: helixBottom 0.2s ease-in-out infinite;
}
@keyframes helixTop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
@keyframes helixBottom {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Building Damage Indicator - Wrench Icon */
.building-wrench {
    font-size: 16px;
    pointer-events: none;
    animation: wrenchPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 150, 0, 0.9));
    text-shadow: 0 0 6px rgba(255, 100, 0, 0.8);
}
@keyframes wrenchPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* ============================================ */
/* CODEBREAKER - Hack Animation & Hacked State */
/* ============================================ */

/* Hack attempt animation - appears over enemy */
.hack-attempt {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 8;
    transform: translate(-50%, -50%);
}
.hack-attempt .hack-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #00d4ff;
    border-radius: 50%;
    animation: hackRingSpin 0.5s linear infinite;
    box-shadow: 0 0 10px #00d4ff, inset 0 0 10px rgba(0, 212, 255, 0.3);
}
.hack-attempt .hack-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}
@keyframes hackRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hack-attempt .hack-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Consolas', monospace;
    font-size: 8px;
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
    animation: hackCodeFlicker 0.1s linear infinite;
}
@keyframes hackCodeFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Success flash */
.hack-attempt.success .hack-ring {
    border-color: #00ff88;
    box-shadow: 0 0 20px #00ff88, inset 0 0 15px rgba(0, 255, 136, 0.5);
    animation: hackSuccess 0.3s ease-out forwards;
}
@keyframes hackSuccess {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Fail flash */
.hack-attempt.fail .hack-ring {
    border-color: #ff4444;
    box-shadow: 0 0 20px #ff4444, inset 0 0 15px rgba(255, 68, 68, 0.5);
    animation: hackFail 0.3s ease-out forwards;
}
@keyframes hackFail {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.5); opacity: 0; }
}

/* Hacked enemy state - greyed out, animations paused */
.enemy-hacked,
.enemy-hacked * {
    filter: grayscale(100%) brightness(0.5) !important;
    animation-play-state: paused !important;
}

/* Cyan tint overlay for hacked enemies */
.enemy-hacked {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8), inset 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

/* Hacked indicator above enemy */
.hacked-indicator {
    position: absolute;
    width: 30px;
    height: 20px;
    pointer-events: none;
    z-index: 101;
    transform: translate(-50%, -100%);
    font-family: 'Consolas', monospace;
    font-size: 10px;
    color: #00d4ff;
    text-shadow: 0 0 5px #00d4ff;
    text-align: center;
    animation: hackedIndicatorPulse 1s ease-in-out infinite;
}
@keyframes hackedIndicatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================ */
/* BUILDING RADIAL MENU - Diamond Design        */
/* ============================================ */
.building-radial-menu {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 960;
}
.radial-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: auto !important;
    z-index: 961;
    background: #0d0d1a;
    border: 2px solid var(--btn-color);
    border-radius: 4px;
    transition: all 0.15s ease;
}
.radial-btn .radial-icon {
    transform: rotate(-45deg);
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: var(--btn-glow);
    pointer-events: none;
    text-shadow: 0 0 8px var(--btn-color);
}
.radial-btn:hover {
    background: var(--btn-color);
    box-shadow: 0 0 15px var(--btn-color);
    transform: translate(-50%, -50%) rotate(45deg) scale(1.15);
}
.radial-btn:hover .radial-icon {
    color: #0a0a15;
    text-shadow: none;
}
.radial-btn:active {
    transform: translate(-50%, -50%) rotate(45deg) scale(0.95);
}
/* Disabled state */
.radial-btn.disabled {
    cursor: not-allowed;
    opacity: 0.4;
    --btn-color: #444444;
    --btn-glow: #555555;
}
.radial-btn.disabled:hover {
    background: #0d0d1a;
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg);
}
.radial-btn.disabled:hover .radial-icon {
    color: #555555;
}
/* Center dot */
.radial-center {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333333;
    border: 1px solid #555555;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
/* Opening animation */
@keyframes radialOpen {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes radialClose {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0); opacity: 0; }
}
.building-radial-menu.opening {
    animation: radialOpen 150ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.building-radial-menu.closing {
    animation: radialClose 100ms cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}
/* Mobile: larger radial buttons */
.mobile .radial-btn {
    width: 40px;
    height: 40px;
}
.mobile .radial-btn .radial-icon {
    font-size: 16px;
}
.mobile .radial-center {
    width: 20px;
    height: 20px;
}
/* Mobile: larger tips */
.mobile .game-tip span {
    font-size: 23px;
}
/* Mobile: larger building info tooltips (60%) */
.mobile .building-hover-info {
    font-size: 18px;
    padding: 8px 16px;
}
.mobile .building-hover-info .hover-upgrade {
    font-size: 16px;
}
.mobile .building-hover-info .hover-coin {
    width: 16px;
    height: 16px;
}
.mobile .building-info-simple {
    font-size: 18px;
    padding: 8px 16px;
}

/* Mobile: Drag hint overlay */
.mobile-drag-hint {
    position: absolute;
    bottom: 80px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    z-index: 960;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(10px);
}
.mobile-drag-hint.visible {
    opacity: 1;
    transform: translateY(0);
}
.mobile-drag-hint.hiding {
    opacity: 0;
    transform: translateY(10px);
}
.mobile-drag-hint-arrow {
    font-size: 90px;
    color: #fff;
    line-height: 0.7;
    text-shadow: 0 0 12px rgba(0,0,0,0.95);
    transform: rotate(45deg);
    animation: hintBounce 1s ease-in-out infinite;
}
.mobile-drag-hint-text {
    color: #fff;
    font-size: 34px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    text-align: left;
    max-width: 900px;
    text-shadow: 0 0 12px rgba(0,0,0,0.95), 0 0 24px rgba(0,0,0,0.7);
    margin-left: 10px;
    margin-bottom: 20px;
}
@keyframes hintBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

/* ============================================ */
/* GAME TIPS                                    */
/* ============================================ */
.game-tip {
    position: absolute;
    bottom: 83px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    align-items: center;
    z-index: 940;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
}
.game-tip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.game-tip.hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}
.game-tip span {
    color: #ddd;
    font-size: 18px;
    white-space: nowrap;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Building Info - Simple Label */
.building-info-simple {
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow: 0 0 3px #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
.building-info-simple .info-level {
    color: #88ddff;
    font-weight: bold;
    margin-right: 6px;
}
.building-hover-info {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow: 0 0 3px #000;
    border: 1px solid rgba(100, 180, 255, 0.3);
    text-align: center;
    pointer-events: none;
}
.building-hover-info .info-level {
    color: #88ddff;
    font-weight: bold;
    margin-right: 6px;
}
.building-hover-info .hover-upgrade {
    color: #88ff88;
    font-size: 10px;
    margin-top: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 3px;
}
.building-hover-info .hover-coin {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffec80, #ffd700 50%, #b8860b);
    vertical-align: middle;
    margin-right: 2px;
}

/* ============================================ */
/* WALL BUILDING (Betonplatten Design)        */
/* ============================================ */
.wall-container {
    width: 40px;
    height: 40px;
    position: relative;
    pointer-events: none;
    transform: translate(-1px, 1px);
}

/* Horizontal Wall */
.wall-h {
    width: 40px;
    height: 40px;
    background: transparent;
    position: relative;
}
.wall-h::before {
    content: '';
    position: absolute;
    top: 12px; left: 0; right: 0;
    height: 16px;
    background: #606060;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #404040;
}

/* Vertical Wall */
.wall-v {
    width: 40px;
    height: 40px;
    background: transparent;
    position: relative;
}
.wall-v::before {
    content: '';
    position: absolute;
    left: 12px; top: 0; bottom: 0;
    width: 16px;
    background: #606060;
    border-left: 1px solid #707070;
    border-right: 1px solid #404040;
}

/* Corner Wall */
.wall-corner {
    width: 40px;
    height: 40px;
    background: transparent;
    position: relative;
}
.wall-corner::before {
    content: '';
    position: absolute;
    top: 12px; left: 0;
    width: 28px; height: 16px;
    background: #606060;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #404040;
}
.wall-corner::after {
    content: '';
    position: absolute;
    left: 12px; top: 0;
    width: 16px; height: 12px;
    background: #606060;
    border-left: 1px solid #707070;
    border-right: 1px solid #404040;
}

/* T-Wall */
.wall-t {
    width: 40px;
    height: 40px;
    background: transparent;
    position: relative;
}
.wall-t::before {
    content: '';
    position: absolute;
    top: 12px; left: 0; right: 0;
    height: 16px;
    background: #606060;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #404040;
}
.wall-t::after {
    content: '';
    position: absolute;
    left: 12px; top: 0;
    width: 16px; height: 12px;
    background: #606060;
    border-left: 1px solid #707070;
    border-right: 1px solid #404040;
}

/* Cross Wall */
.wall-cross {
    width: 40px;
    height: 40px;
    background: transparent;
    position: relative;
}
.wall-cross::before {
    content: '';
    position: absolute;
    top: 12px; left: 0; right: 0;
    height: 16px;
    background: #606060;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #404040;
}
.wall-cross::after {
    content: '';
    position: absolute;
    left: 12px; top: 0; bottom: 0;
    width: 16px;
    background: #585858;
    border-left: 1px solid #686868;
    border-right: 1px solid #484848;
}

/* Single Wall (Post) */
.wall-single {
    width: 40px;
    height: 40px;
    background: transparent;
    position: relative;
}
.wall-single::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px;
    width: 20px; height: 20px;
    background: #606060;
    border: 1px solid #707070;
    border-radius: 2px;
}

/* ============================================ */
/* GAME OVER SCREEN - Holographic Design       */
/* ============================================ */
.gameover-overlay {
    position: relative;
    width: 1280px;
    height: 720px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* Digital Rain Background for Game Over */
.gameover-rain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(5, 5, 8, 0.95) 0%,
        rgba(8, 8, 16, 0.95) 50%,
        rgba(5, 5, 8, 0.95) 100%);
    z-index: 0;
}

.gameover-rain-column {
    position: absolute;
    top: -100%;
    width: 18px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #44aaff;
    text-shadow: 0 0 8px rgba(68, 170, 255, 0.8), 0 0 15px rgba(68, 170, 255, 0.4);
    animation: gameoverRain linear infinite;
    opacity: 0.5;
}

.gameover-rain-column.purple {
    color: #aa44ff;
    text-shadow: 0 0 8px rgba(170, 68, 255, 0.8), 0 0 15px rgba(170, 68, 255, 0.4);
}

.gameover-rain-column.dim {
    opacity: 0.25;
    font-size: 12px;
}

@keyframes gameoverRain {
    0% { transform: translateY(0); }
    100% { transform: translateY(200%); }
}

/* Game Over Content */
.gameover-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: auto;
}

/* Holographic Title - Design 7 */
.gameover-title {
    font-size: 74px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #ff0080, #00ffff, #ff0080);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gameoverHolo 3s ease infinite;
    letter-spacing: 8px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 128, 0.5));
}

@keyframes gameoverHolo {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Stats Display */
.gameover-stats {
    font-size: 28px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Button Container */
.gameover-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 60px;
    pointer-events: auto;
}

/* Try Again Button */
button.gameover-retry,
button.gameover-mainmenu {
    font-size: 18px;
    color: #fff;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 15px 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: auto !important;
    text-align: center;
    min-width: 250px;
    user-select: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

button.gameover-retry:hover,
button.gameover-mainmenu:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.45), rgba(0, 255, 255, 0.45));
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3), 0 0 30px rgba(0, 255, 255, 0.2);
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

button.gameover-retry:active,
button.gameover-mainmenu:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.2);
}

/* Social Icons Container */
.gameover-social {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    pointer-events: auto;
}

/* Game Over Coffee Icon - vertical layout, text below */
.gameover-coffee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto !important;
    margin-top: -10px;
}

.gameover-coffee:hover {
    transform: scale(1.1);
}

.gameover-coffee:hover .coffee-cup-mini {
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.15), 0 0 20px rgba(255, 200, 100, 0.6);
}

.gameover-coffee:hover .coffee-link-text {
    text-shadow: 0 0 15px rgba(201, 166, 107, 0.8);
}

.gameover-coffee .coffee-link-text {
    color: #c9a66b;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(201, 166, 107, 0.5);
    white-space: nowrap;
    transition: text-shadow 0.3s ease;
}

.gameover-coffee .coffee-container-mini {
    position: relative;
    width: 45px;
    height: 50px;
}

.gameover-coffee .coffee-cup-mini {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 28px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 2px 2px 14px 14px;
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.gameover-coffee .coffee-cup-mini::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 24px;
    background: linear-gradient(180deg, #3d2314 0%, #5c3a21 50%, #4a2c17 100%);
    border-radius: 1px 1px 12px 12px;
}

.gameover-coffee .coffee-handle-mini {
    position: absolute;
    right: -7px;
    top: 6px;
    width: 10px;
    height: 14px;
    border: 3px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.gameover-coffee .coffee-steam-mini {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.gameover-coffee .coffee-steam-mini span {
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent);
    border-radius: 50%;
    animation: gameoverSteam 2s ease-in-out infinite;
}

.gameover-coffee .coffee-steam-mini span:nth-child(2) { animation-delay: 0.3s; }
.gameover-coffee .coffee-steam-mini span:nth-child(3) { animation-delay: 0.6s; }

@keyframes gameoverSteam {
    0%, 100% { transform: translateY(0) scaleX(1); opacity: 0; }
    50% { transform: translateY(-10px) scaleX(1.5); opacity: 0.7; }
}

/* Game Over Instagram Icon - vertical layout, text below */
.gameover-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto !important;
}

.gameover-instagram:hover {
    transform: scale(1.1);
}

.gameover-instagram img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.5));
    transition: filter 0.3s ease;
}

.gameover-instagram:hover img {
    filter: drop-shadow(0 0 15px rgba(225, 48, 108, 0.8));
}

.gameover-instagram .instagram-link-text {
    color: #e1306c;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(225, 48, 108, 0.5);
    white-space: nowrap;
    transition: text-shadow 0.3s ease;
}

.gameover-instagram:hover .instagram-link-text {
    text-shadow: 0 0 15px rgba(225, 48, 108, 0.8);
}
