.dc-topic .gt-nav {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dc-experiment {
  display: grid;
  gap: 18px;
}

.dc-exp-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.dc-exp-story {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #eff6ff);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.08);
}

.dc-exp-story > span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
}

.dc-exp-story > strong {
  color: #102033;
  font-size: 2.2rem;
  letter-spacing: 0;
}

.dc-exp-story p {
  margin: 0;
  color: #536171;
  line-height: 1.65;
}

.dc-exp-board,
.dc-place-visual,
.dc-compare-visual,
.dc-case-visual {
  min-height: 220px;
  border: 1px solid rgba(190, 202, 222, 0.82);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.055) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.05) 0 1px, transparent 1px 28px);
  overflow: hidden;
}

.dc-exp-board,
.dc-exp-visual,
.dc-lab-board {
  display: grid;
  gap: 14px;
}

.dc-place-table {
  display: grid;
  grid-template-columns: 1fr 58px repeat(3, 1fr);
  gap: 8px;
}

.dc-place-table section {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: #fff;
}

.dc-place-table section.is-focus {
  border-color: rgba(37, 99, 235, 0.55);
  background: #dbeafe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.dc-place-table section.is-dot {
  place-items: center;
  color: #0f172a;
  background: #f8fafc;
}

.dc-place-table section.is-muted {
  opacity: 0.42;
}

.dc-place-table span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.dc-place-table strong {
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
}

.dc-place-table em {
  color: #0f766e;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
}

.dc-block-model {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dc-block-model section {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.dc-block-model section.is-focus {
  border-color: rgba(245, 158, 11, 0.48);
  background: #fffbeb;
}

.dc-block-model strong {
  color: #334155;
  font-size: 0.82rem;
}

.dc-ones-blocks,
.dc-tenth-rods,
.dc-hundred-grid,
.dc-thousand-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: start;
}

.dc-one {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #2563eb;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.dc-tenth {
  width: 12px;
  height: 54px;
  border-radius: 999px;
  background: #14b8a6;
}

.dc-hundredth {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #f59e0b;
}

.dc-thousandth {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e11d48;
}

.dc-number-line {
  display: grid;
  gap: 18px;
  padding: 14px 12px 4px;
}

.dc-line-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #dbe4f0;
}

.dc-line-track span {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.dc-line-track b {
  position: absolute;
  top: 26px;
  color: #475569;
  font-size: 0.78rem;
}

.dc-line-track .start {
  left: 0;
}

.dc-line-track .end {
  right: 0;
}

.dc-line-track i {
  position: absolute;
  top: -38px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: #172033;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.dc-line-ticks {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
}

.dc-line-ticks em {
  min-height: 14px;
  border-left: 1px solid rgba(71, 85, 105, 0.28);
  color: #64748b;
  font-style: normal;
  font-size: 0.72rem;
}

.dc-compare-board {
  display: grid;
  gap: 12px;
}

.dc-compare-board section {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: #fff;
}

.dc-compare-board span {
  color: #64748b;
  font-weight: 900;
}

.dc-compare-board strong {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  color: #0f172a;
  background: #e0f2fe;
  font-size: 1.4rem;
}

.dc-compare-board strong:last-child {
  background: #fef3c7;
}

.dc-compare-scale {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.dc-compare-scale span {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: rgba(59, 130, 246, 0.7);
}

.dc-compare-scale .other {
  background: rgba(245, 158, 11, 0.52);
  mix-blend-mode: multiply;
}

.dc-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dc-case {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(190, 202, 222, 0.78);
  border-radius: 16px;
  background: #fff;
}

.dc-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: start;
}

.dc-case-head span {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.11);
  font-size: 0.78rem;
  font-weight: 950;
}

.dc-case-head strong {
  color: #111827;
  font-size: 1.05rem;
}

.dc-case-head em {
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: #172033;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.dc-case p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.9rem;
}

.dc-case-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dc-case-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(190, 202, 222, 0.78);
  border-radius: 12px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 900;
  background: #f8fafc;
}

.dc-case-controls output {
  color: #0f172a;
  font-size: 1rem;
}

.dc-case-visual {
  min-height: 190px;
}

.dc-case-metrics {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 8px;
}

.dc-case-metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 900;
}

.dc-case-metrics b {
  color: #111827;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.dc-case-result {
  min-height: 82px;
  padding: 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 850;
  line-height: 1.58;
  background: #f8fafc;
}

.dc-price-scene,
.dc-ruler-scene,
.dc-thermo-scene,
.dc-scale-scene,
.dc-cup-scene,
.dc-watch-scene,
.dc-battery-scene,
.dc-route-scene,
.dc-rain-scene,
.dc-grade-scene,
.dc-fuel-scene,
.dc-ph-scene {
  display: grid;
  gap: 10px;
  align-items: center;
}

.dc-price-tag {
  display: grid;
  place-items: center;
  min-height: 84px;
  border: 3px solid #f97316;
  border-radius: 16px 16px 16px 4px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 2rem;
  font-weight: 950;
}

.dc-coins,
.dc-price-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dc-coins span,
.dc-coins i,
.dc-coins b,
.dc-price-digits i {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 34px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-style: normal;
  font-weight: 950;
}

.dc-ruler {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  min-height: 78px;
  padding-top: 16px;
  border: 3px solid #a16207;
  border-radius: 12px;
  background: #fef3c7;
}

.dc-ruler i {
  border-left: 2px solid #92400e;
  color: #92400e;
  font-style: normal;
  font-size: 0.72rem;
}

.dc-ruler span {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #ef4444;
}

.dc-ruler-scene strong,
.dc-thermo-scene strong,
.dc-scale-scene strong,
.dc-cup-scene strong,
.dc-watch-scene strong,
.dc-battery-scene strong,
.dc-route-scene strong,
.dc-rain-scene strong,
.dc-ph-scene strong {
  padding: 8px 10px;
  border-radius: 12px;
  color: #0f172a;
  background: #f1f5f9;
  text-align: center;
}

.dc-thermo-scene,
.dc-cup-scene,
.dc-rain-scene {
  justify-items: center;
}

.dc-thermo,
.dc-cup,
.dc-rain-gauge {
  position: relative;
  width: 72px;
  height: 142px;
  border: 4px solid #64748b;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  background: #fff;
}

.dc-thermo span,
.dc-cup span,
.dc-rain-gauge span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}

.dc-thermo span {
  background: #ef4444;
}

.dc-cup span {
  background: #38bdf8;
}

.dc-rain-gauge span {
  background: repeating-linear-gradient(0deg, #60a5fa 0 8px, #93c5fd 8px 16px);
}

.dc-cup b,
.dc-rain-gauge b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.dc-scale {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 118px;
  margin: 0 auto;
  border: 6px solid #475569;
  border-radius: 70px 70px 22px 22px;
  background: #f8fafc;
}

.dc-scale span,
.dc-watch span,
.dc-ph-meter span {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 4px;
  height: 44px;
  transform: translateX(-50%) rotate(var(--turn));
  transform-origin: bottom center;
  border-radius: 999px;
  background: #ef4444;
}

.dc-scale b {
  align-self: end;
  margin-bottom: 12px;
  font-weight: 950;
}

.dc-watch,
.dc-ph-meter {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border: 7px solid #334155;
  border-radius: 999px;
  background: #fff;
}

.dc-watch b,
.dc-ph-meter b {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #f8fafc;
  font-weight: 950;
}

.dc-phone {
  display: grid;
  place-items: center;
  width: 92px;
  height: 150px;
  margin: 0 auto;
  border: 6px solid #111827;
  border-radius: 18px;
  background: #f8fafc;
}

.dc-battery {
  position: relative;
  width: 44px;
  height: 104px;
  border: 4px solid #475569;
  border-radius: 8px;
  overflow: hidden;
}

.dc-battery span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: #22c55e;
}

.dc-battery b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 950;
}

.dc-route-line {
  position: relative;
  min-height: 72px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 70%, #94a3b8 0 9px, transparent 10px),
    radial-gradient(circle at 88% 26%, #94a3b8 0 9px, transparent 10px),
    linear-gradient(135deg, #e0f2fe, #dcfce7);
}

.dc-route-line span {
  position: absolute;
  left: 0;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: #14b8a6;
}

.dc-route-line i {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 999px;
  background: #ef4444;
}

.dc-grade-scene {
  grid-template-columns: 96px minmax(0, 1fr);
}

.dc-paper {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 3px solid #60a5fa;
  border-radius: 12px;
  background: repeating-linear-gradient(0deg, #fff 0 13px, #e0f2fe 13px 15px);
}

.dc-paper b {
  font-size: 1.8rem;
  color: #1d4ed8;
}

.dc-paper span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.dc-grade-meter {
  position: relative;
  height: 44px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.dc-grade-meter span {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
}

.dc-pump {
  display: grid;
  place-items: center;
  min-height: 124px;
  border: 5px solid #334155;
  border-radius: 18px;
  background: #f8fafc;
}

.dc-pump b {
  padding: 8px 14px;
  border-radius: 10px;
  color: #22c55e;
  background: #0f172a;
  font-size: 2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dc-pump span {
  color: #64748b;
  font-weight: 900;
}

.dc-ph-meter {
  background: conic-gradient(from 240deg, #ef4444, #f59e0b, #22c55e, #38bdf8, #ef4444);
}

.dc-ph-meter b {
  background: #fff;
}

@media (max-width: 1080px) {
  .dc-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dc-exp-workbench,
  .dc-block-model,
  .dc-grade-scene {
    grid-template-columns: 1fr;
  }

  .dc-topic .gt-nav,
  .dc-case-grid,
  .dc-case-controls,
  .dc-case-metrics,
  .dc-place-table {
    grid-template-columns: 1fr;
  }

  .dc-case-head {
    grid-template-columns: 1fr;
  }

  .dc-case-head em {
    width: fit-content;
  }
}
