/* WILDCAP shared chrome: tokens, type, buttons, cards, nav, CA strip, countdown, toast, footer.
   Bright daylight pastel. Chunky rounded type. No serif, no mono. */
@import url('/assets/fonts/fonts.css');

:root {
  color-scheme: light;
  /* sky + land */
  --sky: #bfe6ff;
  --sky-2: #e3f4ff;
  --sky-deep: #7cc6f5;
  --cloud: #ffffff;
  --cream: #fffaf0;
  --sand: #ffefd2;
  --mint: #b6f0d3;
  --grass: #5cc98a;
  --grass-deep: #2f9e63;
  /* accents */
  --coral: #ff6f5e;
  --coral-deep: #e2493a;
  --sun: #ffd23f;
  --sun-deep: #f0b400;
  --berry: #b06bff;
  /* text */
  --ink: #1c2742;
  --ink-2: #4b5878;
  --muted: #7a87a3;
  --line: rgba(28, 39, 66, 0.12);
  --line-2: rgba(28, 39, 66, 0.22);
  --panel: #ffffff;
  --panel-2: #f6fbff;
  /* market */
  --up: #22b573;
  --down: #f2545b;
  /* rarity */
  --r-common: #8fa3ba;
  --r-uncommon: #3fbf7f;
  --r-rare: #3a9bff;
  --r-epic: #a65cff;
  --r-legendary: #ffae1a;
  --shiny: linear-gradient(120deg, #ffd23f, #ff7ac6 35%, #7ad7ff 70%, #b6f0d3);

  --f-display: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 4px 0 rgba(28, 39, 66, 0.14), 0 14px 34px rgba(28, 39, 66, 0.1);
  --shadow-sm: 0 3px 0 rgba(28, 39, 66, 0.14);
  --gutter: 16px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky-2);
  color: var(--ink);
  font: 500 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--sun); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── type ───────────────────────────────────────────── */
.display { font: 800 clamp(40px, 7vw, 92px)/0.95 var(--f-display); letter-spacing: -0.02em; margin: 0; }
.h1 { font: 800 clamp(34px, 5vw, 60px)/1 var(--f-display); letter-spacing: -0.015em; margin: 0 0 12px; }
.h2 { font: 800 clamp(26px, 3.4vw, 40px)/1.05 var(--f-display); letter-spacing: -0.01em; margin: 0 0 12px; }
.h3 { font: 800 20px/1.2 var(--f-display); margin: 0 0 6px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; }
.eyebrow { font: 800 12px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-weight: 800; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; }

/* ── buttons: chunky game pills ─────────────────────── */
.btn {
  --b: var(--panel); --b-edge: rgba(28, 39, 66, 0.18); --b-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--b); color: var(--b-ink);
  font: 800 15px/1 var(--f-body); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn[aria-disabled='true'], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { --b: var(--coral); --b-ink: #fff; }
.btn-primary:hover { --b: var(--coral-deep); }
.btn-sun { --b: var(--sun); }
.btn-grass { --b: var(--grass); --b-ink: #fff; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.btn-sm:active { box-shadow: 0 0 0 var(--ink); }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 18px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--panel); color: var(--ink);
  box-shadow: 0 3px 0 var(--ink); text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

/* ── cards: stickers with an ink edge ───────────────── */
.card {
  background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink); padding: 20px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--panel); font: 800 12px/1.2 var(--f-body); letter-spacing: 0.04em; text-transform: uppercase;
}
.chip[data-r='common'] { background: #e6edf5; }
.chip[data-r='uncommon'] { background: #c9f2dc; }
.chip[data-r='rare'] { background: #cfe6ff; }
.chip[data-r='epic'] { background: #ead9ff; }
.chip[data-r='legendary'] { background: #ffe3a8; }
.chip[data-r='shiny'] { background: var(--shiny); }
.up { color: var(--up); } .down { color: var(--down); }

/* ── navbar ─────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background 0.2s, box-shadow 0.2s; }
.nav.is-solid, .nav.solid { background: rgba(255, 250, 240, 0.92); backdrop-filter: blur(10px); box-shadow: 0 2px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; width: min(1280px, 100% - 2 * var(--gutter)); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--f-display); letter-spacing: -0.01em; }
.nav-logo svg, .nav-logo img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.nav-links a[aria-current='page'] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }
.nav-drawer { display: none; }
@media (max-width: 860px) {
  .nav-links, .btn-buy .long { display: none; }
  .nav-burger { display: inline-grid; }
  .nav-drawer.open {
    display: flex; flex-direction: column; position: fixed; z-index: 49; top: var(--nav-h); left: var(--gutter); right: var(--gutter);
    padding: 10px; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink);
  }
  .nav-drawer a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; }
  .nav-drawer a:hover { background: var(--sky-2); }
}
@media (max-width: 420px) { .nav [data-link] { display: none; } }

/* ── CA strip ───────────────────────────────────────── */
.ca {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 8px 8px 8px 14px;
  background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); max-width: 100%;
}
.ca-label { font: 800 12px/1 var(--f-body); letter-spacing: 0.12em; padding: 6px 9px; border-radius: 999px; background: var(--sun); border: 2px solid var(--ink); }
.ca-addr { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.ca-addr.pending { color: var(--muted); }
@media (max-width: 520px) { .ca { border-radius: var(--radius); } }

/* ── countdown ──────────────────────────────────────── */
.countdown { display: inline-flex; gap: 8px; }
.countdown .cell {
  min-width: 62px; padding: 8px 6px 6px; text-align: center; background: var(--panel);
  border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
}
.countdown b { display: block; font: 800 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 4px; font: 800 10px/1 var(--f-body); letter-spacing: 0.14em; color: var(--muted); }
.countdown .live { background: var(--grass); color: #fff; }
.countdown .live small { color: rgba(255, 255, 255, 0.85); }

/* ── toast ──────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 999px; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2); transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── footer ─────────────────────────────────────────── */
.foot { background: var(--cream); border-top: 2px solid var(--ink); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.foot h4 { font: 800 13px/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; font-weight: 700; }
.foot ul a:hover { color: var(--coral-deep); }
.foot-word { font: 800 clamp(64px, 17vw, 230px)/0.85 var(--f-display); letter-spacing: -0.04em; color: var(--sky); margin: 36px 0 18px; -webkit-text-stroke: 2px var(--ink); user-select: none; }
.foot-legal { font-size: 13px; color: var(--muted); max-width: 110ch; margin: 0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
.ca-soon { font: 800 15px/1 var(--f-display); color: var(--coral-deep); letter-spacing: 0.02em; }
.ca-when { color: var(--muted); font-weight: 700; }
@media (max-width: 520px) { .ca-when { display: none; } }
