@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #e8e9df;
  background: #171b19;
  font-synthesis: none;
  --muted: #939d91;
  --line: #354038;
  --orange: #f08259;
  --green: #b5c899;
  --panel: #202722;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
}
h1,
h2,
p {
  margin: 0;
}
button {
  transition:
    background 0.2s,
    color 0.2s;
}
html {
  scroll-behavior: smooth;
}
.topbar {
  max-width: 1600px;
  margin: auto;
  padding: 25px 4.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -1.2px;
}
.brand span {
  font-weight: 400;
  color: var(--muted);
}
.brand svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.7;
  margin-right: 9px;
}
.brand b {
  font-size: 10px;
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 4px;
  letter-spacing: 0;
  margin-left: 8px;
}
.topbar nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  align-items: center;
}
.topbar nav a {
  color: var(--muted);
}
.topbar nav .active {
  color: var(--orange);
}
.topbar nav button {
  font-size: 12px;
  color: var(--muted);
}
.edition {
  font-size: 10px;
  letter-spacing: 1.4px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.edition b {
  font-weight: 400;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px #b5c89955;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 47px 0 36px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--muted);
}
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 4.3vw, 64px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.06;
  margin: 18px 0;
}
h1 span {
  color: var(--orange);
}
.lead {
  font-size: 12px;
  line-height: 1.9;
  color: #b6beb2;
}
.intro-note {
  width: 310px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
  margin-right: 4%;
}
.note-index {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--orange);
}
.intro-note > p {
  font-size: 13px;
  line-height: 2.1;
  margin: 18px 0;
  color: #c1c8bd;
}
.model-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.model-badge > span {
  height: 5px;
  width: 5px;
  background: var(--green);
  border-radius: 50%;
}
.model-badge b {
  font-size: 8px;
  border: 1px solid #414d40;
  padding: 4px;
  font-weight: 500;
  color: var(--green);
}
main {
  max-width: 1470px;
  margin: auto;
  padding: 0 4.3%;
}
.arena-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  scroll-margin-top: 20px;
}
.field-panel {
  background: var(--panel);
  border: 1px solid #424c3d;
  border-radius: 11px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
}
.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-heading h2 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.3px;
}
.pill {
  display: inline-block;
  padding: 4px 6px;
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #48513f;
  border-radius: 3px;
  color: #b9c6ad;
}
.field-tools button {
  border: 1px solid #47523f;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 10px;
  min-width: 30px;
}
.field-tools button:hover {
  background: #3d4635;
}
.field-wrap {
  position: relative;
  aspect-ratio: 36/22;
  margin: 0 9px;
  border-radius: 5px;
  overflow: hidden;
  background: #d3d9bb;
}
#field {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.field-corner,
.field-scale {
  position: absolute;
  pointer-events: none;
  font-size: 8px;
  letter-spacing: 1px;
  color: #667055;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.field-corner {
  left: 15px;
}
.crosshair {
  font-size: 16px;
}
.field-scale {
  right: 15px;
}
.field-scale i {
  display: block;
  width: 35px;
  height: 6px;
  border: 1px solid #667055;
  border-top: 0;
}
.field-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 17px;
  font-size: 9px;
  color: #a9b49b;
}
.legend {
  display: flex;
  gap: 18px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
}
.nectar {
  background: #ecd47a;
}
.danger {
  background: #c48778;
}
.learning-dot {
  background: #a995c8;
}
.standings {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #1b221e;
}
.standings-top {
  padding: 20px 19px 15px;
}
.standings h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 500;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.standings h2 span {
  color: var(--orange);
}
.clock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.clock > span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  letter-spacing: -1px;
}
.clock > div {
  text-align: right;
}
.clock b {
  display: block;
  font-size: 19px;
  color: var(--green);
  font-weight: 500;
}
.clock small {
  font-size: 6px;
  color: var(--muted);
  letter-spacing: 1px;
}
.time-track {
  height: 2px;
  background: #3d4739;
  margin-top: 14px;
}
.time-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
}
.ranking-label {
  padding: 0 18px 9px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1px;
}
.rank-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-top: 1px solid #303a31;
  text-align: left;
  height: 30px;
  font-size: 10px;
}
.rank-row:hover,
.rank-row.selected {
  background: #303b30;
}
.rank-number {
  width: 13px;
  font-family: 'Space Grotesk', sans-serif;
  color: #87937f;
  font-size: 9px;
}
.rank-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.rank-name {
  font-size: 10px;
  letter-spacing: 0.8px;
}
.rank-tag {
  font-size: 7px;
  color: #c7b4e1;
  margin-left: auto;
}
.rank-score {
  margin-left: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
}
.rank-row:first-child .rank-number {
  color: var(--orange);
}
.ranking-foot {
  font-size: 8px;
  color: var(--muted);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
}
.ranking-foot span {
  color: var(--green);
}
.workbench {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
}
.workbench > article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: #1d241f;
  min-width: 0;
}
.section-title h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin-top: 12px;
}
.section-title p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 9px;
}
.mode-switch {
  display: flex;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px;
  margin: 18px 0;
}
.mode-switch button {
  flex: 1;
  padding: 7px;
  font-size: 11px;
  border-radius: 3px;
  color: var(--muted);
}
.mode-switch .selected {
  background: #48503b;
  color: #e8eddb;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin: 14px 0 8px;
  color: #b7c1ac;
}
.slider-label output {
  font-family: 'Space Grotesk';
  color: var(--orange);
}
input[type='range'] {
  width: 100%;
  height: 3px;
  accent-color: var(--orange);
  display: block;
  cursor: pointer;
  margin: 12px 0 22px;
}
.primary {
  width: 100%;
  background: var(--orange);
  color: #22281f;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.primary:hover {
  background: #ff9a70;
}
.input-source {
  font-size: 8px;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.source-dot {
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}
.agent-heading,
.learning-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.agent-heading h2 {
  font-family: 'Space Grotesk';
  font-size: 23px;
  letter-spacing: 0;
}
.agent-heading .pill {
  margin-top: 12px;
}
.specimen {
  height: 108px;
  position: relative;
  margin-top: 8px;
  background: radial-gradient(ellipse at center, #303d2b, transparent 67%);
}
#specimen {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.specimen > span {
  position: absolute;
  right: 0;
  bottom: 12px;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--green);
}
.energy-label {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.energy-label b {
  font-weight: 400;
  color: #c3d4ac;
}
.energy-bar {
  height: 3px;
  background: #374332;
  margin-top: 8px;
}
.energy-bar i {
  display: block;
  background: var(--green);
  height: 100%;
  width: 70%;
}
.decision {
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.decision small {
  font-size: 8px;
  color: var(--muted);
}
.decision p {
  font-size: 11px;
  margin-top: 7px;
}
.agent-stats {
  display: flex;
  gap: 20px;
  align-items: end;
  margin-top: 15px;
}
.agent-stats b {
  font-family: 'Space Grotesk';
  font-size: 22px;
  font-weight: 400;
  display: block;
}
.agent-stats span {
  font-size: 6px;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.agent-stats button {
  margin-left: auto;
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  cursor: pointer;
}
.toggle input {
  position: absolute;
  opacity: 0;
}
.toggle > span {
  width: 25px;
  height: 14px;
  border-radius: 10px;
  background: #47513e;
  position: relative;
}
.toggle > span:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #89957e;
}
.toggle input:checked + span {
  background: #71885e;
}
.toggle input:checked + span:after {
  left: 14px;
  background: #d7e6c5;
}
.toggle input:focus-visible + span {
  outline: 2px solid var(--orange);
}
.toggle b {
  font-size: 7px;
  font-weight: 500;
  color: var(--muted);
}
.learning-heading h2 {
  font-size: 16px;
}
.learning-slot {
  padding: 16px 13px;
  border: 1px dashed #46503d;
  border-radius: 5px;
  margin-top: 17px;
  min-height: 74px;
}
.learning-slot.active {
  border-style: solid;
  border-color: #716381;
  background: #2c2932;
}
.slot-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.slot-heading > span:last-child {
  margin-left: auto;
  font-size: 8px;
  color: #c6b7d8;
}
.slot-detail {
  font-size: 9px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.6;
}
.training-track {
  height: 3px;
  background: #484052;
  margin-top: 13px;
}
.training-track i {
  display: block;
  height: 100%;
  background: #b69bcd;
}
.lab-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
}
.lab-bottom p {
  font-size: 6px;
  letter-spacing: 0.9px;
  color: var(--muted);
}
.lab-indicator {
  width: 5px;
  height: 5px;
  background: #b69bcd;
  border-radius: 50%;
}
.event-section {
  margin-top: 35px;
}
.events-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.events-heading h2 {
  font-family: 'Space Grotesk';
  font-size: 18px;
  font-weight: 500;
}
.events-heading h2 span {
  font-family: 'DM Sans';
  font-size: 10px;
  color: var(--muted);
  margin-left: 7px;
}
.events-heading button {
  font-size: 10px;
  color: var(--muted);
}
#events {
  border-top: 1px solid var(--line);
}
.event-row {
  display: grid;
  grid-template-columns: 65px 180px 1fr;
  gap: 10px;
  padding: 11px 3px;
  border-bottom: 1px solid #2a352d;
  font-size: 10px;
}
.event-row time {
  font-family: 'Space Grotesk';
  color: var(--muted);
}
.event-row strong {
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--green);
  font-weight: 500;
}
.event-row[data-kind='learning'] strong {
  color: #c4a6df;
}
.event-row[data-kind='input'] strong {
  color: var(--orange);
}
.event-row > span {
  color: #a5b29c;
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 35px 0 28px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.small {
  font-size: 17px;
}
footer p,
footer > span {
  font-size: 8px;
  color: #84917d;
  letter-spacing: 0.4px;
}
.round-end {
  position: absolute;
  inset: 0;
  background: #20291fdd;
  backdrop-filter: blur(7px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}
.round-end[hidden] {
  display: none;
}
.round-end h2 {
  font-family: 'Space Grotesk';
  font-size: 45px;
  margin: 20px 0;
  color: var(--orange);
}
.round-end > p {
  font-size: 12px;
  color: #c0cdb4;
}
.round-end button {
  max-width: 300px;
  margin-top: 25px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  max-width: 540px;
  width: 90%;
  background: #242d25;
  color: #e6eadf;
  border: 1px solid #5a674f;
  border-radius: 12px;
  padding: 35px;
}
dialog::backdrop {
  background: #0b130de0;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font-size: 24px;
  margin: 18px 0;
}
dialog > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 2;
  color: #bec9b4;
  margin-bottom: 18px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  color: var(--muted);
}
@media (min-width: 1450px) {
  .rank-row {
    height: 35px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 0 3%;
  }
  .topbar {
    padding: 20px 3%;
  }
  .arena-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .rank-row {
    height: 27px;
  }
  .standings-top {
    padding: 15px;
  }
  .standings h2 {
    font-size: 20px;
  }
  .workbench {
    gap: 12px;
  }
  .workbench > article {
    padding: 17px;
  }
  .intro {
    padding-top: 35px;
  }
  .edition {
    font-size: 8px;
  }
  .learning-heading {
    flex-wrap: wrap;
  }
  .field-scale {
    display: none;
  }
}
@media (max-width: 800px) {
  .topbar nav {
    gap: 18px;
  }
  .topbar nav button,
  .edition {
    display: none;
  }
  .intro-note {
    width: 230px;
    margin-right: 0;
    padding-left: 22px;
  }
  .intro-note > p {
    font-size: 11px;
  }
  .model-badge b {
    display: none;
  }
  .arena-layout {
    grid-template-columns: 1fr;
  }
  .standings {
    display: none;
  }
  .workbench {
    grid-template-columns: 1fr 1fr;
  }
  .learning-panel {
    grid-column: 1/-1;
  }
  #learning-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .event-row {
    grid-template-columns: 50px 150px 1fr;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  main {
    padding: 0 16px;
  }
  .topbar {
    padding: 18px 16px;
  }
  .brand {
    font-size: 21px;
  }
  .topbar nav {
    font-size: 11px;
    gap: 16px;
  }
  .intro {
    padding: 30px 0 25px;
  }
  .intro-note {
    display: none;
  }
  h1 {
    font-size: 44px;
    letter-spacing: -2px;
  }
  .intro .lead {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .field-wrap {
    aspect-ratio: 1.3;
    margin: 0 5px;
  }
  .panel-heading {
    padding: 12px 10px;
  }
  .panel-heading h2 {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .field-tools span {
    display: none;
  }
  .panel-heading > div {
    gap: 6px;
  }
  .field-footer {
    padding: 11px;
    font-size: 7px;
  }
  .legend {
    gap: 10px;
  }
  .field-corner {
    font-size: 6px;
    left: 9px;
    bottom: 9px;
  }
  .workbench {
    gap: 10px;
  }
  .workbench > article {
    padding: 14px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .section-title p {
    font-size: 9px;
  }
  .agent-heading {
    flex-wrap: wrap;
  }
  .agent-heading .pill {
    margin-top: 4px;
  }
  .specimen {
    height: 100px;
  }
  .agent-stats {
    gap: 10px;
    flex-wrap: wrap;
  }
  .agent-stats button {
    width: 100%;
    margin: 4px 0 0;
  }
  .agent-stats b {
    font-size: 19px;
  }
  .primary {
    font-size: 10px;
    padding: 11px;
  }
  .mode-switch button {
    font-size: 10px;
    padding: 6px 3px;
  }
  .input-source {
    font-size: 7px;
    line-height: 1.8;
  }
  .learning-heading h2 {
    font-size: 18px;
  }
  .event-row {
    grid-template-columns: 38px 1fr;
    gap: 5px;
  }
  .event-row > span {
    grid-column: 2;
  }
  .events-heading h2 span {
    display: none;
  }
  .event-section {
    margin-top: 25px;
  }
  footer > span {
    width: 100%;
  }
  .round-end h2 {
    font-size: 30px;
  }
}
.sensory-readout {
  font-size: 8px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .standings {
    display: block;
  }
  .standings-top {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 13px 16px;
  }
  .standings-top > .eyebrow,
  .standings-top .time-track,
  .ranking-label {
    display: none;
  }
  .standings h2 {
    margin: 0;
    font-size: 20px;
  }
  .standings h2 span {
    margin-left: 10px;
  }
  .standings .clock {
    margin: 0 0 0 auto;
    gap: 22px;
  }
  .standings .clock > span {
    font-size: 23px;
  }
  #ranking {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .rank-row {
    height: 32px;
    padding: 6px 13px;
  }
  .ranking-foot {
    padding: 10px 14px;
  }
}
@media (max-width: 520px) {
  #ranking {
    grid-template-columns: repeat(2, 1fr);
  }
  .standings .clock {
    gap: 13px;
  }
  .standings .clock small {
    font-size: 5px;
  }
}
.chain-panel {
  border: 1px solid #596c50;
  border-radius: 9px;
  background: #263122;
  padding: 16px 19px;
  margin-bottom: 18px;
}
.chain-panel[hidden] {
  display: none;
}
.chain-top {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  letter-spacing: 1px;
}
.chain-top b {
  color: #b5c899;
}
#chain-stage {
  color: #f08259;
}
#chain-target {
  margin-left: auto;
}
#chain-summary {
  margin-top: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#chain-summary[data-stage='error'],
#chain-summary[data-stage='offline'] {
  color: #f7a18e;
}
#chain-status {
  margin-top: 8px;
  font-size: 10px;
  color: #b5c899;
}
.chain-details {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  color: #9faf94;
  overflow-wrap: anywhere;
}
.chain-mode .standings {
  align-self: start;
}
.chain-mode .intro {
  padding: 22px 0;
}
.chain-mode h1 {
  font-size: 38px;
  letter-spacing: -1.8px;
  margin: 12px 0;
}
.chain-mode h1 br {
  display: none;
}
.chain-mode h1 span {
  margin-left: 12px;
}
.chain-mode .intro .lead,
.chain-mode .intro-note {
  display: none;
}
.chain-mode .standings > .control-panel {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #1d241f;
}
.chain-mode .standings-top {
  padding: 12px 18px;
}
.chain-mode .standings-top > .eyebrow {
  display: none;
}
.chain-mode .standings .clock {
  margin-top: 10px;
}
.chain-mode .standings .clock > span {
  font-size: 24px;
}
.chain-mode .workbench {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .chain-mode .workbench {
    grid-template-columns: 1fr;
  }
  .chain-mode .intro h1 {
    font-size: 32px;
  }
}
@media (max-width: 520px) {
  .chain-mode h1 br {
    display: block;
  }
  .chain-mode h1 span {
    margin-left: 0;
  }
}

/* Soft original mascots and a readable live experiment dashboard. */
:root {
  color: #514954;
  background: #faf7f2;
  --muted: #766e7b;
  --line: #e3dcd9;
  --orange: #b6533c;
  --green: #527859;
  --panel: #fffdf9;
}
.topbar {
  border-bottom: 1px solid var(--line);
}
main {
  max-width: 1500px;
}
.intro,
.chain-mode .intro {
  padding: 28px 0 20px;
}
h1,
.chain-mode h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.35;
}
.chain-mode .intro .lead {
  display: block;
}
.lead,
.intro-note > p {
  color: var(--muted);
}
.chain-mode .intro-note {
  display: block;
}
.intro-note {
  background: #f0ede8;
  border: 0;
  border-radius: 24px;
  padding: 20px 26px;
}
.chain-panel {
  background: #f0f5ef;
  border: 1px solid #c4d9c6;
  border-radius: 20px;
  padding: 18px 24px;
}
.chain-panel[data-state='offline'] {
  background: #fff1e8;
  border-color: #d7a994;
}
.chain-top {
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0;
}
.chain-top b,
#chain-status {
  color: #42634a;
}
#chain-stage {
  background: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  color: #42634a;
  font-weight: 700;
}
#chain-summary {
  font-size: 14px;
}
#chain-status,
#tx-context {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
}
.chain-details {
  color: #635c67;
  font-size: 11px;
}
.chain-panel details {
  margin-top: 10px;
  font-size: 12px;
}
.chain-panel summary {
  cursor: pointer;
  width: fit-content;
  padding: 4px 0;
}
.tx-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 6px;
}
.tx-journey li {
  background: #e2e7df;
  color: #666e63;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.tx-journey .done {
  background: #42674c;
  color: #fff;
}
.tx-journey .current {
  outline: 2px solid #b6533c;
  background: #fff4db;
  color: #6d4c23;
}
.live-story {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: #fff0dc;
  border-radius: 20px;
  margin: 18px 0;
}
.live-story h2 {
  font-size: 21px;
  margin: 6px 0;
}
.live-story p {
  font-size: 13px;
  line-height: 1.7;
  color: #756045;
}
#session-badge {
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 20px;
  background: #fffaf1;
  white-space: nowrap;
}
.field-panel,
.standings,
.workbench > article {
  border: 1px solid var(--line);
  background: #fffdf9;
  border-radius: 22px;
  box-shadow: 0 5px 20px #70625408;
}
.field-wrap {
  border-radius: 16px;
}
.panel-heading h2 {
  font-size: 13px;
  letter-spacing: 1px;
}
.pill {
  color: #6c665f;
  border-color: #d9d4cb;
  border-radius: 10px;
}
.field-tools button {
  border-color: #d9d4cb;
  border-radius: 10px;
  min-height: 32px;
  color: #655e62;
}
.field-tools button:hover {
  background: #eee9df;
}
.field-footer {
  color: #685e63;
}
.standings h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
}
.rank-row {
  height: 48px;
  border-color: #eee7e0;
  font-size: 12px;
}
.rank-row.selected,
.rank-row:hover {
  background: #fff0df;
}
.rank-name {
  font-size: 12px;
}
.rank-number {
  font-size: 12px;
}
.rank-tag {
  color: #766381;
  font-size: 10px;
}
.rank-score {
  font-size: 18px;
}
.chain-mode .standings > .control-panel {
  background: #fffaf3;
  padding: 20px;
}
.section-title p,
.slider-label,
.input-source {
  font-size: 12px;
  color: #736974;
}
.section-title h2 {
  font-weight: 700;
}
.mode-switch {
  border-radius: 14px;
  background: #f3eee7;
}
.mode-switch button {
  font-size: 13px;
  padding: 10px 5px;
  border-radius: 10px;
}
.mode-switch .selected {
  background: #657b61;
  color: white;
}
.primary {
  background: #b6533c;
  color: #fff;
  border-radius: 12px;
  min-height: 44px;
  font-size: 12px;
}
.primary:hover {
  background: #91402f;
}
.input-feedback {
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.6;
  color: #7d472d;
  overflow-wrap: anywhere;
}
.specimen {
  height: 150px;
  background: radial-gradient(ellipse, #ffefda, transparent 70%);
}
.specimen > span {
  color: #526c50;
  font-size: 10px;
}
.energy-label b {
  color: #526c50;
}
.energy-bar,
.time-track {
  background: #e4e8de;
  border-radius: 6px;
  height: 5px;
  overflow: hidden;
}
.learning-slot {
  border-color: #d5cadd;
  border-radius: 14px;
}
.learning-slot.active {
  background: #f3eafa;
  border-color: #b9a4ca;
}
.slot-heading > span:last-child {
  color: #755489;
}
.slot-detail {
  font-size: 12px;
}
.slot-heading {
  font-size: 12px;
}
.event-row {
  border-color: #e5ded7;
}
.event-row > span {
  color: #6d666e;
}
.event-row strong {
  color: #42674c;
}
.event-row[data-kind='learning'] strong {
  color: #806292;
}
.round-end {
  background: #fff8eeee;
}
.round-end > p {
  color: #655d60;
}
dialog {
  background: #fffaf3;
  color: #514954;
  border-color: #e3dcd9;
  border-radius: 24px;
}
dialog > p:not(.eyebrow) {
  color: #6e646b;
}
@media (max-width: 800px) {
  .intro-note,
  .chain-mode .intro-note {
    display: none;
  }
  .live-story {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  #ranking {
    grid-template-columns: 1fr;
  }
  .rank-row {
    height: 46px;
  }
  .tx-journey {
    grid-template-columns: 1fr 1fr;
  }
  .chain-top {
    gap: 8px;
  }
  #chain-target {
    margin-left: 0;
    width: 100%;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  #learning-slots {
    grid-template-columns: 1fr;
  }
  .chain-mode h1 span {
    margin-left: 0;
  }
  .chain-mode h1 br {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  button {
    transition: none;
  }
}
.thought-key {
  padding: 12px 18px 0;
  font-size: 12px;
  color: #6b5d73;
  line-height: 1.8;
}
.thought-key small {
  font-size: 10px;
  color: #807381;
}
#chain-summary[data-stage='error'],
#chain-summary[data-stage='offline'] {
  color: #963c28;
}
.chain-mode .intro {
  padding: 16px 0;
}
.chain-mode .intro-note {
  padding: 12px 20px;
}
.chain-mode .intro-note > p {
  margin: 8px 0;
}
.tx-card {
  margin-top: 16px;
  padding: 14px;
  background: #eef5ef;
  border: 1px solid #bfd5c2;
  border-radius: 14px;
}
.tx-card[hidden] {
  display: none;
}
.tx-card h3 {
  font-size: 15px;
  margin: 10px 0;
}
.tx-card p {
  font-size: 11px;
  line-height: 1.7;
  margin: 7px 0;
}
.transaction-link {
  display: inline-block;
  color: #325f73;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 12px;
  max-width: 100%;
}
.transaction-link[href]:hover {
  color: #b6533c;
}
#transaction-data {
  font-size: 13px;
  line-height: 1.8;
}
#transaction-data dt {
  color: #766e7b;
  margin-top: 10px;
}
#transaction-data dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.language-control select {
  font: inherit;
  color: inherit;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  min-height: 40px;
}
@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .language-control {
    margin-left: auto;
  }
  .language-control > span {
    display: none;
  }
  .topbar nav {
    gap: 12px;
  }
}
html[lang='en'] .rank-tag {
  font-size: 9px;
  letter-spacing: 0;
}
html[lang='en'] .chain-mode h1 {
  font-size: clamp(27px, 3vw, 42px);
}
