/* ==========================================================================
   Brumelins — game and marketing components (D-073).
   Builds on base.css tokens. Each rarity has a pastel: C sage, R sky,
   SR lavender, UR butter. Motion is transform/opacity only.
   ========================================================================== */

/* ---------- Rarity ---------- */
.rarity {
  display: inline-block; vertical-align: middle; padding: 1px 9px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.04em; line-height: 1.5;
  color: var(--ink); border: 2px solid var(--border); border-radius: 999px;
}
.rarity--c { background: var(--rarity-c); }
.rarity--r { background: var(--rarity-r); }
.rarity--sr { background: var(--rarity-sr); }
.rarity--ur { background: var(--rarity-ur); }
.rarity-bg--c { --card: var(--sage); --burst: #8FA39A; }
.rarity-bg--r { --card: var(--sky); --burst: #4A90C2; }
.rarity-bg--sr { --card: var(--lavender); --burst: #9B6FD1; }
.rarity-bg--ur { --card: var(--butter); --burst: #E2A72E; }
.rarity-glow--c { --burst: #8FA39A; } .rarity-glow--r { --burst: #4A90C2; } .rarity-glow--sr { --burst: #9B6FD1; } .rarity-glow--ur { --burst: #E2A72E; }

.badge { display: inline-block; vertical-align: middle; padding: 1px 9px; border: 2px solid var(--border); border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: var(--ink); }
.badge--mutation { background: var(--butter); }
.badge--pro { background: linear-gradient(120deg, #FFD66B, #FFB3CF); color: #23302C; border-color: #23302C; }

/* ---------- Section headings ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 34px 0 14px; }
.section-head h2 { margin: 0; }
.section-num { font-family: var(--font-title); font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Nest: wallet, quick links, banners ---------- */
.wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
.wallet > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--surface); border: var(--stroke) solid var(--border); border-radius: 999px; font-weight: 800; box-shadow: 0 3px 0 var(--shadow-color); }
.nest-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 14px 0 12px; }
.nest-head h1 { margin: 0; }
.nest-head .wallet { margin: 0; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 18px; }
@media (min-width: 640px) { .quick-links { display: flex; } }
.quick-links .button:nth-child(1) { --btn-bg: #DCD4FF; --primary-hover: #CEC3FF; }
.quick-links .button:nth-child(2) { --btn-bg: #FFD0E1; --primary-hover: #FFC0D6; }
@media (prefers-color-scheme: dark) { .quick-links .button { --btn-ink: #23302C; } }

.hint, .slot-status { padding: 14px 18px; background: var(--sky); border: var(--stroke) solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.hint p { margin: 0; }
.slot-status .muted { display: block; font-size: 0.875rem; margin-top: 4px; }
.gift {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; margin: 0 0 16px;
  background: var(--butter); color: var(--ink);
  border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.gift p, .gift form { margin: 0; }
.gift > span { flex: 1 1 220px; }
.gift .actions { margin: 0; }

/* ---------- Egg choice ---------- */
.egg-choice { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 16px 0 8px; }
@media (min-width: 680px) { .egg-choice { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.egg-card { margin: 0; }
.egg-card__button {
  display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  width: 100%; height: 100%; padding: 14px 16px; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer;
  background: var(--card, var(--mint)); border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s var(--ease-bounce), box-shadow .2s;
}
.egg-card:nth-child(2) .egg-card__button { --card: var(--peach); }
.egg-card:nth-child(3) .egg-card__button { --card: var(--lavender); }
.egg-card__button:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--shadow-color); }
.egg-card__button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-color); }
.egg-card__img { grid-row: 1 / span 3; width: 92px; height: 92px; filter: drop-shadow(0 6px 0 rgba(35, 48, 44, .12)); }
.egg-card__name { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; }
.egg-card__blurb { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }
.egg-card__cta { justify-self: start; margin-top: 6px; padding: 4px 14px; font-family: var(--font-title); font-weight: 600; font-size: 0.95rem; background: var(--surface); border: 2px solid var(--border); border-radius: 999px; }
@media (min-width: 680px) {
  .egg-card__button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px 24px; }
  .egg-card__img { grid-row: auto; width: 150px; height: 150px; margin-bottom: 6px; }
  .egg-card__cta { justify-self: center; margin-top: 10px; }
  .egg-card:nth-child(1) .egg-card__button { transform: rotate(-1.5deg); }
  .egg-card:nth-child(3) .egg-card__button { transform: rotate(1.5deg); }
  .egg-card .egg-card__button:hover { transform: translate(-3px, -3px) rotate(0); }
}
.chosen-egg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; background: var(--mint); border: var(--stroke) solid var(--border); border-radius: 18px; }
.chosen-egg img { width: 72px; height: 72px; }
.chosen-egg p { margin: 0; }

/* ---------- Creature cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 640px) { .grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.creature-card {
  position: relative; padding: 10px 12px 14px; text-align: center;
  background: var(--card, var(--surface)); border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s var(--ease-bounce), box-shadow .2s;
}
@media (hover: hover) { .creature-card:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 7px 7px 0 var(--shadow-color); } }
.creature-card img { width: 100%; max-width: 170px; margin: 0 auto; aspect-ratio: 1; }
.creature-card h3 { font-size: 1.05rem; margin: 2px 0 8px; }
.creature-card h3 a { color: var(--ink); text-decoration: none; }
.creature-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.creature-card p { margin: 4px 0; font-size: 0.875rem; }
.creature-card form { position: relative; z-index: 1; margin: 6px 0 0; }
.creature-card .bars { position: relative; z-index: 1; }
.creature-card--empty { display: grid; place-items: center; min-height: 170px; background: transparent; box-shadow: none; border-style: dashed; color: var(--ink-soft); font-weight: 700; }
.creature-card--empty:hover { transform: none; box-shadow: none; }
.creature-card--link { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; }
.shop-item { text-align: center; }
.shop-item img { margin: 0 auto 6px; width: 120px; height: 120px; }
.shop-item form { margin: 12px 0 0; }

/* ---------- Mood / energy ---------- */
.bars { display: grid; gap: 6px; margin: 8px 0; text-align: left; }
.bar__label { display: block; font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); }
.bar__track { display: block; height: 12px; padding: 2px; border: 2px solid var(--border); border-radius: 99px; background: var(--surface); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 99px; }
.bar__fill--mood { background: #FF9EC0; }
.bar__fill--energy { background: #FFD66B; }

/* ---------- Creature page ---------- */
.creature-page {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px;
  background: var(--surface); border: var(--stroke) solid var(--border); border-radius: var(--radius-l); box-shadow: 6px 6px 0 var(--shadow-color);
}
@media (min-width: 820px) { .creature-page { grid-template-columns: 380px minmax(0, 1fr); align-items: start; padding: 26px; gap: 30px; } }
.creature-stage {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 380px; margin: 0 auto;
  background: var(--card, var(--mint)); border: var(--stroke) solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.creature-stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 68%); }
@media (prefers-color-scheme: dark) { .creature-stage::before { background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,0) 68%); } }
.creature-stage > img { grid-area: 1 / 1; position: relative; width: 92%; }
.creature-info h1 { margin-bottom: 0.25em; }
.countdown { font-size: 1.25rem; }
.genes { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 16px 0 8px; border: var(--stroke) solid var(--border); border-radius: 18px; overflow: hidden; }
.genes dt, .genes dd { margin: 0; padding: 10px 14px; border-top: 2px solid var(--border); }
.genes dt:first-of-type, .genes dd:first-of-type { border-top: 0; }
.genes dt { font-weight: 800; background: var(--sage); }
.name-form { margin: 16px 0; padding: 16px; background: var(--butter); border: var(--stroke) solid var(--border); border-radius: 20px; }
.name-form label { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.creature-info .actions { margin: 16px 0 8px; gap: 10px; }
.creature-info .actions form { margin: 0; }
.actions--secondary { margin-top: 0 !important; }
.rename summary { cursor: pointer; color: var(--link); font-weight: 800; margin-top: 12px; }
.lineage { margin: 4px 0; font-weight: 600; }
.share-cta { margin: 12px 0; }

/* ---------- Activity log ---------- */
.log { list-style: none; padding: 0; margin: 0; background: var(--surface); border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.log__entry { display: grid; gap: 2px; padding: 12px 16px; border-top: 2px solid var(--border); }
.log__entry:first-child { border-top: 0; }
@media (min-width: 640px) { .log__entry { grid-template-columns: 130px 1fr; gap: 14px; } }
.log__when { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.seeds { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--butter); font-weight: 800; white-space: nowrap; }
.found { font-weight: 800; }

/* ---------- Odds and tables ---------- */
.odds, .odds-panel { margin: 18px 0; padding: 18px; background: var(--surface); border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.odds summary { cursor: pointer; font-weight: 800; }
.odds table, .odds-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.92rem; }
.odds th, .odds td, .odds-table th, .odds-table td { padding: 6px 8px; text-align: left; font-weight: 600; border-top: 2px dotted color-mix(in srgb, var(--ink) 25%, transparent); }
.odds-table caption { text-align: left; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; padding: 4px 0; }
.odds-table thead th { font-size: 0.78rem; color: var(--ink-soft); border-top: 0; }
.odds-table td, .odds td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 800; }
.odds-table__mutation th { color: var(--ink-soft); }
.odds h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.odds h4 { font-size: 0.95rem; margin: 10px 0 4px; }
.odds__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.odds__list li { display: flex; justify-content: space-between; font-size: 0.9rem; }
.odds__list--wide { grid-template-columns: 1fr; max-width: 440px; }
.odds-genes { display: grid; gap: 16px; }
@media (min-width: 760px) { .odds-genes { grid-template-columns: repeat(3, 1fr); } }
.odds-panel h2 { margin-top: 1em; font-size: 1.2rem; }
.odds-panel .button { margin-top: 16px; }

/* ---------- Breeding ---------- */
.parents { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .parents { grid-template-columns: 1fr 1fr; } }
.couple { display: flex; align-items: center; justify-content: center; gap: 8px; }
.couple figure { margin: 0; flex: 1; max-width: 170px; text-align: center; padding: 8px; background: var(--peach); border: var(--stroke) solid var(--border); border-radius: 20px; }
.couple figure:last-child { background: var(--lavender); }
.couple img { width: 110px; height: 110px; margin: 0 auto; }
.couple figcaption { font-weight: 800; }
.couple figcaption small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--ink-soft); }
.couple__plus { font-family: var(--font-title); font-size: 2.2rem; font-weight: 700; }
.planner__list { padding-left: 1.4em; margin: 0; }
.planner__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-top: 2px dotted color-mix(in srgb, var(--ink) 25%, transparent); }
.planner__odds { white-space: nowrap; }
.pro-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 26px 0 0; padding: 16px 18px; background: var(--rose); border: var(--stroke) dashed var(--border); border-radius: var(--radius); }
.pro-teaser p { margin: 0; flex: 1 1 240px; }

/* ---------- Profile ---------- */
.profile-head { position: relative; text-align: center; padding: 28px 16px 22px; margin-top: 8px; background: var(--lavender); border: var(--stroke) solid var(--border); border-radius: var(--radius-l); box-shadow: 6px 6px 0 var(--shadow-color); }
.profile-head h1 { margin-bottom: 4px; }
.profile-head--pro { background-size: cover; background-position: center; color: #23302C; }
.profile-head--pro .muted { color: #4E5F5A; }
.counters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 14px 0 6px; }
.counters li { padding: 4px 14px; background: var(--surface); border: 2px solid var(--border); border-radius: 999px; font-weight: 600; color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.badge-chip { padding: 4px 12px; border: 2px solid var(--border); border-radius: 999px; background: var(--butter); font-size: 0.85rem; font-weight: 800; color: var(--ink); transform: rotate(var(--r, -2deg)); }
.badge-chip:nth-child(2n) { --r: 2deg; background: var(--mint); }
.badge-chip:nth-child(3n) { --r: -1deg; background: var(--rose); }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; align-items: center; }
.share .help { flex-basis: 100%; margin: 0; }
.cta-card { margin: 22px 0; padding: 18px; background: var(--mint); border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-card p { margin: 0 0 12px; }

/* ---------- Brumedex ---------- */
.progress { height: 18px; padding: 3px; border: var(--stroke) solid var(--border); border-radius: 99px; background: var(--surface); overflow: hidden; margin-bottom: 8px; }
.progress span { display: block; height: 100%; min-width: 10px; border-radius: 99px; background: repeating-linear-gradient(-45deg, #FFD66B 0 10px, #FFC94A 10px 20px); }
.dex-gene { font-size: 1rem; margin: 18px 0 8px; color: var(--ink-soft); }
.dex { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.dex__entry { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; background: var(--mint); border: 2px solid var(--border); border-radius: 16px; font-size: 0.78rem; font-weight: 800; text-align: center; }
.dex__entry img { width: 72px; height: 72px; }
.dex__entry--hidden { background: var(--surface); border-style: dashed; }
.dex__entry--hidden img { filter: brightness(0) opacity(0.18); }
.dex__entry--hidden span { color: var(--ink-soft); }

/* ---------- Pro page ---------- */
.pro-table { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--stroke) solid var(--border); border-radius: 18px; overflow: hidden; }
.pro-table th, .pro-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-top: 2px solid var(--border); }
.pro-table thead th { border-top: 0; font-family: var(--font-title); font-size: 1.05rem; background: var(--sage); }
.pro-table thead th:last-child { background: #FFD66B; color: #23302C; }
.pro-table td:last-child { background: color-mix(in srgb, #FFD66B 22%, transparent); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 6px 0 6px 34px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 6px; display: grid; place-items: center; width: 24px; height: 24px; font-weight: 900; font-size: 0.85rem; color: #23302C; background: var(--primary); border: 2px solid var(--border); border-radius: 50%; }
.pro-cta { margin-top: 22px; }
.hero--small { text-align: center; padding: 18px 0 6px; }
.hero--small .lead { margin-inline: auto; }

/* ==========================================================================
   Home page
   ========================================================================== */
.home-hero { position: relative; display: grid; gap: 18px; align-items: center; padding: 28px 0 10px; isolation: isolate; }
@media (min-width: 900px) { .home-hero { grid-template-columns: 1.1fr 1fr; padding: 48px 0 24px; } }
.home-hero h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); line-height: 0.98; margin-bottom: 18px; }
.home-hero .lead { margin-bottom: 22px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home-hero__count { display: inline-flex; margin: 18px 0 0; padding: 6px 14px; background: var(--surface); border: var(--stroke) solid var(--border); border-radius: 999px; font-weight: 800; transform: rotate(-2deg); box-shadow: 0 3px 0 var(--shadow-color); }

/* Drifting pastel blobs (transform only). */
.blobs { position: absolute; inset: -40px -16px; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 46vmax; aspect-ratio: 1; border-radius: 50%; opacity: .75; }
/* Drift only on large screens with a mouse: phones keep still blobs (battery). */
@media (min-width: 900px) and (hover: hover) { .blob { will-change: transform; animation: drift 22s ease-in-out infinite alternate; } }
.blob--1 { background: radial-gradient(circle, var(--mint) 0%, transparent 65%); top: -10%; left: -18%; }
.blob--2 { background: radial-gradient(circle, var(--rose) 0%, transparent 65%); top: 5%; right: -20%; animation-delay: -7s; }
.blob--3 { background: radial-gradient(circle, var(--lavender) 0%, transparent 65%); bottom: -25%; left: 25%; animation-delay: -14s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6%, 8%, 0) scale(1.12); } }

/* Sticker pile of creatures. */
.crowd { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 460px; margin: 0 auto; width: 100%; }
.crowd__item { position: relative; padding: 6px; background: var(--card); border: var(--stroke) solid var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.crowd__item:nth-child(1) { --card: var(--mint); transform: rotate(-4deg); }
.crowd__item:nth-child(2) { --card: var(--peach); transform: rotate(3deg) translateY(16px); }
.crowd__item:nth-child(3) { --card: var(--lavender); transform: rotate(2deg); }
.crowd__item:nth-child(4) { --card: var(--sky); transform: rotate(-3deg) translateY(16px); }
.crowd__item img { width: 100%; }
.float { animation: bob 4.5s ease-in-out infinite; }
.crowd__item:nth-child(2) .float { animation-delay: -1.1s; } .crowd__item:nth-child(3) .float { animation-delay: -2.2s; } .crowd__item:nth-child(4) .float { animation-delay: -3.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
.sticker-label { position: absolute; z-index: 2; padding: 4px 12px; font-family: var(--font-title); font-weight: 700; font-size: 0.95rem; background: var(--surface); border: var(--stroke) solid var(--border); border-radius: 999px; box-shadow: 0 3px 0 var(--shadow-color); white-space: nowrap; }
.sticker-label--a { top: -12px; right: 10px; transform: rotate(6deg); background: #FFD66B; color: #23302C; }
.sticker-label--b { bottom: -14px; left: 18px; transform: rotate(-5deg); background: #DCD4FF; color: #23302C; }

/* Marquee band. */
.marquee { margin: 44px -16px 8px; padding: 12px 0; background: #23302C; color: #F5F1E8; border-block: var(--stroke) solid #23302C; transform: rotate(-1.2deg); overflow: hidden; }
@media (min-width: 1152px) { .marquee { margin-inline: calc((100vw - var(--page)) / -2 - 16px); } }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.marquee__group span { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.2rem, 4vw, 1.7rem); white-space: nowrap; }
.marquee__group img { width: 54px; height: 54px; }
.marquee__group .star { color: #FFD66B; }
@keyframes marquee { to { transform: translateX(-50%); } }

.home-section { margin-top: 56px; }
.home-section > .center > h2, .home-section h2 { font-size: clamp(1.8rem, 7vw, 3rem); margin-top: 0; }

/* Bento "how it works". */
.bento { display: grid; gap: 16px; list-style: none; padding: 0; margin: 20px 0 0; }
@media (min-width: 760px) { .bento { grid-template-columns: 1.2fr 1fr 1fr; } }
.bento li {
  position: relative; display: grid; grid-template-columns: 1fr 96px; grid-template-areas: "num img" "title img" "text img"; align-items: start; column-gap: 10px;
  padding: 18px; border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); overflow: hidden;
}
@media (min-width: 760px) { .bento li { grid-template-columns: 1fr; grid-template-areas: "num" "title" "text" "img"; row-gap: 6px; padding: 22px; } }
.bento li:nth-child(1) { --card: var(--mint); }
.bento li:nth-child(2) { --card: var(--sky); }
.bento li:nth-child(3) { --card: var(--peach); }
.bento__num { grid-area: num; font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; line-height: 1; opacity: .35; }
.bento img { grid-area: img; width: 96px; height: 96px; align-self: center; }
.bento h3 { grid-area: title; font-size: 1.35rem; margin: 2px 0 4px; }
.bento p { grid-area: text; margin: 0; color: var(--ink-soft); }
@media (min-width: 760px) { .bento img { width: 130px; height: 130px; justify-self: end; margin-top: 8px; } }

/* Rarity ladder: steps that grow. */
.ladder { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 20px; align-items: end; }
@media (min-width: 900px) { .ladder { grid-template-columns: repeat(4, 1fr); } }
.ladder__step { position: relative; padding: 12px 12px 16px; text-align: center; background: var(--card); border: var(--stroke) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.ladder__step::before { content: ""; position: absolute; inset: 8% 15% auto; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--burst) 45%, transparent), transparent 68%); }
.ladder__step img { position: relative; width: 100%; max-width: 180px; margin: 0 auto; }
.ladder__step h3 { position: relative; font-size: 1.05rem; margin: 6px 0; }
.ladder__step p { position: relative; margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .ladder__step:nth-child(2) { margin-bottom: 18px; }
  .ladder__step:nth-child(3) { margin-bottom: 36px; }
  .ladder__step:nth-child(4) { margin-bottom: 54px; }
}

/* Recent finds: horizontal snap row. */
.snap-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 6px 14px 2px; margin-top: 14px; }
@media (min-width: 760px) { .snap-row { grid-auto-columns: minmax(170px, 1fr); } }
.snap-row > * { scroll-snap-align: start; }

.promise { padding: 24px; background: var(--butter); border: var(--stroke) solid var(--border); border-radius: var(--radius-l); box-shadow: 6px 6px 0 var(--shadow-color); }
@media (min-width: 760px) { .promise { padding: 36px; } .promise .checklist { columns: 2; column-gap: 36px; } .promise .checklist li { break-inside: avoid; } }
.promise h2 { margin-top: 0; }

.faq details { margin-bottom: 10px; background: var(--surface); border: var(--stroke) solid var(--border); border-radius: 18px; box-shadow: 0 3px 0 var(--shadow-color); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-title); font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease-bounce); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); }

.final-cta { margin-top: 56px; padding: 36px 20px; text-align: center; background: var(--rose); border: var(--stroke) solid var(--border); border-radius: var(--radius-l); box-shadow: 6px 6px 0 var(--shadow-color); }
.final-cta h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 7vw, 3rem); }

/* ==========================================================================
   Animations kept from the game: wobble, hatch reveal
   ========================================================================== */
@keyframes wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
.wobble { animation: wobble 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.wobble-hover:hover, .egg-card__button:hover .egg-card__img { animation: wobble 0.9s ease-in-out; transform-origin: 50% 90%; }

@keyframes shake { 0%, 100% { transform: rotate(0) scale(1); } 15% { transform: rotate(-8deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-10deg) scale(1.03); } 60% { transform: rotate(10deg) scale(1.05); } 75% { transform: rotate(-4deg) scale(1.08); } }
@keyframes egg-out { 0% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.3); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes burst { 0% { opacity: 0; transform: scale(0.2); } 40% { opacity: 0.95; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes title-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal__egg { grid-area: 1 / 1; position: relative; width: 92%; z-index: 2; transform-origin: 50% 85%; animation: shake 2s ease-in-out both, egg-out 0.5s ease-in 2s both; }
.reveal__burst { grid-area: 1 / 1; position: relative; width: 90%; aspect-ratio: 1; border-radius: 50%; z-index: 1; background: radial-gradient(circle, #fff 0%, var(--burst, #F2B84B) 35%, transparent 70%); animation: burst 1.2s ease-out 2.1s both; }
.reveal__creature { animation: pop-in 0.7s var(--ease-bounce) 2.3s both; }
.reveal__title { display: inline-block; margin: 0 0 8px; padding: 2px 12px; font-family: var(--font-title); font-weight: 700; background: var(--butter); border: 2px solid var(--border); border-radius: 999px; transform: rotate(-2deg); animation: title-in 0.5s ease-out 2.8s both; }

/* Phones that ask for less motion, and battery savers: everything still, nothing hidden. */
@media (prefers-reduced-motion: reduce) {
  .reveal__egg, .reveal__burst { display: none; }
  .reveal__creature, .reveal__title, .float, .wobble, .blob, .marquee__track { animation: none !important; }
}
