/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 2s ease-in-out;
}

/* Stage-based background colors - fun to sinister progression */
body.stage-1,
body.stage-2 {
    /* Stages 1-2: Bright, fun, optimistic */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.stage-3,
body.stage-4 {
    /* Stages 3-4: Starting to get darker, purple/pink */
    background: linear-gradient(135deg, #764ba2 0%, #ff006e 100%);
}

body.stage-5,
body.stage-6 {
    /* Stages 5-6: Getting ominous, darker purples */
    background: linear-gradient(135deg, #4a0e4e 0%, #6b1a6b 100%);
}

body.stage-7,
body.stage-8 {
    /* Stages 7-8: Dark and foreboding */
    background: linear-gradient(135deg, #2d0a3d 0%, #4a1347 100%);
}

body.stage-9,
body.stage-10 {
    /* Stages 9-10: Very dark, red tints */
    background: linear-gradient(135deg, #1a0022 0%, #330011 100%);
}

body.stage-11,
body.stage-12 {
    /* Stages 11-12: Almost black, blood red accents */
    background: linear-gradient(135deg, #0d0011 0%, #220011 100%);
}

body.stage-13,
body.stage-14,
body.stage-15 {
    /* Stages 13-15: Terminal, pure darkness */
    background: linear-gradient(135deg, #000000 0%, #110011 100%);
}

/* Color Palette - Retro 80s/90s */
:root {
    --neon-pink: #ff006e;
    --neon-blue: #00f5ff;
    --neon-green: #00ff41;
    --neon-yellow: #ffff00;
    --neon-purple: #b800e6;
    --dark-bg: #1a0033;
    --mid-bg: #2d1b4e;
    --light-bg: #4a2c6f;
    --text-light: #ffffff;
    --text-dim: #cccccc;
    --danger: #ff0040;
    --success: #00ff88;
}

/* Game Container */
#game-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid var(--neon-pink);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--neon-pink);
}

h1 {
    font-size: 3em;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue);
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-1px, 1px);
    }
}

.subtitle {
    font-size: 1em;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Layout */
.game-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebars */
.sidebar {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
    display: flex;
    flex-direction: column;
}

.left-sidebar {
    overflow-y: auto;
    max-height: 80vh;
}

.right-sidebar {
    overflow-y: visible;
}

.sidebar h2 {
    color: var(--neon-yellow);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-shadow: 0 0 10px var(--neon-yellow);
}

.sidebar h3 {
    color: var(--neon-green);
    font-size: 1.1em;
    margin: 15px 0 10px 0;
    text-shadow: 0 0 5px var(--neon-green);
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 5px;
}

/* Main Area */
.main-area {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid var(--neon-green);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-height: 80vh;
}

/* Stats Display */
.stats-display {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 15;
}

.stat-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.stat-item.main-stat {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.4);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9em;
    margin-right: 10px;
}

.stat-value {
    color: var(--neon-yellow);
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-yellow);
}

/* Click Button */
.click-button {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: 5px solid var(--neon-blue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 0 30px var(--neon-pink), inset 0 0 30px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.click-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 40px var(--neon-pink), inset 0 0 40px rgba(255, 255, 255, 0.2);
}

.click-button:active {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 20px var(--neon-pink), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.click-text {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    user-select: none;
}

.click-subtext {
    font-size: 1.2em;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
    user-select: none;
}

/* Bots Container */
#bots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

/* Hex Grid Canvas */
#hex-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: none;
}

#hex-grid-canvas.active {
    display: block;
}

/* Hex mode click button - bottom left corner of play area */
.hex-click-button {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-pink);
    transition: all 0.2s ease;
}

.hex-click-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--neon-pink);
}

.hex-click-button:active {
    transform: scale(0.95);
}

.hex-click-button.active {
    display: block;
}

.bot-icon {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

.bot-icon .material-symbols-outlined {
    font-size: inherit;
}

.bot-icon.autoposter {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--neon-green), var(--neon-blue));
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    font-size: 24px;
    color: white;
}

.bot-icon.imageposter {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--neon-yellow), #ff9500);
    border: 2px solid var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-yellow);
    font-size: 24px;
    color: white;
}

.bot-icon.auto-autoposter {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--neon-pink), var(--neon-purple));
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
    animation: pulse 2s ease-in-out infinite;
    font-size: 30px;
    color: white;
}

.bot-icon.masked::after {
    content: 'domino_mask';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-icon.infected {
    animation: none !important;
    opacity: 0.9;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bot-icon.infected .material-symbols-outlined {
    color: #000 !important;
    font-size: 36px !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.bot-icon.destroying {
    animation: implode 0.8s ease-out forwards;
}

@keyframes implode {
    0% {
        transform: scale(1);
        background: inherit;
        opacity: 1;
    }
    30% {
        background: #333;
    }
    70% {
        transform: scale(0.3);
        background: #000;
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-15px) translateX(3px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px var(--neon-pink);
    }
    50% {
        box-shadow: 0 0 25px var(--neon-pink), 0 0 35px var(--neon-purple);
    }
}

/* Particles */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.particle {
    position: absolute;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
    animation: float-up 1s ease-out forwards;
    pointer-events: none;
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* Stage Display */
/* Stage display styles removed - stage text now in header */

/* AI Content Showcase */
.ai-content-showcase {
    width: 100%;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid var(--neon-green);
    font-style: italic;
    color: var(--neon-green);
    text-align: center;
    display: none;
}

.ai-content-showcase.visible {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

/* Upgrades List */
.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade-item {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-item:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
    transform: translateX(5px);
}

.upgrade-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
}

.upgrade-item.disabled:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: none;
    transform: none;
}

.upgrade-item.hidden {
    display: none;
}

.upgrade-name {
    font-size: 1.2em;
    color: var(--neon-yellow);
    margin-bottom: 5px;
    font-weight: bold;
}

.upgrade-description {
    font-size: 0.9em;
    color: var(--text-dim);
    margin-bottom: 10px;
    line-height: 1.4;
}

.upgrade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-cost {
    color: var(--neon-pink);
    font-weight: bold;
    font-size: 1.1em;
}

.upgrade-count {
    color: var(--neon-blue);
    font-size: 0.9em;
}

/* Stats List */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-group {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.stat-line:last-child {
    border-bottom: none;
}

.stat-line span:last-child {
    color: var(--neon-yellow);
    font-weight: bold;
}

/* Control Buttons */
.control-btn {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: 2px solid var(--neon-blue);
    border-radius: 5px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.danger {
    background: linear-gradient(135deg, var(--danger), #cc0033);
    border-color: var(--danger);
}

.version-info {
    margin-top: 15px;
    padding: 8px;
    text-align: center;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* News Ticker */
.news-ticker {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-yellow);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
    overflow: hidden;
}

.ticker-label {
    font-weight: bold;
    color: var(--neon-pink);
    font-size: 1.2em;
    text-shadow: 0 0 10px var(--neon-pink);
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

#ticker-text {
    color: var(--neon-yellow);
    font-size: 1.1em;
    display: inline-block;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-bg);
    border: 3px solid var(--neon-blue);
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px var(--neon-blue);
}

.modal-content h2 {
    color: var(--neon-yellow);
    text-align: center;
    margin-bottom: 20px;
}

#import-text,
#export-text {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-green);
    border-radius: 5px;
    color: white;
    font-family: 'Courier New', monospace;
    padding: 10px;
    margin-bottom: 20px;
    resize: vertical;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

/* Stage-specific color shifts */
body.stage-7 {
    background: linear-gradient(135deg, #cc0033 0%, #660033 100%);
}

body.stage-10 {
    background: linear-gradient(135deg, #330033 0%, #000000 100%);
    animation: corruption 2s infinite;
}

@keyframes corruption {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

body.stage-13 {
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    animation: chaos 1s infinite;
}

@keyframes chaos {
    0%, 100% { filter: invert(0) hue-rotate(0deg); }
    25% { filter: invert(0.1) hue-rotate(90deg); }
    50% { filter: invert(0) hue-rotate(180deg); }
    75% { filter: invert(0.1) hue-rotate(270deg); }
}

/* Responsive adjustments */
/* Mobile Layout - Optimized for touch screens */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    #game-container {
        padding: 0;
        min-height: 100vh;
    }

    /* Disable text selection on mobile */
    * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Stats - single row at very top - no labels, no boxes */
    .stats-display {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        border-bottom: 2px solid var(--neon-purple);
        padding: 6px 10px;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .stat-item {
        padding: 0;
        font-size: 0.9em;
        flex: 0 1 auto;
        min-width: auto;
        background: none;
        border: none;
        box-shadow: none;
    }

    /* Hide labels on mobile */
    .stat-item .stat-label {
        display: none;
    }

    /* Hide market value on mobile to save space */
    .stats-display .stat-item:nth-child(3) {
        display: none;
    }

    /* Header - below stats bar */
    header {
        margin-top: 35px;
        padding: 15px 10px;
        margin-bottom: 0;
        border-bottom: 3px solid var(--neon-blue);
        position: relative;
    }

    h1 {
        font-size: 2.5em;
        margin-bottom: 3px;
        letter-spacing: 1px;
    }

    /* Keep subtitle visible - it's the story! */
    .subtitle {
        font-size: 1em;
        line-height: 1.1;
        margin-bottom: 0;
    }

    /* Adjust layout for stats bar */
    .game-layout {
        margin-top: 0;
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Main area - keep it visible for bots and make it clickable */
    .main-area {
        order: 1;
        padding: 0;
        min-height: 300px;
        width: 100%;
        position: relative;
        cursor: pointer;
        transition: all 0.1s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-area:active {
        background: rgba(0, 255, 65, 0.05);
    }

    .main-area::before {
        content: 'TAP TO POST AI CONTENT';
        display: block;
        font-size: 1.5em;
        font-weight: bold;
        color: var(--neon-yellow);
        text-align: center;
        text-shadow: 0 0 20px var(--neon-yellow);
        opacity: 0.3;
        z-index: 1;
        position: relative;
    }

    /* Hide the old click button on mobile */
    .click-button {
        display: none;
    }

    /* AI Content Display */
    .ai-content-showcase {
        font-size: 0.85em;
        padding: 12px;
        max-width: 100%;
    }

    /* Upgrades sidebar - two columns on mobile, 3 rows visible */
    .left-sidebar {
        order: 2;
        max-height: 600px;
        overflow-y: auto;
    }

    .left-sidebar h2 {
        position: sticky;
        top: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 10;
        padding: 10px;
        margin: -10px -10px 10px -10px;
    }

    /* Two column layout for upgrades */
    .upgrades-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Stats sidebar - at bottom */
    .right-sidebar {
        order: 3;
    }

    /* Sidebar adjustments */
    .sidebar {
        padding: 15px;
        font-size: 0.9em;
    }

    .sidebar h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .sidebar h3 {
        font-size: 1em;
    }

    /* Upgrade cards - two columns on mobile */
    .upgrade-item {
        padding: 10px;
        margin-bottom: 0;
    }

    .upgrade-name {
        font-size: 0.9em;
    }

    .upgrade-description {
        font-size: 0.75em;
    }

    .upgrade-cost {
        font-size: 0.8em;
    }

    .upgrade-count {
        font-size: 0.75em;
    }

    /* Control buttons - stack vertically */
    .control-btn {
        padding: 10px;
        font-size: 0.9em;
        margin: 3px 0;
    }

    /* Stats list - more compact */
    .stat-line {
        padding: 6px 0;
        font-size: 0.85em;
    }

    .stat-group {
        margin-bottom: 12px;
    }

    /* News ticker - stays at bottom */
    .news-ticker {
        padding: 10px;
        font-size: 0.85em;
    }

    .ticker-label {
        font-size: 0.9em;
        padding-right: 8px;
    }

    /* Bot icons - smaller on mobile */
    .bot-icon {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .bot-icon.auto-autoposter {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    /* Particles - smaller */
    .click-particle {
        font-size: 1.2em;
    }

    /* Modals - full screen on mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    #import-text,
    #export-text {
        font-size: 0.8em;
        height: 120px;
    }

    /* Version info */
    .version-info {
        font-size: 0.75em;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 0.7em;
    }

    .click-button {
        width: 180px;
        height: 180px;
    }

    .click-text {
        font-size: 1em;
    }

    .stat-item {
        font-size: 0.85em;
    }

    .upgrade-card {
        padding: 10px;
    }

    .bot-icon {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
}

/* Screen shake effect */
@keyframes screen-shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5px, 5px); }
    20% { transform: translate(5px, -5px); }
    30% { transform: translate(-5px, -5px); }
    40% { transform: translate(5px, 5px); }
    50% { transform: translate(-5px, 5px); }
    60% { transform: translate(5px, -5px); }
    70% { transform: translate(-5px, -5px); }
    80% { transform: translate(5px, 5px); }
    90% { transform: translate(-5px, -5px); }
}

.shake {
    animation: screen-shake 0.5s;
}

/* Bot bust animation */
@keyframes bot-bust {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.5) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

.busted {
    animation: bot-bust 0.5s;
}
