        /* === EXCHANGE NOTIFICATION === */
        #exchange-notification {
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translateX(-50%) translateY(-190px);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 20px;
            font-family: 'Press Start 2P', cursive;
            font-size: 9px;
            background: rgba(15, 12, 8, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 10px 10px 0 0;
            border: 1px solid rgba(140, 255, 140, 0.4);
            border-bottom: none;
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(140, 255, 140, 0.1);
            z-index: 202;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        }

        #exchange-notification.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-250px);
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(140, 255, 140, 0.2),
                inset 0 0 20px rgba(140, 255, 140, 0.1);
        }

        #exchange-notification .exchange-icon-group {
            width: 16px;
            height: 16px;
        }

        #exchange-notification .exchange-notif-text {
            color: #8CFF8C;
            text-shadow: 0 0 10px rgba(140, 255, 140, 0.5);
        }

        #exchange-notification .exchange-notif-arrow {
            color: rgba(255, 255, 255, 0.5);
            margin: 0 2px;
        }

        /* === LOADING OVERLAY === */
        #loading-overlay {
            position: fixed;
            inset: 0;
            background: linear-gradient(180deg, #0a0a12 0%, #1a1a2e 50%, #0a0a12 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 3000;
        }

        #loading-overlay.hidden {
            display: none;
        }

        .loading-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px;
            background: linear-gradient(180deg, #1a1610 0%, #0f0a06 100%);
            border-radius: 16px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            box-shadow: 0 8px 32px rgba(180, 150, 50, 0.3);
            min-width: 300px;
        }

        .loading-title {
            font-size: 18px;
            color: #FFD700;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            margin: 0 0 24px 0;
            letter-spacing: 3px;
        }

        .loading-progress-container {
            width: 100%;
            height: 8px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 24px;
            border: 1px solid rgba(255, 215, 0, 0.2);
        }

        .loading-progress-bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
            background-size: 200% 100%;
            border-radius: 4px;
            transition: width 0.3s ease;
            animation: progressShine 1.5s ease infinite;
        }

        @keyframes progressShine {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .loading-stages {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            margin-bottom: 20px;
        }

        .loading-stage {
            display: flex;
            align-items: center;
            gap: 12px;
            opacity: 0.3;
            transition: all 0.3s ease;
        }

        .loading-stage.pending {
            opacity: 0.3;
        }

        .loading-stage.pending .stage-icon {
            color: rgba(255, 255, 255, 0.3);
            animation: none;
        }

        .loading-stage.active {
            opacity: 1;
        }

        .loading-stage.active .stage-icon {
            color: #FFA500;
            animation: stagePulse 1s ease infinite;
        }

        .loading-stage.completed {
            opacity: 1;
        }

        .loading-stage.completed .stage-icon {
            color: #50C878;
            animation: none;
        }

        .loading-stage.error {
            opacity: 1;
        }

        .loading-stage.error .stage-icon {
            color: #FF6B6B;
            animation: none;
        }

        @keyframes stagePulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
        }

        .stage-icon {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.3);
            width: 16px;
            text-align: center;
        }

        .stage-text {
            font-size: 9px;
            color: rgba(255, 255, 255, 0.7);
        }

        .loading-stage.completed .stage-text {
            color: rgba(255, 255, 255, 0.9);
        }

        .loading-status {
            font-size: 8px;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
            text-align: center;
        }

        /* === AUTH OVERLAY === */
        #auth-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        #auth-overlay.show {
            display: flex;
            animation: authFadeIn 0.3s ease;
        }

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

        .auth-container {
            background: linear-gradient(180deg, #1a1610 0%, #0f0a06 100%);
            border-radius: 16px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            padding: 32px 36px;
            box-shadow: 0 8px 32px rgba(180, 150, 50, 0.3);
            text-align: center;
            min-width: 320px;
            max-width: 90vw;
            animation: authSlideUp 0.4s ease;
        }

        @keyframes authSlideUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .auth-title {
            font-size: 16px;
            color: #FFD700;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            margin: 0 0 24px 0;
            letter-spacing: 2px;
        }

        .auth-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            background: rgba(0, 0, 0, 0.3);
            padding: 4px;
            border-radius: 10px;
        }

        .auth-tab {
            flex: 1;
            padding: 12px 16px;
            background: transparent;
            border: none;
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.5);
            font-family: 'Press Start 2P', cursive;
            font-size: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .auth-tab:hover {
            color: rgba(255, 255, 255, 0.8);
            background: rgba(255, 255, 255, 0.05);
        }

        .auth-tab.active {
            background: linear-gradient(180deg, #5a8a3a 0%, #3a6a1a 100%);
            color: #fff;
            box-shadow: 0 2px 8px rgba(90, 138, 58, 0.4);
        }

        .auth-forms-container {
            position: relative;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .auth-form.entering {
            animation: authSlideIn 0.3s ease forwards;
        }

        .auth-form.leaving {
            animation: authSlideOut 0.2s ease forwards;
        }

        .auth-forms-container.to-right .auth-form.entering {
            animation-name: authSlideInFromLeft;
        }

        .auth-forms-container.to-right .auth-form.leaving {
            animation-name: authSlideOutToRight;
        }

        .auth-forms-container.to-left .auth-form.entering {
            animation-name: authSlideInFromRight;
        }

        .auth-forms-container.to-left .auth-form.leaving {
            animation-name: authSlideOutToLeft;
        }

        @keyframes authSlideInFromLeft {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes authSlideOutToRight {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(30px); }
        }

        @keyframes authSlideInFromRight {
            from { opacity: 0; transform: translateX(30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes authSlideOutToLeft {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(-30px); }
        }

        .auth-input-group {
            margin-bottom: 16px;
            text-align: left;
        }

        .auth-label {
            display: block;
            font-size: 7px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 8px;
            letter-spacing: 1px;
        }

        .auth-input {
            width: 100%;
            padding: 14px 16px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #fff;
            font-family: 'Press Start 2P', cursive;
            font-size: 12px;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }

        .auth-input:focus {
            outline: none;
            border-color: rgba(255, 215, 0, 0.5);
            background: rgba(0, 0, 0, 0.5);
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
        }

        .auth-input::placeholder {
            color: rgba(255, 255, 255, 0.2);
        }

        .auth-button {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(180deg, #5a8a3a 0%, #3a6a1a 100%);
            border: none;
            border-radius: 12px;
            color: #FFD700;
            font-family: 'Press Start 2P', cursive;
            font-size: 10px;
            cursor: pointer;
            margin-top: 8px;
            transition: all 0.2s ease;
            box-shadow:
                0 4px 0 #2a4a0a,
                0 6px 20px rgba(0, 0, 0, 0.3);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .auth-button:hover {
            background: linear-gradient(180deg, #6a9a4a 0%, #4a7a2a 100%);
            transform: translateY(-2px);
            box-shadow:
                0 6px 0 #2a4a0a,
                0 10px 30px rgba(0, 0, 0, 0.4);
        }

        .auth-button:active {
            transform: translateY(2px);
            box-shadow:
                0 2px 0 #2a4a0a,
                0 4px 10px rgba(0, 0, 0, 0.3);
        }

        .auth-error {
            background: rgba(255, 80, 80, 0.15);
            border: 1px solid rgba(255, 80, 80, 0.3);
            border-radius: 8px;
            color: #ff6b6b;
            padding: 12px 16px;
            font-size: 8px;
            margin-bottom: 16px;
            display: none;
            animation: authErrorShake 0.3s ease;
        }

        @keyframes authErrorShake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5px); }
            40%, 80% { transform: translateX(5px); }
        }

        .auth-error.show {
            display: block;
        }

        /* === OFFLINE EARNINGS === */
        #offline-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2500;
            animation: offlineFadeIn 0.4s ease;
        }

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

        .offline-content {
            background: linear-gradient(180deg, #1a1610 0%, #0f0a06 100%);
            border-radius: 16px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            padding: 28px 40px;
            text-align: center;
            box-shadow: 0 8px 32px rgba(180, 150, 50, 0.4);
            max-width: 90vw;
            min-width: 340px;
            animation: offlineSlideUp 0.5s ease;
        }

        @keyframes offlineSlideUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .offline-header {
            margin-bottom: 20px;
        }

        .offline-content h2 {
            font-size: 13px;
            color: #FFD700;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            margin: 0 0 8px 0;
            letter-spacing: 2px;
        }

        .offline-time {
            font-size: 9px;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
        }

        .offline-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
            margin: 16px 0;
        }

        .offline-resources {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .offline-resource {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            min-width: 80px;
            transition: all 0.3s ease;
        }

        .offline-resource:hover {
            background: rgba(255, 255, 255, 0.06);
            transform: translateY(-2px);
        }

        .offline-resource-icon {
            width: 32px;
            height: 32px;
            margin-bottom: 8px;
            image-rendering: pixelated;
        }

        .offline-resource .offline-amount {
            font-size: 16px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
            animation: offlinePulse 2s ease infinite;
        }

        .offline-resource.gold .offline-amount {
            color: #FFD700;
            text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
        }

        .offline-resource.wood .offline-amount {
            color: #C4A574;
            text-shadow: 0 0 15px rgba(196, 165, 116, 0.4);
        }

        .offline-resource.emerald .offline-amount {
            color: #50C878;
            text-shadow: 0 0 15px rgba(80, 200, 120, 0.4);
        }

        .offline-resource.meat .offline-amount {
            color: #FF6B6B;
            text-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
        }

        .offline-resource .offline-label {
            font-size: 7px;
            color: rgba(255, 255, 255, 0.4);
            margin-top: 6px;
            letter-spacing: 1px;
        }

        @keyframes offlinePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.03); }
        }

        .offline-efficiency {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 16px;
            background: rgba(255, 100, 100, 0.1);
            border-radius: 8px;
            border: 1px solid rgba(255, 100, 100, 0.2);
            margin-bottom: 16px;
        }

        .offline-efficiency.full {
            background: rgba(100, 255, 100, 0.1);
            border-color: rgba(100, 255, 100, 0.2);
        }

        .offline-efficiency-text {
            font-size: 8px;
            color: rgba(255, 255, 255, 0.7);
        }

        .offline-efficiency-value {
            font-size: 10px;
            color: #ff6b6b;
        }

        .offline-efficiency.full .offline-efficiency-value {
            color: #6bff6b;
        }

        .offline-recommendation {
            font-size: 7px;
            color: rgba(255, 200, 100, 0.8);
            margin-top: 8px;
            margin-bottom: 16px;
        }

        .offline-btn {
            padding: 14px 40px;
            background: linear-gradient(180deg, #5a8a3a 0%, #3a6a1a 100%);
            border: none;
            border-radius: 12px;
            color: #FFD700;
            font-family: 'Press Start 2P', cursive;
            font-size: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow:
                0 4px 0 #2a4a0a,
                0 6px 20px rgba(0, 0, 0, 0.3);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .offline-btn:hover {
            background: linear-gradient(180deg, #6a9a4a 0%, #4a7a2a 100%);
            transform: translateY(-2px);
            box-shadow:
                0 6px 0 #2a4a0a,
                0 10px 30px rgba(0, 0, 0, 0.4);
        }

        .offline-btn:active {
            transform: translateY(2px);
            box-shadow:
                0 2px 0 #2a4a0a,
                0 4px 10px rgba(0, 0, 0, 0.3);
        }

        /* === UNIVERSAL MODAL NOTIFICATION === */
        #modal-notification {
            position: fixed;
            left: 50%;
            top: 0;
            transform: translateX(-50%) translateY(0);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            font-family: 'Press Start 2P', cursive;
            font-size: 9px;
            background: rgba(15, 12, 8, 0.95);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 10px 10px 0 0;
            border: 1px solid rgba(255, 100, 100, 0.4);
            border-bottom: none;
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(255, 100, 100, 0.1);
            z-index: 320;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
            pointer-events: none;
            white-space: nowrap;
        }

        #modal-notification.show {
            opacity: 1;
            visibility: visible;
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 100, 100, 0.2),
                inset 0 0 20px rgba(255, 100, 100, 0.1);
        }

        /* Error style (red) */
        #modal-notification.error {
            color: #FF8080;
            text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
            border-color: rgba(255, 100, 100, 0.4);
        }

        /* Success style (green) */
        #modal-notification.success {
            color: #8CFF8C;
            text-shadow: 0 0 10px rgba(140, 255, 140, 0.5);
            border-color: rgba(140, 255, 140, 0.4);
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(140, 255, 140, 0.1);
        }

        #modal-notification.success.show {
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(140, 255, 140, 0.2),
                inset 0 0 20px rgba(140, 255, 140, 0.1);
        }

        /* === NOTIFICATIONS === */
        .notification {
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translateX(-50%) translateY(-190px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            font-family: 'Press Start 2P', cursive;
            font-size: 9px;
            background: rgba(15, 12, 8, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 10px 10px 0 0;
            border: 1px solid rgba(255, 100, 100, 0.4);
            border-bottom: none;
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(255, 100, 100, 0.1);
            z-index: 320;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
            pointer-events: none;
        }

        .notification.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-230px);
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 100, 100, 0.2),
                inset 0 0 20px rgba(255, 100, 100, 0.1);
        }

        .notification.error {
            color: #FF8080;
            text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
            border-color: rgba(255, 100, 100, 0.4);
        }

        .notification.success {
            color: #8CFF8C;
            text-shadow: 0 0 10px rgba(140, 255, 140, 0.5);
            border-color: rgba(140, 255, 140, 0.4);
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(140, 255, 140, 0.1);
        }

        .notification.success.show {
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(140, 255, 140, 0.2),
                inset 0 0 20px rgba(140, 255, 140, 0.1);
        }

        /* === FOOD WARNING === */
        #food-warning {
            position: fixed;
            top: 60px; /* Will be overridden by JS */
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 20px;
            font-size: 9px;
            background: rgba(15, 12, 8, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 0 0 10px 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            z-index: 99;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        #food-warning.show {
            opacity: 1;
            visibility: visible;
        }

        #food-warning.shortage {
            border-color: rgba(200, 160, 60, 0.4);
            box-shadow:
                0 4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(200, 160, 60, 0.1);
        }

        #food-warning.shortage #food-warning-text {
            color: #f0c040;
            text-shadow: 0 0 10px rgba(240, 192, 64, 0.4);
        }

        #food-warning.hungry {
            border-color: rgba(220, 80, 80, 0.5);
            box-shadow:
                0 4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(220, 80, 80, 0.15);
            animation: warningGlow 1s ease infinite;
        }

        #food-warning.hungry #food-warning-text {
            color: #ff6060;
            text-shadow: 0 0 10px rgba(255, 96, 96, 0.5);
        }

        @keyframes warningGlow {
            0%, 100% {
                box-shadow:
                    0 4px 15px rgba(0, 0, 0, 0.4),
                    inset 0 0 20px rgba(220, 80, 80, 0.15);
            }
            50% {
                box-shadow:
                    0 4px 20px rgba(220, 80, 80, 0.3),
                    inset 0 0 30px rgba(220, 80, 80, 0.25);
            }
        }

        /* === CONNECTION STATUS === */
        /* === WORKERS BAR (bottom) === */
        #workers-bar {
            position: fixed;
            bottom: calc(38px + env(safe-area-inset-bottom, 0px));
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(15, 12, 8, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                0 4px 20px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            z-index: 100;
            visibility: hidden;
        }

        #workers-bar .workers-icon {
            width: 24px;
            height: 24px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
        }

        #workers-bar .workers-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        #workers-bar .workers-value {
            font-family: 'Press Start 2P', cursive;
            font-size: 12px;
            color: #B8D4E8;
            text-shadow: 1px 1px 0 #000;
        }

        #workers-bar .workers-value.full {
            color: #FF6B6B;
        }

        #workers-bar .workers-label {
            font-family: 'Press Start 2P', cursive;
            font-size: 7px;
            color: rgba(255, 255, 255, 0.5);
        }

        #connection-status {
            position: fixed;
            bottom: calc(10px + env(safe-area-inset-bottom, 0px));
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px;
            font-size: 7px;
            border-radius: 4px;
            z-index: 50;
        }

        #username-display {
            color: #FFD700;
        }

        #connection-status.connected {
            background: rgba(42, 74, 26, 0.85);
        }

        #connection-status.connected #connection-text {
            color: #7f7;
        }

        #connection-status.disconnected {
            background: rgba(74, 26, 26, 0.85);
        }

        #connection-status.disconnected #connection-text {
            color: #f77;
        }

        /* === ANIMATIONS === */
        @keyframes goldPulse {
            0%, 100% { text-shadow: 1px 1px 0 #000; }
            50% { text-shadow: 1px 1px 0 #000, 0 0 8px #FFD700; }
        }

        .gold-updated { animation: goldPulse 0.3s ease; }
        .wood-updated { animation: woodPulse 0.3s ease; }
        .meat-updated { animation: meatPulse 0.3s ease; }

        @keyframes woodPulse {
            0%, 100% { text-shadow: 1px 1px 0 #000; }
            50% { text-shadow: 1px 1px 0 #000, 0 0 8px #CD853F; }
        }

        @keyframes meatPulse {
            0%, 100% { text-shadow: 1px 1px 0 #000; }
            50% { text-shadow: 1px 1px 0 #000, 0 0 8px #FF6B6B; }
        }

        /* Hidden until auth */
        #top-bar,
        #side-buttons,
        #logout-btn {
            visibility: hidden;
        }
