:root {
  --ink: #4d1735;
  --deep: #831553;
  --hot: #e63591;
  --pink: #ff9dc8;
  --pale: #fff0f6;
  --cream: #fffaf4;
  --mint: #bce9d5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #3a102a;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.room {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background-color: #471331;
  background-image: url("./house-bunny-vanity-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.room-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.room-shade {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 20%, rgba(45, 4, 30, .28) 100%);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 46px;
  padding: 10px clamp(18px, 4vw, 62px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #fff8fc;
  background: linear-gradient(#a42b69, #741448);
  border-bottom: 3px solid #ffadd3;
  box-shadow: 0 4px 0 #4b1232, 0 8px 24px rgba(48, 0, 30, .38);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
}

.topbar strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: .12em;
}

.topbar span:last-child {
  text-align: right;
}

.persistent-mirror-return {
  position: fixed;
  z-index: 60;
  top: 62px;
  right: clamp(14px, 2.4vw, 34px);
  padding: 9px 13px;
  border: 2px solid #fff7fb;
  border-bottom-color: #8b164f;
  color: #64113c;
  background: linear-gradient(#fff68e, #ffd34f);
  box-shadow: 4px 4px 0 #c81d6d, 0 8px 18px rgba(48, 0, 30, .3);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.persistent-mirror-return:hover,
.persistent-mirror-return:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.experience {
  position: relative;
  z-index: 2;
  width: min(1120px, 96vw);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 68px;
}

.mirror-shell {
  position: relative;
  width: min(690px, 62vw);
  height: min(525px, 58vh);
  min-height: 390px;
  margin: 0 auto;
  padding: 26px 23px 16px;
  border: 0;
  border-radius: 47% 47% 8% 8% / 22% 22% 8% 8%;
  background: transparent;
}

.mirror {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 47% 47% 5% 5% / 22% 22% 5% 5%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 24%),
    radial-gradient(circle at 50% 30%, rgba(255, 197, 224, .28), rgba(71, 13, 49, .12) 76%);
  box-shadow: inset 0 0 45px rgba(37, 0, 24, .35);
}

.bulbs {
  position: absolute;
  inset: 8px;
  pointer-events: none;
}

.bulbs i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ffcfec;
  box-shadow: 0 0 9px #fff, 0 0 17px #ff5fb3;
  animation: twinkle 1.8s infinite alternate;
}

.bulbs i:nth-child(1) { left: 8%; top: 30%; }
.bulbs i:nth-child(2) { left: 12%; top: 17%; }
.bulbs i:nth-child(3) { left: 21%; top: 8%; }
.bulbs i:nth-child(4) { left: 34%; top: 3%; }
.bulbs i:nth-child(5) { left: 49%; top: 1%; }
.bulbs i:nth-child(6) { right: 34%; top: 3%; }
.bulbs i:nth-child(7) { right: 21%; top: 8%; }
.bulbs i:nth-child(8) { right: 12%; top: 17%; }
.bulbs i:nth-child(9) { right: 8%; top: 30%; }
.bulbs i:nth-child(10) { right: 5%; top: 48%; }
.bulbs i:nth-child(11) { right: 4%; top: 68%; }
.bulbs i:nth-child(12) { left: 4%; top: 68%; }
.bulbs i:nth-child(13) { left: 5%; top: 48%; }
.bulbs i:nth-child(14) { left: 50%; bottom: 1%; }

.mirror-intro,
.mirror-finale {
  padding: 60px 42px 30px;
  text-align: center;
  color: #fff8fb;
  text-shadow: 0 2px 0 #6d1a49, 0 0 18px rgba(255, 153, 205, .7);
}

.mirror-intro p,
.mirror-finale p,
.exchange-center > p {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
}

.mirror-intro h1,
.mirror-finale h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-style: italic;
  line-height: .91;
}

.mirror-intro span,
.mirror-finale span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.prop-layer {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 240px;
  margin-top: -12px;
}

.prop-grid {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(760px, 74vw);
  transform: translateX(-50%);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.prop {
  position: relative;
  width: 150px;
  height: 150px;
  padding: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .22s ease, filter .22s ease;
}

.prop:hover,
.prop:focus-visible {
  transform: translateY(-9px) rotate(-2deg) scale(1.05);
  filter: drop-shadow(0 9px 10px rgba(67, 10, 44, .45));
  outline: none;
}

.prop.opened {
  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 13px #ff69b4);
}

.prop img {
  width: 100%;
  height: 118px;
  object-fit: contain;
}

.prop span {
  display: inline-block;
  max-width: 150px;
  padding: 5px 8px;
  color: #fff;
  background: var(--deep);
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 #4a1534;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
}

.reveal-card {
  position: absolute;
  left: auto;
  right: -115px;
  top: 25px;
  z-index: 2;
  width: min(280px, 25vw);
  padding: 15px 16px;
  transform: translateY(calc(-100% - 12px)) rotate(-1.5deg);
  background: #fff8c9;
  border: 2px solid #7b2450;
  box-shadow: 6px 7px 0 rgba(79, 14, 48, .45);
}

.reveal-card::before {
  content: "";
  position: absolute;
  left: 38%;
  top: -12px;
  width: 70px;
  height: 23px;
  transform: rotate(4deg);
  background: rgba(255, 157, 200, .75);
}

.reveal-card small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.reveal-card h2 {
  margin: 7px 0;
  color: #b01963;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.reveal-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
}

.mini-receipt {
  position: absolute;
  right: -115px;
  top: 10px;
  width: min(280px, 25vw);
  min-height: 94px;
  padding: 15px 13px 12px;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, #ebc7d7 25px),
    #fffdf7;
  border: 1px dashed #8c5370;
  box-shadow: 4px 6px 0 rgba(67, 12, 43, .35);
  font-family: "Courier New", monospace;
  transition: height .4s ease;
}

.mini-receipt.printing {
  animation: print .35s ease-out;
}

.receipt-top {
  padding-bottom: 8px;
  border-bottom: 1px dashed #76405d;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.receipt-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  padding: 7px 0 3px;
  font-size: 10px;
}

.receipt-line em {
  grid-column: 2;
  color: #a51f64;
  font-style: normal;
  font-weight: 900;
}

.mini-receipt > p {
  margin: 9px 0 0;
  padding-top: 7px;
  border-top: 1px dashed #76405d;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.mini-receipt .complete {
  color: #ba1668;
  font-size: 12px;
}

.stage-2 .experience {
  width: min(1280px, 97vw);
}

.stage-2 .mirror-shell {
  width: min(1000px, 82vw);
  height: min(590px, 66vh);
  min-height: 500px;
}

.stage-2 .mirror {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), transparent 23%),
    radial-gradient(circle at 50% 35%, rgba(255, 213, 232, .22), rgba(54, 6, 37, .28) 75%);
}

.exchange-lab {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 205px;
  align-items: stretch;
  color: #42112f;
}

.exchange-rail {
  position: relative;
  z-index: 2;
  padding: 105px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity .25s ease, filter .25s ease;
}

.rail-left {
  background: linear-gradient(90deg, rgba(255, 168, 208, .96), rgba(255, 221, 236, .72));
}

.rail-right {
  background: linear-gradient(-90deg, rgba(180, 230, 211, .96), rgba(226, 246, 238, .72));
}

.show-left .rail-right,
.show-right .rail-left {
  opacity: .62;
  filter: saturate(.55);
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(79, 19, 52, .35);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
}

.rail-heading b {
  min-width: 35px;
  padding: 4px 6px;
  color: #fff;
  background: #6f1547;
  border: 1px solid rgba(255, 255, 255, .78);
  font-size: 12px;
  text-align: center;
}

.exchange-rail button {
  width: 100%;
  min-height: 49px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 8px;
  color: #54203e;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(82, 24, 55, .28);
  box-shadow: 0 2px 0 rgba(76, 21, 50, .12);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.exchange-rail button:hover,
.exchange-rail button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .9);
  outline: 3px solid rgba(255, 255, 255, .62);
}

.exchange-rail button i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #8a5d76;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.exchange-rail button span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1.18;
}

.exchange-rail button.visited i {
  color: #501031;
  background: #fff28a;
  box-shadow: 0 0 10px rgba(255, 255, 255, .9);
}

.exchange-rail button.active {
  transform: translateX(7px);
  background: #fffdf7;
  border-color: #7e174e;
  box-shadow: -5px 0 0 #e8328c, 0 4px 0 rgba(76, 21, 50, .16);
}

.rail-right button.active {
  transform: translateX(-7px);
  box-shadow: 5px 0 0 #35a77d, 0 4px 0 rgba(76, 21, 50, .16);
}

.exchange-reading {
  position: relative;
  z-index: 3;
  width: min(490px, 100%);
  margin: auto;
  padding: 24px 27px;
  color: #40132e;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 247, 239, .96)),
    #fffaf2;
  border: 3px solid rgba(255, 255, 255, .84);
  box-shadow:
    0 0 0 2px #8c3764,
    8px 10px 0 rgba(55, 5, 35, .34);
  animation: readingIn .23s ease-out;
}

.reading-kicker {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  color: #8a1b57;
  border-bottom: 1px solid #d8a9bf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.exchange-reading > h2 {
  margin: 15px 0 17px;
  color: #771444;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 33px);
  font-weight: 700;
  line-height: 1.08;
}

.reading-row {
  padding: 11px 13px;
  border-left: 5px solid #d7a6bc;
  background: #fff;
}

.reading-row b {
  display: block;
  margin-bottom: 5px;
  color: #9a1c5b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reading-row p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.38;
}

.surface-reading {
  color: #745365;
  background: #f2e9ed;
}

.hidden-reading {
  border-left-color: #e72f8a;
}

.change-reading {
  margin-top: 9px;
  border-left-color: #35a77d;
  background: #ecfff7;
}

.reading-arrow {
  height: 20px;
  color: #d12b7d;
  font-size: 20px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.center-reading {
  text-align: center;
}

.center-reading > p:first-child {
  margin: 0 0 10px;
  color: #8d205a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.center-reading h2 {
  margin: 0;
  color: #711442;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.6vw, 38px);
  line-height: 1.06;
}

.center-summary {
  margin: 18px 0 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.48;
}

.direction-cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.direction-cards button {
  min-height: 112px;
  padding: 12px;
  display: grid;
  gap: 4px;
  color: #551039;
  background: #ffd0e4;
  border: 2px solid #9c2762;
  box-shadow: 4px 4px 0 #6f1946;
  cursor: pointer;
}

.direction-cards button + button {
  background: #d9f5e9;
  border-color: #438d72;
}

.direction-cards button:hover,
.direction-cards button:focus-visible {
  transform: translateY(-3px);
  outline: 3px solid #fff;
}

.direction-cards button span {
  font-size: 25px;
  line-height: 1;
}

.direction-cards button b {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.direction-cards button small {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.center-instruction {
  display: block;
  margin-top: 16px;
  color: #6c4b5d;
  font-size: 12px;
  font-weight: 800;
}

.print-exchange {
  padding: 12px 17px;
  color: #fff;
  background: linear-gradient(#bd2d74, #7c174c);
  border: 2px solid #fff;
  box-shadow: 4px 4px 0 #4d102f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  cursor: pointer;
}

.print-exchange:hover,
.print-exchange:focus-visible {
  transform: translateY(-3px);
  outline: 3px solid #ffb9d8;
}

.slider-console {
  position: relative;
  z-index: 8;
  width: min(950px, 86vw);
  margin: -15px auto 0;
  padding: 13px 20px;
  display: grid;
  grid-template-columns: 125px 1fr 125px;
  align-items: center;
  gap: 18px;
  color: white;
  background: linear-gradient(#9e2c67, #64123e);
  border: 3px outset #ffafd4;
  box-shadow: 0 8px 20px rgba(50, 0, 31, .42);
  text-align: center;
}

.slider-console > span {
  display: grid;
  gap: 2px;
}

.slider-console span b {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.slider-console span small {
  color: #edbbd3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}

.slider-console span.seen,
.slider-console span.seen small {
  color: #fff58d;
}

.slider-console input {
  appearance: none;
  width: 100%;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 2px), rgba(255,255,255,.7) calc(12.5% - 2px) 12.5%),
    linear-gradient(90deg, #ff63ad, #fff0f6 50%, #7ee0bd);
  border: 2px solid #381126;
  border-radius: 0;
  box-shadow: inset 0 2px 2px rgba(44, 0, 27, .28);
  cursor: ew-resize;
}

.slider-console input::-webkit-slider-thumb {
  appearance: none;
  width: 27px;
  height: 27px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff 0 24%, #ff8ac0 25% 48%, #fff 49% 62%, #e62d88 63%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #741444, 0 0 13px #fff;
  cursor: grab;
}

.slider-console input::-moz-range-thumb {
  width: 23px;
  height: 23px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff 0 24%, #ff8ac0 25% 48%, #fff 49% 62%, #e62d88 63%);
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 0 0 0 2px #741444, 0 0 13px #fff;
  cursor: grab;
}

.full-receipt {
  position: relative;
  z-index: 7;
  width: min(650px, 83vw);
  margin: -30px auto 30px;
  padding: 20px 25px 24px;
  transform: rotate(-.4deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(223, 172, 195, .35) 30px),
    #fffdf3;
  border: 2px dashed #7e4762;
  box-shadow: 9px 12px 0 rgba(65, 8, 40, .37);
  font-family: "Courier New", monospace;
  animation: receiptOut .8s both;
}

.receipt-header {
  padding-bottom: 12px;
  display: grid;
  gap: 4px;
  border-bottom: 2px dashed #7e4762;
  text-align: center;
  font-size: 10px;
}

.receipt-header b {
  color: #9f1b5c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  letter-spacing: .06em;
}

.receipt-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 15px;
}

.receipt-columns section {
  padding: 0 18px;
}

.receipt-columns section + section {
  border-left: 2px dashed #c88da9;
}

.receipt-columns h2 {
  margin: 0 0 11px;
  color: #a31d60;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
}

.receipt-columns p {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.receipt-columns p::before {
  content: "◆ ";
  color: #e23089;
}

.receipt-total {
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 2px dashed #7e4762;
  font-size: 12px;
}

.receipt-total b {
  color: #a1145b;
}

.stamp-mark {
  position: absolute;
  right: 14%;
  bottom: 12%;
  padding: 8px 13px;
  transform: rotate(-8deg);
  color: rgba(191, 19, 98, .83);
  border: 4px double rgba(191, 19, 98, .76);
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
}

.stamp-button {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 18px;
  width: 192px;
  min-height: 176px;
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 3px outset #ffc2df;
  background: linear-gradient(#ffd3e6, #d84a91);
  box-shadow: 6px 8px 0 rgba(67, 11, 43, .45);
  cursor: pointer;
  transition: transform .2s ease;
}

.stamp-button:hover {
  transform: translateY(-6px) rotate(-2deg);
}

.stamp-button img {
  width: 132px;
  height: 132px;
  margin: -17px 0 -8px;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px rgba(90, 8, 52, .34));
}

.stamp-button span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.stamp-button b {
  color: #71123f;
  font-size: 12px;
}

.mirror-finale h2 {
  margin: 8px 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 42px);
}

.mirror-finale .crossed {
  display: inline-block;
  text-decoration: line-through 4px #ff4a9f;
  opacity: .75;
}

.stage-4 .full-receipt {
  width: min(570px, 74vw);
  margin-top: -116px;
  margin-bottom: -20px;
  opacity: .92;
  transform: rotate(1deg) scale(.84);
}

.stage-4 .mirror-shell {
  height: min(490px, 54vh);
}

.final-actions {
  position: relative;
  z-index: 11;
  width: min(720px, 88vw);
  margin: 0 auto 20px;
  padding: 15px 20px;
  color: #fff;
  background: rgba(72, 11, 48, .88);
  border: 2px solid #ffb1d5;
  box-shadow: 6px 7px 0 #3b0b2a;
  text-align: center;
}

.final-actions > p {
  margin: 0 auto 12px;
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.final-actions > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.final-actions button {
  padding: 10px 14px;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  cursor: pointer;
}

.primary-action {
  color: #64113c;
  background: #fff06f;
  box-shadow: 4px 4px 0 #c81d6d;
}

.secondary-action {
  color: #fff;
  background: #d73583;
}

.text-action {
  color: #fff;
  background: transparent;
}

.integration-note {
  display: block;
  margin-top: 10px;
  color: #ffef95;
  font-weight: 700;
}

@keyframes twinkle {
  to { opacity: .55; transform: scale(.75); }
}

@keyframes print {
  from { transform: translateY(-12px); }
}

@keyframes pulse {
  to { transform: scale(1.04); }
}

@keyframes readingIn {
  from {
    opacity: .35;
    transform: translateY(7px) scale(.985);
  }
}

@keyframes receiptOut {
  from { opacity: 0; transform: translateY(-80px) scaleY(.4); transform-origin: top; }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    font-size: 9px;
  }

  .topbar span:last-child {
    display: none;
  }

  .persistent-mirror-return {
    top: 58px;
    right: 10px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .experience {
    width: 100%;
    padding: 62px 10px 24px;
  }

  .mirror-shell {
    width: 94vw;
    height: 420px;
    padding: 18px;
  }

  .prop-layer {
    min-height: 520px;
  }

  .prop-grid {
    position: relative;
    width: 92vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .prop {
    width: 130px;
    height: 135px;
  }

  .reveal-card,
  .mini-receipt {
    position: relative;
    inset: auto;
    width: min(420px, 88vw);
    margin: 12px auto;
  }

  .reveal-card {
    transform: rotate(-1.5deg);
  }

  .stage-2 .experience {
    padding-inline: 8px;
  }

  .stage-2 .mirror-shell {
    width: 96vw;
    height: auto;
    min-height: 990px;
    padding: 18px 14px;
  }

  .stage-2 .mirror {
    height: auto;
    min-height: 950px;
    overflow: visible;
    border-radius: 34px;
  }

  .exchange-lab {
    grid-template-columns: 1fr;
    padding: 66px 10px 24px;
  }

  .exchange-rail {
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .rail-heading {
    grid-column: 1 / -1;
  }

  .exchange-rail button {
    min-height: 48px;
  }

  .exchange-rail button.active,
  .rail-right button.active {
    transform: translateY(-2px);
  }

  .exchange-reading {
    width: calc(100% - 24px);
    margin: 17px auto;
    padding: 21px;
  }

  .slider-console {
    width: 92vw;
    grid-template-columns: 74px 1fr 74px;
    gap: 10px;
  }

  .slider-console span b {
    font-size: 10px;
  }

  .slider-console span small {
    font-size: 8px;
  }

  .stamp-button {
    position: relative;
    inset: auto;
    margin: -14px auto 30px;
  }
}

@media (max-width: 520px) {
  .mirror-shell {
    min-height: 390px;
  }

  .stage-2 .mirror-shell {
    min-height: 1070px;
  }

  .stage-2 .mirror {
    min-height: 1035px;
  }

  .exchange-rail {
    padding-inline: 9px;
  }

  .exchange-rail button {
    padding: 7px;
    grid-template-columns: 22px 1fr;
    gap: 6px;
  }

  .exchange-rail button i {
    width: 22px;
    height: 22px;
  }

  .exchange-rail button span {
    font-size: 10px;
  }

  .exchange-reading {
    padding: 18px 16px;
  }

  .exchange-reading > h2 {
    font-size: 25px;
  }

  .reading-row p,
  .center-summary {
    font-size: 14px;
  }

  .direction-cards {
    grid-template-columns: 1fr;
  }

  .direction-cards button {
    min-height: 85px;
  }

  .slider-console {
    padding-inline: 10px;
    grid-template-columns: 60px 1fr 60px;
    gap: 7px;
  }

  .slider-console span small {
    display: none;
  }

  .mirror-intro,
  .mirror-finale {
    padding-inline: 22px;
  }

  .receipt-columns {
    grid-template-columns: 1fr;
  }

  .receipt-columns section + section {
    margin-top: 10px;
    padding-top: 10px;
    border-left: 0;
    border-top: 2px dashed #c88da9;
  }

  .receipt-total {
    display: grid;
    gap: 5px;
  }

  .full-receipt {
    margin-top: -15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Stage 2 — a guided, two-sided exchange. No hidden slider state. */
.room.stage-2 {
  overflow-y: auto;
}

.stage-2 .experience {
  width: min(1240px, 98vw);
  min-height: 100vh;
  padding-bottom: 44px;
}

.stage-2 .mirror-shell {
  width: min(1120px, 94vw);
  height: auto;
  min-height: 690px;
  padding: 27px 24px 20px;
}

.stage-2 .mirror {
  height: auto;
  min-height: 650px;
  padding: 72px 52px 38px;
  overflow: visible;
  place-items: start stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .15), transparent 23%),
    radial-gradient(circle at 50% 28%, rgba(255, 221, 237, .34), rgba(54, 6, 37, .32) 78%);
}

.exchange-story {
  width: 100%;
  animation: readingIn .28s ease-out;
}

.exchange-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff8fc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-shadow: 0 2px 0 #61123e;
}

.exchange-progress > div {
  display: flex;
  gap: 8px;
}

.exchange-progress i {
  color: rgba(255, 255, 255, .28);
  font-size: 18px;
  font-style: normal;
  text-shadow: none;
}

.exchange-progress i.filled {
  color: #fff47b;
  filter: drop-shadow(0 0 6px #ff5eaf);
}

.surface-claim {
  width: min(710px, 90%);
  margin: 14px auto 20px;
  padding: 13px 18px 14px;
  color: #50102f;
  background: rgba(255, 251, 244, .96);
  border: 2px solid #8f285b;
  box-shadow: 5px 6px 0 rgba(58, 5, 36, .35);
  text-align: center;
}

.surface-claim small {
  color: #a52262;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
}

.surface-claim p {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.2;
}

.surface-claim b {
  display: inline-block;
  padding: 5px 9px;
  color: #fff;
  background: #861b53;
  font-size: 10px;
  letter-spacing: .07em;
}

.exchange-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: stretch;
}

.exchange-side {
  position: relative;
  min-height: 330px;
  padding: 0;
  overflow: hidden;
  color: #4c1533;
  background: linear-gradient(145deg, rgba(255, 223, 236, .98), rgba(255, 166, 205, .96));
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #8c3764, 7px 9px 0 rgba(55, 5, 35, .32);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, filter .18s ease;
}

.zetas-side {
  background: linear-gradient(145deg, rgba(231, 255, 246, .98), rgba(155, 225, 199, .96));
  box-shadow: 0 0 0 2px #347c63, 7px 9px 0 rgba(55, 5, 35, .32);
}

.exchange-side:hover,
.exchange-side:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.04);
  outline: 4px solid rgba(255, 255, 255, .7);
  outline-offset: 3px;
}

.side-direction {
  display: block;
  padding: 11px 15px;
  color: #fff;
  background: #8b1f58;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}

.zetas-side .side-direction {
  background: #287e61;
}

.closed-side {
  min-height: 282px;
  padding: 30px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.closed-side i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d92e80;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #7e174e, 0 0 20px rgba(255, 255, 255, .75);
  font-size: 29px;
  font-style: normal;
  animation: pulse .8s infinite alternate;
}

.zetas-side .closed-side i {
  background: #35a77d;
  box-shadow: 0 0 0 2px #28755a, 0 0 20px rgba(255, 255, 255, .75);
}

.closed-side b {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.15;
}

.closed-side small {
  padding: 5px 9px;
  color: #fff;
  background: #6f1946;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.revealed-content {
  min-height: 282px;
  padding: 17px 19px 20px;
  display: flex;
  flex-direction: column;
}

.revealed-content em {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 5px 8px;
  color: #fff;
  background: #bc286e;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .07em;
}

.zetas-side .revealed-content em {
  background: #287e61;
}

.revealed-content strong {
  display: block;
  margin-bottom: 11px;
  color: #711442;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.08;
}

.zetas-side .revealed-content strong {
  color: #195c47;
}

.revealed-content > span:not(.what-changed) {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

.what-changed {
  margin-top: auto;
  padding: 10px 11px;
  display: block;
  color: #5e2944;
  background: rgba(255, 255, 255, .72);
  border-left: 5px solid #d92e80;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.zetas-side .what-changed {
  border-left-color: #258761;
}

.what-changed b {
  display: block;
  margin-bottom: 3px;
  color: #9a1c5b;
  font-size: 10px;
  letter-spacing: .08em;
}

.zetas-side .what-changed b {
  color: #216b52;
}

.exchange-link {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
}

.exchange-link span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #731644;
  background: #fff9d6;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #8b2356, 0 0 18px rgba(255, 255, 255, .8);
  font-size: 25px;
  font-weight: 900;
}

.exchange-link.complete span {
  color: #6f1547;
  background: #fff16f;
  animation: pulse .6s infinite alternate;
}

.pair-result {
  width: min(760px, 92%);
  margin: 20px auto 0;
  padding: 14px 18px 17px;
  color: #4f1231;
  background: #fffdf5;
  border: 2px solid #8d2858;
  box-shadow: 6px 7px 0 rgba(56, 7, 37, .35);
  text-align: center;
  animation: readingIn .3s ease-out;
}

.pair-result > span {
  color: #a51f64;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.pair-result p {
  margin: 6px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.pair-result button {
  min-width: min(430px, 100%);
  padding: 13px 20px;
  color: #fff;
  background: linear-gradient(#c92d79, #7b174b);
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 #4d102f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  cursor: pointer;
}

.pair-result button:hover,
.pair-result button:focus-visible {
  transform: translateY(-3px);
  outline: 3px solid #ffb9d8;
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .stage-2 .mirror-shell {
    width: 96vw;
    height: auto;
    min-height: 0;
    padding: 18px 13px;
  }

  .stage-2 .mirror {
    height: auto;
    min-height: 0;
    padding: 68px 18px 30px;
    overflow: visible;
    border-radius: 34px;
  }

  .exchange-pair {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .exchange-link {
    height: 34px;
  }

  .exchange-link span {
    width: 42px;
    height: 42px;
    transform: rotate(90deg);
    font-size: 22px;
  }

  .exchange-side,
  .closed-side,
  .revealed-content {
    min-height: 0;
  }

  .closed-side {
    padding: 28px 18px;
  }

  .revealed-content {
    padding: 17px;
  }

  .surface-claim {
    width: 100%;
  }

  .pair-result {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .exchange-progress {
    align-items: flex-start;
    font-size: 10px;
  }

  .exchange-progress > div {
    gap: 4px;
  }

  .exchange-progress i {
    font-size: 14px;
  }

  .surface-claim {
    padding-inline: 12px;
  }

  .surface-claim p {
    font-size: 19px;
  }

  .side-direction {
    font-size: 10px;
  }

  .revealed-content strong {
    font-size: 22px;
  }

  .pair-result button {
    padding-inline: 12px;
    font-size: 11px;
  }
}
