:root {
  color-scheme: dark;
  --bg: #0a1016;
  --panel: #111a22;
  --panel-2: #151f28;
  --line: rgba(181, 198, 208, .12);
  --line-strong: rgba(181, 198, 208, .2);
  --text: #e6edf0;
  --muted: #81919b;
  --subtle: #5c6c76;
  --sand: #d7a66b;
  --sand-bright: #f0c38b;
  --cyan: #78c8c7;
  --green: #8ed3a8;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; font-size: 13px; letter-spacing: .01em; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--sand-bright); outline-offset: 3px; }
.app-shell { min-height: 100vh; padding: 0 24px 24px; max-width: 1920px; margin: 0 auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 30px; height: 30px; border: 1px solid rgba(215,166,107,.48); border-radius: 9px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 6px; transform: rotate(-8deg); }
.brand-mark span { display: block; width: 4px; border-radius: 3px 3px 1px 1px; background: var(--sand); transform: skew(-18deg); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 11px; opacity: .75; }
.eyebrow, .panel-kicker, .caption-kicker { font-size: 9px; font-weight: 750; letter-spacing: .17em; color: var(--muted); }
h1 { margin: 3px 0 0; font-size: 19px; line-height: 1.1; letter-spacing: -.035em; font-weight: 640; }
.topbar-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.field-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); padding: 7px 10px; border-radius: 999px; }
.chip-dot, .live-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(142,211,168,.55); }
.seed-label b { color: #c6d0d4; font-weight: 700; margin-left: 5px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; padding-top: 18px; align-items: start; }
.visual-column { min-width: 0; }
.scene-toolbar { height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 0 2px 10px; }
.scene-heading { display: flex; align-items: center; gap: 9px; color: #a7b5bc; font-size: 9px; letter-spacing: .11em; font-weight: 750; }
.scene-heading strong { color: var(--sand-bright); font-size: 11px; letter-spacing: .02em; font-weight: 650; font-variant-numeric: tabular-nums; }
.toolbar-divider { width: 1px; height: 14px; background: var(--line-strong); margin: 0 5px; }
.elapsed-label { color: var(--subtle); }
.scene-actions { display: flex; align-items: center; gap: 7px; }
.icon-button { height: 29px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: rgba(20,30,39,.8); color: #9eacb3; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 9px; font-weight: 750; letter-spacing: .1em; transition: background .2s, border-color .2s, color .2s; }
.icon-button:hover { background: #1b2933; color: var(--text); border-color: var(--line-strong); }
.icon-button .icon { font-size: 15px; color: var(--sand); line-height: 1; }
.stage-wrap { height: min(63vh, 670px); min-height: 440px; position: relative; overflow: hidden; border: 1px solid rgba(178,193,199,.15); border-radius: 13px; background: radial-gradient(ellipse at 55% 35%, #283740 0%, #18242c 43%, #0d151c 100%); box-shadow: 0 18px 60px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.018); }
.stage { position: absolute; inset: 0; z-index: 1; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(8,14,20,.34), transparent 22%, transparent 70%, rgba(7,12,17,.48)); }
.scene-caption { position: absolute; z-index: 4; pointer-events: none; display: flex; flex-direction: column; }
.top-left { top: 21px; left: 22px; max-width: 290px; }
.caption-kicker { color: var(--sand); font-size: 8px; }
.scene-caption strong { margin-top: 7px; font-size: 14px; font-weight: 620; letter-spacing: -.015em; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.scene-caption small { margin-top: 4px; color: #9caab0; font-size: 10px; line-height: 1.4; }
.wind-indicator { position: absolute; z-index: 4; top: 20px; right: 21px; border: 1px solid rgba(215,166,107,.26); background: rgba(13,21,27,.6); padding: 8px 10px; border-radius: 7px; display: flex; align-items: center; gap: 8px; color: #aebbc0; font-size: 8px; letter-spacing: .13em; font-weight: 750; }
.wind-indicator b { color: var(--sand-bright); margin-left: 4px; font-variant-numeric: tabular-nums; }
.wind-arrow { color: var(--sand-bright); font-size: 13px; transform-origin: center; display: inline-block; }
.annotation-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.annotation { position: absolute; display: flex; align-items: center; gap: 6px; color: rgba(240,215,180,.88); font-size: 8px; letter-spacing: .13em; font-weight: 800; text-shadow: 0 2px 7px rgba(0,0,0,.9); white-space: nowrap; transform: translate(-50%, -50%); }
.annotation i { width: 5px; height: 5px; border: 1px solid var(--sand-bright); border-radius: 50%; background: rgba(215,166,107,.4); box-shadow: 0 0 8px rgba(215,166,107,.7); }
.bottom-left { bottom: 20px; left: 22px; flex-direction: row; align-items: center; gap: 9px; color: #829198; font-size: 8px; letter-spacing: .12em; font-weight: 750; }
.scale-line { display: block; width: 30px; height: 1px; background: var(--sand); position: relative; }
.scale-line:before, .scale-line:after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--sand); }.scale-line:before { left: 0; }.scale-line:after { right: 0; }
.scene-hint { position: absolute; z-index: 4; right: 20px; bottom: 20px; color: #74848c; font-size: 8px; letter-spacing: .12em; font-weight: 750; pointer-events: none; }
.scene-hint span { margin: 0 4px; color: #45565f; }.mouse-icon { color: var(--sand); font-size: 13px; vertical-align: -1px; }
.webgl-error { position: absolute; inset: 0; z-index: 8; background: rgba(8,14,19,.92); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px; }
.webgl-error[hidden] { display: none; }.error-symbol { font-size: 36px; color: var(--sand); }.webgl-error strong { margin-top: 8px; font-size: 16px; }.webgl-error p { max-width: 440px; color: var(--muted); line-height: 1.6; font-size: 12px; }
.transport-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 9px 2px 11px; border-bottom: 1px solid var(--line); }
.transport-controls { display: flex; align-items: center; gap: 7px; }
.play-button, .step-button { height: 34px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 9px; letter-spacing: .11em; font-weight: 800; transition: .18s; }
.play-button { min-width: 104px; border: 1px solid #b17e4d; color: #1a1713; background: linear-gradient(135deg,#e5b67e,#c58c55); box-shadow: 0 3px 14px rgba(190,132,75,.12); }.play-button:hover { filter: brightness(1.08); }
.play-button span:first-child { font-size: 13px; }.step-button { padding: 0 12px; border: 1px solid var(--line); background: #121b23; color: #aab6bc; }.step-button:hover { background: #1a2731; color: var(--text); }.step-button span { font-size: 14px; color: var(--sand); }
.speed-control { display: flex; align-items: center; gap: 10px; }.mini-label { color: var(--subtle); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.speed-segment { display: flex; padding: 3px; background: #111a21; border: 1px solid var(--line); border-radius: 7px; gap: 2px; }
.speed-segment button { border: 0; background: transparent; color: #71818a; font-size: 9px; padding: 5px 8px; border-radius: 4px; cursor: pointer; font-weight: 750; }.speed-segment button.selected { color: var(--sand-bright); background: #2b2a26; box-shadow: inset 0 0 0 1px rgba(215,166,107,.14); }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding-top: 11px; }
.readout-card { min-height: 94px; padding: 12px 13px 10px; border-radius: 9px; border: 1px solid var(--line); background: linear-gradient(145deg,rgba(20,30,38,.95),rgba(15,23,30,.96)); }
.readout-top { display: flex; align-items: center; justify-content: space-between; }.readout-name { color: #7f9099; font-size: 8px; font-weight: 800; letter-spacing: .12em; }.readout-mark { color: #b28b61; font-family: Georgia,serif; font-size: 14px; font-style: italic; }
.readout-value { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }.readout-value strong { font-size: 21px; line-height: 1; letter-spacing: -.04em; font-weight: 650; font-variant-numeric: tabular-nums; }.readout-value small { color: #81919a; font-size: 9px; }.readout-foot { color: #60717b; font-size: 9px; margin-top: 7px; }.accent-card { border-color: rgba(120,200,199,.24); background: linear-gradient(145deg,rgba(22,42,44,.8),rgba(16,29,34,.96)); }.accent-card .readout-mark, .accent-card .readout-value strong { color: var(--cyan); }
.control-column { min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.panel { background: linear-gradient(155deg,rgba(19,29,38,.98),rgba(15,23,30,.98)); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }.panel-heading h2 { margin: 4px 0 0; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }.panel-kicker { font-size: 8px; }.settings-icon { color: #71818a; font-size: 18px; }
.preset-block { margin-top: 17px; }.section-label { color: #788992; font-size: 8px; letter-spacing: .14em; font-weight: 850; }.preset-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.preset-button { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 7px; background: #111b23; cursor: pointer; transition: .18s; }.preset-button:hover { border-color: var(--line-strong); background: #17232c; }.preset-button.active { border-color: rgba(215,166,107,.38); background: linear-gradient(90deg,rgba(65,49,35,.48),rgba(24,31,35,.82)); }.preset-swatch { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.12); }.swatch-wind { background: linear-gradient(135deg,#c69a67 0 25%,#66503b 26% 50%,#c39a6b 51% 75%,#4a4a3f 76%); }.swatch-rock { background: linear-gradient(135deg,#a2a19a,#4b5656 45%,#b2a28b 46% 63%,#5a5148 64%); }.swatch-layer { background: repeating-linear-gradient(0deg,#ad8d69 0 4px,#65564b 4px 7px,#c3a477 7px 10px); }
.preset-button b { display: block; color: #c8d1d5; font-size: 10px; font-weight: 650; }.preset-button small { display: block; color: #70818a; font-size: 8px; margin-top: 3px; }.preset-button i { margin-left: auto; color: transparent; font-size: 12px; font-style: normal; }.preset-button.active i { color: var(--sand-bright); }
.control-divider { height: 1px; background: var(--line); margin: 13px 0 12px; }.control-label { margin-bottom: 13px; }
.slider-control { margin: 0 0 13px; }.slider-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }.slider-heading label { color: #bdc8cc; font-size: 10px; font-weight: 580; }.slider-heading output { color: var(--sand-bright); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 14px; margin: 7px 0 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg,#bd8d5d 0%,#7c674e 100%); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg,#bd8d5d 0%,#7c674e 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; margin-top: -4px; background: #e7bc8a; border: 2px solid #3a3027; box-shadow: 0 0 0 2px rgba(215,166,107,.17); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #e7bc8a; border: 2px solid #3a3027; box-shadow: 0 0 0 2px rgba(215,166,107,.17); }
.range-ends { display: flex; justify-content: space-between; color: #566771; font-size: 8px; margin-top: 0; }
.control-note { display: flex; align-items: flex-start; gap: 7px; border-top: 1px solid var(--line); padding-top: 11px; margin-top: 1px; color: #75868e; font-size: 9px; line-height: 1.45; }.note-icon { color: var(--sand); font-size: 12px; }
.compact-heading h2 { font-size: 13px; }.pass-chip { color: #a5d6b7; border: 1px solid rgba(142,211,168,.26); background: rgba(69,119,86,.14); border-radius: 5px; padding: 4px 7px; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.validation-equation { margin: 12px 0 10px; border: 1px solid rgba(120,200,199,.15); background: rgba(23,49,51,.28); border-radius: 6px; text-align: center; padding: 8px; color: #a7d2cf; font-family: Georgia,serif; font-size: 14px; }.validation-equation sub { font-size: 9px; }
.validation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.validation-grid div { display: flex; flex-direction: column; gap: 4px; }.validation-grid span { color: #72838c; font-size: 7px; letter-spacing: .1em; font-weight: 800; }.validation-grid strong { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }.validation-grid small { color: #64757e; font-size: 8px; }
.validation-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 9px; color: #81919a; font-size: 9px; }.validation-footer strong { color: var(--green); font-size: 11px; font-variant-numeric: tabular-nums; }.validation-caption { margin: 7px 0 0; color: #61727b; font-size: 8px; line-height: 1.4; }
.science-panel { padding: 0; }.science-panel summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; }.science-panel summary::-webkit-details-marker { display: none; }.science-panel summary b { display: block; margin-top: 4px; font-size: 13px; font-weight: 650; }.details-chevron { color: var(--sand); font-size: 18px; transition: transform .2s; }.science-panel[open] .details-chevron { transform: rotate(180deg); }.science-content { border-top: 1px solid var(--line); padding: 12px 15px 15px; }.science-content h3 { margin: 11px 0 6px; color: #d1d9dc; font-size: 10px; font-weight: 750; }.science-content h3:first-child { margin-top: 0; }.science-content p, .science-content li { color: #8999a1; font-size: 9px; line-height: 1.6; }.science-content p { margin: 0 0 8px; }.science-content ul { padding-left: 15px; margin: 5px 0 10px; }.science-content li { margin-bottom: 4px; }.science-content li b { color: #c8d3d7; }
.equation-card { border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin: 6px 0; background: rgba(10,17,22,.45); }.equation-card b { display: block; color: #aab8bd; font-size: 8px; margin-bottom: 5px; }.equation-card code { color: #d4b38b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }.equation-card small { display: block; color: #667781; margin-top: 4px; font-size: 8px; }.disclaimer { border-left: 2px solid var(--sand); padding-left: 8px; color: #a3aeb1 !important; }
.side-footer { display: flex; justify-content: space-between; color: #52636c; font-size: 7px; letter-spacing: .13em; font-weight: 800; padding: 2px 2px 0; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 20px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 9px 14px; border-radius: 8px; background: #263a3b; color: #d3ece7; border: 1px solid rgba(120,200,199,.25); font-size: 10px; transition: .22s; box-shadow: 0 8px 25px rgba(0,0,0,.3); }.toast.show { opacity: 1; transform: translate(-50%,0); }
body.embed .app-shell { padding: 8px; }.embed .topbar { display: none; }.embed .workspace { padding-top: 0; grid-template-columns: minmax(0,1fr) 320px; }.embed .stage-wrap { height: min(72vh,760px); }
@media (min-width: 1600px) { .workspace { grid-template-columns: minmax(0,1fr) 390px; gap: 22px; }.stage-wrap { height: min(68vh,800px); }.app-shell { padding-left: 32px; padding-right: 32px; }.panel { padding: 17px; } }
@media (max-width: 1120px) { .workspace { grid-template-columns: minmax(0,1fr) 320px; gap: 12px; }.app-shell { padding-left: 14px; padding-right: 14px; }.stage-wrap { min-height: 390px; height: 55vh; }.readout-card { padding: 10px; }.readout-value strong { font-size: 18px; } }
@media (max-width: 820px) { .workspace { grid-template-columns: 1fr; }.control-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }.controls-panel { grid-row: span 2; }.side-footer { grid-column: 1/-1; }.stage-wrap { height: 58vh; min-height: 380px; }.readout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.topbar { height: 66px; }.workspace { padding-top: 10px; } }
@media (max-width: 560px) { body { font-size: 12px; }.app-shell { padding: 0 10px 16px; }.topbar { height: 60px; }.brand-mark { width: 27px; height: 27px; }.eyebrow { font-size: 7px; }h1 { font-size: 16px; }.topbar-meta { gap: 8px; }.field-chip { font-size: 7px; padding: 6px 7px; }.seed-label { display: none; }.workspace { gap: 10px; }.scene-toolbar { height: 38px; }.scene-heading { font-size: 8px; gap: 6px; }.elapsed-label { display: none; }.toolbar-divider { display: none; }.scene-actions { gap: 4px; }.icon-button { height: 27px; padding: 0 7px; font-size: 8px; }.stage-wrap { height: 52vh; min-height: 350px; border-radius: 10px; }.top-left { top: 14px; left: 13px; max-width: 210px; }.scene-caption strong { font-size: 12px; }.scene-caption small { font-size: 8px; }.caption-kicker { font-size: 7px; }.wind-indicator { top: 12px; right: 11px; padding: 6px 7px; font-size: 7px; }.annotation { font-size: 6px; }.bottom-left { left: 13px; bottom: 13px; font-size: 6px; }.scene-hint { right: 11px; bottom: 13px; font-size: 6px; }.transport-bar { align-items: flex-start; flex-direction: column; gap: 9px; padding: 10px 0; }.transport-controls { width: 100%; }.play-button { flex: 1; }.step-button { flex: 1; }.speed-control { width: 100%; justify-content: space-between; }.readout-grid { gap: 7px; padding-top: 8px; }.readout-card { min-height: 82px; padding: 9px; }.readout-name { font-size: 7px; }.readout-value { margin-top: 7px; }.readout-value strong { font-size: 19px; }.readout-value small { font-size: 8px; }.readout-foot { font-size: 8px; margin-top: 5px; }.control-column { display: flex; }.panel { padding: 13px; }.controls-panel { order: 0; }.diagnostics-panel { order: 1; }.science-panel { order: 2; }.side-footer { order: 3; }.preset-button { padding: 8px; }.preset-button b { font-size: 10px; }.preset-button small { font-size: 8px; }.slider-control { margin-bottom: 14px; }.science-content { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
