:root {
  color-scheme: dark;
  --bg: #080d14;
  --panel: #101823;
  --panel-2: #121d29;
  --line: #233141;
  --line-soft: rgba(115, 143, 172, .17);
  --text: #e9eff6;
  --muted: #8292a4;
  --dim: #5e6d7d;
  --amber: #e7a45c;
  --red: #f06a42;
  --green: #8fc6a9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { background: radial-gradient(ellipse at 38% 5%, rgba(37, 59, 79, .24), transparent 42%), var(--bg); }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1600px, 100%); margin: 0 auto; padding: 0 30px 18px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 27px; height: 27px; position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid rgba(224, 163, 94, .42); border-radius: 8px; transform: rotate(-7deg); }
.brand-mark span { display: block; width: 3px; border-radius: 3px; background: var(--amber); transform: skewY(-22deg); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .5; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 10px; opacity: .7; }
.eyebrow, .section-kicker, .control-section-head, .readout-label, .validation-head, .panel-footnote, .footer, .live-indicator, .version-tag, .view-hint, .scene-coordinates, .timeline-title, .timeline-labels, .small-muted { font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.eyebrow { color: var(--amber); margin-bottom: 3px; font-size: 8px; }
.brand-title { color: #d8e0e8; font-size: 11px; letter-spacing: .12em; font-weight: 750; }
.brand-title span { color: var(--amber); padding: 0 3px; }
.topbar-right { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.live-indicator { display: flex; align-items: center; gap: 7px; font-size: 8px; }
.live-indicator i, .pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8ec6a7; box-shadow: 0 0 9px rgba(142, 198, 167, .55); }
.version-tag { border: 1px solid #2c3a49; border-radius: 4px; padding: 5px 7px; font-size: 8px; color: #9caaba; }
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 354px; gap: 22px; padding-top: 22px; align-items: start; }
.stage-column { min-width: 0; }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0 0 16px; }
.section-kicker { color: #8294a7; font-size: 8px; margin-bottom: 8px; }
h1 { margin: 0; font-size: clamp(25px, 2.45vw, 37px); line-height: 1.08; letter-spacing: -.045em; font-weight: 720; }
h1 em { font-style: normal; color: #a6b3c1; font-weight: 450; }
.title-dash { color: var(--amber); font-weight: 400; }
.subtitle { margin: 9px 0 0; font-size: 12px; color: #91a0af; line-height: 1.5; }
.stage-index { display: flex; flex-direction: column; align-items: flex-end; padding: 4px 0 0; min-width: 62px; }
.stage-index span, .stage-index small { color: #647487; font-size: 8px; letter-spacing: .15em; font-weight: 700; }
.stage-index strong { font-size: 29px; line-height: 1.1; font-weight: 300; color: #d9a36a; }
.viewport-wrap { position: relative; background: #0a111a; border: 1px solid #263545; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.viewport { position: relative; height: clamp(380px, 43vw, 550px); min-height: 360px; overflow: hidden; background: radial-gradient(ellipse at 48% 48%, #192431, #0b1119 66%); }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.viewport-grid { position: absolute; inset: 0; z-index: 0; opacity: .13; background-image: linear-gradient(rgba(126,153,180,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(126,153,180,.15) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, black, transparent 78%); }
.scene-label { position: absolute; z-index: 2; font-size: 8px; letter-spacing: .13em; font-weight: 750; color: rgba(214,225,236,.76); padding: 6px 8px; border: 1px solid rgba(138,157,178,.22); background: rgba(8,14,21,.68); backdrop-filter: blur(8px); border-radius: 4px; pointer-events: none; }
.label-fault { left: 4.5%; top: 16%; }.label-heat { right: 5%; top: 23%; }.label-vein { right: 4.5%; bottom: 17%; }
.label-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; }.label-dot.amber { background: #e7a45c; }.label-dot.red { background: #f26c42; box-shadow: 0 0 8px #f26c42; }.label-dot.glass { background: #a8b4c2; }
.loading-overlay { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #0a111a; color: #8c9eaf; font-size: 9px; letter-spacing: .17em; font-weight: 700; }
.loading-overlay[hidden], .webgl-error[hidden] { display: none; }
.loader-ring { width: 28px; height: 28px; border: 2px solid #29394a; border-top-color: var(--amber); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.webgl-error { position: absolute; z-index: 6; inset: 20% 15%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 22px; border: 1px solid #5d3b32; border-radius: 8px; background: rgba(25,16,17,.92); color: #e4b7a6; font-size: 12px; }
.webgl-error span { max-width: 390px; color: #a98e88; line-height: 1.5; font-size: 11px; }
.viewport-footer { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-top: 1px solid rgba(111,137,162,.14); background: linear-gradient(transparent, rgba(7,12,18,.65)); pointer-events: none; }
.view-hint, .scene-coordinates { font-size: 8px; color: #738498; letter-spacing: .1em; }.mouse-icon { color: var(--amber); font-size: 14px; vertical-align: -1px; margin-right: 5px; }.hint-sep { color: #445467; padding: 0 7px; }.scene-coordinates b { color: #b4c0cc; font-weight: 600; margin-left: 5px; }
.view-actions { position: absolute; z-index: 4; right: 12px; top: 12px; display: flex; gap: 6px; }
.icon-button { width: 31px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(129,151,173,.27); border-radius: 6px; background: rgba(8,14,21,.74); color: #bdc8d3; font-size: 14px; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s; }
.icon-button:hover { border-color: rgba(231,164,92,.6); background: #182331; transform: translateY(-1px); }.icon-button:nth-child(2) { font-size: 9px; font-weight: 800; letter-spacing: .05em; }.icon-button.quality-low { color: #d6a15f; }
.timeline-card { margin-top: 12px; padding: 14px 16px 13px; background: linear-gradient(145deg, rgba(18,28,40,.96), rgba(13,21,31,.96)); border: 1px solid var(--line); border-radius: 9px; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; }.timeline-title { display: flex; align-items: center; gap: 8px; color: #9cabb9; font-size: 8px; }.pulse-dot { width: 5px; height: 5px; background: var(--amber); box-shadow: 0 0 8px rgba(231,164,92,.65); }.time-readout { font-size: 14px; color: #e7edf4; font-variant-numeric: tabular-nums; font-weight: 650; }.time-readout small { color: #69798b; font-size: 9px; font-weight: 450; }
.timeline-track { height: 4px; background: #263545; border-radius: 8px; margin: 13px 0 7px; position: relative; }.timeline-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #d18d4c, #f05c35); box-shadow: 0 0 10px rgba(238,101,54,.32); }.timeline-marker { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border: 2px solid #f4c38d; border-radius: 50%; background: #a84e2e; transform: translate(-50%,-50%); box-shadow: 0 0 8px rgba(240,103,57,.7); }
.timeline-labels { display: flex; justify-content: space-between; color: #5e7083; font-size: 7px; letter-spacing: .1em; }.timeline-labels span:nth-child(2) { color: #bd9163; }
.transport-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }.transport-buttons { display: flex; gap: 7px; }.primary-button, .secondary-button { height: 34px; border-radius: 5px; padding: 0 12px; font-size: 9px; letter-spacing: .09em; font-weight: 800; cursor: pointer; transition: all .2s; }.primary-button { background: linear-gradient(135deg, #d89550, #b96d38); border: 1px solid #e2a66a; color: #17130f; min-width: 145px; box-shadow: 0 4px 16px rgba(190,110,55,.15); }.primary-button:hover { filter: brightness(1.12); transform: translateY(-1px); }.primary-button.is-playing { background: linear-gradient(135deg, #c67b48, #975136); }.play-glyph { margin-right: 7px; }.secondary-button { border: 1px solid #344558; background: #172331; color: #aab8c6; }.secondary-button:hover { border-color: #75889b; color: #edf3f8; }.speed-control { display: grid; grid-template-columns: auto auto; gap: 4px 9px; align-items: center; min-width: 110px; }.speed-control span { color: #708195; font-size: 8px; letter-spacing: .12em; font-weight: 750; }.speed-control strong { justify-self: end; font-size: 10px; color: #d4a16b; font-weight: 700; }.speed-control input { grid-column: 1 / -1; width: 100%; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 3px; border-radius: 8px; background: linear-gradient(90deg, #c8864c, #3a4a5b); outline: none; cursor: pointer; accent-color: var(--amber); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border: 2px solid #f2c18b; border-radius: 50%; background: #9a5935; box-shadow: 0 0 0 3px rgba(221,150,83,.13); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #f2c18b; border-radius: 50%; background: #9a5935; }
input:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #e5a25e; outline-offset: 3px; }
.readouts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }.readout-card { min-width: 0; padding: 12px 13px 11px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(145deg, #111b27, #0d151e); }.readout-label { color: #78899b; font-size: 7px; letter-spacing: .11em; display: flex; align-items: center; justify-content: space-between; gap: 6px; }.readout-dot { width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto; }.readout-dot.hot { background: #ee7549; box-shadow: 0 0 8px #b94c2e; }.readout-dot.melt { background: #efb75c; }.readout-dot.glass-dot { background: #a9bacb; }.readout-dot.energy { background: #83a9ce; }.readout-value { margin-top: 8px; font-size: clamp(18px, 2vw, 25px); font-weight: 550; letter-spacing: -.045em; color: #edf2f7; font-variant-numeric: tabular-nums; white-space: nowrap; }.readout-value small { font-size: 10px; color: #8292a4; margin-left: 4px; font-weight: 500; letter-spacing: 0; }.readout-note { margin-top: 5px; color: #637486; font-size: 7px; letter-spacing: .07em; white-space: nowrap; }.data-tag { margin-left: 3px; color: #9a8064; font-size: 6px; letter-spacing: .06em; }
.control-column { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(165deg, rgba(17,26,38,.98), rgba(11,18,27,.98)); box-shadow: 0 15px 40px rgba(0,0,0,.17); }.panel-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }.panel-heading .section-kicker { margin-bottom: 4px; }.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }.settings-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; border: 1px solid #35465a; color: #b1bfce; font-size: 15px; }
.preset-section, .control-section { padding: 13px 0 14px; border-bottom: 1px solid var(--line-soft); }.control-section-head { display: flex; justify-content: space-between; align-items: center; color: #a0afbe; font-size: 8px; }.small-muted { color: #5e6e7e; font-size: 7px; font-weight: 600; }.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }.preset-button { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 9px 8px 8px; border: 1px solid #2a3949; border-radius: 6px; background: #121d29; cursor: pointer; transition: .2s; }.preset-button:hover { border-color: #687b8e; background: #182635; }.preset-button.active { border-color: rgba(221,155,90,.78); background: linear-gradient(145deg, rgba(72,49,35,.45), rgba(27,31,37,.7)); box-shadow: inset 0 0 0 1px rgba(221,155,90,.12); }.preset-symbol { font-size: 14px; line-height: 1; color: #9caaba; }.reference-symbol { color: #e1a15e; }.extreme-symbol { color: #ed7450; }.preset-button strong { font-size: 8px; color: #d3dce5; font-weight: 700; white-space: nowrap; }.preset-button small { font-size: 7px; color: #748496; white-space: nowrap; }
.control-row { margin-top: 13px; }.control-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }.control-label label { color: #c6d0da; font-size: 10px; font-weight: 550; }.control-label output { color: #e1a86e; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }.range-ends { display: flex; justify-content: space-between; margin-top: 6px; color: #596b7e; font-size: 7px; font-variant-numeric: tabular-nums; }.environment-section { border-bottom: 0; padding-bottom: 10px; }
.validation-card { margin-top: 1px; padding: 11px 12px 10px; border: 1px solid rgba(126,154,180,.23); border-radius: 7px; background: linear-gradient(145deg, rgba(23,36,49,.9), rgba(13,23,34,.9)); }.validation-head { display: flex; align-items: center; gap: 7px; color: #9fb2c4; font-size: 7px; letter-spacing: .12em; }.validation-check { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: rgba(119,183,150,.17); color: #8cc7a8; font-size: 10px; }.textbook-tag { margin-left: auto; color: #8fc6a9; font-size: 6px; border: 1px solid rgba(143,198,169,.3); padding: 3px 4px; border-radius: 3px; }.validation-equation { margin: 9px 0 10px; font-family: Georgia, serif; font-size: 15px; color: #d8e2eb; letter-spacing: .01em; }.validation-equation sub { font-size: 9px; }.validation-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }.validation-values div { display: flex; flex-direction: column; gap: 4px; padding-right: 4px; border-right: 1px solid rgba(112,137,161,.17); }.validation-values div:last-child { border: 0; }.validation-values small { color: #64788a; font-size: 6px; letter-spacing: .1em; font-weight: 750; }.validation-values strong { color: #d6e2ec; font-size: 11px; font-variant-numeric: tabular-nums; }.validation-values div:last-child strong { color: #8fc6a9; }.validation-caption { margin-top: 8px; color: #627588; font-size: 7px; line-height: 1.4; }
.science-panel { margin-top: 10px; border: 1px solid #2a3949; border-radius: 7px; background: #111b27; }.science-panel summary { display: flex; align-items: center; gap: 9px; padding: 11px 12px; list-style: none; cursor: pointer; }.science-panel summary::-webkit-details-marker { display: none; }.science-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; background: #202f3e; color: #d6a16b; font-family: Georgia, serif; font-size: 15px; }.science-panel summary strong { display: block; color: #d9e1e9; font-size: 10px; }.science-panel summary small { display: block; color: #6e8092; font-size: 7px; margin-top: 3px; }.chevron { margin-left: auto; color: #8192a3; font-size: 16px; transition: transform .2s; }.science-panel[open] .chevron { transform: rotate(180deg); }.science-content { border-top: 1px solid var(--line-soft); padding: 12px; color: #94a4b4; font-size: 9px; line-height: 1.55; }.science-content h3 { color: #d2dce6; font-size: 9px; margin: 10px 0 4px; letter-spacing: .03em; }.science-content h3:first-child { margin-top: 0; }.science-content p { margin: 4px 0 8px; }.science-content b { color: #e2b27d; }.science-content ul { margin: 4px 0 8px; padding-left: 16px; }.science-content li { margin: 3px 0; }.equation-block { padding: 8px 9px; border: 1px solid #2b3b4b; border-radius: 4px; background: #0b131d; color: #e4c096; font-family: Georgia, serif; font-size: 13px; }.science-note { margin-top: 10px !important; padding-top: 8px; border-top: 1px solid var(--line-soft); color: #8195a7; font-style: italic; }.panel-footnote { display: flex; align-items: center; gap: 7px; color: #5d6e7f; font-size: 7px; letter-spacing: .1em; margin-top: 11px; }.panel-footnote span:first-child { color: #91bba0; }.footnote-sep { color: #3d4b5a; }
.footer { display: flex; justify-content: space-between; padding: 17px 2px 0; margin-top: 12px; border-top: 1px solid var(--line-soft); color: #526274; font-size: 7px; letter-spacing: .12em; }.footer b { color: #d09a63; padding: 0 4px; }
.embed-mode .topbar, .embed-mode .footer, .embed-mode .title-row, .embed-mode .control-column { display: none; }.embed-mode .app-shell { padding: 0; }.embed-mode .main-layout { display: block; padding: 0; }.embed-mode .viewport-wrap { border-radius: 0; }.embed-mode .viewport { height: 100vh; min-height: 320px; }.embed-mode .timeline-card, .embed-mode .readouts-grid { margin-left: 10px; margin-right: 10px; }
@media (max-width: 1180px) { .app-shell { padding: 0 20px 16px; }.main-layout { grid-template-columns: minmax(0,1fr) 325px; gap: 15px; }.control-column { padding: 13px; }.readouts-grid { grid-template-columns: repeat(2,1fr); }.viewport { height: 43vw; min-height: 360px; } }
@media (max-width: 900px) { .main-layout { grid-template-columns: 1fr; }.control-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; align-items: start; }.panel-heading, .preset-section, .validation-card, .science-panel, .panel-footnote { grid-column: 1 / -1; }.control-section { border-bottom: 0; }.environment-section { border-left: 1px solid var(--line-soft); padding-left: 16px; }.viewport { height: 54vw; min-height: 390px; max-height: 540px; } }
@media (max-width: 600px) { .app-shell { padding: 0 12px 14px; }.topbar { height: 55px; }.topbar-right { gap: 8px; }.live-indicator { font-size: 7px; }.version-tag { font-size: 7px; }.main-layout { padding-top: 15px; gap: 12px; }.title-row { margin-bottom: 12px; }.stage-index { display: none; } h1 { font-size: 25px; line-height: 1.08; }.title-dash { display: none; } h1 em { display: block; margin-top: 3px; font-size: 17px; line-height: 1.2; }.subtitle { font-size: 10px; margin-top: 7px; }.viewport { height: 48vh; min-height: 310px; max-height: 440px; }.scene-label { font-size: 6px; padding: 5px 6px; }.label-fault { left: 3%; top: 18%; }.label-heat { right: 3%; top: 25%; }.label-vein { right: 3%; bottom: 18%; }.view-actions { top: 8px; right: 8px; }.viewport-footer { padding: 8px; }.view-hint, .scene-coordinates { font-size: 6px; }.timeline-card { padding: 12px 11px; margin-top: 9px; }.transport-row { align-items: flex-end; }.transport-buttons { gap: 5px; }.primary-button { min-width: 126px; padding: 0 9px; font-size: 8px; }.secondary-button { padding: 0 8px; font-size: 8px; }.speed-control { min-width: 82px; }.readouts-grid { gap: 7px; margin-top: 8px; }.readout-card { padding: 10px; }.readout-label { font-size: 6px; }.readout-value { font-size: 22px; }.readout-note { font-size: 6px; white-space: normal; line-height: 1.35; }.control-column { display: block; padding: 12px; }.environment-section { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line-soft); }.preset-button { padding: 8px 6px; }.preset-button strong { font-size: 7px; }.preset-button small { font-size: 6px; }.control-section { padding: 12px 0; }.control-row { margin-top: 12px; }.control-label label { font-size: 10px; }.footer { font-size: 6px; gap: 8px; }.footer span:last-child { text-align: right; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
