/* Pakskes huisstijl: binderpapier, koraal, holo. */
:root {
  --paper: #fff7ea;
  --paper-2: #fffcf6;
  --card: #ffffff;
  --ink: #1b1934;
  --ink-2: #45425f;
  --muted: #7a7690;
  --line: #ecdfc8;
  --line-2: #dccdb1;
  --brand: #ff5a36;
  --brand-dark: #d9411f;
  --brand-soft: #ffe4da;
  --grape: #6c4cf5;
  --grape-soft: #ece7ff;
  --good: #1fa463;
  --good-soft: #dcf5e7;
  --warn: #c27a00;
  --warn-soft: #fff0cc;
  --bad: #d63a3a;
  --bad-soft: #fde0e0;
  --holo: linear-gradient(115deg, #ff9ad5 0%, #ffd86b 25%, #8ff0c6 50%, #8fc8ff 75%, #c39bff 100%);
  --radius: 18px;
  --shadow-sm: 0 1px 0 rgba(27, 25, 52, .05), 0 2px 8px rgba(27, 25, 52, .06);
  --shadow: 0 1px 0 rgba(27, 25, 52, .04), 0 10px 30px rgba(27, 25, 52, .10);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 25, 52, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.hide-sm { }
@media (max-width: 520px) { .hide-sm { display: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 30px; height: 38px; flex: none; transform: rotate(-8deg); transition: transform .2s; }
.logo:hover svg { transform: rotate(4deg) translateY(-2px); }
.logo .word { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -.035em; line-height: 1; }
.logo .word i { font-style: normal; color: var(--brand); }
.logo .tld { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 1px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 247, 234, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 9px 13px; border-radius: 12px; font-weight: 650; font-size: 15px; }
.nav a:hover { background: rgba(27, 25, 52, .05); }
.nav a.active { background: var(--ink); color: #fff; }
.spacer { flex: 1; }
.wallet { display: flex; align-items: center; gap: 8px; }
.credit { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 14px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); cursor: pointer; }
.credit .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.credit small { color: var(--muted); font-weight: 600; font-size: 12px; }

.tabbar { display: none; }
@media (max-width: 780px) {
  .nav { display: none; }
  .top .wrap { height: 58px; }
  .logo .word { font-size: 22px; }
  .logo svg { width: 26px; height: 33px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: rgba(255, 252, 246, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; padding: 5px 0; border-radius: 12px; }
  .tabbar svg { width: 23px; height: 23px; display: block; margin: 0 auto 2px; }
  .tabbar a.active { color: var(--brand); }
  main { padding-bottom: 96px; }
}

/* ---------- icons ---------- */
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
  padding: 11px 18px; border-radius: 14px; font-weight: 750; cursor: pointer; font-size: 15px; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-shadow: 0 2px 0 var(--line-2); transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: var(--paper-2); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--line-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand-dark); color: #fff; box-shadow: 0 3px 0 var(--brand-dark); }
.btn.primary:hover { background: #ff6c4b; }
.btn.primary:active { box-shadow: 0 0 0 var(--brand-dark); transform: translateY(3px); }
.btn.dark { background: var(--ink); border-color: #000; color: #fff; box-shadow: 0 3px 0 #000; }
.btn.good { background: var(--good); border-color: #13804b; color: #fff; box-shadow: 0 3px 0 #13804b; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(27, 25, 52, .05); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 12px; }
.btn.big { padding: 15px 24px; font-size: 17px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 650; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; background: var(--paper-2); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 13px; outline: none; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 8px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; }

/* ---------- type & layout ---------- */
main { padding: 28px 0 64px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; color: var(--ink); }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: .98; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.05; margin: 44px 0 16px; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 750; }
p { line-height: 1.6; color: var(--ink-2); }
.lead { font-size: 18px; line-height: 1.55; max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 44px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 6px 12px 6px 6px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.eyebrow b { background: var(--holo); color: var(--ink); padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.hl { background: linear-gradient(transparent 62%, var(--brand-soft) 62%); padding: 0 2px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 999px; background: rgba(27, 25, 52, .06); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: #11734a; }
.pill.warn { background: var(--warn-soft); color: #8a5600; }
.pill.bad { background: var(--bad-soft); color: #a32424; }
.pill.brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill.holo { background: var(--holo); color: var(--ink); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 28px 0 8px; }
.hero > * { min-width: 0; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { position: relative; height: 420px; }
.hero-art .pakske { position: absolute; width: 175px; top: 60px; }
.hero-art .pakske:nth-child(1) { left: 2%; transform: rotate(-13deg); }
.hero-art .pakske:nth-child(2) { left: 30%; top: 20px; transform: rotate(-1deg); z-index: 2; }
.hero-art .pakske:nth-child(3) { left: 58%; top: 70px; transform: rotate(12deg); }
.hero-art .float-tag { position: absolute; right: 6%; bottom: 18px; z-index: 4; transform: rotate(-3deg); font-size: 13px; padding: 7px 13px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 4px; }
  .hero-art { height: 250px; order: -1; }
  .hero-art .pakske { width: 112px; top: 34px; }
  .hero-art .pakske:nth-child(2) { top: 10px; }
  .hero-art .pakske:nth-child(3) { top: 40px; }
  .hero-art .float-tag { bottom: 0; right: 4%; }
  .lead { font-size: 16.5px; }
}

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.trust > div { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.trust .ico-wrap { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-dark); }
.trust > div:nth-child(2) .ico-wrap { background: var(--grape-soft); color: var(--grape); }
.trust > div:nth-child(3) .ico-wrap { background: var(--good-soft); color: var(--good); }
.trust > div:nth-child(4) .ico-wrap { background: var(--warn-soft); color: var(--warn); }
.trust b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.trust span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } .trust > div { flex-direction: column; gap: 8px; } }

/* ---------- pakske (booster) ---------- */
.pakske {
  --c1: #3b2bb8; --c2: #12124a; --z: 7px;
  position: relative; aspect-ratio: 5 / 8.2; border-radius: 6px; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, var(--c1), var(--c2));
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
  filter: drop-shadow(0 14px 22px rgba(27, 25, 52, .28));
}
.pakske::before { /* holo glans */
  content: ''; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; opacity: .9;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .7) 38%, transparent 52%), var(--holo);
  background-size: 260% 100%, 100% 100%; animation: sheen 5.5s ease-in-out infinite;
}
.pakske::after { /* krimpranden */
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .22) 0 9%, transparent 9% 91%, rgba(0, 0, 0, .18) 91%);
}
.pakske .logo-slot { position: absolute; inset: 22% 9% auto; z-index: 3; display: grid; place-items: center; }
.pakske .logo-slot img { width: 100%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.pakske .set-word { font-family: var(--display); font-weight: 800; color: #fff; text-align: center; line-height: .95; font-size: clamp(15px, 2.6vw, 26px); letter-spacing: -.03em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35); text-wrap: balance; }
.pakske .stamp { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--display); font-weight: 800; font-size: 12px; color: #fff; letter-spacing: .02em; background: rgba(0, 0, 0, .28); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pakske .stamp i { font-style: normal; color: #ffb3a1; }
.pakske .tear { position: absolute; top: 9%; left: 0; right: 0; z-index: 3; border-top: 2px dashed rgba(255, 255, 255, .45); }
.pakske .badge { position: absolute; top: 11.5%; right: 6px; z-index: 4; font-size: 10px; padding: 3px 7px; }
@keyframes sheen { 0%, 100% { background-position: 130% 0, 0 0; } 50% { background-position: -30% 0, 0 0; } }

/* ---------- pack tiles ---------- */
.packs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 520px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pack-tile { position: relative; text-decoration: none; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 14px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.pack-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pack-tile:hover .pakske { transform: rotate(-3deg) scale(1.03); }
.pack-tile .pakske { width: 76%; margin: 4px auto 0; transition: transform .25s; }
.pack-tile .name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.pack-tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pack-tile .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pack-tile.soldout { opacity: .6; }

/* ---------- rarity chips ---------- */
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 850; letter-spacing: .03em; background: #ecebf2; color: #55526e; vertical-align: 1px; }
.chip.U { background: #e1f3e8; color: #1c7a47; }
.chip.R { background: #e2ecff; color: #2d55b8; }
.chip.RR { background: #ffe8d6; color: #b4561c; }
.chip.UR { background: var(--grape-soft); color: var(--grape); }
.chip.IR { background: #d9f5f3; color: #157a74; }
.chip.SIR { background: var(--holo); color: var(--ink); }
.chip.MHR { background: linear-gradient(115deg, #ffd86b, #ffb347, #ffe9a8); color: #6b4300; }
.chip.MAR { background: #ffe0e0; color: #b42c2c; }
.chip.PR { background: #fff3c4; color: #7a5a00; }
.chip.CC { background: linear-gradient(115deg, #f7d774, #fff1bf, #e2b440); color: #5c4200; }
.chip.FR { background: linear-gradient(115deg, #8ff0ff, #c39bff); color: #24135e; }
.chip.RGB { background: linear-gradient(90deg, #ff5d5d, #5dd36b, #5d8bff); color: #fff; }
.chip.rev { background: linear-gradient(90deg, #c7ecff, #ffd4f3); color: #3c2f6b; }

/* ---------- cards ---------- */
.cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; } }
.card-tile { min-width: 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 7px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.card-tile img { border-radius: 7px; aspect-ratio: 63 / 88; width: 100%; object-fit: cover; background: linear-gradient(135deg, #f1e9da, #e7ddca); }
.card-tile .cap { font-size: 12.5px; line-height: 1.3; padding: 0 2px 1px; }
.card-tile .nm { display: block; font-weight: 750; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tile .meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.card-tile .val { font-weight: 850; font-variant-numeric: tabular-nums; font-size: 14px; margin-top: 3px; display: block; }
.card-tile .note { color: var(--good); font-size: 12px; font-weight: 750; }
.card-tile .from { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tile.selectable { cursor: pointer; user-select: none; }
.card-tile.selectable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-tile.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.card-tile .tick { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; font-size: 14px; font-weight: 900; z-index: 2; }
.card-tile.selected .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.card-tile .days { position: absolute; top: 12px; right: 12px; z-index: 2; box-shadow: var(--shadow-sm); }
.card-tile .days.pill { background: rgba(255, 255, 255, .94); }
.card-tile .days.pill.warn { background: var(--warn-soft); }
.glow-IR img { box-shadow: 0 0 0 2px #7fded7, 0 0 18px rgba(31, 180, 170, .35); }
.glow-UR img, .glow-MAR img { box-shadow: 0 0 0 2px #b9a8ff, 0 0 18px rgba(108, 76, 245, .3); }
.glow-SIR img { box-shadow: 0 0 0 2px #ff9ad5, 0 0 24px rgba(255, 120, 200, .45); }
.glow-CC img { box-shadow: 0 0 0 2px #e2b440, 0 0 20px rgba(226, 180, 64, .45); }
.glow-FR img { box-shadow: 0 0 0 2px #8fd8ff, 0 0 24px rgba(140, 120, 255, .45); }
.glow-RGB img, .glow-MHR img { box-shadow: 0 0 0 2px #ffcc4d, 0 0 26px rgba(255, 190, 40, .55); }

/* ---------- pack detail ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; font-weight: 650; }
.crumbs a:hover { color: var(--brand); }
.pack-detail { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start; }
.pack-detail > * { min-width: 0; }
.buy-box { position: sticky; top: 90px; }
.buy-box .pakske { width: 68%; margin: 6px auto 22px; }
.buy-box .perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.buy-box .perks li { display: flex; gap: 9px; align-items: flex-start; }
.buy-box .perks .ico { width: 18px; height: 18px; color: var(--good); margin-top: 1px; }
.mobile-buy { display: none; }
@media (max-width: 860px) {
  .pack-detail { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .buy-box { position: static; }
  .buy-box .pakske { width: 118px; margin: 0 auto 16px; }
  .buy-box .perks { grid-template-columns: 1fr 1fr; font-size: 13px; gap: 8px; }
  .mobile-buy.show { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-buy { display: flex; transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 44; background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 10px 10px 18px; align-items: center; justify-content: space-between; box-shadow: 0 12px 30px rgba(27, 25, 52, .35); }
  .mobile-buy .price { color: #fff; font-size: 20px; }
}
.odds { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.odds td { padding: 9px 4px; border-bottom: 1px dashed var(--line-2); }
.odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.odds tr.slot td { border-bottom: none; padding-top: 18px; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); }
.odds tr.slot td:last-child { font-family: inherit; font-size: 13px; color: var(--muted); font-weight: 600; }
.odds tr:first-child td { padding-top: 0; }
.bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--brand); opacity: .75; vertical-align: middle; margin-right: 8px; }

/* ---------- steps & callout ---------- */
.steps { grid-template-columns: repeat(4, 1fr); }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.step .n { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; margin-bottom: 12px; }
.step p { font-size: 14px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step { padding: 14px; } }
.callout { margin-top: 44px; border-radius: 24px; padding: 30px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.callout::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--holo); opacity: .35; filter: blur(30px); }
.callout h2 { color: #fff; margin: 0 0 10px; }
.callout p { color: #cfcde0; margin: 0; }
.callout ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.callout li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.callout li .x { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 90, 54, .2); color: #ff8a70; display: grid; place-items: center; font-weight: 900; flex: none; }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- vault ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat .l { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; gap: 8px; } .stat { padding: 10px 12px; } .stat .v { font-size: 20px; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { border: 1.5px solid var(--line-2); background: var(--card); padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.actionbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 44; width: min(760px, calc(100% - 24px)); background: var(--ink); color: #fff; border-radius: 20px; padding: 10px 10px 10px 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; box-shadow: 0 14px 36px rgba(27, 25, 52, .38); }
.actionbar .info { font-size: 14px; }
.actionbar .btn { white-space: nowrap; }
.actionbar .info b { font-variant-numeric: tabular-nums; }
.actionbar .btn:not(.primary):not(.good) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
@media (max-width: 780px) { .actionbar { bottom: calc(76px + env(safe-area-inset-bottom)); } .actionbar .info { width: 100%; } .actionbar .row { width: 100%; } .actionbar .row .btn { flex: 1; } }

/* ---------- stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  background: radial-gradient(700px 520px at 50% 42%, #3a3270, #14122a 72%); padding: 24px 16px; overflow-y: auto; color: #fff;
}
.stage .close { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.stage .hint { color: #c9c5e6; font-weight: 650; margin-top: 18px; text-align: center; min-height: 24px; }
.stage .tear-pack { width: min(58vw, 250px); cursor: pointer; animation: wobble 1.7s ease-in-out infinite; }
.stage .tear-pack.tearing { animation: tear .38s ease-in forwards; }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-8px); } }
@keyframes tear { 40% { transform: scale(1.06) rotate(-4deg); } to { transform: translateY(-40px) scale(1.2) rotate(-8deg); opacity: 0; filter: brightness(2.2); } }
.deal { width: min(72vw, 310px); aspect-ratio: 63 / 88; cursor: pointer; border-radius: 15px; }
.deal img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; display: block; background: #2b2468; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.deal.dealin img { animation: dealin .16s ease-out; }
@keyframes dealin { from { transform: translateX(36px) rotate(3deg) scale(.97); opacity: .35; } }
.deal.glow-IR img { box-shadow: 0 0 0 3px #7fded7, 0 0 40px rgba(31, 180, 170, .55); }
.deal.glow-UR img, .deal.glow-MAR img { box-shadow: 0 0 0 3px #b9a8ff, 0 0 40px rgba(108, 76, 245, .55); }
.deal.glow-CC img { box-shadow: 0 0 0 3px #e2b440, 0 0 44px rgba(226, 180, 64, .6); }
.deal.glow-FR img { box-shadow: 0 0 0 3px #8fd8ff, 0 0 44px rgba(140, 120, 255, .6); }
.deal.glow-SIR img { box-shadow: 0 0 0 3px #ff9ad5, 0 0 50px rgba(255, 120, 200, .7); }
.deal.glow-MHR img, .deal.glow-RGB img { box-shadow: 0 0 0 3px #ffcc4d, 0 0 56px rgba(255, 190, 40, .75); }
.stage { cursor: pointer; }
.stage .summary { cursor: auto; }
.reveal-info { text-align: center; margin-top: 16px; min-height: 58px; }
.reveal-info .nm { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.reveal-info .vl { font-weight: 800; color: #ffd36b; }
.reveal-info .muted { color: #b5b0d6; }
.hit-label { display: inline-block; margin-bottom: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 900; font-size: 13px; letter-spacing: .04em; background: var(--holo); color: var(--ink); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 70; animation: flash 1s ease-out forwards; }
.flash.IR { background: radial-gradient(circle at 50% 45%, rgba(120, 230, 220, .45), transparent 60%); }
.flash.UR, .flash.MAR { background: radial-gradient(circle at 50% 45%, rgba(180, 160, 255, .45), transparent 60%); }
.flash.SIR { background: radial-gradient(circle at 50% 45%, rgba(255, 150, 220, .6), transparent 62%); }
.flash.CC { background: radial-gradient(circle at 50% 45%, rgba(240, 200, 90, .55), transparent 62%); }
.flash.FR { background: radial-gradient(circle at 50% 45%, rgba(140, 200, 255, .55), transparent 62%); }
.flash.RGB, .flash.MHR { background: radial-gradient(circle at 50% 45%, rgba(255, 210, 90, .7), transparent 64%); }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.summary { width: min(1000px, 100%); color: var(--ink); background: var(--paper); border-radius: 24px; padding: 22px; margin: auto 0; }
.summary h2 { margin: 0; }
.summary .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .summary { padding: 16px; } .summary .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.summary .actionbar { position: sticky; left: auto; transform: none; bottom: 0; width: 100%; margin-top: 16px; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(27, 25, 52, .45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(470px, 100%); max-height: 92vh; overflow-y: auto; background: var(--paper-2); border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px rgba(27, 25, 52, .35); }
.modal h2 { margin: 0 0 6px; font-size: 26px; }
@media (max-width: 520px) { .modal-back { align-items: flex-end; padding: 0; } .modal { border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--line-2); background: var(--card); border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; }
.choice .grow { flex: 1; }
.choice .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.amounts .btn { padding: 12px 6px; }
.amounts .btn.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 2px 0 var(--brand); }
.pay-logos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-logos span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: 0 14px 36px rgba(27, 25, 52, .35); max-width: calc(100% - 32px); animation: toastin .25s ease-out; }
.toast.err { background: var(--bad); }
@keyframes toastin { from { transform: translate(-50%, 12px); opacity: 0; } }
@media (max-width: 780px) { .toast { bottom: calc(90px + env(safe-area-inset-bottom)); } }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 44px 18px; }
.empty .big { font-size: 44px; margin-bottom: 6px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; word-break: break-all; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-weight: 650; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
details.faq summary { cursor: pointer; font-weight: 750; padding: 16px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--brand); }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 0; padding: 0 18px 16px; }
.auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; max-width: 860px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; background: var(--paper-2); }
footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 12px 36px; align-items: start; }
footer p { margin: 0; color: var(--muted); font-size: 13px; }
footer .links { display: flex; gap: 14px; flex-wrap: wrap; }
footer .links a { text-decoration: none; font-weight: 650; color: var(--ink-2); }
@media (max-width: 780px) { footer .wrap { grid-template-columns: 1fr; } footer { padding-bottom: 110px; } }
