:root {
  --bg: #f5f2ea;
  --bg-deep: #ece4d6;
  --paper: rgba(255, 252, 248, 0.9);
  --ink: #1f2731;
  --muted: #61574d;
  --line: rgba(43, 35, 24, 0.12);
  --warm: #bf6b2f;
  --warm-deep: #8d4918;
  --cool: #256d71;
  --cool-deep: #15474a;
  --deep: #22466f;
  --deep-soft: #dfe8f5;
  --gold: #f2bb4f;
  --good: #22654d;
  --bad: #9f382d;
  --shadow: 0 20px 45px rgba(70, 53, 29, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(191, 107, 47, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(37, 109, 113, 0.15), transparent 28%),
    linear-gradient(180deg, #faf7f0 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 85%);
  opacity: 0.55;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero,
.panel,
.download-panel {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 22px;
  padding: 30px;
  border-radius: 34px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -130px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(242, 187, 79, 0.22), transparent 65%);
}

.eyebrow,
.step,
.mini-kicker,
.bank-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
}

.intro,
.panel-copy,
.feedback-line,
.response-label {
  line-height: 1.6;
  color: #493f36;
}

.intro-list {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #493f36;
}

.intro-list li {
  line-height: 1.6;
}

.panel-list {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #493f36;
}

.panel-list li {
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-copy {
  width: 100%;
}

.dual-coding-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(191, 107, 47, 0.1), transparent 38%),
    linear-gradient(225deg, rgba(37, 109, 113, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.62);
}

.dual-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(34, 70, 111, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.dual-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

.dual-node {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff8eb;
  border: 1px solid rgba(191, 107, 47, 0.18);
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.dual-arrow {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 20px;
  height: 18px;
}

.dual-arrow::before {
  content: "";
  position: absolute;
  left: 9px;
  right: auto;
  top: 0;
  bottom: 8px;
  width: 2px;
  height: auto;
  background: var(--warm-deep);
}

.dual-arrow::after {
  content: "";
  position: absolute;
  right: 5px;
  top: auto;
  bottom: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid var(--warm-deep);
  border-bottom: 0;
}

.dual-link {
  display: grid;
  place-items: center;
}

.dual-link span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 14px 10px;
  border-radius: 999px;
  background: rgba(34, 70, 111, 0.1);
  color: var(--deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.dual-points {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #493f36;
}

.dual-points li + li {
  margin-top: 8px;
}

.panel {
  margin-top: 22px;
  padding: 24px;
  border-radius: 28px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: #fffdf9;
  box-shadow: 0 12px 24px rgba(31, 39, 49, 0.16);
}

.button.ghost {
  background: rgba(34, 70, 111, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.source-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 244, 235, 0.9)),
    var(--paper);
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.slide-card,
.exercise-card,
.stage-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.slide-card {
  overflow: hidden;
}

.slide-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.slide-copy {
  padding: 16px;
}

.panel-warm {
  background:
    linear-gradient(145deg, rgba(248, 229, 209, 0.92), rgba(255, 251, 246, 0.92));
}

.panel-cool {
  background:
    linear-gradient(145deg, rgba(223, 239, 239, 0.92), rgba(255, 255, 255, 0.92));
}

.panel-deep {
  background:
    linear-gradient(145deg, rgba(230, 238, 250, 0.94), rgba(255, 255, 255, 0.94));
}

.sort-layout {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: 18px;
}

.bank-panel,
.code-panel,
.exercise-card,
.download-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.bank-panel,
.exercise-card,
.download-panel {
  padding: 18px;
}

.chip-bank,
.drop-zone,
.syntax-chip-bank {
  min-height: 90px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.stage-grid,
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.syntax-grid {
  grid-template-columns: 1fr;
}

.stage-card {
  padding: 18px;
}

.stage-head {
  margin-bottom: 10px;
}

.stage-head .mini-kicker {
  margin-bottom: 8px;
}

.drop-zone {
  min-height: 160px;
  padding: 12px;
  border-radius: 18px;
  border: 2px dashed rgba(34, 70, 111, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.drop-zone.is-over,
.chip-bank.is-over {
  border-color: rgba(34, 70, 111, 0.42);
  background: rgba(223, 232, 245, 0.75);
}

.task-chip,
.syntax-chip {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 11px 13px;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  cursor: grab;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.task-chip {
  background: #fff8eb;
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(149, 107, 42, 0.09);
}

.task-chip:hover,
.syntax-chip:hover {
  transform: translateY(-1px);
}

.task-chip.is-correct {
  border-color: rgba(34, 101, 77, 0.44);
  background: rgba(220, 242, 233, 0.92);
}

.task-chip.is-incorrect {
  border-color: rgba(159, 56, 45, 0.42);
  background: rgba(252, 227, 222, 0.96);
}

.code-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.code-block {
  margin: 10px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #122131;
  color: #f7f7f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.97rem;
  line-height: 1.5;
  overflow-x: auto;
}

.token-format {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(37, 109, 113, 0.12), rgba(255, 255, 255, 0.4));
}

.token-demo {
  margin: 10px 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.token-rows,
.symbol-rows {
  display: grid;
  gap: 10px;
}

#syntaxSymbolRows {
  margin-bottom: 18px;
}

.token-row,
.symbol-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  align-items: center;
}

.symbol-row {
  grid-template-columns: minmax(0, 1fr) 150px 150px;
}

.lexeme-pill,
.token-label {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(34, 70, 111, 0.08);
  font-weight: 700;
}

select,
textarea {
  width: 100%;
  border: 1px solid rgba(34, 70, 111, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

select:focus,
textarea:focus {
  outline: 2px solid rgba(37, 109, 113, 0.22);
  outline-offset: 1px;
}

select.is-correct {
  border-color: rgba(34, 101, 77, 0.42);
  background: rgba(220, 242, 233, 0.96);
  color: var(--good);
}

select.is-incorrect {
  border-color: rgba(159, 56, 45, 0.34);
  background: rgba(252, 227, 222, 0.96);
  color: var(--bad);
}

.syntax-chip-bank {
  margin-top: 12px;
}

.syntax-chip {
  background: #edf3fb;
  color: var(--deep);
  cursor: grab;
}

.syntax-chip.is-used {
  opacity: 0.45;
  cursor: default;
}

.syntax-tree {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 70, 111, 0.14);
  background:
    linear-gradient(180deg, rgba(237, 243, 251, 0.72), rgba(255, 255, 255, 0.72));
  isolation: isolate;
}

.syntax-stage-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.syntax-bank-panel {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(34, 70, 111, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.syntax-bank-panel .panel-copy {
  margin-bottom: 12px;
}

.bank-subhead {
  margin-top: 16px;
}

.tree-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  position: relative;
  flex-wrap: nowrap;
}

.tree-row + .tree-row {
  margin-top: 26px;
}

.tree-pair {
  display: grid;
  gap: 8px;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.tree-row-siblings {
  gap: 48px;
}

.tree-row-siblings .tree-pair {
  width: 110px;
  flex: 0 0 110px;
}

.tree-row-root .tree-pair,
.tree-row-leaf .tree-pair {
  width: 180px;
  flex: 0 0 180px;
}

.tree-row-siblings .tree-slot {
  width: 110px;
  min-width: 110px;
}

.tree-row-root .tree-slot,
.tree-row-leaf .tree-slot {
  width: 180px;
  min-width: 180px;
}

.tree-slot {
  width: min(100%, 180px);
  min-height: 72px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border-radius: 18px;
  border: 2px dashed rgba(34, 70, 111, 0.2);
  background: #ffffff;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.tree-slot.is-over {
  border-color: rgba(34, 70, 111, 0.42);
  background: rgba(223, 232, 245, 0.75);
}

.tree-slot.is-correct {
  border-color: rgba(34, 70, 111, 0.2);
  background: rgba(255, 255, 255, 0.84);
}

.tree-slot.is-incorrect {
  border-color: rgba(34, 70, 111, 0.2);
  background: rgba(255, 255, 255, 0.84);
}

.tree-slot-label {
  flex: 1 1 auto;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 16px;
  background: #edf3fb;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.tree-token {
  flex: 1 1 auto;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(34, 70, 111, 0.14);
  background: #edf3fb;
  color: var(--deep);
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(34, 70, 111, 0.08);
  position: relative;
  z-index: 2;
}

.tree-slot.is-correct .tree-token {
  background: rgba(220, 242, 233, 0.98);
  border-color: rgba(34, 101, 77, 0.36);
  color: var(--good);
  box-shadow: 0 0 0 3px rgba(34, 101, 77, 0.14);
}

.tree-slot.is-incorrect .tree-token {
  background: rgba(252, 227, 222, 0.98);
  border-color: rgba(159, 56, 45, 0.34);
  color: var(--bad);
  box-shadow: 0 0 0 3px rgba(159, 56, 45, 0.12);
}

.tree-row-root .tree-pair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 17px;
  background: rgba(34, 70, 111, 0.24);
  transform: translateX(-50%);
  z-index: 0;
}

.tree-row-siblings::before {
  content: "";
  position: absolute;
  top: -17px;
  left: calc(50% - 158px);
  right: calc(50% - 158px);
  height: 2px;
  background: rgba(34, 70, 111, 0.24);
  z-index: 0;
}

.tree-row-siblings::after {
  content: "";
  position: absolute;
  left: calc(50% - 158px);
  right: calc(50% - 158px);
  top: calc(100% + 16px);
  height: 2px;
  background: rgba(34, 70, 111, 0.24);
  z-index: 0;
}

.tree-row-siblings .tree-pair::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -17px;
  width: 2px;
  height: 17px;
  background: rgba(34, 70, 111, 0.24);
  transform: translateX(-50%);
  z-index: 0;
}

.tree-pair .tree-slot-class::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 10px;
  background: rgba(34, 70, 111, 0.24);
  transform: translateX(-50%);
  z-index: 0;
}

.tree-pair .tree-slot-token::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 16px;
  background: rgba(34, 70, 111, 0.24);
  transform: translateX(-50%);
  z-index: 0;
}

.tree-row-siblings .tree-pair[data-pair="left"] .tree-slot-token::after,
.tree-row-siblings .tree-pair[data-pair="operator"] .tree-slot-token::after,
.tree-row-siblings .tree-pair[data-pair="right"] .tree-slot-token::after {
  display: block;
}

.tree-row-siblings .tree-pair[data-pair="left"] .tree-slot-token::before,
.tree-row-siblings .tree-pair[data-pair="operator"] .tree-slot-token::before,
.tree-row-siblings .tree-pair[data-pair="right"] .tree-slot-token::before {
  display: none;
}

.tree-row-siblings .tree-pair[data-pair="left"]::after,
.tree-row-siblings .tree-pair[data-pair="operator"]::after,
.tree-row-siblings .tree-pair[data-pair="right"]::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: 2px;
  height: 18px;
  background: rgba(34, 70, 111, 0.24);
  left: 50%;
  transform: translateX(-50%);
}

.tree-row-siblings .tree-pair[data-pair="left"]::after,
.tree-row-siblings .tree-pair[data-pair="right"]::after,
.tree-row-siblings .tree-pair[data-pair="operator"]::after {
  display: none;
}

.tree-row-siblings .tree-slot-token-join {
  display: none;
}

.tree-row-leaf .tree-pair::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 2px;
  height: 18px;
  background: rgba(34, 70, 111, 0.24);
  transform: translateX(-50%);
  z-index: 0;
}

.inline-buttons {
  margin-top: 14px;
}

.inline-buttons + .panel-copy {
  margin-top: 20px;
}

.syntax-path-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 239, 250, 0.9));
}

.syntax-route-board {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 70, 111, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.route-node {
  min-width: 92px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 70, 111, 0.14);
  background: #edf3fb;
  color: var(--deep);
  font-weight: 700;
}

.route-fixed {
  background: #fff8eb;
  color: var(--warm-deep);
}

.route-comparator-line {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 420px);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 70, 111, 0.14);
  background: rgba(255, 248, 235, 0.9);
  overflow-x: auto;
}

.route-comparator {
  border: 1px solid rgba(34, 70, 111, 0.12);
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.route-comparator:hover {
  transform: translateY(-1px);
}

.route-comparator.is-active {
  background: #edf3fb;
  color: var(--deep);
  border-color: rgba(34, 70, 111, 0.22);
  box-shadow: 0 0 0 3px rgba(34, 70, 111, 0.08);
}

.route-connector {
  width: 4px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34, 70, 111, 0.18), rgba(34, 70, 111, 0.45));
}

.route-choice-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 420px);
}

.route-choice {
  border: 1px solid rgba(34, 70, 111, 0.14);
  border-radius: 16px;
  padding: 12px 10px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.route-choice:hover {
  transform: translateY(-1px);
}

.route-choice.is-selected {
  border-color: rgba(34, 101, 77, 0.44);
  background: rgba(220, 242, 233, 0.96);
  color: var(--good);
  box-shadow: 0 0 0 3px rgba(34, 101, 77, 0.1);
}

.syntax-key {
  margin-top: 14px;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 33, 49, 0.52);
  z-index: 30;
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 44px rgba(18, 33, 49, 0.22);
}

.long-response {
  min-height: 140px;
  resize: vertical;
}

#tokenStreamReflection {
  margin-bottom: 18px;
}

.response-label[for="tokenStreamReflection"] {
  display: block;
  margin-top: 18px;
}

.response-label[for="syntaxSummary"] {
  display: block;
  margin: 18px 0 10px;
}

.section-footnote {
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 700;
}

.model-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 246, 221, 0.85);
  border: 1px solid rgba(191, 107, 47, 0.14);
}

.feedback-line {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 700;
}

.feedback-line.is-good {
  color: var(--good);
}

.feedback-line.is-bad {
  color: var(--bad);
}

.floating-download-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 0 10px;
}

.floating-download-wrap .button {
  box-shadow: 0 16px 34px rgba(31, 39, 49, 0.18);
}

@media (max-width: 1040px) {
  .hero,
  .sort-layout,
  .code-panel,
  .syntax-grid {
    grid-template-columns: 1fr;
  }

  .syntax-route-board {
    width: 100%;
  }

  .route-choice-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slide-grid,
  .stage-grid,
  .exercise-grid {
    grid-template-columns: 1fr;
  }

  .dual-coding-panel {
    grid-template-columns: 1fr;
  }

  .syntax-stage-layout {
    grid-template-columns: 1fr;
  }

  .dual-link span {
    writing-mode: initial;
    transform: none;
  }

}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 18px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .panel,
  .download-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .token-row,
  .symbol-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .tree-row {
    flex-direction: column;
    align-items: center;
  }

  .tree-row-siblings {
    gap: 16px;
  }

  .tree-row-siblings::before,
  .tree-row-siblings::after,
  .tree-row-siblings .tree-pair::before,
  .tree-pair .tree-slot-class::after,
  .tree-pair .tree-slot-token::after,
  .tree-row-leaf .tree-pair::before,
  .tree-row-root .tree-slot::after,
  .tree-row-branch .tree-slot::after,
  .tree-row-root .tree-pair::after,
  .tree-row-branch .tree-pair::after {
    display: none;
  }
}
