@import url("styles.css");

.stage-3d {
  background: #2a3548;
  min-height: 420px;
  aspect-ratio: 16 / 10;
}
#viewport {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  outline: none;
  touch-action: none;
}
#viewport canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
header .header-physics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  max-width: none;
}
header .header-math-link {
  flex-shrink: 0;
  font-size: 0.92rem;
}
header .header-math-link a {
  color: var(--accent);
  text-decoration: none;
}
header .header-math-link a:hover {
  text-decoration: underline;
}
.param-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 0.35rem;
  border-bottom: 1px solid var(--stroke);
}
.param-tab {
  flex: 1;
  margin: 0;
  padding: 0.5rem 0.35rem 0.55rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  line-height: 1.2;
}
.param-tab:hover {
  color: var(--text);
}
.param-tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.param-tab-panel {
  margin-top: 0.5rem;
}
.param-tab-panel[hidden] {
  display: none !important;
}
.panel-btns-top {
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.panel-age-btns {
  margin-top: -0.35rem;
  margin-bottom: 0.35rem;
}
.panel-age-btns button.age-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 165, 75, 0.14);
  box-shadow: 0 0 0 1px rgba(232, 165, 75, 0.35);
}
.panel-age-btns button.age-active:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.age-hint {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 36ch;
}
.stage-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.sauropod-scale {
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.1rem;
}
.sauropod-scale h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.sauropod-scale p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 65ch;
}
.sauropod-scale ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
}
.sauropod-scale li {
  margin-bottom: 0.45rem;
}
.sauropod-scale li:last-child {
  margin-bottom: 0;
}
.sauropod-scale strong {
  color: var(--accent);
  font-weight: 600;
}
