/* WEB CHAMBER v0.7.1 — accepted Harmonic Labyrinth presentation delta.
   Native mathematics, controls, state exchange, audio logic, experiment semantics and station count are unchanged. */
:root{
  --hgl-ivory:#efe8d7;
  --hgl-ivory-dim:#b9b2a4;
  --hgl-gold:#b79863;
  --hgl-gold-soft:rgba(183,152,99,.24);
  --hgl-cyan:#93dfe9;
  --hgl-line:rgba(181,196,202,.20);
  --hgl-glass:rgba(9,14,17,.84);
}
body.hg-mode-system{background:
  radial-gradient(70rem 44rem at 50% -10%,rgba(116,154,163,.08),transparent 58%),
  radial-gradient(50rem 34rem at 10% 26%,rgba(183,152,99,.035),transparent 68%),
  #050708!important;
}
body.hg-mode-system .wrap{max-width:1420px;padding-top:34px}
body.hg-mode-system .hero{padding:28px 0 12px}
body.hg-mode-system .hero>.eyebrow{color:var(--hgl-gold);font-size:.67rem;letter-spacing:.17em}
body.hg-mode-system .hero>h1{
  max-width:780px;margin:.35rem 0 .6rem;
  color:var(--hgl-ivory);font-family:Georgia,"Times New Roman",serif;
  font-weight:400;font-size:clamp(3.4rem,6.4vw,6.4rem);line-height:.88;letter-spacing:-.045em
}
body.hg-mode-system .hero>p{max-width:930px;color:#b6bec3;font-size:1rem;line-height:1.65}
.hgl-threshold{
  position:relative;overflow:hidden;margin:30px 0 24px;padding:30px 30px 24px;
  min-height:250px;border:1px solid rgba(147,223,233,.15);
  background:
    linear-gradient(115deg,rgba(183,152,99,.035),transparent 26%,transparent 78%,rgba(147,223,233,.025)),
    radial-gradient(circle at 50% 42%,rgba(147,223,233,.055),transparent 21%),
    linear-gradient(180deg,#080c0e,#050708);
  box-shadow:inset 0 0 80px rgba(0,0,0,.58),0 30px 80px rgba(0,0,0,.22)
}
.hgl-threshold::before,
.hgl-threshold::after{content:"";position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none}
.hgl-threshold::before{width:410px;height:410px;border:42px solid rgba(165,178,181,.10);border-left-color:rgba(183,152,99,.20);border-right-color:rgba(183,152,99,.13);box-shadow:0 0 0 48px rgba(147,223,233,.012),inset 0 0 50px rgba(147,223,233,.018)}
.hgl-threshold::after{width:520px;height:120px;border-top:1px solid rgba(147,223,233,.14);transform:translate(-50%,-50%) rotate(-11deg);border-radius:0}
.hgl-threshold-copy{position:relative;z-index:2;max-width:320px}
.hgl-threshold-copy b{display:block;color:var(--hgl-gold);font:700 .66rem/1.3 ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase}
.hgl-threshold-copy p{margin:.55rem 0 0;color:#9da7ac;font:.68rem/1.6 ui-monospace,monospace;letter-spacing:.07em;text-transform:uppercase}
.hgl-core{position:absolute;z-index:3;left:50%;top:42%;transform:translate(-50%,-50%);width:112px;height:112px;border:1px solid rgba(147,223,233,.28);border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 45% 38%,#10181c,#06090b 70%);box-shadow:0 0 0 22px rgba(147,223,233,.015),0 0 45px rgba(147,223,233,.045),inset 0 0 26px rgba(147,223,233,.035)}
.hgl-core span{color:var(--hgl-ivory);font:400 2.15rem/1 Georgia,"Times New Roman",serif}
.hgl-core small{position:absolute;bottom:18px;color:#7f8a8f;font:700 .42rem ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase}
.hgl-stations{position:relative;z-index:4;margin-top:116px;display:grid;grid-template-columns:repeat(5,1fr);border:1px solid rgba(147,223,233,.16);background:rgba(4,7,8,.72)}
.hgl-stations div{min-width:0;padding:11px 13px;border-right:1px solid rgba(147,223,233,.11)}
.hgl-stations div:last-child{border-right:0}
.hgl-stations strong{display:block;color:var(--hgl-ivory);font:400 1.05rem/1 Georgia,"Times New Roman",serif}
.hgl-stations span{display:block;margin-top:4px;color:#89959a;font:700 .5rem/1.35 ui-monospace,monospace;letter-spacing:.09em;text-transform:uppercase}
body.hg-mode-system .rule{margin-top:20px;border-color:rgba(183,152,99,.36);border-left:3px solid var(--hgl-gold);background:linear-gradient(90deg,rgba(183,152,99,.045),#080b0d);font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:1.32rem;letter-spacing:.015em;color:var(--hgl-ivory)}
body.hg-mode-system .mw-threshold-note{border-left-color:rgba(147,223,233,.45);background:rgba(7,11,13,.75)}
body.hg-mode-system .seedbar{background:linear-gradient(180deg,rgba(11,16,19,.94),rgba(6,9,11,.95));border-color:rgba(147,223,233,.18)}
body.hg-mode-system .instrument-console{border-color:rgba(147,223,233,.19);clip-path:polygon(1% 0,99% 0,100% 8%,100% 92%,99% 100%,1% 100%,0 92%,0 8%);padding:16px;background:linear-gradient(180deg,rgba(10,15,18,.98),rgba(5,8,10,.98))}
body.hg-mode-system .station-tab{min-height:64px;border-color:rgba(147,223,233,.12)}
body.hg-mode-system .station-tab.selected{border-color:rgba(147,223,233,.58);box-shadow:inset 0 2px rgba(147,223,233,.50)}
body.hg-mode-system .station-masthead{grid-template-columns:auto minmax(0,1fr) minmax(245px,.52fr);border-bottom-color:rgba(147,223,233,.20)}
body.hg-mode-system .station-number{font-family:Georgia,"Times New Roman",serif;color:#4e5960;font-weight:400}
body.hg-mode-system .station-masthead h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--hgl-ivory)}
body.hg-mode-system .station-panel>h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--hgl-ivory)}
body.hg-mode-system .station-panel .card,
body.hg-mode-system .instrument-bay,
body.hg-mode-system .microscope,
body.hg-mode-system .operator-instrument{background:linear-gradient(145deg,rgba(10,14,17,.96),rgba(4,7,8,.98));border-color:rgba(147,223,233,.16)}
body.hg-mode-system canvas{background:radial-gradient(circle at 50% 10%,#0b1317,#040607 72%);border-color:rgba(147,223,233,.18)}
.station-panel[hidden]{display:none!important}
@media(max-width:800px){
  body.hg-mode-system .wrap{padding:18px 13px 44px}
  body.hg-mode-system .hero>h1{font-size:clamp(3.1rem,14vw,5.2rem)}
  .hgl-threshold{min-height:310px;padding:22px 18px 18px}
  .hgl-threshold-copy{max-width:230px}.hgl-threshold::before{width:300px;height:300px;border-width:30px}.hgl-core{width:94px;height:94px}.hgl-stations{grid-template-columns:1fr;margin-top:150px}.hgl-stations div{display:grid;grid-template-columns:34px 1fr;align-items:center;border-right:0;border-bottom:1px solid rgba(147,223,233,.11)}.hgl-stations div:last-child{border-bottom:0}.hgl-stations strong{font-size:.95rem}.hgl-stations span{margin-top:0}
}
@media(prefers-reduced-motion:reduce){.hgl-threshold::after{display:none}}
