﻿
       /* @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');*/
        
        /* Reset and Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Sora', sans-serif;
            background-color: #000000;
            color: #ffffff;
            overflow: hidden;
            width: 100vw;
            height: 100vh;
        }

        /* Pure CSS Grid: Main Layout Shell */
        .app-container {
            display: grid;
            grid-template-columns: 35% 65%;
            width: 100%;
            height: 100%;
        }

        /* Left Control Panel Grid Layout */
        .left-panel {
            display: grid;
            grid-template-rows: auto 1fr auto;
            gap: 2rem;
            padding: 2.5rem;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            background-color: #000000;
            overflow-y: auto;
            z-index: 10;
        }

        /* Header Elements */
        .header-meta {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 600;
        }

        .header-title {
            font-size: clamp(1.5rem, 2vw, 1.75rem);
            font-weight: 800;
            margin-top: 0.25rem;
            letter-spacing: -0.025em;
            line-height: 1.2;
        }

        .magenta-accent {
            color: #e14eca;
        }

        /* Selection Card Grid Layout */
        .mode-section {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            align-content: start;
        }

        .section-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: -0.5rem;
        }

        .mode-card {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.75rem;
            padding: 1.25rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .mode-card:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Active Card States Managed via Class Toggles */
        .mode-card.active {
            background: rgba(225, 78, 202, 0.08);
            border-color: #e14eca;
        }

        .mode-header {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
        }

        .mode-title {
            font-weight: 800;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
        }

        .mode-badge {
            font-size: 0.75rem;
            background: rgba(255, 255, 255, 0.1);
            padding: 0.125rem 0.5rem;
            border-radius: 0.25rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .mode-card.active .mode-badge {
            background: rgba(225, 78, 202, 0.2);
            color: #e14eca;
        }

        .mode-desc {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.4;
        }

        /* Action & Portfolio HUD Block Grid */
        .action-block {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .ledger-hud {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 0.75rem;
            padding: 1.25rem;
        }

        .ledger-header {
            display: grid;
            grid-template-columns: 1fr auto;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 600;
            letter-spacing: 0.05em;
        }

        .ledger-data {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: baseline;
        }

        .ledger-balance {
            font-size: clamp(1.5rem,2vw,2rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            transition: color 0.3s ease;
        }

        /* Dynamic Ledger Colors */
        .balance-neutral { color: #ffffff; }
        .balance-positive { color: #4ade80; }
        .balance-negative { color: #f87171; }

        .ledger-counter {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
        }

        /* Control Button */
        .flip-button {
            width: 100%;
            padding: 1rem;
            border-radius: 0.75rem;
            border: none;
            font-size: 0.875rem;
            font-weight: 700;
            background-color: #e14eca;
            color: #000000;
            cursor: pointer;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            box-shadow: 0 0 20px rgba(225, 78, 202, 0.3);
            transition: all 0.15s ease;
        }

        .flip-button:hover {
            background-color: rgba(225, 78, 202, 0.9);
            box-shadow: 0 0 25px rgba(225, 78, 202, 0.4);
        }

        .flip-button:active {
            transform: scale(0.98);
        }

        /* Right Panel: 3D Scene Viewport Grid */
        .right-panel {
            position: relative;
            display: grid;
            place-items: center;
            width: 100%;
            height: 100%;
        }

        .canvas-viewport {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* Result HUD Card Grid */
        .result-overlay {
            position: absolute;
            bottom: 2rem;
            left: 2rem;
            right: 2rem;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 1.5rem;
            align-items: center;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 1.5rem;
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.4s ease-out, transform 0.4s ease-out;
            pointer-events: none;
        }

        .result-badge {
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 0.25rem 0.75rem;
            border-radius: 0.25rem;
            display: inline-block;
            margin-bottom: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
        }

        /* Result Badge Context Colors */
        .badge-heads-stochastic { background: rgba(225, 78, 202, 0.2); color: #e14eca; }
        .badge-heads-traditional { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
        .badge-tails { background: rgba(248, 113, 113, 0.2); color: #f87171; }

        .result-headline {
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .result-desc {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 0.25rem;
            max-w: 36rem;
            line-height: 1.4;
        }

        .result-delta-container {
            display: grid;
            grid-template-columns: 1fr;
            justify-items: end;
        }

        .delta-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
        }

        .delta-value {
            font-size: 1.75rem;
            font-weight: 800;
        }

        /* Media Queries for Responsive Scaling */
        @media (max-width: 768px) {
            .app-container {
                grid-template-columns: 1fr;
                grid-template-rows: 50% 50%;
            }

            .left-panel {
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                padding: 1.5rem;
                gap: 1.25rem;
            }

            .result-overlay {
                grid-template-columns: 1fr;
                gap: 1rem;
                bottom: 1rem;
                left: 1rem;
                right: 1rem;
                padding: 1rem;
            }

            .result-delta-container {
                justify-items: start;
            }
        }
    
/* 1. Width of the scrollbar */
::-webkit-scrollbar {
  width: 2px;
  height:2px;
}

/* 2. Track (background) of the scrollbar */
::-webkit-scrollbar-track {
  background: #000000; 
  border-radius: 6px;
}
 
/* 3. Handle (thumb) of the scrollbar */
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.5); 
  border-radius: 6px;
}

/* 4. Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.8); ; 
}
