/* ==========================================================================
   BioVerseID - Metaverse Keanekaragaman Hayati Styles
   ========================================================================== */

   :root {
    /* === OCEAN BLUE PALETTE === */
    --primary: #00aaff;          /* biru laut cerah */
    --primary-dark: #0055aa;     /* biru laut dalam */
    --primary-glow: rgba(0, 160, 255, 0.55);
    --secondary: #66ccff;        /* biru langit laut */
    --bg-dark: #000d1f;          /* laut dalam gelap */
    --panel-bg: rgba(0, 15, 40, 0.88);
    --glass-border: rgba(0, 170, 255, 0.28);
    --text-main: #e8f4ff;        /* putih kebiruan */
    --text-muted: #6eacd4;
    --danger: #ef4444;
    --success: #22d3ee;
    --warning: #fbbf24;
    
    --font-main: 'Poppins', sans-serif;
    
    --z-canvas: 1;
    --z-vignette: 5;
    --z-hud: 10;
    --z-popup: 50;
    --z-loading: 100;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
  }
  
  body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-main);
    touch-action: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
  }
  
  /* ==========================================================================
     3D CANVAS & OVERLAYS
     ========================================================================== */
  
  #metaverse-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    display: block;
    touch-action: none !important;
  }
  
  .underwater-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-vignette);
    --depth-opacity: 0.05;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(224, 242, 254, 0.22) 0%, transparent 65%),
      radial-gradient(circle at center, transparent 50%, rgba(2, 132, 199, 0.03) 100%);
    box-shadow:
      inset 0 0 50px rgba(56, 189, 248, 0.10),
      inset 0 0 100px rgba(14, 165, 233, 0.04);
    mix-blend-mode: screen;
    transition: box-shadow 0.5s ease;
  }

  .underwater-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      radial-gradient(ellipse at 30% 20%, rgba(125, 211, 252, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
      radial-gradient(ellipse at 50% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    animation: caustics-flicker 8s ease-in-out infinite alternate;
    pointer-events: none;
  }

  .underwater-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, transparent 40%, rgba(14, 165, 233, 0.04) 100%);
    animation: light-shift 12s ease-in-out infinite alternate;
    pointer-events: none;
  }

  @keyframes caustics-flicker {
    0% { opacity: 0.6; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.02); }
    50% { opacity: 0.7; transform: scale(0.98); }
    75% { opacity: 0.9; transform: scale(1.01); }
    100% { opacity: 0.5; transform: scale(1); }
  }

  @keyframes light-shift {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
  }
  
  /* ==========================================================================
     CROSSHAIR
     ========================================================================== */
  
  .crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-hud);
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .xhair-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  }
  
  .xhair-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.2s ease;
  }
  
  .crosshair.active .xhair-ring {
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
  }
  
  /* ==========================================================================
     LOADING SCREEN
     ========================================================================== */
  
  .loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #000d1f 0%, #002244 50%, #003366 100%);
    z-index: var(--z-loading);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
  }
  
  .loading-content {
    text-align: center;
    z-index: 2;
    max-width: 500px;
    width: 90%;
  }
  
  .loading-logo {
    margin-bottom: 40px;
  }
  
  .loading-logo i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary-glow);
    animation: float 3s ease-in-out infinite;
  }
  
  .loading-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .loading-logo p {
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
  }
  
  .loading-hint-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .loading-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
  }
  
  .loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.3s ease;
  }
  
  .loading-status {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 600;
  }
  
  .loading-hint {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .loading-hint kbd {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #fff;
    border-bottom: 2px solid rgba(0,0,0,0.5);
  }
  
  .loading-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    overflow: hidden;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
  }
  
  /* ==========================================================================
     START OVERLAY (Pointer Lock Info)
     ========================================================================== */
  
  .start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 11, 24, 0.92);
    backdrop-filter: blur(8px);
    z-index: var(--z-popup);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
  }
  
  .start-content {
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 2px rgba(255,255,255,0.2);
  }
  
  .start-logo h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary);
  }
  
  .start-logo p {
    color: var(--text-muted);
    margin-bottom: 30px;
  }
  
  .controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .ctrl-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .ctrl-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .key-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .key-row {
    display: flex;
    gap: 4px;
  }
  
  kbd {
    background: #1a2233;
    border: 1px solid #334455;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: monospace;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 0 #0f1522;
    min-width: 30px;
    display: inline-flex;
    justify-content: center;
  }
  
  kbd.key-wide {
    padding: 6px 20px;
  }
  
  .btn-start {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
  }
  
  .btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 210, 255, 0.5);
    filter: brightness(1.1);
  }
  
  .start-hint {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  /* Mobile controls info grid */
  .mobile-controls-info {
    margin-bottom: 30px;
  }

  .mobile-ctrl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .mobile-ctrl-item {
    background: rgba(0,0,0,0.3);
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-main);
  }

  .mobile-ctrl-item i {
    color: var(--primary);
    font-size: 1.3rem;
  }

  .mobile-ctrl-item small {
    color: var(--text-muted);
    font-size: 0.7rem;
  }
  
  /* ==========================================================================
     HUD TOP BAR
     ========================================================================== */
  
  .hud-top {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: var(--z-hud);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none; /* Let clicks pass through to 3D */
  }
  
  .hud-brand {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
  
  .hud-scores {
    display: flex;
    gap: 10px;
  }
  
  .hud-stat {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
  }
  
  .hud-stat i {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
  }
  
  .hud-stat span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .hud-stat strong {
    font-size: 1.2rem;
    font-weight: 800;
  }
  
  .hud-health-wrap .mini-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 5px 0;
    overflow: hidden;
  }
  
  .hud-health-wrap .mini-bar-fill {
    height: 100%;
    width: 35%;
    background: var(--secondary);
    transition: width 0.5s ease;
  }
  
  .hud-depth {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
  }

  .hud-actions {
    pointer-events: auto;
  }

  .hud-btn-view {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.4), rgba(0, 100, 200, 0.6));
    border: 1.5px solid var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.35);
    transition: all 0.2s ease;
  }

  .hud-btn-view:hover {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.6), rgba(0, 140, 240, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
  }

  .hud-btn-view i {
    color: #fef08a;
  }

  .hud-btn-beach {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.4), rgba(180, 83, 9, 0.6));
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  }

  .hud-btn-beach:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.6), rgba(217, 119, 6, 0.8));
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
  }

  /* ==========================================================================
     HUD OBJECTIVE TRACKER (Top Center)
     ========================================================================== */
  .hud-objective {
    position: absolute;
    top: 98px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-hud);
    background: rgba(4, 18, 38, 0.92);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    border-radius: 30px;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.35);
    pointer-events: auto;
    transition: all 0.3s ease;
  }

  .hud-objective i {
    color: #facc15;
    font-size: 1.25rem;
    animation: ping 2.5s infinite;
  }

  .hud-objective .obj-text {
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .hud-objective .obj-label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
  }

  .hud-objective strong {
    font-size: 0.92rem;
    color: #f8fafc;
    font-weight: 800;
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hud-objective .obj-dist {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
    white-space: nowrap;
  }

  .btn-enter-mission {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1.5px solid #fde68a;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .btn-enter-mission:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.85);
  }

  .btn-enter-mission i {
    color: #0f172a !important;
    font-size: 0.88rem !important;
    animation: none !important;
  }

  @media (max-width: 768px) {
    .hud-objective {
      top: 72px;
      padding: 6px 14px;
      max-width: 90vw;
      gap: 8px;
    }
    .hud-objective strong {
      font-size: 0.78rem;
      max-width: 190px;
    }
    .hud-objective .obj-dist {
      font-size: 0.75rem;
      padding: 3px 8px;
    }
    .btn-enter-mission {
      font-size: 0.75rem;
      padding: 4px 10px;
    }
  }

  /* ==========================================================================
     HUD MISSIONS MAP (Left Side)
     ========================================================================== */
  
  .hud-missions {
    position: absolute;
    top: 90px;
    left: 20px;
    z-index: var(--z-hud);
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: 250px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    pointer-events: auto; /* allow scrolling/clicking */
  }
  
  /* Scrollbar styling for panels */
  .hud-missions::-webkit-scrollbar {
    width: 6px;
  }
  .hud-missions::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
  }
  .hud-missions::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
  }
  
  .hud-missions-title {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    background: rgba(5, 15, 30, 0.95);
    z-index: 2;
  }
  
  .hud-missions-title i {
    color: var(--primary);
  }
  
  .hud-prog-label {
    margin-left: auto;
    background: rgba(0, 210, 255, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
  }
  
  .hud-mission-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .m-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid transparent;
    border-radius: 10px;
    opacity: 0.5;
    transition: all 0.2s;
  }
  
  .m-node-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  
  .m-node-info {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
  }
  
  .m-node-info strong {
    color: var(--text-main);
  }
  
  .m-node-info small {
    color: var(--text-muted);
    font-size: 0.65rem;
  }
  
  .m-node.is-open {
    opacity: 1;
    background: rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.05);
  }
  
  .m-node.is-done .m-node-num {
    background: var(--success);
    color: #000;
  }
  
  .m-node.is-current {
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    opacity: 1;
  }
  
  .m-node.is-current .m-node-num {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 10px var(--primary-glow);
  }

  .m-node-teleport-btn {
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.75rem;
    transition: all 0.2s ease;
  }

  .m-node-teleport-btn:hover {
    background: #0284c7;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  }

  .m-node:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(0, 30, 60, 0.5);
  }
  
  /* ==========================================================================
     AI GUARDIAN (Bottom Left)
     ========================================================================== */
  
  .ai-guardian {
    position: fixed;
    bottom: 25px;
    left: 20px;
    z-index: calc(var(--z-hud) + 6);
    display: flex;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    transition: bottom 0.3s ease, left 0.3s ease;
  }

  /* When joystick is active, move AI Guardian safely above it so they never overlap */
  .ai-guardian.mobile-layout {
    bottom: 145px;
    left: 20px;
  }

  @media (max-width: 900px), (max-height: 550px) {
    .ai-guardian {
      bottom: 145px;
      left: 15px;
    }
    .hud-missions {
      display: none !important; /* too cramped on small/landscape screen */
    }
    .hud-top {
      left: 10px;
      right: 10px;
      top: 10px;
    }
    .hud-stat {
      min-width: 55px;
      padding: 5px 8px;
    }
    .hud-stat span { display: none; }
    .hud-stat strong { font-size: 0.95rem; }
    .hud-brand span { display: none; }
    .hud-depth { display: none; }
    .zone-prompt { bottom: 155px; font-size: 0.8rem; padding: 7px 12px; }
    .dive-prompt { bottom: 115px; font-size: 0.78rem; padding: 6px 10px; }
    .hud-objective { top: 65px; font-size: 0.8rem; }
  }
  
  .ai-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 18, 44, 0.92);
    border: 2px solid var(--primary);
    padding: 4px;
    position: relative;
    box-shadow: 0 0 18px var(--primary-glow);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  
  .ai-avatar:hover {
    transform: scale(1.1);
  }
  
  .ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
  }
  
  .ai-ping {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: ping 2s infinite;
  }
  
  @keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
  }
  
  .ai-bubble {
    background: rgba(0, 18, 44, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary-glow);
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
    max-width: min(320px, calc(100vw - 110px));
    max-height: min(170px, 45vh);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    pointer-events: auto;
    transform-origin: bottom left;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
  }
  
  .ai-bubble.collapsed {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
  }
  
  .ai-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--primary);
    flex-shrink: 0;
  }
  
  .ai-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    line-height: 1;
  }
  
  .ai-close-btn:hover {
    color: #fff;
  }
  
  .ai-bubble p {
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
    overflow-y: auto;
    max-height: 120px;
    padding-right: 4px;
  }
  
  /* ==========================================================================
     PROMPTS (Center Bottom)
     ========================================================================== */
  
  .zone-prompt, .dive-prompt {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary);
    padding: 12px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: var(--z-hud);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s;
  }

  .zone-prompt:hover {
    transform: translate(-50%, -3px) scale(1.04);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
    background: rgba(0, 25, 55, 0.85);
  }

  .dive-prompt {
    pointer-events: none;
  }
  
  .zone-prompt.hidden, .dive-prompt.hidden {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  
  .zone-prompt i, .dive-prompt i {
    color: var(--primary);
    font-size: 1.2rem;
  }
  
  .zone-name {
    color: var(--primary);
    font-weight: 700;
  }
  
  .zone-prompt kbd, .dive-prompt kbd {
    background: #fff;
    color: #000;
    border: none;
    box-shadow: 0 2px 0 #ccc;
    padding: 2px 8px;
    border-radius: 4px;
  }
  
  .dive-prompt {
    bottom: 100px;
    border-color: rgba(255,255,255,0.2);
    color: #ccc;
    font-size: 0.9rem;
  }
  .dive-prompt i { color: #ccc; }
  
  /* ==========================================================================
     MISSION POPUP (Interaction UI)
     ========================================================================== */
  
  .mission-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: var(--z-popup);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
  }
  
  .mission-popup.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .mission-popup-inner {
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 2px rgba(255,255,255,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .mission-popup.hidden .mission-popup-inner {
    transform: scale(0.9);
  }
  
  .popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background 0.2s;
    z-index: 2;
  }
  
  .popup-close-btn:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .popup-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to right, rgba(0, 210, 255, 0.1), transparent);
  }
  
  .popup-eyebrow {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .popup-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .popup-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .popup-ai-panel {
    display: flex;
    gap: 20px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.2);
    align-items: center;
  }
  
  .popup-ai-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 5px;
    background: rgba(0,0,0,0.5);
  }
  
  .popup-ai-name {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .popup-ai-panel p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .popup-char-value {
    margin: 0 40px;
    padding: 12px 20px;
    background: rgba(255, 187, 0, 0.1);
    border-left: 4px solid var(--warning);
    color: var(--warning);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .popup-task {
    padding: 20px 40px;
    flex: 1;
  }
  
  .popup-task h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .popup-task h3 i {
    color: var(--secondary);
  }
  
  .task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .task-choice {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .task-choice::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    flex-shrink: 0;
  }
  
  .task-choice:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
  }
  
  .task-choice.is-selected {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--primary);
  }
  
  .task-choice.is-selected::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--bg-dark);
  }
  
  .task-choice.is-correct {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--success);
  }
  .task-choice.is-correct::after {
    content: '\f00c'; /* check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success);
    margin-left: auto;
  }
  
  .task-choice.is-wrong {
    background: rgba(255, 68, 68, 0.15);
    border-color: var(--danger);
    opacity: 0.7;
  }
  .task-choice.is-wrong::after {
    content: '\f00d'; /* xmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--danger);
    margin-left: auto;
  }

  /* Chain Task Order Builder */
  .chain-preview-container {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.08);
  }

  .chain-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .chain-preview-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .chain-reset-btn {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
  }

  .chain-reset-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #fff;
    transform: scale(1.02);
  }

  .chain-flow-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 0;
  }

  .chain-empty-hint {
    font-size: 0.84rem;
    color: #94a3b8;
    font-style: italic;
  }

  .chain-chip {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(14, 165, 233, 0.55));
    border: 1px solid rgba(56, 189, 248, 0.6);
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #f0f9ff;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    animation: chipPopIn 0.25s ease-out;
  }

  @keyframes chipPopIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }

  .chain-chip-num {
    background: #facc15;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .chain-chip-arrow {
    color: #38bdf8;
    font-size: 0.8rem;
    opacity: 0.75;
  }

  .task-choice.chain-mode::before {
    display: none !important;
  }

  .task-choice.chain-mode {
    position: relative;
    padding: 12px 16px;
  }

  .chain-step-badge {
    background: #facc15;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.80rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 6px;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
    flex-shrink: 0;
  }

  .popup-footer {
    padding: 20px 40px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
  }
  
  .popup-badge-row {
    display: flex;
    gap: 10px;
  }
  
  .badge-icon {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 187, 0, 0.3);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: inherit;
  }
  
  .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
  }
  
  .btn-primary:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
  }
  
  /* Utilities */
  .hidden {
    display: none !important;
  }
  
  .damage-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, transparent 20%, rgba(255,0,0,0.8) 100%); z-index: var(--z-loading); pointer-events: none; opacity: 0; transition: opacity 0.2s ease; } .damage-overlay.active { opacity: 1; transition: opacity 0.05s ease; }

  /* ==========================================================================
     MOBILE TOUCH CONTROLS
     ========================================================================== */

  .virtual-joystick {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: calc(var(--z-hud) + 5);
    pointer-events: auto;
    touch-action: none;
    user-select: none;
  }

  .joystick-base {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(0, 15, 35, 0.65);
    border: 2px solid rgba(0, 210, 255, 0.65);
    position: relative;
    touch-action: none;
    user-select: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.3);
    cursor: grab;
  }

  .joystick-knob {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary), var(--primary-dark));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: none;
    pointer-events: none;
  }

  /* Mobile Action Buttons */
  .mobile-actions {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: calc(var(--z-hud) + 5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    pointer-events: auto;
  }

  .mob-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-family: inherit;
    transition: all 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }

  .mob-btn:active {
    transform: scale(0.9);
  }

  .mob-btn-mission {
    background: linear-gradient(135deg, #0077b6, #00d2ff);
    color: #fff;
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
  }

  .mob-btn-mission.mob-btn-active {
    animation: pulse-blue 1s infinite;
  }

  @keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 210, 255, 0.5); }
    50% { box-shadow: 0 0 35px rgba(0, 210, 255, 0.9), 0 0 50px rgba(0, 210, 255, 0.4); }
  }

  .mob-btn-shoot {
    background: linear-gradient(135deg, #92400e, #fbbf24);
    color: #fff;
  }

  .mob-btn-up {
    background: rgba(255,255,255,0.15);
    color: #fff;
    width: 46px;
    height: 46px;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
  }

  .mob-btn-down {
    background: rgba(255,255,255,0.1);
    color: #ccc;
    width: 46px;
    height: 46px;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
  }

  /* Responsive popup for mobile */
  @media (max-width: 600px) {
    .mission-popup-inner {
      border-radius: 14px;
      max-height: 95vh;
    }
    .popup-header {
      padding: 20px 20px 12px;
    }
    .popup-header h2 {
      font-size: 1.4rem;
    }
    .popup-ai-panel {
      padding: 12px 20px;
    }
    .popup-char-value {
      margin: 0 20px;
    }
    .popup-task {
      padding: 12px 20px;
    }
    .popup-footer {
      padding: 12px 20px;
      flex-direction: column;
      gap: 10px;
    }
    .task-grid {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .task-choice {
      padding: 10px;
      font-size: 0.85rem;
    }
    .btn-primary {
      width: 100%;
      justify-content: center;
    }
  }

  /* ==========================================================================
     KERANG BAMBU (LORJUK) OBSERVATION MODAL & PROMPT
     ========================================================================== */
  .clam-prompt {
    bottom: 96px !important;
    background: rgba(25, 18, 5, 0.92) !important;
    border: 1px solid rgba(251, 191, 36, 0.65) !important;
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.35) !important;
  }

  .clam-prompt i {
    color: #fbbf24;
  }

  .clam-prompt .zone-name {
    color: #fde68a;
    font-weight: 700;
  }

  .clam-modal-inner {
    max-width: 680px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.25);
  }

  .clam-header h2 {
    color: #fef08a;
  }

  .clam-content-grid {
    padding: 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 55vh;
    overflow-y: auto;
  }

  .clam-3d-viewport {
    position: relative;
    width: 100%;
    height: 230px;
    background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.28) 0%, rgba(14, 165, 233, 0.22) 50%, rgba(3, 105, 161, 0.45) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 35px rgba(251, 191, 36, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  #clam-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
  }

  #clam-3d-canvas:active {
    cursor: grabbing;
  }

  .clam-3d-controls-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.74rem;
    color: #fef08a;
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  .clam-3d-controls-hint i {
    color: #38bdf8;
    animation: pulse 1.5s infinite;
  }

  .clam-sand-substrate-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.92), rgba(180, 83, 9, 0.95));
    backdrop-filter: blur(6px);
    border: 1px solid #fde68a;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .clam-specimen-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .clam-icon-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .clam-3d-badge {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .clam-badges-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .c-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 15, 35, 0.75);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fef3c7;
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 8px;
  }

  .c-badge i {
    color: #fbbf24;
  }

  .clam-info-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .clam-info-item {
    background: rgba(0, 20, 50, 0.6);
    border: 1px solid rgba(0, 170, 255, 0.18);
    border-radius: 10px;
    padding: 12px 16px;
  }

  .clam-info-item h4 {
    color: #38bdf8;
    font-size: 0.92rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .clam-info-item h4 i {
    color: #fbbf24;
  }

  .clam-info-item p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #cbd5e1;
  }

  .clam-info-item strong {
    color: #fde68a;
  }

  .clam-footer-tip {
    font-size: 0.82rem;
    color: #fde68a;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mob-btn-clam {
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: #fff;
    border: 1px solid rgba(251, 191, 36, 0.6);
  }

  .mob-btn-view {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  }

  .mob-btn-beach {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
    border: 1px solid rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  }

  /* ==========================================================================
     FITUR TAMPILAN MODAL STYLING
     ========================================================================== */
  .view-modal-inner {
    max-width: 720px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(14, 165, 233, 0.25);
  }

  .view-settings-grid {
    padding: 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
  }

  .view-setting-card {
    background: rgba(0, 20, 50, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .setting-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .setting-title i {
    color: #fef08a;
  }

  .setting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }

  .opt-btn {
    background: rgba(0, 15, 35, 0.7);
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: var(--font-main);
  }

  .opt-btn i {
    font-size: 1.2rem;
    color: #38bdf8;
    margin-bottom: 2px;
  }

  .opt-btn strong {
    font-size: 0.88rem;
    color: #f1f5f9;
  }

  .opt-btn small {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.3;
  }

  .opt-btn:hover {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
  }

  .opt-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(14, 165, 233, 0.2));
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
  }

  .opt-btn.active strong {
    color: #fef08a;
  }

  .opt-btn.active i {
    color: #fef08a;
  }

  /* 3D BIO-SCANNER SCIENTIFIC LABELS */
  .bio-label-3d {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(0, 15, 35, 0.85);
    border: 1px solid #38bdf8;
    border-radius: 16px;
    padding: 4px 10px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    z-index: 6;
    transition: opacity 0.2s ease;
  }

  .bio-label-3d i {
    color: #38bdf8;
  }

  .bio-label-3d em {
    color: #fef08a;
    font-style: italic;
    font-size: 0.68rem;
  }