.balance-table-page {
  --balance-ink: #211a2d;
  --balance-indigo: #343963;
  --balance-deep: #151626;
  --balance-marble: #f5edd8;
  --balance-paper: #fff4d6;
  --balance-brass: #d4a35c;
  --balance-brass-dark: #9d6a32;
  --balance-green: #74865d;
  --balance-wax: #8b1a3a;
  --balance-rose: #b35a61;
  --balance-oak: #5a3827;
  color: var(--balance-ink);
}

.balance-table-topbar {
  border-color: rgba(212, 163, 92, 0.24);
}

.balance-progressbar {
  height: 8px;
  max-width: 1180px;
  margin: 0 auto 10px;
  overflow: hidden;
  border: 1px solid rgba(52, 57, 99, 0.18);
  border-radius: 999px;
  background: rgba(245, 237, 216, 0.72);
  box-shadow: inset 0 1px 4px rgba(21, 22, 38, 0.18);
}

.balance-progressbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--balance-green), var(--balance-brass));
  transition: width 360ms ease;
}

.balance-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 12px;
}

.balance-progress__dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(245, 237, 216, 0.62);
  border-radius: 50%;
  background: rgba(52, 57, 99, 0.44);
  box-shadow: inset 0 0 0 2px rgba(21, 22, 38, 0.26);
}

.balance-progress__dot.is-current {
  background: var(--balance-marble);
  box-shadow: 0 0 0 3px rgba(212, 163, 92, 0.18);
}

.balance-progress__dot.is-filled {
  border-color: rgba(245, 237, 216, 0.88);
  background: var(--balance-brass);
  box-shadow: 0 0 12px rgba(212, 163, 92, 0.46);
}

.balance-table-room {
  max-width: 1180px;
  margin: 0 auto;
}

.balance-table-room__scene {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(245, 237, 216, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 237, 216, 0.11), transparent 28%),
    linear-gradient(120deg, rgba(116, 134, 93, 0.18), transparent 30%),
    linear-gradient(180deg, #2e345f 0%, #1a1b31 56%, #10111d 100%);
  box-shadow: 0 24px 60px rgba(15, 13, 27, 0.36);
  isolation: isolate;
}

.balance-table-room__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(245, 237, 216, 0.04) 10% 10.4%, transparent 10.4% 89.6%, rgba(245, 237, 216, 0.04) 89.6% 90%, transparent 90%),
    repeating-linear-gradient(90deg, rgba(245, 237, 216, 0.035) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, transparent 0 76px, rgba(245, 237, 216, 0.035) 76px 77px);
}

.balance-table-room__scene::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -98px;
  height: 270px;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(33, 26, 45, 0.08) 0 2px, transparent 2px 78px),
    repeating-linear-gradient(0deg, rgba(33, 26, 45, 0.08) 0 2px, transparent 2px 78px),
    linear-gradient(180deg, #f5edd8 0%, #d8c59f 100%);
  transform: perspective(700px) rotateX(44deg);
  transform-origin: bottom;
}

.balance-table-room__windows {
  position: absolute;
  top: 38px;
  left: 7%;
  display: flex;
  gap: 14px;
  opacity: 0.78;
}

.balance-table-room__windows span {
  width: 54px;
  height: 142px;
  border: 5px solid rgba(33, 26, 45, 0.72);
  border-bottom-width: 10px;
  border-radius: 32px 32px 4px 4px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(33, 26, 45, 0.52) 45% 55%, transparent 55%),
    linear-gradient(180deg, transparent 32%, rgba(33, 26, 45, 0.42) 32% 38%, transparent 38% 68%, rgba(33, 26, 45, 0.38) 68% 73%, transparent 73%),
    linear-gradient(150deg, #d8d7ef 0%, #8f94c7 46%, #514a83 100%);
  box-shadow: 0 0 38px rgba(157, 165, 220, 0.25);
}

.balance-archway {
  position: absolute;
  top: 170px;
  left: 4%;
  width: 112px;
  height: 176px;
  border: 8px solid rgba(77, 50, 35, 0.9);
  border-bottom: 0;
  border-radius: 58px 58px 4px 4px;
  background: linear-gradient(180deg, #171421, #0e0d15);
  box-shadow: inset 0 0 24px rgba(212, 163, 92, 0.08), 0 16px 30px rgba(10, 8, 14, 0.22);
}

.balance-archway__sheets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 70px;
  margin: 58px auto 0;
}

.balance-archway__sheets span {
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f6e8c4, #ddc898);
  box-shadow: inset 0 -4px 0 rgba(80, 35, 30, 0.16);
}

.balance-portrait {
  position: absolute;
  top: 62px;
  left: 48%;
  width: 76px;
  height: 88px;
  padding: 7px;
  border: 5px solid rgba(77, 50, 35, 0.82);
  border-radius: 5px;
  background: #d7bf8f;
  box-shadow: 0 14px 24px rgba(10, 8, 14, 0.22);
}

.balance-portrait span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 34%, #9f7960 0 16%, transparent 17%),
    linear-gradient(180deg, #43324b 0 58%, #2c2434 58%),
    linear-gradient(150deg, #c7c2e5, #6d6ca3);
}

.balance-shelf {
  position: absolute;
  top: 64px;
  right: 5%;
  width: min(560px, 52%);
  color: var(--balance-marble);
}

.balance-shelf__label {
  margin: 0 0 8px 10px;
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.82;
}

.balance-shelf__rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 237, 216, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(96, 61, 39, 0.94), rgba(62, 39, 28, 0.96)),
    repeating-linear-gradient(90deg, rgba(245, 237, 216, 0.05) 0 2px, transparent 2px 26px);
  box-shadow: inset 0 -8px 0 rgba(36, 22, 16, 0.34), 0 20px 35px rgba(10, 8, 14, 0.2);
}

.balance-shelf__slot {
  display: grid;
  min-height: 96px;
  padding: 6px;
  border: 1px dashed rgba(245, 237, 216, 0.22);
  border-radius: 5px;
  background: rgba(21, 22, 38, 0.22);
  place-items: center;
}

.balance-shelf__slot.is-current {
  border-color: rgba(212, 163, 92, 0.44);
}

.balance-shelf__slot.is-filled {
  border-style: solid;
  background: rgba(245, 237, 216, 0.08);
}

.balanced-mini-scale {
  position: relative;
  width: 72px;
  height: 64px;
  color: var(--balance-marble);
  transform: rotate(-10deg);
  transition: transform 800ms cubic-bezier(0.2, 0.9, 0.25, 1), filter 360ms ease;
}

.balanced-mini-scale.is-even {
  filter: drop-shadow(0 0 10px rgba(212, 163, 92, 0.5));
  transform: rotate(0deg);
  animation: miniScaleEven 800ms ease both;
}

.balanced-mini-scale__beam {
  position: absolute;
  top: 23px;
  left: 12px;
  width: 48px;
  height: 5px;
  border-radius: 4px;
  background: var(--balance-brass);
}

.balanced-mini-scale__beam::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -18px;
  width: 5px;
  height: 42px;
  border-radius: 4px;
  background: var(--balance-brass-dark);
}

.balanced-mini-scale__left,
.balanced-mini-scale__right {
  position: absolute;
  top: 36px;
  width: 22px;
  height: 9px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #f0c77a, var(--balance-brass));
}

.balanced-mini-scale__left {
  left: 5px;
}

.balanced-mini-scale__right {
  right: 5px;
  transform: translateY(10px);
}

.balanced-mini-scale.is-even .balanced-mini-scale__right {
  transform: translateY(0);
}

.balanced-mini-scale strong {
  position: absolute;
  left: 50%;
  bottom: -6px;
  min-width: 54px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(245, 237, 216, 0.9);
  color: var(--balance-ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 0.68rem;
  text-align: center;
  transform: translateX(-50%);
}

.balance-work {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: min(790px, 74%);
  transform: translateX(-50%);
}

.balance-prompt {
  width: min(640px, 100%);
  margin: 0 auto 10px;
  padding: 14px 18px;
  border: 1px solid rgba(245, 237, 216, 0.16);
  border-radius: 8px;
  background: rgba(245, 237, 216, 0.92);
  text-align: center;
  box-shadow: 0 18px 32px rgba(10, 8, 14, 0.18);
}

.balance-prompt span {
  display: block;
  color: var(--balance-green);
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.balance-prompt h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 3px 0 5px;
  color: #241b2e;
  font-family: "Spectral", Georgia, serif;
  font-size: 2.35rem;
  line-height: 1;
}

.balance-equation__variable {
  color: var(--balance-wax);
  font-style: italic;
  text-shadow: 0 1px 0 rgba(90, 53, 35, 0.16);
}

.balance-prompt p {
  margin: 0;
  color: rgba(33, 26, 45, 0.68);
  font-size: 0.92rem;
  font-weight: 800;
}

.balance-scale {
  position: relative;
  height: 290px;
  margin: 0 auto;
}

.balance-scale__beam {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 88px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2c977, var(--balance-brass-dark));
  box-shadow: inset 0 2px 0 rgba(255, 244, 200, 0.36), 0 10px 20px rgba(10, 8, 14, 0.22);
}

.balance-scale__beam span {
  position: absolute;
  left: 50%;
  top: -15px;
  width: 74px;
  height: 44px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #f2c977, #a86f35);
  transform: translateX(-50%);
}

.balance-scale__post {
  position: absolute;
  left: 50%;
  top: 100px;
  width: 22px;
  height: 128px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0c77a, #9d6a32);
  transform: translateX(-50%);
  box-shadow: inset -5px 0 0 rgba(77, 50, 35, 0.18);
}

.balance-scale__base {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 180px;
  height: 46px;
  border: 1px solid rgba(33, 26, 45, 0.14);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(33, 26, 45, 0.06) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #f7efd8, #d4bd91);
  transform: translateX(-50%);
  box-shadow: 0 16px 28px rgba(10, 8, 14, 0.2);
}

.balance-tray {
  position: absolute;
  top: 105px;
  width: 284px;
  min-height: 140px;
}

.balance-tray--left {
  left: 2%;
}

.balance-tray--right {
  right: 2%;
}

.balance-tray__chain {
  position: absolute;
  left: 50%;
  top: -74px;
  width: 2px;
  height: 78px;
  background: linear-gradient(180deg, rgba(245, 237, 216, 0.42), rgba(245, 237, 216, 0.12));
}

.balance-tray__chain::before,
.balance-tray__chain::after {
  content: "";
  position: absolute;
  top: 42px;
  width: 2px;
  height: 48px;
  background: inherit;
}

.balance-tray__chain::before {
  left: -36px;
  transform: rotate(26deg);
}

.balance-tray__chain::after {
  right: -36px;
  transform: rotate(-26deg);
}

.balance-tray__dish {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-height: 126px;
  padding: 16px 14px 22px;
  border: 2px solid rgba(245, 237, 216, 0.22);
  border-top: 0;
  border-radius: 0 0 90px 90px / 0 0 28px 28px;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 244, 200, 0.5), transparent 52%),
    linear-gradient(180deg, #dcb36a, #9c6730);
  box-shadow: inset 0 -14px 0 rgba(77, 50, 35, 0.18), 0 18px 32px rgba(10, 8, 14, 0.24);
}

.balance-tray__label {
  margin-top: 8px;
  color: rgba(245, 237, 216, 0.72);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.balance-scale.is-isolated .balance-tray__dish {
  box-shadow: inset 0 -14px 0 rgba(77, 50, 35, 0.18), 0 0 0 4px rgba(212, 163, 92, 0.12), 0 18px 32px rgba(10, 8, 14, 0.24);
}

.balance-bundles {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  max-width: 150px;
}

.x-bundle {
  position: relative;
  display: grid;
  width: 42px;
  height: 62px;
  border: 0;
  background: transparent;
  cursor: default;
  place-items: end center;
}

.x-bundle.is-revealable {
  cursor: pointer;
  animation: revealReady 1000ms ease-in-out infinite;
}

.x-bundle__wrap {
  width: 38px;
  height: 48px;
  border-radius: 17px 17px 10px 10px;
  background:
    linear-gradient(90deg, rgba(245, 237, 216, 0.18), transparent 38%),
    linear-gradient(180deg, #5b465d, #33273f);
  box-shadow: inset 0 -8px 0 rgba(21, 22, 38, 0.2), 0 10px 14px rgba(10, 8, 14, 0.18);
}

.x-bundle.is-revealed .x-bundle__wrap {
  background:
    linear-gradient(180deg, rgba(245, 237, 216, 0.32), transparent 46%),
    linear-gradient(180deg, #6c5871, #43344d);
  transform: translateY(-8px) rotate(-4deg);
}

.x-bundle__cord {
  position: absolute;
  top: 21px;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #c69853;
}

.x-bundle__tag {
  position: absolute;
  bottom: 0;
  display: grid;
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  border: 2px solid rgba(245, 237, 216, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #c45b65, var(--balance-wax) 72%);
  color: #fff5d9;
  font-family: "Spectral", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 800;
  place-items: center;
}

.x-bundle.is-revealed .x-bundle__tag {
  min-width: 38px;
  background: radial-gradient(circle at 36% 32%, #f2c977, var(--balance-brass) 72%);
  color: #211a2d;
  font-style: normal;
}

.balance-left-constant {
  min-width: 82px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(245, 237, 216, 0.15);
}

.balance-left-constant > span {
  display: block;
  margin-bottom: 4px;
  color: rgba(33, 26, 45, 0.7);
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.balance-left-constant--minus {
  background: rgba(139, 26, 58, 0.16);
}

.balance-weights {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  max-width: 138px;
}

.balance-weight {
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(77, 50, 35, 0.34);
  border-radius: 50% 50% 5px 5px;
  background: linear-gradient(180deg, #f2c977, var(--balance-brass-dark));
  box-shadow: inset 0 2px 0 rgba(255, 244, 200, 0.38), 0 6px 8px rgba(10, 8, 14, 0.16);
  place-items: center;
}

.balance-weight--ten {
  width: 34px;
  height: 36px;
}

.balance-weight--five {
  width: 30px;
  height: 30px;
}

.balance-weight--loose {
  background: linear-gradient(180deg, #f4d182, #b87c39);
}

.balance-weight--minus {
  background: linear-gradient(180deg, #cf7880, var(--balance-wax));
  color: #fff5d9;
}

.balance-weight b {
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
}

.balance-chain {
  display: grid;
  gap: 10px;
  width: min(700px, 100%);
  margin: -2px auto 0;
  padding: 14px;
  border: 1px solid rgba(245, 237, 216, 0.16);
  border-radius: 8px;
  background: rgba(21, 22, 38, 0.78);
  box-shadow: 0 16px 28px rgba(10, 8, 14, 0.2);
}

.balance-chain__nodes,
.balance-chain__undos {
  display: grid;
  grid-template-columns: 0.8fr 0.28fr 1fr 0.28fr 1fr 0.28fr 0.8fr;
  align-items: center;
  gap: 6px;
}

.balance-chain__node {
  display: grid;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(245, 237, 216, 0.2);
  border-radius: 6px;
  background: rgba(245, 237, 216, 0.9);
  color: var(--balance-ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  place-items: center;
}

.balance-chain__node.is-spent {
  background: rgba(116, 134, 93, 0.32);
  color: rgba(245, 237, 216, 0.86);
}

.balance-chain__node--result {
  color: var(--balance-wax);
}

.balance-chain__arrow {
  color: rgba(245, 237, 216, 0.58);
  font-weight: 900;
  text-align: center;
}

.balance-undo {
  grid-column: span 2;
  display: grid;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 237, 216, 0.18);
  border-radius: 7px;
  background: rgba(245, 237, 216, 0.22);
  color: rgba(245, 237, 216, 0.5);
  cursor: default;
  place-items: center;
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease;
}

.balance-undo:first-child {
  grid-column: 3 / span 1;
}

.balance-undo:last-child {
  grid-column: 5 / span 1;
}

.balance-undo span {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.balance-undo strong {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.balance-undo.is-enabled {
  border-color: rgba(245, 237, 216, 0.35);
  background: linear-gradient(180deg, #f0c77a, var(--balance-brass));
  color: #211a2d;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(212, 163, 92, 0.12), 0 10px 18px rgba(10, 8, 14, 0.18);
  animation: undoReady 1000ms ease-in-out infinite;
}

.balance-undo.is-enabled:hover,
.balance-undo.is-enabled:focus-visible {
  transform: translateY(-2px);
}

.balance-undo.is-spent {
  background: rgba(116, 134, 93, 0.36);
  color: rgba(245, 237, 216, 0.86);
}

.balance-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(700px, 100%);
  margin: 10px auto 0;
}

.balance-steps span {
  padding: 8px 10px;
  border: 1px solid rgba(245, 237, 216, 0.14);
  border-radius: 999px;
  background: rgba(21, 22, 38, 0.58);
  color: rgba(245, 237, 216, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.balance-steps span.is-active {
  background: rgba(245, 237, 216, 0.9);
  color: var(--balance-ink);
}

.balance-steps span.is-done {
  background: rgba(116, 134, 93, 0.55);
  color: rgba(245, 237, 216, 0.9);
}

.balance-celebration {
  width: min(560px, 94%);
  margin: 10px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(212, 163, 92, 0.28);
  border-radius: 7px;
  background: rgba(245, 237, 216, 0.96);
  box-shadow: 0 18px 30px rgba(13, 9, 14, 0.22);
  text-align: center;
  animation: balanceCelebrate 260ms ease both;
}

.balance-celebration span {
  color: var(--balance-green);
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.balance-celebration p {
  max-width: 38rem;
  margin: 6px auto 12px;
  color: rgba(33, 26, 45, 0.74);
  font-family: "Spectral", Georgia, serif;
  font-size: 1rem;
}

.balance-solen {
  position: absolute;
  right: 4%;
  bottom: 70px;
  z-index: 2;
  width: 152px;
  height: 260px;
}

.balance-solen__head {
  position: absolute;
  top: 0;
  left: 47px;
  width: 58px;
  height: 66px;
  border-radius: 44% 44% 48% 48%;
  background: #b98f70;
  box-shadow: inset 0 -8px 0 rgba(74, 48, 41, 0.18);
}

.balance-solen__head::before {
  content: "";
  position: absolute;
  inset: -8px 4px 30px;
  border-radius: 28px 28px 8px 8px;
  background: #39293a;
}

.balance-solen__head span {
  position: absolute;
  left: 13px;
  top: 30px;
  width: 34px;
  height: 7px;
  border-top: 2px solid rgba(33, 26, 45, 0.82);
  border-bottom: 2px solid rgba(33, 26, 45, 0.32);
}

.balance-solen__body {
  position: absolute;
  top: 70px;
  left: 28px;
  width: 96px;
  height: 150px;
  border-radius: 32px 32px 18px 18px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(116, 134, 93, 0.68) 47% 53%, transparent 53%),
    linear-gradient(180deg, #4d365b, #2f253e);
}

.balance-solen__hands {
  position: absolute;
  left: 55px;
  top: 132px;
  width: 44px;
  height: 24px;
  border-radius: 50%;
  background: #b98f70;
  box-shadow: 0 0 0 8px rgba(47, 37, 62, 0.42);
}

.balance-solen__line {
  position: absolute;
  right: 88px;
  bottom: 18px;
  width: 230px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 237, 216, 0.18);
  border-radius: 8px;
  background: rgba(245, 237, 216, 0.94);
  color: rgba(33, 26, 45, 0.78);
  font-family: "Spectral", Georgia, serif;
  font-size: 0.96rem;
  box-shadow: 0 14px 24px rgba(10, 8, 14, 0.18);
}

.balance-reward {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(21, 22, 38, 0.24), rgba(21, 22, 38, 0.78)),
    transparent;
  place-items: center;
  animation: rewardRise 520ms ease both;
}

.balance-reward__card {
  width: min(830px, 94%);
  padding: 28px;
  border: 1px solid rgba(212, 163, 92, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(116, 134, 93, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 236, 0.98), rgba(232, 218, 188, 0.98));
  box-shadow: 0 28px 60px rgba(7, 6, 12, 0.42);
}

.balance-reward__copy {
  text-align: center;
}

.balance-reward__copy span {
  color: var(--balance-green);
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.balance-reward__copy h2 {
  margin: 4px 0 6px;
  color: #23192d;
  font-family: "Cinzel", serif;
  font-size: 2.4rem;
}

.balance-reward__copy p {
  margin: 0;
  color: rgba(33, 26, 45, 0.72);
  font-family: "Spectral", Georgia, serif;
  font-size: 1.08rem;
}

.balance-reward__seal {
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: center;
  gap: 18px;
  margin: 22px auto;
}

.balance-reward__scales {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.balance-reward__scales .balanced-mini-scale {
  width: 100%;
  min-height: 82px;
}

.balance-flame-coin {
  display: grid;
  width: 88px;
  height: 88px;
  border: 5px solid rgba(77, 50, 35, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f1cd7c, #a86f35 72%),
    var(--balance-brass);
  box-shadow: inset 0 0 0 8px rgba(245, 237, 216, 0.16), 0 16px 24px rgba(10, 8, 14, 0.2);
  place-items: center;
}

.balance-flame-coin span {
  width: 28px;
  height: 42px;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(180deg, #fff0a8, #d05d2f);
  transform: rotate(8deg);
}

.balance-reward__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 12px;
}

.balance-reward__badges span {
  padding: 7px 11px;
  border: 1px solid rgba(33, 26, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(33, 26, 45, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.balance-reward .reward-stars {
  justify-content: center;
  margin: 8px 0 18px;
}

.balance-reward .reward-stars span {
  color: rgba(33, 26, 45, 0.2);
}

.balance-reward .reward-stars span.is-filled {
  color: var(--balance-brass);
}

.balance-reward__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@keyframes undoReady {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(212, 163, 92, 0.1), 0 10px 18px rgba(10, 8, 14, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 163, 92, 0.18), 0 12px 22px rgba(10, 8, 14, 0.22);
  }
}

@keyframes revealReady {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(212, 163, 92, 0));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(212, 163, 92, 0.7));
  }
}

@keyframes miniScaleEven {
  0% {
    opacity: 0.7;
    transform: rotate(-10deg) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes balanceCelebrate {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .balance-table-room__scene {
    min-height: 930px;
  }

  .balance-table-room__windows {
    left: 5%;
    opacity: 0.58;
  }

  .balance-table-room__windows span {
    width: 44px;
    height: 118px;
  }

  .balance-archway,
  .balance-portrait {
    display: none;
  }

  .balance-shelf {
    top: 28px;
    left: 4%;
    right: 4%;
    width: auto;
  }

  .balance-shelf__rail {
    gap: 6px;
    padding: 8px;
  }

  .balance-shelf__slot {
    min-height: 78px;
    padding: 4px;
  }

  .balanced-mini-scale {
    width: 62px;
    height: 58px;
  }

  .balance-work {
    bottom: 34px;
    width: min(700px, 92%);
  }

  .balance-scale {
    height: 330px;
  }

  .balance-tray {
    top: 118px;
    width: 45%;
  }

  .balance-tray--left {
    left: 1%;
  }

  .balance-tray--right {
    right: 1%;
  }

  .balance-tray__dish {
    min-height: 144px;
  }

  .balance-solen {
    display: none;
  }

  .balance-reward {
    position: relative;
    min-height: 790px;
    padding: 20px;
  }

  .balance-reward__seal {
    grid-template-columns: 1fr;
  }

  .balance-flame-coin {
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .balance-table-room__scene {
    min-height: 1010px;
    border-radius: 0;
  }

  .balance-shelf__label {
    font-size: 0.66rem;
  }

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

  .balance-shelf__slot {
    min-height: 70px;
  }

  .balance-work {
    bottom: 18px;
    width: 94%;
  }

  .balance-prompt h1 {
    font-size: 1.9rem;
  }

  .balance-prompt p {
    font-size: 0.84rem;
  }

  .balance-scale {
    height: 420px;
  }

  .balance-scale__beam {
    left: 8%;
    right: 8%;
  }

  .balance-tray {
    width: 48%;
  }

  .balance-tray__dish {
    align-items: center;
    flex-direction: column;
    min-height: 200px;
    gap: 8px;
  }

  .balance-bundles,
  .balance-weights {
    max-width: 118px;
  }

  .x-bundle {
    width: 38px;
    height: 58px;
  }

  .x-bundle__wrap {
    width: 34px;
    height: 44px;
  }

  .balance-weight {
    width: 22px;
    height: 22px;
  }

  .balance-weight--ten {
    width: 30px;
    height: 32px;
  }

  .balance-weight--five {
    width: 26px;
    height: 27px;
  }

  .balance-chain {
    padding: 12px 10px;
  }

  .balance-chain__nodes {
    grid-template-columns: 1fr 0.16fr 1fr 0.16fr 1fr 0.16fr 1fr;
    gap: 4px;
  }

  .balance-chain__undos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balance-undo:first-child,
  .balance-undo:last-child {
    grid-column: auto;
  }

  .balance-chain__node {
    min-height: 38px;
    padding: 5px 6px;
    font-size: 1rem;
  }

  .balance-undo {
    min-height: 50px;
  }

  .balance-steps {
    grid-template-columns: 1fr;
  }

  .balance-reward__card {
    width: 100%;
    padding: 20px;
  }

  .balance-reward__copy h2 {
    font-size: 1.9rem;
  }

  .balance-reward__scales {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balance-reward__actions {
    align-items: stretch;
    flex-direction: column;
  }
}
