/* Monthly Mystery Box — all classes prefixed .mb- (loaded after style.css). Mobile-first. */

/* ---------- Value math ---------- */
.mb-math { display: grid; gap: 10px; margin-top: 20px; padding: 20px; border: 1px solid rgba(var(--c-accent-rgb), .35); border-radius: var(--radius); background: linear-gradient(160deg, rgba(var(--c-accent-rgb), .08), transparent 60%), var(--c-surface-2); }
.mb-math__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mb-math__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.mb-math__num { font-family: var(--f-heading); font-weight: 700; font-size: 30px; line-height: 1; }
.mb-math__num small { font-size: 14px; color: var(--c-muted); font-weight: 600; margin-left: 2px; }
.mb-math__row--gold .mb-math__num { color: var(--c-accent); }
.mb-math__arrow { color: var(--c-accent); justify-self: center; transform: rotate(90deg); }
.mb-math__arrow .icon { width: 18px; height: 18px; }
.mb-math__note { font-size: 14px; line-height: 1.55; color: #d4d4d4; border-top: 1px solid var(--c-border); padding-top: 12px; margin-top: 4px; }
.mb-math__note .muted { display: block; margin-top: 6px; font-size: 12.5px; }
.mb-math--compact { padding: 16px; }
.mb-math--compact .mb-math__num { font-size: 24px; }

.mb-founder { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed rgba(var(--c-accent-rgb), .6); background: rgba(var(--c-accent-rgb), .06); font-size: 14px; line-height: 1.5; }
.mb-founder .icon { width: 20px; height: 20px; color: var(--c-accent); flex-shrink: 0; margin-top: 1px; }
.mb-founder--sm { font-size: 13px; }
.mb-small { font-size: 13px; line-height: 1.55; margin-top: 10px; }
.mb-warn { color: #fca5a5; }

/* ---------- Home promo ---------- */
.mb-promo__card { display: grid; gap: 24px; padding: 20px; border: 1px solid var(--c-border); border-radius: calc(var(--radius) * 1.6); background: radial-gradient(120% 90% at 20% 0%, rgba(var(--c-accent-rgb), .12), transparent 55%), var(--c-surface); box-shadow: var(--shadow); }
.mb-promo__media { position: relative; display: grid; place-items: center; }
.mb-promo__media img { position: relative; width: min(320px, 80%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.mb-promo__glow, .mb-hero__glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-accent-rgb), .28), transparent 65%); filter: blur(20px); }
.mb-promo__lede { margin-top: 12px; color: #d4d4d4; max-width: 52ch; }
@media (min-width: 900px) {
  .mb-promo__card { grid-template-columns: 1fr 1.15fr; align-items: center; padding: 40px 48px; gap: 48px; }
  .mb-promo__media img { width: min(420px, 100%); }
}

/* ---------- Cart + thanks ---------- */
.mb-cartnote { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.45; color: var(--c-muted); transition: border-color var(--dur); }
.mb-cartnote:hover { border-color: rgba(var(--c-accent-rgb), .6); }
.mb-cartnote img { width: 40px; height: 40px; flex-shrink: 0; }
.mb-cartnote strong { color: var(--c-accent); }
.mb-thanks { display: flex; gap: 16px; align-items: center; text-align: left; margin-top: 36px; padding: 18px; border: 1px solid rgba(var(--c-accent-rgb), .35); border-radius: var(--radius); background: var(--c-surface); max-width: 560px; }
.mb-thanks img { width: 96px; height: 96px; flex-shrink: 0; }
.mb-thanks__text { font-size: 14px; color: #d4d4d4; margin: 4px 0 12px; }
.mb-badge { margin-left: 6px; }

/* ---------- Product page ---------- */
.mb-hero { position: relative; overflow: hidden; padding: 24px 0 var(--space-section); background: radial-gradient(90% 70% at 70% 10%, rgba(var(--c-accent-rgb), .12), transparent 60%); }
.mb-hero__inner { display: grid; gap: 20px; }
.mb-hero__media { position: relative; display: grid; place-items: center; }
.mb-hero__media img { position: relative; width: min(360px, 82%); filter: drop-shadow(0 40px 50px rgba(0,0,0,.65)); }
.mb-hero__title { font-family: var(--f-heading); font-weight: 800; font-size: clamp(32px, 7vw, 60px); line-height: 1.02; text-transform: uppercase; letter-spacing: .02em; margin-top: 8px; }
.mb-hero__title em { font-style: normal; color: var(--c-accent); }
.mb-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mb-hero__facts span { padding: 7px 12px; border: 1px solid rgba(var(--c-accent-rgb), .45); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.mb-hero__facts span:first-child { background: var(--c-accent); color: #0A0A0A; border-color: var(--c-accent); }
.mb-hero__text { margin-top: 16px; color: #d4d4d4; max-width: 58ch; }
@media (min-width: 900px) {
  .mb-hero { padding-top: 56px; }
  .mb-hero__inner { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
  .mb-hero__media img { width: min(480px, 100%); }
}

.mb-steps { display: grid; gap: 14px; }
.mb-step { position: relative; padding: 22px 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.mb-step__num { position: absolute; top: 16px; right: 18px; font-family: var(--f-heading); font-weight: 700; color: rgba(var(--c-accent-rgb), .45); letter-spacing: .1em; }
.mb-step__icon .icon { width: 26px; height: 26px; color: var(--c-accent); }
.mb-step__title { font-family: var(--f-heading); font-size: 17px; margin-top: 12px; padding-right: 24px; }
.mb-step__text { color: var(--c-muted); font-size: 14.5px; margin-top: 6px; }
@media (min-width: 900px) { .mb-steps { grid-template-columns: repeat(3, 1fr); } }

.mb-two { display: grid; gap: 40px; }
@media (min-width: 900px) { .mb-two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.mb-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.mb-list li { display: flex; gap: 10px; align-items: flex-start; color: #d4d4d4; }
.mb-list .icon { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; margin-top: 3px; }

.mb-join .section-title { margin-bottom: 20px; }
.mb-summary__head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.mb-summary__head img { width: 64px; height: 64px; }
.mb-summary__head span { display: block; font-size: 13px; }
.mb-arl { padding: 16px; border: 1px solid rgba(var(--c-accent-rgb), .45); border-radius: var(--radius-sm); background: rgba(var(--c-accent-rgb), .05); font-size: 13.5px; line-height: 1.55; }
.mb-arl__title { font-family: var(--f-heading); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 8px; }
.mb-arl ul { margin: 0 0 12px; padding-left: 1.1em; color: #d4d4d4; }
.mb-arl li + li { margin-top: 4px; }
.mb-arl a { color: var(--c-accent); text-decoration: underline; }
.mb-consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #0E0E0E; cursor: pointer; font-weight: 600; color: var(--c-text); }
.mb-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--c-accent); }
.mb-consent.is-invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.18); }

/* ---------- Manage + lookup ---------- */
.mb-lookup__form { display: grid; gap: 14px; margin-top: 24px; max-width: 460px; }
.mb-manage { display: grid; gap: 16px; }
.mb-panel { padding: 18px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.mb-panel__sum { cursor: pointer; font-weight: 600; list-style: none; }
.mb-panel__sum::-webkit-details-marker { display: none; }
.mb-panel__sum::after { content: " +"; color: var(--c-accent); }
details[open] > .mb-panel__sum::after { content: " –"; }
details.mb-panel[open] > .mb-panel__sum { margin-bottom: 16px; }
.mb-panel .co__card { margin-bottom: 12px; }
.mb-dl { display: grid; gap: 12px; margin: 0; }
.mb-dl > div { display: grid; gap: 2px; }
.mb-dl dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.mb-dl dd { margin: 0; }
.mb-dl address { font-style: normal; }
@media (min-width: 640px) { .mb-dl > div { grid-template-columns: 170px 1fr; align-items: baseline; } }
.mb-actions { display: grid; gap: 10px; }
.mb-cancel, .mb-share { display: grid; gap: 12px; }
@media (min-width: 640px) { .mb-cancel, .mb-share { grid-template-columns: 1fr auto; align-items: center; } .mb-cancel [data-mb-cancel-confirm] { grid-column: 1 / -1; } }

/* ---------- Admin ---------- */
.mb-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.mb-kpis > div { padding: 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); }
.mb-kpis span { display: block; font-size: 12px; color: var(--c-muted); }
.mb-kpis strong { font-size: 22px; font-family: var(--f-heading); }
@media (min-width: 900px) { .mb-kpis { grid-template-columns: repeat(5, 1fr); } }
.mb-admin .mb-panel { margin-bottom: 16px; }
.mb-review { border-color: rgba(248,113,113,.5); }
.mb-resolve { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.mb-packlist__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 12px; }
.mb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mb-table th, .mb-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--c-border); }
.mb-table th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.mb-admin { overflow-x: auto; }
@media print {
  .announcement, .section-header, .tstrip, .support, .footer, .chat, .mb-noprint, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .mb-table th, .mb-table td { border-color: #999; color: #000; }
  .mb-packlist__head h2 { color: #000; }
}

/* ---------- First-visit intro overlay (.mbi) — transform/opacity only ----------
   Timeline (ms): box lands 0–1000 · seal stamps 1100 · lid lifts 2200 · items rise 2600–4000 ·
   value meter 4400–5900 · end card 6200 · auto-close 8400. Without .is-playing it rests on the
   final frame (no-JS fallback); html.mb-intro is set by the head script on first visit only. */
.mbi { display: none; }
html.mb-intro, html.mb-intro body { overflow: hidden; }
html.mb-intro .announcement, html.mb-intro .section-header, html.mb-intro .tstrip, html.mb-intro .chat, html.mb-intro .skip-link, html.mb-intro main > :not(.mbi), html.mb-intro .support, html.mb-intro .footer { visibility: hidden; }
html.mb-intro .mbi { --bw: min(46vw, 200px, 24svh); position: fixed; inset: 0; z-index: 400; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom)); background: radial-gradient(80% 55% at 50% 42%, #1b160d 0%, #0A0A0A 72%); color: var(--c-text); }
html.mb-intro:has(#mbi:target), html.mb-intro:has(#mbi:target) body { overflow: auto; }
html.mb-intro:has(#mbi:target) .mbi { display: none; }
html.mb-intro:has(#mbi:target) :is(.announcement, .section-header, .tstrip, .chat, main > *, .support, .footer) { visibility: visible; }
.mbi.is-leaving { opacity: 0; transition: opacity 450ms var(--ease); }

.mbi__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #1f1f1f; }
.mbi__progress i { display: block; height: 100%; background: var(--c-accent); transform-origin: left; }
.mbi__skip { grid-row: 1; justify-self: end; position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 4px; font-size: 14px; font-weight: 600; color: #cfcfcf; text-decoration: underline; text-underline-offset: 4px; }
.mbi__skip:hover { color: var(--c-text); }

.mbi__stage { position: relative; grid-row: 2; min-height: 0; }
.mbi__box { position: absolute; left: 50%; bottom: 10%; width: var(--bw); aspect-ratio: 1.15; margin-left: calc(var(--bw) / -2); }
.mbi__body { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(180deg, #1c1c1c, #070707); box-shadow: inset 0 0 0 1.5px rgba(var(--c-accent-rgb), .75), 0 30px 40px -18px rgba(0,0,0,.9); }
.mbi__body img { position: absolute; left: 12%; top: 50%; width: 24%; height: auto; transform: translateY(-50%); mix-blend-mode: lighten; opacity: .95; }
.mbi__lid { position: absolute; left: -5%; right: -5%; top: 0; height: 30%; border-radius: 6px; background: linear-gradient(180deg, #262626, #0d0d0d); box-shadow: inset 0 0 0 1.5px var(--c-accent), 0 10px 18px -8px rgba(0,0,0,.8); transform-origin: 20% 100%; }
.mbi__band { position: absolute; top: 0; bottom: 0; left: 50%; width: 12%; margin-left: -6%; background: linear-gradient(90deg, #a9863f, #e3c47f, #a9863f); }
.mbi__seal { position: absolute; right: -10%; bottom: 6%; z-index: 2; display: grid; place-content: center; width: 50%; aspect-ratio: 1; border-radius: 50%; text-align: center; color: #0A0A0A; background: radial-gradient(circle at 35% 30%, #f0d898, #c9a45c 55%, #9c7a37); box-shadow: 0 0 0 3px #0A0A0A, 0 0 0 4.5px var(--c-accent), 0 10px 22px rgba(0,0,0,.6); transform: rotate(-10deg); text-transform: uppercase; }
.mbi__seal b { font-family: var(--f-heading); font-weight: 800; font-size: calc(var(--bw) * .085); letter-spacing: .1em; line-height: 1; }
.mbi__seal small { margin-top: 3px; font-size: calc(var(--bw) * .045); font-weight: 700; letter-spacing: .04em; line-height: 1.15; padding: 0 12%; }
.mbi__shadow { position: absolute; left: 50%; bottom: calc(10% - 14px); width: calc(var(--bw) * 1.3); height: 26px; margin-left: calc(var(--bw) * -.65); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent); }
.mbi__burst { position: absolute; left: 50%; bottom: calc(10% + var(--bw) * .55); width: calc(var(--bw) * 2.6); aspect-ratio: 1; margin: 0 0 calc(var(--bw) * -1.3) calc(var(--bw) * -1.3); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,230,160,.55), rgba(var(--c-accent-rgb), .18) 45%, transparent 70%); }
.mbi__burst i { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(var(--c-accent-rgb), .22) 0 6deg, transparent 6deg 24deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 75%); mask: radial-gradient(closest-side, #000 30%, transparent 75%); opacity: .7; }
.mbi__items { position: absolute; left: 50%; bottom: calc(10% + var(--bw) * .5); width: 0; height: 0; }
.mbi__item { --s: calc(var(--bw) * .44); position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); display: grid; place-items: center; }
.mbi__item svg { width: 100%; height: 100%; fill: rgba(var(--c-accent-rgb), .08); stroke: var(--c-accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--c-accent-rgb), .5)); }
.mbi__item--1 { transform: translate(-125%, -95%) rotate(-14deg); }
.mbi__item--2 { transform: translate(-42%, -170%) rotate(-5deg); }
.mbi__item--3 { transform: translate(48%, -160%) rotate(6deg); }
.mbi__item--4 { transform: translate(128%, -88%) rotate(15deg); --s: calc(var(--bw) * .34); }

.mbi__meter { grid-row: 3; width: min(100%, 420px); justify-self: center; margin-top: 8px; }
.mbi__bar { position: relative; height: 10px; border-radius: 999px; background: #1e1e1e; box-shadow: inset 0 0 0 1px #2c2c2c; }
.mbi__bar > i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #a9863f, var(--c-accent) 70%, #f0d898); transform-origin: left; }
.mbi__bar::after { content: ""; position: absolute; left: var(--pay); top: -4px; bottom: -4px; width: 2px; background: var(--c-text); opacity: .8; }
.mbi__pay { position: absolute; left: var(--pay); top: 16px; transform: translateX(-50%); font-size: 12px; color: var(--c-muted); white-space: nowrap; }
.mbi__value { margin-top: 30px; text-align: center; font-size: 15px; color: #d4d4d4; }
.mbi__value b { display: block; font-family: var(--f-heading); font-weight: 800; font-size: clamp(40px, 12vw, 64px); line-height: 1; color: var(--c-accent); font-variant-numeric: tabular-nums; }

.mbi__caps { grid-row: 4; position: relative; display: grid; min-height: 170px; margin-top: 14px; text-align: center; }
.mbi__cap, .mbi__end { grid-area: 1 / 1; align-self: start; opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); pointer-events: none; }
.mbi__cap { justify-self: center; max-width: 30ch; font-family: var(--f-heading); font-weight: 700; font-size: clamp(20px, 5.6vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.mbi__end { width: min(100%, 380px); justify-self: center; }
.mbi__facts { font-size: clamp(13px, 4vw, 15px); font-weight: 600; color: #e5e5e5; margin-bottom: 14px; }
.mbi__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; color: #cfcfcf; text-decoration: underline; text-underline-offset: 4px; }
/* Resting (final) frame without JS; JS sets data-stage while playing. */
.mbi:not([data-stage]) .mbi__end, .mbi[data-stage="0"] [data-cap="0"], .mbi[data-stage="1"] [data-cap="1"], .mbi[data-stage="2"] [data-cap="2"], .mbi[data-stage="3"] [data-cap="3"], .mbi[data-stage="4"] [data-cap="4"] { opacity: 1; transform: none; pointer-events: auto; }
.mbi[data-stage="0"] .mbi__meter, .mbi[data-stage="1"] .mbi__meter, .mbi[data-stage="2"] .mbi__meter { opacity: 0; }
.mbi__meter { transition: opacity 300ms var(--ease); }
@media (min-width: 750px) { html.mb-intro .mbi { --bw: min(240px, 26svh); } }
@media (max-height: 640px) { .mbi__caps { min-height: 150px; } .mbi__value b { font-size: 36px; } .mbi__value { margin-top: 24px; } }

/* Playing: every animation is delayed on one shared clock and fills backwards, so each part
   waits in its start pose until its beat. */
.mbi.is-playing .mbi__progress i { animation: mbi-progress 8400ms linear both; }
.mbi.is-playing .mbi__box { animation: mbi-arrive 1000ms cubic-bezier(.25,1.4,.5,1) both, mbi-thud 260ms ease-out 1300ms; }
.mbi.is-playing .mbi__shadow { animation: mbi-fade-in 900ms ease-out both; }
.mbi.is-playing .mbi__seal { animation: mbi-stamp 480ms cubic-bezier(.3,1.5,.6,1) 1100ms both; }
.mbi.is-playing .mbi__lid { animation: mbi-lid 750ms cubic-bezier(.5,0,.3,1) 2200ms both; }
.mbi.is-playing .mbi__burst { animation: mbi-burst 1100ms ease-out 2300ms both; }
.mbi.is-playing .mbi__burst i { animation: mbi-spin 14s linear 2300ms infinite; }
.mbi.is-playing .mbi__item { animation: mbi-rise 900ms cubic-bezier(.2,1.2,.4,1) both; }
.mbi.is-playing .mbi__item--1 { --to: translate(-125%, -95%) rotate(-14deg); animation-delay: 2600ms; }
.mbi.is-playing .mbi__item--2 { --to: translate(-42%, -170%) rotate(-5deg); animation-delay: 2780ms; }
.mbi.is-playing .mbi__item--3 { --to: translate(48%, -160%) rotate(6deg); animation-delay: 2960ms; }
.mbi.is-playing .mbi__item--4 { --to: translate(128%, -88%) rotate(15deg); animation-delay: 3140ms; }
.mbi.is-playing .mbi__bar > i { animation: mbi-fill 1500ms cubic-bezier(.3,.6,.2,1) 4400ms both; }
.mbi.is-playing .mbi__value b { animation: mbi-pop 420ms cubic-bezier(.3,1.6,.5,1) 5900ms both; }
@keyframes mbi-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mbi-arrive { from { transform: translateY(-75svh) scale(.82) rotate(-6deg); } to { transform: none; } }
@keyframes mbi-thud { 40% { transform: translateY(5px) scaleY(.97); } }
@keyframes mbi-fade-in { from { opacity: 0; transform: scale(.4); } }
@keyframes mbi-stamp { from { opacity: 0; transform: scale(2.4) rotate(-40deg); } 70% { opacity: 1; } to { opacity: 1; transform: rotate(-10deg); } }
@keyframes mbi-lid { from { transform: none; opacity: 1; } 60% { opacity: 1; } to { transform: translate(-30%, -160%) rotate(-28deg); opacity: 0; } }
.mbi:not(.is-playing) .mbi__lid { opacity: 0; }
@keyframes mbi-burst { from { opacity: 0; transform: scale(.2); } 45% { opacity: 1; } to { opacity: .75; transform: scale(1); } }
@keyframes mbi-spin { to { transform: rotate(360deg); } }
@keyframes mbi-rise { from { opacity: 0; transform: translate(-50%, 10%) scale(.3); } to { opacity: 1; transform: var(--to); } }
@keyframes mbi-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mbi-pop { from { transform: scale(1); } 50% { transform: scale(1.12); } to { transform: scale(1); } }

/* Sparkles at the one real milestone (meter reaches the guarantee). */
.mbi__value { position: relative; }
.mbi-spark { position: absolute; left: 50%; top: 18px; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #f0d898; box-shadow: 0 0 8px 2px rgba(var(--c-accent-rgb), .7); pointer-events: none; animation: mbi-spark 700ms cubic-bezier(.2,.8,.3,1) both; }
@keyframes mbi-spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }

.mb-replay { margin-top: 10px; }
html:not(.js) .mb-replay { display: none; }
@media (prefers-reduced-motion: reduce) { .mb-replay { display: none; } }

/* ---------- Home teaser (lp-mb) ---------- */
.lp-mb__card { display: grid; gap: 20px; padding: 20px; border: 1px solid rgba(var(--c-accent-rgb), .3); border-radius: calc(var(--radius) * 1.6); background: radial-gradient(110% 80% at 50% 0%, rgba(var(--c-accent-rgb), .14), transparent 60%), #0E0E0E; }
.lp-mb__media { position: relative; display: grid; place-items: center; }
.lp-mb__glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-accent-rgb), .3), transparent 65%); filter: blur(18px); }
.lp-mb__media img { position: relative; width: min(260px, 72%); height: auto; filter: drop-shadow(0 26px 34px rgba(0,0,0,.65)); }
.lp-mb__lede { margin-top: 10px; color: #d4d4d4; max-width: 54ch; }
.lp-mb ul.lp-mb__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; }
.lp-mb__facts li { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #0A0A0A; font-size: 12.5px; color: var(--c-muted); line-height: 1.3; }
.lp-mb__facts b { font-family: var(--f-heading); font-size: 18px; color: var(--c-text); }
.lp-mb__facts li:nth-child(2) b { color: var(--c-accent); }
.lp-mb__cta { margin-top: 20px; }
.lp-mb__cta .icon { width: 18px; height: 18px; }
.lp-mb__hint { margin-top: 8px; font-size: 13px; color: var(--c-muted); }
@media (min-width: 900px) { .lp-mb__card { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; padding: 40px 48px; } .lp-mb__media img { width: min(380px, 100%); } }

/* ---------- PSA 10 giveaway (.gw-) — mobile-first, no horizontal overflow at 320px ---------- */
.gw-bar { background: linear-gradient(90deg, #0d0b07, #17130b 50%, #0d0b07); border-bottom: 1px solid rgba(var(--c-accent-rgb), .35); }
.gw-bar__inner { max-width: var(--container); margin: 0 auto; padding: 7px var(--gutter); text-align: center; font-size: 12.5px; line-height: 1.45; color: #e7dcc4; overflow-wrap: anywhere; }
.gw-bar a { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.gw-bar a:hover, .gw-bar a:focus-visible { color: var(--c-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.gw-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 18px; padding: 14px; border: 1px solid rgba(var(--c-accent-rgb), .5); border-radius: var(--radius); background: radial-gradient(120% 120% at 0% 0%, rgba(var(--c-accent-rgb), .14), transparent 60%), #0E0E0E; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.gw-card__copy { min-width: 0; }
.gw-card__eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; }
.gw-card__title { margin-top: 4px; font-family: var(--f-heading); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--c-text); }
.gw-card__text { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: #d4d4d4; }
.gw-cert { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Abstract graded-slab outline (placeholder until the owner's real photo is set via PROMO_IMAGE). */
.gw-slab { display: flex; flex-direction: column; width: 100%; aspect-ratio: 3 / 5; padding: 4px; border: 1.5px solid rgba(var(--c-accent-rgb), .75); border-radius: 6px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.01) 45%, rgba(255,255,255,.05)); box-shadow: 0 10px 24px -12px rgba(0,0,0,.9); }
.gw-slab__label { display: grid; gap: 1px; padding: 3px 4px; border-radius: 3px; background: rgba(var(--c-accent-rgb), .16); border: 1px solid rgba(var(--c-accent-rgb), .45); text-align: center; }
.gw-slab__label b { font-family: var(--f-heading); font-size: 11px; line-height: 1.1; color: var(--c-accent); }
.gw-slab__label i { font-style: normal; font-size: 6.5px; line-height: 1.2; color: #cfc3a8; letter-spacing: .02em; }
.gw-slab__window { flex: 1; display: grid; place-items: center; margin-top: 4px; border-radius: 3px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.35); }
.gw-slab__card { width: 72%; aspect-ratio: 63 / 88; border-radius: 3px; border: 1px solid rgba(var(--c-accent-rgb), .55); background: linear-gradient(135deg, rgba(var(--c-accent-rgb), .22), rgba(124, 58, 237, .18) 55%, rgba(var(--c-accent-rgb), .12)); }
.gw-slab--photo { padding: 0; border: 0; background: none; aspect-ratio: auto; }
.gw-slab--photo img { width: 100%; height: auto; border-radius: 6px; }

.gw-line { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #e7dcc4; padding: 10px 12px; border-left: 2px solid var(--c-accent); background: rgba(var(--c-accent-rgb), .06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.gw-note { margin-top: 10px; font-size: 13px; line-height: 1.55; color: #e7dcc4; padding: 10px 12px; border: 1px dashed rgba(var(--c-accent-rgb), .55); border-radius: var(--radius-sm); }
.gw-home { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #e7dcc4; padding: 10px 12px; border: 1px solid rgba(var(--c-accent-rgb), .4); border-radius: var(--radius-sm); background: rgba(var(--c-accent-rgb), .06); }
.gw-home b { color: var(--c-accent); }
.gw-home a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

.gw-rules .gw-address { padding: 12px 14px; border: 1px solid rgba(var(--c-accent-rgb), .5); border-radius: var(--radius-sm); background: var(--c-surface-2); font-weight: 600; overflow-wrap: anywhere; }
.gw-rules h3 { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Owner admin */
.gw-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.gw-kpis div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); }
.gw-kpis span { font-size: 12px; color: var(--c-muted); }
.gw-kpis strong { font-family: var(--f-heading); font-size: 22px; }
.gw-panel { margin-top: 20px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.gw-panel .h3 { margin-bottom: 10px; }
.gw-small { font-size: 13px; line-height: 1.5; margin-top: 8px; }
.gw-action { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--c-accent); background: rgba(var(--c-accent-rgb), .08); }
.gw-form, .gw-alt { display: grid; gap: 10px; max-width: 560px; }
.gw-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.gw-tpl { width: 100%; font: 13px/1.5 ui-monospace, Menlo, monospace; }
.gw-scroll { overflow-x: auto; }
.gw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gw-table th, .gw-table td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--c-border); }
.gw-void td { opacity: .55; text-decoration: line-through; }
.gw-void td:last-child { text-decoration: none; }
.gw-voidform { display: flex; gap: 6px; }
.gw-voidform input { min-width: 0; width: 120px; }
.gw-admin ul.gw-list { list-style: disc; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.gw-pack { color: var(--c-accent); }

@media (min-width: 600px) {
  .gw-card { grid-template-columns: 84px minmax(0, 1fr); padding: 16px 18px; gap: 18px; }
  .gw-card__title { font-size: 19px; }
  .gw-slab__label b { font-size: 13px; }
  .gw-slab__label i { font-size: 8px; }
  .gw-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media print { .gw-bar { display: none; } }
