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

.ang-lab {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.ang-lab-visual,
.ang-exp-visual {
  min-height: 320px;
  padding: 18px;
  border: 1px solid rgba(190, 202, 222, 0.82);
  border-radius: 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 30px),
    repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.05) 0 1px, transparent 1px 30px);
  overflow: hidden;
}

.ang-case-grid {
  grid-template-columns: repeat(3, minmax(270px, 1fr));
}

.ang-case {
  display: grid;
  gap: 12px;
  min-height: 510px;
  padding: 14px;
  border: 1px solid rgba(190, 202, 222, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.05);
}

.ang-case-head {
  display: grid;
  gap: 4px;
}

.ang-case-head span {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 950;
}

.ang-case-head strong {
  color: #0f172a;
  font-size: 1.16rem;
  line-height: 1.2;
}

.ang-case p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.ang-case-controls label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 900;
}

.ang-case-controls input {
  width: 100%;
}

.ang-case-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fafc, #eef6ff);
  overflow: hidden;
}

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

.ang-case-metrics span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.74rem;
  font-weight: 900;
}

.ang-case-metrics b {
  color: #0f172a;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.ang-case-result {
  min-height: 60px;
  padding: 12px;
  border-radius: 14px;
  color: #254155;
  background: rgba(236, 253, 245, 0.85);
  font-weight: 850;
  line-height: 1.45;
}

.ang-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 260px);
  height: 210px;
  margin: auto;
}

.ang-protractor {
  position: absolute;
  left: 30px;
  bottom: 24px;
  width: 180px;
  height: 90px;
  border-radius: 180px 180px 0 0;
  background:
    repeating-conic-gradient(from 180deg at 50% 100%, rgba(51, 65, 85, 0.18) 0 1deg, transparent 1deg 10deg),
    rgba(191, 219, 254, 0.52);
  border: 3px solid rgba(37, 99, 235, 0.38);
  border-bottom: 0;
}

.base-ray,
.turn-ray {
  position: absolute;
  left: 120px;
  bottom: 24px;
  width: 110px;
  height: 7px;
  border-radius: 999px;
  background: #2563eb;
  transform-origin: left center;
}

.base-ray {
  transform: rotate(0deg);
}

.turn-ray {
  background: #ef4444;
  transform: rotate(calc(-1 * var(--deg)));
}

.base-ray::after,
.turn-ray::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid currentColor;
  color: inherit;
  transform: translateY(-50%);
}

.angle-arc {
  position: absolute;
  left: 120px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border: 5px solid #f59e0b;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  transform: rotate(calc(-1 * var(--deg)));
  transform-origin: left bottom;
}

.ang-stage::after {
  content: "";
  position: absolute;
  left: 111px;
  bottom: 15px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.12);
}

.ang-stage b {
  position: absolute;
  left: 136px;
  bottom: 88px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: #2563eb;
  font-weight: 950;
}

.ang-door-prop,
.ang-clock-prop,
.ang-road-prop,
.ang-scissors-prop,
.ang-roof-prop,
.ang-camera-prop,
.ang-pizza-prop,
.ang-fan-prop,
.ang-ramp-prop,
.ang-compass-prop,
.ang-book-prop,
.ang-robot-prop {
  position: absolute;
  inset: auto 14px 16px;
  height: 46px;
  border-radius: 12px;
  opacity: 0.9;
}

.ang-door-prop {
  left: 30px;
  right: auto;
  width: 96px;
  height: 130px;
  border: 8px solid #92400e;
  border-radius: 12px 12px 0 0;
  background: #fed7aa;
}

.ang-clock-prop {
  left: 50%;
  bottom: 20px;
  width: 95px;
  height: 95px;
  border-radius: 999px;
  border: 7px solid #334155;
  background: #fff;
  transform: translateX(-50%);
}

.ang-road-prop {
  background: linear-gradient(135deg, #475569 0 45%, #facc15 46% 54%, #475569 55%);
}

.ang-scissors-prop {
  left: 50%;
  width: 150px;
  height: 70px;
  transform: translateX(-50%);
}

.ang-scissors-prop::before,
.ang-scissors-prop::after {
  content: "";
  position: absolute;
  left: 18px;
  width: 110px;
  height: 8px;
  border-radius: 999px;
  background: #64748b;
  transform-origin: left center;
}

.ang-scissors-prop::before { top: 28px; transform: rotate(-22deg); }
.ang-scissors-prop::after { top: 28px; transform: rotate(22deg); }

.ang-roof-prop {
  background: #fff7ed;
}

.ang-roof-prop::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 10px;
  height: 70px;
  background: #b45309;
  clip-path: polygon(50% 0, 100% 70%, 0 70%);
}

.ang-camera-prop {
  left: 28px;
  right: auto;
  width: 86px;
  background: #111827;
}

.ang-camera-prop::after {
  content: "";
  position: absolute;
  left: 70px;
  top: -28px;
  width: 120px;
  height: 100px;
  background: rgba(245, 158, 11, 0.18);
  clip-path: polygon(0 45%, 100% 0, 100% 100%);
}

.ang-pizza-prop {
  left: 50%;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: conic-gradient(#f97316 0 70deg, #fde68a 70deg);
  transform: translateX(-50%);
}

.ang-fan-prop {
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: conic-gradient(#60a5fa 0 35deg, transparent 35deg 120deg, #60a5fa 120deg 155deg, transparent 155deg 240deg, #60a5fa 240deg 275deg, transparent 275deg);
  transform: translateX(-50%);
}

.ang-ramp-prop {
  background: linear-gradient(155deg, transparent 0 45%, #14b8a6 46% 57%, #f8fafc 58%);
}

.ang-compass-prop::before,
.ang-compass-prop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 112px;
  border-radius: 999px;
  background: #475569;
  transform-origin: top center;
}

.ang-compass-prop::before { transform: rotate(-18deg); }
.ang-compass-prop::after { transform: rotate(18deg); }

.ang-book-prop {
  left: 50%;
  width: 150px;
  height: 92px;
  transform: translateX(-50%);
}

.ang-book-prop::before,
.ang-book-prop::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 74px;
  height: 88px;
  background: #dbeafe;
  border: 4px solid #60a5fa;
}

.ang-book-prop::before { right: 50%; transform: skewY(10deg); }
.ang-book-prop::after { left: 50%; transform: skewY(-10deg); }

.ang-robot-prop {
  left: 50%;
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: #14b8a6;
  transform: translateX(-50%);
}

.ang-robot-prop::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 26px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 32px solid #14b8a6;
}

.ang-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);
}

.ang-experiment,
.ang-exp-board {
  display: grid;
  gap: 18px;
}

.ang-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);
}

.ang-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;
}

.ang-exp-story > strong {
  color: #102033;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.ang-exp-visual .ang-stage,
.ang-lab-visual .ang-stage {
  height: 270px;
}

html[lang="en"] .ang-case-head strong,
html[lang="en"] .ang-case-result,
html[lang="en"] .ang-case-metrics b,
html[lang="en"] .ang-exp-story > strong,
html[lang="en"] .ang-exp-story p {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

html[lang="en"] .ang-case-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

html[lang="en"] .ang-case {
  min-height: 545px;
}

@media (max-width: 980px) {
  .ang-lab,
  .ang-exp-workbench {
    grid-template-columns: 1fr;
  }

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

  .ang-case-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ang-topic .gt-nav,
  .ang-topic-layout .gt-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
