        /* ============================================
           THE ABYSS — AAA UNDERWATER HORROR STYLES
           ============================================ */
        
        body {
            margin: 0;
            overflow: hidden;
            background: #000;
            font-family: Satoshi, system-ui, sans-serif;
        }

        #game-canvas {
            display: block;
            width: 100vw;
            height: 100vh;
            box-shadow: inset 0 0 150px rgba(0, 0, 5, 0.5);
            transition: box-shadow 0.3s ease;
        }

        /* Damage Overlay */
        #damage-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle, transparent 30%, rgba(255, 0, 0, 0.3) 100%);
            pointer-events: none;
            z-index: 50;
            opacity: 0;
            transition: opacity 0.2s;
        }

        /* Enhanced HUD */
        .game-hud {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 100;
        }

        .hud-container {
            position: absolute;
            top: 20px;
            left: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .hud-score {
            font-family: Fraunces, Georgia, serif;
            font-size: 1.4rem;
            color: #fff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .hud-score.pulse {
            animation: hudPulse 0.5s ease-in-out infinite;
        }

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

        /* Wrist Display (Diegetic HUD) */
        #wrist-display {
            position: absolute;
            bottom: 100px;
            right: 50px;
            width: 200px;
            background: rgba(10, 15, 30, 0.85);
            border: 1px solid rgba(100, 150, 200, 0.3);
            border-radius: 15px;
            padding: 15px;
            backdrop-filter: blur(10px);
            display: none;
            pointer-events: auto;
            box-shadow: 
                0 0 30px rgba(0, 100, 200, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        #wrist-display::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #00aaff, #0088ff, #00aaff);
            border-radius: 17px;
            z-index: -1;
            opacity: 0.3;
        }

        .wrist-header {
            font-size: 0.7rem;
            color: #88aacc;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .wrist-header::after {
            content: '●';
            color: #00ff88;
            animation: blink 2s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .wrist-stat {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid rgba(100, 150, 200, 0.1);
            font-size: 0.85rem;
        }

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

        .wrist-label {
            color: #6688aa;
        }

        .wrist-value {
            color: #aaddff;
            font-family: 'Courier New', monospace;
        }

        /* Compass */
        #compass-container {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 80px;
            height: 80px;
        }

        #compass {
            width: 100%;
            height: 100%;
            border: 2px solid rgba(100, 150, 200, 0.4);
            border-radius: 50%;
            background: rgba(10, 15, 30, 0.6);
            backdrop-filter: blur(5px);
            position: relative;
        }

        #compass::before {
            content: 'N';
            position: absolute;
            top: 5px;
            left: 50%;
            transform: translateX(-50%);
            color: #ff4444;
            font-weight: bold;
            font-size: 0.8rem;
        }

        #compass::after {
            content: '▼';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #00ff88;
            font-size: 1.2rem;
        }

        /* Objectives Panel */
        #objectives {
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            background: rgba(10, 15, 30, 0.7);
            border-left: 3px solid #00aaff;
            padding: 15px 20px;
            backdrop-filter: blur(5px);
            max-width: 250px;
        }

        #objectives h3 {
            margin: 0 0 10px 0;
            color: #00aaff;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .objective {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            font-size: 0.85rem;
            color: #aaddff;
            border-bottom: 1px solid rgba(100, 150, 200, 0.1);
        }

        .objective:last-child {
            border-bottom: none;
        }

        .objective-checkbox {
            width: 16px;
            height: 16px;
            border: 2px solid #6688aa;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: #00ff88;
        }

        .objective.completed {
            opacity: 0.5;
            text-decoration: line-through;
        }

        .objective.completed .objective-checkbox {
            background: #00ff88;
            color: #000;
        }

        /* Notification System */
        #notification {
            position: fixed;
            top: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(10, 15, 30, 0.95);
            border: 1px solid rgba(100, 150, 200, 0.3);
            border-radius: 8px;
            padding: 12px 24px;
            color: #aaddff;
            font-size: 0.95rem;
            backdrop-filter: blur(10px);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 200;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        #notification.warning {
            border-color: #ff8800;
            color: #ffaa44;
            background: rgba(30, 15, 5, 0.95);
        }

        #notification.danger {
            border-color: #ff0000;
            color: #ff4444;
            background: rgba(30, 5, 5, 0.95);
            animation: dangerPulse 0.5s ease-in-out infinite;
        }

        #notification.success {
            border-color: #00ff88;
            color: #00ff88;
            background: rgba(5, 30, 15, 0.95);
            box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
        }

        @keyframes dangerPulse {
            0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
            50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.6); }
        }

        /* Data Log Modal */
        .data-log-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(10px);
            animation: fadeIn 0.3s ease;
        }

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

        .data-log-modal .modal-content {
            background: linear-gradient(135deg, #0a1525 0%, #1a2535 100%);
            border: 1px solid rgba(100, 150, 200, 0.3);
            border-radius: 12px;
            padding: 30px 40px;
            max-width: 500px;
            width: 90%;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 30px rgba(0, 100, 200, 0.2);
            animation: slideUp 0.3s ease;
        }

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

        .data-log-modal h2 {
            color: #00ff88;
            font-family: Fraunces, Georgia, serif;
            margin: 0 0 15px 0;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .data-log-modal h2::before {
            content: '📄';
            font-size: 1.4rem;
        }

        .data-log-modal p {
            color: #aaddff;
            line-height: 1.8;
            font-size: 1rem;
            margin: 0 0 25px 0;
            font-style: italic;
        }

        .data-log-modal button {
            background: linear-gradient(135deg, #0066aa, #0088cc);
            border: none;
            color: #fff;
            padding: 12px 30px;
            border-radius: 6px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .data-log-modal button:hover {
            background: linear-gradient(135deg, #0088cc, #00aaff);
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 150, 255, 0.4);
        }

        /* Settings Modal */
        .settings-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .settings-modal .modal-content {
            background: linear-gradient(135deg, #0a1525 0%, #1a2535 100%);
            border: 1px solid rgba(100, 150, 200, 0.3);
            border-radius: 12px;
            padding: 30px 40px;
            max-width: 400px;
            width: 90%;
            color: #aaddff;
        }

        .settings-modal h2 {
            color: #00aaff;
            font-family: Fraunces, Georgia, serif;
            margin: 0 0 25px 0;
            text-align: center;
            font-size: 2rem;
        }

        .setting-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid rgba(100, 150, 200, 0.1);
        }

        .setting-row:last-of-type {
            border-bottom: none;
            margin-bottom: 20px;
        }

        .setting-row label {
            color: #88aacc;
            font-size: 0.95rem;
        }

        .setting-row input[type="range"] {
            width: 120px;
            accent-color: #00aaff;
        }

        .setting-row input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: #00aaff;
        }

        .settings-modal button {
            background: rgba(100, 150, 200, 0.2);
            border: 1px solid rgba(100, 150, 200, 0.4);
            color: #aaddff;
            padding: 10px 25px;
            border-radius: 6px;
            cursor: pointer;
            margin-right: 10px;
            transition: all 0.3s;
        }

        .settings-modal button:hover {
            background: rgba(100, 150, 200, 0.3);
            border-color: #00aaff;
        }

        .settings-modal button:first-of-type {
            background: linear-gradient(135deg, #0066aa, #0088cc);
            border: none;
            color: #fff;
        }

        /* Photo Mode UI */
        body.photo-mode #game-hud {
            display: none !important;
        }

        .photo-mode-controls {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(10, 15, 30, 0.9);
            border: 1px solid rgba(100, 150, 200, 0.3);
            border-radius: 8px;
            padding: 15px 25px;
            display: none;
            gap: 15px;
            backdrop-filter: blur(10px);
            z-index: 300;
        }

        body.photo-mode .photo-mode-controls {
            display: flex;
        }

        .photo-mode-controls button {
            background: rgba(100, 150, 200, 0.2);
            border: 1px solid rgba(100, 150, 200, 0.4);
            color: #aaddff;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.2s;
        }

        .photo-mode-controls button:hover {
            background: rgba(100, 150, 200, 0.3);
            border-color: #00aaff;
        }

        .photo-mode-controls button.primary {
            background: linear-gradient(135deg, #0066aa, #0088cc);
            border: none;
            color: #fff;
        }

        /* Win Screen Stats */
        .win-stats {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            padding: 15px 20px;
            margin: 15px 0;
            text-align: left;
        }

        .win-stats p {
            margin: 8px 0;
            color: #aaddff;
            font-size: 1rem;
        }

        .win-stats p strong {
            color: #00ff88;
            display: inline-block;
            width: 100px;
        }

        /* Start Screen Enhancements */
        .start-screen {
            background: linear-gradient(135deg, #0a1525 0%, #1a0a15 50%, #0a1525 100%);
        }

        .game-stats {
            display: flex;
            gap: 20px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(100, 150, 200, 0.2);
        }

        .stat-item {
            text-align: center;
        }

        .stat-value {
            font-size: 1.5rem;
            color: #00aaff;
            font-family: Fraunces, Georgia, serif;
        }

        .stat-label {
            font-size: 0.7rem;
            color: #6688aa;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Loading Screen */
        #loading-screen {
            position: fixed;
            inset: 0;
            background: #020510;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: var(--z-modal);
        }

        #loading-screen.active {
            display: flex;
        }

        .loading-text {
            color: #00aaff;
            font-family: Fraunces, Georgia, serif;
            font-size: 2rem;
            margin-bottom: 20px;
            animation: pulse 1.5s ease-in-out infinite;
        }

        .loading-bar {
            width: 300px;
            height: 4px;
            background: rgba(100, 150, 200, 0.2);
            border-radius: 2px;
            overflow: hidden;
        }

        .loading-bar-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #00aaff, #0088ff);
            transition: width 0.3s ease;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Enhanced Buttons */
        .hud-btn {
            background: rgba(10, 20, 40, 0.8);
            border: 1px solid rgba(100, 150, 200, 0.3);
            color: #aaddff;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.3s;
            backdrop-filter: blur(5px);
        }

        .hud-btn:hover {
            background: rgba(20, 40, 80, 0.8);
            border-color: #00aaff;
            transform: translateY(-1px);
        }

        .hud-controls {
            position: absolute;
            top: 20px;
            right: 120px;
            display: flex;
            gap: 8px;
        }

        /* WebGL Error Screen */
        #webgl-error-screen {
            position: fixed;
            inset: 0;
            background: linear-gradient(135deg, #0a0a0f 0%, #1a0000 50%, #0a0a0f 100%);
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: var(--z-modal);
            padding: 40px;
            text-align: center;
            overflow-y: auto;
        }

        #webgl-error-screen.active {
            display: flex;
        }

        .error-content {
            max-width: 600px;
            animation: fadeIn 0.5s ease;
        }

        .error-icon {
            font-size: 80px;
            margin-bottom: 20px;
            animation: pulse 2s ease-in-out infinite;
        }

        #webgl-error-screen h1 {
            font-family: Fraunces, Georgia, serif;
            color: #ff4444;
            font-size: 2.5rem;
            margin: 0 0 15px 0;
            text-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
        }

        #webgl-error-details {
            color: #aaa;
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 30px;
        }

        .error-diagnostics {
            background: rgba(255, 68, 68, 0.1);
            border: 1px solid rgba(255, 68, 68, 0.3);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            text-align: left;
        }

        .error-diagnostics h3 {
            color: #ff8844;
            margin: 0 0 15px 0;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .diagnostic-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 68, 68, 0.1);
            font-size: 0.9rem;
        }

        .diagnostic-item:last-child {
            border-bottom: none;
        }

        .diagnostic-label {
            color: #888;
        }

        .diagnostic-value {
            font-family: 'Courier New', monospace;
        }

        .diagnostic-value.success {
            color: #00ff88;
        }

        .diagnostic-value.error {
            color: #ff4444;
        }

        .diagnostic-value.warning {
            color: #ffaa00;
        }

        .error-solutions {
            background: rgba(0, 100, 200, 0.1);
            border: 1px solid rgba(0, 150, 255, 0.3);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            text-align: left;
        }

        .error-solutions h3 {
            color: #00aaff;
            margin: 0 0 15px 0;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .error-solutions ul {
            margin: 0;
            padding-left: 20px;
            color: #88aacc;
        }

        .error-solutions li {
            margin: 10px 0;
            line-height: 1.5;
        }

        .error-solutions li strong {
            color: #aaddff;
        }

        .error-actions {
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center;
        }

        .error-actions .start-btn {
            min-width: 200px;
        }

        .error-actions .hud-btn {
            min-width: 200px;
            background: rgba(255, 68, 68, 0.2);
            border-color: rgba(255, 68, 68, 0.4);
            color: #ff8888;
        }

        .error-actions .hud-btn:hover {
            background: rgba(255, 68, 68, 0.3);
            border-color: #ff4444;
        }

        /* Main Menu Buttons */
        .main-menu-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

        .start-btn.secondary {
            background: linear-gradient(135deg, #006600, #008800);
        }

        .start-btn.secondary:hover {
            background: linear-gradient(135deg, #008800, #00aa00);
        }

        .menu-btn {
            display: block;
            margin: 10px auto;
            min-width: 250px;
            background: rgba(100, 150, 200, 0.2);
            border: 1px solid rgba(100, 150, 200, 0.4);
            color: #aaddff;
            padding: 12px 30px;
            min-height: var(--touch-min);
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* 2026 Foundation: shared block-layout for primary start-btn
           variants that previously carried inline display/margin/min-width. */
        .start-btn.start-btn--block,
        .start-btn.menu-block {
            display: block;
            margin: 10px auto;
            min-width: 250px;
        }
        .start-btn.start-btn--block[hidden] { display: none; }

        .menu-btn:hover {
            background: rgba(100, 150, 200, 0.3);
            border-color: #00aaff;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 170, 255, 0.3);
        }

        /* Achievement Notification */
        .achievement-notification {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #1a1030 0%, #2a2040 100%);
            border: 1px solid rgba(0, 255, 136, 0.3);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            z-index: var(--z-toast);
            transform: translateX(400px);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .achievement-notification.show {
            transform: translateX(0);
            opacity: 1;
        }

        .achievement-icon {
            font-size: 2.5rem;
        }

        .achievement-info {
            flex: 1;
        }

        .achievement-title {
            color: #00ff88;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }

        .achievement-name {
            color: #fff;
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 4px;
        }

        .achievement-desc {
            color: #88aacc;
            font-size: 0.85rem;
        }

        .achievement-points {
            color: #ffaa00;
            font-weight: bold;
            font-size: 0.9rem;
        }

        /* Contextual Hints */
        .contextual-hint {
            position: fixed;
            bottom: 150px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: rgba(255, 170, 0, 0.9);
            color: #000;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 1rem;
            z-index: 200;
            opacity: 0;
            transition: all 0.3s;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }

        .contextual-hint.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hud-score {
                font-size: 1rem;
            }
            
            #wrist-display {
                width: 160px;
                padding: 10px;
            }
            
            #compass-container {
                width: 60px;
                height: 60px;
            }
        }
