:root {
  --color-bg: #F6F6F3;
  --color-black: #050505;
  --color-red: #FF2A1B;
  --color-grey: #D9D9D9;
  --color-white: #FFFFFF;
  --color-mid: #8A8A84;
  --color-line: rgba(5, 5, 5, 0.16);
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-ui: "Helvetica Neue", Arial, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --sidebar: 230px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 42, 27, 0.06), transparent 34rem),
    linear-gradient(rgba(5, 5, 5, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.018) 1px, transparent 1px),
    var(--color-bg);
  background-size: auto, 72px 72px, 72px 72px, auto;
  color: var(--color-black);
  font-family: var(--font-ui);
}

#app,
.app-shell,
.landing {
  max-width: 100%;
  overflow-x: hidden;
}

button,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

progress {
  width: 100%;
  height: 8px;
  border: 0;
  background: var(--color-grey);
  appearance: none;
}

progress::-webkit-progress-bar {
  background: var(--color-grey);
}

progress::-webkit-progress-value {
  background: var(--color-red);
  transition: width 0.35s ease;
}

progress::-moz-progress-bar {
  background: var(--color-red);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.view {
  position: relative;
  min-width: 0;
  padding: 42px 46px 38px 58px;
  overflow-x: clip;
}

.view::before {
  content: "";
  position: fixed;
  right: 24%;
  top: 90px;
  z-index: -1;
  width: 174px;
  height: 88px;
  background-image: radial-gradient(var(--color-black) 2px, transparent 2.5px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}

.section-label,
.micro-copy,
.metric span,
.page-title p,
.pet-status h3,
.stat-row p,
.need-panel span,
.action-card span,
.feedback-strip,
.side-heading,
.teacher-controls span,
.settings-panel span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  line-height: 1.25;
  text-transform: uppercase;
}

.section-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-red);
}

.brand-mark {
  display: inline-grid;
  align-items: center;
  justify-items: start;
  color: inherit;
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.7;
}

.sidebar-nav {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 42px 0 36px;
  background: #020202;
  color: var(--color-white);
}

.sidebar-nav > .brand-mark {
  margin-left: 42px;
}

.sidebar-pet {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 30px 0 28px;
  color: var(--color-white);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-pet .pet-figure {
  width: 126px;
  height: 126px;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  background: var(--color-black);
}

.sidebar-pet .pet-figure img {
  transform: scale(1.66);
  mix-blend-mode: screen;
}

.sidebar-pet span {
  color: #cfcfcf;
}

.sidebar-pet em,
.home-copy em,
.need-callout strong,
.need-callout span,
.next-evolution b,
.reward-card b,
.mission-progress-card em,
.legend-stage h3 {
  color: var(--color-red);
  font-style: normal;
}

.sidebar-nav nav {
  display: grid;
  gap: 2px;
}

.sidebar-nav nav button,
.logout {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 15px;
  min-height: 56px;
  padding: 0 22px 0 38px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-align: left;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-nav nav button:hover,
.logout:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav nav button.active {
  background: linear-gradient(90deg, rgba(255, 42, 27, 0.95), rgba(255, 42, 27, 0.42));
}

.sidebar-nav nav button.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: var(--color-red);
}

.sidebar-nav nav b {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  text-align: center;
}

.logout {
  margin-top: auto;
  width: 100%;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 68px;
  margin-bottom: 4px;
}

.micro-copy {
  writing-mode: vertical-rl;
  margin-top: 4px;
  color: rgba(5, 5, 5, 0.66);
}

.top-metrics {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 42px;
}

.metric {
  display: grid;
  grid-template-columns: auto auto 28px;
  align-items: center;
  gap: 8px;
}

.metric strong {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.metric em {
  margin-left: 4px;
  color: var(--color-black);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

.metric button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.metric.xp {
  grid-template-columns: 1fr;
  min-width: 168px;
}

.menu-button {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  background: var(--color-black);
}

.menu-button span {
  display: block;
  width: 34px;
  height: 6px;
  margin: 3px 0;
  background: var(--color-white);
}

.page-title {
  margin-bottom: var(--space-4);
}

.page-title h1,
.home-copy h1,
.landing h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(78px, 6.9vw, 118px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

.page-title p {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.38;
}

.page-title i {
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 20px;
  background: var(--color-red);
}

.pet-figure {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  isolation: isolate;
  animation: petIdle 3.4s ease-in-out infinite;
}

.pet-figure img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.05);
}

.pet-small img {
  transform: scale(1.9);
}

.pet-medium img {
  transform: scale(1.55);
}

.pet-hero img {
  transform: scale(1.32);
}

.pet-small {
  width: 104px;
  height: 104px;
}

.pet-medium {
  width: min(350px, 100%);
  height: 300px;
}

.pet-hero {
  width: min(690px, 100%);
  height: min(620px, 48vw);
  min-height: 440px;
}

.pet-figure.happy {
  animation-duration: 2.8s;
}

.pet-figure.sad {
  filter: grayscale(0.22);
  animation-duration: 4.8s;
}

.pet-figure.evolving {
  animation: evolvePulse 1.2s ease-in-out infinite;
}

.pet-float-shadow {
  position: absolute;
  left: 29%;
  bottom: 7%;
  z-index: 1;
  width: 42%;
  height: 22px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.26);
  filter: blur(8px);
  animation: petShadow 3.4s ease-in-out infinite;
}

@keyframes petIdle {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes petShadow {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50% { transform: scale(0.82); opacity: 0.14; }
}

@keyframes evolvePulse {
  0%, 100% { transform: translateY(0) scale(1); filter: saturate(1); }
  50% { transform: translateY(-14px) scale(1.03); filter: saturate(1.35); }
}

.red-rectangle {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 520px;
  background: var(--color-red);
}

.dot-grid {
  position: absolute;
  z-index: 4;
  width: 168px;
  height: 132px;
  background-image: radial-gradient(var(--color-black) 2px, transparent 2.5px);
  background-size: 20px 20px;
  opacity: 0.75;
}

.plus-mark {
  position: absolute;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.75;
  pointer-events: none;
}

.plus-mark.red {
  color: var(--color-red);
}

.plus-mark.black {
  color: var(--color-black);
}

.pixel-heart {
  position: absolute;
  z-index: 4;
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
}

.black-panel {
  background: var(--color-black);
  color: var(--color-white);
}

.primary-cta,
.black-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 68px;
  padding: 0 36px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease;
}

.primary-cta:hover,
.black-submit:hover,
.action-card:hover,
.shop-grid button:hover,
.shape-panel button:hover,
.quick-actions button:hover,
.outline-button:hover {
  transform: translateY(-2px);
}

.primary-cta.small {
  min-height: 58px;
  padding: 0 30px;
  font-size: 16px;
}

.black-submit {
  background: var(--color-black);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.outline-button:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(520px, 1.18fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 190px);
}

.home-copy h1 {
  margin: 28px 0 18px;
  font-size: clamp(92px, 8.6vw, 140px);
}

.home-copy h2 {
  margin: 0 0 52px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
}

.xp-line {
  display: grid;
  grid-template-columns: 38px minmax(150px, 1fr) 106px;
  align-items: center;
  gap: 16px;
  width: min(490px, 100%);
  font-weight: 900;
}

.xp-line em {
  color: var(--color-black);
  font-size: 14px;
}

.need-callout {
  margin: 46px 0 24px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.quick-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.quick-actions button:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.pet-hero-scene {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: end center;
}

.pet-hero-scene .red-rectangle {
  right: 7%;
  top: 7%;
}

.pet-hero-scene .pet-figure {
  z-index: 3;
  align-self: end;
}

.pet-hero-scene .dot-grid {
  right: 0;
  bottom: 120px;
}

.pet-hero-scene .plus-mark.black {
  right: 0;
  top: 36%;
}

.pet-hero-scene .plus-mark.red {
  left: 3%;
  bottom: 110px;
  font-size: 92px;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-red);
  text-stroke: 2px var(--color-red);
}

.pet-hero-scene .pixel-heart {
  top: 125px;
  left: 40%;
}

.home-side,
.play-side,
.challenge-side,
.build-side,
.mission-side,
.evo-side,
.shop-side,
.teacher-side,
.settings-side {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

.pet-status,
.next-evolution,
.streak-panel,
.need-panel,
.reward-card,
.budget-panel,
.build-challenge,
.reward-preview,
.bonus-panel,
.egg-panel,
.leaderboard-panel,
.teacher-tip,
.settings-panel,
.area-progress,
.class-progress,
.lesson-panel,
.teacher-controls {
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.74);
}

.pet-status {
  padding: 28px;
}

.pet-status header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pet-status header span {
  width: 24px;
  height: 4px;
  background: var(--color-red);
}

.stat-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
}

.stat-row > b {
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  text-align: center;
}

.stat-row p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
}

.stat-row em {
  font-style: normal;
}

.pet-status.compact {
  padding: 22px 24px;
}

.pet-status.compact .stat-row {
  margin: 10px 0;
}

.pet-status.compact .stat-row > b {
  font-size: 28px;
}

.next-evolution {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 16px;
  min-height: 146px;
  padding: 24px 26px 0;
  overflow: hidden;
}

.next-evolution h3,
.streak-panel small,
.reward-card h3,
.build-challenge h3,
.reward-preview h3,
.bonus-panel h3,
.egg-panel h3,
.teacher-side h3,
.class-progress h3,
.area-progress h3,
.lesson-panel h3,
.teacher-controls h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.next-evolution p {
  margin: 10px 0 0;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.next-evolution > span {
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 1;
}

.next-evolution progress {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0 -26px;
  width: calc(100% + 52px);
}

.streak-panel {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: end;
  gap: 12px;
  padding: 0 22px 22px;
  border-left: 2px solid var(--color-black);
}

.streak-panel small {
  grid-column: 1 / -1;
  margin: 0 0 4px -22px;
  padding: 10px 16px;
  background: var(--color-black);
  color: var(--color-white);
}

.streak-panel strong {
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  line-height: 0.9;
}

.streak-panel span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gameplay-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
  min-height: 136px;
  margin: 28px -46px -38px -58px;
  padding: 24px 52px;
  background: var(--color-black);
  color: var(--color-white);
}

.gameplay-footer h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.footer-steps span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-align: center;
  text-transform: uppercase;
}

.footer-steps span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 30px);
  width: calc(100% - 42px);
  border-top: 2px dotted rgba(255, 255, 255, 0.38);
}

.footer-steps b,
.journey-panel b,
.lesson-panel b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #555;
  color: var(--color-white);
  font-weight: 900;
}

.footer-steps .active b,
.footer-steps .done b,
.journey-panel .active b,
.journey-panel .done b {
  background: var(--color-red);
}

.gameplay-footer aside {
  display: grid;
  align-content: center;
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.gameplay-footer p {
  margin: 0;
  color: #aaa;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gameplay-footer strong {
  font-size: 44px;
  line-height: 1;
}

.play-grid,
.challenge-layout,
.build-layout,
.evolution-layout,
.shop-layout,
.teacher-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 390px;
  gap: 42px;
}

.home-grid > *,
.play-grid > *,
.challenge-layout > *,
.build-layout > *,
.mission-layout > *,
.evolution-layout > *,
.shop-layout > *,
.teacher-layout > *,
.settings-layout > *,
.build-main > * {
  min-width: 0;
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(600px, 1fr) minmax(250px, 0.42fr) 360px;
  gap: 34px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 22px;
  max-width: 930px;
}

.action-card {
  position: relative;
  display: grid;
  min-height: 238px;
  padding: 26px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-black);
  text-align: left;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.action-card.recommended {
  background: var(--color-black);
  color: var(--color-white);
}

.action-card.recommended::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 92px;
  height: 92px;
  background: var(--color-red);
}

.action-card b {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.8;
}

.action-card strong {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.action-card p {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 8px 0 18px;
  font-weight: 700;
  line-height: 1.42;
}

.action-card em {
  align-self: end;
  color: var(--color-red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pet-focus-card {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: end center;
  overflow: hidden;
}

.pet-focus-card .red-rectangle {
  right: 12px;
  top: 28px;
  width: 180px;
  height: 250px;
}

.pet-focus-card .pet-figure {
  z-index: 2;
}

.pet-focus-card.compact {
  min-height: 280px;
}

.pet-focus-card .plus-mark.black {
  right: 12px;
  top: 54px;
  font-size: 86px;
}

.need-panel {
  padding: 24px;
}

.need-panel strong {
  display: block;
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.need-panel p {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.math-question-card {
  position: relative;
  width: min(910px, 100%);
  padding: 36px;
  background: var(--color-black);
  color: var(--color-white);
}

.math-question-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -86px;
  z-index: -1;
  width: 178px;
  height: 448px;
  background: var(--color-red);
}

.math-question-card header,
.math-question-card footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.math-question-card header {
  color: var(--color-red);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.math-question-card header em {
  color: #aaa;
  font-style: normal;
}

.math-question-card h2 {
  margin: 48px 0;
  font-family: var(--font-display);
  font-size: clamp(74px, 6.6vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-align: center;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.answer-grid button {
  min-height: 104px;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.answer-grid button:hover {
  transform: translateY(-2px);
}

.answer-grid button.selected {
  background: var(--color-red);
  color: var(--color-white);
}

.math-question-card footer {
  align-items: center;
  margin-top: 28px;
}

.math-question-card footer p {
  max-width: 390px;
  margin: 0;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.35;
  text-transform: uppercase;
}

.feedback-strip {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  width: min(910px, 100%);
  margin-top: 26px;
}

.feedback-strip b {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
}

.feedback-strip p {
  margin: 0;
}

.feedback-strip span {
  color: var(--color-red);
}

.reward-card {
  position: relative;
  min-height: 126px;
  padding: 24px;
}

.reward-card p {
  margin: 0;
  font-weight: 900;
  line-height: 1.5;
  text-transform: uppercase;
}

.reward-card b {
  position: absolute;
  right: 24px;
  bottom: 8px;
  font-family: var(--font-display);
  font-size: 82px;
  line-height: 0.8;
}

.build-main {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(420px, 1fr);
  gap: 18px 26px;
  align-items: center;
}

.room-stats {
  align-self: center;
  min-height: 318px;
  padding: 26px;
}

.room-stats p {
  margin: 20px 0;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.room-stats strong {
  display: block;
  margin-top: 7px;
  color: var(--color-white);
  font-size: 20px;
  letter-spacing: 0;
}

.room-stats b {
  display: block;
  margin-top: 28px;
  color: var(--color-red);
  font-size: 13px;
  letter-spacing: 1px;
}

.room-builder {
  position: relative;
  min-height: 455px;
  display: grid;
  place-items: center;
}

.room-builder::before {
  content: "+";
  position: absolute;
  right: 5%;
  top: 7%;
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 104px;
  font-weight: 900;
}

.iso-room {
  position: relative;
  width: min(560px, 100%);
  height: 390px;
  transform: rotateX(54deg) rotateZ(-42deg);
  transform-style: preserve-3d;
}

.iso-room .floor {
  position: absolute;
  inset: 120px 60px 20px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    #171717;
  background-size: 26px 26px;
  border: 12px solid #050505;
}

.wall {
  position: absolute;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.12) 1px, transparent 1px),
    linear-gradient(rgba(5,5,5,0.10) 1px, transparent 1px),
    #ededeb;
  background-size: 24px 18px;
  border: 10px solid #111;
}

.wall.left {
  left: 61px;
  top: 26px;
  width: 246px;
  height: 150px;
  transform: rotateX(90deg);
  transform-origin: bottom;
}

.wall.right {
  right: 58px;
  top: 25px;
  width: 246px;
  height: 150px;
  transform: rotateX(90deg);
  transform-origin: bottom;
}

.bed,
.shelf,
.window,
.rug {
  position: absolute;
  z-index: 4;
  transform: translateZ(22px);
}

.bed {
  right: 122px;
  bottom: 86px;
  width: 150px;
  height: 58px;
  background: #060606;
  border: 12px solid #111;
}

.bed::after {
  content: "";
  position: absolute;
  left: 18px;
  top: -3px;
  width: 44px;
  height: 36px;
  background: var(--color-red);
}

.shelf {
  left: 132px;
  bottom: 100px;
  width: 64px;
  height: 92px;
  border: 12px solid #090909;
  background: #202020;
}

.window {
  right: 205px;
  top: 108px;
  width: 72px;
  height: 72px;
  border: 10px solid #111;
  border-radius: 50%;
}

.rug {
  left: 246px;
  bottom: 46px;
  width: 126px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-red);
}

.room-pet {
  position: absolute;
  left: 284px;
  bottom: 88px;
  z-index: 7;
  transform: rotateZ(42deg) rotateX(-54deg) translateZ(46px);
}

.room-pet .pet-figure {
  width: 108px;
  height: 108px;
  animation: none;
}

.room-pet .pet-figure img {
  transform: scale(1.5);
}

.shape-panel {
  grid-column: 2;
  padding: 18px;
}

.shape-panel h3 {
  margin: 0 0 12px;
  color: var(--color-red);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shape-panel div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.shape-panel button {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 94px;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: transform 0.18s ease, border 0.18s ease;
}

.shape-panel button.active {
  border-color: var(--color-red);
  box-shadow: inset 0 0 0 1px var(--color-red);
}

.shape-panel i {
  display: block;
  width: 42px;
  height: 34px;
  border: 3px solid currentColor;
}

.calc-panel {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--color-line);
  background: rgba(255,255,255,0.72);
}

.calc-panel span {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.calc-panel strong {
  font-size: 26px;
}

.calc-panel em {
  color: var(--color-red);
  font-style: normal;
}

.steppers {
  display: grid;
  grid-template-columns: 38px 26px 38px 38px 26px 38px;
  align-items: center;
  gap: 5px;
}

.steppers button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--color-black);
  font-size: 22px;
  font-weight: 900;
}

.steppers b {
  text-align: center;
}

.budget-panel,
.build-challenge,
.reward-preview,
.bonus-panel,
.egg-panel {
  padding: 24px;
}

.budget-panel strong {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.9;
}

.budget-panel p,
.build-challenge p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.side-heading {
  margin: 0 0 14px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.shop-grid.large {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  max-width: 850px;
  margin-top: 26px;
}

.shop-grid button {
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 0.18s ease, background 0.18s ease;
}

.shop-grid button.owned {
  background: var(--color-black);
  color: var(--color-white);
}

.shop-grid b {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.shop-grid span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shop-grid em {
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.build-challenge strong {
  display: block;
  margin-top: 16px;
  color: var(--color-red);
  font-size: 30px;
  font-weight: 900;
}

.mission-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-black);
  color: var(--color-white);
}

.mission-art {
  position: relative;
  min-height: 300px;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.98), rgba(0,0,0,0.72), rgba(0,0,0,0.28)),
    radial-gradient(circle at 78% 32%, var(--color-red) 0 90px, transparent 91px),
    repeating-linear-gradient(112deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #0d0d0d, #222);
}

.mission-art::after {
  content: "";
  position: absolute;
  right: 78px;
  top: 62px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--color-black) 2px, transparent 2.5px);
  background-size: 18px 18px;
}

.mission-art span {
  color: var(--color-red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mission-art h2 {
  max-width: 520px;
  margin: 42px 0 22px;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.mission-art p {
  max-width: 420px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}

.mission-art b {
  position: absolute;
  right: 32px;
  bottom: 28px;
  font-family: var(--font-display);
  font-size: 74px;
  line-height: 0.7;
}

.mission-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.16);
}

.mission-meta article {
  min-height: 128px;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.22);
}

.mission-meta article:last-child {
  border-right: 0;
}

.mission-meta b,
.mission-meta strong {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mission-meta strong {
  margin-top: 12px;
  color: var(--color-red);
  line-height: 1.45;
}

.journey-panel {
  margin-top: 28px;
  padding: 28px;
}

.journey-panel > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.journey-panel span {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #aaa;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.journey-panel .active,
.journey-panel .done {
  color: var(--color-white);
}

.mission-helper {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
}

.speech-bubble {
  position: absolute;
  top: 146px;
  left: 0;
  display: grid;
  width: 96px;
  height: 72px;
  place-items: center;
  border: 2px solid var(--color-black);
  background: var(--color-white);
  color: var(--color-red);
  font-size: 46px;
  font-weight: 900;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -18px;
  width: 22px;
  height: 22px;
  border-left: 2px solid var(--color-black);
  border-bottom: 2px solid var(--color-black);
  background: var(--color-white);
  transform: rotate(-45deg);
}

.reward-preview div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.reward-preview b {
  display: grid;
  min-height: 76px;
  place-items: center;
  border-right: 1px solid var(--color-line);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.mission-progress-card {
  padding: 24px;
}

.mission-progress-card h3 {
  display: flex;
  justify-content: space-between;
  color: var(--color-white);
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 28px;
  max-width: 970px;
}

.stage-grid article {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--color-line);
  background: rgba(255,255,255,0.72);
}

.stage-grid .legend-stage {
  background: var(--color-black);
  color: var(--color-white);
}

.stage-grid h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stage-grid .pet-small,
.stage-grid .pet-medium {
  width: 190px;
  height: 190px;
}

.stage-grid p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.stage-grid article > b {
  position: absolute;
  right: -24px;
  top: 48%;
  z-index: 5;
  color: var(--color-black);
  font-size: 34px;
}

.legend-stage::before {
  content: "";
  position: absolute;
  inset: 62px 26px auto;
  height: 180px;
  background: var(--color-red);
  border-radius: 50%;
}

.legend-stage .pet-figure {
  filter: grayscale(1) contrast(1.5);
  mix-blend-mode: normal;
}

.lock {
  color: #aaa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.reward-strip {
  margin-top: 34px;
  padding: 24px;
}

.reward-strip > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.reward-strip article {
  display: grid;
  min-height: 148px;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  text-align: center;
}

.reward-strip b {
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 46px;
}

.reward-strip strong,
.reward-strip span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.bonus-panel p,
.egg-panel p {
  margin: 16px 0;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.egg-panel {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
}

.egg-panel b {
  grid-row: 1 / 3;
  display: grid;
  width: 76px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  font-size: 54px;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  min-height: 300px;
  padding: 28px 34px;
  overflow: hidden;
}

.shop-hero span {
  color: var(--color-red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shop-hero strong {
  display: block;
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.85;
}

.shop-hero p {
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shop-hero .pet-figure img {
  mix-blend-mode: screen;
}

.teacher-controls {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 28px;
  align-items: end;
  padding: 28px;
}

.teacher-controls label,
.teacher-controls div {
  display: grid;
  gap: 16px;
}

.teacher-controls select,
.teacher-controls button:not(.primary-cta) {
  min-height: 54px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-black);
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.teacher-controls p {
  display: flex;
  gap: 12px;
  margin: 0;
}

.teacher-controls button.active {
  background: var(--color-red);
  color: var(--color-white);
}

.lesson-panel {
  margin-top: 24px;
  padding: 28px;
}

.lesson-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.lesson-panel header button {
  position: relative;
  width: 62px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 17px;
  background: var(--color-grey);
}

.lesson-panel header button::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white);
}

.lesson-panel header button.on {
  background: var(--color-red);
}

.lesson-panel header button.on::after {
  transform: translateX(28px);
}

.lesson-panel > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.lesson-panel span {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.lesson-panel strong,
.lesson-panel em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.class-progress,
.area-progress {
  margin-top: 24px;
  padding: 24px;
}

.class-progress > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.class-progress article {
  display: grid;
  min-height: 122px;
  place-items: center;
  border: 1px solid var(--color-line);
  text-align: center;
}

.class-progress strong {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.9;
}

.class-progress span {
  max-width: 110px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.area-progress p {
  display: grid;
  grid-template-columns: 170px 1fr 52px;
  gap: 16px;
  align-items: center;
  margin: 12px 0;
  font-weight: 900;
}

.area-progress em {
  font-style: normal;
  text-align: right;
}

.active-mission {
  min-height: 300px;
  padding: 28px;
  background:
    radial-gradient(circle at 72% 40%, rgba(255, 42, 27, 0.92) 0 88px, transparent 89px),
    var(--color-black);
}

.active-mission strong {
  display: block;
  margin: 18px 0;
  color: var(--color-red);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.active-mission b {
  display: block;
  margin-top: 70px;
  font-size: 36px;
  letter-spacing: 3px;
}

.leaderboard-panel,
.teacher-tip {
  padding: 22px;
}

.leaderboard-panel p {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 13px 0;
  font-weight: 900;
}

.leaderboard-panel strong {
  font-size: 13px;
}

.teacher-tip {
  border-color: rgba(255, 42, 27, 0.35);
}

.teacher-tip p {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.settings-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px;
}

.settings-panel article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.18);
}

.settings-panel strong {
  display: block;
  margin: 18px 0;
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.9;
}

.settings-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.settings-side {
  justify-items: center;
}

.landing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(460px, 1fr);
  align-items: center;
  min-height: 100vh;
  padding: 64px 88px;
  overflow: hidden;
  background: var(--color-bg);
}

.landing > .brand-mark {
  position: absolute;
  left: 82px;
  top: 54px;
}

.landing section {
  z-index: 2;
  align-self: center;
}

.landing h1 {
  font-size: clamp(94px, 8vw, 150px);
}

.landing p {
  margin: 20px 0 54px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.landing button:not(.brand-mark) {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  min-height: 56px;
  padding: 0;
  color: var(--color-black);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.landing button b {
  font-size: 44px;
  font-weight: 400;
}

.landing-art {
  position: relative;
  display: grid;
  min-height: 660px;
  place-items: end center;
}

.landing-art .red-rectangle {
  right: 8%;
  top: 12%;
  width: 360px;
  height: 460px;
}

.landing-art .pet-figure {
  z-index: 2;
}

.toast {
  position: fixed;
  left: calc(var(--sidebar) + 58px);
  bottom: 34px;
  z-index: 50;
  max-width: 560px;
  padding: 18px 22px;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  :root {
    --sidebar: 196px;
  }

  .view {
    padding: 34px 32px 34px 38px;
  }

  .sidebar-nav nav button,
  .logout {
    padding-left: 26px;
    grid-template-columns: 30px 1fr;
  }

  .sidebar-nav > .brand-mark {
    margin-left: 28px;
  }

  .home-grid,
  .play-grid,
  .challenge-layout,
  .build-layout,
  .evolution-layout,
  .shop-layout,
  .teacher-layout,
  .settings-layout,
  .mission-layout {
    grid-template-columns: 1fr;
  }

  .home-grid {
    align-items: start;
  }

  .home-side,
  .play-side,
  .challenge-side,
  .build-side,
  .mission-side,
  .evo-side,
  .shop-side,
  .teacher-side,
  .settings-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-hero-scene {
    min-height: 520px;
  }

  .pet-hero {
    height: 520px;
  }

  .gameplay-footer {
    margin-left: -38px;
    margin-right: -32px;
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    position: relative;
    height: auto;
    padding: 18px 18px 16px;
    overflow: hidden;
  }

  .sidebar-nav > .brand-mark,
  .sidebar-pet,
  .logout {
    display: none;
  }

  .sidebar-nav nav {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .sidebar-nav nav button {
    flex: 0 0 138px;
    min-width: 138px;
    min-height: 48px;
    padding: 0 14px;
  }

  .view {
    padding: 28px 22px;
    overflow-x: hidden;
  }

  .topbar {
    min-height: auto;
  }

  .micro-copy {
    display: none;
  }

  .top-metrics {
    width: 100%;
    gap: 18px;
    justify-content: space-between;
  }

  .home-side,
  .play-side,
  .challenge-side,
  .build-side,
  .mission-side,
  .evo-side,
  .shop-side,
  .teacher-side,
  .settings-side,
  .action-grid,
  .stage-grid,
  .settings-panel,
  .teacher-controls,
  .class-progress > div,
  .reward-strip > div,
  .mission-meta,
  .lesson-panel > div,
  .shape-panel div,
  .shop-grid.large {
    grid-template-columns: 1fr;
  }

  .home-copy {
    order: 2;
  }

  .pet-hero-scene {
    order: 1;
    min-height: 360px;
  }

  .home-side {
    order: 3;
  }

  .pet-hero {
    height: 360px;
    min-height: 330px;
  }

  .pet-hero-scene .red-rectangle {
    right: 12%;
    top: 20px;
    width: 210px;
    height: 300px;
  }

  .pet-hero-scene .pixel-heart,
  .pet-hero-scene .dot-grid {
    display: none;
  }

  .pet-hero-scene .plus-mark.black {
    right: 2%;
    top: 38%;
    font-size: 74px;
  }

  .build-main {
    grid-template-columns: 1fr;
  }

  .shape-panel,
  .calc-panel {
    grid-column: auto;
  }

  .calc-panel,
  .feedback-strip {
    grid-template-columns: 1fr;
  }

  .page-title h1,
  .home-copy h1 {
    font-size: clamp(58px, 16vw, 86px);
  }

  .page-title p {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .home-copy h2 {
    margin-bottom: 32px;
  }

  .math-question-card {
    width: 100%;
    padding: 24px;
  }

  .math-question-card::after {
    display: none;
  }

  .math-question-card h2 {
    margin: 36px 0;
    font-size: clamp(54px, 16vw, 82px);
  }

  .answer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .answer-grid button {
    min-height: 82px;
    font-size: 52px;
  }

  .math-question-card footer {
    flex-direction: column;
    align-items: stretch;
  }

  .math-question-card footer p {
    max-width: none;
  }

  .black-submit {
    width: 100%;
  }

  .feedback-strip {
    gap: 12px;
  }

  .room-builder {
    min-height: 330px;
    overflow: hidden;
  }

  .room-builder::before {
    right: 18px;
    top: 0;
    font-size: 72px;
  }

  .iso-room {
    width: min(430px, 100%);
    height: 300px;
    transform: none;
  }

  .iso-room .floor {
    inset: 110px 24px 28px;
    border-width: 8px;
  }

  .wall {
    border-width: 8px;
  }

  .wall.left {
    left: 24px;
    top: 24px;
    width: calc(50% - 24px);
    height: 110px;
    transform: none;
  }

  .wall.right {
    right: 24px;
    top: 24px;
    width: calc(50% - 24px);
    height: 110px;
    transform: none;
  }

  .bed {
    right: 58px;
    bottom: 74px;
    width: 120px;
  }

  .shelf {
    left: 72px;
    bottom: 84px;
  }

  .window {
    right: 42%;
    top: 50px;
  }

  .rug {
    left: 42%;
    bottom: 52px;
    width: 105px;
    height: 76px;
  }

  .room-pet {
    left: 48%;
    bottom: 74px;
    transform: translateX(-50%);
  }

  .stage-grid article {
    min-height: 340px;
  }

  .stage-grid article > b {
    right: 14px;
    top: 50%;
  }

  .gameplay-footer {
    grid-template-columns: 1fr;
    margin: 28px -22px -28px;
    padding: 22px;
  }

  .footer-steps {
    grid-template-columns: repeat(5, 120px);
    overflow-x: auto;
  }

  .gameplay-footer aside {
    padding-left: 0;
    border-left: 0;
  }

  .toast {
    left: 22px;
    right: 22px;
  }

  .landing {
    grid-template-columns: 1fr;
    padding: 84px 28px 32px;
  }

  .landing > .brand-mark {
    left: 28px;
  }
}
