@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../assets/fonts/AtkinsonHyperlegibleNext.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Nuclear_Archive — Mini-Me Reactor interactive 3D page (minime.html). */

/* ——— Page ——— */
.fc-page {
  font-family: "Atkinson Hyperlegible Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 56px) 24px 80px;
  background: radial-gradient(ellipse at 50% 30%, #12141a 0%, #000 70%);
  color: #e8e8e8;
}
.fc-inner { max-width: 880px; margin: 0 auto; }
.fc-kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 14px;
}
.fc-title {
  font-weight: 300; font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.fc-lead { font-weight: 300; color: rgba(255,255,255,0.7); max-width: 620px; line-height: 1.6; margin-bottom: 36px; }
.fc-thumb {
  display: block; position: relative; width: 360px; max-width: 100%;
  padding: 0; border: 1px solid rgba(255,255,255,0.14); background: #050608;
  cursor: pointer; overflow: hidden; color: inherit; font: inherit; text-align: left;
}
.fc-thumb img { display: block; width: 100%; height: auto; transition: transform .5s ease, opacity .3s; opacity: .92; }
.fc-thumb:hover img, .fc-thumb:focus-visible img { transform: scale(1.03); opacity: 1; }
.fc-thumb:hover, .fc-thumb:focus-visible { border-color: var(--accent); outline: none; }
.fc-thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: rgba(255,255,255,.85);
}
.fc-thumb-cap b { font-weight: 500; color: #fff; }
.fc-note { margin-top: 22px; font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: .04em; }

/* ——— Full-screen viewer (HUD) ——— */
.nav-viewer[hidden] { display: none !important; }
.nav-viewer {
  position: fixed; inset: 0; z-index: 1000; background: #000; color: #e9ecef;
  font-family: "Atkinson Hyperlegible Next", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.nav-viewer canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.hud-txt { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.hud-top {
  position: absolute; top: 0; left: 0; right: 0; height: 56px; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.75), transparent);
}
.hud-top > * { pointer-events: auto; }
.hud-brand { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #fff; font-weight: 400; white-space: nowrap; }
.hud-brand small { color: rgba(255,255,255,.45); margin-left: 12px; letter-spacing: .22em; font-size: 10px; }
.hud-spacer { flex: 1; }
.hud-btn {
  background: rgba(10,12,16,.55); color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.16); padding: 7px 12px; cursor: pointer;
  font: inherit; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hud-btn:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.hud-btn[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: rgba(123,77,255,.18); }
.hud-seg { display: inline-flex; }
.hud-seg .hud-btn + .hud-btn { border-left: 0; }
.hud-close { width: 34px; height: 34px; padding: 0; font-size: 16px; letter-spacing: 0; }
.hud-left {
  position: absolute; left: 20px; top: 72px; display: flex; flex-direction: column; gap: 8px; width: 200px;
}
.hud-group-label { color: rgba(255,255,255,.4); margin: 10px 0 2px; }
.hud-bottom {
  position: absolute; left: 20px; bottom: 16px; right: 400px; pointer-events: none;
  display: flex; gap: 22px; align-items: flex-end; color: rgba(255,255,255,.5);
}
.hud-scale { display: flex; flex-direction: column; gap: 4px; }
.hud-scale i { display: block; height: 1px; background: rgba(255,255,255,.7); position: relative; }
.hud-scale i::before, .hud-scale i::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: rgba(255,255,255,.7); }
.hud-scale i::before { left: 0; } .hud-scale i::after { right: 0; }
.hud-corner { position: absolute; width: 18px; height: 18px; border-color: rgba(255,255,255,.25); border-style: solid; pointer-events: none; }
.hud-corner.tl { top: 64px; left: 10px; border-width: 1px 0 0 1px; }
.hud-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.hud-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #000; color: rgba(255,255,255,.7);
}
.hud-loading .bar { width: 220px; height: 1px; background: rgba(255,255,255,.15); }
.hud-loading .bar i { display: block; height: 1px; width: 0; background: #fff; transition: width .2s; }
.hud-loading[hidden] { display: none; }

/* sidebar */
.hud-side {
  position: absolute; top: 56px; right: 0; bottom: 0; width: 380px; overflow: auto;
  padding: 18px 22px 28px; background: rgba(4,5,8,.72); border-left: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
  user-select: text; -webkit-user-select: text;
}
.nav-viewer.side-closed .hud-side { display: none; }
.nav-viewer.side-closed .hud-bottom { right: 20px; }
.hud-side h3 { font-weight: 400; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 22px 0 10px; }
.hud-side h3:first-child { margin-top: 0; }
.hud-side dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 12.5px; line-height: 1.45; }
.hud-side dt { color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.hud-side dd { color: #e9ecef; }
.hud-sel-name { font-size: 18px; font-weight: 300; letter-spacing: .04em; color: #fff; margin-bottom: 6px; }
.hud-tag { display: inline-block; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; padding: 2px 6px; border: 1px solid rgba(255,255,255,.3); margin-right: 6px; vertical-align: middle; }
.hud-tag.official { border-color: rgba(120,220,170,.6); color: #8fe3bb; }
.hud-tag.derived { border-color: rgba(255,190,90,.6); color: #ffc46b; }
.hud-tag.assumed { border-color: rgba(255,190,90,.6); color: #ffc46b; }
.hud-quote { font-size: 12px; color: rgba(255,255,255,.62); border-left: 1px solid rgba(255,255,255,.2); padding-left: 10px; margin-top: 10px; line-height: 1.5; }
.hud-empty { font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.5; }
.hud-parts { width: 100%; border-collapse: collapse; font-size: 12px; }
.hud-parts td { padding: 7px 4px; border-top: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.hud-parts tr { cursor: pointer; }
.hud-parts tr:hover td { background: rgba(255,255,255,.04); }
.hud-parts tr.sel td { background: rgba(123,77,255,.16); }
.hud-parts tr.off td { opacity: .4; }
.hud-parts .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-parts .eye { width: 26px; text-align: center; color: rgba(255,255,255,.6); }
.hud-parts .eye button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 13px; }
.hud-parts tfoot td { color: rgba(255,255,255,.6); }
.hud-sw { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: middle; }
.hud-fine { font-size: 11px; color: rgba(255,255,255,.45); line-height: 1.5; margin-top: 8px; }
.hud-views { display: flex; flex-direction: column; gap: 6px; }
.hud-view { display: flex; gap: 6px; }
.hud-view .hud-btn:first-child { flex: 1; text-align: left; }
.hud-side .hud-btn { font-size: 9.5px; }

/* click label */
.hud-label {
  position: absolute; pointer-events: none; transform: translate(14px, -50%);
  padding: 6px 10px; background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.35);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap;
}
.hud-label::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; height: 1px; background: rgba(255,255,255,.6); }
.hud-label::after { content: ""; position: absolute; left: -18px; top: calc(50% - 3px); width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; }
.hud-label small { display: block; font-size: 9px; letter-spacing: .2em; color: rgba(255,255,255,.55); margin-top: 3px; }
.hud-label[hidden] { display: none; }

/* figure lightbox */
.hud-fig[hidden] { display: none; }
.hud-fig { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; padding: 64px 24px 20px; }
.hud-fig-bar { position: absolute; top: 14px; left: 20px; right: 20px; display: flex; align-items: center; gap: 14px; }
.hud-fig-bar .hud-spacer { flex: 1; }
.hud-fig-wrap { flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; }
.hud-fig-wrap img { max-height: 100%; max-width: 100%; background: #fff; pointer-events: none; }
.hud-fig-status { color: #ffc46b; }

@media (max-width: 860px) {
  .hud-side { top: auto; height: 44vh; width: 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .hud-bottom { display: none; }
  .hud-left { width: 150px; }
  .hud-brand small { display: none; }
  .hud-top { padding: 0 10px; gap: 8px; }
  .hud-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: .18em; }
  .hud-left { left: 10px; width: 132px; gap: 6px; max-height: calc(56vh - 80px); overflow-y: auto; scrollbar-width: none; }
  .nav-viewer.side-closed .hud-left { max-height: calc(100% - 90px); }
  .hud-left .hud-btn { padding: 6px 8px; }
}

/* units must keep their case (mm, kg, g/cm³) */
.hud-label small, .hud-scale .hud-txt, .hud-side dt.unit, .hud-fig-status { text-transform: none; }
.hud-side dt.unit { letter-spacing: .04em; font-size: 11px; }
.hud-fig-status { letter-spacing: .06em; font-size: 11px; max-width: 420px; }

/* ——— round 2: fly mode, SpaceMouse panel, figure tabs ——— */
.hud-fly[hidden], .hud-mouse[hidden] { display: none; }
.hud-fly { position: absolute; inset: 0; pointer-events: none; }
.hud-cross { position: absolute; left: var(--cx, 50%); top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.hud-cross::before { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: #fff; border-radius: 50%; }
.hud-cross::after { content: ""; position: absolute; left: -16px; right: -16px; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.5) 0 12px, transparent 12px calc(100% - 12px), rgba(255,255,255,.5) calc(100% - 12px)); }
.hud-fly-card { position: absolute; left: 20px; bottom: 56px; width: 200px; padding: 10px 12px; background: rgba(4,5,8,.62); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud-fly-card table { width: 100%; font-size: 11px; border-collapse: collapse; color: rgba(255,255,255,.75); }
.hud-fly-card td { padding: 2px 0; }
.hud-fly-card td:first-child { width: 52px; color: #fff; letter-spacing: .12em; font-size: 10px; }
.hud-fly-read { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #8fe3bb; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.nav-viewer.flying .hud-left { visibility: visible; }
.nav-viewer.flying canvas { cursor: crosshair; }
.hud-mouse { position: absolute; top: 64px; right: 396px; width: 300px; padding: 14px 16px; z-index: 4; background: rgba(4,5,8,.9); border: 1px solid rgba(255,255,255,.16); font-size: 12px; line-height: 1.5; }
.nav-viewer.side-closed .hud-mouse { right: 20px; }
.hud-mouse p { margin: 6px 0 0; } .hud-mouse b { font-weight: 400; color: #fff; }
.hud-btn.live { border-color: rgba(120,220,170,.7); color: #8fe3bb; }
.hud-side a { color: #b9a4ff; text-decoration: none; border-bottom: 1px solid rgba(185,164,255,.35); }
.hud-side a:hover { color: #fff; }
.hud-fig-bar .hud-seg .hud-btn { font-size: 9.5px; }
.hud-fig { padding-top: 84px; }
.hud-fig-bar { flex-wrap: nowrap; }
.hud-fig-bar .hud-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hud-fig-bar .hud-brand small { display: block; margin: 4px 0 0; }
.hud-fig { padding-top: 96px; }
.hud-fig-bar { z-index: 2; }
.hud-fig-bar .hud-btn { white-space: nowrap; }
.hud-fig-bar .hud-fig-status { flex: 0 1 360px; }

/* ——— round 3 ——— */
/* clean-mode colour legend */
.hud-legend { position: absolute; right: 400px; bottom: 44px; display: none; flex-direction: column; gap: 3px; padding: 10px 12px; background: rgba(4,5,8,.66); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nav-viewer.mode-clean .hud-legend { display: flex; }
.nav-viewer.side-closed .hud-legend { right: 20px; }
.hud-legend .hud-group-label { margin: 0 0 4px; }
.hud-legend button { background: none; border: 0; color: rgba(255,255,255,.82); font: inherit; font-size: 11.5px; text-align: left; padding: 2px 0; cursor: pointer; letter-spacing: .02em; }
.hud-legend button:hover { color: #fff; }
.hud-legend .hud-sw { width: 11px; height: 11px; border-radius: 2px; }
/* in-page reference pop-out */
.hud-ref { background: none; border: 0; padding: 0; font: inherit; color: #b9a4ff; cursor: pointer; text-align: left; border-bottom: 1px dotted rgba(185,164,255,.55); line-height: 1.45; }
.hud-ref:hover { color: #fff; border-bottom-color: #fff; }
.hud-ref-pop[hidden] { display: none; }
.hud-ref-pop { position: absolute; inset: 56px 380px 0 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.nav-viewer.side-closed .hud-ref-pop { right: 0; }
.hud-ref-card { position: relative; width: min(640px, 92%); max-height: 82%; overflow: auto; padding: 22px 26px 20px; background: rgba(8,9,13,.97); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 20px 60px rgba(0,0,0,.6); user-select: text; -webkit-user-select: text; }
.hud-ref-card .hud-close { position: absolute; top: 10px; right: 10px; }
.hud-ref-cv { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff; padding-right: 40px; }
.hud-ref-kind { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 6px 0 14px; }
.hud-ref-text { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.72); }
.hud-ref-text b { font-weight: 500; color: rgba(255,255,255,.45); font-size: 11px; margin-right: 2px; }
.hud-ref-text .hl { color: #fff; background: rgba(123,77,255,.22); box-shadow: 0 0 0 2px rgba(123,77,255,.22); }
.hud-ref-text .hl b { color: #b9a4ff; }
.hud-ref-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hud-ref-table th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.5); padding: 6px; border-bottom: 1px solid rgba(255,255,255,.2); }
.hud-ref-table td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.hud-ref-table tr.hl td { background: rgba(123,77,255,.2); color: #fff; }
/* figure zoom / pan */
.hud-fig-wrap { position: relative; width: 100%; overflow: hidden; cursor: grab; touch-action: none; display: block; }
.hud-fig-wrap.drag { cursor: grabbing; }
.hud-fig-wrap img { position: absolute; left: 0; top: 0; max-width: none; max-height: none; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.hud-fig-tools { display: flex; gap: 0; align-items: center; margin-top: 10px; width: 100%; }
.hud-fig-tools .hud-btn + .hud-btn { border-left: 0; }
.hud-fig-tools .hud-txt { margin-left: 14px; color: rgba(255,255,255,.55); text-transform: none; letter-spacing: .08em; }
.hud-fig-hint { margin-left: auto !important; }
.hud-checks { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: rgba(255,255,255,.75); }
.hud-checks input[type=range] { vertical-align: middle; width: 140px; }
.hud-mouse { max-height: calc(100% - 90px); overflow: auto; }

/* ——— round 4: draggable reference pop-out (backdrop no longer blocks the model) ——— */
.hud-ref-pop { inset: 0; display: block; background: none; pointer-events: none; }
.nav-viewer.side-closed .hud-ref-pop { right: 0; }
.hud-ref-card { position: absolute; left: 0; top: 0; pointer-events: auto; padding: 0; max-height: calc(100% - 20px); width: min(640px, 92vw); display: flex; flex-direction: column; overflow: hidden; }
.hud-ref-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.12); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.hud-ref-head.drag { cursor: grabbing; }
.hud-ref-head .hud-txt { color: rgba(255,255,255,.55); }
.hud-ref-grip { margin-left: auto; color: rgba(255,255,255,.35); font-size: 14px; letter-spacing: 0; }
.hud-ref-card .hud-ref-head .hud-close { position: static; width: 30px; height: 30px; }
.hud-ref-body { padding: 18px 26px 20px; overflow: auto; }
.hud-ref-cv { padding-right: 0; }

/* ——— round 6: Vertical cut + Horizontal cut share one row; preset picker under it ——— */
.hud-cutrow { display: flex; gap: 6px; }
.hud-cutrow .hud-btn { flex: 1 1 0; min-width: 0; padding: 7px 2px; font-size: 9px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-hcutsel { width: 100%; font: inherit; font-size: 11px; color: #fff; background: rgba(8,9,13,.9); border: 1px solid var(--accent); padding: 5px 6px; cursor: pointer; }
.hud-hcutsel option { background: #0b0c11; color: #fff; }
.hud-hcutsel[hidden], .hud-hcutinfo[hidden] { display: none; }
.hud-hcutinfo { color: rgba(255,255,255,.55); text-transform: none; letter-spacing: .04em; font-size: 11px; margin-top: -4px; }

/* ——— Mini-Me quarter-slice viewer ——— */
.fc-page, .fc-page * { font-family: "Atkinson Hyperlegible Next", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.nav-viewer button, .nav-viewer input { font-family: inherit; }
.hud-hcutrow { display: flex; gap: 6px; align-items: stretch; }
.hud-hcutrow[hidden] { display: none; }
.hud-hcutrow .hud-step { flex: 0 0 34px; padding: 6px 0; font-size: 11px; letter-spacing: 0; }
.hud-hcutnum { flex: 1 1 auto; display: flex; align-items: center; gap: 4px; border: 1px solid var(--accent, rgba(255,255,255,.3)); background: rgba(8,9,13,.9); padding: 0 6px; min-width: 0; }
.hud-hcutnum input { width: 100%; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; outline: none; padding: 5px 0; -moz-appearance: textfield; }
.hud-hcutnum input::-webkit-outer-spin-button, .hud-hcutnum input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hud-hcutnum span { font-size: 11px; color: rgba(255,255,255,.55); }
.hud-count { color: rgba(255,255,255,.45); font-size: 11px; margin-left: 4px; }
.hud-sel-name + p .hud-sw { margin-right: 4px; }
.hud-intro { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(3,4,7,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hud-intro[hidden] { display: none; }
.hud-intro-card { max-width: 560px; margin: 20px; padding: 28px 30px 24px; background: rgba(8,9,13,.94); border: 1px solid rgba(255,255,255,.16); line-height: 1.6; }
.hud-intro-card h2 { font-weight: 400; font-size: 22px; letter-spacing: .03em; color: #fff; margin: 8px 0 12px; }
.hud-intro-card p { font-size: 15px; color: rgba(255,255,255,.82); margin: 0 0 10px; user-select: text; -webkit-user-select: text; }
.hud-intro-card .hud-fine { font-size: 12px; }
.hud-go { padding: 10px 18px; }
.hud-legend { display: none !important; }
