/* ═══════════════════════════════════════════════════════════════════════
    MINEDEV — layout, header, hero, build controls, audio UI, cookie, toast, copyright
    Split from original index.html lines 460-675
    ═══════════════════════════════════════════════════════════════════════ */

        /* ── MAIN LAYOUT ────────────────────────── */
        main { position: fixed; z-index: 10; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
        header {
            position: absolute; top: 0; left: 0; width: 100%; padding: 40px 60px;
            display: flex; justify-content: space-between; align-items: center; z-index: 15;
            pointer-events: auto;
        }
        .header-left { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; }
        .header-icon { width: 24px; height: 24px; object-fit: contain; }
        .brand-tiny { font-size: 12px; letter-spacing: 2px; font-variation-settings: "wght" 300; opacity: 0.9; }
        .location-text { opacity: 0.4; font-size: 10px; margin-left: 5px; }

        .menu-toggle {
            background: none; border: none; color: var(--text-color); font-size: 14px; letter-spacing: 1px;
            text-transform: uppercase; position: relative; overflow: hidden; padding: 5px 0; font-family: inherit;
            font-variation-settings: "wght" 300; min-width: 160px; text-align: right; display: inline-block;
            transition: transform 0.3s var(--framer-ease), color 0.3s var(--framer-ease);
            pointer-events: auto;
        }
        .menu-toggle::after {
            content: ''; position: absolute; bottom: 0; right: 0; width: 100%; height: 1px;
            background: var(--text-color); transform: translateX(100%); transition: transform 0.4s var(--framer-ease);
        }
        .menu-toggle:hover { transform: translateY(-2px) scale(1.02); color: var(--accent); }
        .menu-toggle:hover::after { transform: translateX(0); }
        .mobile-icon { display: none; }

        /* ── HEADER NAV ─────────────────────────── */
        .header-nav {
            display: flex; align-items: center; gap: 6px;
        }
        .header-nav-link {
            font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
            color: rgba(255,255,255,0.55); text-decoration: none;
            font-variation-settings: "wght" 300; padding: 6px 12px;
            border-radius: 4px; transition: color 0.3s ease, background 0.3s ease;
        }
        .header-nav-link:hover {
            color: var(--text-color); background: rgba(255,255,255,0.05);
        }
        .header-nav-cta {
            font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
            color: var(--text-color); background: none;
            border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
            padding: 7px 18px; font-family: inherit; font-variation-settings: "wght" 300;
            cursor: none; transition: transform 0.3s var(--framer-ease), background 0.3s ease, border-color 0.3s ease;
        }
        .header-nav-cta:hover {
            transform: translateY(-2px) scale(1.02);
            background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.35);
        }

        /* ── HERO TEXT ──────────────────────────── */
        .hero-wrapper {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            perspective: 1200px; width: 100%; text-align: center; pointer-events: none; z-index: 5;
        }
        .hero-container { transform-style: preserve-3d; }
        .huge-text {
            font-size: clamp(4rem, 16vw, 24rem); font-variation-settings: "wght" 700; line-height: 0.8;
            letter-spacing: -0.08em; text-transform: uppercase; display: inline-block; white-space: nowrap;
            background: linear-gradient(180deg, #ffffff 0%, #777777 100%); -webkit-background-clip: text;
            -webkit-text-fill-color: transparent; filter: drop-shadow(0px 20px 30px rgba(0,0,0,0.5));
            visibility: hidden;
        }
        .huge-text .char-wrap { display: inline-block; overflow: hidden; padding-bottom: 20px; margin-bottom: -20px; }
        .huge-text .char { display: inline-block; transform: translateY(110%); }

        /* ── BLOCK HINT ─────────────────────────── */
        #block-hint {
            position: fixed; bottom: 40px; right: 60px; z-index: 20;
            display: none; opacity: 0; text-align: right; pointer-events: none;
        }
        .hint-label {
            font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
            color: rgba(255,255,255,0.3); font-variation-settings: "wght" 300;
            line-height: 2;
        }

        /* ── BUILD CONTROLS (centered bar) ─────────── */
        .build-controls {
            position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%);
            display: none; gap: 16px; z-index: 25; pointer-events: auto; opacity: 0;
            align-items: center;
        }
        .build-controls .ctrl-btn {
            background: rgba(3,3,3,0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.55);
            width: 42px; height: 42px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 15px; transition: all 0.3s var(--framer-ease); font-family: inherit;
            user-select: none; -webkit-user-select: none;
        }
        .build-controls .ctrl-btn:hover {
            background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25);
            color: #fff; transform: scale(1.1);
        }
        .build-controls .ctrl-btn:active { transform: scale(0.92); }
        .build-controls .ctrl-btn.reset-btn:hover {
            transform: rotate(-180deg) scale(1.1);
        }

        /* Cinematic fade-out overlay */
        #cinematic-exit {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: #000; z-index: 999999; pointer-events: none;
            opacity: 0; transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #cinematic-exit.active { opacity: 1; pointer-events: auto; }
        .build-controls .ctrl-divider {
            width: 1px; height: 20px; background: rgba(255,255,255,0.08); margin: 0 4px;
        }

        /* ── AUDIO UI ───────────────────────────── */
        .audio-ui {
            position: absolute; bottom: 75px; right: 60px;
            display: flex; align-items: center; gap: 15px; z-index: 20;
            pointer-events: auto;
        }
        .play-btn {
            background: none; border: 1px solid var(--glass-border); color: #fff; width: 40px; height: 40px;
            border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 10px;
            transition: 0.3s var(--framer-ease); backdrop-filter: blur(5px); font-family: inherit;
            font-variation-settings: "wght" 300;
        }
        .play-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); }
        input[type=range] { -webkit-appearance: none; width: 80px; background: transparent; cursor: none; }
        input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 1px; background: rgba(255,255,255,0.3); }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none; height: 10px; width: 10px; border-radius: 50%;
            background: var(--text-color); margin-top: -4.5px; transition: 0.2s;
        }

        /* ── COOKIE BANNER ──────────────────────── */
        .cookie-banner-new {
            position: fixed; bottom: 20px; right: 20px;
            background: #050505; border: 1px solid #1a1a1a; border-radius: 4px;
            padding: 20px 24px; width: calc(100% - 40px); max-width: 360px;
            z-index: 99990; display: flex; flex-direction: column; gap: 12px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.8);
            opacity: 0; transform: translateY(20px);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none;
        }
        .cookie-banner-new.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
        .cookie-banner-new p { font-size: 11px; line-height: 1.5; color: #888; margin: 0; font-variation-settings: "wght" 300; }
        .cookie-banner-new a { color: #888; text-decoration: underline; cursor: none; transition: color 0.3s; }
        .cookie-banner-new a:hover { color: #fff; }
        .cookie-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: #555; font-size: 14px; cursor: none; transition: color 0.3s; }
        .cookie-close:hover { color: #fff; }
        .cookie-actions { display: flex; gap: 24px; margin-top: 4px; align-items: center; }
        .cookie-actions button { background: none; border: none; color: #fff; font-size: 12px; font-variation-settings: "wght" 700; padding: 0; cursor: none; transition: opacity 0.3s; }
        .cookie-actions button:hover { opacity: 0.7; }
        #cookie-customize-btn { color: #888; font-variation-settings: "wght" 300; border-bottom: 1px solid transparent; margin-right: auto; }
        #cookie-customize-btn:hover { border-bottom-color: #888; color: #fff; opacity: 1; }

        /* ── COOKIE MODAL ───────────────────────── */
        #cookie-modal {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
            z-index: 100000; display: flex; justify-content: center; align-items: center;
            opacity: 0; pointer-events: none; transition: opacity 0.4s var(--framer-ease);
        }
        #cookie-modal.active { opacity: 1; pointer-events: auto; }
        .cookie-modal-content {
            background: #050505; border: 1px solid #1a1a1a; border-radius: 8px;
            width: 90%; max-width: 420px; padding: 30px; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
            transform: translateY(30px); transition: transform 0.4s var(--framer-ease);
        }
        #cookie-modal.active .cookie-modal-content { transform: translateY(0); }
        .cookie-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .cookie-modal-title { font-size: 16px; font-variation-settings: "wght" 500; }
        .cookie-modal-close { background: none; border: none; color: #555; font-size: 18px; cursor: none; transition: color 0.3s; }
        .cookie-modal-close:hover { color: #fff; }
        .cookie-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .cookie-row:last-child { border-bottom: none; }
        .cookie-info h4 { font-size: 13px; font-variation-settings: "wght" 500; margin-bottom: 4px; }
        .cookie-info p { font-size: 11px; color: #888; font-variation-settings: "wght" 300; line-height: 1.4; }
        .switch { font-size: 13px; position: relative; display: inline-block; width: 3.2em; height: 1.8em; margin-left: 15px; flex-shrink: 0; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: none; top: 0; left: 0; right: 0; bottom: 0; background-color: #1a1a1a; border: 1px solid #222; transition: .4s; border-radius: 32px; }
        .slider:before { position: absolute; content: ""; height: 1.8em; width: 1.8em; border-radius: 50%; outline: 2px solid #222; left: -1px; bottom: -1px; background-color: #555; transition: transform .25s ease-in-out; }
        .slider-icon { opacity: 0; height: 10px; width: 10px; stroke-width: 8; position: absolute; z-index: 999; stroke: #fff; right: 60%; top: 50%; transform: translateY(-50%); transition: right .3s, opacity .15s; }
        input:checked + .slider { background-color: #f4f4f4; border-color: #f4f4f4; }
        input:checked + .slider .slider-icon { opacity: 1; right: 20%; }
        input:checked + .slider:before { transform: translateX(1.4em); background-color: #030303; outline-color: #f4f4f4; }
        input:disabled + .slider { opacity: 0.5; }
        .cookie-modal-actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 15px; }
        .cookie-modal-btn { background: #1a1a1a; color: #fff; border: none; padding: 10px 20px; border-radius: 50px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; cursor: none; font-variation-settings: "wght" 500; }
        .cookie-modal-btn.primary { background: var(--text-color); color: #000; }
        .cookie-modal-btn:hover { transform: translateY(-2px); opacity: 0.9; }

        /* ── TOAST ──────────────────────────────── */
        #toast-notification {
            position: fixed; bottom: 20px; right: 20px;
            background: #050505; border: 1px solid #1a1a1a; border-radius: 4px;
            padding: 20px 24px; width: calc(100% - 40px); max-width: 360px;
            z-index: 99990; display: flex; flex-direction: column; gap: 12px;
            transform: translateX(120%); opacity: 0; box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        }
        .toast-content { display: flex; align-items: flex-start; gap: 12px; }
        .toast-icon { font-size: 14px; margin-top: 2px; }
        .toast-text { font-size: 11px; line-height: 1.5; color: #888; font-variation-settings: "wght" 300; }
        .toast-text strong { color: #fff; font-variation-settings: "wght" 700; font-size: 12px; margin-bottom: 4px; display: inline-block; }
        .toast-text em { font-style: italic; color: #ccc; }
        .toast-btn { background: none; color: #fff; text-decoration: none; text-align: left; padding: 0; border: none; font-size: 12px; font-variation-settings: "wght" 700; margin-top: 4px; transition: opacity 0.3s; cursor: none; display: inline-block; }
        .toast-btn:hover { opacity: 0.7; }
        .toast-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: #555; font-size: 14px; cursor: none; transition: color 0.3s; }
        .toast-close:hover { color: #fff; }

        /* ── COPYRIGHT ──────────────────────────── */
        .copyright-text {
            position: fixed; bottom: 25px; left: 60px; font-size: 9px;
            color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase;
            z-index: 20; pointer-events: none; font-variation-settings: 'wght' 300;
        }
