/* Verify page styles. Matches ballers.blue: navy gradient, Libre Franklin, Archivo Black wordmark,
   orange #ff5c27 / blue #2f8bff / cyan #7fe3ff. Mobile-first. Fonts are self-hosted (SIL OFL, see fonts/README.md). */
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/archivo-black-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-latin.woff2") format("woff2");
}
:root {
  --bg-top: #121736;
  --fg: #e9ecff;
  --muted: #a8b0d8;
  --card: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.16);
  --orange: #ff5c27;
  --ember: #bc2f01;
  --blue: #2f8bff;
  --cyan: #7fe3ff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #151a36; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(60rem 30rem at 0% 0%, rgba(47, 139, 255, 0.22), transparent 60%),
    radial-gradient(50rem 26rem at 100% 0%, rgba(255, 138, 31, 0.16), transparent 60%),
    linear-gradient(180deg, #121736 0%, #1d2343 45%, #151a36 100%);
  background-attachment: fixed;
  padding-bottom: var(--safe-bottom);
  overflow-x: hidden;
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--orange); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* Header (same as ballers.blue) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(64px + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  display: flex;
  align-items: center;
  background: rgba(18, 23, 54, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #e9ecff; border-radius: 8px; }
.bcb-logo {
  width: 34px;
  height: 34px;
  display: block;
  border: 0;
  box-shadow: none;
  background: none;
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.brand:hover .bcb-logo, .brand:focus-visible .bcb-logo { transform: rotate(360deg); }
.wordmark {
  font-family: "Archivo Black", "Libre Franklin", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: #e9ecff;
}
@media (prefers-reduced-motion: reduce) {
  .bcb-logo, .brand:hover .bcb-logo, .brand:focus-visible .bcb-logo { transition: none; transform: none; }
}

main { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }
.hero { text-align: center; margin: 8px 0 16px; }
.hero-logo { width: 72px; height: 72px; display: block; margin: 0 auto 8px; user-select: none; }
h1 {
  margin: 0 0 4px;
  font-family: "Archivo Black", "Libre Franklin", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: 1.7rem;
  line-height: 1.1;
}
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.card h2 { margin-top: 0; }
.group-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 16px 0 8px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 8px; }
.help { color: var(--muted); font-size: 0.9rem; margin: -4px 0 8px; }
a { color: var(--cyan); }
.safe { background: rgba(31, 111, 67, 0.22); border: 1px solid rgba(74, 222, 128, 0.35); padding: 10px 12px; border-radius: 12px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 16px; margin: 16px 0; }
.banner { background: rgba(161, 98, 7, 0.25); border: 1px solid #a16207; padding: 12px; border-radius: 12px; margin: 0 0 16px; }
.banner p { margin: 0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
button, .btn {
  display: block;
  width: 100%;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  min-height: 48px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button:hover, .btn:hover { border-color: var(--blue); background: rgba(255, 255, 255, 0.1); }
button:disabled { opacity: 0.5; cursor: wait; }
button.primary, .btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--ember); text-align: center; }
button.primary:hover, .btn.primary:hover { background: #ff6d3d; }
button.featured { border-color: rgba(127, 227, 255, 0.5); }
small { color: var(--muted); display: block; font-weight: 400; font-size: 0.85rem; margin-top: 2px; }
label { display: block; margin: 12px 0; color: var(--muted); }
input, select, textarea {
  width: 100%;
  margin-top: 4px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(10, 14, 36, 0.6);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
}
textarea { font-family: ui-monospace, monospace; font-size: 0.9rem; }
#status p { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-border); }
.err { background: rgba(139, 42, 68, 0.3) !important; border: 1px solid #8b2a44 !important; }
.ok { background: rgba(31, 111, 67, 0.25) !important; border: 1px solid #1f6f43 !important; }
.tier { font-size: 1.3rem; color: var(--orange); font-weight: 700; margin-top: 0; }
code { background: rgba(10, 14, 36, 0.6); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.actions .btn { text-align: center; }
.device-hint { font-size: 0.9rem; color: var(--muted); margin: 8px 0 0; }
.wallet-list { list-style: none; padding: 0; margin: 0; }
.wallet-list > li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.wallet-list > li:last-child { border-bottom: 0; }
.wallet-list .chain { display: block; font-weight: 700; }
.wallet-list .addr, .linked-addrs .addr { font-family: ui-monospace, monospace; font-size: 0.9rem; color: var(--muted); word-break: break-all; }
.wallet-list ul { list-style: none; padding: 0; margin: 6px 0 0; }
.wallet-list ul li { padding: 2px 0; }
.wallet-list details { margin-top: 4px; }
.wallet-list details summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.linked-addrs { padding-left: 18px; }
.back { text-align: center; margin-top: 32px; }

@media (min-width: 640px) {
  main { padding: 32px 16px 64px; }
  h1 { font-size: 2.1rem; }
  .hero-logo { width: 88px; height: 88px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions button, .actions .btn { width: auto; flex: 1 1 200px; }
}
#cosmosPick { margin-top: 12px; font-size: 0.9rem; }
.age-check { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text, #e9ecff); }
.age-check input { width: 18px; height: 18px; margin: 0; }

/* "pending check" next to a linked wallet (no holder roles until the safety check passes) */
#walletList .pending { color: #ffc46b; margin-left: 6px; font-size: 0.85em; }

#gates { margin-top: 16px; }
#gates .sub { margin-bottom: 12px; }
.sign-disclosure {
  background: rgba(47, 139, 255, 0.12);
  border: 1px solid rgba(127, 227, 255, 0.35);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--fg);
  margin: 0 0 16px;
}
.sign-disclosure-inline { margin: 0 0 12px; }
#signInDiscord { text-align: center; }
