* {
  box-sizing: border-box;
}
html {
  overscroll-behavior: none;
}
body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  background-image:
    linear-gradient(#7928ca0a 1px, transparent 1px),
    linear-gradient(90deg, #7928ca0a 1px, transparent 1px);
  background-size: 32px 32px;
}
button,
a,
label,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
label:focus-within,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
button {
  border: 0;
}
button,
a {
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
button:active,
a.primary-button:active {
  transform: translate(2px, 3px);
  box-shadow: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1:focus,
h2:focus {
  outline: none;
}
button span,
a span {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(75px);
  width: 35vw;
  height: 35vw;
  opacity: 0.24;
  animation: ambient-drift 18s ease-in-out infinite alternate;
}
.ambient-one {
  background: var(--yellow);
  left: -15vw;
  top: 38vh;
}
.ambient-two {
  background: var(--pink-soft);
  right: -12vw;
  bottom: -15vh;
}
.app-shell {
  max-width: 1280px;
  margin: auto;
  padding: 0 52px;
}
.site-header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 0.92;
  letter-spacing: -1px;
}
.brand-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 42px;
  box-shadow: 3px 3px 0 var(--ink);
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: 700;
}
.header-note {
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-note > span:first-child {
  color: var(--pink);
  font-size: 20px;
}
.sound-toggle {
  min-height: 42px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.sound-icon {
  font-size: 21px;
  color: var(--purple);
}
.journey {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}
.journey-step {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.journey-step b {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--paper);
}
.journey-step.active {
  color: var(--ink);
}
.journey-step.active b {
  background: var(--yellow);
  border-color: var(--ink);
}
.journey-step.done b {
  background: var(--cyan);
  border-color: var(--ink);
}
.journey i {
  width: 40px;
  height: 1px;
  background: var(--line);
}
.screen {
  animation: screen-in 0.45s both;
}
.intro-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 496px;
  padding: 8px 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.little-star {
  font-size: 19px;
  color: var(--purple);
}
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -3.5px;
  margin: 21px 0 23px;
}
.name-head {
  position: relative;
  color: var(--pink);
}
.heading-sparkle {
  display: inline-block;
  position: absolute;
  font-family: var(--font-body);
  color: var(--purple);
  font-size: 57px;
  right: -67px;
  top: -18px;
  transform: rotate(14deg);
}
.intro-description {
  font-size: 16px;
  line-height: 1.65;
}
.intro-description strong {
  font-weight: 700;
}
.signature {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 31px;
  font-size: 11px;
  line-height: 1.8;
}
.signature-heart {
  background: var(--pink-soft);
  border: 1px solid var(--ink);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 23px;
  color: var(--pink);
  border-radius: 50%;
  transform: rotate(-10deg);
}
.signature b {
  font-weight: 600;
}
.envelope-stage {
  position: relative;
  background: var(--lavender);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  height: 457px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-image: radial-gradient(
    ellipse at 70% 25%,
    #ffffff7a,
    transparent 65%
  );
}
.stamp-label {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  top: 22px;
  left: 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transform: rotate(-4deg);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 12px;
}
.stamp-label span {
  color: var(--pink);
  font-size: 17px;
  vertical-align: middle;
  margin-left: 6px;
}
.stage-sparkle {
  position: absolute;
  z-index: 1;
  font-size: 48px;
}
.sparkle-a {
  color: var(--purple);
  top: 97px;
  left: 22px;
  transform: rotate(-10deg);
}
.sparkle-b {
  color: var(--pink);
  right: 22px;
  top: 230px;
  font-size: 62px;
}
.orbit {
  width: 330px;
  height: 255px;
  border: 1px dashed #7928ca50;
  border-radius: 50%;
  position: absolute;
  top: 69px;
  transform: rotate(-20deg);
}
.envelope-button {
  position: relative;
  background: none;
  width: 100%;
  max-width: 450px;
  margin-top: 35px;
  padding: 0;
  isolation: isolate;
  animation: envelope-float 4s ease-in-out infinite;
}
.envelope-art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 13px #7928ca20);
  transition: transform 0.35s;
}
@media (hover: hover) and (pointer: fine) {
  .envelope-button:hover .envelope-art {
    transform: rotate(-4deg) scale(1.04);
  }
}
.mail-count {
  position: absolute;
  right: 20%;
  top: 10%;
  background: var(--pink);
  border: 2px solid var(--white);
  box-shadow: 2px 3px 0 var(--ink);
  border-radius: 50%;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
}
.envelope-tag {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  padding: 8px 13px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  box-shadow: 2px 2px 0 var(--ink);
}
.envelope-caption {
  text-align: center;
  margin-top: 11px;
  z-index: 2;
}
.envelope-caption h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.5px;
}
.tap-hint {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
}
.tap-hint > span {
  background: var(--purple);
  color: white;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 17px;
}
.postmark {
  position: absolute;
  right: 18px;
  top: 17px;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1px;
  border-block: 1px solid #7928ca50;
  padding: 8px 2px;
  transform: rotate(11deg);
}
.envelope-stage.opening .envelope-button {
  animation: envelope-open 0.8s forwards;
}
.prize-teaser {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 23px;
  margin: 22px 0 31px;
  background: var(--mint);
  position: relative;
}
.teaser-icon {
  font-size: 40px;
  line-height: 1;
}
.prize-teaser p {
  font-size: 12px;
  line-height: 1.5;
}
.prize-teaser p b {
  font-weight: 700;
}
.teaser-amount {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 29px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.teaser-amount > span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--purple);
  margin: 0 5px;
}
.teaser-amount small {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  margin-left: 3px;
}
.guaranteed {
  font-size: 10px;
  padding-left: 25px;
  margin-left: 17px;
  border-left: 1px solid #2c183e35;
  white-space: nowrap;
}
.guaranteed span {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  margin-right: 5px;
}
.site-footer {
  padding: 0 0 23px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 8px;
  letter-spacing: 1.1px;
  font-weight: 600;
  color: var(--muted);
}
.site-footer span span {
  color: var(--pink);
  font-size: 13px;
  margin: 0 3px;
}
.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.3vw, 57px);
  line-height: 1.07;
  letter-spacing: -2.4px;
  margin: 20px 0;
}
.display-heading em {
  font-style: normal;
  color: var(--pink);
}
.primary-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 58px;
  width: 100%;
  background: var(--pink);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 15px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.primary-button:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-1px, -1px);
}
.primary-button > span {
  font-size: 23px;
  line-height: 0.8;
}
.primary-button small {
  display: block;
  flex-basis: 100%;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-top: -8px;
}
.letter-screen,
.tutorial-screen,
.reward-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 500px;
  padding: 12px 0 24px;
}
.letter-side p {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
}
.huge-heart {
  display: block;
  line-height: 1;
  font-size: 150px;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
  filter: drop-shadow(5px 6px 0 var(--purple));
  transform: rotate(-9deg);
  margin: 16px 0 24px;
}
.letter-paper {
  border: 1.5px solid var(--ink);
  padding: 30px 32px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 3px;
  transform: rotate(1deg);
  position: relative;
}
.letter-paper:before {
  content: "";
  position: absolute;
  width: 90px;
  height: 22px;
  background: #ffe600ab;
  top: -12px;
  left: 40%;
  transform: rotate(-5deg);
}
.letter-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1.7px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--line);
}
.letter-date span {
  color: var(--pink);
  font-size: 28px;
}
.letter-paper h3 {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 21px 0 17px;
}
.letter-paper p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.letter-sign {
  font-size: 12px;
  line-height: 1.5;
  margin: 20px 0;
}
.letter-sign strong {
  display: block;
  font-size: 22px;
  letter-spacing: -1px;
  color: var(--purple);
}
.letter-sign > span {
  display: block;
  font-size: 10px;
}
.letter-paper .primary-button {
  margin-top: 24px;
}
.tutorial-description {
  font-size: 16px;
  line-height: 1.6;
}
.object-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 23px 0;
  gap: 9px;
}
.object-guide > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 3px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
}
.object-guide > div > span {
  font-size: 29px;
}
.object-guide b {
  font-size: 12px;
  text-align: center;
}
.object-guide small {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
}
.object-guide .obstacle-guide {
  background: var(--pink-soft);
}
.object-guide .obstacle-guide small {
  color: #a70042;
}
.combo-note {
  font-size: 11px;
  line-height: 1.8;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 9px;
  padding: 11px 15px;
}
.combo-note b {
  font-size: 12px;
  letter-spacing: 0.6px;
}
.combo-note span {
  opacity: 0.75;
}
.puppet-stage {
  min-height: 484px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  background: var(--lavender);
  padding: 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  background-image: radial-gradient(#7928ca12 1px, transparent 1px);
  background-size: 13px 13px;
}
.stage-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.stage-label > span {
  color: var(--pink);
  margin: 0 7px;
}
.tutorial-puppet {
  width: 150px;
  height: 230px;
  margin: 16px 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.puppet-callout {
  position: absolute;
  right: 28px;
  top: 99px;
  font-size: 15px;
  color: var(--purple);
  transform: rotate(10deg);
}
.puppet-callout > span {
  display: block;
  font-size: 35px;
  padding-left: 10px;
}
.photo-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: 8px 0 12px;
}
.photo-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  min-height: 44px;
}
.character-picker {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 5px 0 0;
}
.character-picker legend {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.character-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.character-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 94px;
  min-width: 0;
  padding: 9px 3px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s, transform 0.15s;
}
.character-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.character-option img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--lavender);
}
.character-option > span {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.character-option img.character-image--cutout {
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.character-option.selected {
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  transform: translateY(-2px);
}
.character-option.selected::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}
.character-option:focus-within {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.character-option--custom {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 44px;
  padding: 6px;
}
.character-option--custom img {
  width: 30px;
  height: 30px;
}
.character-status {
  font-size: 12px;
  text-align: center;
  margin: 10px 0 4px;
  color: var(--purple);
}
.photo-button span {
  font-size: 18px;
}
.photo-controls > span {
  font-size: 9px;
  color: var(--muted);
}
.drag-guide {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 4px 0 16px;
}
.drag-guide span {
  font-size: 20px;
}
.game-screen {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 58px;
  align-items: center;
  padding: 0 0 32px;
}
.game-sidebar p {
  font-size: 18px;
  line-height: 1.5;
}
.game-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 17px;
  margin: 28px 0;
  max-width: 240px;
}
.record-label {
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  padding: 14px 17px;
  border-radius: 9px;
  width: max-content;
}
.record-label b {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.game-sidebar .keyboard-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
}
.game-machine {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: 20px;
  overflow: hidden;
}
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
  background: var(--yellow);
  border-bottom: 1.5px solid var(--ink);
}
.timer-box > span,
.score-box > span {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 700;
  display: block;
}
.timer-box strong {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 700;
}
.timer-box strong span {
  font-size: 14px;
  margin-left: 2px;
}
.timer-box.urgent {
  color: #c71f4b;
}
.score-box {
  text-align: center;
  margin: auto;
}
.score-box strong {
  font-family: var(--font-display);
  font-size: 37px;
  line-height: 1.2;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.score-box strong.bump {
  animation: score-pop 0.2s;
}
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 20px;
  font-weight: 700;
}
.prize-hud {
  padding: 11px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.prize-hud > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
.prize-hud b {
  font-size: 18px;
  letter-spacing: -0.6px;
  margin-left: 5px;
  color: var(--purple);
}
#next-prize {
  font-size: 8px;
}
.prize-track {
  margin: 8px 0 4px;
  height: 8px;
  border-radius: 8px;
  background: var(--lavender);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.prize-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
}
.prize-ticks {
  position: relative;
  height: 12px;
  margin-inline: 1px;
  font-size: 8px;
  font-weight: 600;
}
.prize-ticks > span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.prize-ticks > span::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  height: 5px;
  border-left: 1px solid currentColor;
}
.prize-ticks > span:first-child {
  transform: none;
}
.prize-ticks > span:first-child::before {
  left: 0;
}
.prize-ticks > span:last-child {
  transform: translateX(-100%);
}
.prize-ticks > span:last-child::before {
  left: 100%;
}
.prize-ticks .unlocked {
  color: var(--purple);
  font-weight: 700;
}
.arena {
  position: relative;
  isolation: isolate;
  height: 360px;
  background-color: var(--lavender);
  background-image:
    linear-gradient(#fff8 1px, transparent 1px),
    linear-gradient(90deg, #fff8 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.arena-stars {
  position: absolute;
  inset: 35px 22px;
  display: flex;
  justify-content: space-between;
  color: #7928ca19;
  font-size: 64px;
  pointer-events: none;
}
.arena-stars span {
  padding-top: 80px;
  font-size: 100px;
}
.arena canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.game-player {
  position: absolute;
  width: 90px;
  height: 145px;
  left: -45px;
  bottom: 45px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  --puppet-scale: 0.65;
}
.arena-floor {
  height: 39px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--purple);
  background-image: conic-gradient(
    #a46de5 25%,
    transparent 0 50%,
    #a46de5 0 75%,
    transparent 0
  );
  background-size: 28px 28px;
  border-top: 2px solid var(--ink);
}
.arena-drag {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 4;
}
.combo-badge {
  position: absolute;
  bottom: 48px;
  left: 14px;
  font-size: 9px;
  font-weight: 600;
  padding: 7px 9px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px;
  z-index: 4;
}
.combo-badge b {
  font-size: 15px;
  margin-left: 3px;
}
.combo-badge > span {
  color: var(--pink);
  margin-left: 5px;
}
.party-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 37%;
  text-align: center;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--pink);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 var(--yellow);
  pointer-events: none;
  animation: party-pop 0.65s infinite alternate;
}
.party-label small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--ink);
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.arena.party {
  background-color: #d1ffea;
}
.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: #ece2fff0;
  backdrop-filter: blur(4px);
}
.game-overlay > strong {
  font-family: var(--font-display);
  font-size: 110px;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--yellow);
  animation: score-pop 0.5s;
}
.game-overlay > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.pause-overlay h3 {
  font-size: 25px;
  letter-spacing: -1px;
}
.pause-overlay p {
  font-size: 13px;
}
.pause-overlay .primary-button {
  width: auto;
  margin-top: 8px;
  font-size: 12px;
}
.pause-overlay .pause-star {
  font-size: 70px;
  color: var(--purple);
}
.reward-copy .display-heading {
  font-size: clamp(35px, 4.3vw, 55px);
}
.final-score {
  padding: 20px 0;
  border-block: 1px dashed var(--line);
  max-width: 340px;
  display: flex;
  flex-direction: column;
}
.final-score > span {
  font-size: 10px;
  letter-spacing: 1px;
}
.final-score strong {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 4px 0;
}
.final-score strong small {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1px;
}
.final-score b {
  font-size: 13px;
  color: var(--purple);
}
.reward-dedication {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 20px;
}
.reward-stage {
  padding: 26px;
  min-height: 460px;
  background: var(--lavender);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  display: grid;
  place-items: center;
  background-image: radial-gradient(#7928ca16 1px, transparent 1px);
  background-size: 12px 12px;
}
.reward-stage > div {
  width: 100%;
}
.gift-box {
  background: none;
  width: 250px;
  height: 265px;
  position: relative;
  display: block;
  margin: 22px auto 4px;
  animation: gift-wiggle 2s infinite;
}
.gift-body {
  position: absolute;
  width: 170px;
  height: 143px;
  bottom: 26px;
  left: 40px;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 5px 5px 12px 12px;
  box-shadow: inset -15px -6px 0 #c6135f;
  z-index: 2;
}
.gift-body:before {
  content: "";
  position: absolute;
  width: 37px;
  height: 100%;
  left: 63px;
  background: var(--yellow);
  border-inline: 2px solid var(--ink);
}
.gift-body i {
  position: absolute;
  top: 43px;
  left: 62px;
  font-size: 40px;
  font-family: var(--font-display);
  font-style: normal;
}
.gift-lid {
  position: absolute;
  width: 190px;
  height: 39px;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 6px;
  bottom: 159px;
  left: 30px;
  z-index: 3;
  box-shadow: inset -16px -7px 0 #c6135f;
  transition: transform 0.4s;
}
.gift-lid:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 70px;
  width: 39px;
  background: var(--yellow);
  border-inline: 2px solid var(--ink);
}
.gift-bow {
  position: absolute;
  left: 60px;
  bottom: 176px;
  font-size: 90px;
  line-height: 1;
  letter-spacing: -15px;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  z-index: 4;
  font-weight: 700;
  transform: rotate(-5deg);
}
.gift-shadow {
  position: absolute;
  width: 210px;
  height: 22px;
  background: #7928ca22;
  bottom: 11px;
  left: 20px;
  border-radius: 50%;
}
.gift-box[data-taps="1"] {
  animation: gift-wiggle 0.8s infinite;
}
.gift-box[data-taps="2"] {
  animation: gift-wiggle 0.28s infinite;
}
.gift-box.opened .gift-lid,
.gift-box.opened .gift-bow {
  transform: translateY(-100px) rotate(-25deg);
  opacity: 0;
}
.reward-stage h3 {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.reward-stage p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 9px;
}
.tap-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 17px;
}
.tap-dots i {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}
.tap-dots i.active {
  background: var(--pink);
}
.money-ticket {
  position: relative;
  margin: 27px auto 21px;
  text-align: left;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 11px;
  padding: 20px;
  box-shadow: 5px 6px 0 var(--purple);
  transform: rotate(-4deg);
  overflow: hidden;
}
.money-ticket > span:first-child {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}
.ticket-value {
  font-family: var(--font-display);
  font-size: 74px;
  line-height: 1.4;
  letter-spacing: -4px;
}
.ticket-value small {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 7px;
}
.money-ticket .ticket-star {
  position: absolute;
  right: 9px;
  top: 45px;
  font-size: 58px;
  color: var(--purple);
  opacity: 0.65;
}
.ticket-bottom {
  padding-top: 12px;
  border-top: 1px dashed var(--ink);
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.6px;
}
.whatsapp-button {
  background: var(--cyan);
  color: var(--ink);
  margin-top: 22px;
}
.text-button {
  background: none;
  min-height: 44px;
  margin-top: 12px;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.noscript {
  position: fixed;
  inset: auto 15px 15px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 20px;
  z-index: 30;
}
body.playing {
  height: 100dvh;
  overflow: hidden;
}
body.playing .prize-teaser {
  display: none;
}
body.playing .app-shell {
  height: 100dvh;
}
@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes envelope-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}
@keyframes envelope-open {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.13) rotate(-6deg);
  }
  100% {
    transform: translateY(-90px) rotate(6deg) scale(0.75);
    opacity: 0;
  }
}
@keyframes score-pop {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.13);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes party-pop {
  to {
    transform: scale(1.07) rotate(-2deg);
  }
}
@keyframes gift-wiggle {
  0%,
  75%,
  100% {
    transform: rotate(0);
  }
  80% {
    transform: rotate(-6deg);
  }
  86% {
    transform: rotate(6deg);
  }
  92% {
    transform: rotate(-4deg);
  }
}
@keyframes ambient-drift {
  to {
    transform: translate(9vw, -5vh);
  }
}
@media (min-width: 1400px) {
  .app-shell {
    padding-top: 15px;
  }
  .intro-screen {
    min-height: 545px;
  }
  .envelope-stage {
    height: 485px;
  }
  .envelope-button {
    max-width: 490px;
  }
  .prize-teaser {
    margin-top: 28px;
  }
  .site-header {
    height: 105px;
  }
  .journey {
    height: 90px;
  }
  .arena {
    height: 400px;
  }
}
@media (max-width: 1050px) {
  .app-shell {
    padding-inline: 30px;
  }
  .intro-screen {
    gap: 28px;
  }
  .heading-sparkle {
    font-size: 42px;
    right: -47px;
  }
  .header-note {
    font-size: 9px;
  }
  .guaranteed {
    display: none;
  }
  .envelope-stage {
    height: 425px;
  }
  .game-screen {
    grid-template-columns: 1fr 420px;
    gap: 28px;
  }
  .display-heading {
    font-size: 43px;
  }
  .tutorial-screen,
  .letter-screen,
  .reward-screen {
    gap: 30px;
  }
  .object-guide {
    gap: 5px;
  }
  .object-guide b {
    font-size: 9px;
  }
  .reward-copy .display-heading {
    font-size: 41px;
  }
  .site-footer {
    font-size: 7px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    padding: 0 20px;
  }
  .site-header {
    height: 78px;
  }
  .brand {
    font-size: 25px;
  }
  .brand-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    font-size: 33px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .header-note {
    display: none;
  }
  .sound-toggle {
    font-size: 10px;
    padding: 7px 11px;
    min-height: 37px;
  }
  .journey {
    height: 62px;
    gap: 9px;
  }
  .journey i {
    width: 18px;
  }
  .journey-step {
    font-size: 8px;
    letter-spacing: 0.5px;
    gap: 5px;
  }
  .journey-step b {
    width: 21px;
    height: 21px;
    font-size: 9px;
  }
  .intro-screen {
    display: flex;
    flex-direction: column;
    gap: 21px;
    padding: 3px 0 0;
    min-height: 0;
  }
  .intro-copy {
    text-align: center;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .little-star {
    font-size: 15px;
  }
  h1 {
    font-size: clamp(38px, 10.5vw, 66px);
    line-height: 1;
    letter-spacing: -2.6px;
    margin: 12px 0 14px;
  }
  h1 br:first-child {
    display: none;
  }
  h1 br:first-child:after {
    content: " ";
  }
  .name-head {
    display: inline-block;
  }
  .heading-sparkle {
    font-size: 33px;
    right: -39px;
    top: -5px;
  }
  .intro-description {
    font-size: 12px;
    line-height: 1.5;
  }
  .intro-description br:first-child {
    display: none;
  }
  .intro-description br:first-child:after {
    content: " ";
  }
  .signature {
    display: none;
  }
  .envelope-stage {
    width: 100%;
    height: auto;
    min-height: 330px;
    padding-top: 76px;
    padding-bottom: 12px;
    justify-content: flex-start;
    max-width: 500px;
    border-radius: 19px;
    box-shadow: 4px 5px 0 var(--ink);
  }
  .stamp-label {
    top: 17px;
    left: 17px;
    font-size: 8px;
    padding: 5px 8px;
  }
  .stamp-label span {
    font-size: 13px;
  }
  .postmark {
    font-size: 6px;
    right: 16px;
    top: 17px;
  }
  .orbit {
    width: 250px;
    height: 160px;
    top: 48px;
  }
  .envelope-button {
    max-width: 330px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .envelope-caption {
    margin-top: 1px;
    margin-bottom: 10px;
  }
  .envelope-caption h2 {
    font-size: 15px;
  }
  .tap-hint {
    font-size: 10px;
    margin-top: 8px;
  }
  .tap-hint > span {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  .sparkle-a {
    top: 75px;
    font-size: 33px;
    left: 18px;
  }
  .sparkle-b {
    top: 170px;
    font-size: 42px;
    right: 18px;
  }
  .mail-count {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .envelope-tag {
    font-size: 9px;
    padding: 5px 10px;
    bottom: 3%;
  }
  .prize-teaser {
    margin: 21px 0 20px;
    padding: 13px 12px;
    gap: 9px;
    border-radius: 12px;
  }
  .teaser-icon {
    font-size: 30px;
  }
  .prize-teaser p {
    font-size: 9px;
  }
  .teaser-amount {
    font-size: 22px;
    letter-spacing: -1px;
  }
  .teaser-amount > span {
    font-size: 18px;
    margin: 0 2px;
  }
  .teaser-amount small {
    font-size: 7px;
  }
  .site-footer {
    justify-content: center;
    font-size: 7px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .site-footer > span:first-child,
  .site-footer > span:last-child {
    display: none;
  }
  .display-heading {
    font-size: 42px;
    margin: 13px 0;
    letter-spacing: -2px;
  }
  .letter-screen,
  .tutorial-screen,
  .reward-screen {
    display: flex;
    flex-direction: column;
    gap: 23px;
    padding: 5px 0 16px;
    min-height: 0;
  }
  .letter-side {
    text-align: center;
  }
  .letter-side .display-heading {
    font-size: 31px;
  }
  .letter-side .display-heading br {
    display: none;
  }
  .huge-heart,
  .letter-side > p {
    display: none;
  }
  .letter-paper {
    width: 100%;
    max-width: 480px;
    padding: 21px 24px;
    box-shadow: 4px 5px 0 var(--ink);
  }
  .letter-paper h3 {
    font-size: 23px;
    margin: 15px 0;
  }
  .letter-paper p {
    font-size: 14px;
  }
  .letter-date {
    padding-bottom: 6px;
  }
  .letter-sign {
    margin: 15px 0;
  }
  .letter-paper .primary-button {
    margin-top: 19px;
  }
  .primary-button {
    font-size: 11px;
    min-height: 53px;
    padding: 13px 11px;
  }
  .primary-button small {
    font-size: 9px;
  }
  .tutorial-copy {
    text-align: center;
    width: 100%;
    max-width: 480px;
  }
  .tutorial-copy .display-heading {
    font-size: 33px;
    line-height: 1.05;
    margin: 11px 0;
  }
  .tutorial-copy .display-heading br {
    display: none;
  }
  .tutorial-description {
    font-size: 12px;
  }
  .object-guide {
    margin: 17px 0 11px;
    gap: 7px;
  }
  .object-guide > div {
    gap: 4px;
    padding: 8px 3px;
  }
  .object-guide > div > span {
    font-size: 25px;
  }
  .object-guide b {
    font-size: 12px;
  }
  .object-guide small {
    font-size: 12px;
  }
  .combo-note {
    font-size: 9px;
    padding: 7px 10px;
    line-height: 1.6;
  }
  .combo-note b {
    font-size: 10px;
  }
  .combo-note br:first-of-type {
    display: none;
  }
  .combo-note br:first-of-type:after {
    content: " ";
  }
  .puppet-stage {
    width: 100%;
    max-width: 480px;
    min-height: 350px;
    padding: 17px 20px;
  }
  .tutorial-puppet {
    height: 180px;
    width: 135px;
    margin: 3px 0;
    --puppet-scale: 0.8;
  }
  .puppet-callout {
    top: 65px;
    font-size: 13px;
    right: 25px;
  }
  .photo-controls {
    margin: 0 0 5px;
    gap: 5px;
  }
  .photo-controls > span {
    font-size: 12px;
    text-align: center;
  }
  .drag-guide {
    margin: 6px 0 9px;
    font-size: 8px;
  }
  .tutorial-screen {
    gap: 16px;
  }
  .game-screen {
    display: block;
    padding: 0;
  }
  .game-sidebar {
    display: none;
  }
  .game-machine {
    width: 100%;
    max-width: 500px;
    margin: auto;
    border-radius: 17px;
    box-shadow: 4px 5px 0 var(--ink);
  }
  body.playing .site-header {
    height: 64px;
  }
  body.playing .journey {
    height: 43px;
  }
  body.playing .site-footer {
    display: none;
  }
  .game-hud {
    padding: 9px 14px;
  }
  .game-hud .score-box strong {
    font-size: 32px;
  }
  .game-hud .timer-box strong {
    font-size: 25px;
  }
  .prize-hud {
    padding: 8px 13px;
  }
  .arena {
    height: calc(100dvh - 257px - env(safe-area-inset-bottom));
    min-height: 220px;
    max-height: 670px;
  }
  .reward-copy {
    text-align: center;
    width: 100%;
  }
  .reward-copy .display-heading {
    font-size: 31px;
    margin: 11px 0;
  }
  .reward-copy .display-heading br {
    display: none;
  }
  .final-score {
    max-width: 100%;
    padding: 13px 0;
    gap: 4px;
  }
  .final-score strong {
    font-size: 35px;
    line-height: 1.1;
    margin: 0;
  }
  .final-score > span {
    font-size: 8px;
  }
  .final-score b {
    font-size: 11px;
  }
  .reward-dedication {
    display: none;
  }
  .reward-stage {
    width: 100%;
    max-width: 480px;
    min-height: 360px;
    padding: 20px;
  }
  .gift-box {
    height: 220px;
    margin: 13px auto 0;
    transform: scale(0.85);
    transform-origin: center;
  }
  .reward-stage h3 {
    font-size: 19px;
  }
  .reward-stage p {
    font-size: 11px;
  }
  .reward-screen {
    gap: 17px;
  }
  .money-ticket {
    margin: 21px auto 19px;
    max-width: 340px;
    padding: 14px;
  }
  .ticket-value {
    font-size: 62px;
    line-height: 1.4;
  }
  .ticket-bottom {
    font-size: 6px;
    padding-top: 9px;
  }
  .money-ticket .ticket-star {
    font-size: 50px;
    top: 34px;
  }
  .reward-stage .whatsapp-button {
    margin-top: 18px;
  }
  .text-button {
    font-size: 9px;
    margin-top: 10px;
  }
  .reward-screen ~ .prize-teaser {
    margin-top: 13px;
  }
}
@media (max-width: 380px) {
  .app-shell {
    padding-inline: 14px;
  }
  .journey-step {
    font-size: 7px;
  }
  .journey {
    gap: 6px;
    height: 55px;
  }
  .envelope-stage {
    min-height: 296px;
  }
  .envelope-button {
    max-width: 287px;
  }
  .intro-screen {
    gap: 17px;
  }
  .teaser-amount {
    font-size: 19px;
  }
  .prize-teaser {
    gap: 7px;
    padding: 12px 10px;
  }
  .prize-teaser p {
    font-size: 8px;
  }
  .teaser-icon {
    font-size: 24px;
  }
  .arena {
    height: calc(100dvh - 250px - env(safe-area-inset-bottom));
  }
  .object-guide {
    gap: 4px;
  }
  .object-guide b {
    font-size: 12px;
  }
  .heading-sparkle {
    font-size: 28px;
    right: -30px;
  }
}
@media (max-height: 700px) and (min-width: 761px) {
  .site-header {
    height: 75px;
  }
  .journey {
    height: 53px;
  }
  .intro-screen {
    min-height: 400px;
  }
  .envelope-stage {
    height: 385px;
  }
  h1 {
    font-size: 61px;
  }
  .intro-description {
    font-size: 14px;
  }
  .signature {
    margin-top: 17px;
  }
  .envelope-button {
    max-width: 380px;
  }
  .prize-teaser {
    margin-block: 17px;
  }
  .game-hud {
    padding: 7px 15px;
  }
  .arena {
    height: calc(100dvh - 310px);
    min-height: 210px;
  }
  .game-sidebar .display-heading {
    font-size: 43px;
  }
  .game-sidebar .keyboard-hint {
    margin-top: 14px;
  }
  .game-legend {
    margin: 19px 0;
  }
}
@media (max-height: 480px) and (orientation: landscape) {
  body.playing .site-header,
  body.playing .journey {
    display: none;
  }
  body.playing .app-shell {
    padding-block: 8px;
  }
  .game-screen {
    display: block;
  }
  .game-sidebar {
    display: none;
  }
  .game-machine {
    max-width: 570px;
    display: grid;
    grid-template-columns: 140px 1fr;
    position: relative;
  }
  .game-hud {
    grid-column: 1;
    flex-wrap: wrap;
    align-content: start;
    padding: 12px;
    height: 100%;
    border-right: 1px solid var(--ink);
  }
  .score-box {
    order: 3;
    margin: 10px 0;
    width: 100%;
    text-align: left;
  }
  .prize-hud {
    position: absolute;
    z-index: 6;
    left: 1px;
    bottom: 0;
    width: 138px;
    border-right: 1px solid var(--ink);
  }
  .prize-hud > div:first-child {
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }
  .prize-ticks {
    font-size: 6px;
  }
  .arena {
    grid-column: 2;
    grid-row: 1;
    height: calc(100dvh - 26px);
    min-height: 0;
    max-height: none;
  }
  .game-overlay > strong {
    font-size: 68px;
  }
  .game-player {
    --puppet-scale: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  h1 br:first-child {
    display: initial;
  }
  h1 {
    font-size: clamp(36px, 10.5vw, 64px);
  }
  .intro-description br:first-child {
    display: initial;
  }
}

.final-score {
  position: relative;
}
.reward-puppet {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 76px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  --puppet-scale: 0.47;
}
@media (max-width: 760px) {
  .reward-puppet {
    right: -4px;
    --puppet-scale: 0.4;
  }
}
