/* Website-only additions; the original desktop files are preserved separately. */
.web-home { display:inline-flex; align-items:center; gap:8px; color:var(--gold); font-size:12px; text-decoration:none; margin:0 0 7px; min-height:24px; }
.web-home:hover { text-decoration:underline; }
.web-home:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
.web-loader { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:24px; background:#070c12f5; }
.web-loader-card { max-width:460px; width:100%; padding:34px; border:1px solid #50452f; border-radius:16px; background:linear-gradient(145deg,#172029,#0d141c); box-shadow:0 24px 100px #0007; }
.web-loader h2 { margin:20px 0 12px; font:30px/1.2 Georgia,serif; }
.web-loader p { color:var(--muted); line-height:1.6; min-height:3.2em; }
.web-loader progress { width:100%; height:6px; accent-color:var(--gold); margin:8px 0 20px; }
.web-loader .web-home { margin:18px 0 0; }
.web-loader .loader-mark { color:var(--gold); font-size:12px; letter-spacing:.2em; }
.web-loader button { width:100%; }
.web-loading { cursor:progress; }
.web-loading main { pointer-events:none; }
.web-loader a,.web-loader button { cursor:pointer; }
.method a { color:var(--gold); }
@media (min-width:950px) {
  header { padding-top:7px; padding-bottom:10px; }
  header h1 { font-size:clamp(24px,2vw,29px); }
}
@media (max-width:949px) {
  main { grid-template-columns:1fr; }
  header { padding:20px; }
  h1 { font-size:32px; }
  .metrics { margin-top:16px; }
  .stage { height:65svh; min-height:380px; max-height:650px; }
  .viewbar { padding:10px 12px; gap:10px; }
  .view-actions { justify-content:flex-start; width:100%; gap:8px; }
  .label-control { flex:1 1 150px; min-width:0; }
  #verseLabelMode,#themeLabelMode { width:100%; min-height:42px; }
  .view-actions button { min-height:42px; }
  .navigation-hint { display:none; }
  .camera { padding:10px 12px; }
  aside { border-left:0; border-top:1px solid var(--line); }
  .viewbar select,.fields select,#theme { font-size:16px; }
  body.globe-fullscreen .stage { height:100%; max-height:none; min-height:0; }
  body.globe-fullscreen .view-actions { margin-left:0; }
  body.globe-fullscreen .graphfoot .legend { display:none; }
  body.globe-fullscreen .graphfoot { font-size:10px; bottom:8px; }
  body.globe-fullscreen .camera { left:8px; right:8px; bottom:30px; }
  body.globe-fullscreen .density { margin-left:0; padding:4px 8px; }
  body.globe-fullscreen aside { bottom:130px; }
}
@media (max-width:380px) {
  header { padding:16px; }
  header h1 { font-size:27px; }
  .metrics { gap:8px 16px; }
  .metrics strong { font-size:19px; }
  .metrics span { font-size:9px; letter-spacing:.04em; }
  .viewbar .modes button { padding:8px; }
  .web-loader-card { padding:24px; }
}

/* Mobile globe-only view: the return control stays reachable around safe areas. */
html.globe-only-active { overflow:hidden; overscroll-behavior:none; }
body.globe-only { height:100vh; height:100dvh; bottom:auto; overscroll-behavior:none; }
body.globe-only .viewbar,
body.globe-only .camera,
body.globe-only .graphfoot,
body.globe-only aside { display:none; }
body.globe-only .stage { height:100%; max-height:none; min-height:0; }
#globeOnlyExit { display:none; }
body.globe-only #globeOnlyExit {
  display:block; position:fixed; z-index:40;
  top:max(12px, env(safe-area-inset-top));
  right:max(12px, env(safe-area-inset-right));
  min-height:44px; padding:10px 14px; border-radius:8px;
  color:var(--gold); background:#10171ff0; border-color:#726044;
  box-shadow:0 3px 16px #0006; font-size:14px;
}
