/* =========================================================
   GPUnks page (loads on top of style.css)
   ========================================================= */
.page-gpunks .nav__links a.is-active { color: var(--green-ink); background: var(--green-soft); }

/* ---------- hero ---------- */
.gp-hero { padding: clamp(24px, 5vw, 64px) 0 clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.gp-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 520px; background: radial-gradient(ellipse at 50% 0%, rgba(57,255,20,.18), transparent 70%); pointer-events: none; }
.gp-hero__grid { position: relative; display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.gp-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(46px, 8.4vw, 104px); line-height: .95; letter-spacing: -.045em; margin: 10px 0 6px; white-space: nowrap; }
.gp-title span { color: var(--green); }
.gp-tag { font-family: var(--font-hand); font-size: clamp(24px, 3.4vw, 38px); color: var(--orange); transform: rotate(-2deg); margin-bottom: 14px; }
.gp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.gp-cta .btn { flex: 1 1 210px; max-width: 320px; }
.gp-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gp-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.gp-facts b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, 2.4vw, 24px); }
.gp-facts span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.gp-video { position: relative; }
/* the sound button sits on the video itself, not on the caption below it */
.gp-video__frame { position: relative; }
.gp-video__el { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px; background: #0c0f0c; box-shadow: var(--shadow-lg); cursor: pointer; }
.gp-video__sound { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: rgba(15,17,14,.82); color: #fff; font-weight: 700; font-size: 13.5px; backdrop-filter: blur(6px); }
.gp-video__sound:hover { background: var(--ink); }
.note--gp { position: absolute; right: -6px; top: -26px; font-family: var(--font-hand); font-size: clamp(20px, 2.4vw, 28px); color: var(--green-ink); transform: rotate(6deg); }

/* ---------- roller ---------- */
.gp-roll { display: grid; gap: clamp(22px, 4vw, 48px); align-items: center; }
.gp-roll__stage { display: grid; gap: 14px; justify-items: center; }
#rollCanvas { width: min(100%, 420px); height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 24px; background: #eef1ec; box-shadow: var(--shadow-lg); transition: border-radius .25s; }
body.circle #rollCanvas, body.circle #ownCanvas { border-radius: 50%; }
.gp-roll__tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gp-roll__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 28px); margin-top: 4px; }
.gp-roll__bio { color: var(--ink-2); font-style: italic; margin-bottom: 14px; }
.gp-traits { display: grid; gap: 6px; }
.gp-trait { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.gp-trait .k { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; width: 88px; flex: none; }
.gp-trait .v { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.gp-trait .p { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- stages ---------- */
.gp-stages { display: grid; gap: 14px; margin: 26px 0 16px; }
.gp-stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); overflow: hidden; }
.gp-stage--hot { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft), var(--shadow); }
.gp-stage__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gp-stage__n { font-family: var(--font-display); font-weight: 900; font-size: 13px; color: var(--green-ink); letter-spacing: .1em; text-transform: uppercase; }
.gp-stage__state { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #f0f2ee; color: var(--muted); }
.gp-stage h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 4px; }
.gp-stage__price { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin: 10px 0 2px; }
.gp-stage__price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.gp-stage p { color: var(--ink-2); font-size: 14.5px; }
.gp-odds { display: grid; gap: 4px; margin-top: 14px; }
.gp-odd { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.gp-odd .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gp-odd .bar i { display: block; height: 100%; border-radius: 999px; }
.gp-odd .num { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; }
.b-legendary { background: linear-gradient(90deg, #ffd25e, #e0a100); }
.b-epic { background: linear-gradient(90deg, #c9a6ff, #8b5cf6); }
.b-rare { background: linear-gradient(90deg, #8ec5ff, #2f6fde); }
.b-uncommon { background: linear-gradient(90deg, #8ae57f, #12b812); }
.b-common { background: linear-gradient(90deg, #d5d9d2, #a9b0a6); }

/* ---------- rarity ---------- */
.gp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 34px; }
.gp-tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.gp-tier b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.gp-tier span { font-size: 12px; color: var(--muted); }
.gp-tier .pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.gp-traitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 16px 0 24px; }
.gp-traitcard { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
.gp-traitcard b { font-weight: 700; }
.gp-traitcard span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- owners ---------- */
.gp-own { display: grid; gap: 18px; margin-top: 24px; }
.gp-own__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.gp-field { display: grid; gap: 6px; flex: 1 1 220px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.gp-field input { padding: 12px 16px; border: 1px solid var(--line2); border-radius: 999px; font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: normal; }
.gp-field input:focus { outline: 0; border-color: var(--green); }
.gp-own__status { flex-basis: 100%; font-size: 13.5px; color: var(--muted); margin: 0; }
.gp-own__status.ok { color: var(--green-ink); font-weight: 700; }
.gp-own__status.err { color: var(--red); font-weight: 700; }
.gp-wallets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gp-wallets .btn { border: 1.5px solid var(--line2); background: var(--surface); gap: 8px; }
.gp-wallets .btn:hover { border-color: var(--ink); }
.gp-wallets img { border-radius: 5px; }
/* the wallet's own pups: a picker that only appears once a scan finds more than
   nothing. Thumbnails are the same 200px PNGs the explorer grid uses. */
.gp-own__mine { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.gp-own__minehead { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.gp-own__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.gp-own__pup { display: grid; gap: 6px; padding: 8px; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--bg); cursor: pointer; font: inherit; text-align: center; }
.gp-own__pup:hover { border-color: var(--ink); }
.gp-own__pup[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.gp-own__pup img { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 9px; background: #eef1ec; }
.gp-own__pup b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gp-own__result { display: grid; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
#ownCanvas { width: min(100%, 260px); height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 18px; background: #eef1ec; }
.gp-own__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.gp-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.gp-downloads .btn { justify-content: flex-start; }

/* ---------- faq ---------- */
.gp-faqgrid { display: grid; gap: 10px; margin-top: 22px; }
.gp-faqgrid details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); }
.gp-faqgrid summary { font-weight: 700; cursor: pointer; }
.gp-faqgrid details[open] summary { color: var(--green-ink); }
.gp-faqgrid p { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; }

@media (min-width: 720px) {
  .gp-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp-faqgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-own__result { grid-template-columns: auto minmax(0, 1fr); }
}
@media (min-width: 980px) {
  .gp-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .gp-roll { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}
@media (max-width: 560px) {
  .gp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note--gp { display: none; }
}
