/* === FONTS === */
/* Imported in base.html */

/* === CUSTOM ANIMATIONS === */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.animate-shake {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

/* === EFFECTS === */
.bg-scanline {
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
}

.text-glow-accent {
    text-shadow: 0 0 10px rgba(255, 159, 67, 0.5);
}

.text-glow-danger {
    text-shadow: 0 0 10px rgba(238, 82, 83, 0.5);
}

.border-glow-accent {
    box-shadow: 0 0 15px rgba(255, 159, 67, 0.2);
}

.clip-tank {
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

.hud-gradient {
    background: radial-gradient(circle at center, rgba(255, 159, 67, 0.05) 0%, transparent 70%);
}

.grain-bg {
    position: relative;
}

.grain-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* === MODULE STYLES === */
/* module: game */
#game-canvas {
    image-rendering: pixelated;
    cursor: crosshair;
}

.hud-panel {
    background: rgba(10, 11, 14, 0.8);
    border: 1px solid rgba(45, 52, 54, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
