/* packs.css — the God packs shop (packs.html) on the v2 house style. Loads after ui-v2.css.
   Layout rules: phones swipe between the three packs (upright) or see all three (sideways);
   the buy button is on the first screen at every size; the opening fits the screen it's on. */

/* minmax(0, 1fr): the one column must never grow to a strip's full width (four sealed packs pushed a phone to 408px) */
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vh, 34px); padding: 4px var(--pad) 40px; }
.shop-head { display: grid; justify-items: center; gap: 12px; text-align: center; }
.shop-head h1 { margin: 0; font: 900 clamp(32px, 4.4vw, 60px)/1.02 var(--display); letter-spacing: .03em;
  background: linear-gradient(180deg, #fff 10%, var(--hi) 62%, color-mix(in srgb, var(--c) 80%, #000)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-head .v2-lede { max-width: 640px; }
.window { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--hair); backdrop-filter: blur(14px); }
.window i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 10px var(--c); animation: v2pulse 2.2s ease-in-out infinite; }

/* ── the burn panel: paying in $YUGIOH destroys it (packs.js renderBurn) ── */
.burn { width: 100%; max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy stats" "bar bar"; align-items: center; gap: 14px 28px;
  padding: 18px 24px; border-radius: 22px; border: 1px solid rgba(255,140,60,.38);
  background: radial-gradient(80% 140% at 0% 100%, rgba(255,110,30,.22), transparent 60%), linear-gradient(180deg, rgba(30,14,6,.82), rgba(14,8,5,.86));
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 40px rgba(255,110,30,.12); }
.burn-copy { grid-area: copy; display: flex; align-items: center; gap: 16px; min-width: 0; }
.burn-flame { flex: none; width: 46px; height: 58px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fff3b8 0%, #ffc347 26%, #ff7a1f 58%, #c8320e 82%); box-shadow: 0 0 26px rgba(255,120,30,.7);
  animation: burnFlicker 1.6s ease-in-out infinite; }
@keyframes burnFlicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.06, .96) rotate(2deg); } }
.burn h2 { margin: 0; font: 900 clamp(20px, 2.1vw, 28px)/1.05 var(--display); letter-spacing: .02em;
  background: linear-gradient(180deg, #ffe7a6, #ff9a3c 70%, #e5521d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.burn-copy p { margin: 5px 0 0; font-size: 14px; line-height: 1.4; color: #e3d4b8; }
.burn-window { grid-area: bar; display: grid; gap: 8px; min-width: 0; }
.burn-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; font-size: 13.5px; }
.burn-row b { white-space: nowrap; }
.burn-row b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.burn-row span { color: var(--muted); white-space: nowrap; }
.burn .v2-bar { display: block; height: 8px; }
.burn .v2-bar i { background: linear-gradient(90deg, #e5521d, #ffb45a); box-shadow: 0 0 12px rgba(255,120,30,.6); }
.burn-stats { grid-area: stats; display: flex; gap: 10px; }
.burn-stat { display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,160,80,.22);
  text-decoration: none; color: inherit; white-space: nowrap; }
.burn-stat b { font: 800 24px/1 var(--ui, inherit); color: #ffb35a; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(255,120,30,.45); }
.burn-stat span { font-size: 12px; color: #cbb999; }
a.burn-stat:hover { border-color: rgba(255,170,90,.6); }
@media (prefers-reduced-motion: reduce) { .burn-flame { animation: none; } }
@media (max-width: 900px) {
  .burn { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "bar" "stats"; padding: 16px; gap: 14px; }
  .burn-stats > * { flex: 1 1 0; min-width: 0; white-space: normal; }
  .burn-stat b { font-size: 21px; }
  .burn-flame { width: 36px; height: 46px; }
}

/* ── the three packs ── */
.altars { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 56px); align-items: end; }
.altar { display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; transition: opacity .45s var(--ease), filter .45s var(--ease); }
@media (hover: hover) { .altars:has(.altar:hover) .altar:not(:hover) { opacity: .55; filter: saturate(.7); } }
/* width is capped by the screen's height too, so the Open button is on the first screen of a short desktop window */
.pack-host { position: relative; display: block; width: min(100%, clamp(140px, 18vw, 262px), max(140px, calc((100dvh - 490px) * .5457))); perspective: 1300px; }
.pack-host .float { animation: v2float 7s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.pack.v2-tilt { aspect-ratio: 400 / 733; }
.pack.v2-tilt > img, .pack .gloss, .pack .holo { border-radius: 4px; }
.altar:hover .pack { --s: 1.04; }
.altar .name { margin: 30px 0 0; font: 900 clamp(18px, 2vw, 28px)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--hi);
  text-shadow: 0 0 26px color-mix(in srgb, var(--c) 55%, transparent); }
.altar .status { margin: 0; font-size: 13px; color: var(--muted); }
.altar .status b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.altar .v2-bar { display: block; width: min(220px, 90%); height: 4px; }
.altar .v2-btn { margin-top: 6px; }
.altar .v2-btn s { font-size: 12px; font-weight: 500; opacity: .55; }
.closed { max-width: 560px; margin: 0 auto; padding: 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }

.dots { display: none; }

/* ── launch-week starter bundle (only while the server says it's on) ── */
.starter { width: 100%; max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px;
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(240,180,58,.16), rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--ra) 40%, var(--hair)); }
.starter img { width: 90px; aspect-ratio: 400 / 733; object-fit: cover; border-radius: 4px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.starter h2 { margin: 0; font: 900 20px/1.15 var(--display); letter-spacing: .05em; color: var(--ra-hi); }
.starter p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.starter .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }

/* ── your sealed packs ── */
.mine { width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 20px; }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mine-head h2 { display: flex; align-items: baseline; gap: 10px; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sp { position: relative; flex: none; display: grid; justify-items: center; gap: 6px; width: 80px; scroll-snap-align: start; font-size: 12px; color: var(--ink-2); text-align: center; }
.sp img { width: 80px; aspect-ratio: 400 / 733; object-fit: cover; border-radius: 4px; transition: transform .3s var(--ease);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)) drop-shadow(0 0 14px color-mix(in srgb, var(--c) 40%, transparent)); }
.sp:hover img { transform: translateY(-4px); }
.sp.listed img { filter: grayscale(.7) brightness(.65); }
.sp em { position: absolute; top: 6px; left: 50%; translate: -50% 0; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 700; color: #160f03; background: var(--hi); }
.mine .v2-meta a { color: var(--hi); text-decoration: underline; text-underline-offset: 3px; }

/* ── the facts ── */
/* THE GOD HUNT — three lit tiles, each in its God's own colour; a found God keeps its light, a hidden one breathes */
.hunt { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
.hunt-head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.hunt-head .v2-meta { max-width: 560px; }
.hunt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hunt-god { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  border-radius: 20px; text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, rgba(14,12,10,.9)), rgba(10,9,8,.92));
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); box-shadow: 0 14px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .25s var(--ease), box-shadow .3s; }
.hunt-god:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 28px color-mix(in srgb, var(--c) 30%, transparent); }
.hunt-art { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: #0c0a07;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hi) 40%, transparent), 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
.hunt-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hunt-god:not(.found) .hunt-art { animation: huntBreathe 3.6s ease-in-out infinite; }
.hunt-god:not(.found) .hunt-art img { filter: saturate(.85) brightness(.9); }
@keyframes huntBreathe { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hi) 60%, transparent), 0 0 34px color-mix(in srgb, var(--c) 70%, transparent); } }
.hunt-txt { display: grid; gap: 3px; min-width: 0; }
.hunt-txt b { font: 700 16px/1.15 var(--display); color: var(--hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt-txt small { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.hunt-god.found .hunt-txt small { color: #7ee2a8; }
.hunt-txt em { font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .hunt-god:not(.found) .hunt-art { animation: none; } }
.facts { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--hair); }
.fact b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ── buy sheet ── */
.bs-head img { width: 38px; aspect-ratio: 400 / 733; object-fit: cover; border-radius: 3px; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--c) 55%, transparent)); }
.bs-head .t { flex: 1; display: grid; min-width: 0; }
.bs-head b { font: 900 21px/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--hi); }
#bsSeg { margin-bottom: 14px; }
.rail { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 20px; border-radius: 16px; font-size: 16px; font-weight: 650;
  text-align: left; background: var(--glass); border: 1px solid var(--hair) !important; }
.rail + .rail { margin-top: 10px; }
.rail.primary { color: #160f03; border-color: transparent !important; background: linear-gradient(180deg, #fffaf0, var(--hi) 42%, color-mix(in srgb, var(--c) 78%, #fff));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--c) 34%, transparent), inset 0 1px 0 rgba(255,255,255,.9); }
.rail em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.12); }
.rail:not(.primary) em { background: var(--glass-2); }
.rail small { display: block; font-size: 12px; font-weight: 500; opacity: .62; }
.rail b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rail s { font-size: 12px; font-weight: 500; opacity: .5; margin-right: 6px; }
.fine { margin: 14px 2px 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.fine p { margin: 0 0 6px; }
#bsOdds { display: block; margin: 0 auto; }

/* ── what's inside ── */
.odds-sheet { width: min(600px, calc(100vw - 20px)); }
.odds-top { display: grid; gap: 9px; margin-bottom: 8px; }
.odds-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.odds-row b { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.odds-top .v2-bar { display: block; height: 4px; }
.grp { margin-top: 16px; }
.grp h3 { margin: 0 0 8px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rc); }
.grp h3 span { color: var(--faint); letter-spacing: 0; }
.pull { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.pull li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 12.5px; }
.pull img, .pull .noart { width: 30px; aspect-ratio: 813 / 1185; object-fit: cover; border-radius: 3px; background: rgba(255,255,255,.06); }
.pull span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pull small { display: block; font-size: 11px; color: var(--faint); }
.r-common { --rc: var(--r-common); } .r-rare { --rc: var(--r-rare); } .r-super { --rc: var(--r-super); } .r-ultra { --rc: var(--r-ultra); } .r-god { --rc: var(--r-god); }

/* ── checkout ── */
.co-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.62); backdrop-filter: blur(10px); }
.checkout { z-index: 71; }
.co-hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 60%); }
.co-hero img { width: 50px; aspect-ratio: 400 / 733; object-fit: cover; border-radius: 4px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) drop-shadow(0 0 18px color-mix(in srgb, var(--c) 50%, transparent)); }
.co-hero div { display: grid; min-width: 0; }
.co-hero b { font: 900 22px/1.15 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--hi); }
.co-hero span { font-size: 13px; color: var(--muted); }
.co-body { padding: 18px 24px 22px; }
.co-lines { display: grid; gap: 9px; margin: 0 0 14px; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.co-lines b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-lines .save b { color: var(--ok); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.co-total span { font-size: 14px; color: var(--ink-2); }
.co-total b { font-size: 32px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.co-token { text-align: right; font-size: 13px; color: var(--muted); margin-top: 2px; }
.co-info { display: grid; gap: 6px; margin: 16px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); font-size: 13px; color: var(--ink-2); }
.co-info b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.co-info .warn { color: var(--warn); }
.co-note { margin: 0 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.co-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.co-actions > * { min-height: 50px; }
.checkout .co-actions { position: sticky; bottom: 0; padding-top: 10px; background: linear-gradient(180deg, transparent, rgba(16,14,12,.97) 34%); }
.co-err { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  background: color-mix(in srgb, var(--bad) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 32%, transparent); }
.co-err a, .v2-step small a { color: var(--hi); font-family: var(--mono); }
.co-wait { display: grid; justify-items: center; gap: 12px; padding: 22px 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--hi); animation: v2spin 1s linear infinite; }
.co-done { display: grid; gap: 4px; text-align: center; padding: 12px 0 2px; }
.co-done h3 { margin: 0; font: 900 24px/1.15 var(--display); color: var(--hi); }
.co-done p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.co-body .v2-steps { margin: 4px 0 16px; }

/* ── the opening ── */
.open { position: fixed; inset: 0; z-index: 80; overflow: hidden; opacity: 0;
  background: radial-gradient(64% 58% at 50% 46%, color-mix(in srgb, var(--c) 22%, transparent), transparent 72%), #030303; }
.open-head { position: absolute; top: max(22px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; font: 700 12px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.open-pack { position: absolute; left: 50%; top: 50%; translate: -50% -53%; width: min(clamp(190px, 23vw, 320px), calc(46dvh * .5457)); aspect-ratio: 400 / 733; cursor: pointer;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)) drop-shadow(0 0 60px color-mix(in srgb, var(--c) 48%, transparent)); }
.open-pack .part { position: absolute; inset: 0; }
.open-pack .part img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.op-top { clip-path: polygon(0 0, 100% 0, 100% 9%, 92% 10.4%, 84% 9%, 76% 10.4%, 68% 9%, 60% 10.4%, 52% 9%, 44% 10.4%, 36% 9%, 28% 10.4%, 20% 9%, 12% 10.4%, 4% 9%, 0 10%); }
.op-body { clip-path: polygon(0 10%, 4% 9%, 12% 10.4%, 20% 9%, 28% 10.4%, 36% 9%, 44% 10.4%, 52% 9%, 60% 10.4%, 68% 9%, 76% 10.4%, 84% 9%, 92% 10.4%, 100% 9%, 100% 100%, 0 100%); }
.open-pack.charging { animation: pkCharge 1.3s ease-in-out infinite; }
.open-pack.charging::after { content: ""; position: absolute; left: -8%; right: -8%; top: 7.5%; height: 4.5%; filter: blur(7px);
  background: radial-gradient(closest-side, #fff, color-mix(in srgb, var(--c) 80%, transparent) 55%, transparent); animation: pkLeak 1.3s ease-in-out infinite; }
@keyframes pkCharge { 50% { transform: scale(1.025) rotate(-.6deg); } }
@keyframes pkLeak { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.flash { position: absolute; left: 50%; top: 47%; width: 130vmax; height: 130vmax; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  mix-blend-mode: screen; background: radial-gradient(closest-side, #fff, color-mix(in srgb, var(--c) 75%, transparent) 22%, transparent 58%); }
.hint { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); animation: v2pulse 2.4s ease-in-out infinite; }

.spread { --cw: clamp(96px, 9.4vw, 158px); position: absolute; inset: 0; display: grid; place-content: center; align-items: start;
  grid-template-columns: repeat(8, var(--cw)); gap: clamp(10px, 1.3vw, 22px); padding: 44px 3vw 130px; }
.oc { position: relative; width: var(--cw); text-align: center; perspective: 1000px; }
.oc .inner { position: relative; width: 100%; aspect-ratio: 813 / 1185; transform-style: preserve-3d; transform: rotateY(180deg); transition: transform .8s var(--ease), box-shadow .6s; border-radius: 7px; }
.oc.up .inner { transform: rotateY(0deg); }
@media (hover: hover) { .oc.up:not(.star):hover .inner { transform: translateY(-8px) scale(1.05); } }
.oc .face { position: absolute; inset: 0; border-radius: 7px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.oc .face.front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc .face.back { transform: rotateY(180deg); border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), 0 0 26px color-mix(in srgb, var(--c) 22%, transparent); }
.oc:not(.up) .v2-foil { display: none; }
.oc.up.r-rare .inner { box-shadow: 0 0 0 1px var(--r-rare), 0 0 26px color-mix(in srgb, var(--r-rare) 55%, transparent); }
.oc.up.r-super .inner { box-shadow: 0 0 0 1px var(--r-super), 0 0 32px color-mix(in srgb, var(--r-super) 60%, transparent); }
.oc.up.r-ultra .inner { box-shadow: 0 0 0 1px var(--r-ultra), 0 0 42px color-mix(in srgb, var(--r-ultra) 66%, transparent); }
.oc.up.r-god .inner { box-shadow: 0 0 0 1px var(--r-god), 0 0 64px color-mix(in srgb, var(--r-god) 80%, transparent); }
.oc .label { display: grid; align-content: start; gap: 3px; height: 3.9em; margin-top: 12px; opacity: 0; transform: translateY(6px); transition: opacity .45s .35s, transform .45s .35s; }
.oc.up .label { opacity: 1; transform: none; }
.oc.zoom .label { opacity: 0; transition: none; }
.oc .label b { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rc); }
.oc .label span { font-size: 12.5px; line-height: 1.25; color: #ebe6dc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spread .oc { transition: opacity .5s, filter .5s; }
.spread.focus .oc:not(.star) { opacity: .14; filter: blur(1.5px); }
.oc.star { z-index: 5; }
.spot { position: absolute; left: 50%; top: 46%; width: 110vmin; height: 110vmin; translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity .7s; z-index: 4; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: v2spin 18s linear infinite;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc, #fff) 50%, transparent) 0deg 5deg, transparent 5deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 64%); mask: radial-gradient(circle, #000 12%, transparent 64%); }
.spot::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; filter: blur(30px); background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, #fff) 55%, transparent), transparent); }
.spot.on { opacity: 1; }
.tier-call { position: absolute; left: 0; right: 0; top: 11vh; z-index: 6; text-align: center; font: 900 clamp(22px, 3vw, 40px)/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--rc); text-shadow: 0 0 30px color-mix(in srgb, var(--rc) 70%, transparent); opacity: 0; pointer-events: none; }
.summary { position: absolute; left: 50%; bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px)); translate: -50% 0; z-index: 6; display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 22px; border-radius: 999px; white-space: nowrap; background: rgba(22,20,18,.72); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--hair); }
.summary .best { display: grid; gap: 1px; }
.summary .best small { font-size: 12px; color: var(--muted); }
.summary .best b { font-size: 15px; font-weight: 650; }
.summary .best em { font-style: normal; color: var(--rc); }
.summary .again { padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 650; color: #160f03; background: linear-gradient(180deg, #fffaf0, var(--hi) 42%, color-mix(in srgb, var(--c) 78%, #fff)); }
.summary .done { padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--glass-2); }

/* open all: the whole haul, best first */
.spill { position: absolute; inset: 0; overflow: auto; padding: max(56px, calc(env(safe-area-inset-top) + 44px)) var(--pad) 120px; }
.spill-head { display: grid; justify-items: center; gap: 8px; margin-bottom: 20px; text-align: center; }
.spill-head h2 { margin: 0; font: 900 clamp(22px, 3vw, 36px)/1.1 var(--display); color: var(--hi); }
.tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tally span { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--rc); background: var(--glass); border: 1px solid var(--hair); }
.spill-grid { --cw: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; }
.spill-grid .oc { width: auto; content-visibility: auto; contain-intrinsic-size: 104px 210px; }
.spill-grid .oc .label { opacity: 1; transform: none; }
.spill-done { position: fixed; left: 50%; bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); translate: -50% 0; z-index: 7; }

/* ── sealed packs from collectors (resale) ── */
/* min-width: 0 — a grid item of .shop would otherwise grow to the sold tape's full width on a phone */
.resale { width: 100%; min-width: 0; max-width: 1180px; margin: 0 auto; padding: 18px 20px; scroll-margin-top: 80px; }
.resale .mine-head p { margin: 2px 0 0; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rs { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 8px; align-items: center; min-width: 0;
  padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--hair); transition: box-shadow .4s var(--ease); }
.rs.mine { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hi) 70%, transparent); }
.rs.flash { box-shadow: inset 0 0 0 2px var(--hi), 0 0 24px color-mix(in srgb, var(--hi) 40%, transparent); }
.rs img { grid-row: 1 / span 2; width: 44px; aspect-ratio: 400 / 733; object-fit: cover; border-radius: 3px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)) drop-shadow(0 0 10px color-mix(in srgb, var(--c) 40%, transparent)); }
.rs .who { display: grid; gap: 2px; min-width: 0; }
.rs .who b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs .who small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs .px { display: grid; justify-items: end; gap: 2px; }
.rs .px b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs .px small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rs > button { grid-column: 2 / -1; min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.rs-empty { margin: 0; }
.rs-sold { margin-top: 14px; }
.rs-sold h3 { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.rs-tape { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rs-tape span { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--hair); white-space: nowrap; }
.rs-tape img { width: 16px; aspect-ratio: 400 / 733; object-fit: cover; border-radius: 2px; }
.rs-tape b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* selling: pick a pack, price it */
.sell-sheet { width: min(520px, calc(100vw - 20px)); }
.sell-pick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.sell-pick .sp { width: 64px; }
.sell-pick .sp img { width: 64px; }
.sell-pick .sp.on img { transform: translateY(-4px); outline: 2px solid var(--hi); outline-offset: 3px; }
.sell-form { display: grid; gap: 8px; margin: 6px 0 12px; }
.sell-form label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sell-form .in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: rgba(0,0,0,.32); border: 1px solid var(--hair); }
.sell-form input { flex: 1 1 0; width: 0; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 650 20px/1 var(--ui); font-variant-numeric: tabular-nums; }
.sell-form .in span { font-size: 13px; font-weight: 700; color: var(--muted); }
.sell-form .in:focus-within { border-color: color-mix(in srgb, var(--hi) 60%, transparent); }
.sell-split { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.sell-split div { display: flex; justify-content: space-between; gap: 12px; }
.sell-split b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sell-sheet .co-actions { margin-top: 6px; }
.co-pick { display: grid; gap: 10px; margin-bottom: 14px; }
.co-pick button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 18px; border-radius: 16px; text-align: left; font-size: 16px; font-weight: 650;
  background: var(--glass); border: 1px solid var(--hair) !important; }
.co-pick button.primary { color: #160f03; border-color: transparent !important; background: linear-gradient(180deg, #fffaf0, var(--hi) 42%, color-mix(in srgb, var(--c) 78%, #fff)); }
.co-pick small { display: block; font-size: 12px; font-weight: 500; opacity: .66; }
.co-pick em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--glass-2); }
@media (orientation: landscape) and (max-height: 500px) {
  /* sideways the sell sheet goes two columns so List it stays on the short screen */
  .sell-sheet { width: min(760px, calc(100vw - 20px)); max-height: calc(100dvh - 16px); bottom: 8px; padding: 14px 18px; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .sell-sheet .v2-sheet-head { grid-column: 1 / -1; margin-bottom: 8px; }
  #sellBody { display: contents; }
  #sellBody > .sell-pick, #sellBody > p.v2-meta { grid-column: 1; grid-row: 2; margin: 0; }
  #sellBody > .sell-form { grid-column: 1; grid-row: 3; margin: 0; }
  #sellBody > .sell-split { grid-column: 2; grid-row: 2; margin: 0; }
  #sellBody > .co-note { grid-column: 2; grid-row: 3; margin: 0 0 8px; }
  #sellBody > .co-actions { grid-column: 2; grid-row: 4; margin: 0; }
  .sell-pick .sp, .sell-pick .sp img { width: 48px; }
}

/* ── tablet ── */
@media (min-width: 761px) and (max-width: 1100px) {
  .pack-host { width: min(100%, 27vw); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* eight cards don't fit one row on a tablet: two rows of four */
  .spread { --cw: clamp(96px, 17vw, 150px); grid-template-columns: repeat(4, var(--cw)); row-gap: 20px; }
}

/* ── phone upright: swipe between the three packs ── */
@media (max-width: 760px) {
  .altars { display: flex; gap: 0; width: auto; max-width: none; margin: 0 calc(-1 * var(--pad)); padding: 8px 0 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .altars::-webkit-scrollbar { display: none; }
  .altar { flex: 0 0 100%; scroll-snap-align: center; padding: 0 var(--pad); }
  .pack-host { width: min(40vw, calc((100dvh - 470px) * .5457), 200px); min-width: 110px; }
  .shop-head { gap: 8px; }
  .shop-head h1 { font-size: 30px; }
  .shop-head .v2-lede { font-size: 14px; }
  .altar .name { margin-top: 22px; font-size: 20px; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: -8px; }
  .dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.22); transition: width .3s var(--ease), background .3s; }
  .dots button.on { width: 22px; background: var(--hi); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 14px; } .fact b { font-size: 20px; }
  .hunt-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hunt-god { grid-template-columns: 56px minmax(0, 1fr); padding: 10px 14px 10px 10px; }
  .hunt-art { width: 56px; height: 56px; border-radius: 13px; }
  .starter { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; } .starter img { width: 64px; }
  .spread { --cw: clamp(66px, 20vw, 122px); grid-template-columns: repeat(4, var(--cw)); row-gap: 16px; padding: 56px 3vw 150px; }
  .summary { flex-wrap: wrap; justify-content: center; width: calc(100vw - 24px); border-radius: 24px; padding: 14px; white-space: normal; gap: 10px 14px; }
  .summary .best { width: 100%; text-align: center; }
  .co-actions { grid-template-columns: 1fr 1.6fr; }
  .spill-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
}

/* ── phone sideways: all three at once, sized by height ── */
@media (orientation: landscape) and (max-height: 500px) {
  .shop { gap: 8px; padding-top: 0; }
  .shop-head { gap: 6px; }
  .shop-head h1 { font-size: 24px; }
  .shop-head .v2-lede { display: none; }
  .window { padding: 5px 12px; font-size: 12.5px; }
  .altars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0 auto; padding: 0; overflow: visible; }
  .altar { flex: none; padding: 0; gap: 4px; }
  .pack-host { width: max(64px, calc((100dvh - 236px) * .5457)); }
  .pack-host .float { animation: none; }
  .altar .name { margin-top: 12px; font-size: 15px; }
  .altar .status { font-size: 11.5px; }
  .altar .v2-bar, .altar .inside { display: none; }
  .altar .v2-btn { min-height: 38px; padding: 0 16px; font-size: 14px; margin-top: 2px; }
  .dots { display: none; }
  .spread { --cw: min(calc((100vw - 16vw) / 8), calc((100dvh - 150px) / 1.46)); grid-template-columns: repeat(8, var(--cw)); gap: 1.4vw; padding: 34px 3vw 64px; }
  .oc .label { height: 2.5em; margin-top: 5px; }
  .oc .label b { display: none; }
  .oc .label span { font-size: 10.5px; }
  .open-pack { width: calc(60dvh * .5457); }
  .summary { bottom: 8px; padding: 6px 6px 6px 16px; gap: 12px; }
  .summary .again, .summary .done { padding: 8px 16px; }
  .tier-call { top: 5vh; }
  .hint { bottom: 4vh; }
  /* the buy sheet goes two columns so every rail fits the short screen */
  #buySheet { width: min(760px, calc(100vw - 20px)); max-height: calc(100dvh - 16px); bottom: 8px; padding: 14px 18px; display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  #buySheet .bs-head { grid-column: 1 / -1; margin-bottom: 10px; }
  #bsSeg { grid-column: 1; grid-row: 2; margin-bottom: 10px; }
  #bsRails { grid-column: 1; grid-row: 3; }
  #bsFine { grid-column: 2; grid-row: 2 / 4; margin: 0; }
  #bsOdds { grid-column: 2; grid-row: 4; justify-self: start; }
  .rail { min-height: 46px; padding: 4px 16px; font-size: 15px; }
  .rail + .rail { margin-top: 8px; }
  .odds-sheet { max-height: calc(100dvh - 16px); bottom: 8px; }
  .v2-modal.checkout { max-height: calc(100dvh - 16px); }
  .co-hero { padding: 12px 18px; } .co-hero img { width: 30px; }
  .co-body { padding: 12px 18px 14px; }
  .co-total b { font-size: 24px; }
  .co-info { margin: 10px 0; }
}

/* ── the shrine: the same key art as Home and the front door — one slow shaft of light, motes in it,
      and a pool of each God's own colour under its pack ── */
.altar-stage { position: relative; isolation: isolate; display: grid; }
.altar-stage .v2-keylight { --kl: #ffdc93; --kl-size: min(1080px, 96vw); top: 46%; opacity: .5; }
.altar-stage .v2-dust { inset: -8% 0 -4%; }
.altars { position: relative; z-index: 1; }
.altar { position: relative; }
.altar::before { content: ""; position: absolute; left: 50%; top: 44%; width: 132%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 8%, transparent) 46%, transparent 72%);
  opacity: .7; transition: opacity .45s var(--ease); }
.altar:hover::before { opacity: 1; }

/* after the reveal: where the cards went and what to do with them — quiet links beside the loud "Open another" */
.summary .next { padding: 11px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--glass); border: 1px solid rgba(231,198,107,.3); white-space: nowrap; }
.summary .next:hover { border-color: rgba(255,230,163,.7); color: #fff3cf; }
@media (orientation: landscape) and (max-height: 520px) { .summary .next { padding: 8px 12px; font-size: 13px; } }
