/* main.css */* {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --color-red: #e74c3c;
            --color-red-dark: #c0392b;
            --color-blue: #3498db;
            --color-blue-dark: #2980b9;
            --color-green: #2ecc71;
            --color-green-dark: #27ae60;
            --color-yellow: #f1c40f;
            --color-yellow-dark: #f39c12;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #1a1a2e;
            color: #eee;
            min-height: 100vh;
            min-height: 100dvh;
            margin: 0;
            padding: 10px;
        }

/* ===== GAME SCREEN ===== */#game-screen {
            align-items: stretch;
            justify-content: flex-start;
            padding: 0;
        }

        #game-container {
            display: flex;
            width: 100%;
            height: 100dvh;
            overflow: hidden;
        }

        /* Desktop layout */
        @media (min-width: 1200px) {
            #game-container {
                flex-direction: row;
            }

            #map-section {
                flex: 1;
                padding: 15px;
                display: flex;
                flex-direction: column;
                max-width: 750px;
            }

            #status-section {
                width: 200px;
                background: #0f3460;
                padding: 15px;
                overflow-y: auto;
                border-left: 1px solid #16213e;
            }

            #sheet-section {
                width: 380px;
                background: #16213e;
                padding: 15px;
                overflow-y: auto;
                border-left: 1px solid #0f3460;
            }

            #mobile-nav {
                display: none;
            }
        }

        /* Tablet layout */
        @media (min-width: 768px) and (max-width: 1199px) {
            #game-container {
                flex-direction: row;
                flex-wrap: wrap;
            }

            #mobile-nav {
                width: 100%;
                display: flex;
                background: #16213e;
                border-bottom: 1px solid #0f3460;
            }

            #map-section {
                flex: 1;
                min-width: 400px;
                padding: 10px;
                display: flex;
                flex-direction: column;
            }

            #status-section {
                width: 180px;
                background: #0f3460;
                padding: 10px;
                overflow-y: auto;
            }

            #sheet-section {
                display: none;
                width: 100%;
                background: #16213e;
                padding: 15px;
                overflow-y: auto;
            }

            #sheet-section.active {
                display: block;
            }
        }

        /* Mobile layout */
        @media (max-width: 767px) {
            #game-container {
                flex-direction: column;
            }

            #mobile-nav {
                display: flex;
                background: #16213e;
                border-bottom: 1px solid #0f3460;
            }

            .nav-btn {
                flex: 1;
                padding: 12px;
                background: transparent;
                border: none;
                color: #888;
                font-size: 0.85em;
                font-weight: 600;
                cursor: pointer;
                transition: color 0.2s, background 0.2s;
            }

            .nav-btn.active {
                color: #fff;
                background: #0f3460;
            }

            #map-section, #status-section, #sheet-section {
                display: none;
                flex: 1;
                padding: 10px;
                overflow-y: auto;
            }

            #map-section.active, #status-section.active, #sheet-section.active {
                display: flex;
                flex-direction: column;
            }
        }

/* File upload */.file-upload {
            background: #f8f9fa;
            border: 2px dashed #bdc3c7;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.2s;
            margin: 15px 0;
        }

        .file-upload:hover {
            border-color: #3498db;
        }

        .file-upload input {
            display: none;
        }

/* ===== TOP BAR ===== */#top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            margin-bottom: 8px;
            flex-wrap: wrap;
            gap: 8px;
        }

        #top-bar .lobby-info {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #888;
            font-size: 0.85em;
        }

        #top-bar .lobby-info code {
            background: #0f3460;
            padding: 4px 8px;
            border-radius: 4px;
            color: #3498db;
        }

        #players-bar {
            display: flex;
            gap: 8px;
        }

        .player-indicator {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7em;
            font-weight: bold;
            color: white;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: transform 0.15s;
        }

        .player-indicator:hover {
            transform: scale(1.1);
        }

        .player-indicator.current {
            box-shadow: 0 0 0 3px white, 0 2px 6px rgba(0,0,0,0.3);
        }

/* Mobile */@media (max-width: 480px) {
            .node {
                width: 26px;
                height: 26px;
                font-size: 10px;
            }

            .token {
                width: 20px;
                height: 20px;
            }

            #lines-layer line {
                stroke-width: 2;
            }

            .resources-grid {
                gap: 6px;
            }

            .skills-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Hidden file input */
        #load-file-input {
            display: none;
        }