/* --- VARIABLES --- */
:root {
    /* Base Theme (Dark / Lo-Fi) */
    --bg-dark-top: #45385d;
    --bg-dark-btm: #252335;
    
    --text-color: #e0e0e0;
    --accent-color: #a39fcd; /* Muted purple/grey */
    --highlight-color: #fff;
    
    --card-bg: rgba(37, 35, 53, 0.5); /* Semi-transparent */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* The specific warm glow color from lo.cafe (Gold default) */
    --glow-rgb: 250, 223, 169; 
    --glow-color: rgb(var(--glow-rgb));
    
    --font-stack: 'JetBrains Mono', monospace;
    --spacing-unit: 24px;
}

/* --- COLOR THEMES --- */
[data-color="blue"] {
    --glow-rgb: 100, 200, 255;
    --accent-color: #8daecf;
    --bg-dark-top: #1e2a4a;
    --bg-dark-btm: #0d1117;
}
[data-color="magenta"] {
    --glow-rgb: 255, 100, 255;
    --accent-color: #cf8dae;
    --bg-dark-top: #4a1e3c;
    --bg-dark-btm: #170d14;
}
[data-color="cyan"] {
    --glow-rgb: 0, 255, 230;
    --accent-color: #7abeb6;
    --bg-dark-top: #1e4a4a;
    --bg-dark-btm: #0d1717;
}
[data-color="purple"] {
    --glow-rgb: 180, 140, 255;
    --accent-color: #9d8dcf;
    --bg-dark-top: #33255d;
    --bg-dark-btm: #130d17;
}
[data-color="red"] {
    --glow-rgb: 255, 60, 60;
    --accent-color: #cf8d8d;
    --bg-dark-top: #4a1e1e;
    --bg-dark-btm: #170d0d;
}
[data-color="green"] {
    --glow-rgb: 0, 255, 100;
    --accent-color: #8dcf9c;
    --bg-dark-top: #1e4a25;
    --bg-dark-btm: #0d170f;
}
[data-color="orange"] {
    --glow-rgb: 255, 165, 0;
    --accent-color: #cfb08d;
    --bg-dark-top: #4a351e;
    --bg-dark-btm: #17120d;
}

[data-theme="light"] {
    /* Light Mode (Paper/Latte) */
    --bg-dark-top: #fdfcf6;
    --bg-dark-btm: #f2f0e9;
    --text-color: #2b2b2b;
    --accent-color: #666;
    --highlight-color: #000;
    --card-bg: rgba(255, 255, 255, 0.6);
    --border-color: #dcdcdc;
    --glow-color: #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- BACKGROUND & RAIN EFFECT --- */
body {
    background-color: var(--bg-dark-btm);
    background-image: 
        linear-gradient(to bottom right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%),
        linear-gradient(var(--bg-dark-top) 0%, var(--bg-dark-btm) 100%);
    background-attachment: fixed;
    
    color: var(--text-color);
    font-family: var(--font-stack);
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Rain GIF Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* background-image will be set via JS */
    background-size: 6.25rem 6.25rem;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.7; }

/* --- LAYOUT --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    position: relative;
    z-index: 1;
}

.spacer { height: var(--spacing-unit); }

/* --- HEADER & NAV --- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--accent-color);
    margin-bottom: 40px;
}

.breadcrumb { display: flex; gap: 10px; }

/* Controls Group */
.controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.toggle-wrapper, .color-selector {
    cursor: pointer;
    user-select: none;
    display: flex;
    gap: 8px;
}

.toggle-label, .color-option {
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.toggle-label.active, .color-option.active {
    opacity: 1;
    font-weight: bold;
    color: var(--highlight-color);
}

.color-option:hover {
    opacity: 0.8;
}

/* --- TYPOGRAPHY & HDR GLOW --- */
b, strong, .text-glow, h1, h2 {
    color: var(--highlight-color);
    font-weight: 700;
    text-shadow: 
        0 0 1.5px rgba(var(--glow-rgb), 0.28),
        0 0 3.2px rgba(var(--glow-rgb), 0.4),
        0 0 6.21px rgba(var(--glow-rgb), 0.5),
        0 0 11.11px rgba(var(--glow-rgb), 0.58),
        0 0 20.7px rgba(var(--glow-rgb), 0.72),
        0 0 41.41px rgba(var(--glow-rgb), 1);
    transition: text-shadow 0.3s ease;
}

[data-theme="light"] b, 
[data-theme="light"] strong, 
[data-theme="light"] .text-glow, 
[data-theme="light"] h1, 
[data-theme="light"] h2 {
    color: #000;
    text-shadow: none; 
}

h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

h2 {
    font-size: 16px;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

/* --- NEON SIGN --- */
.neon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 10px;
    position: relative; /* Context for absolute positioning */
}

.neon-ambient-rain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; /* Wider than the text */
    height: 250%; /* Taller than the text */
    background-image: var(--rain-gif);
    background-size: 6.25rem 6.25rem;
    background-repeat: repeat;
    background-attachment: fixed; /* Matches body::before */
    opacity: 0.8; /* Much brighter than body background (0.15) */
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
    
    /* Fade out the edges so it only glows near text */
    -webkit-mask-image: radial-gradient(closest-side, black 30%, transparent 100%);
    mask-image: radial-gradient(closest-side, black 30%, transparent 100%);
}

.neon-sign {
    font-family: 'Codystar', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    white-space: nowrap; /* Prevents .org from wrapping */
}

.neon-sign > span {
    display: inline-block; /* Allows individual transforms while centering as text */
    margin: 0 6px; /* Replaces 'gap' from flexbox */
}

.neon-sign > span {
    -webkit-text-stroke: 0px; 
}

.neon-sign span {
    color: #fff;
    
    /* Core sharpness (text-shadow) + Bloom (drop-shadow) */
    --core-glow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px var(--glow-color);
    --bloom-glow: drop-shadow(0 0 15px var(--glow-color)) drop-shadow(0 0 35px var(--glow-color));

    text-shadow: var(--core-glow);
    filter: var(--bloom-glow);
    
    animation: neon-flicker infinite alternate;
    position: relative;
    will-change: opacity; /* Optimize for opacity animation */
}

/* The X gets the theme color */
.neon-sign .neon-x {
    color: var(--glow-color);
    font-size: 0.45em;
    font-weight: 700;
    align-self: flex-end;
    margin-bottom: 2.5rem;
    display: inline-block;
    transform: rotate(16deg) translateZ(1px); 
    -webkit-text-stroke: 1px var(--glow-color);
    
    --core-glow: 0 0 5px var(--glow-color), 0 0 15px var(--glow-color);
    --bloom-glow: drop-shadow(0 0 10px var(--glow-color)) drop-shadow(0 0 25px var(--glow-color));
}

/* .org part is smaller and use accent-color (muted version of theme color) */
.neon-sign .neon-small {
    font-size: 0.15em; /* Smaller */
    align-self: flex-start;
    margin-left: 2px;
    display: inline-flex; 
    gap: 1px;
    -webkit-text-stroke: 0px;
    font-weight: 400;
    vertical-align: super; /* Exponent position */
    line-height: 1;
    margin-top: 0.5rem; /* Fine tune vertical pos */
}

.neon-sign .neon-small span {
    color: var(--accent-color);
    /* Override global glow settings for the small text */
    text-shadow: 0 0 5px var(--accent-color); 
    filter: none; /* No bloom */
    animation: none; /* Stable light */
    transform: none !important; /* No 3D shift needed */
}

/* Simplified Animations focusing on Opacity */
@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
        filter: var(--bloom-glow);
    }
    20%, 24%, 55% {
        opacity: 0.4;
        filter: none; /* Turn off bloom when dim */
    }
    21%, 23%, 56% {
        opacity: 0.7;
        filter: var(--bloom-glow);
    }
}

@keyframes neon-flicker-x {
    0%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95%, 100% {
        opacity: 1;
        filter: var(--bloom-glow);
    }
    18%, 22%, 50%, 54%, 78%, 82% {
        opacity: 0.2;
        filter: none;
    }
    20%, 52%, 80% {
        opacity: 0.1;
        filter: none;
    }
    21%, 53%, 81% {
        opacity: 0.5;
        filter: var(--bloom-glow);
    }
}

@keyframes simple-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.5;
    }
    21%, 23%, 56% {
        opacity: 0.8;
    }
}

[data-theme="light"] .neon-sign span {
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: none;
}
[data-theme="light"] .neon-sign .neon-x {
    color: var(--accent-color);
    text-shadow: none;
}


/* --- PROJECT GRID --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* --- PROJECT ITEM (CARD) --- */
.project-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, border-color 0.2s;
    height: 100%;
}

.project-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}

.dir-heading {
    font-size: 10px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-family: var(--font-stack);
    opacity: 0.6;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

[data-theme="light"] .project-icon {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #333;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-badge {
    font-size: 10px;
    color: var(--bg-dark-top);
    background: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    font-weight: 600;
    margin-top: 2px;
}

.project-desc {
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.5;
    opacity: 0.8;
    flex-grow: 1;
}

/* --- BUTTONS & HIGHLIGHT --- */
.cta-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    font-size: 11px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
    box-shadow: 
        0 0 1.7px rgba(var(--glow-rgb), 0.86), 
        0 0 4px rgba(var(--glow-rgb), 0.80), 
        0 0 7.5px rgba(var(--glow-rgb), 0.75), 
        0 0 13.4px rgba(var(--glow-rgb), 0.70), 
        0 0 25.1px rgba(var(--glow-rgb), 0.64), 
        0 0 60px rgba(var(--glow-rgb), 0.50), 
        inset 0 0 .7px rgba(var(--glow-rgb), 0.86), 
        inset 0 0 1.7px rgba(var(--glow-rgb), 0.80), 
        inset 0 0 3.1px rgba(var(--glow-rgb), 0.75), 
        inset 0 0 5.6px rgba(var(--glow-rgb), 0.70), 
        inset 0 0 10.4px rgba(var(--glow-rgb), 0.64), 
        inset 0 0 25px rgba(var(--glow-rgb), 0.50);
}

/* --- FOOTER --- */
footer {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px dashed var(--border-color);
    color: var(--accent-color);
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-item { display: flex; gap: 6px; align-items: center; }
.arrow { color: var(--text-color); }

.cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background-color: var(--glow-color);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
    box-shadow: 0 0 8px var(--glow-color);
    transition: background-color 0.3s, box-shadow 0.3s;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- BLOG SPECIFIC --- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post {
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}
.blog-date {
    font-size: 11px;
    color: var(--accent-color);
    margin-bottom: 4px;
}
.blog-title {
    font-size: 18px;
    margin-bottom: 12px;
}
.blog-content {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.9;
}
.blog-content p { margin-bottom: 12px; }
.blog-content h1, .blog-content h2, .blog-content h3 { margin-top: 24px; margin-bottom: 8px; }
.blog-content ul { padding-left: 20px; margin-bottom: 12px; }
.blog-content code { background: rgba(0,0,0,0.3); padding: 2px 4px; border-radius: 4px; }

/* --- SLOT MACHINE (Nothing to Declare) --- */
.slot-machine-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin: 40px 0;
    user-select: none;
    position: relative;
    padding-left: 20px; 
}

.slot-machine {
    background: var(--bg-dark-btm);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 
        0 0 15px rgba(var(--glow-rgb), 0.3),
        0 0 30px rgba(var(--glow-rgb), 0.1),
        0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    width: 182px; /* 70% of 260px */
}

.reel-window {
    background: #0d1117;
    border: 2px inset var(--border-color);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    padding: 0 3px;
    height: 70px; /* 70% of 100px */
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.reel-window::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 28px; /* 70% of 40px */
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 10;
}

.reel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px; /* 70% of 28px */
    line-height: 28px; 
    position: relative;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.1));
    transform: translateY(-7px); /* (84-70)/2 = 7px crop each side */
}

.reel div {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.machine-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
}

.coin-tray {
    width: 70px;
    height: 8px;
    background: #111;
    border-radius: 5px;
    border-bottom: 1px solid var(--accent-color);
    position: relative;
}

/* Lever Styles */
.lever-container {
    position: relative;
    width: 20px;
    height: 100px;
    margin-bottom: 10px; 
}

.lever-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--accent-color);
    border-radius: 3px;
    z-index: 1;
}

.lever-stick {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 60px;
    background: #888;
    border-radius: 2px;
    transform-origin: bottom center;
    transition: height 0.1s, transform 0.1s;
    z-index: 0;
}

.lever-ball {
    position: absolute;
    top: -8px; 
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--glow-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color);
    cursor: pointer;
    transition: top 0.1s;
    z-index: 2;
}

.lever-container.pulled .lever-stick {
    height: 30px;
    transform: translateX(-50%) scaleY(0.5); 
}

.lever-container.pulled .lever-ball {
    top: 60px; 
}

/* Coin Particles */
.slot-coin {
    position: fixed; /* Fixed so it's not clipped by containers */
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ffff, 0 0 12px #0000ff;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.slot-message {
    text-align: center;
    font-size: 10px;
    color: var(--accent-color);
    margin-top: 5px;
    height: 14px;
    opacity: 0.8;
}

/* Animations */
@keyframes blur-spin {
    0% { filter: blur(0); }
    50% { filter: blur(2px); }
    100% { filter: blur(0); }
}

.reel.spinning {
    animation: blur-spin 0.1s infinite;
}

/* Meltdown Animations */
@keyframes machine-overload-fire {
    0% { box-shadow: 0 0 15px rgba(var(--glow-rgb), 0.3); border-color: var(--accent-color); }
    30% { box-shadow: 0 0 60px #ff4400; border-color: #ff4400; background: #441100; transform: translate(0); }
    70% { box-shadow: 0 0 120px #ffaa00; border-color: #ffaa00; background: #664400; transform: translate(1px, -1px); }
    85% { transform: translate(-2px, 2px) rotate(-1deg); }
    90% { transform: translate(2px, -2px) rotate(1deg); }
    95% { transform: translate(-2px, -2px) rotate(-1deg); }
    100% { box-shadow: 0 0 200px #ffff00; border-color: #ffffff; background: #ffff00; transform: scale(1.2); opacity: 0; }
}

@keyframes machine-overload-void {
    0% { box-shadow: 0 0 15px rgba(var(--glow-rgb), 0.3); border-color: var(--accent-color); }
    30% { box-shadow: 0 0 50px #0055ff; border-color: #0055ff; background: #000511; transform: translate(0); }
    70% { box-shadow: 0 0 100px #00ffff; border-color: #00ffff; background: #001122; transform: translate(1px, -1px); }
    85% { transform: translate(-2px, 2px) rotate(-2deg); }
    90% { transform: translate(2px, -2px) rotate(2deg); }
    100% { box-shadow: 0 0 200px #000000; border-color: #000000; background: #000000; transform: scale(0.01) rotate(720deg); opacity: 0; }
}

.slot-machine.meltdown-void {
    animation: machine-overload-void 4s forwards ease-in;
}

.hockey-game-wrapper.meltdown-fire {
    animation: machine-overload-fire 4s forwards ease-in;
}

/* Explosion Overlay (Default to Void, JS will change) */
#explosion-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,100,255,1) 0%, rgba(0,20,50,0.8) 50%, rgba(0,0,0,0) 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2.5s ease-in-out;
}

/* --- HOCKEY GAME (FantasyJR) --- */
.hockey-game-wrapper {
    background: #02050a; /* Much darker */
    border: 1px solid #00ffff;
    border-radius: 12px;
    margin: 30px auto;
    padding: 15px;
    position: relative;
    user-select: none;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.2),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    width: 80%; /* Smaller */
    max-width: 600px;
}

/* Scanline Effect */
.hockey-game-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.hockey-game-wrapper.meltdown {
    animation: machine-overload 4s forwards ease-in;
}

.hockey-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.power-meter-container {
    width: 120px;
    height: 8px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.power-meter-bar {
    width: 0%;
    height: 100%;
    background: #00ffff;
    box-shadow: 0 0 15px #00ffff;
    transition: width 0.1s;
}

.hockey-msg {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.ice-rink {
    position: relative;
    height: 100px; /* Smaller height */
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

/* Faceoff Circle Decor */
.faceoff-circle {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
}

/* Goal Crease */
.crease {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 30px 0 0 30px;
}

.player-zone {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.player {
    font-size: 32px; /* Smaller */
    transition: transform 0.1s;
    filter: drop-shadow(0 0 8px #00ffff);
}

.puck {
    position: absolute;
    left: 70px; 
    top: calc(50% + 10px);
    width: 8px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #00ffff;
    z-index: 3;
    transition: left 0.1s linear, top 0.1s linear;
}

.goal-zone {
    position: absolute;
    right: -15px; /* Moved back slightly to the left */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.goalie {
    font-size: 40px; /* Smaller */
    position: relative;
    z-index: 1;
    transform: rotate(90deg); /* Fixed rotation to face player */
}

.goalie-body {
    position: absolute;
    font-size: 24px;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transition: top 0.2s ease-out; /* For the save reaction */
    z-index: 2;
}

@keyframes goalie-float {
    0%, 100% { top: 40%; }
    50% { top: 60%; }
}

.goalie-body.idle {
    animation: goalie-float 2s infinite ease-in-out;
}
.goalie-body.idle {
    animation: goalie-float 2s infinite ease-in-out;
}
