.function-press-page {
  --function-ink: #211815;
  --function-iron: #1f1815;
  --function-indigo: #32365f;
  --function-brass: #d4a35c;
  --function-brass-dark: #8f5e2d;
  --function-cream: #e5dcc4;
  --function-paper: #f5edd8;
  --function-purple: #5b2a86;
  --function-flame: #d75a2e;
  --function-green: #74865d;
  color: var(--function-ink);
}

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

.function-progressbar {
  height: 8px;
  max-width: 1180px;
  margin: 0 auto 10px;
  overflow: hidden;
  border: 1px solid rgba(31, 24, 21, 0.18);
  border-radius: 999px;
  background: rgba(229, 220, 196, 0.74);
  box-shadow: inset 0 1px 4px rgba(31, 24, 21, 0.18);
}

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

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

.function-progress__dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(245, 237, 216, 0.62);
  border-radius: 50%;
  background: rgba(31, 24, 21, 0.56);
  box-shadow: inset 0 0 0 2px rgba(31, 24, 21, 0.28);
}

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

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

.function-press-room {
  max-width: 1180px;
  margin: 0 auto;
}

.function-press-room__scene {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border: 1px solid rgba(245, 237, 216, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(212, 163, 92, 0.15), transparent 26%),
    linear-gradient(120deg, rgba(91, 42, 134, 0.24), transparent 34%),
    linear-gradient(180deg, #34385f 0%, #211d27 48%, #151210 100%);
  box-shadow: 0 24px 60px rgba(15, 13, 27, 0.36);
  isolation: isolate;
}

.function-press-room__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(90deg, rgba(245, 237, 216, 0.035) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(245, 237, 216, 0.025) 0 1px, transparent 1px 76px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.2));
}

.function-press-room__scene::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -98px;
  height: 264px;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(245, 237, 216, 0.06) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, rgba(245, 237, 216, 0.04) 0 2px, transparent 2px 80px),
    linear-gradient(180deg, #4b3a2f 0%, #241c18 100%);
  transform: perspective(720px) rotateX(44deg);
  transform-origin: bottom;
}

.function-press-room__chains {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 190px;
  pointer-events: none;
}

.function-press-room__chains span {
  position: absolute;
  top: 0;
  width: 4px;
  height: 178px;
  background: repeating-linear-gradient(0deg, rgba(229, 220, 196, 0.45) 0 8px, rgba(31, 24, 21, 0.45) 8px 14px);
}

.function-press-room__chains span:nth-child(1) {
  left: 12%;
}

.function-press-room__chains span:nth-child(2) {
  left: 48%;
}

.function-press-room__chains span:nth-child(3) {
  right: 14%;
}

.function-composition-arch {
  position: absolute;
  top: 166px;
  right: 4%;
  width: 116px;
  height: 178px;
  border: 8px solid rgba(48, 34, 26, 0.92);
  border-bottom: 0;
  border-radius: 58px 58px 4px 4px;
  background: linear-gradient(180deg, #17120f, #0d0b0a);
  box-shadow: inset 0 0 24px rgba(212, 163, 92, 0.08), 0 16px 30px rgba(10, 8, 14, 0.22);
}

.function-composition-arch span,
.function-composition-arch i,
.function-composition-arch b {
  position: absolute;
  display: block;
  background: rgba(245, 237, 216, 0.72);
}

.function-composition-arch span {
  left: 30px;
  top: 58px;
  width: 54px;
  height: 34px;
  transform: rotate(-5deg);
}

.function-composition-arch i {
  left: 42px;
  top: 96px;
  width: 38px;
  height: 28px;
  opacity: 0.65;
  transform: rotate(8deg);
}

.function-composition-arch b {
  left: 28px;
  top: 130px;
  width: 60px;
  height: 10px;
  border-radius: 999px;
  background: rgba(212, 163, 92, 0.52);
}

.function-shelf {
  position: absolute;
  top: 62px;
  right: 5%;
  width: min(560px, 52%);
  color: var(--function-paper);
}

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

.function-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(74, 47, 35, 0.94), rgba(42, 29, 24, 0.96)),
    repeating-linear-gradient(90deg, rgba(245, 237, 216, 0.04) 0 2px, transparent 2px 26px);
  box-shadow: inset 0 -8px 0 rgba(18, 13, 11, 0.35), 0 20px 35px rgba(10, 8, 14, 0.2);
}

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

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

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

.rule-cog {
  position: relative;
  width: 68px;
  height: 68px;
  color: var(--function-paper);
}

.rule-cog__tooth {
  position: absolute;
  left: 29px;
  top: 1px;
  width: 10px;
  height: 66px;
  border-radius: 4px;
  background: rgba(212, 163, 92, 0.42);
}

.rule-cog__tooth--0 { transform: rotate(0deg); }
.rule-cog__tooth--1 { transform: rotate(30deg); }
.rule-cog__tooth--2 { transform: rotate(60deg); }
.rule-cog__tooth--3 { transform: rotate(90deg); }
.rule-cog__tooth--4 { transform: rotate(120deg); }
.rule-cog__tooth--5 { transform: rotate(150deg); }
.rule-cog__tooth--6 { transform: rotate(180deg); }
.rule-cog__tooth--7 { transform: rotate(210deg); }
.rule-cog__tooth--8 { transform: rotate(240deg); }
.rule-cog__tooth--9 { transform: rotate(270deg); }
.rule-cog__tooth--10 { transform: rotate(300deg); }
.rule-cog__tooth--11 { transform: rotate(330deg); }

.rule-cog__face {
  position: absolute;
  inset: 9px;
  display: grid;
  border: 3px solid rgba(245, 237, 216, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2c977, var(--function-brass-dark) 72%);
  place-items: center;
  box-shadow: inset 0 0 0 8px rgba(31, 24, 21, 0.14);
}

.rule-cog.is-stamped {
  filter: drop-shadow(0 0 12px rgba(212, 163, 92, 0.45));
  animation: cogStamp 420ms ease both;
}

.rule-cog.is-stamped .rule-cog__tooth {
  background: rgba(212, 163, 92, 0.9);
}

.rule-cog strong {
  max-width: 42px;
  color: #211815;
  font-family: "Spectral", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.function-workshop {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  width: min(860px, 77%);
  padding: 18px 18px 20px;
  border: 1px solid rgba(245, 237, 216, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(91, 42, 134, 0.14), transparent 24%),
    linear-gradient(180deg, #473522, #211714);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.function-plaque {
  width: min(650px, 100%);
  margin: 0 auto 12px;
  padding: 12px 16px;
  border: 1px solid rgba(245, 237, 216, 0.16);
  border-radius: 8px;
  background: rgba(245, 237, 216, 0.94);
  text-align: center;
}

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

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

.function-rule__arrow {
  color: rgba(33, 24, 21, 0.54);
  font-size: 1.3rem;
}

.function-plaque p {
  margin: 0;
  color: rgba(33, 24, 21, 0.7);
  font-size: 0.92rem;
  font-weight: 800;
}

.function-machine {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 12px;
  min-height: 190px;
  margin: 0 auto 10px;
}

.function-machine__section {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 180px;
  padding: 14px;
  border: 2px solid rgba(245, 237, 216, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(245, 237, 216, 0.1), transparent 36%),
    linear-gradient(180deg, #3a2b22, #1b1411);
  box-shadow: inset 0 0 0 5px rgba(212, 163, 92, 0.06), 0 16px 26px rgba(0, 0, 0, 0.2);
}

.function-machine__section > span {
  position: absolute;
  top: 10px;
  left: 12px;
  color: rgba(245, 237, 216, 0.68);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.function-slot {
  display: grid;
  width: 124px;
  height: 124px;
  border: 4px solid rgba(212, 163, 92, 0.64);
  border-radius: 50% 50% 16px 16px;
  background: radial-gradient(circle at 50% 34%, rgba(245, 237, 216, 0.18), transparent 52%), #17120f;
  place-items: center;
}

.function-input-chip,
.function-output-chip,
.function-chip {
  display: grid;
  width: 56px;
  height: 56px;
  border: 3px solid rgba(245, 237, 216, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2c977, var(--function-brass-dark) 72%);
  color: #211815;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 900;
  place-items: center;
  box-shadow: inset 0 0 0 5px rgba(245, 237, 216, 0.08), 0 8px 14px rgba(0, 0, 0, 0.2);
}

.function-input-chip {
  background: radial-gradient(circle at 35% 30%, #d7bcf0, var(--function-purple) 72%);
  color: #fff8e9;
}

.function-stage-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 12px;
  width: 100%;
}

.function-stage-row .function-stage:only-child {
  grid-column: 1 / -1;
  width: min(180px, 100%);
  margin: 0 auto;
}

.function-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 116px;
}

.function-stage__gear {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2c977, var(--function-brass-dark) 72%);
  box-shadow: inset 0 0 0 13px rgba(31, 24, 21, 0.18), 0 10px 18px rgba(0, 0, 0, 0.2);
}

.function-stage__gear span {
  position: absolute;
  left: 31px;
  top: -4px;
  width: 8px;
  height: 78px;
  border-radius: 4px;
  background: var(--function-brass);
}

.function-stage__gear span:nth-child(1) { transform: rotate(0deg); }
.function-stage__gear span:nth-child(2) { transform: rotate(36deg); }
.function-stage__gear span:nth-child(3) { transform: rotate(72deg); }
.function-stage__gear span:nth-child(4) { transform: rotate(108deg); }
.function-stage__gear span:nth-child(5) { transform: rotate(144deg); }
.function-stage__gear span:nth-child(6) { transform: rotate(180deg); }
.function-stage__gear span:nth-child(7) { transform: rotate(216deg); }
.function-stage__gear span:nth-child(8) { transform: rotate(252deg); }
.function-stage__gear span:nth-child(9) { transform: rotate(288deg); }
.function-stage__gear span:nth-child(10) { transform: rotate(324deg); }

.function-machine.has-run .function-stage__gear--1 {
  animation: gearTurn 700ms ease both;
}

.function-machine.has-run .function-stage__gear--2 {
  animation: gearTurnReverse 700ms 140ms ease both;
}

.function-stage strong {
  position: relative;
  z-index: 1;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 237, 216, 0.9);
  color: var(--function-ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 1.1rem;
  text-align: center;
}

.function-ghosts {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 237, 216, 0.74);
  font-family: "Spectral", Georgia, serif;
  font-weight: 800;
  transform: translateX(-50%);
  animation: ghostPass 700ms ease both;
}

.function-ghosts span {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245, 237, 216, 0.18);
  place-items: center;
}

.function-ghosts i {
  width: 44px;
  height: 2px;
  background: rgba(245, 237, 216, 0.28);
}

.function-output-tray {
  display: grid;
  width: 136px;
  height: 98px;
  border: 4px solid rgba(212, 163, 92, 0.64);
  border-top: 0;
  border-radius: 0 0 62px 62px;
  background: radial-gradient(ellipse at 50% 8%, rgba(245, 237, 216, 0.18), transparent 54%), #17120f;
  place-items: center;
}

.function-output-empty {
  width: 56px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245, 237, 216, 0.12);
}

.function-output-chip.is-locked {
  background: radial-gradient(circle at 35% 30%, #f2c977, var(--function-brass) 72%);
  animation: outputLock 420ms ease both;
}

.function-output-chip.is-returning {
  background: radial-gradient(circle at 35% 30%, #f19a48, var(--function-flame) 72%);
  animation: chipReturn 600ms ease both;
}

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

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

.function-candidates {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(245, 237, 216, 0.14);
  border-radius: 8px;
  background: rgba(31, 24, 21, 0.74);
}

.function-candidates__label {
  margin-bottom: 8px;
  color: rgba(245, 237, 216, 0.82);
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.function-candidates__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.function-chip {
  border: 3px solid rgba(245, 237, 216, 0.22);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.function-chip:hover:not(:disabled),
.function-chip:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 5px rgba(245, 237, 216, 0.08), 0 10px 18px rgba(0, 0, 0, 0.26);
}

.function-chip:disabled {
  cursor: default;
}

.function-chip.is-wrong {
  background: radial-gradient(circle at 35% 30%, #f19a48, var(--function-flame) 72%);
  animation: chipWrong 520ms ease both;
}

.function-chip.is-correct {
  background: radial-gradient(circle at 35% 30%, #f2c977, var(--function-brass) 72%);
  box-shadow: 0 0 18px rgba(212, 163, 92, 0.5);
}

.function-aldra {
  position: absolute;
  right: 4%;
  bottom: 72px;
  z-index: 2;
  width: 152px;
  height: 268px;
}

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

.function-aldra__head::before {
  content: "";
  position: absolute;
  inset: -10px 4px 28px;
  border-radius: 28px 28px 8px 8px;
  background: #241b18;
}

.function-aldra__head span {
  position: absolute;
  left: 13px;
  top: 32px;
  width: 34px;
  height: 7px;
  border-top: 2px solid rgba(33, 24, 21, 0.9);
  border-bottom: 2px solid rgba(33, 24, 21, 0.35);
}

.function-aldra__body {
  position: absolute;
  top: 70px;
  left: 28px;
  width: 96px;
  height: 152px;
  border-radius: 30px 30px 18px 18px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(212, 163, 92, 0.72) 47% 53%, transparent 53%),
    linear-gradient(180deg, #3a2b25, #1d1714);
}

.function-aldra__hand {
  position: absolute;
  left: 30px;
  top: 124px;
  width: 64px;
  height: 18px;
  border-radius: 999px;
  background: #a5765d;
  transform: rotate(-24deg);
}

.function-aldra__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, 24, 21, 0.78);
  font-family: "Spectral", Georgia, serif;
  font-size: 0.96rem;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.function-celebration {
  width: min(560px, 94%);
  margin: 10px auto 0;
  padding: 14px 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: functionCelebrate 260ms ease both;
}

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

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

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

.function-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(91, 42, 134, 0.1), 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);
}

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

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

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

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

.function-reward__cogs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px auto;
}

.function-reward__cogs .rule-cog {
  width: 82px;
  height: 82px;
  margin: 0 auto;
}

.function-reward__cogs .rule-cog__tooth {
  left: 36px;
  height: 80px;
}

.function-reward__token {
  display: grid;
  width: 78px;
  height: 42px;
  margin: -4px auto 18px;
  border: 3px solid rgba(33, 24, 21, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #f2c977, var(--function-brass-dark));
  place-items: center;
  box-shadow: inset 0 0 0 6px rgba(245, 237, 216, 0.1), 0 12px 18px rgba(0, 0, 0, 0.16);
}

.function-reward__token span {
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: var(--function-purple);
}

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

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

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

.function-reward .reward-stars span {
  color: rgba(33, 24, 21, 0.2);
}

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

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

@keyframes gearTurn {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}

@keyframes gearTurnReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-180deg); }
}

@keyframes ghostPass {
  0% {
    opacity: 0;
    transform: translate(-70%, 8px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes outputLock {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chipReturn {
  0% {
    opacity: 1;
    transform: translateY(-18px);
  }
  100% {
    opacity: 0.55;
    transform: translateY(16px);
  }
}

@keyframes chipWrong {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

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

@keyframes cogStamp {
  0% {
    opacity: 0.72;
    transform: scale(0.86) rotate(-18deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (max-width: 980px) {
  .function-press-room__scene {
    min-height: 960px;
  }

  .function-composition-arch {
    display: none;
  }

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

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

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

  .rule-cog {
    width: 60px;
    height: 60px;
  }

  .rule-cog__tooth {
    left: 26px;
    height: 58px;
  }

  .function-workshop {
    bottom: 26px;
    width: min(780px, 92%);
  }

  .function-machine {
    grid-template-columns: 1fr;
  }

  .function-machine__section {
    min-height: 150px;
  }

  .function-stage-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .function-aldra {
    display: none;
  }

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

@media (max-width: 680px) {
  .function-press-room__scene {
    min-height: 1140px;
    border-radius: 0;
  }

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

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

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

  .function-workshop {
    bottom: 16px;
    width: 94%;
    padding: 14px 12px;
  }

  .function-plaque h1 {
    font-size: 1.78rem;
  }

  .function-machine__section {
    min-height: 140px;
  }

  .function-stage-row {
    grid-template-columns: 1fr;
  }

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

  .function-candidates__row {
    gap: 8px;
  }

  .function-input-chip,
  .function-output-chip,
  .function-chip {
    width: 50px;
    height: 50px;
  }

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

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

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

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