:root {
  --bg: #0d1117; --card: #161b22; --field: #0d1117; --border: #30363d;
  --text: #e6edf3; --muted: #8b949e; --accent: #f2f4f3; --accent-2: #ffffff; --on-accent: #0b0f0a;
  --ok: #3fb950; --err: #f85149;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  /* PANZNEXTGEN banner art at the top, faded into the dark page so text stays readable. */
  background: linear-gradient(rgba(13, 17, 23, .45), rgba(13, 17, 23, .85) 280px, var(--bg) 460px),
    url(img/banner.jpg) top center / max(100%, 1500px) auto no-repeat, var(--bg);
  color: var(--text); font: 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 18px; }
.logo { width: 26px; height: 26px; border-radius: 50%; }
.only-here { margin: 0; max-width: 440px; text-align: center; color: var(--text); font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
main { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 16px 64px; }
.card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; position: relative; }
.card.small { padding: 16px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
h1, h2 { margin: 0; font-size: 18px; }
h2 { margin-bottom: 8px; font-size: 15px; color: var(--muted); }
.slip { color: var(--muted); font-size: 13px; }
.slip input { width: 52px; background: var(--field); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 3px 6px; margin: 0 2px; }
.field { background: var(--field); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.row + .row { margin-top: 6px; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 28px; }
.sym { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; color: var(--text); font-weight: 600; font-size: 15px; }
.bal a { color: var(--accent-2); text-decoration: none; margin-left: 4px; }
.flip { display: block; margin: -10px auto; position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 10px; border: 4px solid var(--card); background: var(--field); color: var(--text); cursor: pointer; font-size: 16px; }
.flip:hover { color: var(--accent-2); }
.details { margin: 14px 2px; display: grid; gap: 6px; font-size: 13px; }
.details div { display: flex; justify-content: space-between; gap: 12px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
code { font-size: 12px; }
.btn { border: 0; border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn.primary { width: 100%; background: var(--accent); color: var(--on-accent); }
.btn.primary:disabled { background: #22301a; color: var(--muted); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent-2); border: 1px solid var(--border); padding: 8px 14px; font-size: 14px; }
.wallet { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 170px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: grid; gap: 2px; }
.menu[hidden] { display: none; }
.menu button { background: none; border: 0; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.menu button:hover { background: var(--field); }
#disconnectBtn { color: var(--err); }
#connectBtn { display: flex; align-items: center; gap: 8px; }
#connectBtn img { width: 18px; height: 18px; border-radius: 4px; }
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--field); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.wallet-opt:hover { border-color: var(--accent); }
.wallet-opt img { width: 32px; height: 32px; border-radius: 8px; }
.wallet-opt small { margin-left: auto; color: var(--ok); font-weight: 400; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.hint a { color: var(--accent-2); }
.status { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; text-align: center; color: var(--muted); overflow-wrap: anywhere; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }
.warn { color: #d29922; } .bad { color: var(--err); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; }
.tabs a { padding: 8px 20px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tabs a.active { background: var(--accent); color: var(--on-accent); }
.view { display: contents; }
.view[hidden] { display: none; }
.claim-amount { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 8px 0 4px; }
.claim-amount b { font-size: 36px; }
.hint.center { text-align: center; margin: 0 0 16px; }
.progress { height: 10px; background: var(--field); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f5c542); transition: width .4s; }
.good { color: var(--ok); }
.hint.top { margin: 0 0 12px; }
.soon { text-align: center; font-size: 28px; font-weight: 700; margin: 24px 0 12px; color: var(--accent-2); }
#signupForm { display: grid; gap: 10px; }
.input { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.input input { background: var(--field); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.input input:focus { outline: none; border-color: var(--accent); }
.addr { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--accent-2); text-decoration: none; word-break: break-all; }
a.addr[href]:hover { text-decoration: underline; }
.faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 14px; }
.links a { color: var(--accent-2); text-decoration: none; }
.links a:hover { text-decoration: underline; }
#verifiedNote { margin-bottom: 12px; }
.founder { margin: 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.founder a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.founder a:hover { text-decoration: underline; }
.soon-img { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: 50% 62%; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 4px; }
/* Bamboolands extras */
body { position: relative; }
main, header { position: relative; z-index: 1; }
.crystals { position: absolute; inset: 0 0 auto 0; height: 420px; overflow: hidden; pointer-events: none; z-index: 0; }
.crystals span { position: absolute; width: 9px; border-radius: 2px;
  clip-path: polygon(50% 0, 100% 18%, 100% 82%, 50% 100%, 0 82%, 0 18%);
  background: linear-gradient(180deg, #fff6c9, #f5c542 55%, #d99a16);
  box-shadow: 0 0 12px #f5c542; opacity: .75; animation: float 6s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-16px) rotate(3deg); } }
.celebrate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .65); }
.celebrate canvas { position: absolute; inset: 0; pointer-events: none; }
.celebrate-card { position: relative; width: min(360px, calc(100% - 32px)); text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.celebrate-card img { width: 110px; height: 110px; }
.celebrate-card img.bounce { animation: bounce 1s ease-in-out infinite alternate; }
@keyframes bounce { from { transform: translateY(0) scale(1); } to { transform: translateY(-14px) scale(1.06); } }
.celebrate-card h1 { margin: 12px 0 6px; font-size: 22px; }
.celebrate-card p { color: var(--muted); margin: 0 0 16px; }
.passport { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.pass-actions { display: flex; gap: 8px; margin-top: 12px; }
.pass-actions .btn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .crystals span, .celebrate-card img.bounce { animation: none; } }
.badge-green { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: #84e01f; color: #0b0f0a; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.copy-row { display: flex; align-items: center; gap: 8px; background: var(--field); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.copy-row code { flex: 1; min-width: 0; word-break: break-all; font-size: 13px; }
.notes { color: var(--muted); font-size: 13px; margin: 0 0 14px; padding-left: 18px; }
.notes li { margin: 4px 0; }
#checkBtn { width: 100%; }
