/* PULLED: the card shop at night. Page #17130f, cream #ede6d6, gold #e8b43a, red #d6402b.
   The only gradients on the site are the foils. */
@font-face { font-family: 'Luckiest Guy'; src: url(/assets/fonts/luckiest-guy.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-400i.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #17130f; --panel: #221c16; --line: #3a3027; --cream: #ede6d6; --gold: #e8b43a; --red: #d6402b; --ink: #2a2119;
  --dim: #b3a78f; --soft: #8e826d;
  --display: 'Luckiest Guy', 'Arial Black', Impact, sans-serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; border: 2px solid var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, filter .12s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-big { height: 78px; padding: 0 40px; border-radius: 999px; border-width: 3px; font: 400 30px/1 var(--display); letter-spacing: .02em; padding-top: 6px; box-shadow: 0 6px 0 var(--ink); }
.btn-big:active { box-shadow: 0 2px 0 var(--ink); transform: translateY(4px); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand b { font: 400 40px/1 var(--display); letter-spacing: .02em; padding-top: 6px; }
.nav { display: flex; gap: 22px; }
.nav a { font: 600 18px/1 var(--sans); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.nav a:hover { color: var(--gold); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca { font: 500 13px/1 var(--mono); background: transparent; border: 2px solid var(--line); color: var(--cream); border-radius: 8px; height: 44px; padding: 0 14px; cursor: pointer; }
.ca.unset { cursor: default; color: var(--dim); }
.icon-l { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--line); }
.icon-l svg, .icon-l img { width: 20px; height: 20px; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--ink); background: #1d1712; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: rgba(23, 19, 15, .42); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 560px; gap: 20px; padding-block: 40px; }
.hero h1 { margin: 0; font: 400 clamp(52px, 7.2vw, 100px)/.92 var(--display); letter-spacing: .01em; transform: rotate(-2.5deg); transform-origin: left; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.hero h1 span { display: block; }
.hero h1 .gold { color: var(--gold); }
.hero p.sub { max-width: 560px; margin: 26px 0 30px; font-size: 21px; line-height: 1.45; color: var(--cream); text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.hero .note { margin: 14px 0 0; font-size: 14px; color: var(--dim); text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.counters { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.counter { background: rgba(23, 19, 15, .82); border: 2px solid var(--line); border-radius: 10px; padding: 10px 16px; min-width: 150px; }
.counter b { display: block; font: 400 34px/1 var(--display); color: var(--gold); padding-top: 4px; }
.counter span { font-size: 13px; color: var(--dim); }
.pack-stage { position: relative; height: 500px; perspective: 900px; display: grid; place-items: center; }
.pack { width: min(330px, 80%); aspect-ratio: 330 / 470; transform-style: preserve-3d; transform: rotateZ(8deg) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .65)); cursor: pointer; border: 0; padding: 0; background: none; }
.pack img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- sections ---------- */
main section.blk { padding: 54px 0 0; }
.blk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.blk-h h2 { margin: 0; font: 400 38px/1 var(--display); letter-spacing: .02em; padding-top: 6px; }
.blk-h a, .blk-h .meta { color: var(--gold); font-weight: 600; text-decoration: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.empty { color: var(--dim); font-size: 17px; padding: 26px 8px; text-align: center; }
.empty b { color: var(--cream); }

.strip-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.pull { text-decoration: none; display: grid; gap: 6px; font-size: 13px; }
.pull .who { font: 500 12px/1.2 var(--mono); color: var(--dim); }
.pull .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pull .tx { font: 500 12px/1 var(--mono); color: var(--gold); }
.mini { position: relative; display: block; aspect-ratio: 4 / 3; border: 3px solid var(--gold); border-radius: 6px; overflow: hidden; background: var(--ink); }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-sym { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ink); }
.th-sym .ti { width: 46%; height: auto; }
.mini.r-secret { border-color: var(--cream); }
.mini .foil { display: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--cream); color: var(--ink); border-radius: 12px; padding: 22px 22px 20px; border: 3px solid var(--ink); box-shadow: 0 5px 0 #0c0a08; }
.step h3 { margin: 0 0 8px; font: 400 30px/1 var(--display); padding-top: 4px; display: flex; align-items: center; gap: 12px; }
.step h3 svg { width: 36px; height: 36px; flex: none; }
.step p { margin: 0; font-size: 15px; line-height: 1.45; }
.step code { font: 500 13px var(--mono); background: #ddd3bd; padding: 1px 4px; border-radius: 3px; }

.wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.wall-item { display: grid; gap: 8px; text-decoration: none; }
.wall-item .who { font: 500 12px/1.2 var(--mono); color: var(--dim); display: flex; justify-content: space-between; }
.wall-item .who b { color: var(--gold); font-weight: 500; }

.set-head { display: flex; align-items: center; gap: 16px; }
.bar { width: 220px; height: 12px; border-radius: 99px; background: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); width: 0; }
.set-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.set-cell { text-decoration: none; display: grid; gap: 5px; font-size: 12px; }
.set-cell .n { font: 500 11px var(--mono); color: var(--dim); }
.set-cell b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.odds { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--cream); color: var(--ink); border-radius: 12px; overflow: hidden; border: 3px solid var(--ink); }
.odds th, .odds td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #cfc4ad; }
.odds th { font: 400 18px/1 var(--display); padding-top: 18px; background: #e2d8c3; }
.odds td { font: 500 15px var(--mono); }
.odds tr:last-child td { border-bottom: 0; }
.odds .sym { font-size: 18px; color: var(--red); }

footer.foot { margin-top: 70px; border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .brand b { font-size: 30px; }
.foot .brand img { width: 40px; height: 40px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { text-decoration: none; color: var(--dim); }
.foot nav a:hover { color: var(--cream); }
.foot .fine { width: 100%; color: var(--soft); font-size: 13px; margin: 0; }
.foot .icons { margin-left: auto; display: flex; gap: 10px; }

/* ---------- inner pages ---------- */
.page-h { padding: 44px 0 10px; }
.page-h h1 { margin: 0; font: 400 clamp(40px, 5vw, 64px)/1 var(--display); padding-top: 8px; }
.page-h p { color: var(--dim); max-width: 760px; font-size: 17px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input { flex: 1 1 360px; height: 48px; border-radius: 8px; border: 2px solid var(--line); background: var(--panel); color: var(--cream); font: 500 14px var(--mono); padding: 0 14px; }
.field input::placeholder { color: var(--soft); }
.formula { font: 500 14px/1.7 var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-x: auto; white-space: pre; color: var(--cream); }
.verdict { border-radius: 10px; padding: 14px 18px; font-weight: 600; margin: 16px 0; border: 2px solid var(--ink); }
.verdict.ok { background: var(--gold); color: var(--ink); }
.verdict.bad { background: var(--red); color: var(--cream); }
.verdict.info { background: var(--panel); border-color: var(--line); color: var(--cream); }
.tbl-scroll { overflow-x: auto; }
.panel .mono { overflow-wrap: anywhere; }
.derive-tbl { width: 100%; border-collapse: collapse; font: 500 13px var(--mono); }
.derive-tbl td, .derive-tbl th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.derive-tbl th { color: var(--dim); font-weight: 500; }
.derive-tbl .hit { color: var(--gold); }

.full-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.set-page .full-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.set-page .full-cards > a { text-decoration: none; display: block; scroll-margin-top: 100px; }

.binder-top { display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; margin-bottom: 20px; }
.binder-top .panel { flex: 1 1 260px; }
.binder-top h3 { margin: 0 0 8px; font: 400 22px/1 var(--display); padding-top: 4px; color: var(--gold); }
.binder-top .big { font: 400 46px/1 var(--display); padding-top: 6px; }
.binder-book { background: #2b2219; border: 3px solid var(--ink); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; box-shadow: 0 8px 0 #0c0a08; }
.binder-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.slot { aspect-ratio: 5 / 7; border: 2px dashed var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--soft); font: 500 12px var(--mono); text-align: center; }
.slot.have { border: 0; display: block; position: relative; }
.slot .count { position: absolute; right: -6px; top: -6px; z-index: 3; background: var(--red); color: var(--cream); border: 2px solid var(--ink); border-radius: 99px; font: 600 12px var(--sans); padding: 2px 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }

/* ---------- rip ---------- */
.rip { position: fixed; inset: 0; z-index: 80; background: rgba(12, 10, 8, .94); display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow-y: auto; overflow-x: hidden; }
.rip-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; gap: 12px; }
.rip-top b { font: 400 26px/1 var(--display); padding-top: 4px; }
.rip-body { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 10px 20px; }
.rip-body > div { min-width: 0; max-width: 100%; }
.rip-msg { text-align: center; max-width: 520px; font-size: 18px; }
.rip-msg .err { color: #f19a8b; }
.rip-msg .small { color: var(--dim); font-size: 14px; }
.rip-pack { position: relative; width: 280px; aspect-ratio: 330 / 470; }
.rip-pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rip-pack .lid { clip-path: inset(0 0 82% 0); }
.rip-pack .body { clip-path: inset(18% 0 0 0); }
.rip-pack.shake { animation: shake .5s ease-in-out 3; }
.rip-pack.torn .lid { animation: tear .6s cubic-bezier(.3, .6, .4, 1) forwards; }
.rip-pack.gone { animation: drop .5s ease-in forwards; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg) translateX(-6px); } 40% { transform: rotate(5deg) translateX(6px); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(3deg); } }
@keyframes tear { to { transform: translate(140px, -120px) rotate(28deg); opacity: 0; } }
@keyframes drop { to { transform: translateY(120%); opacity: 0; } }
.hand { display: flex; gap: 44px 18px; padding-bottom: 34px; justify-content: center; flex-wrap: wrap; perspective: 1400px; }
.flip { width: clamp(150px, 17vw, 230px); aspect-ratio: 5 / 7; position: relative; container-type: inline-size; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1); cursor: pointer; border: 0; padding: 0; background: none; animation: slidein .55s cubic-bezier(.2, .8, .2, 1) backwards; }
.flip:nth-child(2) { animation-delay: .08s; } .flip:nth-child(3) { animation-delay: .16s; } .flip:nth-child(4) { animation-delay: .24s; } .flip:nth-child(5) { animation-delay: .32s; }
@keyframes slidein { from { transform: translateY(-220px) scale(.6); opacity: 0; } }
.flip > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip > .card { transform: rotateY(180deg); }
.flip.open { transform: rotateY(180deg); cursor: default; }
.flip .mint { position: absolute; inset: auto 0 -30px; transform: none; backface-visibility: visible; text-align: center; font: 500 12px var(--mono); color: var(--dim); opacity: 0; transition: opacity .3s .5s; }
.flip.open .mint { opacity: 1; transform: rotateY(180deg); }
.flash { position: fixed; inset: 0; background: var(--cream); pointer-events: none; z-index: 90; animation: flash .7s ease-out forwards; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.rip-foot { display: flex; justify-content: center; gap: 12px; padding: 30px 20px 26px; flex-wrap: wrap; }

.zoom { position: fixed; inset: 0; z-index: 85; background: rgba(12, 10, 8, .9); display: grid; place-items: center; padding: 20px; }
.zoom .card { width: min(420px, 88vw, calc((100vh - 80px) * 5 / 7)); }
.zoom .close { position: absolute; top: 16px; right: 18px; }

/* =====================================================================
   THE CARD  (5:7, everything sized in container units so it scales)
   ===================================================================== */
.card { --tc: #b9ad97; --tb: #e6dfcf; --tk: #2a2119; container-type: inline-size; position: relative; aspect-ratio: 5 / 7; width: 100%; border-radius: 4.5cqw; background: var(--gold); padding: 3.2cqw; color: var(--tk); box-shadow: 0 1cqw 0 #0c0a08, 0 3cqw 6cqw rgba(0, 0, 0, .45); user-select: none; transform-style: preserve-3d; text-align: left; }
.card-in { position: relative; height: 100%; border-radius: 2.2cqw; background: var(--tb); overflow: hidden; border: .6cqw solid var(--ink); }
.ct { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 2.4cqw 3cqw 1.8cqw; gap: 1.4cqw; font-family: var(--sans); }
.card .ti { width: 5.2cqw; height: 5.2cqw; flex: none; display: inline-block; vertical-align: middle; }
.t-grass { --tc: #6f9a3a; --tb: #dfe6c4; }
.t-fire { --tc: #d6402b; --tb: #f0d2bf; }
.t-water { --tc: #3f8a8f; --tb: #cfe3dc; }
.t-lightning { --tc: #e8b43a; --tb: #f1e3b0; }
.t-psychic { --tc: #8a4f9e; --tb: #e3d2e2; }
.t-dark { --tc: #3b2f2a; --tb: #cdc3b4; }
.t-metal { --tc: #8b8f92; --tb: #dcdcd4; }
.kd-trainer { --tb: #dcd8cc; --tc: #6b6359; }

.ct-top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "stage evo evo" "nm nm hp"; align-items: center; column-gap: 1.6cqw; row-gap: .4cqw; }
.stage { grid-area: stage; font: 800 2.5cqw/1 var(--sans); letter-spacing: .06em; background: var(--ink); color: var(--cream); padding: .8cqw 1.6cqw .7cqw; border-radius: 1cqw; justify-self: start; }
.evo { grid-area: evo; display: flex; align-items: center; gap: 1cqw; font: italic 400 2.4cqw/1.1 var(--sans); white-space: nowrap; overflow: hidden; }
.evo-img { width: 6.2cqw; height: 6.2cqw; border-radius: 50%; overflow: hidden; border: .5cqw solid var(--gold); background: var(--ink); flex: none; display: grid; place-items: center; }
.evo-img img { width: 100%; height: 100%; object-fit: cover; }
.evo-img .ti { width: 100%; height: 100%; }
.nm { grid-area: nm; font: 800 6.6cqw/1.05 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp { grid-area: hp; display: flex; align-items: center; gap: .8cqw; font: 800 6cqw/1 var(--sans); color: var(--red); }
.hp small { font-size: 2.6cqw; font-weight: 800; color: var(--ink); }
.hp .ti { width: 6.4cqw; height: 6.4cqw; }

.win { position: relative; flex: none; aspect-ratio: 4 / 2.9; border: 1.1cqw solid #c9b98f; outline: .35cqw solid var(--ink); border-radius: .6cqw; overflow: hidden; background: var(--ink); box-shadow: inset 0 0 0 .4cqw #f4e9c8; }
.win .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-none { display: grid; place-items: center; align-content: center; gap: 2cqw; width: 100%; height: 100%; background: var(--panel); color: var(--soft); font: 500 2.6cqw var(--mono); }
.art-none .ti { width: 16cqw; height: 16cqw; opacity: .8; }
.strip { margin: 0; text-align: center; font: italic 400 2.3cqw/1 var(--sans); background: #cdbb8a; color: var(--ink); padding: .9cqw 1cqw; border-radius: .8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moves { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.8cqw; overflow: hidden; }
.ability { border: .4cqw solid var(--red); border-radius: 1cqw; padding: 1cqw 1.6cqw; font-size: 2.5cqw; line-height: 1.25; }
.ability p { margin: 0; }
.ab-flag { background: var(--red); color: var(--cream); font: 800 2.3cqw/1 var(--sans); padding: .4cqw 1.2cqw; border-radius: .6cqw; letter-spacing: .04em; }
.ab-name { font-size: 3.8cqw; color: var(--red); }
.atk-row { margin: 0; display: grid; grid-template-columns: 17cqw 1fr auto; align-items: center; gap: 1.4cqw; }
.cost { display: flex; gap: .4cqw; flex-wrap: wrap; }
.cost .ti { width: 4.6cqw; height: 4.6cqw; }
.atk-name { font: 800 4.3cqw/1.05 var(--sans); }
.dmg { font: 800 5.2cqw/1 var(--sans); }
.atk-text { margin: .5cqw 0 0; font-size: 2.45cqw; line-height: 1.25; }
.wrr { display: grid; grid-template-columns: repeat(3, 1fr); border-top: .35cqw solid rgba(42, 33, 25, .5); padding-top: 1cqw; }
.wrr span { display: flex; align-items: center; gap: .6cqw; font: 800 2.6cqw/1 var(--sans); min-height: 4.8cqw; }
.wrr span:nth-child(2) { justify-content: center; }
.wrr span:nth-child(3) { justify-content: flex-end; }
.wrr small { font: 600 2.1cqw/1 var(--sans); text-transform: lowercase; margin-right: .4cqw; }
.wrr .ti { width: 4cqw; height: 4cqw; }
.flavor { margin: 0; border: .35cqw solid #b9a46d; border-radius: .8cqw; padding: 1cqw 1.6cqw; font: italic 400 2.3cqw/1.25 var(--sans); }
.cf { display: grid; grid-template-columns: 1fr auto; align-items: center; font: 600 2.05cqw/1.2 var(--sans); row-gap: .3cqw; }
.cf .copy { grid-column: 1 / -1; font-weight: 400; opacity: .8; }
.cf-r { display: flex; align-items: center; gap: 1cqw; }
.set-mark { width: 3.6cqw; height: 3.6cqw; }
.rar { font-style: normal; font-weight: 800; }
.reg { font-style: normal; background: var(--ink); color: var(--cream); border-radius: .5cqw; padding: .1cqw .9cqw; font-weight: 800; }

/* trainer */
.tb-top { display: flex; justify-content: space-between; align-items: center; }
.tb-banner { font: 800 3.4cqw/1 var(--sans); letter-spacing: .12em; background: var(--ink); color: var(--cream); padding: 1cqw 2.4cqw .9cqw; border-radius: 1cqw; }
.tb-sub { font: 800 3cqw/1 var(--sans); color: var(--cream); background: #6b6359; padding: 1cqw 2.2cqw .9cqw; border-radius: 99px; }
.kd-trainer .tb-sub { background: var(--red); }
.tb-nm { font-size: 7cqw; }
.tb-win { margin-inline: -3cqw; border-left: 0; border-right: 0; border-radius: 0; outline: 0; aspect-ratio: 4 / 2.7; }
.tb-text { flex: 1 1 auto; display: flex; align-items: center; font-size: 3.2cqw; line-height: 1.35; padding: 0 .6cqw; }
.tb-text p { margin: 0; }
.tb-rule { margin: 0; border-top: .4cqw solid var(--ink); padding-top: 1cqw; font: 600 2.15cqw/1.25 var(--sans); }

/* energy */
.ct.en { background: var(--tb); }
.en-top { display: flex; justify-content: space-between; align-items: center; }
.en-top .nm { font-size: 5.6cqw; }
.en-sym { flex: 1; display: grid; place-items: center; }
.card .en-sym .ti.big { width: 62cqw; height: 62cqw; filter: drop-shadow(0 1.4cqw 0 rgba(42, 33, 25, .55)); }
.en-label { margin: 0; text-align: center; font: 400 5.4cqw/1 var(--display); padding-top: 1cqw; letter-spacing: .03em; }

/* secret: full art, darkened text band, gold frame */
.k-secret { background: var(--gold); }
.k-secret .card-in { background: var(--ink); }
.full-art { position: absolute; inset: 0; z-index: 0; }
.full-art .art { width: 100%; height: 100%; object-fit: cover; }
.k-secret .ct { color: var(--cream); }
.k-secret .win { visibility: hidden; flex: 1 1 auto; aspect-ratio: auto; }
.k-secret .ct-top, .k-secret .strip { background: rgba(23, 19, 15, .7); border-radius: 1cqw; }
.k-secret .ct-top { padding: 1cqw 1.4cqw; }
.k-secret .strip { color: var(--cream); }
.k-secret .moves { flex: none; background: rgba(23, 19, 15, .76); border-radius: 1.2cqw; padding: 1.6cqw 2cqw; }
.k-secret .wrr, .k-secret .cf { background: rgba(23, 19, 15, .76); border-radius: 1cqw; padding: 1cqw 1.6cqw; border: 0; }
.k-secret .flavor { display: none; }
.k-secret .hp small, .k-secret .wrr small { color: var(--cream); }
.k-secret .hp { color: var(--gold); }
.k-secret .stage { background: var(--gold); color: var(--ink); }
.k-secret .ab-name { color: var(--gold); }

/* card back: our own */
.card-back { container-type: inline-size; aspect-ratio: 5 / 7; width: 100%; border-radius: 4.5cqw; background: var(--ink); padding: 3.6cqw; box-shadow: 0 1cqw 0 #0c0a08, 0 3cqw 6cqw rgba(0, 0, 0, .45); }
.cb-in { height: 100%; border-radius: 2.4cqw; background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='m20 12 2.3 5 5.4.6-4 3.7 1.1 5.4L20 24l-4.8 2.7 1.1-5.4-4-3.7 5.4-.6z' fill='%23b8341f'/%3E%3C/svg%3E"); background-size: 16cqw; border: 1cqw solid var(--gold); display: grid; place-items: center; align-content: center; gap: 4cqw; }
.cb-ring { width: 52cqw; height: 52cqw; border-radius: 50%; background: var(--ink); border: 2.2cqw solid var(--gold); display: grid; place-items: center; }
.cb-ring img { width: 74%; height: auto; }
.cb-in b { font: 400 12cqw/1 var(--display); color: var(--cream); -webkit-text-stroke: 1cqw var(--ink); paint-order: stroke fill; letter-spacing: .03em; }

/* foils: the only gradients on the site. --mx/--my come from the pointer (0..100). */
.foil, .glare { position: absolute; inset: 0; pointer-events: none; display: none; }
.foil-art { z-index: 1; }
.foil-body { z-index: 3; }
.card { --mx: 50; --my: 50; }
.fin-holo .foil-art, .fin-reverse .foil-body, .fin-secret .foil-body { display: block; }
.fin-holo .foil-art {
  background: repeating-linear-gradient(115deg, #ff6b6b 0%, #ffd36b 6%, #7dffb0 12%, #6bd7ff 18%, #c58bff 24%, #ff6b6b 30%);
  background-size: 300% 300%; background-position: calc(var(--mx) * 1%) calc(var(--my) * 1%);
  mix-blend-mode: color-dodge; opacity: .55;
}
.fin-reverse .foil-body {
  background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0) 0%, rgba(255, 236, 170, .55) 8%, rgba(170, 240, 255, .45) 14%, rgba(255, 255, 255, 0) 22%);
  background-size: 260% 260%; background-position: calc(var(--mx) * 1%) calc(var(--my) * 1%);
  mix-blend-mode: overlay;
}
.fin-reverse .win { z-index: 4; }
.fin-secret .foil-body {
  background: repeating-linear-gradient(110deg, #ff5f5f 0%, #ffcf5f 5%, #8bff8b 10%, #5fd8ff 15%, #b07bff 20%, #ff5fcf 25%, #ff5f5f 30%);
  background-size: 320% 320%; background-position: calc(var(--mx) * 1%) calc(var(--my) * 1%);
  mix-blend-mode: color-dodge; opacity: .38;
}
.fin-holo .glare, .fin-secret .glare { display: block; z-index: 5; background: radial-gradient(circle at calc(var(--mx) * 1%) calc(var(--my) * 1%), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%); mix-blend-mode: soft-light; }
.k-secret.card { border: 0; background: #f0c24d; }
.card.live { transition: transform .1s linear; transform: rotateY(calc((var(--mx) - 50) * .14deg)) rotateX(calc((50 - var(--my)) * .14deg)); }
.flip > .card.live { transform: rotateY(180deg) rotateY(calc((var(--mx) - 50) * .14deg)) rotateX(calc((50 - var(--my)) * .14deg)); }
.mini.fin-holo .foil, .mini.fin-secret .foil, .mini.fin-reverse .foil { display: block; background: repeating-linear-gradient(115deg, rgba(255, 107, 107, .5), rgba(255, 211, 107, .5) 10%, rgba(125, 255, 176, .5) 20%, rgba(107, 215, 255, .5) 30%, rgba(197, 139, 255, .5) 40%, rgba(255, 107, 107, .5) 50%); mix-blend-mode: color-dodge; opacity: .6; }
.mini.fin-reverse .foil { opacity: .3; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .strip-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .set-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 14px; }
  .top-r .icon-l { display: none; }
}
@media (max-width: 860px) {
  .top .wrap { height: 68px; gap: 12px; }
  .brand b { font-size: 30px; }
  .brand img { width: 40px; height: 40px; }
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 20px 18px; gap: 4px; display: none; }
  .nav.open { display: flex; }
  .burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--line); background: none; cursor: pointer; }
  .top-r .ca, .top-r .buy { display: none; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 30px 10px; }
  .hero h1 { -webkit-text-stroke-width: 2px; }
  .pack-stage { height: 360px; order: -1; margin-bottom: -10px; }
  .pack { width: 220px; }
  .btn-big { height: 66px; font-size: 24px; width: 100%; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .binder-book { grid-template-columns: 1fr; padding: 12px; }
  .mobile-ca { display: flex !important; }
}
@media (max-width: 560px) {
  .strip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .counter { min-width: 0; flex: 1; }
  .hero p.sub { font-size: 17px; }
  .flip { width: 42vw; }
  .hand { gap: 40px 12px; }
  #odds, #odds-2 { overflow-x: auto; }
  .odds th, .odds td { padding: 12px 9px; }
  .odds th { font-size: 15px; }
  .odds td { font-size: 13px; }
  .rip-foot { position: sticky; bottom: 0; z-index: 2; padding: 14px 16px 18px; background: linear-gradient(transparent, rgba(12, 10, 8, .96) 35%); }
  .connect-l { display: none; }
}
.mobile-ca { display: none; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.rip-pack .lid { clip-path: polygon(0 0, 100% 0, 100% 19.5%, 95% 15.5%, 90% 19.5%, 85% 15.5%, 80% 19.5%, 75% 15.5%, 70% 19.5%, 65% 15.5%, 60% 19.5%, 55% 15.5%, 50% 19.5%, 45% 15.5%, 40% 19.5%, 35% 15.5%, 30% 19.5%, 25% 15.5%, 20% 19.5%, 15% 15.5%, 10% 19.5%, 5% 15.5%, 0% 19.5%); }
.rip-pack .body { clip-path: polygon(0% 19.5%, 5% 15.5%, 10% 19.5%, 15% 15.5%, 20% 19.5%, 25% 15.5%, 30% 19.5%, 35% 15.5%, 40% 19.5%, 45% 15.5%, 50% 19.5%, 55% 15.5%, 60% 19.5%, 65% 15.5%, 70% 19.5%, 75% 15.5%, 80% 19.5%, 85% 15.5%, 90% 19.5%, 95% 15.5%, 100% 19.5%, 100% 100%, 0 100%); }

/* ================= redesign 2026-10-21: the shop is a place ================= */
/* ---------- floating header ---------- */
.top { position: fixed; top: 12px; left: 0; right: 0; z-index: 40; pointer-events: none; background: none; border: 0; }
.top .wrap { pointer-events: auto; display: flex; align-items: center; gap: 26px; height: 70px; padding: 0 12px 0 14px; background: rgba(23, 19, 15, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.top .brand img { width: 46px; height: 46px; }
.top .brand b { font-size: 34px; }
.nav { gap: 4px; }
.nav a { font-size: 16px; padding: 10px 14px; border: 0; border-radius: 999px; }
.nav a[aria-current="page"] { background: var(--gold); color: var(--ink); }
.nav a:hover:not([aria-current="page"]) { color: var(--gold); }
.top-r { gap: 8px; }
.top .btn, .top .ca { border-radius: 999px; }
.icon-l { border-radius: 999px; }
[data-page]:not([data-page="home"]) { padding-top: 112px; }

/* ---------- hero: a living night shop ---------- */
.hero { position: relative; overflow: hidden; min-height: min(100svh, 940px); display: grid; align-items: center; background: #1d1712; border-bottom: 4px solid var(--ink); isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; --px: 0; --py: 0; --sy: 0; }
.layer { position: absolute; will-change: transform; transform: translate3d(calc(var(--px) * var(--d, 0) * -2px), calc(var(--py) * var(--d, 0) * -2px + var(--sy) * var(--d, 0) * .035px), 0); transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
.hero-bg { inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; object-position: center 62%; }
.hero-glow { inset: -10%; background: radial-gradient(42% 46% at 72% 18%, rgba(232, 180, 58, .34), transparent 70%), radial-gradient(30% 30% at 18% 8%, rgba(214, 64, 43, .16), transparent 70%); mix-blend-mode: screen; animation: lamp 6s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 50% { opacity: .95; } 53% { opacity: .78; } }
.hero-shade { position: absolute; inset: 0; background: rgba(18, 14, 11, .5); box-shadow: inset 0 -160px 120px -60px rgba(18, 14, 11, .9), inset 520px 0 260px -200px rgba(18, 14, 11, .8); }
.floaters { inset: 0; pointer-events: none; }
.floater { position: absolute; width: 112px; aspect-ratio: 5 / 7; padding: 6px; background: var(--gold); border: 3px solid var(--ink); border-radius: 9px; box-shadow: 0 18px 24px rgba(0, 0, 0, .5); animation: bob 7s ease-in-out infinite; }
.floater img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 2px solid var(--ink); }
.fl-1 { right: 37%; top: 18%; --r: -14deg; }
.fl-2 { right: 5%; top: 60%; --r: 12deg; width: 128px; animation-delay: -2.4s; background: var(--cream); }
.fl-3 { right: 9%; top: 15%; --r: 8deg; width: 84px; animation-delay: -4.6s; opacity: .8; filter: blur(1px); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-18px) rotate(calc(var(--r) + 4deg)); } }
.spark { position: absolute; width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.8s ease-in-out infinite; }
.s-1 { right: 31%; top: 14%; }
.s-2 { right: 20%; top: 73%; animation-delay: -.9s; width: 10px; height: 10px; }
.s-3 { right: 44%; top: 62%; animation-delay: -1.7s; }
.s-4 { right: 3%; top: 40%; animation-delay: -2.2s; width: 9px; height: 9px; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.counter-edge { left: -40px; right: -40px; bottom: -20px; height: 120px; background: #3b2a1c; border-top: 6px solid #5a4029; box-shadow: inset 0 10px 0 #2c1f15, 0 -3px 0 var(--ink); }
.counter-edge::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 3px; background: #2c1f15; box-shadow: 0 32px 0 #2c1f15; opacity: .6; }
.hero > .wrap { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 20px; padding: 120px 0 100px; }
.hero h1 { margin: 0; font: 400 clamp(60px, 8.4vw, 124px)/.88 var(--display); letter-spacing: .01em; transform: rotate(-3deg) skewX(-6deg); transform-origin: left; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink), 0 18px 30px rgba(0, 0, 0, .55); }
.hero h1 .l1 { animation: drop-in .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.hero h1 .l2 { font-size: .6em; margin-top: .2em; color: var(--gold); animation: drop-in .7s .12s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes drop-in { from { transform: translateY(-40px) rotate(4deg); opacity: 0; } }
.hero p.sub { max-width: 540px; margin: 32px 0 30px; }
.hero .btn-big { position: relative; }
.hero .btn-big::after { content: ""; position: absolute; inset: -8px; border-radius: inherit; border: 2px solid var(--red); opacity: 0; animation: ring 2.4s ease-out infinite; pointer-events: none; }
.hero .btn-big[aria-disabled="true"]::after { display: none; }
@keyframes ring { 0% { opacity: .8; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.counters { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.counter { min-width: 140px; transform: rotate(-1deg); }
.counter:nth-child(2) { transform: rotate(1deg); }
.pack-stage { position: relative; height: 560px; perspective: 1000px; display: grid; place-items: center; }
.pack { position: relative; z-index: 2; width: min(340px, 82%); aspect-ratio: 330 / 470; padding: 0; border: 0; background: none; transform-style: preserve-3d; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotateZ(8deg) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s cubic-bezier(.3, 1.6, .4, 1); filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .7)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; animation: none; }
.pack.dragging { transition: transform .05s linear; cursor: grabbing; }
.pack img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; animation: hover 4.5s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.pack-shadow { position: absolute; z-index: 1; bottom: 40px; width: 240px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .6); filter: blur(10px); animation: shadow 4.5s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scale(.85); opacity: .7; } }
.pack-hint { position: absolute; z-index: 3; bottom: 0; margin: 0; font: 500 13px var(--mono); color: var(--cream); letter-spacing: .08em; text-transform: uppercase; background: rgba(23, 19, 15, .8); border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* ---------- section titles ---------- */
.blk { padding: 96px 0 0; }
.blk-h { align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; }
.tick, .blk-h h2.tick { margin: 0; display: inline-flex; align-items: center; gap: 16px; font: 400 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: .01em; padding-top: 8px; transform: rotate(-1.5deg) skewX(-5deg); transform-origin: left; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.tick::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--gold); border: 3px solid var(--ink); transform: rotate(45deg) translateY(-4px); }
.wrap > h2.tick { font-size: 40px; margin: 44px 0 16px; }
.blk-h .more { border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.blk-h .more:hover { border-color: var(--gold); }
.rv { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.rv.in { opacity: 1; transform: none; }
.panel#recent { border: 2px dashed var(--line); background: #1c1712; }

/* ---------- how a pull works: pinned pack, steps light up ---------- */
.how { background: #1c1712; border-bottom: 4px solid var(--ink); padding-bottom: 96px; }
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.how-pin { position: sticky; top: 120px; }
.how-pin .lead { font-size: 20px; color: var(--dim); max-width: 420px; margin: 22px 0 34px; }
.how-pack { width: 230px; transform: rotate(-8deg); filter: drop-shadow(0 24px 20px rgba(0, 0, 0, .6)); }
.how-pack img { display: block; width: 100%; height: auto; animation: hover 5s ease-in-out infinite; }
.steps { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; grid-template-columns: none; }
.step { opacity: .42; transform: translateX(26px) rotate(.6deg); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1), box-shadow .5s; padding: 30px 30px 28px; box-shadow: 0 6px 0 #0c0a08; }
.step:nth-child(even) { transform: translateX(26px) rotate(-.6deg); }
.step.on { opacity: 1; transform: none; box-shadow: 0 10px 0 #0c0a08, 0 0 0 4px var(--gold); }
.step h3 { font-size: 40px; align-items: center; gap: 14px; }
.step .si { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding-top: 4px; border-radius: 50%; background: var(--red); color: var(--cream); border: 3px solid var(--ink); font: 400 26px/1 var(--display); font-style: normal; }
.step p { font-size: 17px; }
.step a { color: var(--red); font-weight: 600; }

/* ---------- set progress ---------- */
.set-head { align-items: center; }
.set-prog { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-right: auto; margin-left: 18px; }
.bar { display: block; width: 240px; height: 16px; }
.bar i { width: calc(var(--p, 0) * 1%); transition: width 1.2s cubic-bezier(.2, .7, .3, 1); }
.set-cell .mini, .pull .mini { transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.set-cell:hover .mini { transform: translateY(-6px) rotate(-2deg); }
.pull:hover .mini { transform: translateY(-5px) rotate(2deg); }

/* ---------- the rip ---------- */
.rip { background: rgba(12, 10, 8, .96); }
.rip::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 50% 42%, rgba(232, 180, 58, .2), transparent 70%); animation: lamp 5s ease-in-out infinite; }
.rip > * { position: relative; }
.rip-top b { color: var(--gold); }
.rip-pack { width: 300px; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .7)); }
.rip-pack.torn .lid { animation: tear .65s cubic-bezier(.3, .6, .4, 1) forwards; }
.rip-pack.torn .body { animation: jolt .4s ease-out; }
@keyframes tear { 30% { transform: translate(10px, -26px) rotate(-6deg); } to { transform: translate(220px, -200px) rotate(38deg); opacity: 0; } }
@keyframes jolt { 30% { transform: translateY(12px) scaleY(.97); } }
.shard { position: absolute; left: var(--x); top: 17%; width: 16px; height: 22px; clip-path: polygon(50% 0, 100% 40%, 70% 100%, 0 70%); background: conic-gradient(from var(--r), #e8b43a, #ede6d6, #d6402b, #8fd1a8, #e8b43a); opacity: 0; pointer-events: none; }
.rip-pack.torn .shard { animation: shard .8s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes shard { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(calc(var(--r) + 360deg)) scale(.5); } }
.burst { position: absolute; left: 50%; top: 17%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(237, 230, 214, .95), rgba(232, 180, 58, .5) 40%, transparent 70%); opacity: 0; pointer-events: none; }
.rip-pack.torn .burst { animation: burst .7s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(28); } }
.hand { gap: 46px 20px; padding-top: 10px; }
.hand .flip, .hand .flip:nth-child(n) { animation: fan .8s cubic-bezier(.2, .9, .25, 1.15) backwards; animation-delay: calc(var(--i, 0) * .09s); }
@keyframes fan { from { transform: translate(calc((2 - var(--i, 2)) * 108%), 120px) rotate(calc((var(--i, 2) - 2) * 9deg)) scale(.75); opacity: 0; } 40% { opacity: 1; } }
.flip:not(.open):hover { transform: translateY(-10px) rotate(-1.5deg); }
.flip .card-back { box-shadow: 0 16px 30px rgba(0, 0, 0, .55); }
.flip.open > .card { box-shadow: 0 18px 34px rgba(0, 0, 0, .6); }
.flip > .card.live { touch-action: pan-y; }
.zoom .card { touch-action: none; }

/* ---------- share card ---------- */
.share { margin: 8px auto 0; width: min(560px, 100%); display: grid; gap: 14px; justify-items: center; animation: drop-in .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.share-card { width: 100%; display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; padding: 16px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 8px 0 #0c0a08; transform: rotate(-1deg); }
.share-t { display: grid; gap: 6px; min-width: 0; }
.share-k { font: 400 18px/1 var(--display); color: var(--red); padding-top: 3px; }
.share-t b { font: 400 30px/1 var(--display); padding-top: 4px; overflow-wrap: anywhere; }
.share-r { font-weight: 800; font-size: 15px; }
.share-m { font: 500 12px var(--mono); color: #6b5f4c; }
.share-logo { align-self: start; width: 44px; height: 44px; }
.share.r-holo .share-card, .share.r-secret .share-card { box-shadow: 0 8px 0 #0c0a08, 0 0 0 4px var(--gold); }
.share-x { display: inline-flex; align-items: center; gap: 10px; }
.share-x svg { flex: none; width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 10px; }
  .top-r .icon-l { display: none; }
  .fl-1 { right: 44%; }
}
@media (max-width: 860px) {
  .top { top: 8px; }
  .top .wrap { height: 62px; gap: 10px; width: calc(100% - 20px); }
  .top .brand b { font-size: 28px; }
  .top .brand img { width: 38px; height: 38px; }
  .nav { top: 78px; left: 10px; right: 10px; border: 2px solid var(--line); border-radius: 20px; }
  .top-r .icon-l { display: inline-grid; }
  [data-page]:not([data-page="home"]) { padding-top: 92px; }
  .hero { min-height: 0; }
  .hero > .wrap { grid-template-columns: 1fr; padding: 92px 0 44px; gap: 0; }
  .hero h1 { -webkit-text-stroke-width: 2px; text-shadow: 0 5px 0 var(--ink); }
  .hero-shade { background: rgba(18, 14, 11, .6); }
  .pack-stage { height: 330px; order: -1; margin-bottom: 4px; }
  .pack { width: 196px; }
  .pack-shadow { width: 160px; bottom: 38px; }
  .floater { width: 70px; }
  .fl-1 { right: auto; left: 4%; top: 15%; }
  .fl-2 { right: 4%; top: 28%; width: 80px; }
  .fl-3 { display: none; }
  .counter-edge { display: none; }
  .blk { padding-top: 70px; }
  .how { padding-bottom: 70px; }
  .how-grid { grid-template-columns: 1fr; gap: 26px; }
  .how-pin { position: static; }
  .how-pack { display: none; }
  .step, .step:nth-child(even) { transform: none; opacity: 1; }
  .set-prog { margin-left: 0; width: 100%; order: 3; }
}
@media (max-width: 560px) {
  .top-r .icon-l { width: 38px; height: 38px; }
  .hero h1 { font-size: 58px; }
  .counter { min-width: 0; flex: 1; transform: none; }
  .counter:nth-child(2) { transform: none; }
  .step { padding: 22px 20px; }
  .step h3 { font-size: 32px; }
  .tick, .blk-h h2.tick { font-size: 38px; }
  .bar { width: 100%; }
  .hand { gap: 40px 12px; }
  .rip-pack { width: 220px; }
  .share-card { grid-template-columns: 90px 1fr; }
  .share-logo { display: none; }
  .share-t b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer { transform: none !important; }
  .rv { opacity: 1; transform: none; }
  .step { opacity: 1; transform: none; }
}
.hero-bg { max-width: none; }
.burger span { display: block; width: 18px; height: 2px; margin: 2px 0; background: var(--cream); border-radius: 2px; }
.burger { place-content: center; }
@media (max-width: 560px) {
  .top .wrap { gap: 6px; padding: 0 8px 0 10px; }
  .top .brand b { font-size: 24px; }
  .top .brand img { width: 32px; height: 32px; }
  .top .btn { padding: 0 14px; height: 40px; font-size: 15px; }
  .hero .btn-big::after { inset: -5px; }
}
.rv { opacity: 1; transform: none; transition: none; }
.rv.in { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .rv.in { animation: none; } }
.rip { background: rgba(12,10,8,.985); backdrop-filter: blur(6px); }
/* card sizing (cqw) needs a container around the card itself */
.full-cards > a, .full-cards > div, .full-cards > div > a { display: block; container-type: inline-size; }
.full-cards > div > a { text-decoration: none; }
@media (max-width: 560px) {
  .top .brand b { font-size: 22px; }
  .top-r .icon-l { display: inline-grid; width: 34px; height: 34px; }
  .top-r .icon-l svg, .top-r .icon-l img { width: 17px; height: 17px; }
  .top-r { gap: 5px; }
  .hand { flex-wrap: nowrap; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 14vw 34px; margin: 0 -4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hand::-webkit-scrollbar { display: none; }
  .hand .flip { flex: none; width: 62vw; scroll-snap-align: center; }
  .rip { overflow-x: hidden; }
}

/* ---------------- launchpad: /launch, /coins, /coin ---------------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 22px; align-items: start; padding-bottom: 56px; }
.launch-form { display: grid; gap: 16px; }
.launch-form .field { display: grid; gap: 6px; }
.launch-form .field > span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.launch-form input:not([type=file]), .launch-form textarea { width: 100%; background: #17130f; color: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: 16px var(--sans); }
.launch-form input:focus, .launch-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.launch-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { display: flex; align-items: center; gap: 16px; padding: 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; background: #1c1712; }
.drop:hover { border-color: var(--gold); }
.drop b { display: block; font-size: 17px; }
.drop small { color: var(--dim); }
.drop-thumb { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--gold); font: 400 34px var(--display); overflow: hidden; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips button { background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 15px var(--sans); cursor: pointer; }
.chips button.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chips input { width: 96px !important; padding: 8px 10px !important; }
.lf-status { font-size: 15px; line-height: 1.5; }
.lf-status:empty { display: none; }
.lf-status.err { color: #f0a090; }
.lf-status.ok { color: var(--gold); }
.lf-status a { color: var(--gold); }
.launch-form #lf-go:disabled { opacity: .55; cursor: not-allowed; }
.launch-side h3 { margin: 0 0 8px; font: 400 26px var(--display); }
.launch-side ol { margin: 0; padding-left: 20px; color: var(--soft); line-height: 1.7; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; padding-bottom: 56px; }
.coin-grid .empty { grid-column: 1 / -1; }
.coin-card { display: grid; gap: 4px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--cream); text-decoration: none; }
.coin-card:hover { border-color: var(--gold); }
.coin-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--ink); }
.coin-card small { color: var(--dim); }
.coin-head { display: flex; align-items: center; gap: 18px; }
.coin-head img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.coin-head h1 { margin: 0; font: 400 clamp(32px, 4vw, 48px)/1 var(--display); }
.coin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0; }
.coin-facts dt { color: var(--dim); }
.coin-facts dd { margin: 0; overflow-wrap: anywhere; }
.coin-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .launch-grid { grid-template-columns: 1fr; } .launch-form .two { grid-template-columns: 1fr; } }
.launch-form .field input:not([type=file]) { height: auto; font-family: var(--sans); }

/* set page: no popup, cards tilt in 3D under the pointer */
#set-all .tiltcard { display: block; perspective: 700px; position: relative; z-index: 1; }
#set-all .tiltcard:hover { z-index: 5; }
#set-all .tiltcard .card.live { transition: transform .12s ease-out, box-shadow .2s; transform: rotateY(calc((var(--mx) - 50) * .36deg)) rotateX(calc((50 - var(--my)) * .36deg)) scale(1); will-change: transform; }
#set-all .tiltcard:hover .card.live { transform: rotateY(calc((var(--mx) - 50) * .36deg)) rotateX(calc((50 - var(--my)) * .36deg)) translateZ(40px) scale(1.12); box-shadow: 0 3cqw 0 #0c0a08, 0 8cqw 12cqw rgba(0, 0, 0, .6); }
#set-all .tiltcard .card.live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .2s; background: radial-gradient(circle at calc(var(--mx) * 1%) calc(var(--my) * 1%), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; z-index: 9; }
#set-all .tiltcard:hover .card.live::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #set-all .tiltcard:hover .card.live { transform: none; } }
