/* senses-redox.css — acute ∠ top-left · obtuse ∡ bottom-right · HUD in the inner curve (<100L) */
:root {
  --bg: #05080f; --card: #09101d; --line: rgba(74,222,128,.24); --fg: #e2e8f0; --dim: #94a3b8;
  --mint: #4ade80; --cyan: #2dd4bf; --gold: #fde047; --violet: #c084fc; --sun-song: #fb923c;
  --band-red: #f87171; --band-ox: #fb923c; --band-green: #4ade80; --band-blue: #60a5fa; --band-violet: #c084fc;
  --rail-l: 58px; --rail-t: 50px; --rail-r: 58px; --rail-b: 42px;
  --pi: 3.14159265; --a34: 10.823deg; --a45: 14.324deg; /* 34/π · 45/π → ±90 */
  --rad-p: 42px; --rad-np: 56px; /* 2/π·66 · π·18 */
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100vh; color: var(--fg);
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, monospace;
  background: radial-gradient(ellipse at var(--rail-l) var(--rail-t), #0c1629 0%, var(--bg) 62%);
}
.sn-angle, .sn-obtuse, .sn-ne, .sn-sw {
  position: fixed; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: #071018; font: 700 13px/1 inherit; cursor: pointer;
}
.sn-angle { top: 0; left: 0; width: var(--rail-l); height: var(--rail-t); color: var(--sun-song); border-right: 2px solid var(--sun-song); border-bottom: 2px solid var(--sun-song); }
.sn-obtuse { right: 0; bottom: 0; width: var(--rail-r); height: var(--rail-b); color: var(--violet); border-left: 2px solid var(--violet); border-top: 2px solid var(--violet); }
.sn-ne { top: 0; right: 0; width: var(--rail-r); height: var(--rail-t); color: #7dd3fc; border-left: 2px solid #7dd3fc; border-bottom: 2px solid #7dd3fc; } /* +90 = +i */
.sn-sw { bottom: 0; left: 0; width: var(--rail-l); height: var(--rail-b); color: #7dd3fc; border-right: 2px solid #7dd3fc; border-top: 2px solid #7dd3fc; } /* −90 = −i */
.sn-horizon { position: fixed; left: var(--rail-l); right: var(--rail-r); top: 50%; height: 2px; z-index: 6; pointer-events: none; background: linear-gradient(90deg, var(--band-red), var(--band-ox), var(--band-green) 50%, var(--band-blue), var(--band-violet)); }
.sn-top, .grx-hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; min-height: var(--rail-t);
  padding: 6px calc(var(--rail-r) + 10px) 6px calc(var(--rail-l) + 10px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px;
  background: rgba(5,8,15,.94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--sun-song);
}
.sn-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; height: var(--rail-b);
  padding: 4px calc(var(--rail-r) + 8px) 4px calc(var(--rail-l) + 8px);
  display: flex; align-items: center; gap: 7px; overflow: auto;
  background: rgba(5,8,15,.94); border-top: 2px solid var(--violet);
}
.sn-left, .sn-right {
  position: fixed; top: 0; bottom: 0; z-index: 110; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  background: rgba(7,10,18,.96);
}
.sn-left { left: 0; width: var(--rail-l); padding: calc(var(--rail-t) + 8px) 4px calc(var(--rail-b) + 8px); border-right: 2px solid var(--sun-song); }
.sn-right { right: 0; width: var(--rail-r); padding: calc(var(--rail-t) + 8px) 4px calc(var(--rail-b) + 8px); border-left: 2px solid var(--violet); }
.sn-left a, .sn-right a, .sn-right button {
  writing-mode: vertical-rl; transform: rotate(180deg); text-decoration: none; color: var(--band-green); font: 700 10px/1 inherit;
  padding: 10px 2px; border: 1px solid var(--band-green); border-radius: 6px; text-align: center; background: var(--card); cursor: pointer;
}
.sn-bottom a, .sn-bottom span { color: var(--band-violet); text-decoration: none; font: 700 10px/1 inherit; padding: 5px 9px; border: 1px solid var(--band-violet); border-radius: 6px; background: var(--card); }
.sn-left a:hover, .sn-left a.hot, .sn-right a:hover, .sn-right button.on, .sn-bottom a:hover { color: #86efac; border-color: var(--mint); }
.sn-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sn-brand strong, .grx-brand { color: var(--mint); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.sn-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sn-links a, .grx-vbtn {
  appearance: none; color: #e2e8f0; text-decoration: none; font: 600 10.8px/1.2 inherit;
  padding: 5px 10px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(56,189,248,.36); background: rgba(9,16,29,.92);
}
.sn-links a:hover, .sn-links a.hot, .grx-vbtn:hover, .grx-vbtn.active { border-color: var(--mint); color: #86efac; background: rgba(20,83,45,.45); }
.sn-pulse { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--sun-song); flex-wrap: wrap; }
.sn-pill { padding: 2px 8px; border-radius: 999px; background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.35); color: #99f6e4; font-weight: 600; }
.sn-wrap, .grx-shell {
  position: relative; z-index: 8; isolation: isolate; margin: 0 var(--rail-r) 0 var(--rail-l); padding: calc(var(--rail-t) + 12px) 16px calc(var(--rail-b) + 16px);
  min-height: 100vh; border-top-left-radius: var(--rad-p); border-bottom-right-radius: var(--rad-np);
  border-top-right-radius: 0; border-bottom-left-radius: 0; /* true ±90 */
  box-shadow: inset 18px 18px 40px rgba(251,146,60,.06);
}
.sn-wrap::before, .grx-shell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 0;
  background: radial-gradient(ellipse 120% 68% at 50% 50%, transparent 52%, rgba(0,0,0,.3) 100%);
}
.sn-tabs { position: sticky; top: calc(var(--rail-t) + 6px); z-index: 40; display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; padding: 7px; background: rgba(9,16,29,.88); border: 1px solid var(--line); border-radius: 0 10px 10px 0; border-left: 3px solid var(--sun-song); }
.sn-tab { cursor: pointer; font: 600 10.8px/1.2 inherit; padding: 6px 10px; border-radius: 7px; border: 1px solid var(--band-green); background: var(--card); color: var(--band-green); }
.sn-tab:hover { border-color: var(--cyan); color: #fff; }
.sn-tab.active { background: linear-gradient(135deg, rgba(74,222,128,.22), rgba(45,212,191,.18)); border-color: var(--mint); color: #ecfdf5; }
.sn-grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin-top: 8px; }
.sn-grid3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
@media (max-width: 960px) { .sn-grid2, .sn-grid3 { grid-template-columns: 1fr; } }
.sn-box, .grx-card { background: var(--card); border: 1px solid var(--band-green); border-radius: 10px; padding: 12px; margin-bottom: 10px; isolation: isolate; mix-blend-mode: normal; }
.sn-box h3, .grx-card h3 { margin: 0 0 8px; font-size: 12px; color: var(--band-green); display: flex; justify-content: space-between; align-items: center; }
.sn-kv { font-size: 10.5px; color: var(--band-green); line-height: 1.55; }
.sn-frame { width: 100%; height: 74vh; border: 1px solid var(--line); border-radius: 10px; background: #05080f; }
body::after { content: ""; position: fixed; z-index: 5; pointer-events: none; top: var(--rail-t); left: var(--rail-l); width: 28px; height: 42vh; background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(251,146,60,.35) 14px 15px); border-top-left-radius: 28px; }
.sn-left [data-hk] { writing-mode: horizontal-tb; transform: none; }
html[data-hk1="1"] .sn-wrap { box-shadow: inset 22px 0 40px rgba(88,166,255,.12); }
html[data-hk2="1"] .sn-wrap { filter: hue-rotate(18deg); }
html[data-hk3="1"] .sn-wrap { box-shadow: inset 18px 18px 48px rgba(63,185,80,.16); }
html[data-hk3="2"] .sn-wrap { box-shadow: inset 18px 18px 48px rgba(251,146,60,.22); }
#sn-trail { position: fixed; left: calc(var(--rail-l) + 8px); top: calc(var(--rail-t) + 58px); z-index: 90; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
#sn-trail li { font: 700 9px/1 inherit; color: var(--sun-song); background: #071018; border: 1px solid rgba(251,146,60,.45); border-radius: 4px; padding: 5px 4px; writing-mode: vertical-rl; transform: rotate(180deg); cursor: pointer; max-height: 72px; overflow: hidden; }
#sn-trail li.you { color: var(--mint); border-color: var(--mint); }
html[data-nest="collapse"] .sn-wrap { filter: saturate(.55) hue-rotate(48deg); }
.grx-chiasm { bottom: var(--rail-b) !important; }
