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

        body {
            min-height: 100vh;
            background: radial-gradient(circle at top, #1f1114 0%, #080808 48%, #000 100%);
            color: #4AF626;
            font-family: 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
            padding: 22px;
        }

        .page {
            max-width: 1120px;
            margin: 0 auto;
        }

        .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            margin-bottom: 18px;
        }

        .title {
            color: #ff5f56;
            font-size: 1.1rem;
            font-weight: normal;
            letter-spacing: 0.08em;
        }

        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .terminal-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 38px;
            padding: 0 16px;
            border: 1px solid rgba(74, 246, 38, 0.55);
            background: rgba(74, 246, 38, 0.04);
            color: #4AF626;
            font: inherit;
            font-size: 0.88rem;
            line-height: 1;
            text-decoration: none;
            cursor: pointer;
            transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
            appearance: none;
        }

        .terminal-button:hover {
            color: #5fd7ff;
            border-color: #5fd7ff;
            background: rgba(95, 215, 255, 0.08);
            box-shadow: 0 0 12px rgba(95, 215, 255, 0.16);
        }

        .terminal-button.danger {
            border-color: rgba(255, 95, 86, 0.7);
            color: #ff5f56;
        }

        .terminal-button.danger:hover {
            color: #ff8a80;
            border-color: #ff8a80;
            background: rgba(255, 95, 86, 0.08);
            box-shadow: 0 0 12px rgba(255, 95, 86, 0.18);
        }

        .game-shell {
            border: 1px solid rgba(255, 95, 86, 0.35);
            background: linear-gradient(135deg, rgba(20, 20, 20, 0.96), rgba(35, 10, 10, 0.92));
            box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 45px rgba(255, 95, 86, 0.08);
            overflow: hidden;
        }

        .game-header {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 42px;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255, 95, 86, 0.2);
            background: rgba(0, 0, 0, 0.45);
            color: #888;
            font-size: 0.82rem;
        }

        .dot {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #555;
        }

        .dot:nth-child(1) { background: #ff5f56; }
        .dot:nth-child(2) { background: #ffbd2e; }
        .dot:nth-child(3) { background: #27c93f; }

        .status {
            margin-left: auto;
            color: #666;
        }

        #dos {
            width: 100%;
            height: min(68vh, 720px);
            min-height: 420px;
            background: #000;
        }

        .hint {
            margin-top: 14px;
            color: #777;
            font-size: 0.86rem;
            line-height: 1.7;
        }

        .controls {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin-top: 14px;
        }

        .control-card {
            border-left: 2px solid rgba(74, 246, 38, 0.35);
            background: rgba(255, 255, 255, 0.03);
            padding: 12px;
            color: #aaa;
            font-size: 0.84rem;
            line-height: 1.5;
        }

        .control-card span {
            display: block;
            color: #4AF626;
            margin-bottom: 4px;
        }

        .load-note {
            color: #666;
        }

        @media (max-width: 768px) {
            body {
                padding: 12px;
            }

            .topbar {
                align-items: flex-start;
                flex-direction: column;
            }

            .actions,
            .terminal-button {
                width: 100%;
            }

            #dos {
                height: 58vh;
                min-height: 320px;
            }

            .controls {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 480px) {
            .controls {
                grid-template-columns: 1fr;
            }
        }

