.math-workshop {
  --math-ink: #365848;
  --math-teal: #527d76;
  --math-paper: #fffcf3;
  color: var(--math-ink);
  max-width: 1120px;
  margin: auto;
}
.math-teaching-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
}
.math-teaching-steps button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #bdcdb4;
  border-radius: 50%;
  background: #fffaf0;
  color: #365848;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.math-teaching-steps button[aria-current='step'] {
  background: #426e82;
  color: #fff;
  border-color: #426e82;
}
.math-teaching-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.math-segmented-demo .math-animation-scene {
  width: 100%;
  max-width: none;
  padding: 16px;
  margin: 0;
}
.math-segmented-demo .math-teaching-board .math-ten-frame {
  width: 260px;
  flex: 0 1 260px;
}
.math-teaching-board .math-ten-cell.is-original {
  background: #e1e9d6;
}
.math-teaching-board .math-ten-cell.is-first-batch {
  background: #d8e9ee;
  border-color: #88afbf;
}
.math-teaching-board .math-ten-cell.is-teaching-focus {
  outline: 2px solid #bc995a;
  outline-offset: 1px;
}
.math-teaching-board button.math-ten-cell {
  padding: 0;
  min-height: 44px;
  border: 2px dashed #426e82;
  color: #426e82;
  background: #edf3f4;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.math-teaching-board button.is-target-chosen {
  border-style: solid;
  background: #cee4eb;
  color: #365848;
}
.math-teaching-count {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff7de;
  border: 2px solid #b49255;
  color: #365848;
  font-size: 18px;
}
.math-teaching-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
}
.math-teaching-legend span::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  background: #94ad7f;
}
.math-teaching-legend span:last-child::before {
  background: #d7a26b;
}
.math-change-tray.math-teaching-tray {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.math-change-tray.math-teaching-tray > .math-split-group {
  display: grid;
  gap: 5px;
  border-bottom: 3px solid #d7a26b;
  padding-bottom: 7px;
}
.math-change-tray.math-teaching-tray > .is-first-group {
  border-color: #79a3b5;
}
.math-split-group strong {
  font-size: 15px;
  font-weight: 600;
}
.math-split-fruits {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 32px;
}
.math-split-fruits > span {
  display: inline-flex;
  width: 28px;
  height: 31px;
}
.math-teaching-panel h2 {
  margin: 8px 0 12px;
  font-size: 25px;
  line-height: 1.4;
}
.math-teaching-panel > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}
.math-teaching-panel .math-teaching-status {
  min-height: 50px;
  margin: 14px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #526e60;
}
.math-teaching-controls {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 66px;
  gap: 7px;
}
.math-teaching-controls .button {
  padding: 10px 5px;
  min-height: 50px;
  font-size: 15px;
}
.math-teaching-controls .math-play-button {
  gap: 6px;
}
.math-teaching-controls .math-play-button svg {
  width: 20px;
  height: 20px;
}
.math-teaching-secondary {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.math-teaching-secondary .button {
  flex: 1;
  min-height: 48px;
  padding: 10px 8px;
  font-size: 16px;
}
.math-fruit-flight {
  position: fixed;
  z-index: 30;
  pointer-events: none;
}
.math-fruit-flight svg {
  width: 100%;
  height: 100%;
}
@media (min-width: 901px) and (max-height: 750px) {
  .math-segmented-demo .math-demo-heading {
    margin: 8px 0;
  }
  .math-segmented-demo .math-teaching-steps {
    margin: 6px 0 10px;
  }
  .math-segmented-demo .math-animation-scene {
    padding: 12px;
  }
  .math-segmented-demo .math-teaching-legend {
    margin-bottom: 8px;
  }
  .math-segmented-demo .math-change-tray.math-teaching-tray > .math-split-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
  }
  .math-segmented-demo .math-teaching-board .math-ten-frame {
    width: 260px;
  }
  .math-segmented-demo .math-change-counts {
    font-size: 16px;
  }
  .math-segmented-demo .math-equation {
    margin-top: 8px;
    padding-top: 0;
    font-size: 32px;
    line-height: 1.3;
  }
  .math-segmented-demo .math-teaching-panel h2 {
    font-size: 22px;
    margin: 6px 0 10px;
  }
  .math-segmented-demo .math-teaching-panel > p {
    font-size: 17px;
    line-height: 1.65;
  }
  .math-segmented-demo .math-teaching-panel .math-teaching-status {
    font-size: 14px;
    margin: 10px 0;
  }
}
@media (max-width: 900px) {
  .math-teaching-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .math-teaching-panel h2 {
    font-size: 23px;
  }
  .math-teaching-controls {
    grid-template-columns: 80px minmax(0, 1fr) 80px;
  }
  .math-segmented-demo .math-teaching-board .math-ten-frame {
    flex: none;
    width: min(260px, 100%);
  }
}
.math-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 8px 12px 20px;
  border-bottom: 2px solid #d5dfcb;
}
.math-page-heading h1 {
  margin: 8px 0;
  font-size: clamp(28px, 3vw, 40px);
}
.math-page-heading p {
  font-size: 18px;
}
.math-catalog-section {
  margin: 26px 0;
}
.math-catalog-section h2 {
  font-size: 21px;
}
.math-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.math-course-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  border: 2px solid #d1ddc4;
  border-radius: 22px;
  background: var(--math-paper);
  box-shadow: 0 5px 0 #dce4d3;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.math-course-link:hover {
  transform: translateY(-3px);
  border-color: #779782;
}
.math-course-link strong {
  grid-column: 1/-1;
  font-size: 23px;
}
.math-course-link > span:not(.math-course-symbol):not(.math-course-order),
.math-course-link small {
  grid-column: 1/-1;
  line-height: 1.6;
}
.math-course-order {
  font-size: 17px;
  font-weight: 700;
}
.math-course-symbol {
  font-size: 34px;
  color: #a16a47;
  line-height: 1;
}
.math-parent-note {
  line-height: 1.8;
  margin: 28px 0;
}
.math-route-tabs {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}
.math-route-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  min-height: 54px;
  border-radius: 16px;
  border: 2px solid #b9cbb3;
  color: var(--math-ink);
  text-decoration: none;
  background: var(--math-paper);
  font-size: 19px;
  font-weight: 700;
}
.math-route-tabs a[aria-current='page'] {
  color: #fffdf5;
  background: #365848;
  border-color: #365848;
}
.math-route-tabs svg,
.math-unit-action svg,
.math-play-button svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}
.math-unit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.math-unit-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 22px;
  border: 2px solid #c7d5bd;
  border-radius: 22px;
  box-shadow: 0 4px 0 #dbe3cd;
  color: inherit;
  text-decoration: none;
  background: var(--math-paper);
}
.math-unit-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  height: 60px;
  border-radius: 20px;
  background: #f5e5c8;
  color: #96603f;
  font-size: 40px;
  font-weight: 700;
}
.math-unit-link > span:nth-child(2) {
  flex: 1;
}
.math-unit-link strong {
  display: block;
  font-size: 23px;
}
.math-advanced-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 8px;
  background: #f5e4c7;
  color: #805a3e;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.math-unit-link small {
  display: block;
  line-height: 1.6;
  margin-top: 8px;
  font-size: 16px;
}
.math-unit-action {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #426e82;
  font-size: 15px;
}
.math-demo-heading {
  margin: 22px 0 16px;
}
.math-demo-heading h1 {
  font-size: 30px;
  margin: 10px 0;
}
.math-demo-heading p {
  margin: 0;
  font-size: 19px;
}
.math-animation-scene {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
}
.math-change-counts {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 14px;
}
.math-change-counts b {
  font-size: 25px;
}
.math-ten-frames {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.math-ten-frame {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 370px);
  padding: 6px;
  border: 2px solid #8fa785;
  border-radius: 12px;
  background: #e8eddc;
}
.math-ten-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1px solid #c7d2bb;
  background: #f7f6ea;
}
.math-ten-cell svg {
  width: 86%;
  height: 86%;
}
.math-ten-cell.is-added {
  background: #f7e6c1;
  border-color: #c19960;
}
.math-ten-cell.is-removed svg {
  opacity: 0.23;
}
.math-removed-mark {
  position: absolute;
  font-size: 35px;
  color: #9d6551;
}
.math-ten-cell.is-arriving {
  animation: math-arrive 0.45s ease-out;
}
.math-ten-cell.is-departing svg {
  animation: math-depart 0.45s ease-in;
}
.math-change-tray {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  min-height: 48px;
  font-size: 15px;
}
.math-change-tray > span {
  flex: 0 0 90px;
}
.math-change-tray > div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.math-change-tray > div > span {
  display: inline-flex;
  width: 28px;
  height: 31px;
}
.math-change-tray svg {
  width: 100%;
  height: 100%;
}
.math-empty-tray {
  color: #718366;
}
.math-animation-status {
  max-width: 760px;
  min-height: 32px;
  margin: 14px auto;
  line-height: 1.7;
  text-align: center;
  font-size: 18px;
}
.math-demo-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.math-demo-controls .button {
  min-height: 54px;
}
@media (min-width: 701px) {
  .math-animation-scene .math-ten-frames,
  .math-random-study .math-ten-frames {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}
.math-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: #426e82;
  border: 2px solid #426e82;
}
.math-round-progress {
  font-size: 19px;
  font-weight: 700;
}
.arithmetic-practice-summary {
  margin: 20px 0;
}
.arithmetic-practice-summary ul {
  list-style: none;
  padding: 0;
}
.arithmetic-practice-summary li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #d5dfcb;
}
.math-random-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.math-random-choices button {
  min-height: 80px;
  font-size: 34px;
}
@keyframes math-arrive {
  from {
    transform: translate(35px, 22px);
    opacity: 0;
  }
  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}
@keyframes math-depart {
  from {
    transform: translate(0, 0);
    opacity: 1;
  }
  to {
    transform: translate(22px, 25px);
    opacity: 0.23;
  }
}
@media (prefers-reduced-motion: reduce) {
  .math-ten-cell.is-arriving,
  .math-ten-cell.is-departing svg {
    animation: none;
  }
}
@media (min-width: 701px) and (max-height: 750px) {
  .math-hub .math-page-heading img {
    width: 100px;
    height: 86px;
  }
  .math-hub .math-page-heading {
    padding-bottom: 10px;
  }
  .math-hub .math-page-heading p {
    margin: 6px 0;
  }
  .math-route-tabs {
    margin: 12px 0;
  }
  .math-unit-link {
    min-height: 106px;
    padding: 16px;
  }
  .math-demo-heading {
    margin: 10px 0;
  }
  .math-demo-heading h1 {
    margin: 6px 0;
    font-size: 26px;
  }
  .math-animation-scene {
    padding: 12px 20px;
  }
  .math-animation-scene .math-ten-frame {
    width: 260px;
  }
  .math-animation-scene .math-equation {
    margin: 10px 0 0;
  }
  .math-animation-scene .math-change-counts {
    margin-bottom: 8px;
  }
  .math-animation-scene .math-change-tray {
    margin-top: 8px;
    min-height: 32px;
  }
  .math-animation-status {
    margin: 8px auto;
  }
  .math-random-study .math-ten-frame {
    width: 240px;
  }
}
@media (max-width: 700px) {
  .math-hub .math-page-heading img {
    width: 95px;
    height: 82px;
  }
  .math-route-tabs {
    gap: 8px;
  }
  .math-route-tabs a {
    flex: 1;
    padding: 12px 8px;
    gap: 6px;
    font-size: 16px;
  }
  .math-route-tabs svg {
    width: 20px;
    height: 20px;
  }
  .math-unit-list {
    grid-template-columns: 1fr;
  }
  .math-unit-link {
    min-height: 112px;
    padding: 16px;
    gap: 12px;
  }
  .math-unit-symbol {
    flex-basis: 48px;
    height: 48px;
    font-size: 32px;
  }
  .math-unit-link strong {
    font-size: 21px;
  }
  .math-unit-link small {
    font-size: 14px;
  }
  .math-unit-action {
    font-size: 13px;
  }
  .math-demo-heading h1 {
    font-size: 26px;
  }
  .math-animation-scene {
    padding: 15px;
  }
  .math-change-counts {
    font-size: 14px;
    gap: 6px;
  }
  .math-change-counts b {
    font-size: 22px;
  }
  .math-demo-controls > * {
    flex: 1 1 130px;
  }
  .math-random-study .math-answer-panel {
    padding-top: 0;
  }
}
@media (min-width: 701px) and (max-height: 750px) {
  .math-demo-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin: 8px 0;
  }
  .math-demo-heading .eyebrow {
    width: 100%;
    font-size: 13px;
  }
  .math-demo-heading h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
  }
  .math-demo-heading p {
    margin: 0;
    font-size: 17px;
  }
  .math-animation-scene .math-ten-frame {
    width: 220px;
  }
  .math-animation-scene .math-equation {
    margin: 6px 0 0;
    padding-top: 0;
    font-size: 32px;
    line-height: 1.3;
  }
  .math-animation-status {
    min-height: 28px;
    font-size: 16px;
    line-height: 1.5;
    margin: 6px auto;
  }
}
.math-study-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.math-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.math-step-links a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid #bbcbb6;
  border-radius: 12px;
  color: var(--math-ink);
  text-decoration: none;
  background: #fffdf5;
  font-weight: 700;
}
.math-step-links [aria-current='step'] {
  background: #dce9d2;
  border: 2px solid #5c856c;
}
.math-study-heading {
  position: relative;
  margin: 20px 0;
  padding-right: 156px;
}
.math-study-heading h1 {
  font-size: clamp(23px, 2.5vw, 32px);
  margin: 8px 0;
}
.math-study-heading p {
  font-size: 18px;
  line-height: 1.7;
}
.math-study-heading > button {
  position: absolute;
  right: 0;
  top: 25px;
}
.math-study-heading .math-audio-status {
  min-height: 0;
  margin: 0;
  font-size: 14px;
  color: #527d76;
}
.math-study-heading .math-audio-status:empty {
  display: none;
}
.math-learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.math-scene {
  min-width: 0;
  background: #f8f4e6;
  border: 2px solid #dedac3;
  border-radius: 26px;
  padding: 22px;
}
.math-two-groups {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 210px;
}
.math-existing-group,
.math-basket,
.math-new-group {
  min-width: 0;
  flex: 1;
  text-align: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 8px;
  border-radius: 20px;
}
.math-existing-group {
  background: #e3ead4;
  border: 2px dashed #a4b68a;
}
.math-existing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.math-existing-heading strong {
  white-space: nowrap;
}
.math-new-group > strong {
  min-height: 44px;
  display: grid;
  place-items: center;
}
.math-peek-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px;
  color: #245f6e;
  border: 2px solid #75a5ac;
  border-radius: 14px;
  background: #e0eff1;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.math-peek-control svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.math-peek-control.needs-peek,
.math-peek-control.guide-cue {
  background: #cae4eb;
  border-color: #407e8c;
  box-shadow: 0 0 0 3px #d9e9d4;
}
.math-quantity-bag {
  width: 100px;
  height: 110px;
}
.math-new-group {
  background: #f6e4c8;
}
.math-basket {
  background: #ebdfc5;
  border-bottom: 6px solid #c2a67f;
}
.math-two-groups strong,
.math-total {
  font-size: 20px;
}
.math-operation {
  font-size: 30px;
  color: #8c6e4b;
}
.math-object-set {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 110px;
}
.math-object {
  flex: 0 0 48px;
  width: 48px;
  height: 54px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b604e;
}
button.math-object {
  cursor: pointer;
}
.math-object svg {
  width: 42px;
  height: 42px;
  overflow: visible;
}
.math-object.is-counted {
  background: #fff9e6;
  border-color: #738e6a;
}
.math-mark {
  position: absolute;
  top: -6px;
  right: -2px;
  font-size: 17px;
  background: #fff9e6;
  border-radius: 50%;
}
.math-count-label {
  position: absolute;
  inset: auto 0 -11px;
  text-align: center;
  font-weight: 700;
  background: #fff9e6;
  border-radius: 10px;
  z-index: 1;
}

.math-hidden-group {
  font-size: 54px;
  padding: 18px;
  color: #917c5c;
}
.math-equation {
  text-align: center;
  padding: 20px 0 4px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
}
.math-equation span {
  color: #9b623e;
}
.math-total {
  text-align: center;
  margin: 0 0 18px;
}
.math-assist-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.math-assist-actions .button {
  min-height: 48px;
}
.math-demo-copy {
  line-height: 1.8;
  border-top: 1px solid #d7d4bf;
  padding-top: 18px;
  margin-bottom: 0;
}
.math-answer-panel {
  padding: 18px 0 0;
}
.math-answer-prompt {
  font-size: 23px;
  text-align: center;
  margin: 0 0 24px;
}
.math-answer-prompt output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  border-bottom: 3px solid #8ba289;
  margin: 0 8px;
  font-size: 34px;
  font-weight: 700;
}
.math-number-pad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.math-number-pad button {
  min-height: 58px;
  padding: 8px;
  border: 2px solid #c4d3bc;
  border-radius: 17px;
  color: var(--math-ink);
  font: inherit;
  font-size: 28px;
  font-weight: 700;
  background: var(--math-paper);
  box-shadow: 0 3px 0 #d4ddc9;
  cursor: pointer;
}
.math-number-pad button[aria-pressed='true'] {
  background: #d4e5c5;
  border-color: #4c765a;
  box-shadow: 0 3px 0 #6c906c;
}
.math-number-pad button.is-wrong {
  background: #f6e4da;
  border-color: #b3694f;
  box-shadow: 0 3px 0 #c4917b;
}
.math-feedback {
  min-height: 50px;
  line-height: 1.7;
  font-size: 16px;
  margin: 18px 0 12px;
}
.math-feedback.is-retry {
  color: #a45139;
}
.math-feedback.is-correct {
  color: #416d4a;
}
.math-continue {
  width: 100%;
  min-height: 54px;
  font-size: 20px;
}
.math-giveaway {
  padding: 16px 0;
}
.math-object.is-sent {
  opacity: 0.4;
  background: #e9dfc9;
  outline: 2px dashed #9e9279;
}
.math-recipient {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #eee5d1;
  border-radius: 16px;
  padding: 10px;
  font-size: 19px;
}
.math-rabbit {
  width: 64px;
  height: 64px;
}
.math-finish {
  text-align: center;
  padding: 40px 12px;
}
.math-finish .button-row,
.math-finish .math-step-links {
  justify-content: center;
  margin-top: 24px;
}
.math-finish-seal {
  display: grid;
  place-items: center;
  background: #e0e9cf;
  border: 3px solid #90aa7d;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  font-size: 50px;
  color: #4f7856;
  margin: 0 auto 24px;
}
.math-workshop [hidden] {
  display: none !important;
}
.math-workshop :focus-visible {
  outline: 3px solid #9c703b;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .math-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .math-page-heading img {
    width: 140px;
    height: auto;
  }
  .math-learning-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .math-study-heading {
    padding-right: 0;
  }
  .math-study-heading > button {
    position: static;
  }
  .math-number-pad {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .math-number-pad button {
    min-height: 52px;
    font-size: 23px;
  }
  .math-answer-panel {
    padding-top: 0;
  }
  .math-answer-prompt {
    margin-bottom: 14px;
  }
  .math-scene {
    padding: 16px 12px;
  }
  .math-two-groups {
    min-height: 190px;
    gap: 8px;
  }
}
@media (max-width: 440px) {
  .math-page-heading img {
    width: 100px;
  }
  .math-page-heading {
    padding-inline: 0;
    gap: 8px;
  }
  .math-page-heading p {
    font-size: 16px;
  }
  .math-course-grid {
    grid-template-columns: 1fr;
  }
  .math-course-link {
    grid-template-columns: auto 1fr auto;
    gap: 8px 14px;
    padding: 18px;
  }
  .math-course-link strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 21px;
  }
  .math-course-symbol {
    grid-column: 3;
    grid-row: 1;
  }
  .math-course-link > span:not(.math-course-symbol):not(.math-course-order),
  .math-course-link small {
    grid-column: 2/-1;
  }
  .math-number-pad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .math-existing-group,
  .math-basket,
  .math-new-group {
    padding-inline: 4px;
  }
  .math-two-groups strong {
    font-size: 17px;
  }
  .math-study-heading p {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .math-course-link {
    transition: none;
  }
}
@media (min-width: 761px) and (max-height: 760px) {
  .app-shell:has(.math-study) {
    padding-block: 8px;
  }
  .app-shell:has(.math-study) .site-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 8px;
    min-height: 0;
    height: auto;
  }
  .app-shell:has(.math-study) .town-only-nav,
  .app-shell:has(.math-study) .bear-guide {
    display: none;
  }
  .app-shell:has(.math-study) .main {
    padding-top: 10px;
  }
  .math-study-top {
    min-height: 44px;
  }
  .math-study-heading {
    margin: 10px 0 12px;
  }
  .math-study-heading h1 {
    font-size: 25px;
    margin: 4px 0;
  }
  .math-study-heading p {
    font-size: 16px;
    margin: 4px 0;
    line-height: 1.5;
  }
  .math-study-heading > button {
    top: 12px;
  }
  .math-study-heading .math-audio-status {
    position: absolute;
    right: 0;
    top: 66px;
    max-width: 156px;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
  }
  .math-scene {
    padding: 12px;
  }
  .math-two-groups {
    min-height: 166px;
  }
  .math-existing-group,
  .math-basket,
  .math-new-group {
    gap: 8px;
    padding-block: 10px;
  }
  .math-object-set {
    min-height: 78px;
  }
  .math-equation {
    padding: 10px 0 0;
    font-size: 30px;
  }
  .math-assist-actions {
    margin-top: 12px;
  }
  .math-total {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .math-giveaway {
    padding: 8px 0;
    min-height: 72px;
  }
  .math-rabbit {
    width: 48px;
    height: 48px;
  }
  .math-recipient {
    padding: 4px;
  }
  .math-answer-panel {
    padding-top: 0;
  }
  .math-answer-prompt {
    margin-bottom: 12px;
    font-size: 21px;
  }
  .math-answer-prompt output {
    min-height: 44px;
    font-size: 28px;
  }
  .math-number-pad {
    gap: 10px;
  }
  .math-number-pad button {
    min-height: 50px;
    font-size: 25px;
    line-height: 1.1;
    padding: 6px;
  }
  .math-feedback {
    min-height: 42px;
    margin: 12px 0;
  }
  .math-demo-copy {
    font-size: 14px;
    line-height: 1.5;
    padding-top: 8px;
    margin-top: 8px;
  }
}
