:root {
  color-scheme: dark;
  --bg: #04040a;
  --ink: #fff5eb;
  --muted: #b9adc4;
  --dim: #7f768b;
  --gold: #f7c46e;
  --gold-soft: #f7dfab;
  --rose: #ff6f91;
  --rose-hot: #ff4f7c;
  --cyan: #68e8ff;
  --violet: #a47cff;
  --green: #98d06c;
  --panel: rgba(10, 10, 18, 0.76);
  --panel-strong: rgba(8, 8, 15, 0.92);
  --line: rgba(255, 255, 255, 0.13);
  --line-hot: rgba(255, 111, 145, 0.56);
  --shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 66% 8%, rgba(255, 111, 145, 0.22), transparent 24rem),
    radial-gradient(circle at 80% 24%, rgba(104, 232, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 18% 14%, rgba(247, 196, 110, 0.13), transparent 21rem),
    linear-gradient(180deg, #03040a 0%, #0b0712 46%, #04040a 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 111, 145, 0.11), transparent 30rem),
    linear-gradient(180deg, transparent 0 54%, rgba(255, 111, 145, 0.08) 54% 55%, transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(247, 196, 110, 0.035) 36px 37px, transparent 39px 74px);
}

body::after {
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 83%, rgba(255, 111, 145, 0.16), transparent 34rem),
    linear-gradient(180deg, transparent 0 69%, rgba(7, 9, 19, 0.78) 69% 100%);
  opacity: 0.9;
}

body.mystery-mode-active {
  background:
    radial-gradient(circle at 64% 6%, rgba(255, 111, 145, 0.15), transparent 21rem),
    radial-gradient(circle at 22% 18%, rgba(247, 196, 110, 0.075), transparent 18rem),
    radial-gradient(circle at 82% 30%, rgba(70, 34, 92, 0.22), transparent 24rem),
    linear-gradient(180deg, #010106 0%, #06020b 46%, #010105 100%);
}

body.mystery-mode-active::before {
  background:
    radial-gradient(circle at 52% 35%, rgba(255, 111, 145, 0.11), transparent 28rem),
    linear-gradient(180deg, transparent 0 52%, rgba(247, 196, 110, 0.035) 54% 55%, transparent 58%);
}

body.mystery-mode-active::after {
  background:
    radial-gradient(ellipse at 50% 82%, rgba(72, 28, 86, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 52%, rgba(2, 2, 7, 0.92) 74% 100%);
}

button,
input,
select {
  font: inherit;
}

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

.app-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 18px 14px 64px;
}

.hero-shell {
  position: relative;
  min-height: 730px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 22px;
  padding: 38px 0 28px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 34px;
}

.poster-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: 34px;
}

.skyline-layer,
.atmosphere-particles,
.deck-particle-layer,
.mystery-particles {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.skyline-layer {
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: min(1280px, 128%);
  height: 68%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.26;
  filter: brightness(0.42) saturate(1.06) contrast(1.08);
  transform: translateX(-50%);
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 72%, transparent 100%);
}

.atmosphere-particles {
  inset: -7% -8% auto;
  z-index: 2;
  width: 116%;
  height: 74%;
  max-width: none;
  object-fit: cover;
  opacity: 0.085;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 63% 28%, black 0 34%, transparent 74%);
}

.poster-atmosphere::before {
  content: "";
  position: absolute;
  inset: 12% -10% 0;
  background:
    radial-gradient(circle at 64% 32%, rgba(255, 111, 145, 0.3), transparent 16rem),
    radial-gradient(circle at 73% 28%, rgba(104, 232, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 34% 65%, rgba(247, 196, 110, 0.12), transparent 16rem);
  filter: blur(5px);
}

.poster-atmosphere::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background:
    linear-gradient(180deg, transparent 0 23%, rgba(7, 10, 18, 0.66) 23% 36%, rgba(6, 5, 11, 0.94) 78%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 12px);
  opacity: 0.78;
  mask-image: linear-gradient(180deg, transparent, black 28%, black);
}

.city {
  position: absolute;
  bottom: 31%;
  z-index: 0;
  width: 38px;
  border-radius: 5px 5px 0 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 211, 124, 0.26) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, rgba(27, 38, 58, 0.98), rgba(8, 10, 18, 0.96));
  box-shadow: 0 0 28px rgba(255, 198, 111, 0.1);
  opacity: 0.12;
  filter: blur(0.35px);
}

.city-a { left: 6%; height: 96px; }
.city-b { left: 14%; height: 62px; }
.city-c { left: 23%; height: 124px; }
.city-d { left: 31%; height: 78px; }
.city-e { left: 39%; height: 104px; }

.water-glow {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 16%;
  z-index: 1;
  height: 96px;
  background:
    radial-gradient(ellipse at 34% 0, rgba(247, 196, 110, 0.18), transparent 22rem),
    repeating-linear-gradient(180deg, rgba(247, 196, 110, 0.11) 0 1px, transparent 1px 13px);
  opacity: 0.52;
  filter: blur(0.4px);
}

.petal {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 14px;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(160deg, #ff7598, #8c2345);
  box-shadow: 0 0 20px rgba(255, 111, 145, 0.38);
  transform: rotate(38deg);
  opacity: 0.72;
}

.petal-a { left: 59%; top: 12%; }
.petal-b { left: 84%; top: 6%; transform: rotate(72deg); }
.petal-c { left: 43%; top: 38%; transform: rotate(-8deg); }
.petal-d { right: 4%; top: 44%; transform: rotate(112deg); }

.hero-copy-block {
  display: contents;
  position: relative;
  z-index: 5;
}

.brand-lockup {
  order: 1;
  width: fit-content;
  display: grid;
  justify-items: center;
  gap: 0;
  color: var(--gold-soft);
  text-align: center;
  text-shadow: 0 0 18px rgba(247, 196, 110, 0.24);
}

.brand-heart {
  height: 18px;
  color: var(--rose);
  font-size: 1.45rem;
  line-height: 0.8;
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1;
}

.brand-city {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.44em;
}

.language-toggle {
  order: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(247, 196, 110, 0.26);
  border-radius: 999px;
  padding: 3px;
  background: rgba(5, 5, 12, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  background: transparent;
  color: rgba(255, 232, 189, 0.7);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.28), rgba(247, 196, 110, 0.2));
  color: #fff5eb;
  box-shadow: 0 0 18px rgba(255, 111, 145, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-shell h1 {
  order: 3;
  max-width: 440px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 12vw, 4.35rem);
  line-height: 0.96;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
}

.hero-shell h1 span,
.hero-shell h1 em {
  display: block;
}

.hero-shell h1 em {
  color: #ff7496;
  font-style: italic;
}

.hero-copy {
  order: 4;
  max-width: 460px;
  margin: 0;
  color: #d7ccde;
  font-size: 1rem;
  line-height: 1.55;
}

.trust-line {
  order: 5;
  width: fit-content;
  margin: 0;
  color: #ffe8bd;
  font-size: 0.88rem;
  font-weight: 850;
}

.hero-actions,
.build-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.hero-actions {
  order: 6;
  width: min(100%, 310px);
  margin-bottom: 8px;
}

.hero-assist {
  order: 7;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 330px;
  margin: 0;
  color: rgba(255, 232, 239, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7ba0 0%, #ff4f7c 46%, #f7c46e 140%);
  color: #fff6f4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 18px 54px rgba(255, 79, 124, 0.42);
}

.btn-secondary {
  border: 1px solid rgba(247, 196, 110, 0.34);
  background: rgba(5, 5, 12, 0.54);
  color: #ffe8bd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.mystery-mode-active .btn-secondary,
body.mystery-mode-active #mystery-mode-toggle {
  border-color: rgba(255, 111, 145, 0.58);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 111, 145, 0.22), transparent 4rem),
    rgba(7, 5, 16, 0.78);
  color: #ffe8f0;
  box-shadow: 0 0 28px rgba(255, 111, 145, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-build {
  min-height: 54px;
  background: linear-gradient(135deg, #ff7897, #ff4f7c 54%, #f7c46e 150%);
  box-shadow: 0 20px 52px rgba(255, 79, 124, 0.34);
}

.hint {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.hint-trigger {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 196, 110, 0.34);
  border-radius: 50%;
  padding: 0;
  background: rgba(247, 196, 110, 0.08);
  color: #ffe4b8;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.hint-trigger:focus-visible {
  outline: 2px solid rgba(104, 232, 255, 0.72);
  outline-offset: 3px;
}

.hint-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 9px);
  z-index: 20;
  width: min(248px, calc(100vw - 40px));
  border: 1px solid rgba(247, 196, 110, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 111, 145, 0.18), transparent 9rem),
    rgba(9, 8, 16, 0.96);
  color: #f6e5ee;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hint:hover .hint-popover,
.hint:focus-within .hint-popover,
.hint.is-open .hint-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-assist .hint-popover,
.details-actions .hint-popover,
.section-title-row .hint-popover {
  left: auto;
  right: 0;
}

.hero-visual {
  order: 2;
  position: relative;
  width: min(100%, 500px);
  min-height: 456px;
  padding-top: 14px;
  display: grid;
  place-items: center;
  justify-self: center;
  isolation: isolate;
}

.scene-haze {
  position: absolute;
  width: 88%;
  aspect-ratio: 1.1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 111, 145, 0.34), transparent 48%),
    radial-gradient(circle at 72% 44%, rgba(104, 232, 255, 0.2), transparent 42%),
    radial-gradient(circle at 38% 65%, rgba(247, 196, 110, 0.22), transparent 38%);
  filter: blur(28px);
  opacity: 0.88;
  transform: translateY(18px);
}

.deck-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  height: 456px;
  perspective: 1400px;
}

.deck-particle-layer {
  inset: -4% -6% -6%;
  z-index: 0;
  width: 112%;
  height: 106%;
  max-width: none;
  object-fit: cover;
  opacity: 0.085;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 48% 44%, black 0 35%, transparent 74%);
}

.deck-stack-asset {
  position: absolute;
  left: 50%;
  top: 24px;
  z-index: 3;
  width: min(100%, 520px);
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%) rotate(-1.6deg);
  transform-origin: center;
  filter:
    drop-shadow(0 34px 70px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 34px rgba(255, 80, 131, 0.22));
}

body.mystery-mode-active .deck-stack-asset {
  filter:
    drop-shadow(0 38px 78px rgba(0, 0, 0, 0.78))
    drop-shadow(0 0 46px rgba(255, 80, 131, 0.34))
    drop-shadow(0 0 36px rgba(164, 124, 255, 0.24));
}

body.mystery-mode-active .skyline-layer {
  opacity: 0.18;
  filter: brightness(0.28) saturate(0.92) contrast(1.18);
}

body.mystery-mode-active .atmosphere-particles,
body.mystery-mode-active .deck-particle-layer {
  opacity: 0.052;
}

body.mystery-mode-active .scene-haze {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 111, 145, 0.22), transparent 48%),
    radial-gradient(circle at 38% 65%, rgba(247, 196, 110, 0.15), transparent 38%),
    radial-gradient(circle at 72% 44%, rgba(87, 38, 105, 0.18), transparent 42%);
  opacity: 0.76;
}

.hero-deck-status {
  position: absolute;
  left: 53%;
  top: 63%;
  z-index: 6;
  display: grid;
  gap: 7px;
  width: min(176px, 38%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-deck-status span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 196, 110, 0.26);
  border-radius: 999px;
  padding: 0 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(5, 5, 12, 0.54);
  color: #ffe1bb;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stack-card,
.front-date-card {
  position: absolute;
  border: 1px solid rgba(247, 196, 110, 0.35);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    linear-gradient(180deg, rgba(52, 27, 62, 0.96), rgba(7, 6, 12, 0.98));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.62),
    0 0 30px rgba(255, 111, 145, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.stack-card {
  width: 150px;
  height: 220px;
  top: 26px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  color: #ffe5bb;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.stack-card::after,
.front-date-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(247, 196, 110, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.stack-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(247, 196, 110, 0.34);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.2rem;
}

.stack-card-one {
  left: 70px;
  transform: rotate(-13deg);
}

.stack-card-two {
  left: 292px;
  top: 12px;
  transform: rotate(12deg);
}

.stack-card-three {
  left: 370px;
  top: 64px;
  transform: rotate(18deg);
}

.front-date-card {
  z-index: 4;
  left: 198px;
  top: 72px;
  width: 230px;
  height: 318px;
  padding: 28px 24px 22px;
  overflow: hidden;
  transform: rotate(1deg);
}

.card-shine {
  position: absolute;
  inset: -25% auto auto -18%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 66%);
  pointer-events: none;
}

.deck-brand {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto;
  color: #ffe6ba;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.deck-moon {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 18px auto 8px;
  border: 1px solid rgba(247, 196, 110, 0.28);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(247, 196, 110, 0.07);
}

.deck-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffdda3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.88rem;
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
}

.route-preview {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  color: #ff85a3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.route-preview b {
  color: var(--gold);
  font-family: inherit;
  font-weight: 400;
}

.deck-badges {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.deck-badges span {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 196, 110, 0.18);
  border-radius: 999px;
  background: rgba(3, 3, 8, 0.5);
  color: #f5dec0;
  font-size: 0.7rem;
  font-weight: 850;
}

.tiny-actions {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tiny-actions span {
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 245, 235, 0.68);
  font-size: 0.58rem;
  font-weight: 850;
}

.hero-envelope-mini,
.mystery-envelope-object {
  overflow: hidden;
  border: 1px solid rgba(247, 196, 110, 0.45);
  background:
    linear-gradient(145deg, rgba(111, 52, 112, 0.98), rgba(14, 7, 20, 0.98)),
    #120816;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(255, 111, 145, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.hero-envelope-mini {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: 34px;
  width: 180px;
  height: 106px;
  overflow: hidden;
  border: 1px solid rgba(247, 196, 110, 0.36);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 91, 132, 0.2), transparent 5.4rem),
    linear-gradient(145deg, rgba(111, 52, 112, 0.96), rgba(12, 7, 19, 0.98));
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(255, 88, 133, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: rotate(-11deg);
}

.hero-wax-img,
.mystery-seal-img,
.clue-slip,
.frame-clue-slip,
.loading-mark img {
  display: block;
  pointer-events: none;
  user-select: none;
}

.hero-wax-img {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 6;
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px rgba(255, 91, 132, 0.6));
}

.hero-envelope-mini .envelope-flap,
.hero-envelope-mini::before,
.hero-envelope-mini::after {
  display: block;
}

.envelope-flap,
.mystery-envelope-flap {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(145deg, rgba(247, 196, 110, 0.16), rgba(255, 111, 145, 0.04));
}

.hero-envelope-mini::before,
.hero-envelope-mini::after,
.mystery-envelope-object::before,
.mystery-envelope-object::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-envelope-mini::before,
.mystery-envelope-object::before {
  clip-path: polygon(0 100%, 50% 46%, 100% 100%);
  background: rgba(104, 232, 255, 0.09);
}

.hero-envelope-mini::after,
.mystery-envelope-object::after {
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 50% 46%, 0 100%);
  border: 1px solid rgba(247, 196, 110, 0.14);
}

.wax-seal,
.mystery-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 2px solid rgba(247, 196, 110, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 34% 25%, #ffc3d0, transparent 18%),
    linear-gradient(145deg, #ff4f7c, #9c2448);
  color: #ffeef4;
  box-shadow:
    0 0 0 8px rgba(255, 111, 145, 0.13),
    0 0 34px rgba(255, 111, 145, 0.74),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.wax-seal {
  width: 58px;
  height: 58px;
  font-size: 1.42rem;
}

.envelope-mini-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 9px;
  z-index: 5;
  display: grid;
  gap: 2px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.envelope-mini-copy strong,
.mystery-envelope-label strong {
  color: #ffe6ba;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

.envelope-mini-copy span,
.mystery-envelope-label span {
  color: #ffb1c4;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-strip {
  width: min(100%, 940px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  margin: 10px auto 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(10, 10, 19, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.phase-strip span {
  position: relative;
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #f2d9e1;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.phase-strip span + span::before {
  content: "";
  position: absolute;
  left: -14%;
  top: 19px;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 145, 0.72), transparent);
}

.phase-strip i {
  color: var(--rose);
  font-style: normal;
  font-size: 1rem;
}

.deck-builder-shell {
  scroll-margin-top: 20px;
}

.builder-card,
.result-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 16, 0.82);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.builder-card::before,
.result-panel::before,
.mystery-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 0, rgba(255, 111, 145, 0.14), transparent 16rem),
    radial-gradient(circle at 80% 10%, rgba(104, 232, 255, 0.09), transparent 18rem);
}

.builder-card {
  padding: 24px;
}

.builder-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.builder-heading h2,
.mystery-copy h2,
.result-copy h2,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 6vw, 2.55rem);
  line-height: 1.02;
  color: var(--gold);
  font-weight: 800;
}

.builder-heading p,
.mystery-copy p,
.result-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.builder-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.builder-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 2px;
}

.row-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #ff9bb3;
}

.row-label > div {
  display: grid;
  gap: 4px;
}

.row-label span {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 950;
}

.row-label h3 {
  margin: 0;
  color: #fbe6ee;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.row-label p {
  max-width: 160px;
  margin: 0;
  color: rgba(217, 202, 222, 0.72);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.3;
}

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

.mood-chip {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 9px 6px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 9, 17, 0.72);
  color: #f7edf4;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mood-chip i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  font-style: normal;
  font-size: 1.12rem;
}

.mood-chip.is-active {
  border-color: rgba(255, 111, 145, 0.85);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 111, 145, 0.28), transparent 58%),
    rgba(33, 16, 28, 0.92);
  color: #fff7f1;
  box-shadow: 0 0 0 1px rgba(247, 196, 110, 0.2), 0 0 28px rgba(255, 111, 145, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.sync-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.budget-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.alchemy-card {
  position: relative;
  min-height: 152px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  padding: 18px 12px 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.12), transparent 4.8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 17, 0.78);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.budget-green { --budget-accent: var(--green); }
.budget-cyan { --budget-accent: var(--cyan); }
.budget-violet { --budget-accent: var(--violet); }
.budget-rose { --budget-accent: var(--rose); }

.budget-price {
  color: var(--budget-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 8vw, 2.25rem);
  line-height: 1;
  font-weight: 800;
}

.budget-name {
  max-width: 148px;
  color: #f6e5d9;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.28;
}

.budget-glyph {
  color: var(--budget-accent);
  font-size: 1.16rem;
}

.budget-input:checked + .alchemy-card {
  border-color: rgba(255, 111, 145, 0.9);
  box-shadow:
    0 0 0 1px rgba(247, 196, 110, 0.24),
    0 0 34px rgba(255, 111, 145, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.quick-adjustments {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(4, 5, 10, 0.32);
}

.mini-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe0b8;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.feature-pill {
  min-height: 38px;
  border: 1px solid rgba(247, 196, 110, 0.24);
  border-radius: 999px;
  padding: 0 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(247, 196, 110, 0.065);
  color: #f8dec4;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-pill.is-active {
  border-color: rgba(104, 232, 255, 0.44);
  background:
    radial-gradient(circle at 50% 0, rgba(104, 232, 255, 0.18), transparent 4rem),
    rgba(104, 232, 255, 0.08);
  color: #dffaff;
  box-shadow: 0 0 20px rgba(104, 232, 255, 0.12);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  color: #c9bccf;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(4, 5, 10, 0.62);
  color: var(--ink);
  outline: none;
}

.field select option {
  background: #11101a;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: rgba(104, 232, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(104, 232, 255, 0.12);
}

.details-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.build-cta-wrap,
.surprise-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.surprise-card {
  border: 1px solid rgba(247, 196, 110, 0.18);
  border-radius: 16px;
  padding: 10px;
  background: rgba(247, 196, 110, 0.055);
}

.surprise-card .btn {
  grid-column: 1 / 2;
  min-height: 42px;
}

.surprise-card .hint {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.surprise-card p {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: rgba(217, 202, 222, 0.74);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.35;
}

.advanced-options {
  justify-self: center;
  margin-top: 0;
}

.advanced-options summary {
  color: var(--dim);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  list-style: none;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.toggle-row input {
  width: 40px;
  height: 23px;
  flex: 0 0 40px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
}

.toggle-row input::after {
  content: "";
  width: 15px;
  height: 15px;
  position: absolute;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.18s ease;
}

.toggle-row input:checked {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.toggle-row input:checked::after {
  transform: translateX(16px);
}

.secondary-build-actions {
  width: min(100%, 190px);
  justify-self: center;
}

.mystery-feature {
  position: relative;
  display: grid;
  gap: 26px;
  align-items: center;
  margin-top: 26px;
  padding: 30px;
  border: 1px solid rgba(247, 196, 110, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 111, 145, 0.18), transparent 20rem),
    radial-gradient(circle at 84% 34%, rgba(164, 124, 255, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(7, 6, 13, 0.86);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body.mystery-mode-active .builder-card,
body.mystery-mode-active .alchemist-note {
  border-color: rgba(255, 255, 255, 0.095);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(5, 4, 12, 0.78);
  color: #fff5eb;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.mystery-mode-active .row-label p,
body.mystery-mode-active .field label,
body.mystery-mode-active .surprise-card p,
body.mystery-mode-active .result-copy p,
body.mystery-mode-active .mystery-copy p,
body.mystery-mode-active .alchemist-note p,
body.mystery-mode-active .hero-copy,
body.mystery-mode-active .hero-assist {
  color: rgba(255, 239, 231, 0.84);
}

body.mystery-mode-active .mystery-feature {
  border-color: rgba(247, 196, 110, 0.38);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 111, 145, 0.2), transparent 20rem),
    radial-gradient(circle at 84% 34%, rgba(247, 196, 110, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(4, 3, 10, 0.96);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.72),
    0 0 48px rgba(247, 196, 110, 0.14),
    0 0 42px rgba(255, 111, 145, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mystery-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 36% 45%, rgba(255, 111, 145, 0.13), transparent 16rem),
    linear-gradient(90deg, rgba(4, 4, 10, 0.36), transparent 42%, rgba(4, 4, 10, 0.34));
}

.mystery-envelope-object {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  min-height: 318px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  justify-self: center;
}

.mystery-envelope-object::before {
  display: block;
  inset: 8% 2% 2%;
  z-index: 0;
  border: 1px solid rgba(247, 196, 110, 0.12);
  border-radius: 32px;
  clip-path: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 91, 132, 0.2), transparent 9rem),
    radial-gradient(circle at 28% 64%, rgba(247, 196, 110, 0.13), transparent 11rem),
    rgba(6, 5, 12, 0.34);
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.56),
    0 0 52px rgba(255, 88, 133, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mystery-envelope-object::after {
  display: block;
  left: 8%;
  right: 8%;
  bottom: 3%;
  height: 34%;
  z-index: 1;
  border: 0;
  border-radius: 50%;
  clip-path: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.56), transparent 68%);
  filter: blur(10px);
  opacity: 0.8;
}

.mystery-envelope-flap {
  display: none;
  inset: 36px 8px 24px;
  z-index: 3;
  border-radius: 20px;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(145deg, rgba(247, 196, 110, 0.13), rgba(255, 111, 145, 0.055)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 48%, rgba(0, 0, 0, 0.16));
}

.mystery-envelope-asset {
  position: relative;
  z-index: 3;
  width: min(100%, 450px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 26px;
  filter:
    drop-shadow(0 34px 64px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 36px rgba(255, 83, 129, 0.22))
    drop-shadow(0 0 28px rgba(247, 196, 110, 0.1));
}

body.mystery-mode-active .mystery-envelope-asset {
  transform: translateY(-4px) scale(1.035);
  filter:
    drop-shadow(0 42px 82px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 46px rgba(255, 83, 129, 0.3))
    drop-shadow(0 0 34px rgba(247, 196, 110, 0.18));
}

body.mystery-mode-active .mystery-envelope-object::before {
  border-color: rgba(247, 196, 110, 0.2);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 91, 132, 0.22), transparent 9rem),
    radial-gradient(circle at 28% 64%, rgba(247, 196, 110, 0.16), transparent 11rem),
    rgba(3, 3, 9, 0.44);
}

.mystery-seal-img {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 5;
  width: clamp(68px, 20vw, 98px);
  height: clamp(68px, 20vw, 98px);
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 26px rgba(255, 84, 133, 0.68));
}

.mystery-particles {
  inset: -28% -20%;
  z-index: 0;
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  opacity: 0.1;
  mix-blend-mode: screen;
}

body.mystery-mode-active .mystery-particles {
  opacity: 0.07;
}

.clue-slip {
  position: absolute;
  z-index: 1;
  opacity: 0.5;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.clue-slip-one {
  left: -8px;
  bottom: 10px;
  width: 86px;
  transform: rotate(-13deg);
}

.mystery-envelope-label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 6;
  width: min(230px, 72%);
  display: grid;
  gap: 4px;
  border: 1px solid rgba(247, 196, 110, 0.2);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(5, 4, 10, 0.58);
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.mystery-mode-active .mystery-envelope-label {
  border-color: rgba(247, 196, 110, 0.34);
  background: rgba(3, 3, 9, 0.72);
  color: #fff1e7;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 24px rgba(255, 111, 145, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mystery-copy {
  position: relative;
  z-index: 1;
}

.section-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mystery-copy p {
  max-width: 480px;
  margin-top: 10px;
}

.reveal-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.reveal-steps span {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(247, 196, 110, 0.24);
  border-radius: 999px;
  padding: 0 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(4, 5, 10, 0.46);
  color: #ffe1c0;
  font-size: 0.82rem;
  font-weight: 900;
}

body.mystery-mode-active .reveal-steps span {
  border-color: rgba(247, 196, 110, 0.34);
  background:
    radial-gradient(circle at 12% 0, rgba(255, 111, 145, 0.14), transparent 4rem),
    rgba(4, 4, 10, 0.62);
  color: #fff1d8;
  box-shadow: 0 0 18px rgba(247, 196, 110, 0.1);
}

.alchemist-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  max-width: 760px;
  margin: 22px auto 0;
  border: 1px solid rgba(247, 196, 110, 0.2);
  border-radius: 24px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 0 50%, rgba(247, 196, 110, 0.13), transparent 14rem),
    rgba(247, 196, 110, 0.055);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.alchemist-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 196, 110, 0.34);
  border-radius: 50%;
  background: rgba(247, 196, 110, 0.1);
  color: var(--gold);
  box-shadow: 0 0 28px rgba(247, 196, 110, 0.12);
}

.alchemist-mark {
  background:
    center / 86% no-repeat url("/assets/datecard/final/datecard-wax-seal.png"),
    rgba(247, 196, 110, 0.1);
  color: transparent;
}

.alchemist-note h2 {
  font-size: clamp(1.22rem, 4.6vw, 1.65rem);
}

.alchemist-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pulse {
  animation: pulsePanel 0.9s ease;
}

@keyframes pulsePanel {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.12);
  }
  45% {
    border-color: rgba(247, 196, 110, 0.78);
    box-shadow: 0 0 0 6px rgba(247, 196, 110, 0.12), var(--shadow);
  }
}

.loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  color: var(--muted);
}

.loading.active {
  display: flex;
}

.loading p {
  margin: 0;
  font-weight: 900;
}

.loading-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.loading-mark img {
  position: absolute;
  inset: 2px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 87, 132, 0.5));
}

.spinner {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-section {
  margin-top: 18px;
}

.result-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 24px;
  border-color: rgba(255, 111, 145, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 72% 0, rgba(255, 111, 145, 0.16), transparent 18rem),
    radial-gradient(circle at 12% 20%, rgba(247, 196, 110, 0.1), transparent 14rem),
    rgba(7, 6, 13, 0.86);
}

body.mystery-mode-active .result-panel {
  border-color: rgba(247, 196, 110, 0.3);
  background:
    radial-gradient(circle at 72% 0, rgba(255, 111, 145, 0.17), transparent 18rem),
    radial-gradient(circle at 12% 20%, rgba(247, 196, 110, 0.09), transparent 14rem),
    rgba(3, 3, 9, 0.94);
  box-shadow:
    0 30px 94px rgba(0, 0, 0, 0.62),
    0 0 34px rgba(247, 196, 110, 0.1),
    0 0 34px rgba(255, 111, 145, 0.1);
}

.result-copy,
.result-stage {
  position: relative;
  z-index: 1;
}

.result-kicker {
  margin: 0 0 8px;
  color: #ff95ad;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-copy p {
  max-width: 300px;
  margin-top: 12px;
}

.result-stats {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.result-stats span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.action-strip {
  display: grid;
  gap: 8px;
}

.action-strip-primary {
  grid-template-columns: 1fr;
}

.action-button,
.helper-button,
.text-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 111, 145, 0.34);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(255, 111, 145, 0.08);
  color: #ffe8ef;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.frame-shell {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 111, 145, 0.44);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 111, 145, 0.2), transparent 12rem),
    radial-gradient(circle at 86% 0, rgba(247, 196, 110, 0.13), transparent 14rem),
    #05050b;
  box-shadow: 0 0 0 1px rgba(247, 196, 110, 0.12), 0 20px 70px rgba(0, 0, 0, 0.36);
  padding: 10px;
}

body.mystery-mode-active .frame-shell {
  border-color: rgba(247, 196, 110, 0.34);
  background:
    radial-gradient(circle at 12% 0, rgba(255, 111, 145, 0.16), transparent 12rem),
    radial-gradient(circle at 86% 0, rgba(247, 196, 110, 0.1), transparent 14rem),
    #030308;
  box-shadow:
    0 0 0 1px rgba(247, 196, 110, 0.12),
    0 24px 78px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(255, 111, 145, 0.1);
}

body.mystery-mode-active .frame-shell::before,
body.mystery-mode-active .frame-shell::after {
  background: radial-gradient(ellipse at 50% 0, rgba(247, 196, 110, 0.28), transparent 72%);
  opacity: 0.8;
}

.frame-clue-slip {
  position: absolute;
  right: -18px;
  top: -34px;
  z-index: 0;
  width: clamp(92px, 18vw, 150px);
  opacity: 0.2;
  transform: rotate(12deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.42));
}

.frame-shell::before,
.frame-shell::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 140px;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 111, 145, 0.44), transparent 70%);
  pointer-events: none;
}

.frame-shell::before { left: 8%; }
.frame-shell::after { right: 8%; }

.frame-shell iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 620px;
  display: block;
  border: 0;
  border-radius: 16px;
  background: #05050a;
}

.helper-actions,
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.helper-button,
.text-button {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.helper-soon {
  cursor: not-allowed;
  opacity: 0.68;
}

.helper-soon span {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-button:hover,
.mood-chip:hover,
.alchemy-card:hover,
.feature-pill:hover,
.helper-button:hover,
.btn-secondary:hover,
.text-button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background-color: rgba(255, 255, 255, 0.09);
}

body.mystery-mode-active .mood-chip:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.095);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(5, 5, 13, 0.78);
  color: rgba(255, 239, 231, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.mystery-mode-active .mood-chip:not(.is-active) i {
  color: rgba(247, 196, 110, 0.72);
}

body.mystery-mode-active .mood-chip.is-active,
body.mystery-mode-active .budget-input:checked + .alchemy-card {
  border-color: rgba(255, 111, 145, 0.88);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 111, 145, 0.26), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(24, 10, 24, 0.96);
  color: #fff8f4;
  box-shadow:
    0 0 0 1px rgba(247, 196, 110, 0.22),
    0 0 30px rgba(255, 111, 145, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.mystery-mode-active .alchemy-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 50% 0, rgba(247, 196, 110, 0.055), transparent 4.8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(5, 5, 13, 0.82);
  color: rgba(255, 245, 235, 0.82);
}

body.mystery-mode-active .budget-price,
body.mystery-mode-active .budget-glyph {
  filter: saturate(0.82) brightness(0.92);
}

body.mystery-mode-active .budget-name,
body.mystery-mode-active .mini-heading {
  color: rgba(255, 231, 205, 0.88);
}

body.mystery-mode-active .quick-adjustments {
  border-color: rgba(247, 196, 110, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(3, 3, 9, 0.56);
}

body.mystery-mode-active .feature-pill,
body.mystery-mode-active .helper-button,
body.mystery-mode-active .text-button {
  border-color: rgba(247, 196, 110, 0.17);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(247, 196, 110, 0.035);
  color: rgba(255, 229, 209, 0.8);
  box-shadow: none;
}

body.mystery-mode-active .feature-pill.is-active,
body.mystery-mode-active .helper-button:not(:disabled):hover,
body.mystery-mode-active .text-button:hover {
  border-color: rgba(255, 111, 145, 0.48);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 111, 145, 0.18), transparent 4rem),
    rgba(255, 111, 145, 0.075);
  color: #ffe8f0;
  box-shadow: 0 0 20px rgba(255, 111, 145, 0.14);
}

body.mystery-mode-active .mood-chip:not(.is-active):hover,
body.mystery-mode-active .alchemy-card:hover,
body.mystery-mode-active .feature-pill:not(.is-active):hover {
  border-color: rgba(247, 196, 110, 0.24);
  background-color: rgba(255, 255, 255, 0.045);
}

@media (min-width: 520px) {
  .app-shell {
    padding: 18px 20px 72px;
  }

  .hero-actions,
  .build-actions {
    grid-template-columns: 1fr 1fr;
  }

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

  .alchemy-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .details-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .btn-build {
    grid-column: auto;
  }

  .action-strip-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 520px) and (max-width: 859px) {
  .app-shell {
    padding: 16px 10px 54px;
  }

  .hero-shell {
    min-height: 386px;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    padding: 18px 18px 12px;
  }

  .hero-copy-block {
    display: block;
    align-self: center;
    padding-top: 0;
  }

  .brand-lockup {
    margin: 0 auto 22px;
  }

  .language-toggle {
    margin: -14px auto 18px;
  }

  .brand-heart {
    font-size: 1.14rem;
  }

  .brand-word {
    font-size: 1.35rem;
  }

  .brand-city {
    font-size: 0.5rem;
  }

  .hero-shell h1 {
    font-size: clamp(1.42rem, 4.3vw, 1.62rem);
    line-height: 1.02;
  }

  .hero-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
  }

  .trust-line {
    margin-top: 14px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .hero-actions {
    width: 132px;
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions .btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.58rem;
  }

  .hero-visual {
    order: initial;
    width: 100%;
    min-height: 360px;
    padding-top: 8px;
    justify-self: end;
    overflow: visible;
  }

  .deck-stage {
    width: min(100%, 350px);
    height: 348px;
    transform: translateX(-28px) scale(0.9);
    transform-origin: center;
  }

  .deck-stack-asset {
    top: 24px;
    left: 50%;
    width: 104%;
  }

  .hero-deck-status {
    top: 57%;
    width: 134px;
    gap: 5px;
  }

  .hero-deck-status span {
    min-height: 22px;
    padding-inline: 8px;
    font-size: 0.48rem;
  }

  .city {
    opacity: 0.08;
  }

  .stack-card {
    width: 88px;
    height: 140px;
    top: 22px;
    border-radius: 16px;
    font-size: 0.48rem;
  }

  .stack-icon {
    width: 28px;
    height: 28px;
    font-size: 0.92rem;
  }

  .stack-card-one {
    left: 26px;
  }

  .stack-card-two {
    left: 164px;
  }

  .stack-card-three {
    left: 236px;
    top: 52px;
  }

  .front-date-card {
    left: 126px;
    top: 42px;
    width: 156px;
    height: 218px;
    border-radius: 18px;
    padding: 16px 14px 14px;
  }

  .front-date-card::after {
    inset: 7px;
  }

  .deck-brand {
    font-size: 0.64rem;
  }

  .deck-moon {
    width: 24px;
    height: 24px;
    margin: 10px auto 6px;
    font-size: 0.82rem;
  }

  .deck-kicker {
    font-size: 1.28rem;
  }

  .route-preview {
    margin-top: 13px;
    font-size: 0.53rem;
  }

  .deck-badges {
    gap: 6px;
    margin-top: 12px;
  }

  .deck-badges span {
    min-height: 22px;
    font-size: 0.5rem;
  }

  .tiny-actions {
    left: 12px;
    right: 12px;
    bottom: 8px;
    gap: 4px;
  }

  .tiny-actions span {
    min-height: 18px;
    font-size: 0.44rem;
  }

  .hero-envelope-mini {
    right: 2px;
    bottom: 24px;
    width: 146px;
    height: 92px;
  }

  .hero-wax-img {
    width: 40px;
    height: 40px;
  }

  .envelope-mini-copy {
    left: 24px;
    right: 24px;
    bottom: 9px;
  }

  .envelope-mini-copy strong {
    font-size: 0.62rem;
  }

  .envelope-mini-copy span {
    font-size: 0.48rem;
  }

  .phase-strip {
    width: min(100%, 446px);
    margin: 2px auto 16px;
    padding: 8px 10px;
  }

  .phase-strip span {
    min-height: 30px;
    font-size: 0.48rem;
  }

  .phase-strip i {
    font-size: 0.82rem;
  }

  .builder-card {
    padding: 18px 18px 14px;
  }

  .builder-heading {
    grid-template-columns: 136px 1fr;
    align-items: end;
    gap: 12px;
    margin-bottom: 12px;
  }

  .builder-heading h2 {
    font-size: 1.5rem;
  }

  .builder-heading p {
    font-size: 0.58rem;
  }

  .builder-row {
    grid-template-columns: 96px 1fr;
    gap: 10px;
  }

  .row-label {
    align-items: flex-start;
    gap: 5px;
  }

  .row-label h3 {
    font-size: 0.58rem;
  }

  .row-label p {
    display: none;
  }

  .row-label span {
    font-size: 0.6rem;
  }

  .row-label .hint-trigger,
  .mini-heading .hint-trigger {
    width: 18px;
    height: 18px;
    font-size: 0.54rem;
  }

  .mood-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 7px;
  }

  .mood-chip {
    min-height: 60px;
    border-radius: 6px;
    padding: 6px 3px;
    font-size: 0.5rem;
  }

  .mood-chip i {
    width: 20px;
    height: 20px;
    font-size: 0.82rem;
  }

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

  .alchemy-card {
    min-height: 104px;
    border-radius: 9px;
    padding: 12px 6px 9px;
  }

  .budget-price {
    font-size: 1.45rem;
  }

  .budget-name {
    max-width: 80px;
    font-size: 0.58rem;
  }

  .budget-glyph {
    font-size: 0.8rem;
  }

  .quick-adjustments {
    grid-column: 2;
    padding: 9px;
  }

  .mini-heading {
    font-size: 0.55rem;
  }

  .feature-pills {
    gap: 6px;
    margin-top: -2px;
  }

  .feature-pill {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.58rem;
  }

  .details-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 7px;
  }

  .details-actions {
    grid-column: 2;
    grid-template-columns: minmax(105px, 0.85fr) minmax(130px, 1fr);
    gap: 8px;
  }

  .field label {
    font-size: 0.48rem;
  }

  .field input,
  .field select {
    min-height: 34px;
    border-radius: 7px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .btn-build {
    min-height: 40px;
    grid-column: auto;
    font-size: 0.68rem;
  }

  .surprise-card {
    min-height: 40px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 7px;
  }

  .surprise-card .btn {
    min-height: 32px;
    font-size: 0.6rem;
  }

  .surprise-card p {
    font-size: 0.52rem;
  }

  .advanced-options summary {
    font-size: 0.56rem;
  }

  .secondary-build-actions {
    display: none;
  }

  .result-panel {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (min-width: 860px) {
  .app-shell {
    padding-top: 20px;
  }

  .hero-shell {
    min-height: 558px;
    grid-template-columns: minmax(320px, 0.76fr) minmax(520px, 1fr);
    gap: 18px;
    padding: 34px 0 26px;
  }

  .hero-copy-block {
    display: block;
    align-self: center;
    padding: 4px 0 0 40px;
  }

  .brand-lockup {
    margin: 0 0 34px 38px;
  }

  .language-toggle {
    margin: -20px 0 28px 40px;
  }

  .hero-shell h1 {
    margin-top: 0;
    max-width: 520px;
    font-size: clamp(2.55rem, 3.2vw, 3.05rem);
  }

  .hero-copy {
    margin-top: 18px;
    max-width: 430px;
  }

  .trust-line {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 20px;
    grid-template-columns: 1fr;
    width: 250px;
  }

  .hero-visual {
    order: initial;
    min-height: 552px;
    width: min(100%, 640px);
    justify-self: end;
  }

  .deck-stage {
    width: 560px;
    height: 528px;
  }

  .deck-stack-asset {
    top: 34px;
    width: 508px;
  }

  .stack-card {
    width: 154px;
    height: 232px;
    top: 30px;
  }

  .stack-card-one { left: 74px; }
  .stack-card-two { left: 300px; }
  .stack-card-three { left: 414px; top: 70px; }

  .front-date-card {
    left: 236px;
    top: 58px;
    width: 250px;
    height: 340px;
    padding: 27px 24px 22px;
  }

  .deck-kicker {
    font-size: 2.02rem;
  }

  .hero-envelope-mini {
    right: 24px;
    bottom: 48px;
    width: 190px;
    height: 112px;
  }

  .builder-card {
    padding: 28px 30px 20px;
  }

  .builder-heading {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 42px;
  }

  .builder-row {
    grid-template-columns: 176px 1fr;
    align-items: start;
    gap: 14px;
  }

  .mood-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 10px;
  }

  .mood-chip {
    min-height: 90px;
    border-radius: 12px;
    font-size: 0.68rem;
  }

  .mood-chip i {
    width: 28px;
    height: 28px;
    font-size: 1.05rem;
  }

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

  .alchemy-card {
    min-height: 156px;
    border-radius: 16px;
  }

  .quick-adjustments {
    grid-column: 2;
    margin-top: -4px;
  }

  .details-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
  }

  .details-actions {
    grid-column: 2;
    grid-template-columns: minmax(180px, 0.72fr) minmax(230px, 1fr);
  }

  .advanced-options {
    grid-column: 2;
    justify-self: start;
  }

  .btn-build {
    grid-column: auto;
    min-height: 44px;
  }

  .secondary-build-actions {
    grid-column: 2;
    justify-self: center;
    margin-top: -4px;
  }

  .mystery-feature {
    grid-template-columns: minmax(330px, 0.86fr) 1fr;
    padding: 30px;
  }

  .mystery-envelope-object {
    width: min(100%, 500px);
    min-height: 350px;
  }

  .clue-slip-one {
    width: 92px;
  }

  .mystery-copy {
    max-width: 470px;
  }

  .result-panel {
    grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1fr);
    gap: 22px;
    padding: 24px 24px 20px;
  }
}

@media (max-width: 519px) {
  .hero-shell {
    align-items: start;
    gap: 14px;
    padding-top: 18px;
  }

  .brand-lockup {
    justify-self: center;
    margin: 0 auto;
  }

  .language-toggle {
    justify-self: center;
    margin: -4px auto 0;
  }

  .hero-shell h1,
  .hero-copy,
  .trust-line,
  .hero-actions,
  .hero-assist {
    justify-self: start;
  }

  .hero-shell h1 {
    margin-top: 6px;
    font-size: clamp(1.82rem, 7.6vw, 2.05rem);
    line-height: 0.98;
  }

  .hero-copy {
    display: none;
  }

  .trust-line {
    font-size: 0.8rem;
  }

  .hero-visual {
    min-height: 384px;
    padding-top: 12px;
  }

  .hero-actions {
    width: min(100%, 330px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-assist {
    max-width: 320px;
    font-size: 0.72rem;
  }

  .hero-actions .btn {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .deck-stage {
    width: min(100%, 390px);
    height: 374px;
    transform: translateX(0);
    transform-origin: center;
  }

  .deck-stack-asset {
    left: 50%;
    top: 22px;
    width: 96%;
  }

  .hero-deck-status {
    top: 55%;
    width: 148px;
    gap: 5px;
  }

  .hero-deck-status span {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 0.52rem;
  }

  .hero-envelope-mini {
    right: 14px;
    bottom: 12px;
    width: 118px;
    height: 82px;
  }

  .hero-wax-img {
    width: 32px;
    height: 32px;
  }

  .envelope-mini-copy {
    display: none;
  }

  .mystery-feature {
    padding: 24px 16px 26px;
  }

  .mystery-envelope-object {
    width: min(100%, 360px);
    min-height: 268px;
  }

  .mystery-envelope-asset {
    width: min(100%, 344px);
    border-radius: 20px;
  }

  .mystery-envelope-label {
    bottom: 12px;
    width: min(210px, 74%);
    padding: 7px 14px;
  }

  .clue-slip-one {
    left: -6px;
    bottom: 8px;
    width: 58px;
    opacity: 0.42;
  }

  .frame-clue-slip {
    right: -34px;
    width: 104px;
    opacity: 0.18;
  }

  .phase-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    margin: 16px auto 24px;
    padding-inline: 4px;
  }

  .phase-strip span {
    min-width: 0;
    font-size: 0;
    line-height: 1.15;
    white-space: normal;
  }

  .phase-strip span::after {
    content: attr(data-short);
    font-size: 0.46rem;
  }

  .builder-card {
    padding: 20px 16px;
  }

  .row-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
  }

  .row-label p {
    max-width: none;
    font-size: 0.68rem;
  }

  .quick-adjustments {
    padding: 11px;
  }

  .details-actions {
    gap: 11px;
  }

  .build-cta-wrap,
  .surprise-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .field-end {
    display: none;
  }

  .alchemist-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .download-row .text-button {
    flex: 1 1 130px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 10px;
  }

  .hero-shell {
    min-height: 748px;
  }

  .deck-stage {
    width: min(100%, 370px);
    height: 356px;
    transform: translateX(0);
  }

  .hero-visual {
    min-height: 360px;
  }

  .deck-stack-asset {
    top: 20px;
    width: 94%;
  }

  .hero-deck-status {
    top: 56%;
    width: 138px;
  }

  .hero-deck-status span {
    min-height: 22px;
    font-size: 0.48rem;
  }

  .hero-envelope-mini {
    right: 10px;
    bottom: 10px;
    width: 112px;
    height: 78px;
  }

  .hero-wax-img {
    width: 31px;
    height: 31px;
  }

  .hero-shell h1 {
    font-size: clamp(1.82rem, 7.6vw, 2.05rem);
  }

  .mood-grid,
  .alchemy-grid {
    gap: 8px;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .deck-stack-asset {
    animation: deckAssetFloat 7s ease-in-out infinite;
  }

  .hero-envelope-mini,
  .mystery-seal-img,
  .hero-wax-img,
  .loading-mark img {
    animation: sealGlow 4s ease-in-out infinite;
  }

  .petal-a,
  .petal-b,
  .petal-c,
  .petal-d {
    animation: petalDrift 8s ease-in-out infinite;
  }
}

@keyframes deckAssetFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-1.6deg);
  }
  50% {
    transform: translateX(-50%) translateY(-8px) rotate(-1deg);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.6deg);
  }
}

@keyframes sealGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 111, 145, 0));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 111, 145, 0.45));
  }
}

@keyframes petalDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 10px 18px;
  }
}
