:root {
  --rose-950: #6f1f3b;
  --rose-800: #933653;
  --rose-650: #bd5f7b;
  --rose-500: #d9859d;
  --rose-300: #efb8c9;
  --rose-200: #f5cad6;
  --rose-100: #fbe5ec;
  --rose-50: #fff5f8;
  --paper: #fffaf8;
  --ink: #5b2639;
  --muted: #8c5d6d;
  --sage: #7c8b72;
  --shadow: 0 22px 55px rgba(130, 49, 78, 0.15);
  --display: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Lora", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 7% 16%, rgba(255, 255, 255, 0.92) 0 4%, transparent 24%),
    radial-gradient(circle at 88% 7%, rgba(239, 184, 201, 0.56), transparent 28%),
    linear-gradient(145deg, #fff8fa 0%, #fbe4eb 48%, #f6d3de 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: -24rem;
  left: -17rem;
  border: 1px solid rgba(189, 95, 123, 0.16);
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.1), 0 0 0 10rem rgba(255, 255, 255, 0.08);
}

.ambient-two {
  right: -25rem;
  bottom: -21rem;
  border: 1px solid rgba(189, 95, 123, 0.2);
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.08), 0 0 0 10rem rgba(255, 255, 255, 0.06);
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 38px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(147, 54, 83, 0.14);
  border-radius: 50%;
  color: white;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--rose-800);
  box-shadow: 0 8px 20px rgba(147, 54, 83, 0.22);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.18rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter,
.reset-button {
  min-height: 44px;
  border: 1px solid rgba(147, 54, 83, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 248, 0.68);
  box-shadow: 0 8px 24px rgba(147, 54, 83, 0.08);
  backdrop-filter: blur(14px);
}

.counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 5px rgba(217, 133, 157, 0.14);
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: var(--rose-800);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.reset-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.reset-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.intro {
  max-width: 760px;
  margin: 50px auto 32px;
  text-align: center;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--rose-800);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-chip span {
  color: var(--rose-500);
  font-size: 0.9rem;
}

.intro h1 {
  margin: 0;
  color: var(--rose-950);
  font-family: var(--display);
  font-size: clamp(2.65rem, 7vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.intro h1 em {
  color: var(--rose-650);
  font-weight: 400;
}

.intro-copy > p {
  max-width: 580px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.instruction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 21px;
  color: #77485a;
  font-size: 0.78rem;
  font-weight: 650;
}

.instruction-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-family: var(--display);
  font-size: 0.72rem;
  background: var(--rose-650);
}

.instruction i {
  width: 34px;
  height: 1px;
  margin: 0 3px;
  background: rgba(147, 54, 83, 0.22);
}

.flower-wall {
  position: relative;
  overflow: hidden;
  padding: 54px 48px 62px;
  border: 1px solid rgba(147, 54, 83, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #f8d9e3, #f3c6d4);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.7);
}

.flower-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(90deg, rgba(147, 54, 83, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(147, 54, 83, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.wall-top {
  position: absolute;
  top: 15px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.wall-top span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(147, 54, 83, 0.3);
}

.flower-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 35px 30px;
}

.flower-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 148px;
  padding: 0;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  perspective: 700px;
}

.flower-card::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  z-index: -2;
  width: 1px;
  height: 47px;
  background: linear-gradient(to bottom, rgba(111, 31, 59, 0.08), rgba(111, 31, 59, 0.32));
}

.card-paper {
  position: relative;
  display: flex;
  min-height: 136px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
  padding: 22px 17px 16px;
  border: 1px solid rgba(147, 54, 83, 0.08);
  border-radius: 3px 3px 13px 3px;
  background:
    linear-gradient(130deg, transparent 0 54%, rgba(239, 184, 201, 0.12) 54% 56%, transparent 56%),
    var(--paper);
  box-shadow: 0 13px 24px rgba(111, 31, 59, 0.12), 0 2px 4px rgba(111, 31, 59, 0.08);
  transform: rotate(var(--tilt, -1deg));
  transform-origin: top center;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease, opacity 260ms ease;
}

.flower-card:nth-child(3n + 2) .card-paper { --tilt: 1.2deg; }
.flower-card:nth-child(4n) .card-paper { --tilt: -0.4deg; }
.flower-card:nth-child(5n) .card-paper { --tilt: 1.7deg; }

.flower-card:hover .card-paper,
.flower-card:focus-visible .card-paper {
  z-index: 2;
  box-shadow: 0 20px 32px rgba(111, 31, 59, 0.2), 0 3px 6px rgba(111, 31, 59, 0.08);
  transform: translateY(-8px) rotate(0deg) scale(1.025);
}

.flower-card:focus-visible {
  outline: 3px solid rgba(147, 54, 83, 0.35);
  outline-offset: 7px;
  border-radius: 8px;
}

.flower-image {
  position: absolute;
  z-index: 3;
  top: -29px;
  right: -17px;
  width: clamp(86px, 8vw, 112px);
  height: auto;
  filter: drop-shadow(0 10px 8px rgba(111, 31, 59, 0.2));
  pointer-events: none;
  transform: rotate(var(--flower-tilt, 8deg));
  transform-origin: 65% 70%;
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1.2), filter 280ms ease;
}

.flower-card:nth-child(2n) .flower-image { --flower-tilt: -6deg; }
.flower-card:nth-child(3n) .flower-image { --flower-tilt: 13deg; }

.flower-card:hover .flower-image,
.flower-card:focus-visible .flower-image {
  filter: drop-shadow(0 13px 10px rgba(111, 31, 59, 0.25));
  transform: translateY(-7px) rotate(0deg) scale(1.09);
}

.card-number {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--rose-300);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-line {
  width: 32px;
  height: 1px;
  margin-bottom: 10px;
  background: var(--rose-300);
}

.card-copy {
  color: var(--rose-950);
  font-family: var(--display);
  font-size: 1.04rem;
  line-height: 1.08;
}

.card-hint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.flower-card.picked {
  cursor: default;
}

.flower-card.picked .card-paper {
  background: rgba(255, 250, 248, 0.52);
  box-shadow: 0 8px 17px rgba(111, 31, 59, 0.08);
  opacity: 0.62;
}

.flower-card.picked .flower-image {
  filter: grayscale(0.2) saturate(0.5) opacity(0.58);
  transform: rotate(var(--flower-tilt, 4deg)) scale(0.88);
}

.flower-card.picked .card-copy {
  color: var(--muted);
}

.picked-stamp {
  position: absolute;
  z-index: 4;
  top: 49%;
  left: 50%;
  display: none;
  padding: 6px 9px;
  border: 1px solid rgba(147, 54, 83, 0.44);
  border-radius: 3px;
  color: var(--rose-800);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.flower-card.picked .picked-stamp {
  display: block;
}

.wall-signature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 48px;
  color: rgba(111, 31, 59, 0.5);
}

.wall-signature::before,
.wall-signature::after {
  content: "";
  width: min(12vw, 120px);
  height: 1px;
  background: rgba(111, 31, 59, 0.15);
}

.wall-signature span {
  font-family: var(--display);
  font-size: 0.9rem;
  font-style: italic;
}

.wall-signature b {
  font-family: var(--display);
  font-size: 1.25rem;
}

.footer-note {
  margin: 22px 0 0;
  color: rgba(91, 38, 57, 0.58);
  font-family: var(--display);
  font-size: 0.84rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-align: center;
}

.result-dialog {
  width: min(92vw, 470px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 32px 90px rgba(73, 19, 40, 0.36);
  overflow: visible;
}

.result-dialog::backdrop {
  background: rgba(84, 29, 50, 0.48);
  backdrop-filter: blur(9px);
}

.result-dialog[open] {
  animation: dialog-in 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dialog-card {
  position: relative;
  overflow: hidden;
  padding: 118px 38px 38px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -5%, rgba(245, 202, 214, 0.75), transparent 33%),
    var(--paper);
}

.dialog-card::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(147, 54, 83, 0.1);
  border-radius: 21px;
  pointer-events: none;
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  place-items: center;
  border: 1px solid rgba(147, 54, 83, 0.12);
  border-radius: 50%;
  color: var(--rose-800);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.dialog-flower-wrap {
  position: absolute;
  z-index: 1;
  top: -94px;
  left: 50%;
  width: 230px;
  transform: translateX(-50%);
}

.dialog-flower-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 17px rgba(111, 31, 59, 0.22));
  animation: flower-float 3.6s ease-in-out infinite;
}

.dialog-halo {
  position: absolute;
  top: 82px;
  left: 50%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  filter: blur(4px);
  transform: translateX(-50%);
}

.dialog-kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 9px;
  color: var(--rose-650);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dialog-card h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--rose-950);
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.dialog-card blockquote {
  position: relative;
  z-index: 2;
  margin: 18px auto 22px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
}

.gift-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 18px;
  padding: 13px 15px;
  border: 1px solid rgba(147, 54, 83, 0.12);
  border-radius: 15px;
  text-align: left;
  background: var(--rose-50);
}

.gift-badge > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-family: var(--display);
  font-size: 1.25rem;
  background: var(--rose-650);
}

.gift-badge div {
  display: grid;
  gap: 2px;
}

.gift-badge small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gift-badge strong {
  color: var(--rose-950);
  font-family: var(--display);
  font-size: 1rem;
}

.primary-button {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-650), var(--rose-800));
  box-shadow: 0 13px 24px rgba(147, 54, 83, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 30px rgba(147, 54, 83, 0.28);
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -15px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  animation: confetti-fall 1.9s ease-out forwards;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes flower-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(7px) rotate(2deg); }
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), 105vh, 0) rotate(var(--spin)); }
}

@media (max-width: 900px) {
  .flower-wall { padding: 52px 35px 55px; }
  .flower-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
}

@media (max-width: 650px) {
  .app-shell { width: min(100% - 24px, 520px); padding-top: 14px; }
  .brand-mark { width: 46px; height: 46px; font-size: 0.8rem; }
  .brand-copy small { display: none; }
  .counter { display: none; }
  .reset-button { width: 44px; padding: 0; justify-content: center; }
  .reset-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .intro { margin: 40px auto 27px; }
  .intro h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .intro-copy > p { padding: 0 9px; font-size: 0.94rem; }
  .instruction { display: grid; grid-template-columns: 27px 1fr; width: fit-content; margin-inline: auto; text-align: left; }
  .instruction i { display: none; }
  .flower-wall { padding: 51px 20px 45px; border-radius: 24px; }
  .flower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
  .flower-card { min-height: 142px; }
  .flower-image { width: 91px; }
  .wall-signature { margin-top: 40px; }
  .dialog-card { padding: 112px 25px 27px; }
}

@media (max-width: 370px) {
  .flower-wall { padding-inline: 15px; }
  .flower-grid { gap-inline: 18px; }
  .card-paper { padding-inline: 13px; }
  .flower-image { right: -10px; width: 82px; }
}

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

/* Split-screen layout: 16 flowers on the left, story and actions on the right. */
.app-shell {
  display: grid;
  width: min(1420px, calc(100% - 42px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 0;
  place-items: center;
}

.experience-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(620px, 1.16fr) minmax(400px, 0.84fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}

.game-info {
  display: flex;
  min-width: 0;
  min-height: min(680px, calc(100vh - 52px));
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 10px;
}

.game-info .topbar {
  width: 100%;
}

.game-info .intro {
  max-width: 540px;
  margin: 44px 0 30px;
  text-align: left;
}

.game-info .intro h1 {
  font-size: clamp(3.3rem, 5vw, 5.4rem);
}

.game-info .intro-copy > p {
  max-width: 510px;
  margin: 24px 0 0;
  font-size: 1.03rem;
}

.game-info .instruction {
  display: grid;
  width: min(100%, 480px);
  grid-template-columns: 30px 1fr;
  gap: 10px 12px;
  margin-top: 28px;
  text-align: left;
}

.game-info .instruction i {
  display: none;
}

.choose-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 0 8px 0 24px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-650), var(--rose-800));
  box-shadow: 0 16px 32px rgba(147, 54, 83, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.choose-button:hover,
.choose-button:focus-visible {
  box-shadow: 0 20px 36px rgba(147, 54, 83, 0.3);
  transform: translateY(-3px);
}

.choose-button:focus-visible {
  outline: 3px solid rgba(147, 54, 83, 0.3);
  outline-offset: 4px;
}

.choose-button-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-800);
  font-family: var(--display);
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
}

.flower-wall {
  display: flex;
  min-height: min(720px, calc(100vh - 52px));
  flex-direction: column;
  justify-content: center;
  padding: 80px 44px 42px;
  border-radius: 30px;
}

.wall-heading {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wall-heading > div:first-child {
  display: grid;
  gap: 2px;
}

.wall-heading > div:first-child span {
  color: var(--rose-800);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wall-heading > div:first-child strong {
  color: var(--rose-950);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
}

.flower-wall .counter {
  min-height: 38px;
  padding-inline: 14px;
  background: rgba(255, 250, 248, 0.58);
}

.flower-wall .wall-top {
  top: 22px;
}

.flower-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(23px, 2.1vw, 32px) clamp(18px, 1.8vw, 28px);
}

.flower-card {
  min-height: 118px;
}

.card-paper {
  min-height: 112px;
  padding: 18px 13px 12px;
}

.flower-image {
  top: -25px;
  right: -13px;
  width: clamp(72px, 6.2vw, 94px);
}

.card-number {
  top: 10px;
  left: 11px;
  font-size: 0.73rem;
}

.card-line {
  margin-bottom: 8px;
}

.card-copy {
  font-size: 0.94rem;
}

.card-hint {
  font-size: 0.64rem;
}

.wall-signature {
  margin-top: 34px;
}

.game-info .footer-note {
  margin: 0;
  text-align: left;
}

@media (max-width: 1120px) {
  .app-shell {
    width: min(980px, calc(100% - 34px));
    padding-block: 22px 40px;
  }

  .experience-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .game-info {
    min-height: 0;
    order: -1;
    padding: 0;
  }

  .game-info .intro {
    max-width: 780px;
    margin: 50px 0 22px;
  }

  .game-info .intro h1 {
    font-size: clamp(3.6rem, 8vw, 5.4rem);
  }

  .game-info .footer-note {
    display: none;
  }

  .flower-wall {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .app-shell {
    width: min(100% - 24px, 540px);
    padding-top: 14px;
  }

  .game-info .intro {
    margin-top: 38px;
  }

  .game-info .intro h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .choose-button {
    width: 100%;
  }

  .flower-wall {
    padding: 82px 18px 38px;
    border-radius: 24px;
  }

  .wall-heading {
    top: 22px;
    right: 20px;
    left: 20px;
  }

  .flower-wall .counter {
    display: flex;
    min-height: 36px;
    font-size: 0.72rem;
  }

  .wall-heading > div:first-child strong {
    font-size: 0.88rem;
  }

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

  .flower-card {
    min-height: 130px;
  }

  .card-paper {
    min-height: 124px;
    padding: 20px 14px 14px;
  }

  .flower-image {
    width: 90px;
  }
}

@media (max-height: 760px) and (min-width: 1121px) {
  .app-shell {
    padding-block: 18px;
  }

  .game-info,
  .flower-wall {
    min-height: calc(100vh - 36px);
  }

  .game-info .intro {
    margin-block: 28px 18px;
  }

  .game-info .intro h1 {
    font-size: clamp(3.1rem, 4.5vw, 4.55rem);
  }

  .flower-wall {
    padding-top: 73px;
    padding-bottom: 30px;
  }

  .flower-grid {
    gap-block: 21px;
  }

  .flower-card,
  .card-paper {
    min-height: 103px;
  }

  .wall-signature {
    margin-top: 22px;
  }
}

/* Final one-screen composition for desktop, laptop and iPad. */
.wall-signature {
  gap: 9px;
}

.wall-signature .signature-brand {
  color: var(--rose-950);
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.wall-signature::before,
.wall-signature::after {
  width: min(7vw, 76px);
}

.game-info {
  justify-content: center;
}

@media (min-width: 720px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    width: min(1480px, 100%);
    height: 100dvh;
    min-height: 0;
    padding: clamp(14px, 2.2vw, 30px);
  }

  .experience-layout {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
    gap: clamp(22px, 3.6vw, 58px);
  }

  .game-info {
    min-height: 0;
    height: 100%;
    order: 0;
    padding: clamp(12px, 2.8vw, 40px) clamp(4px, 1.2vw, 18px);
  }

  .game-info .intro {
    max-width: 540px;
    margin: 0;
  }

  .flower-wall {
    height: 100%;
    min-height: 0;
    padding: clamp(28px, 4vh, 46px) clamp(24px, 3.1vw, 48px) clamp(20px, 3vh, 34px);
  }

  .flower-wall .wall-top {
    top: 17px;
  }

  .flower-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: clamp(15px, 2.2vh, 28px) clamp(15px, 1.8vw, 27px);
  }

  .flower-card,
  .card-paper {
    min-height: 0;
    height: 100%;
  }

  .wall-signature {
    flex: 0 0 auto;
    margin-top: clamp(12px, 2.1vh, 24px);
  }
}

@media (min-width: 720px) and (max-width: 1000px) {
  .app-shell {
    padding: 16px;
  }

  .experience-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 20px;
  }

  .game-info {
    padding: 16px 2px;
  }

  .game-info .intro h1 {
    font-size: clamp(2.4rem, 5.6vw, 3.35rem);
  }

  .game-info .intro-copy > p {
    margin-top: 17px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .game-info .instruction {
    grid-template-columns: 27px 1fr;
    gap: 8px 9px;
    margin-top: 18px;
    font-size: 0.83rem;
  }

  .instruction-number {
    width: 27px;
    height: 27px;
  }

  .choose-button {
    min-height: 50px;
    margin-top: 20px;
    padding-left: 20px;
  }

  .choose-button-mark {
    width: 38px;
    height: 38px;
  }

  .flower-wall {
    padding: 34px 20px 18px;
  }

  .flower-grid {
    gap: 16px 13px;
  }

  .flower-image {
    top: -19px;
    right: -9px;
    width: clamp(58px, 8vw, 74px);
  }

  .card-paper {
    padding: 14px 9px 9px;
  }

  .card-number {
    top: 7px;
    left: 8px;
    font-size: 0.66rem;
  }

  .card-copy {
    font-size: 0.82rem;
  }

  .card-hint {
    display: none;
  }

  .wall-signature {
    margin-top: 13px;
  }
}

@media (min-width: 720px) and (max-height: 700px) {
  .app-shell {
    padding-block: 12px;
  }

  .game-info .intro h1 {
    font-size: clamp(2.65rem, 4.2vw, 4rem);
  }

  .game-info .intro-copy > p {
    margin-top: 15px;
  }

  .game-info .instruction {
    margin-top: 16px;
  }

  .choose-button {
    min-height: 49px;
    margin-top: 18px;
  }

  .flower-wall {
    padding-top: 34px;
    padding-bottom: 16px;
  }

  .flower-grid {
    gap-block: 14px;
  }

  .flower-image {
    top: -18px;
    width: clamp(58px, 5vw, 72px);
  }

  .card-hint {
    display: none;
  }

  .wall-signature {
    margin-top: 10px;
  }
}

/* Keep both intended title lines intact inside the information column. */
.game-info {
  container-type: inline-size;
}

.game-info .intro h1 {
  font-size: clamp(2rem, 9.5cqi, 3.55rem);
  white-space: nowrap;
}

@media (max-width: 500px) {
  .game-info .intro h1 {
    font-size: clamp(2.05rem, 10.5vw, 2.8rem);
  }
}

/* Mobile flow: copy, compact 2 x 5 flower wall, then the primary action. */
@media (max-width: 719px) {
  .app-shell {
    width: min(100% - 20px, 520px);
    min-height: 100svh;
    padding: 12px 0 16px;
    place-items: start center;
  }

  .experience-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .game-info,
  .game-info .intro {
    display: contents;
  }

  .intro-copy {
    order: 1;
    margin: 14px 0 0;
    text-align: left;
  }

  .event-chip {
    margin-bottom: 9px;
    font-size: 0.66rem;
  }

  .game-info .intro h1 {
    font-size: clamp(2rem, 10.4vw, 2.75rem);
    line-height: 0.94;
  }

  .game-info .intro-copy > p {
    max-width: 36rem;
    margin: 13px 0 0;
    padding: 0;
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .instruction {
    display: none !important;
  }

  .flower-wall {
    order: 2;
    min-height: 0;
    padding: 31px 16px 15px;
    border-radius: 22px;
  }

  .flower-wall .wall-top {
    top: 14px;
  }

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

  .flower-card:nth-child(n + 11) {
    display: none;
  }

  .flower-card,
  .card-paper {
    min-height: 76px;
    height: 76px;
  }

  .card-paper {
    padding: 11px 10px 8px;
  }

  .flower-card::before {
    top: -18px;
    height: 25px;
  }

  .flower-image {
    top: -13px;
    right: -7px;
    width: 57px;
  }

  .card-number {
    top: 7px;
    left: 8px;
    font-size: 0.62rem;
  }

  .card-line {
    width: 24px;
    margin-bottom: 5px;
  }

  .card-copy {
    font-size: 0.78rem;
  }

  .card-hint {
    display: none;
  }

  .wall-signature {
    gap: 8px;
    margin-top: 13px;
  }

  .wall-signature::before,
  .wall-signature::after {
    width: min(9vw, 42px);
  }

  .wall-signature .signature-brand,
  .wall-signature b {
    font-size: 0.9rem;
  }

  .wall-signature span {
    font-size: 0.72rem;
  }

  .choose-button {
    order: 3;
    width: 100%;
    min-height: 52px;
    margin: 0;
  }
}
