
/* ==========================================================
   THE MEMORY CATCHER
   A little love arcade — 2026 edition

   THEME:
   Strawberry milk / Butter yellow / Lavender / Cream

   Designed for:
   - index.html
   - app.js
   - Mobile and desktop
========================================================== */


/* ==========================================================
   01. DESIGN TOKENS
========================================================== */

:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe7ef;
  --pink-200: #facddd;
  --pink-300: #f6afc7;
  --pink-400: #eb92b5;
  --pink-500: #d979a2;
  --pink-600: #b65b86;

  --cream: #fff9f1;
  --cream-deep: #f7eddf;

  --yellow: #ffe4a0;
  --yellow-light: #fff2c9;

  --lavender: #cbbbf4;
  --lavender-light: #eee7ff;

  --mint: #bde9d5;
  --peach: #ffd3bb;

  --ink: #634761;
  --ink-soft: #97778c;
  --ink-light: #b39aac;

  --white: #fffefa;

  --font-display: "Fredoka", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --shadow-soft:
    0 10px 35px rgba(147, 85, 117, .10);

  --shadow-card:
    0 8px 0 rgba(188, 119, 153, .10),
    0 20px 45px rgba(151, 91, 122, .08);

  --shadow-machine:
    0 18px 0 #e7a5ba,
    0 30px 55px rgba(160, 93, 130, .20);

  --ease-bounce: cubic-bezier(.2, 1.4, .5, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}


/* ==========================================================
   02. RESET / BASE
========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: var(--font-body);
  color: var(--ink);

  background:
    radial-gradient(
      ellipse at 8% 4%,
      rgba(250, 188, 211, .48),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 92% 20%,
      rgba(205, 191, 248, .43),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 30% 90%,
      rgba(255, 227, 166, .35),
      transparent 40%
    ),
    #fff9f5;

  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image:
    radial-gradient(
      rgba(190, 120, 155, .18) 1px,
      transparent 1px
    );

  background-size: 25px 25px;
  opacity: .34;
}

button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #a66de1;
  outline-offset: 4px;
}


/* ==========================================================
   03. PAGE DECORATIONS
========================================================== */

.background-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.decor {
  position: absolute;
  color: #e7a5c3;
  opacity: .55;

  animation: floatingDecor 7s ease-in-out infinite;
}

.decor--star-1 {
  top: 13%;
  left: 5%;
  font-size: 35px;
}

.decor--star-2 {
  top: 25%;
  right: 6%;
  font-size: 48px;
  color: #cbb8ef;
  animation-delay: -2s;
}

.decor--star-3 {
  bottom: 22%;
  left: 7%;
  font-size: 39px;
  color: #e8ba74;
  animation-delay: -4s;
}

.decor--heart {
  top: 55%;
  right: 4%;
  font-size: 46px;
  animation-delay: -3s;
}

.decor--sparkle {
  bottom: 8%;
  right: 17%;
  font-size: 25px;
  color: #b5d9c5;
}


/* ==========================================================
   04. APPLICATION SHELL
========================================================== */

.app-shell {
  position: relative;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 27px 0;
  border-bottom: 1px solid rgba(163, 113, 143, .14);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  place-items: center;

  width: 45px;
  height: 45px;

  border-radius: 16px;
  background: #ffdfeb;
  color: #bc6e98;

  font-size: 29px;
  box-shadow: inset 0 -4px rgba(201, 126, 164, .12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font: 600 16px var(--font-display);
  letter-spacing: -.4px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--ink-soft);
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 43px;
  padding: 9px 16px;

  color: var(--ink);
  background: rgba(255, 255, 255, .78);

  border: 1px solid rgba(185, 132, 160, .25);
  border-radius: 50px;

  font-size: 12px;
  font-weight: 700;

  box-shadow: 0 4px 12px rgba(147, 85, 117, .05);
  transition: .2s ease;
}

.sound-toggle:hover {
  transform: translateY(-2px);
  background: white;
}

.sound-toggle.is-active {
  background: #ffe1eb;
  border-color: #e6a1bd;
}

.sound-icon {
  font-size: 18px;
  color: var(--pink-600);
}


/* ==========================================================
   05. INTRODUCTION
========================================================== */

.game-intro {
  max-width: 690px;
  margin: 0 auto;

  padding: 42px 0 35px;
  text-align: center;

  animation: riseIn .7s var(--ease-soft) both;
}

.game-intro__eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.1px;
  color: var(--pink-600);
}

.eyebrow-star {
  color: #d9a75f;
  font-size: 17px;
}

.game-intro h1 {
  margin: 15px 0 13px;

  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -2.3px;
}

.game-intro h1 span {
  color: var(--pink-500);
}

.game-intro__description {
  max-width: 455px;
  margin: 0 auto;

  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.game-intro__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 20px;
  padding: 9px 17px;

  background: #ffedf2;
  border: 1px solid #f5d5e1;
  border-radius: 50px;

  font-size: 11px;
  font-weight: 600;
  color: #b66f91;
}


/* ==========================================================
   06. MAIN ARCADE LAYOUT
========================================================== */

.arcade-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
  gap: 32px;

  max-width: 1080px;
  margin: 0 auto;
}

.arcade-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}


/* ==========================================================
   07. THE CLAW MACHINE — OUTER SHELL
========================================================== */

.claw-machine {
  position: relative;
  width: 100%;
  max-width: 650px;

  border: 9px solid #f6b2cb;
  border-radius: 34px 34px 27px 27px;

  background: #f6b2cb;
  box-shadow: var(--shadow-machine);

  isolation: isolate;
}

.claw-machine::before {
  content: "";
  position: absolute;

  top: 15px;
  bottom: 12px;
  left: 6px;

  width: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .58);

  pointer-events: none;
  z-index: 8;
}

.claw-machine::after {
  content: "";
  position: absolute;

  top: 15px;
  bottom: 15px;
  right: 6px;

  width: 4px;
  border-radius: 10px;
  background: rgba(170, 74, 121, .16);

  pointer-events: none;
  z-index: 8;
}


/* ==========================================================
   08. MACHINE MARQUEE
========================================================== */

.machine-top {
  position: relative;
  overflow: hidden;

  padding: 19px 15px 21px;
  text-align: center;

  border-radius: 23px 23px 13px 13px;

  background:
    linear-gradient(
      130deg,
      #ffdce8 0%,
      #f9bfd5 50%,
      #ef9ebf 100%
    );

  box-shadow:
    inset 0 4px rgba(255, 255, 255, .55),
    inset 0 -6px rgba(194, 100, 145, .12);
}

.machine-top::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      rgba(255, 255, 255, .55) 1.5px,
      transparent 1.5px
    );

  background-size: 20px 20px;
  opacity: .4;
}

.machine-top__lights {
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 13px;
}

.machine-top__lights span {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: #fff8d6;
  box-shadow: 0 0 12px #fff0ab;

  animation: lightBlink 1.7s ease-in-out infinite alternate;
}

.machine-top__lights span:nth-child(even) {
  background: #fff;
  animation-delay: .6s;
}

.machine-top__lights span:nth-child(3) {
  animation-delay: 1s;
}

.machine-top__sign {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.machine-top__sign h2 {
  margin: 0;

  color: #955071;
  font-size: clamp(18px, 3.5vw, 31px);
  font-weight: 700;
  letter-spacing: 1px;

  text-shadow: 2px 3px rgba(255, 255, 255, .55);
}

.machine-sign-star {
  color: #fff5bb;
  font-size: 20px;
  text-shadow: 0 2px 4px rgba(149, 80, 113, .15);
}

.machine-top__subtitle {
  position: relative;
  z-index: 1;

  margin: 5px 0 0;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #b56b8d;
}


/* ==========================================================
   09. MACHINE BODY
========================================================== */

.machine-body {
  padding: 10px 10px 0;

  background:
    linear-gradient(
      90deg,
      #ef9fbe,
      #ffd4e4 11%,
      #ffd4e4 89%,
      #ea94b7
    );
}

.machine-window {
  position: relative;

  width: 100%;
  height: clamp(355px, 43vw, 500px);

  overflow: hidden;
  isolation: isolate;

  border: 6px solid #efb0cb;
  border-radius: 16px 16px 13px 13px;

  background:
    radial-gradient(
      circle at 30% 22%,
      rgba(255, 255, 255, .85),
      transparent 32%
    ),
    linear-gradient(
      165deg,
      #fffdf9 0%,
      #ffeefa 55%,
      #f6e7ff 100%
    );

  box-shadow:
    inset 0 4px 19px rgba(150, 89, 129, .12),
    0 3px 1px rgba(255, 255, 255, .5);
}


/* GLASS REFLECTIONS */

.glass-shine {
  position: absolute;
  z-index: 12;
  pointer-events: none;

  top: 0;
  bottom: 0;
}

.glass-shine--left {
  left: 5%;
  width: 17%;

  background:
    linear-gradient(
      105deg,
      transparent,
      rgba(255, 255, 255, .32),
      transparent
    );

  transform: skewX(-13deg);
}

.glass-shine--right {
  right: 5%;
  width: 8%;

  background: rgba(255, 255, 255, .19);
  transform: skewX(-12deg);
}


/* MACHINE BACKDROP */

.machine-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  background-image:
    radial-gradient(
      rgba(228, 182, 214, .23) 2px,
      transparent 2px
    );

  background-size: 26px 26px;
}

.backdrop-star,
.backdrop-heart {
  position: absolute;
  opacity: .7;
}

.backdrop-star--1 {
  top: 19%;
  left: 12%;
  font-size: 34px;
  color: #f2bf7d;
}

.backdrop-star--2 {
  top: 26%;
  right: 11%;
  font-size: 25px;
  color: #d8b9eb;
}

.backdrop-star--3 {
  top: 45%;
  left: 48%;
  font-size: 20px;
  color: #e8a4c0;
}

.backdrop-heart {
  top: 36%;
  right: 30%;
  font-size: 35px;
  color: #f0b6d3;
}


/* ==========================================================
   10. CLAW RAIL & CLAW
========================================================== */

.claw-rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;

  z-index: 7;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    #d3a7bf,
    #f5d6e4 45%,
    #b98ba8
  );

  border-bottom: 2px solid #ac819e;

  box-shadow: 0 4px 8px rgba(106, 61, 93, .12);
}

.claw-carriage {
  position: absolute;
  top: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 80px;
  pointer-events: none;

  filter: drop-shadow(0 5px 3px rgba(93, 61, 91, .12));
}

.claw-carriage::before {
  content: "";

  position: absolute;
  top: -3px;

  width: 47px;
  height: 19px;

  border: 2px solid #a77798;
  border-radius: 5px 5px 9px 9px;

  background: linear-gradient(
    180deg,
    #ffe9f2,
    #d9a7c1
  );

  z-index: 2;
}

.claw-carriage::after {
  content: "";

  position: absolute;
  top: 2px;

  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff8c5;

  z-index: 3;
}

.claw-rope {
  flex: none;

  width: 5px;
  min-height: 42px;

  margin-top: 3px;

  background:
    repeating-linear-gradient(
      180deg,
      #bd8aab 0 5px,
      #f8d9ea 5px 9px
    );

  border-left: 1px solid #b58aa5;
  border-right: 1px solid #fff;

  box-shadow: 1px 0 4px rgba(91, 60, 81, .12);
}

.claw-head {
  position: relative;

  width: 65px;
  height: 55px;
  flex: none;
}

.claw-head__center {
  position: absolute;
  top: 0;
  left: 50%;

  width: 35px;
  height: 25px;

  transform: translateX(-50%);

  background: linear-gradient(
    135deg,
    #ffebf3,
    #cda0bd
  );

  border: 3px solid #a77a9a;
  border-radius: 11px 11px 14px 14px;

  box-shadow: inset 0 3px rgba(255, 255, 255, .7);
}

.claw-head__center::after {
  content: "♡";

  position: absolute;
  top: 1px;
  left: 50%;

  transform: translateX(-50%);

  font-size: 12px;
  color: #ac6c93;
}

.claw-arm {
  position: absolute;
  top: 18px;

  width: 19px;
  height: 36px;

  border: 4px solid #ae7c9d;
  border-top: 0;

  transition: transform .22s ease;
}

.claw-arm--left {
  left: 1px;

  border-right: 0;
  border-radius: 0 0 0 18px;

  transform-origin: top right;
  transform: rotate(-17deg);
}

.claw-arm--right {
  right: 1px;

  border-left: 0;
  border-radius: 0 0 18px 0;

  transform-origin: top left;
  transform: rotate(17deg);
}

.claw-head.is-closing .claw-arm--left {
  transform: rotate(10deg);
}

.claw-head.is-closing .claw-arm--right {
  transform: rotate(-10deg);
}

.claw-head.is-dropping {
  animation: clawWiggle .2s ease-in-out infinite alternate;
}


/* ==========================================================
   11. PHOTO CAPSULES
========================================================== */

.capsule-field {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.capsule {
  position: absolute;

  width: 19%;
  aspect-ratio: 1;

  cursor: pointer;
  pointer-events: auto;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  filter: drop-shadow(0 8px 5px rgba(109, 68, 105, .15));
}

.capsule--pink {
  --capsule-rgb: 247, 168, 197;
}

.capsule--lavender {
  --capsule-rgb: 198, 173, 243;
}

.capsule--yellow {
  --capsule-rgb: 255, 222, 147;
}

.capsule--mint {
  --capsule-rgb: 166, 225, 202;
}

.capsule--peach {
  --capsule-rgb: 255, 191, 166;
}

.capsule--blue {
  --capsule-rgb: 169, 207, 250;
}

.capsule--rose {
  --capsule-rgb: 244, 160, 183;
}

.capsule--lilac {
  --capsule-rgb: 213, 187, 241;
}

.capsule__shell {
  position: relative;

  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;

  border: 3px solid rgba(255, 255, 255, .8);
  border-radius: 50%;

  background:
    radial-gradient(
      circle at 30% 23%,
      rgba(255, 255, 255, .93),
      transparent 31%
    ),
    linear-gradient(
      155deg,
      rgba(255, 255, 255, .7),
      rgba(var(--capsule-rgb), .77) 54%,
      rgba(var(--capsule-rgb), .95)
    );

  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, .85),
    inset -5px -8px 12px rgba(112, 65, 110, .10),
    0 3px 0 rgba(255, 255, 255, .65),
    0 12px 16px rgba(137, 80, 116, .14);

  animation: capsuleBob 4s ease-in-out infinite;
  transition: filter .25s ease, scale .25s ease;
}

.capsule:nth-child(2n) .capsule__shell {
  animation-delay: -1.2s;
}

.capsule:nth-child(3n) .capsule__shell {
  animation-delay: -2.4s;
}

.capsule:hover .capsule__shell {
  scale: 1.065;
  filter: brightness(1.04);
}

.capsule__photo {
  position: absolute;

  width: 57%;
  height: 62%;

  top: 19%;
  left: 21.5%;

  padding: 4px 4px 10px;

  border-radius: 5px;

  background: #fffcf8;
  box-shadow:
    0 3px 7px rgba(89, 55, 81, .17),
    0 0 0 1px rgba(255, 255, 255, .7);

  transform: rotate(-7deg);
  z-index: 2;
}

.capsule:nth-child(even) .capsule__photo {
  transform: rotate(8deg);
}

.capsule__photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 2px;
}

/* Transparent reflective bubble */

.capsule__shine {
  position: absolute;

  top: 10%;
  left: 16%;

  width: 42%;
  height: 22%;

  border-radius: 50%;
  background: rgba(255, 255, 255, .78);

  filter: blur(1px);
  transform: rotate(-31deg);

  z-index: 4;
  pointer-events: none;
}

.capsule__shell::after {
  content: "";

  position: absolute;

  right: 15%;
  bottom: 16%;

  width: 12%;
  height: 12%;

  border-radius: 50%;
  background: rgba(255, 255, 255, .8);

  filter: blur(2px);
}

.capsule__seam {
  position: absolute;

  top: 52%;
  left: 1%;
  width: 98%;
  height: 2px;

  background: rgba(255, 255, 255, .52);
  box-shadow: 0 2px 2px rgba(116, 82, 111, .08);

  z-index: 3;
}

.capsule.is-being-caught {
  pointer-events: none;
  z-index: 9 !important;
}

.capsule.is-being-caught .capsule__shell {
  animation: none;
}

.capsule.is-collected {
  display: none;
}


/* ==========================================================
   12. MACHINE FLOOR
========================================================== */

.machine-floor {
  position: absolute;

  bottom: 0;
  left: 0;
  right: 0;

  height: 12%;

  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(248, 214, 231, 0),
    rgba(239, 190, 215, .46)
  );

  border-bottom: 9px solid rgba(226, 167, 196, .45);
}

.machine-floor::after {
  content: "";

  position: absolute;
  bottom: 13px;
  left: 8%;
  right: 8%;

  height: 18px;

  background: rgba(160, 107, 145, .10);
  filter: blur(12px);
  border-radius: 50%;
}


/* ==========================================================
   13. LOWER MACHINE CABINET
========================================================== */

.machine-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;

  padding: 20px 15px 23px;

  border-top: 7px solid #e695b5;

  background:
    linear-gradient(
      180deg,
      #ffdae6,
      #f3aec8
    );

  box-shadow: inset 0 5px rgba(255, 255, 255, .6);
}

.prize-chute {
  position: relative;

  padding: 8px;

  border-radius: 17px;
  background: #dd91b3;

  box-shadow:
    inset 0 4px rgba(146, 76, 115, .2),
    0 4px rgba(255, 255, 255, .45);
}

.prize-chute__opening {
  position: relative;

  height: 69px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  border-radius: 10px 10px 14px 14px;

  background:
    linear-gradient(
      180deg,
      #ab688f,
      #805476
    );

  box-shadow:
    inset 0 9px 12px rgba(70, 41, 65, .19);
}

.prize-chute__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff0f6;
}

.prize-chute__ball {
  position: absolute;

  width: 43px;
  height: 43px;

  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 50%;

  display: grid;
  place-items: center;

  color: #aa5f87;
  font-size: 23px;

  box-shadow:
    inset 0 3px rgba(255, 255, 255, .6),
    0 4px 6px rgba(59, 37, 58, .22);
}

.prize-chute__ball.is-delivered {
  animation: prizeDrop .48s var(--ease-bounce) both;
}


/* MACHINE PRINTER */

.machine-printer {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 82px;

  border: 3px solid #e5a1bf;
  border-radius: 14px;

  background: #fff0f6;

  box-shadow:
    inset 0 3px white,
    0 5px 0 rgba(186, 104, 145, .18);
}

.machine-printer__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #aa6488;
}

.machine-printer__slot {
  width: 68%;
  height: 9px;

  border-radius: 7px;

  background: #ab7896;
  border: 2px solid #986985;

  box-shadow: inset 0 3px rgba(66, 43, 68, .2);
}

.machine-printer__symbol {
  position: absolute;
  right: 9px;
  bottom: 4px;

  color: #d38eaf;
  font-size: 15px;
}


/* MACHINE BASE */

.machine-base {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  min-height: 49px;

  border-top: 5px solid #e89cba;
  border-radius: 0 0 17px 17px;

  background:
    linear-gradient(
      180deg,
      #f2adc6,
      #e790b1
    );
}

.machine-base p {
  margin: 0;

  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.machine-base span {
  color: #fff3c4;
  font-size: 16px;
}


/* ==========================================================
   14. ARCADE CONTROL PANEL
========================================================== */

.control-panel {
  width: 100%;
  max-width: 650px;

  padding: 20px 24px 22px;

  border: 2px solid #f4d4df;
  border-radius: 25px;

  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, .95),
      rgba(255, 237, 244, .92)
    );

  box-shadow: var(--shadow-card);
}

.control-panel__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  margin-bottom: 22px;
}

.control-panel__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #aa7897;
}

.control-panel__status {
  padding: 6px 10px;

  border-radius: 50px;
  background: #e7f7e9;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #648e79;
}

.control-panel__buttons {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: clamp(16px, 5vw, 45px);
}

.arcade-button {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;

  width: 83px;
  height: 83px;

  border: 4px solid rgba(255, 255, 255, .8);
  border-radius: 50%;

  color: #94617f;

  background: linear-gradient(
    145deg,
    #f7e6fc,
    #cdb4ee
  );

  box-shadow:
    0 8px 0 #bda0dc,
    0 13px 16px rgba(125, 83, 137, .14),
    inset 0 5px 8px rgba(255, 255, 255, .85);

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    filter .2s ease;

  user-select: none;
  touch-action: manipulation;
}

.arcade-button:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.arcade-button:active:not(:disabled) {
  transform: translateY(6px);

  box-shadow:
    0 2px 0 #bda0dc,
    inset 0 4px 9px rgba(115, 72, 121, .09);
}

.arcade-button span {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
}

.arcade-button small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.arcade-button--right {
  background: linear-gradient(
    145deg,
    #e3fbef,
    #b2e2d1
  );

  color: #5d9480;

  box-shadow:
    0 8px 0 #90c8b3,
    0 13px 16px rgba(83, 140, 116, .13),
    inset 0 5px 8px rgba(255, 255, 255, .85);
}

.arcade-button--right:active:not(:disabled) {
  box-shadow: 0 2px 0 #90c8b3;
}

.arcade-button--grab {
  width: 108px;
  height: 108px;

  background: linear-gradient(
    145deg,
    #ffc8da,
    #ee8eb4
  );

  color: white;

  box-shadow:
    0 10px 0 #d66e9c,
    0 18px 24px rgba(207, 108, 153, .22),
    inset 0 6px 11px rgba(255, 255, 255, .6);
}

.arcade-button--grab span {
  font-size: 26px;
  color: #fff4b8;
}

.arcade-button--grab strong {
  font: 700 20px var(--font-display);
  letter-spacing: 1px;
}

.arcade-button--grab:active:not(:disabled) {
  box-shadow: 0 2px 0 #d66e9c;
}

.arcade-button:disabled {
  opacity: .55;
}

.control-panel__hint {
  margin: 24px 0 7px;

  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}

.control-panel__keyboard-hint {
  margin: 0;

  text-align: center;
  font-size: 10px;
  color: var(--ink-light);
}


/* ==========================================================
   15. GAME SIDEBAR
========================================================== */

.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding-top: 14px;
}

.progress-card,
.instructions-card,
.reward-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.progress-card {
  padding: 25px 22px;

  background: #fffdfb;
  border: 2px solid #f3dbe4;
}

.progress-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-card__icon {
  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;

  border-radius: 12px;
  background: #ffe4ed;
  color: #c8759a;

  font-size: 24px;
}

.progress-card h2 {
  margin: 0;
  font-size: 17px;
}

.progress-card__counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;

  margin-top: 23px;

  font-family: var(--font-display);
  font-weight: 600;
  font-size: 51px;
  color: #ba7096;
}

.progress-divider {
  color: #e6bed0;
  font-size: 29px;
}

.progress-card__caption {
  margin: 0 0 20px;

  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
}

.progress-bar {
  overflow: hidden;

  width: 100%;
  height: 13px;

  background: #f7e9ef;
  border-radius: 30px;
}

.progress-bar__fill {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(
    90deg,
    #e99ac0,
    #f7c5a0
  );

  transition: width .6s var(--ease-soft);
}

.collection-button,
.collection-return,
.keep-memory-button,
.view-receipt-button {
  min-height: 45px;

  border: 0;
  border-radius: 15px;

  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;

  transition: transform .2s ease, filter .2s ease;
}

.collection-button {
  width: 100%;
  margin-top: 22px;

  background: #f8dbe7;
  color: #a45b80;
}

.collection-button:hover,
.collection-return:hover,
.keep-memory-button:hover,
.view-receipt-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
}


/* HOW TO PLAY */

.instructions-card {
  padding: 24px 22px;

  background: #fff3d9;
  border: 2px solid #ffebbb;
}

.instructions-card__heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.instructions-card__heading span {
  color: #dba65e;
  font-size: 24px;
}

.instructions-card h2 {
  margin: 0;
  font-size: 19px;
  color: #a87c5a;
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 17px;

  margin: 22px 0 0;
  padding: 0;

  list-style: none;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.instruction-number {
  flex: none;

  display: grid;
  place-items: center;

  width: 29px;
  height: 29px;

  border-radius: 10px;
  background: #ffdf98;

  font: 700 10px var(--font-body);
  color: #9f7851;
}

.instructions-list p {
  margin: 5px 0 0;

  font-size: 12px;
  line-height: 1.5;
  color: #9f826c;
}


/* GRAND PRIZE */

.reward-card {
  position: relative;
  overflow: hidden;

  padding: 29px 21px;
  text-align: center;

  background:
    linear-gradient(
      155deg,
      #e9dfff,
      #d6c5f6
    );

  border: 2px solid #d4bdf2;
}

.reward-card__decoration {
  font-size: 17px;
  color: #a987ca;
  letter-spacing: 8px;
}

.reward-card__icon {
  margin: 13px 0;
  font-size: 47px;

  filter: grayscale(.25);
  transition: transform .4s ease;
}

.reward-card h2 {
  margin: 0 0 10px;

  font-size: 19px;
  color: #76538d;
}

.reward-card p {
  margin-bottom: 18px;

  font-size: 12px;
  line-height: 1.7;
  color: #9574aa;
}

.reward-card__locked {
  display: inline-flex;
  justify-content: center;
  gap: 6px;

  padding: 9px 19px;

  border-radius: 30px;
  background: rgba(255, 255, 255, .7);

  color: #a68ab9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.reward-card.is-unlocked {
  background: linear-gradient(
    135deg,
    #fff0b9,
    #ffd2df
  );

  border-color: #f4c49b;
}

.reward-card.is-unlocked .reward-card__icon {
  transform: rotate(-9deg) scale(1.2);
  filter: none;
}

.reward-card.is-unlocked .reward-card__locked {
  color: #ad6989;
}

.view-receipt-button {
  width: 100%;
  margin-top: 17px;
  padding: 12px;

  background: #c8789e;
  color: white;

  box-shadow: 0 5px 0 #ae6088;
}


/* ==========================================================
   16. MEMORY REVEAL DIALOG
========================================================== */

dialog {
  color: var(--ink);
}

.memory-dialog,
.collection-dialog {
  width: min(92vw, 540px);
  max-height: 90vh;
  max-height: 90dvh;

  margin: auto;
  padding: 0;

  overflow: auto;

  border: 0;
  border-radius: 29px;

  background: #fffaf7;

  box-shadow:
    0 30px 90px rgba(64, 35, 65, .28);
}

.memory-dialog::backdrop,
.collection-dialog::backdrop {
  background: rgba(66, 37, 65, .56);
  backdrop-filter: blur(9px);
}

.memory-dialog[open],
.collection-dialog[open] {
  animation: dialogPop .32s var(--ease-bounce) both;
}

.memory-dialog__content {
  position: relative;
  padding: 29px;
  text-align: center;
}

.dialog-close {
  display: grid;
  place-items: center;

  width: 39px;
  height: 39px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #f9e1eb;
  color: #a96387;

  font-size: 25px;
  line-height: 1;
  transition: .2s ease;
}

.dialog-close:hover {
  background: #f2c9da;
  transform: rotate(90deg);
}

.memory-dialog .dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 2;
}

.memory-dialog__celebration {
  margin: 11px 20px 20px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c97a9e;
}

.memory-card {
  overflow: hidden;

  border: 8px solid white;
  border-radius: 22px;

  background: white;

  box-shadow:
    0 8px 25px rgba(145, 90, 123, .11);
}

.memory-card__image {
  height: clamp(220px, 48vw, 330px);
  overflow: hidden;

  background: #f5dfe9;
}

.memory-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card__details {
  padding: 23px 20px 26px;
}

.memory-card__date {
  display: inline-block;
  margin-bottom: 10px;

  color: #b28ba2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.memory-card__details h2 {
  margin-bottom: 9px;

  font-size: clamp(23px, 5vw, 31px);
  color: #a96387;
}

.memory-card__details p {
  max-width: 320px;
  margin: 0 auto;

  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.keep-memory-button {
  width: 100%;
  margin-top: 23px;

  background: #f5b4ce;
  color: #8c4b70;

  box-shadow: 0 5px 0 #e69fbd;
}


/* ==========================================================
   17. COLLECTION DIALOG
========================================================== */

.collection-dialog {
  width: min(94vw, 760px);
}

.collection-dialog__content {
  padding: 32px;
}

.collection-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.collection-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c57ca0;
}

.collection-dialog h2 {
  margin: 7px 0 0;

  font-size: clamp(25px, 5vw, 37px);
  color: #965474;
}

.collection-description {
  margin: 12px 0 24px;

  font-size: 13px;
  color: var(--ink-soft);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.collection-item {
  min-width: 0;
  padding: 10px;

  border: 2px solid #f6e1e9;
  border-radius: 17px;

  background: white;
  text-align: left;
  color: var(--ink);

  transition: transform .2s ease, box-shadow .2s ease;
}

.collection-item.is-collected:hover {
  transform: translateY(-5px);

  box-shadow:
    0 9px 17px rgba(171, 108, 144, .13);
}

.collection-item__image {
  overflow: hidden;
  aspect-ratio: 1;

  border-radius: 10px;
  background: #f6e7ee;
}

.collection-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-item__number {
  display: block;
  margin-top: 11px;

  font-size: 9px;
  font-weight: 800;
  color: #c392ad;
}

.collection-item__title {
  display: block;
  margin-top: 4px;

  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.4;
}

.collection-item.is-locked {
  opacity: .58;
  cursor: not-allowed;
}

.collection-item.is-locked img {
  filter: grayscale(.3);
}

.collection-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  margin-top: 26px;
  text-align: center;
}

.collection-footer p {
  margin: 0;

  font-size: 12px;
  color: var(--ink-soft);
}

.collection-return {
  width: 100%;
  padding: 12px;

  background: #f5d4e4;
  color: #a56486;
}

.reset-game-button {
  padding: 8px 12px;

  border: 0;
  background: transparent;

  color: #b39aab;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================
   18. GRAND PRIZE SCREEN
========================================================== */

.receipt-screen {
  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 750px;
  margin: 0 auto;
  padding: 50px 0 90px;
}

.receipt-intro {
  margin-bottom: 38px;
  text-align: center;
}

.receipt-intro__eyebrow {
  display: inline-block;

  margin-bottom: 15px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  color: #be7197;
}

.receipt-intro h2 {
  margin: 0 0 12px;

  font-size: clamp(35px, 7vw, 59px);
  color: #965378;
}

.receipt-intro p {
  margin: 0;

  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}


/* ==========================================================
   19. LOVE RECEIPT PRINTER
========================================================== */

.receipt-machine {
  position: relative;
  z-index: 2;

  width: min(100%, 480px);
  padding: 23px 21px 29px;

  border: 7px solid #f4afca;
  border-radius: 27px 27px 12px 12px;

  background:
    linear-gradient(
      160deg,
      #ffe2ec,
      #f2a9c6
    );

  box-shadow:
    inset 0 5px rgba(255, 255, 255, .65),
    0 10px 0 #d98daf,
    0 15px 30px rgba(160, 93, 130, .16);
}

.receipt-machine__top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.receipt-machine__top h3 {
  margin: 0;

  font-size: 21px;
  color: #a2597e;
}

.receipt-machine__symbol {
  font-size: 24px;
  color: #fff9c8;
}

.receipt-machine__slot {
  width: 90%;
  height: 15px;

  margin: 25px auto 0;

  border: 4px solid #bb779a;
  border-radius: 15px;

  background: #8c597c;

  box-shadow:
    inset 0 4px 5px rgba(71, 38, 62, .20),
    0 2px rgba(255, 255, 255, .55);
}


/* ==========================================================
   20. THE LOVE RECEIPT PAPER
========================================================== */

.love-receipt {
  position: relative;
  z-index: 1;

  width: min(86%, 390px);
  margin: -5px auto 0;

  background: #fffdf4;

  box-shadow:
    0 15px 35px rgba(121, 79, 101, .14),
    inset 0 0 30px rgba(201, 178, 154, .09);

  overflow: hidden;
}

.love-receipt::before {
  content: "";

  position: absolute;
  inset: 0;
  pointer-events: none;

  opacity: .3;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(143, 123, 110, .04) 0 1px,
      transparent 1px 4px
    );
}

.love-receipt::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 10px;

  background:
    linear-gradient(
      135deg,
      transparent 50%,
      #fff9f5 50%
    ) 0 0 / 12px 12px repeat-x,
    linear-gradient(
      225deg,
      transparent 50%,
      #fff9f5 50%
    ) 0 0 / 12px 12px repeat-x;
}

.love-receipt__inner {
  position: relative;
  padding: 34px 27px 45px;

  text-align: center;
}

.receipt-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.receipt-stars {
  color: #c88ca5;
  font-size: 15px;
  letter-spacing: 6px;
}

.receipt-header h3 {
  margin: 10px 0 0;

  font-size: 26px;
  line-height: 1.2;
  color: #945c76;
}

.receipt-header p,
.receipt-number {
  margin: 0;

  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #917b86;
}

.receipt-divider {
  margin: 20px 0;

  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 1px;
  color: #c4b1b7;
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.receipt-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;

  font-size: 10px;
  line-height: 1.5;
  color: #806b77;
}

.receipt-detail span:last-child,
.receipt-detail strong:last-child {
  text-align: right;
}

.receipt-message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.receipt-message__decoration {
  margin: 5px 0 13px;

  font-size: 17px;
  letter-spacing: 7px;
  color: #d793b1;
}

.receipt-message h3 {
  margin: 0 0 23px;

  font-size: 29px;
  line-height: 1.2;
  color: #b76b92;
}

.receipt-message__content {
  width: 100%;
}

.receipt-message__content p {
  margin: 0 0 19px;

  font-size: 12px;
  line-height: 1.95;
  color: #6e5965;
}

.receipt-total {
  display: flex;
  flex-direction: column;
  gap: 13px;

  font-size: 12px;
}

.receipt-total strong {
  color: #a25b80;
}

.receipt-barcode {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3px;

  width: 80%;
  height: 45px;

  margin: 29px auto 18px;

  overflow: hidden;
}

.receipt-barcode span {
  flex: 1;
  background: #705768;
}

.receipt-barcode span:nth-child(3n) {
  flex: 2.4;
}

.receipt-barcode span:nth-child(4n) {
  flex: .5;
}

.receipt-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.receipt-footer p {
  margin: 0;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  color: #927a87;
}

.receipt-footer strong {
  font: 600 16px var(--font-display);
  color: #ae6f91;
}

.receipt-footer span {
  color: #d99eb5;
}


/* ==========================================================
   21. RECEIPT ACTIONS
========================================================== */

.receipt-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;

  width: min(100%, 390px);
  margin-top: 32px;
}

.pull-receipt-button,
.download-receipt-button,
.back-to-arcade-button {
  min-height: 50px;
  width: 100%;

  padding: 12px 20px;

  border-radius: 17px;

  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;

  transition: transform .2s ease, filter .2s ease;
}

.pull-receipt-button {
  border: 0;

  background: #f3adca;
  color: #854466;

  box-shadow: 0 6px 0 #db91b3;

  touch-action: none;
  animation: pullAttention 2s ease-in-out infinite;
}

.pull-receipt-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #db91b3;
}

.download-receipt-button {
  border: 0;

  background: #c9b9f3;
  color: #644d89;

  box-shadow: 0 6px 0 #ad97db;
}

.download-receipt-button:hover {
  transform: translateY(-3px);
}

.back-to-arcade-button {
  border: 2px solid #f0c8d9;

  background: rgba(255, 255, 255, .7);
  color: #a66e8c;
}

.back-to-arcade-button:hover {
  background: white;
}

.love-receipt.is-fully-printed {
  animation: receiptComplete .5s ease-out;
}


/* ==========================================================
   22. TOAST NOTIFICATION
========================================================== */

.game-toast {
  position: fixed;
  z-index: 100;

  left: 50%;
  bottom: 28px;

  width: max-content;
  max-width: calc(100vw - 40px);

  padding: 14px 22px;

  border: 2px solid #f6d5e1;
  border-radius: 50px;

  background: #fffafc;
  color: #a55f83;

  font-family: var(--font-display);
  font-size: 13px;
  text-align: center;

  box-shadow: 0 10px 30px rgba(112, 65, 105, .18);

  transform: translate(-50%, 30px);
  opacity: 0;

  pointer-events: none;
  transition:
    transform .3s var(--ease-bounce),
    opacity .3s ease;
}

.game-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}


/* ==========================================================
   23. FOOTER
========================================================== */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  margin: 75px 0 25px;
  padding-top: 20px;

  border-top: 1px solid rgba(173, 119, 151, .17);
}

.site-footer p {
  margin: 0;

  font-size: 11px;
  color: #b48da2;
}

.site-footer span {
  color: #dfb1c9;
}


/* ==========================================================
   24. ANIMATIONS
========================================================== */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatingDecor {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(8deg);
  }
}

@keyframes capsuleBob {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes lightBlink {
  0% {
    opacity: .65;
    box-shadow: 0 0 5px #fff3c5;
  }

  100% {
    opacity: 1;
    box-shadow:
      0 0 15px #fff3a3,
      0 0 25px rgba(255, 242, 164, .65);
  }
}

@keyframes clawWiggle {
  from {
    transform: translateX(-2px);
  }

  to {
    transform: translateX(2px);
  }
}

@keyframes prizeDrop {
  from {
    transform: translateY(-80px) scale(.65);
    opacity: 0;
  }

  60% {
    transform: translateY(8px) scale(1.1);
    opacity: 1;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes dialogPop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pullAttention {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes receiptComplete {
  0% {
    filter: brightness(1);
  }

  40% {
    filter: brightness(1.07);
  }

  100% {
    filter: brightness(1);
  }
}


/* ==========================================================
   25. TABLET RESPONSIVENESS
========================================================== */

@media (max-width: 960px) {

  .arcade-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 660px;
  }

  .game-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 4px;
  }

  .reward-card {
    grid-column: 1 / -1;
  }

  .machine-window {
    height: clamp(355px, 70vw, 470px);
  }

}


/* ==========================================================
   26. MOBILE RESPONSIVENESS
========================================================== */

@media (max-width: 600px) {

  .app-shell {
    width: min(100% - 24px, 480px);
  }

  .topbar {
    padding: 17px 0;
  }

  .brand-icon {
    width: 39px;
    height: 39px;
    font-size: 24px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .sound-toggle {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .game-intro {
    padding: 32px 0 28px;
  }

  .game-intro__eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  .game-intro h1 {
    font-size: clamp(38px, 9vw, 49px);
    letter-spacing: -1.5px;
  }

  .game-intro__description {
    max-width: 330px;
    font-size: 12px;
    line-height: 1.8;
  }

  .game-intro__tag {
    max-width: 100%;
    font-size: 10px;
  }

  .arcade-layout {
    gap: 28px;
  }

  .arcade-main {
    gap: 24px;
  }

  .claw-machine {
    border-width: 6px;
    border-radius: 25px 25px 21px 21px;
  }

  .machine-top {
    padding: 16px 8px;
    border-radius: 17px 17px 10px 10px;
  }

  .machine-top__lights {
    margin-bottom: 9px;
    gap: 11px;
  }

  .machine-top__lights span {
    width: 7px;
    height: 7px;
  }

  .machine-top__sign h2 {
    font-size: clamp(17px, 5vw, 24px);
  }

  .machine-sign-star {
    font-size: 16px;
  }

  .machine-top__subtitle {
    font-size: 10px;
  }

  .machine-body {
    padding: 7px 7px 0;
  }

  .machine-window {
    height: clamp(310px, 105vw, 410px);
    border-width: 4px;
  }

  .capsule {
    width: 19.7%;
  }

  .capsule__shell {
    border-width: 2px;
  }

  .capsule__photo {
    padding: 3px 3px 7px;
  }

  .claw-carriage {
    width: 62px;
  }

  .claw-head {
    width: 53px;
    height: 49px;
  }

  .claw-head__center {
    width: 31px;
    height: 23px;
  }

  .claw-arm {
    height: 31px;
    width: 16px;
  }

  .machine-lower {
    gap: 12px;
    padding: 13px 10px 17px;
  }

  .prize-chute__opening {
    height: 57px;
  }

  .prize-chute__label {
    font-size: 10px;
  }

  .machine-printer {
    min-height: 73px;
  }

  .machine-printer__label {
    font-size: 10px;
  }

  .machine-base {
    min-height: 43px;
  }

  .machine-base p {
    font-size: 10px;
  }

  .control-panel {
    padding: 18px 12px 20px;
  }

  .control-panel__heading {
    padding: 0 4px;
  }

  .control-panel__label {
    font-size: 9px;
    letter-spacing: .6px;
  }

  .control-panel__status {
    font-size: 8px;
  }

  .control-panel__buttons {
    gap: 17px;
  }

  .arcade-button {
    width: 74px;
    height: 74px;
  }

  .arcade-button--grab {
    width: 97px;
    height: 97px;
  }

  .arcade-button--grab strong {
    font-size: 18px;
  }

  .control-panel__hint {
    font-size: 11px;
  }

  .control-panel__keyboard-hint {
    display: none;
  }

  .game-sidebar {
    grid-template-columns: 1fr;
  }

  .reward-card {
    grid-column: auto;
  }

  .progress-card,
  .instructions-card,
  .reward-card {
    padding: 23px;
  }

  .progress-card__counter {
    font-size: 46px;
  }

  .collection-dialog__content {
    padding: 22px 16px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .memory-dialog__content {
    padding: 24px 15px;
  }

  .memory-card__image {
    height: 260px;
  }

  .receipt-screen {
    padding: 37px 0 65px;
  }

  .receipt-machine {
    width: min(100%, 440px);
    padding: 18px 14px 24px;
  }

  .receipt-machine__top h3 {
    font-size: 18px;
  }

  .love-receipt {
    width: 89%;
  }

  .love-receipt__inner {
    padding: 28px 18px 39px;
  }

  .receipt-header h3 {
    font-size: 23px;
  }

  .receipt-message h3 {
    font-size: 25px;
  }

  .receipt-message__content p {
    font-size: 11.5px;
    line-height: 1.9;
  }

  .receipt-actions {
    width: 89%;
  }

  .site-footer {
    margin-top: 55px;
  }

}


/* ==========================================================
   27. EXTRA SMALL PHONES
========================================================== */

@media (max-width: 360px) {

  .app-shell {
    width: calc(100% - 16px);
  }

  .brand-subtitle {
    display: none;
  }

  .sound-label {
    display: none;
  }

  .machine-top__sign {
    gap: 6px;
  }

  .machine-top__sign h2 {
    font-size: 16px;
  }

  .machine-window {
    height: 320px;
  }

  .arcade-button {
    width: 65px;
    height: 65px;
  }

  .arcade-button--grab {
    width: 87px;
    height: 87px;
  }

  .control-panel__buttons {
    gap: 13px;
  }

  .receipt-detail {
    font-size: 9px;
  }

}


/* ==========================================================
   28. REDUCED MOTION / ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

}

/* ============================================
   MOBILE ARCADE OPTIMIZATION
   The Memory Catcher
============================================ */

@media (max-width: 600px) {

  /* PAGE */

  .app-shell {
    width: calc(100% - 20px);
  }

  /* SMALLER NAVIGATION */

  .topbar {
    padding: 12px 0;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 21px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .sound-toggle {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 10px;
  }

  /* COMPACT INTRO */

  .game-intro {
    padding: 18px 0 19px;
  }

  .game-intro__eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
    gap: 7px;
  }

  .game-intro h1 {
    margin: 8px 0 7px;
    font-size: clamp(32px, 8.5vw, 39px);
    letter-spacing: -1.3px;
    line-height: 1.1;
  }

  .game-intro__description {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.55;
  }

  .game-intro__tag {
    display: none;
  }

  /* GAME LAYOUT */

  .arcade-layout {
    gap: 22px;
  }

  .arcade-main {
    gap: 14px;
  }

  /* COMPACT CLAW MACHINE */

  .claw-machine {
    border-width: 5px;
    border-radius: 24px 24px 19px 19px;

    box-shadow:
      0 9px 0 #e7a5ba,
      0 18px 30px rgba(160, 93, 130, .18);
  }

  .machine-top {
    padding: 11px 7px 12px;
    border-radius: 17px 17px 10px 10px;
  }

  .machine-top__lights {
    gap: 10px;
    margin-bottom: 6px;
  }

  .machine-top__lights span {
    width: 7px;
    height: 7px;
  }

  .machine-top__sign {
    gap: 8px;
  }

  .machine-top__sign h2 {
    font-size: clamp(17px, 4.7vw, 21px);
  }

  .machine-top__subtitle {
    margin-top: 3px;
    font-size: 9px;
  }

  .machine-body {
    padding: 6px 6px 0;
  }

  /* SHORTER GLASS AREA */

  .machine-window {
    height: clamp(290px, 80vw, 325px);
    border-width: 4px;
  }

  /* PHOTO CAPSULES */

  .capsule {
    width: 19%;
  }

  .capsule__photo {
    padding: 3px 3px 6px;
  }

  /* LOWER CABINET */

  .machine-lower {
    gap: 10px;
    padding: 10px 9px 12px;
  }

  .prize-chute__opening {
    height: 53px;
  }

  .machine-printer {
    min-height: 65px;
    gap: 5px;
  }

  .machine-base {
    min-height: 34px;
  }

  /* MOBILE CONTROL PANEL */

  .control-panel {
    position: sticky;
    bottom: 10px;
    z-index: 30;

    padding: 13px 14px 16px;

    border-radius: 20px;

    background: rgba(255, 248, 252, .96);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
      0 8px 30px rgba(130, 75, 112, .17);
  }

  .control-panel__heading {
    margin-bottom: 12px;
  }

  .control-panel__label {
    font-size: 9px;
  }

  .control-panel__status {
    font-size: 8px;
    padding: 5px 8px;
  }

  .control-panel__buttons {
    gap: 20px;
  }

  .arcade-button {
    width: 67px;
    height: 67px;
  }

  .arcade-button span {
    font-size: 23px;
  }

  .arcade-button small {
    font-size: 9px;
  }

  .arcade-button--grab {
    width: 88px;
    height: 88px;
  }

  .arcade-button--grab strong {
    font-size: 16px;
  }

  .control-panel__hint,
  .control-panel__keyboard-hint {
    display: none;
  }

  /* SIDEBAR */

  .game-sidebar {
    gap: 15px;
  }

  .progress-card,
  .instructions-card,
  .reward-card {
    padding: 20px;
  }

  .progress-card__counter {
    margin-top: 10px;
    font-size: 40px;
  }

  .progress-card__caption {
    margin-bottom: 12px;
  }

}

/* LOVE RECEIPT SCROLL FIX */

html {
  height: auto;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-shell,
#mainContent,
.receipt-screen {
  height: auto;
  overflow: visible;
}

.love-receipt.is-fully-printed {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 600px) {
  .receipt-screen {
    padding-bottom: 100px;
  }

  .receipt-actions {
    padding-bottom: 20px;
  }
}



/* ==========================================================
   END OF STYLESHEET
   Made for our little memory catcher ♡
========================================================== */
