:root {
      --bg-dark: #080c14;
      --bg-panel: rgba(16, 24, 38, 0.85);
      --bg-card: rgba(22, 33, 53, 0.7);
      --border-gold: rgba(229, 155, 34, 0.35);
      --border-subtle: rgba(255, 255, 255, 0.08);
      --accent-gold: #f59e0b;
      --accent-spice: #ea580c;
      --accent-cyan: #06b6d4;
      --accent-green: #10b981;
      --accent-red: #ef4444;
      --text-main: #f1f5f9;
      --text-muted: #94a3b8;
      --font-display: 'Orbitron', sans-serif;
      --font-body: 'Inter', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
    }
    body {
      background-color: var(--bg-dark);
      background-image: 
        radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(234, 88, 12, 0.06) 0%, transparent 45%),
        linear-gradient(to bottom, #06090e, #0c121e);
      color: var(--text-main);
      font-family: var(--font-body);
      display: flex;
      flex-direction: column;
    }

    /* Top Nav */
    .header {
      background: rgba(11, 17, 28, 0.96);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-gold);
      padding: 0 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 46px;
      min-height: 46px;
      max-height: 46px;
      flex-shrink: 0;
      z-index: 100;
      position: relative;
      overflow: hidden;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      overflow: hidden;
    }
    .brand-icon {
      font-size: 1.8rem;
      filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
      flex-shrink: 0;
      line-height: 1;
    }
    .brand-title {
      min-width: 0;
      overflow: hidden;
    }
    .brand-title h1 {
      font-family: var(--font-display);
      font-size: 1.18rem;
      font-weight: 800;
      letter-spacing: 0.5px;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      white-space: nowrap;
    }
    .brand-title .badge {
      font-family: var(--font-mono);
      font-size: 0.62rem;
      font-weight: 700;
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #000;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.5px;
    }
    .brand-subtitle {
      font-size: 0.74rem;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .header-divider {
      width: 1px;
      height: 18px;
      background: var(--border-gold);
      opacity: 0.4;
      margin: 0 2px;
      flex-shrink: 0;
    }
    .btn-gh {
      border-color: rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
    }
    .btn-gh:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.35);
      color: #fff;
    }

    /* Buttons */
    .btn {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      color: var(--text-main);
      padding: 6px 11px;
      border-radius: 6px;
      font-family: var(--font-body);
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.2s ease;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .btn:hover {
      background: rgba(245, 158, 11, 0.15);
      border-color: var(--accent-gold);
      color: #fff;
      transform: translateY(-1px);
    }
    .btn-gold {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
      border-color: var(--accent-gold);
      color: var(--accent-gold);
    }
    .btn-gold:hover {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #000;
      box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
    }
    .btn-muted {
      border-color: rgba(239, 68, 68, 0.45);
      color: #ef4444;
      background: rgba(239, 68, 68, 0.12);
    }
    .btn-muted:hover {
      background: rgba(239, 68, 68, 0.25);
      border-color: #ef4444;
      color: #fff;
    }

    /* Main Layout - Fills All Available Vertical Space Exactly */
    .main-container {
      flex: 1 1 0%;
      width: 100%;
      height: 0;
      min-height: 0;
      margin: 0;
      padding: 0;
      display: flex;
      position: relative;
      overflow: hidden;
      max-width: none;
    }

    /* Game Stage - Maximized Viewport */
    .game-card {
      flex: 1 1 0%;
      width: 100%;
      height: 100%;
      min-height: 0;
      background: #000;
      border: none;
      border-radius: 0;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      box-shadow: none;
      position: relative;
      overflow: hidden;
    }
    .game-viewport-wrapper {
      position: relative;
      flex: 1 1 0%;
      width: 100%;
      height: 0;
      min-height: 0;
      background: #000;
      border-radius: 0;
      border: none;
      overflow: hidden;
      display: flex;
    }
    .game-frame {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
      flex: 1;
    }

    /* Fullscreen Mode */
    .game-card:fullscreen,
    .game-card:-webkit-full-screen {
      width: 100vw !important;
      height: 100vh !important;
      background: #000;
      padding: 0 !important;
      margin: 0 !important;
      border: none !important;
    }
    .game-card:fullscreen .game-viewport-wrapper,
    .game-card:-webkit-full-screen .game-viewport-wrapper {
      width: 100% !important;
      height: calc(100% - 40px) !important;
    }
    .game-card:fullscreen .viewport-controls,
    .game-card:-webkit-full-screen .viewport-controls {
      height: 40px !important;
      min-height: 40px !important;
      max-height: 40px !important;
    }

    /* CRT Overlay Effect */
    .crt-overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
      background-size: 100% 3px, 4px 100%;
      pointer-events: none;
      display: none;
      z-index: 10;
    }
    .crt-active .crt-overlay {
      display: block;
    }

    /* Bottom viewport controls - Bulletproof single row */
    .viewport-controls {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 40px;
      min-height: 40px;
      max-height: 40px;
      padding: 0 12px;
      background: rgba(11, 17, 28, 0.96);
      border-top: 1px solid rgba(229, 155, 34, 0.25);
      backdrop-filter: blur(12px);
      z-index: 20;
      overflow: hidden;
      gap: 8px;
    }
    .viewport-btn-group {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
      flex: 1;
      min-width: 0;
    }
    .viewport-btn-group::-webkit-scrollbar {
      display: none;
    }
    .engine-telemetry {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      margin-left: auto;
      font-size: 0.73rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
      white-space: nowrap;
    }

    /* Responsive Breakpoints for Navigation and Controls */
    @media (max-width: 1200px) {
      .brand-subtitle { display: none !important; }
      .engine-telemetry { display: none !important; }
    }
    @media (max-width: 900px) {
      .header {
        padding: 0 10px;
        height: 42px;
        min-height: 42px;
        max-height: 42px;
      }
      .brand-title h1 {
        font-size: 1.05rem;
      }
      .brand-icon {
        font-size: 1.5rem;
      }
      .btn {
        padding: 5px 8px;
        font-size: 0.76rem;
        gap: 4px;
      }
      .header-actions {
        gap: 4px;
      }
      .nav-text-gh {
        display: none !important;
      }
      .btn-hotkey {
        display: none !important;
      }
      .viewport-controls {
        height: 38px;
        min-height: 38px;
        max-height: 38px;
        padding: 0 8px;
      }
    }
    @media (max-width: 680px) {
      .header {
        padding: 0 6px;
      }
      .brand {
        gap: 6px;
      }
      .brand-title .badge {
        display: none !important;
      }
      .nav-text {
        display: none !important;
      }
      .header-divider {
        margin: 0 1px;
      }
      .hide-sm {
        display: none !important;
      }
      .btn {
        padding: 4px 7px;
        font-size: 0.72rem;
      }
      .viewport-btn-group {
        gap: 4px;
      }
    }

    /* Slide-out Sidebar Drawer */
    .sidebar {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 380px;
      max-width: 90vw;
      background: rgba(11, 17, 28, 0.96);
      backdrop-filter: blur(20px);
      border-left: 1px solid var(--border-gold);
      z-index: 60;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 16px;
      overflow-y: auto;
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: -12px 0 32px rgba(0, 0, 0, 0.85);
    }
    .sidebar.open {
      transform: translateX(0);
    }
    .sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border-gold);
      padding-bottom: 10px;
      margin-bottom: 4px;
    }
    .sidebar-header h3 {
      font-family: var(--font-display);
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--accent-gold);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .sidebar-close {
      background: none;
      border: 1px solid var(--border-subtle);
      color: var(--text-muted);
      width: 28px;
      height: 28px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      transition: all 0.2s;
    }
    .sidebar-close:hover {
      background: rgba(239, 68, 68, 0.2);
      border-color: var(--accent-red);
      color: #fff;
    }
    .sidebar-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(2px);
      z-index: 55;
      display: none;
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .sidebar-backdrop.open {
      display: block;
      opacity: 1;
    }
    .panel-card {
      background: var(--bg-panel);
      backdrop-filter: blur(12px);
      border: 1px solid var(--border-subtle);
      border-radius: 10px;
      padding: 16px;
    }
    .panel-title {
      font-family: var(--font-display);
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--accent-gold);
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Mouse Controls HUD */
    .mouse-hud-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .mouse-hud-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 10px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      font-size: 0.8rem;
    }
    .hud-key {
      font-family: var(--font-mono);
      font-weight: 700;
      color: var(--accent-gold);
      background: rgba(245, 158, 11, 0.12);
      padding: 2px 8px;
      border-radius: 4px;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }

    /* Passwords list */
    .house-selector {
      display: flex;
      gap: 6px;
      margin-bottom: 12px;
    }
    .house-btn {
      flex: 1;
      padding: 6px;
      font-size: 0.72rem;
      font-weight: 700;
      border-radius: 4px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      color: var(--text-muted);
      cursor: pointer;
      text-align: center;
      text-transform: uppercase;
    }
    .house-btn.active.atreides {
      border-color: var(--accent-cyan);
      background: rgba(6, 182, 212, 0.15);
      color: #fff;
    }
    .house-btn.active.harkonnen {
      border-color: var(--accent-red);
      background: rgba(239, 68, 68, 0.15);
      color: #fff;
    }
    .house-btn.active.ordos {
      border-color: var(--accent-green);
      background: rgba(16, 185, 129, 0.15);
      color: #fff;
    }

    .passwords-box {
      max-height: 240px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .pass-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 10px;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 4px;
      font-size: 0.78rem;
      border: 1px solid var(--border-subtle);
    }
    .pass-code {
      font-family: var(--font-mono);
      font-weight: 700;
      color: #fff;
      letter-spacing: 1px;
    }
    .btn-copy {
      padding: 2px 8px;
      font-size: 0.7rem;
      background: rgba(245, 158, 11, 0.1);
      border: 1px solid rgba(245, 158, 11, 0.3);
      color: var(--accent-gold);
      border-radius: 4px;
      cursor: pointer;
    }
    .btn-copy:hover {
      background: var(--accent-gold);
      color: #000;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid var(--accent-gold);
      color: #fff;
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.3s ease;
      z-index: 1000;
    }
    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    /* Modal */
    .modal-backdrop {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 200;
    }
    .modal-backdrop.open { display: flex; }
    .modal-card {
      background: var(--bg-panel);
      border: 1px solid var(--border-gold);
      border-radius: 12px;
      width: 90%;
      max-width: 600px;
      max-height: 85vh;
      overflow-y: auto;
      padding: 24px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border-subtle);
    }
    .modal-header h2 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      color: var(--accent-gold);
    }
    .modal-close {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 1.2rem;
      cursor: pointer;
    }
    .modal-close:hover { color: #fff; }
    .modal-body {
      font-size: 0.88rem;
      line-height: 1.6;
      color: #cbd5e1;
    }
    .modal-body h4 {
      color: #fff;
      margin: 14px 0 6px;
      font-size: 0.95rem;
    }
    .modal-body ul {
      padding-left: 20px;
      margin-bottom: 12px;
    }
    .modal-body li {
      margin-bottom: 4px;
    }

    /* Savestates & Slots Styling */
    .btn-save-action {
      background: rgba(245, 158, 11, 0.12) !important;
      border-color: rgba(245, 158, 11, 0.4) !important;
      color: var(--accent-gold) !important;
    }
    .btn-save-action:hover {
      background: rgba(245, 158, 11, 0.25) !important;
      box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
    }
    .btn-load-action {
      background: rgba(16, 185, 129, 0.12) !important;
      border-color: rgba(16, 185, 129, 0.4) !important;
      color: var(--accent-green) !important;
    }
    .btn-load-action:hover {
      background: rgba(16, 185, 129, 0.25) !important;
      box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    }

    .slot-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      transition: border-color 0.2s ease;
    }
    .slot-row:hover {
      border-color: rgba(245, 158, 11, 0.3);
    }
    .slot-info {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .slot-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .slot-badge {
      font-size: 0.68rem;
      padding: 1px 6px;
      border-radius: 4px;
      font-family: var(--font-mono);
      font-weight: 800;
      background: rgba(245, 158, 11, 0.2);
      color: var(--accent-gold);
      border: 1px solid rgba(245, 158, 11, 0.3);
    }
    .slot-meta {
      font-size: 0.74rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }
    .slot-actions {
      display: flex;
      gap: 6px;
    }
    .btn-slot {
      padding: 4px 10px;
      font-size: 0.75rem;
      font-weight: 700;
      border-radius: 4px;
      cursor: pointer;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      color: #cbd5e1;
      transition: all 0.2s ease;
    }
    .btn-slot:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }
    .btn-slot.btn-slot-save {
      color: var(--accent-gold);
      border-color: rgba(245, 158, 11, 0.3);
      background: rgba(245, 158, 11, 0.08);
    }
    .btn-slot.btn-slot-save:hover {
      background: rgba(245, 158, 11, 0.2);
    }
    .btn-slot.btn-slot-load {
      color: var(--accent-green);
      border-color: rgba(16, 185, 129, 0.3);
      background: rgba(16, 185, 129, 0.08);
    }
    .btn-slot.btn-slot-load:hover {
      background: rgba(16, 185, 129, 0.2);
    }

    /* Tactical Preloader */
    .game-preloader {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: radial-gradient(circle at 50% 40%, rgba(26, 38, 62, 0.98) 0%, rgba(10, 16, 28, 0.99) 60%, #05080e 100%);
      backdrop-filter: blur(14px);
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
      opacity: 1;
      visibility: visible;
    }
    .game-preloader.fade-out {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .preloader-overlay {
      position: absolute;
      inset: 0;
      background-image: 
        radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.12) 0%, transparent 65%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
      background-size: 100% 100%, 36px 36px, 36px 36px;
      pointer-events: none;
    }
    .preloader-content {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 540px;
      width: 90%;
      padding: 30px;
    }
    .preloader-radar {
      position: relative;
      width: 150px;
      height: 150px;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .radar-ring {
      position: absolute;
      border-radius: 50%;
    }
    .radar-ring-outer {
      inset: 0;
      border: 2px dashed rgba(245, 158, 11, 0.75);
      animation: spinClockwise 16s linear infinite;
    }
    .radar-ring-mid {
      inset: 20px;
      border: 2px dotted rgba(251, 191, 36, 0.75);
      animation: spinCounterClockwise 10s linear infinite;
    }
    .radar-sweep {
      position: absolute;
      inset: 4px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, transparent 60%, rgba(245, 158, 11, 0.15) 85%, rgba(245, 158, 11, 0.75) 100%);
      animation: spinClockwise 2.5s linear infinite;
    }
    .radar-planet {
      position: relative;
      width: 76px;
      height: 76px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fef08a 20%, #f59e0b 50%, #c2410c 80%, #7c2d12 100%);
      box-shadow: 0 0 40px rgba(245, 158, 11, 0.9), 0 0 75px rgba(234, 88, 12, 0.45), inset -6px -6px 14px rgba(0, 0, 0, 0.6);
      animation: pulseGlow 2.5s ease-in-out infinite alternate;
    }
    .radar-planet::after {
      content: '';
      position: absolute;
      width: 130px;
      height: 30px;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-25deg);
      border: 3.5px solid rgba(245, 158, 11, 0.95);
      border-top-color: #ffffff;
      border-radius: 50%;
      pointer-events: none;
      box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
    }

    @keyframes spinClockwise {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    @keyframes spinCounterClockwise {
      from { transform: rotate(0deg); }
      to { transform: rotate(-360deg); }
    }
    @keyframes pulseGlow {
      from { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6)); }
      to { filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.95)); }
    }
    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(200%); }
    }

    .preloader-header {
      margin-bottom: 22px;
    }
    .preloader-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-bottom: 6px;
    }
    .preloader-logo-icon {
      font-size: 1.8rem;
      filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.7));
    }
    .preloader-brand h3 {
      font-family: var(--font-display);
      font-size: 1.6rem;
      font-weight: 900;
      letter-spacing: 3px;
      color: #fff;
      text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .preloader-badge {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      font-weight: 700;
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #000;
      padding: 3px 8px;
      border-radius: 4px;
      letter-spacing: 0.5px;
      box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    }
    .preloader-subtext {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--accent-gold);
      letter-spacing: 2px;
      font-weight: 600;
      opacity: 0.95;
      text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    }

    .preloader-progress-wrap {
      width: 100%;
      margin-bottom: 20px;
    }
    .preloader-bar-bg {
      width: 100%;
      height: 12px;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid var(--accent-gold);
      border-radius: 999px;
      overflow: hidden;
      position: relative;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 0 16px rgba(245, 158, 11, 0.35);
    }
    .preloader-bar-fill {
      height: 100%;
      width: 10%;
      min-width: 10%;
      max-width: 100%;
      background: linear-gradient(90deg, #ea580c, #f59e0b, #fbbf24);
      border-radius: 999px;
      position: relative;
      overflow: hidden;
      transition: width 0.25s ease-out;
      box-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
    }
    .preloader-shimmer {
      position: absolute;
      top: 0; left: 0; bottom: 0; width: 60%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
      animation: shimmer 1.5s infinite;
    }
    .preloader-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
      font-family: var(--font-mono);
      font-size: 0.82rem;
    }
    .preloader-status-text {
      color: #cbd5e1;
      font-weight: 500;
    }
    .preloader-pct {
      color: var(--accent-gold);
      font-weight: 800;
      font-size: 0.92rem;
      text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    }

    .preloader-tip {
      font-size: 0.82rem;
      color: #cbd5e1;
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid rgba(245, 158, 11, 0.3);
      border-radius: 8px;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      max-width: 100%;
      line-height: 1.4;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
