/* ==========================================
   INTERACTIVE HUMAN ANATOMY
   Colourful, learner-friendly UI
   Works with the existing index.html + script.js
========================================== */

:root {
  --bg: #081426;
  --panel: #101f36;
  --panel-soft: #162943;
  --panel-hover: #203957;
  --border: rgba(151, 183, 219, 0.18);
  --text: #f4f8ff;
  --muted: #a9bad2;
  --cyan: #55d6e8;
  --blue: #5798ff;
  --purple: #a78bfa;
  --pink: #f28caf;
  --mint: #63dfbd;
  --gold: #ffd27a;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(66, 112, 190, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(150, 89, 190, 0.12),
      transparent 30%
    ),
    var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* HEADER */

header {
  height: 70px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(16, 31, 54, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 5;
}

header h1 {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 750;
  letter-spacing: -0.45px;
  color: #ffffff;
}

header p {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* MAIN LAYOUT */

main {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr) 300px;
  height: calc(100vh - 70px);
  min-height: 0;
}

/* LEFT SIDEBAR */

.sidebar {
  min-width: 0;
  padding: 22px 18px;
  overflow-y: auto;
  background: linear-gradient(
    180deg,
    rgba(19, 38, 64, 0.98),
    rgba(13, 28, 49, 0.98)
  );
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: #385779 transparent;
}

.sidebar h2,
.information h2 {
  margin: 12px 0 13px;
  color: #9db9e3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.25px;
}

/* MODEL SELECT */

#modelSelect {
  width: 100%;
  padding: 12px 13px;
  margin-bottom: 18px;
  appearance: auto;
  color: var(--text);
  background: linear-gradient(135deg, #1b3555, #142943);
  border: 1px solid rgba(105, 164, 231, 0.38);
  border-radius: 11px;
  outline: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

#modelSelect:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85, 214, 232, 0.13);
}

#modelSelect option {
  background: #142943;
  color: white;
}

/* SCRIPT-INJECTED MODEL LAYER CONTROLS */

#layerControls {
  display: grid;
  gap: 3px;
  margin: 0 0 20px;
}

#layerControls label {
  min-height: 38px;
  padding: 7px 9px !important;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #dce9fb !important;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s;
}

#layerControls label:hover {
  background: rgba(91, 148, 211, 0.12);
  border-color: var(--border);
}

#layerControls input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* SEARCH */

#searchOrgan {
  width: 100%;
  padding: 12px 13px;
  margin: 0 0 14px;
  color: var(--text);
  background: rgba(5, 16, 31, 0.72);
  border: 1px solid rgba(137, 169, 207, 0.25);
  border-radius: 11px;
  outline: none;
  font-size: 13px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

#searchOrgan::placeholder {
  color: #8097b5;
}

#searchOrgan:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85, 214, 232, 0.12);
}

/* ORGAN LIST */

#organList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
}

.organ-item {
  width: 100%;
  padding: 10px 12px;
  color: #e9f2ff;
  background: linear-gradient(
    135deg,
    rgba(31, 57, 88, 0.94),
    rgba(23, 43, 68, 0.94)
  );
  border: 1px solid rgba(139, 174, 215, 0.09);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.organ-item small {
  color: #9edbe5 !important;
  font-size: 20px !important;
  font-weight: 500;
}

.organ-item:hover {
  transform: translateX(3px);
  background: linear-gradient(135deg, #294d75, #203c60);
  border-color: rgba(85, 214, 232, 0.55);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
}

.organ-item.active {
  color: #ffffff;
  background: linear-gradient(
    110deg,
    rgba(36, 143, 169, 0.42),
    rgba(91, 112, 196, 0.36)
  );
  border-color: var(--cyan);
  box-shadow:
    0 0 0 2px rgba(85, 214, 232, 0.1),
    0 7px 18px rgba(0, 0, 0, 0.18);
}

.organ-item.active small {
  color: #d2fbff !important;
}

/* 3D VIEWER */

.viewer {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(54, 91, 137, 0.45) 0%,
      rgba(25, 48, 77, 0.35) 36%,
      transparent 68%
    ),
    linear-gradient(145deg, #10213a, #091629 72%);
}

.viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(155, 192, 231, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 192, 231, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black, transparent 78%);
  z-index: -1;
}

#anatomyCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  outline: none;
}

#anatomyCanvas:active {
  cursor: grabbing;
}

/* LOADING MESSAGE */

#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  padding: 13px 19px;
  color: #b9f5ff;
  background: rgba(9, 25, 45, 0.86);
  border: 1px solid rgba(85, 214, 232, 0.28);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  z-index: 2;
}

/* 3D CONTROLS */

.controls {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 3;
}

.controls button {
  min-width: 43px;
  padding: 10px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #24476c, #193450);
  border: 1px solid rgba(137, 185, 230, 0.35);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  transition:
    transform 0.18s,
    background 0.18s,
    border-color 0.18s;
}

.controls button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #287e9a, #28558a);
  border-color: var(--cyan);
}

.controls button:active {
  transform: translateY(0);
}

/* RIGHT INFORMATION PANEL */

.information {
  min-width: 0;
  padding: 24px 20px;
  overflow-y: auto;
  background: linear-gradient(
    180deg,
    rgba(19, 38, 64, 0.98),
    rgba(13, 28, 49, 0.98)
  );
  border-left: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: #385779 transparent;
}

.information h2 {
  margin-top: 7px;
  margin-bottom: 20px;
}

.information h3 {
  margin: 20px 0 14px;
  color: #cffaff;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.information p {
  color: #c3d2e6;
  font-size: 14px;
  line-height: 1.85;
}

/* BILINGUAL CONTENT ADDED BY SCRIPT.JS */

.anatomy-tibetan {
  display: inline-block;
  margin-top: 7px;
  color: #83e8ef;
  font-family:
    "Noto Sans Tibetan", "Microsoft Himalaya", "Jomolhari", sans-serif;
  font-size: 1.12em;
  font-weight: 650;
  line-height: 1.9;
  letter-spacing: 0;
}

.anatomy-english {
  color: #72e3ef;
}

.anatomy-description-en,
.anatomy-description-bo {
  margin: 0 0 15px;
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.85;
}

.anatomy-description-en {
  color: #d7e6fa;
  background: linear-gradient(
    135deg,
    rgba(65, 117, 178, 0.17),
    rgba(42, 76, 119, 0.12)
  );
  border: 1px solid rgba(104, 164, 224, 0.18);
}

.anatomy-description-bo {
  color: #e4eaff;
  background: linear-gradient(
    135deg,
    rgba(139, 100, 190, 0.18),
    rgba(81, 78, 150, 0.13)
  );
  border: 1px solid rgba(176, 139, 232, 0.23);
  font-family:
    "Noto Sans Tibetan", "Microsoft Himalaya", "Jomolhari", sans-serif;
  font-size: 20px;
}

.anatomy-description-en strong {
  display: inline-block;
  margin-bottom: 5px;
  color: #8ec4ff;
}

.anatomy-description-bo strong {
  display: inline-block;
  margin-bottom: 5px;
  color: #d1b4ff;
}

/* SCROLLBAR */

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(5, 15, 29, 0.35);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #416d99, #315078);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5798c7;
}

/* KEYBOARD FOCUS */

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* MEDIUM SCREENS */

@media (max-width: 1100px) {
  main {
    grid-template-columns: 245px minmax(0, 1fr);
    grid-template-rows: minmax(440px, 1fr) auto;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .sidebar {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .viewer {
    grid-column: 2;
    grid-row: 1;
    min-height: 520px;
  }

  .information {
    grid-column: 2;
    grid-row: 2;
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 190px;
  }
}

/* TABLETS AND PHONES */

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  header {
    min-height: 68px;
    height: auto;
    padding: 15px 17px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  header h1 {
    font-size: 19px;
  }

  header p {
    font-size: 12px;
  }

  main {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 68px);
    overflow: visible;
  }

  .viewer {
    order: 1;
    height: min(72vh, 580px);
    min-height: 400px;
    flex: 0 0 auto;
  }

  .sidebar {
    order: 2;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 19px 16px;
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .information {
    order: 3;
    width: 100%;
    min-height: 210px;
    padding: 20px 16px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .controls {
    top: 12px;
    gap: 7px;
  }

  .controls button {
    padding: 9px 13px;
  }

  #organList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SMALL PHONES */

@media (max-width: 420px) {
  header h1 {
    font-size: 17px;
  }

  .viewer {
    min-height: 360px;
    height: 58vh;
  }

  #organList {
    grid-template-columns: 1fr;
  }

  .controls button {
    min-width: 38px;
    padding: 8px 11px;
    font-size: 14px;
  }

  .anatomy-description-en,
  .anatomy-description-bo {
    padding: 11px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================
   FINAL UI POLISH
   - Center the main page title
   - Improve the model dropdown styling
========================================== */

/* Keep the title precisely centered in the header */
header {
  position: relative;
}

header h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 65%;
  text-align: center;
  z-index: 1;
}

/* Keep the small header subtitle aligned to the right */
header p {
  margin-left: auto;
  position: relative;
  z-index: 2;
  text-align: right;
}

/* A cleaner, more polished model selector */
#modelSelect {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 42px 12px 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #f7fbff;
  background-color: #142943;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2379d9f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  border: 1px solid rgba(121, 217, 240, 0.35);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

#modelSelect:hover {
  background-color: #1a3656;
  border-color: rgba(121, 217, 240, 0.75);
}

#modelSelect:focus {
  outline: none;
  border-color: #65dff0;
  box-shadow:
    0 0 0 3px rgba(85, 214, 232, 0.17),
    0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Style the option list where the browser allows it */
#modelSelect option {
  color: #f4f8ff;
  background: #142943;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
}

/* Better centering on smaller screens too */
@media (max-width: 700px) {
  header {
    min-height: 76px;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
  }

  header h1 {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 19px;
  }

  header p {
    display: none;
  }
}

/* =========================================
   BILINGUAL HEADER
========================================= */

header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .main-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  width: max-content;
  max-width: 75%;
  text-align: center;
  z-index: 2;
}

.title-tibetan {
  display: block;
  color: #72e3ef;

  font-family:
    "Noto Sans Tibetan", "Microsoft Himalaya", "Jomolhari", sans-serif;

  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.8;
}

.title-english {
  display: block;
  color: #ffffff;
  font-size: clamp(16px, 1.9vw, 23px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* =========================================
   HIDE ORIGINAL NATIVE SELECT
========================================= */

#modelSelect.model-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================
   CUSTOM BODY DROPDOWN
========================================= */

.body-picker {
  position: relative;
  width: 100%;
  margin-bottom: 22px;
  z-index: 20;
}

.body-picker-button {
  width: 100%;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 9px 15px;

  color: #ffffff;
  background: linear-gradient(135deg, #1c4265, #152d49);

  border: 1px solid rgba(105, 218, 240, 0.55);
  border-radius: 14px;

  cursor: pointer;
  text-align: left;

  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  transition: all 0.25s ease;
}

.body-picker-button:hover {
  background: linear-gradient(135deg, #24547a, #1b3b5c);

  border-color: #69e4f3;

  box-shadow:
    0 0 0 3px rgba(85, 214, 232, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.body-picker-button:focus-visible {
  outline: 2px solid #72e3ef;
  outline-offset: 3px;
}

.picker-current {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.picker-current strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.picker-current small {
  color: #83e8ef;

  font-family:
    "Noto Sans Tibetan", "Microsoft Himalaya", "Jomolhari", sans-serif;

  font-size: 17px;
  line-height: 1.8;
}

.picker-arrow {
  color: #72e3ef;
  font-size: 23px;
  font-weight: bold;

  transition: transform 0.25s ease;
}

.body-picker.open .picker-arrow {
  transform: rotate(180deg);
}

/* =========================================
   DROPDOWN MENU
========================================= */

.body-picker-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;

  width: 100%;
  padding: 7px;

  background: linear-gradient(145deg, #172f4c, #0d1d32);

  border: 1px solid rgba(105, 218, 240, 0.45);
  border-radius: 14px;

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(85, 214, 232, 0.08);

  z-index: 100;
}

.body-picker-menu[hidden] {
  display: none;
}

/* =========================================
   DROPDOWN OPTIONS
========================================= */

.body-picker-option {
  width: 100%;
  min-height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  padding: 10px 12px;

  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;

  color: #ffffff;
  text-align: left;
  cursor: pointer;

  transition: all 0.2s ease;
}

.body-picker-option + .body-picker-option {
  margin-top: 5px;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-text strong {
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 700;
}

.option-text small {
  color: #9bdce9;

  font-family:
    "Noto Sans Tibetan", "Microsoft Himalaya", "Jomolhari", sans-serif;

  font-size: 13px;
  line-height: 1.8;
}

.option-check {
  color: #72e3ef;
  font-size: 17px;
  font-weight: 800;
  opacity: 0;
}

.body-picker-option:hover {
  background: linear-gradient(
    110deg,
    rgba(49, 143, 174, 0.3),
    rgba(79, 108, 180, 0.2)
  );

  border-color: rgba(105, 218, 240, 0.4);
}

.body-picker-option.active {
  background: linear-gradient(
    110deg,
    rgba(43, 150, 174, 0.3),
    rgba(85, 114, 193, 0.25)
  );

  border-color: rgba(105, 218, 240, 0.5);
}

.body-picker-option.active .option-check {
  opacity: 1;
}

.body-picker-option:focus-visible {
  outline: 2px solid #72e3ef;
  outline-offset: 2px;
}

/* =========================================
   RESPONSIVE HEADER
========================================= */

@media (max-width: 700px) {
  header {
    min-height: 90px;
    height: auto;
    padding: 10px 12px;
    flex-direction: column;
    justify-content: center;
  }

  header .main-title {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    gap: 2px;
  }

  .title-tibetan {
    font-size: 16px;
  }

  .title-english {
    font-size: 18px;
  }

  header p {
    display: none;
  }
}

@media (max-width: 420px) {
  .title-tibetan {
    font-size: 14px;
  }

  .title-english {
    font-size: 16px;
  }

  .body-picker-button {
    min-height: 55px;
  }
}

/* =========================================
   IMPROVED TIBETAN TITLE SPACING
========================================= */

header {
  height: 100px;
  min-height: 100px;
  padding: 8px 20px;
}

header .main-title {
  gap: 5px;
  max-width: 75%;
  padding: 5px 12px;
  overflow: visible;
}

.title-tibetan {
  font-family: "Noto Sans Tibetan", "Jomolhari", "Microsoft Himalaya", serif;

  font-size: clamp(18px, 4vw, 30px);
  font-weight: 700;

  line-height: 0.3;
  letter-spacing: 1px;
  word-spacing: 0.12em;

  padding: 10px 0 11px;
  margin-bottom: 3px;

  color: #91efff;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(85, 214, 232, 0.3);
}

.title-english {
  font-size: clamp(17px, 2.9vw, 23px);
  line-height: 1.5;
  margin-top: 2px;
}

/* Adjust main viewer height for taller header */

main {
  height: calc(100vh - 100px);
}

/* Mobile title adjustments */

@media (max-width: 700px) {
  header {
    height: auto;
    min-height: 100px;
    padding: 10px 12px;
  }

  header .main-title {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    gap: 4px;
  }

  .title-tibetan {
    font-size: 17px;
    line-height: 2.3;
    white-space: normal;
  }

  .title-english {
    font-size: 18px;
  }
}

/* =========================================
   3D MOUSE CONTROL GUIDE
========================================= */

.mouse-guide {
  position: absolute;
  right: 18px;
  bottom: 18px;

  width: 245px;
  padding: 15px;

  background: linear-gradient(
    145deg,
    rgba(24, 49, 77, 0.96),
    rgba(10, 25, 44, 0.97)
  );

  border: 1px solid rgba(105, 218, 240, 0.38);
  border-radius: 14px;

  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);

  z-index: 4;

  /* Allows mouse interaction with the 3D model underneath */
  pointer-events: none;

  backdrop-filter: blur(10px);
}

.mouse-guide-heading {
  display: flex;
  align-items: center;
  gap: 9px;

  padding-bottom: 11px;
  margin-bottom: 10px;

  border-bottom: 1px solid rgba(130, 180, 220, 0.2);

  color: #80e8f5;
  font-size: 13px;
}

.guide-icon {
  font-size: 19px;
}

.mouse-guide-item {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 11px 0;
}

.mouse-guide-item > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mouse-guide-item strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.mouse-guide-item small {
  color: #a9c1dc;
  font-size: 11px;
}

/* Mouse illustration */

.mouse-symbol {
  position: relative;

  width: 23px;
  height: 35px;
  flex-shrink: 0;

  border: 2px solid #91eafa;
  border-radius: 12px;
}

.mouse-symbol::before {
  content: "";
  position: absolute;

  left: 50%;
  top: 0;

  width: 2px;
  height: 12px;

  background: #91eafa;
  transform: translateX(-50%);
}

.mouse-symbol span {
  position: absolute;
  top: 4px;

  width: 7px;
  height: 8px;

  border-radius: 5px;
}

.left-drag span {
  left: 2px;
  background: #63dfbd;
}

.right-drag span {
  right: 2px;
  background: #a78bfa;
}

.wheel-symbol {
  width: 23px;
  height: 35px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffd27a;
  font-size: 23px;
  font-weight: bold;
}

.mouse-guide-footer {
  padding-top: 9px;
  margin-top: 10px;

  border-top: 1px solid rgba(130, 180, 220, 0.2);

  color: #72e3ef;
  font-size: 10px;
  text-align: center;
}

/* Mobile adjustment */

@media (max-width: 700px) {
  .mouse-guide {
    right: 10px;
    bottom: 10px;

    width: 205px;
    padding: 11px;
  }

  .mouse-guide-item {
    gap: 9px;
    margin: 9px 0;
  }

  .mouse-guide-item strong {
    font-size: 10px;
  }

  .mouse-guide-item small {
    font-size: 10px;
  }
}

/* =========================================
   MOUSE GUIDE INSIDE SELECTED BODY PART
========================================= */

.information {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mouse-guide {
  position: static !important;

  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;

  margin-top: auto;
  margin-bottom: 15px;

  pointer-events: none;

  flex-shrink: 0;
}

/* Keep the guide inside the information panel */

.information .mouse-guide {
  right: auto;
  bottom: auto;
  left: auto;
}

/* Smaller screens */

@media (max-width: 700px) {
  .mouse-guide {
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

/* =========================================
   BILINGUAL SIDEBAR HEADINGS
========================================= */

.bilingual-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.bilingual-heading .tibetan-label {
  color: #72e3ef;

  font-family:
    "Noto Sans Tibetan", "Jomolhari", "Microsoft Himalaya", sans-serif;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5;

  line-height: 1.8;
  white-space: nowrap;
}

/* =========================================
   LOBJONG HEADER LOGO
========================================= */

/* Lobjong logo - Top Left */

header {
  position: relative;
  display: flex;
  align-items: center;
}

.header-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);

  width: 65px;
  height: 65px;

  object-fit: contain;
  background: transparent;

  z-index: 10;
}

/* Keep title centered */

header .main-title {
  margin: 0 auto;
  text-align: center;
}

/* Mobile */

@media (max-width: 700px) {
  .header-logo {
    left: 10px;
    width: 42px;
    height: 42px;
  }
}

header .main-title {
  max-width: calc(100% - 65px);
}

.bilingual-heading {
  gap: 6px;
}

.bilingual-heading .tibetan-label {
  font-size: 17px;
}
