/* Fixed dark theme (no light-mode toggle on this screen) - declared so
   the browser doesn't try to auto-invert colors on top of the page's own
   dark styling (e.g. Chrome's Force Dark Mode for Web Contents flag). */
:root { color-scheme: dark; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-x: hidden; overflow-y: auto; }

.appreciation-mode {
    animation: appreciationGlow 2s infinite;
    z-index: 100;
}

/* Intensified powerup glows */
.powerup-glow-arrow { box-shadow: 0 0 25px 8px rgba(254, 138, 24, 0.6); border-color: #FE8A18 !important; }
.powerup-glow-grenade { box-shadow: 0 0 25px 8px rgba(239, 68, 68, 0.6); border-color: #EF4444 !important; }
.powerup-glow-bomb { box-shadow: 0 0 25px 8px rgba(168, 85, 247, 0.6); border-color: #A855F7 !important; }

/* Dynamic Bricks Base Styling */
.brick {
    height: 10px;
    border-radius: 1px;
    position: absolute;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), inset 0 -1px 2px rgba(0,0,0,0.3), 1px 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.stud {
    position: absolute;
    top: -2px;
    width: 6px;
    height: 2px;
    border-radius: 1px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), inset 0 -1px 1px rgba(0,0,0,0.2);
}

/* Specific Brick Colors */
.brick[data-color="red"], .brick[data-color="red"] .stud { background-color: #EF4444; }
.brick[data-color="blue"], .brick[data-color="blue"] .stud { background-color: #3B82F6; }
.brick[data-color="yellow"], .brick[data-color="yellow"] .stud { background-color: #F2CD37; }
.brick[data-color="green"], .brick[data-color="green"] .stud { background-color: #22C55E; }
.brick[data-color="orange"], .brick[data-color="orange"] .stud { background-color: #FE8A18; }
.brick[data-color="purple"], .brick[data-color="purple"] .stud { background-color: #A855F7; }
.brick[data-color="gray"], .brick[data-color="gray"] .stud { background-color: #9CA3AF; }
.brick[data-color="dark"], .brick[data-color="dark"] .stud { background-color: #4B5563; }

/* Preview Brick Colors */
.brick-preview[data-color="red"] { background-color: #EF4444; }
.brick-preview[data-color="blue"] { background-color: #3B82F6; }
.brick-preview[data-color="yellow"] { background-color: #F2CD37; }
.brick-preview[data-color="green"] { background-color: #22C55E; }
.brick-preview[data-color="orange"] { background-color: #FE8A18; }
.brick-preview[data-color="purple"] { background-color: #A855F7; }
.brick-preview[data-color="gray"] { background-color: #9CA3AF; }
.brick-preview[data-color="dark"] { background-color: #4B5563; }

.build-area {
    position: relative;
    flex: 1;
    min-height: 150px;
    width: 100%;
    border-bottom: 4px solid #4B5563;
}

.falling-brick {
    position: absolute;
    animation: fallFromTop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.knocked-off {
    animation: explodeAnim 0.5s forwards;
    pointer-events: none;
}

#projectile-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.explosion-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #FE8A18;
    box-shadow: 0 0 10px #EF4444, 0 0 20px #F2CD37;
    animation: explodeAnim 0.6s ease-out forwards;
}

.robot { transition: transform 0.2s; }
.robot.building { animation: bounceSlight 0.3s infinite; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1F2937; }
::-webkit-scrollbar-thumb { background: #4B5563; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6B7280; }

/* Matches the CoA Apps site's own .back-link styling (same green, same
   underline-on-hover behavior), without pulling in the whole site
   stylesheet and its unrelated rules into the game's own visual system.
   (Same approach used by math-collapse/style.css's .back-link-game.) */
.back-link-game {
    display: inline-block;
    color: #4ade80;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}
.back-link-game:hover,
.back-link-game:focus-visible {
    text-decoration: underline;
    outline: 3px solid #22D3EE;
    outline-offset: 2px;
}
