/* The Inner Science Lab, v1.0.6 "Wing of the Inner Senses": Modules F–I (includes/views/science-v106.php).
   Builds on assets/css/science-lab.css (tokens, .mod, .bench, .stage, .panel, .ctl, .readout, .stats) and stays scoped to .lab.
   Behaviour: assets/js/science-lab-v106.js. */

/* ---------- Sticky index: nine tabs ---------- */
@media (min-width: 1024px) and (max-width: 1879.98px) { .lab-tab__s { display: none; } }
@media (min-width: 1024px) {
  .lab-tab { gap: 7px; padding: 6px 9px 6px 6px; }
  .lab-tab__t { font-size: 0.86rem; }
  .lab-tab__k { width: 26px; height: 26px; }
  .lab-tabs__inner { gap: 2px; }
}
.lab-tab__k { position: relative; }
.lab-tab[data-done] .lab-tab__k::after { content: ""; position: absolute; right: -5px; top: -5px; width: 13px; height: 13px; border-radius: 50%;
  background: #22D3EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.3l2 2L9 4' fill='none' stroke='%2304131A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 0 0 2px #0D0B09, 0 0 10px rgba(34, 211, 238, 0.8); }

/* ---------- The wing's opening band + progress ---------- */
.wing { position: relative; padding-block: clamp(56px, 7vw, 104px) clamp(8px, 2vw, 24px); border-top: 1px solid rgba(242, 181, 76, 0.14); overflow: hidden; }
.wing::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 70% at 12% 0%, rgba(136, 19, 55, 0.22), transparent 70%), radial-gradient(40% 60% at 92% 30%, rgba(242, 181, 76, 0.1), transparent 70%); }
.wing::after { content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(242, 181, 76, 0.75), transparent); }
.wing__inner { display: grid; gap: 28px; align-items: end; }
@media (min-width: 1024px) { .wing__inner { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr); gap: 56px; } }
.wing__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1; letter-spacing: -0.01em; margin: 0 0 18px; max-width: 16ch;
  background: linear-gradient(100deg, #FFF3D6 0%, #F2B54C 45%, #D97706 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wing__lead { margin: 0; max-width: 44rem; font-family: var(--serif); font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); line-height: 1.55; color: #E5D9C6; }
.wing__lead em { color: var(--lab-gold); }

.xp { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 22px; border: 1px solid var(--lab-line);
  background: linear-gradient(160deg, rgba(29, 24, 19, 0.92), rgba(13, 11, 9, 0.92)); box-shadow: 0 30px 70px -40px rgba(217, 119, 6, 0.45); min-width: 0; }
.xp__ring { position: relative; flex: none; width: 76px; height: 76px; display: grid; place-items: center; }
.xp__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.xp__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 4; }
.xp__arc { fill: none; stroke: #F2B54C; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 700ms var(--ease); filter: drop-shadow(0 0 4px rgba(242, 181, 76, 0.8)); }
.xp__ring b { font: 600 1.6rem/1 var(--mono); color: #FFF3D6; }
.xp__ring b::after { content: "/4"; font-size: 0.55em; color: var(--lab-muted); margin-left: 1px; }
.xp__body { min-width: 0; flex: 1; }
.xp__label { margin: 0 0 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lab-gold); }
.xp__pips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.xp__pip { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 5px; border-radius: 12px; text-decoration: none; color: var(--lab-muted) !important;
  border: 1px solid var(--lab-line); background: rgba(13, 11, 9, 0.5); font-size: 0.8rem; line-height: 1.2; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.xp__pk { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 600 0.8rem/1 var(--mono); color: var(--lab-gold); border: 1px solid var(--lab-line-strong); }
.xp__pt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.xp__pip.is-done { color: var(--lab-ink) !important; border-color: rgba(34, 211, 238, 0.5); background: rgba(6, 182, 212, 0.1); }
.xp__pip.is-done .xp__pk { background: linear-gradient(135deg, #FDE7AE, #F2B54C 50%, #D97706); color: #1F0A06; border-color: transparent; box-shadow: 0 0 14px rgba(242, 181, 76, 0.6); }
@media (hover: hover) and (pointer: fine) { .xp__pip:hover { border-color: var(--lab-line-strong); } }
.xp.is-complete { border-color: rgba(242, 181, 76, 0.55); box-shadow: 0 0 0 1px rgba(242, 181, 76, 0.25), 0 30px 80px -30px rgba(242, 181, 76, 0.55); }
@media (max-width: 419.98px) { .xp { padding: 14px; gap: 12px; } .xp__ring { width: 60px; height: 60px; } .xp__ring b { font-size: 1.25rem; } .xp__pips { grid-template-columns: 1fr; } }

/* ---------- Module backdrops ---------- */
.mod--resonance::before { background: radial-gradient(50% 40% at 85% 12%, rgba(242, 181, 76, 0.1), transparent 70%), radial-gradient(40% 30% at 5% 60%, rgba(136, 19, 55, 0.12), transparent 70%); }
.mod--entropy::before { background: radial-gradient(50% 40% at 12% 15%, rgba(249, 115, 22, 0.1), transparent 70%); }
.mod--biogauge::before { background: radial-gradient(50% 40% at 85% 15%, rgba(6, 182, 212, 0.1), transparent 70%), radial-gradient(40% 30% at 10% 80%, rgba(136, 19, 55, 0.14), transparent 70%); }
.mod--prism::before { background: radial-gradient(60% 45% at 50% 10%, rgba(242, 181, 76, 0.11), transparent 70%); }
.eq--md { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); }
.eq__unit { font-family: var(--sans); font-size: 0.5em; color: var(--lab-muted); align-self: center; }
.eq-card__h { margin: 0 0 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lab-gold); }
.eq-legend--chem { grid-template-columns: 1fr; margin-top: 10px; }
.chem { font: 600 0.95rem/1.2 var(--sans) !important; min-width: 6.4em !important; }
.chem--stress { color: #FDA4AF !important; }
.chem--calm { color: #67E8F9 !important; }
.voice--gold { border-left-color: var(--lab-gold); background: radial-gradient(120% 120% at 0% 0%, rgba(242, 181, 76, 0.12), transparent 60%), rgba(23, 20, 17, 0.75); align-self: center; }
.voice--gold p { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); font-style: italic; color: #FFF3D6; }

/* ---------- Stages ---------- */
.stage--scope { --ar: 16 / 9.4; }
.stage--box { --ar: 16 / 10.5; }
.stage--optics { --ar: 16 / 9.6; }
@media (min-width: 1024px) {
  .stage--scope { --ar: 16 / 10.6; }
  .stage--box { --ar: 16 / 11.4; }
  .stage--optics { --ar: 16 / 10.8; }
}
@media (max-width: 767.98px) {
  .stage--scope { --ar: 1 / 0.92; }
  .stage--box { --ar: 1 / 0.95; }
  .stage--optics { --ar: 1 / 0.72; }
}
.mod--resonance[data-state="coherent"] .stage--scope,
.mod--entropy[data-state="crystal"] .stage--box,
.mod--prism[data-state="focused"] .stage--optics { border-color: rgba(242, 181, 76, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 90px -36px rgba(242, 181, 76, 0.7), 0 0 0 1px rgba(242, 181, 76, 0.18); }
.stage, .panel { transition: border-color 600ms var(--ease), box-shadow 600ms var(--ease); }

/* ---------- Goal cards ---------- */
.quest { position: relative; display: grid; gap: 6px; padding: 14px 16px 14px 16px; border-radius: 16px; border: 1px dashed var(--lab-line-strong);
  background: linear-gradient(135deg, rgba(242, 181, 76, 0.05), rgba(13, 11, 9, 0.4)); transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease), background-color 400ms; }
.quest p { margin: 0; }
.quest__goal { font-size: 0.9rem; line-height: 1.5; color: #D9CCBA; padding-right: 34px; }
.quest__goal strong { color: var(--lab-gold); }
.quest__k { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px; font: 600 0.68rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: #1F0A06; background: var(--lab-gold); vertical-align: 1px; }
.quest__state { font-size: 0.85rem; color: var(--lab-muted); }
.quest__xp { font-size: 0.75rem; color: var(--lab-muted); letter-spacing: 0.04em; }
.quest__xp b { font-family: var(--mono); color: var(--lab-cyan-text); }
.quest__share { justify-self: start; margin-top: 4px; }
.quest__share[hidden] { display: none; }
.quest__seal { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: transparent;
  border: 1px dashed var(--lab-line-strong); transition: background-color 400ms, color 400ms, border-color 400ms, transform 500ms var(--ease); }
.quest__seal svg { width: 16px; height: 16px; }
.quest.is-done { border-style: solid; border-color: rgba(242, 181, 76, 0.6); background: radial-gradient(120% 140% at 100% 0%, rgba(242, 181, 76, 0.16), rgba(13, 11, 9, 0.5) 60%);
  box-shadow: 0 0 0 1px rgba(242, 181, 76, 0.18), 0 18px 50px -24px rgba(242, 181, 76, 0.7); }
.quest.is-done .quest__state { color: #FDE68A; font-weight: 600; }
.quest.is-done .quest__seal { color: #1F0A06; border: 0; background: linear-gradient(135deg, #FDE7AE, #F2B54C 50%, #D97706); box-shadow: 0 0 16px rgba(242, 181, 76, 0.75); }
.quest.is-fresh .quest__seal { animation: q-pop 700ms var(--ease); }
@keyframes q-pop { 0% { transform: scale(0.4) rotate(-30deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- F: drone toggle ---------- */
.drone-btn { gap: 10px; }
.drone-btn__i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.6rem; border: 1px solid currentColor; }
.drone-btn[aria-pressed="true"] { border-color: var(--lab-gold); background: rgba(242, 181, 76, 0.12); box-shadow: 0 0 22px -6px rgba(242, 181, 76, 0.8); }
.drone-btn[aria-pressed="true"] .drone-btn__i { background: var(--lab-gold); color: #1F0A06; border-color: transparent; }
.drone-note { align-self: center; font-size: 0.78rem; color: var(--lab-muted); line-height: 1.4; flex: 1 1 12rem; }
.mod--resonance[data-state="coherent"] .stats dd[data-out="res-state"],
.mod--entropy[data-state="crystal"] .stats dd[data-out="ent-phase"] { color: var(--lab-gold); }

/* ---------- G: entropy meter ---------- */
.meter--entropy .meter__fill { width: 100%; transform-origin: 0 50%; transform: scaleX(var(--s, 1)); transition: none;
  background: linear-gradient(90deg, #F2B54C, #F97316 45%, #E11D48 80%, #881337); }
.mod--entropy[data-state="crystal"] .meter--entropy { border-color: rgba(242, 181, 76, 0.5); box-shadow: 0 0 14px rgba(242, 181, 76, 0.4); }
.meter__cap { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--lab-muted); }

/* ---------- H: the brain ---------- */
.stage--brain { padding: clamp(8px, 1.6vw, 18px); background: radial-gradient(80% 80% at 45% 50%, rgba(136, 19, 55, 0.12), transparent 70%), #07060A; }
.mod--biogauge[data-state="calm"] .stage--brain { background: radial-gradient(80% 80% at 40% 50%, rgba(6, 182, 212, 0.1), transparent 70%), #07060A; border-color: rgba(94, 234, 212, 0.4); }
.stage--brain .hud { top: auto; bottom: 12px; left: auto; right: 14px; }
.brain { display: block; width: 100%; height: auto; overflow: visible; }
.br-cortex { fill: url(#br-tissue); stroke: rgba(242, 181, 76, 0.42); stroke-width: 1.4; }
.br-cbl { fill: #1A1410; stroke: rgba(242, 181, 76, 0.3); stroke-width: 1.2; }
.br-stem { fill: #16110D; stroke: rgba(242, 181, 76, 0.24); stroke-width: 1.2; }
.br-folia path, .br-sulci path { fill: none; stroke: rgba(242, 181, 76, 0.2); stroke-width: 1.1; stroke-linecap: round; }
.br-cc { fill: rgba(242, 181, 76, 0.07); stroke: rgba(242, 181, 76, 0.32); stroke-width: 1; }
.br-thal { fill: rgba(242, 181, 76, 0.06); stroke: rgba(242, 181, 76, 0.28); stroke-width: 1; }
.br-hypo { fill: rgba(251, 113, 133, 0.12); stroke: rgba(251, 113, 133, 0.4); stroke-width: 1; transition: fill 1.2s, stroke 1.2s; }
.br-pfc-glow { opacity: 0; transition: opacity 1.6s var(--ease); }
.br-path { fill: none; stroke: #5EEAD4; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 9; opacity: 0; transition: opacity 1.2s; }
.br-hpa { fill: none; stroke: #FB7185; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 5; opacity: 0.8; transition: opacity 1.2s; }
.br-amy__halo { transform-box: fill-box; transform-origin: center; animation: br-pulse 1.1s ease-in-out infinite; transition: opacity 1.4s; }
.br-amy__core { fill: #E11D48; stroke: #FECDD3; stroke-width: 1; transition: fill 1.4s, stroke 1.4s; }
.br-pin__halo { opacity: 0.12; transition: opacity 1.6s var(--ease); }
.br-pin__core { fill: #3A2E24; stroke: rgba(242, 181, 76, 0.55); stroke-width: 1; transition: fill 1.4s; }
.br-pin__scale { fill: none; stroke: rgba(242, 181, 76, 0.6); stroke-width: 0.9; }
.br-sparks path { fill: none; stroke: #FFE4E6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px #FB7185);
  opacity: 0; animation: br-spark 0.9s steps(1, end) var(--d, 0s) infinite; transition: opacity 0.8s; }
.br-lead { fill: none; stroke: rgba(242, 181, 76, 0.45); stroke-width: 1; }
.br-lbl { font: 600 19px var(--sans); fill: #EDE3D3; letter-spacing: 0.01em; paint-order: stroke; stroke: #07060A; stroke-width: 4px; }
.br-lbl--amy { fill: #FDA4AF; transition: fill 1.2s; }
.br-sub { font: 500 12px var(--sans); fill: var(--lab-muted); letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes br-pulse { 0%, 100% { transform: scale(0.85); opacity: 0.65; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes br-spark { 0% { opacity: 0; } 18% { opacity: 1; } 36% { opacity: 0.2; } 50% { opacity: 0.9; } 64% { opacity: 0; } }
@keyframes br-flow { to { stroke-dashoffset: -48; } }
/* calm: the observer is engaged */
.mod--biogauge[data-state="calm"] .br-pfc-glow { opacity: 1; }
.mod--biogauge[data-state="calm"] .br-pin__halo { opacity: 1; animation: br-breathe 4.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mod--biogauge[data-state="calm"] .br-pin__core { fill: #FDE68A; }
.mod--biogauge[data-state="calm"] .br-path { opacity: 0.95; animation: br-flow 2.4s linear infinite; }
.mod--biogauge[data-state="calm"] .br-hpa { opacity: 0.12; }
.mod--biogauge[data-state="calm"] .br-hypo { fill: rgba(242, 181, 76, 0.08); stroke: rgba(242, 181, 76, 0.3); }
.mod--biogauge[data-state="calm"] .br-amy__halo { animation: none; opacity: 0.12; }
.mod--biogauge[data-state="calm"] .br-amy__core { fill: #7C2D3A; stroke: rgba(254, 205, 211, 0.5); }
.mod--biogauge[data-state="calm"] .br-sparks path { animation: none; opacity: 0; }
.mod--biogauge[data-state="calm"] .br-lbl--amy { fill: #EDE3D3; }
.mod--biogauge[data-state="calm"] .br-lbl--pfc { fill: #99F6E4; }
.mod--biogauge[data-state="calm"] .br-lbl--pin { fill: #FDE68A; }
@keyframes br-breathe { 0%, 100% { transform: scale(0.92); } 50% { transform: scale(1.12); } }

/* the Inner Observer toggle */
.observer-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 18px; border-radius: 18px; cursor: pointer; text-align: left;
  border: 1px solid rgba(94, 234, 212, 0.4); color: var(--lab-ink); font: inherit;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(13, 11, 9, 0.7)); transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease), background-color 400ms; touch-action: manipulation; }
.observer-btn__eye { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #5EEAD4; border: 1px solid rgba(94, 234, 212, 0.45); }
.observer-btn__eye svg { width: 28px; height: 18px; }
.observer-btn__t { display: flex; flex-direction: column; gap: 2px; }
.observer-btn__t strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.observer-btn__s { font-size: 0.8rem; color: var(--lab-muted); }
.observer-btn[aria-pressed="true"] { border-color: var(--lab-gold); background: radial-gradient(120% 160% at 0% 50%, rgba(242, 181, 76, 0.22), rgba(13, 11, 9, 0.7) 70%);
  box-shadow: 0 0 0 1px rgba(242, 181, 76, 0.35), 0 18px 50px -20px rgba(242, 181, 76, 0.75); }
.observer-btn[aria-pressed="true"] .observer-btn__eye { color: #1F0A06; background: radial-gradient(circle, #FFF3D6, #F2B54C 60%, #D97706); border-color: transparent; box-shadow: 0 0 22px rgba(242, 181, 76, 0.8); }
@media (hover: hover) and (pointer: fine) { .observer-btn:hover { border-color: #5EEAD4; } }

/* the vials */
.vials { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 16px 10px 12px; border-radius: 16px; border: 1px solid var(--lab-line); background: rgba(7, 6, 10, 0.55); }
.vial { --lv: 0.5; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.vial__glass { position: relative; width: min(38px, 70%); height: 128px; border-radius: 8px 8px 19px 19px; overflow: hidden;
  border: 1px solid rgba(255, 243, 214, 0.28); background:
    repeating-linear-gradient(0deg, transparent 0 11.5px, rgba(255, 243, 214, 0.16) 11.5px 12.8px) 0 100% / 30% 100% no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 40%, rgba(255, 255, 255, 0.06)); }
.vial__glass::after { content: ""; position: absolute; left: 14%; top: 6%; width: 14%; height: 70%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent); pointer-events: none; }
.vial__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform-origin: 50% 100%; transform: scaleY(var(--lv)); }
.vial--stress .vial__fill { background: linear-gradient(0deg, #881337, #E11D48 55%, #FB7185); box-shadow: 0 0 18px rgba(225, 29, 72, 0.7); }
.vial--calm .vial__fill { background: linear-gradient(0deg, #0E7490, #06B6D4 50%, #F2B54C); box-shadow: 0 0 18px rgba(6, 182, 212, 0.6); }
.vial__base { position: absolute; left: -2px; right: -2px; height: 0; border-top: 1.5px dashed rgba(255, 243, 214, 0.75); bottom: var(--base, 40%); }
.vial--stress .vial__base { --base: 30%; }
.vial--calm .vial__base { --base: 60%; }
.vial__val { font: 600 1.05rem/1 var(--mono); color: #FFF3D6; font-variant-numeric: tabular-nums; }
.vial__name { font-size: 0.7rem; font-weight: 600; color: var(--lab-muted); text-align: center; max-width: 100%; line-height: 1.2; }
.vial--stress .vial__name { color: #FDA4AF; }
.vial--calm .vial__name { color: #67E8F9; }
.vials__note { margin: -6px 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--lab-muted); }
.vials__tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FDE68A; border: 1px solid rgba(242, 181, 76, 0.5); }
@media (max-width: 419.98px) { .vials { gap: 4px; padding-inline: 6px; } .vial__glass { height: 108px; } .vial__name { font-size: 0.62rem; } .vial__val { font-size: 0.92rem; } }

/* ---------- I: the optics bench ---------- */
.stage--optics canvas { cursor: default; }
.stage--optics canvas.is-grab { cursor: grab; }
.stage--optics.is-dragging canvas { cursor: grabbing; }
.lens-handle { position: absolute; left: 0; top: 0; width: 56px; height: 72px; margin: 0; padding: 0; border: 0; border-radius: 28px; background: transparent; cursor: grab;
  transform: translate(var(--lx, -100px), var(--ly, -100px)) translate(-50%, -50%); touch-action: none; -webkit-tap-highlight-color: transparent; }
.lens-handle:active { cursor: grabbing; }
.lens-handle__ring { position: absolute; inset: -4px; border-radius: inherit; border: 2px solid transparent; transition: border-color 200ms; }
.lens-handle:focus { outline: none; }
.lens-handle:focus-visible .lens-handle__ring { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(13, 11, 9, 0.8); }
.stage--optics .stage__hint { top: 12px; bottom: auto; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 24px); }
.stage--optics .hud { left: auto; right: 14px; top: auto; bottom: 12px; }
@media (max-width: 559.98px) { .stage--optics .hud { display: none; } }
.snell { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(242, 181, 76, 0.28); background: radial-gradient(120% 120% at 0% 0%, rgba(242, 181, 76, 0.08), transparent 60%), rgba(7, 6, 10, 0.55); }
.snell .eq { justify-content: flex-start; }
.snell__t { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.snell__t th, .snell__t td { padding: 6px 4px; border-bottom: 1px solid var(--lab-line); text-align: right; white-space: nowrap; }
.snell__t thead th { font-size: 0.8rem; font-weight: 600; color: var(--lab-muted); }
.snell__t th[scope="row"], .snell__t thead th:first-child { text-align: left; color: var(--lab-ink); font-weight: 600; }
.snell__t td { font-family: var(--mono); color: var(--lab-cyan-text); }
.snell__check { margin: 0; font-size: 0.78rem; color: var(--lab-muted); }
.snell__check b { font-family: var(--mono); color: var(--lab-gold); font-weight: 600; }
@media (max-width: 419.98px) { .snell__t { font-size: 0.78rem; } }

/* ---------- Reduced motion: still frames ---------- */
@media (prefers-reduced-motion: reduce) {
  .br-amy__halo, .br-sparks path, .mod--biogauge[data-state="calm"] .br-path, .mod--biogauge[data-state="calm"] .br-pin__halo { animation: none !important; }
  .br-sparks path { opacity: 0.85; }
  .mod--biogauge[data-state="calm"] .br-sparks path { opacity: 0; }
}

@media print {
  .lens-handle, .drone-btn, .quest__share { display: none !important; }
}
