/* TokrPAD - one light look. Marker doodles on white paper.
   Tokens first; components after; page-specific blocks at the end. */

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --panel: #F7F8F5;
  --ink: #111111;
  --muted: #5A5E57;
  --faint: #8A8E86;
  --line: #E6E8E3;
  --mint: #3DDC84;
  --mint-soft: #E4F8EC;
  --green: #12924A;
  --red: #B42A35;
  --red-soft: #FBECEC;

  --marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --body: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* hand-cut corners: never quite the same on every side */
  --wob: 14px 18px 13px 17px / 17px 13px 18px 14px;
  --wob-sm: 9px 12px 8px 11px / 11px 8px 12px 9px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --max: 1200px;
  --gut: 16px;
}
@media (min-width: 720px) { :root { --gut: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--ink); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.marker, h1, .h2m { font-family: var(--marker); font-weight: 400; letter-spacing: .005em; line-height: 1.08; }

/* marker highlight under key words */
.hl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15c30-6 62-8 98-7 34 1 62 3 96 0l1 7c-36 4-64 3-98 2-35-1-66 0-96 5z' fill='%233DDC84'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% .5em; background-position: 0 92%;
  padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.at { color: var(--green); font-weight: 700; }
.tk { color: var(--green); font-weight: 700; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: var(--wob-sm);
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--panel); }
.btn-mint { background: var(--mint); box-shadow: var(--shadow); }
.btn-mint:hover { background: var(--mint); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-mint:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn img { width: 18px; height: 18px; border-radius: 4px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------- header ---------- */
.topo {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 2px solid var(--ink);
}
.topo-in { max-width: var(--max); margin-inline: auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.logo img { width: 38px; height: 38px; mix-blend-mode: multiply; }
.logo span { font-family: var(--marker); font-size: 23px; line-height: 1; transform: translateY(1px); }
.nav { display: none; align-items: center; gap: 2px; margin-left: 10px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--wob-sm); color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a.on { color: var(--ink); background: var(--mint-soft); }
.topo .sp { flex: 1; }
.busca-top {
  display: none; align-items: center; gap: 8px; flex: 1; max-width: 300px; margin-left: auto;
  border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--faint); background: var(--paper);
}
.busca-top:focus-within { border-color: var(--ink); }
.busca-top svg { width: 16px; height: 16px; flex: none; }
.busca-top input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14px; color: var(--ink); min-width: 0; }
.busca-top input::placeholder { color: var(--faint); }
.ico {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--wob-sm);
  border: 0; background: transparent; color: var(--ink); flex: none; text-decoration: none;
}
.ico:hover { background: var(--panel); }
.ico svg { width: 18px; height: 18px; }
.btn-ca {
  min-height: 40px; padding: 6px 10px; border: 0; border-radius: var(--wob-sm); background: transparent;
  font-family: var(--mono); font-weight: 600; font-size: 13px; flex: none; display: inline-flex; align-items: center; gap: 6px;
}
/* sem bolinha: so o texto CA */
.btn-ca:hover { background: var(--mint-soft); }
.btn-ca.vazio { opacity: .5; cursor: default; }
.btn-ca.ok { background: var(--mint); }
.btn-wallet { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.menu-btn { display: inline-grid; }
.menu-btn svg { width: 22px; height: 22px; }

/* mobile menu: the nav drops under the header */
.topo.menu-aberto .nav {
  display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%;
  margin: 0; padding: 8px var(--gut) 16px; background: var(--paper); border-bottom: 2px solid var(--ink); gap: 2px;
}
.topo.menu-aberto .nav a { padding: 12px; font-size: 17px; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .busca-top { display: flex; }
  .topo.menu-aberto .nav { position: static; flex-direction: row; padding: 0; border: 0; margin-left: 10px; }
  .topo.menu-aberto .nav a { padding: 8px 12px; font-size: 15px; }
}
@media (max-width: 899px) { .topo .sp-m { flex: 1; } }
@media (max-width: 420px) {
  .topo-in { gap: 6px; }
  .logo span { font-size: 20px; }
  .logo img { width: 32px; height: 32px; }
  .btn-wallet { padding: 6px 10px; font-size: 13px; }
  .btn-ca { padding: 6px 9px; }
}
@media (max-width: 359px) { .logo span { display: none; } }

/* ---------- footer ---------- */
.pe { margin-top: 72px; border-top: 2px solid var(--ink); background: var(--panel); }
.pe-in { max-width: var(--max); margin-inline: auto; padding: 28px var(--gut) 40px; display: grid; gap: 14px; }
.pe .logo img { width: 30px; height: 30px; }
.pe .logo span { font-size: 19px; }
.pe p { margin: 0; color: var(--muted); font-size: 14px; max-width: 62ch; }
.pe nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.pe nav a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pe nav a:hover { text-decoration-color: var(--mint); }

/* ---------- shared bits ---------- */
.painel { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--wob); padding: 22px; }
.cartao { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob); padding: 20px; }
.doodle { mix-blend-mode: multiply; user-select: none; pointer-events: none; }
.secao { margin-top: 72px; }
.secao-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.secao-head h2, .h2m { font-family: var(--marker); font-weight: 400; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; }
.secao-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.nota { color: var(--muted); font-size: 14px; }
.nota b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.link-chain { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link-chain:hover { color: var(--ink); text-decoration-color: var(--mint); }
.mono.link-chain, td .link-chain { font-family: var(--mono); font-size: 13px; }

.vazio { color: var(--muted); font-size: 15px; grid-column: 1 / -1; padding: 8px 0; margin: 0; }
.vazio-img { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px; }
.vazio-img::before {
  content: ""; width: 132px; height: 132px; background: url(/assets/doodle/web/vazio.png) center / contain no-repeat;
  mix-blend-mode: multiply;
}

/* toast (app.js and chrome.js share #toast) */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: var(--wob-sm);
  box-shadow: 4px 4px 0 var(--mint); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100;
  max-width: calc(100vw - 32px); overflow-wrap: anywhere;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* CA row inside cards */
.ca-row {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: var(--wob-sm);
  background: var(--panel); border: 1.5px solid var(--line); cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.ca-row:hover { border-color: var(--ink); }
.ca-row .ca-lbl { font-family: var(--mono); font-weight: 700; font-size: 11px; background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 6px; flex: none; }
.ca-row .ca-addr { font-family: var(--mono); font-size: 13px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-row .ca-ic { display: grid; place-items: center; color: var(--muted); flex: none; }
.ca-row .ca-ic svg { width: 15px; height: 15px; }
.ca-row.copiado { border-color: var(--green); background: var(--mint-soft); }
.ca-row.copiado .ca-addr::after { content: "  copied"; color: var(--green); font-weight: 700; }

/* ---------- home: hero ---------- */
.hero { display: grid; gap: 28px; padding-block: 36px 8px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 40px; padding-block: 56px 16px; } }
.hero h1 { font-size: clamp(44px, 8.4vw, 84px); line-height: 1.02; }
.hero-sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 20px 0 0; max-width: 46ch; }
.hero-sub b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.hero-ca { font-family: var(--mono); font-size: 14px; }
.hero-ca .ca-lbl { color: var(--muted); font-weight: 600; }
.hero-arte { position: relative; max-width: 560px; justify-self: center; width: 100%; }
.hero-arte img { width: 100%; height: auto; }
.bolha {
  position: absolute; left: 0; bottom: 4%; max-width: 88%;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob); box-shadow: var(--shadow);
  padding: 10px 14px 10px 12px; display: flex; gap: 10px; align-items: center; transform: rotate(-3deg);
}
.bolha .av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); flex: none; object-fit: cover; background: var(--mint); }
.bolha .quem b { color: var(--ink); }
.bolha .txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bolha .quem { font-size: 12px; color: var(--muted); }
.bolha .msg { font-size: clamp(15px, 2.6vw, 18px); font-weight: 600; }

/* stats strip */
.placar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
@media (min-width: 760px) { .placar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.placar > div { border: 2px solid var(--ink); border-radius: var(--wob); padding: 14px 16px; background: var(--paper); min-width: 0; }
.placar .k { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.placar .v { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(20px, 3vw, 26px); font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }

/* how it works: 4 steps */
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: p; }
@media (min-width: 620px) { .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .passos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.passo { position: relative; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--wob); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.passo img { width: 112px; height: 112px; object-fit: contain; margin: -4px 0 2px -6px; }
.passo .n { position: absolute; top: 14px; right: 16px; font-family: var(--marker); font-size: 30px; line-height: 1; color: var(--green); }
.passo h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.passo p { margin: 0; color: var(--muted); font-size: 15px; }
.passo p b { color: var(--ink); }
.passo code { font-size: 13px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.seta { display: none; }
@media (min-width: 1000px) {
  .seta { display: block; position: absolute; right: -27px; top: 52px; width: 34px; height: 22px; color: var(--ink); z-index: 2; }
  .passo:last-child .seta { display: none; }
}

/* comment template + rules */
.modelo-bloco { display: grid; gap: 16px; margin-top: 22px; }
/* copiar em cima, regras lado a lado embaixo, mesma altura */
.modelo { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.modelo h3 { font-size: 18px; font-weight: 800; }
.modelo-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel); border: 1.5px dashed var(--ink); border-radius: var(--wob-sm); padding: 10px 10px 10px 14px; }
.modelo-linha code { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.dica { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14.5px; color: var(--muted); }
.dica b { color: var(--ink); }
.dica svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 1px; }
.regras { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .regras { grid-template-columns: 1fr 1fr; } }
.regras > div { border: 2px solid var(--line); border-radius: var(--wob); padding: 14px 16px; background: var(--paper); }
.regras h4 { margin: 0 0 8px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.regras .ok h4 { color: var(--green); }
.regras .nao h4 { color: var(--red); }
.regras ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.regras code { font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.regras .nao code { text-decoration: line-through; text-decoration-color: var(--red); }
.regras .nao li span { display: block; color: var(--red); font-size: 12.5px; }

/* fresh launches carousel (app.js) */
.carrossel {
  overflow: hidden; padding: 6px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.carrossel-fita { display: flex; width: max-content; animation: rola var(--dur, 40s) linear infinite; }
.carrossel:hover .carrossel-fita, .carrossel:focus-within .carrossel-fita { animation-play-state: paused; }
@keyframes rola { to { transform: translateX(-50%); } }
.card {
  flex: none; width: 210px; margin-right: 14px; display: block; text-decoration: none;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob); overflow: hidden;
}
a.card:hover { box-shadow: var(--shadow-sm); }
.card-capa { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel); border-bottom: 2px solid var(--ink); }
.capa-vazia { background: var(--panel) url(/assets/doodle/web/avatar.png) center / 56px no-repeat; }
.card-corpo { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.card-nome { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-ticker { font-family: var(--mono); font-size: 12px; color: var(--green); font-weight: 600; }
.card-ticker::before { content: "$"; }
.card-meta { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .ca-row { margin-top: 6px; padding: 5px 8px; }
.card .ca-row .ca-addr { font-size: 12px; }

/* coins grid */
.controles { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.busca {
  flex: 1 1 240px; min-width: 0; min-height: 44px; border: 2px solid var(--ink); border-radius: var(--wob-sm);
  padding: 9px 14px; background: var(--paper); font-size: 15px; outline: none;
}
.busca:focus { box-shadow: var(--shadow-sm); }
.busca::placeholder { color: var(--faint); }
.abas { display: flex; gap: 6px; flex-wrap: wrap; }
.aba { min-height: 40px; padding: 7px 14px; border: 2px solid var(--line); border-radius: var(--wob-sm); background: var(--paper); font-weight: 700; font-size: 14px; color: var(--muted); }
.aba:hover { border-color: var(--ink); color: var(--ink); }
.aba.ativa { background: var(--ink); border-color: var(--ink); color: #fff; }

.grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.tc {
  position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob);
  padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tc-clicavel { cursor: pointer; }
.tc-clicavel:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.tc-abrir { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tc .ca-row { position: relative; z-index: 2; }
.tc-topo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tc-anel { position: relative; width: 76px; height: 76px; flex: none; }
.tc-anel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-anel-fundo { fill: none; stroke: var(--line); stroke-width: 6; }
.tc-anel-cheio { fill: none; stroke: var(--mint); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray 1.1s cubic-bezier(.3, .8, .3, 1); }
.tc-anel-cheio.completo { stroke: var(--green); }
.tc-foto { position: absolute; left: 10px; top: 10px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--panel); border: 2px solid var(--ink); }
.tc-foto.capa-vazia { background: var(--panel) url(/assets/doodle/web/avatar.png) center / 34px no-repeat; }
.tc-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-nome-linha { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tc-nome { font-weight: 800; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tc-clicavel:hover .tc-nome { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tc-ticker { font-family: var(--mono); font-size: 13px; color: var(--green); font-weight: 600; }
.tc-autor { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-mc { display: flex; flex-direction: column; gap: 0; }
.tc-mc-val { font-family: var(--mono); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tc-mc-sub { font-size: 13px; color: var(--muted); }
.tc-mc-sub b { color: var(--ink); font-weight: 700; }
.tc-spark { height: 60px; }
.tc-spark svg { display: block; width: 100%; height: 60px; }
.tc-spark-base { stroke: var(--line); stroke-width: 1; }
.tc-spark-area { fill: rgba(61, 220, 132, .18); }
.tc-spark-linha { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: desenha 1.2s ease-out both; }
.tc-spark-fim { fill: var(--ink); }
.tc-spark-vazio { height: 60px; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: var(--wob-sm); color: var(--faint); font-size: 13px; }
.tc-ao-vivo .tc-spark-linha { animation: none; }
.tc-ao-vivo .tc-anel-cheio { transition: none; }
@keyframes desenha { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.tc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-stat { background: var(--panel); border-radius: var(--wob-sm); padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.tc-stat-rot { font-size: 12px; color: var(--muted); }
.tc-stat-val { font-family: var(--mono); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* creator call-out band */
.faixa-criador { display: grid; gap: 18px; align-items: center; margin-top: 72px; background: var(--mint-soft); border: 2px solid var(--ink); border-radius: var(--wob); padding: 22px; }
@media (min-width: 760px) { .faixa-criador { grid-template-columns: auto 1fr auto; padding: 22px 28px; } }
.faixa-criador img { width: 110px; height: 110px; }
.faixa-criador h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; }
.faixa-criador p { margin: 6px 0 0; color: var(--muted); max-width: 54ch; }

/* reveal on scroll (app.js adds .rv only below the fold) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.visto { opacity: 1; transform: none; }

/* ---------- inner pages ---------- */
.pg { max-width: var(--max); margin-inline: auto; padding: 36px var(--gut) 0; }
.pg-head { display: grid; gap: 18px; align-items: center; margin-bottom: 36px; }
@media (min-width: 760px) { .pg-head.com-arte { grid-template-columns: 1fr auto; } }
.pg-head h1 { font-size: clamp(36px, 6vw, 60px); }
.pg-head p { margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 18px); max-width: 60ch; }
.pg-head .arte { width: clamp(120px, 18vw, 190px); height: auto; justify-self: start; }
.pg-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 8px; }

.pg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .pg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-stat { border: 2px solid var(--ink); border-radius: var(--wob); padding: 14px 16px; background: var(--paper); min-width: 0; display: flex; flex-direction: column; }
.pg-stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.pg-stat .v { font-family: var(--mono); font-weight: 700; font-size: clamp(18px, 2.6vw, 24px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.pg-sec { margin-top: 56px; }
.pg-sec > h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(26px, 3.8vw, 34px); line-height: 1.1; }
.pg-lead { color: var(--muted); margin: 6px 0 18px; max-width: 66ch; }

.pg-table { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--wob); background: var(--paper); }
.pg-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pg-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 11px 14px; background: var(--panel); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.pg-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pg-table tr:last-child td { border-bottom: 0; }
.pg-table td.mono { font-size: 13px; white-space: nowrap; }
.atualizado { color: var(--faint); font-size: 13px; margin: 12px 0 0; }

/* proofs */
.casa-linha { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; color: var(--muted); }
.casa-linha b { color: var(--ink); }
.casa-linha .link-chain { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; word-break: break-all; }
.queima-head { display: grid; gap: 16px; align-items: center; }
@media (min-width: 640px) { .queima-head { grid-template-columns: auto 1fr; } }
.queima-head img { width: 130px; height: 130px; }

/* token page */
.tk-topo { display: grid; gap: 24px; align-items: start; }
@media (min-width: 820px) { .tk-topo { grid-template-columns: 340px 1fr; gap: 36px; } }
.tk-capa { border: 2px solid var(--ink); border-radius: var(--wob); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); max-width: 220px; }
@media (min-width: 820px) { .tk-capa { max-width: 420px; } }
.tk-capa img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.tk-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tk-info h1 { font-size: clamp(36px, 6vw, 58px); overflow-wrap: anywhere; }
.tk-ticker { font-family: var(--mono); font-size: .42em; color: var(--green); font-weight: 700; vertical-align: middle; letter-spacing: 0; }
.tk-autor { margin: 0; color: var(--muted); }
.tk-autor a { color: var(--green); font-weight: 700; }
.tk-ca {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; padding: 10px 12px;
  border: 2px solid var(--ink); border-radius: var(--wob-sm); background: var(--panel); text-align: left; cursor: pointer;
}
.tk-ca:hover { background: var(--mint-soft); }
.tk-ca-lbl { font-family: var(--mono); font-weight: 700; font-size: 12px; background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 7px; flex: none; }
.tk-ca-addr { font-family: var(--mono); font-size: 13.5px; flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.tk-ca-ic svg { width: 16px; height: 16px; display: block; }
.tk-ca.copiado { background: var(--mint); }
.tk-ca.copiado .tk-ca-addr::after { content: "  copied"; font-weight: 700; }
.tk-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-nums { margin-top: 32px; }
.tk-criador { display: grid; gap: 16px; align-items: center; margin-top: 32px; }
@media (min-width: 760px) { .tk-criador { grid-template-columns: auto 1fr auto; } }
.tk-criador img { width: 96px; height: 96px; }
.tk-criador h2 { font-family: var(--marker); font-weight: 400; font-size: 28px; }
.tk-criador p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.tk-aviso { margin: 20px 0 0; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: var(--wob-sm); background: var(--panel); color: var(--ink); font-weight: 600; max-width: 760px; }

/* creator page */
.criador-form { display: grid; gap: 10px; }
.criador-form label { font-weight: 700; font-size: 15px; }
.campo-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.campo-at { flex: 1 1 240px; display: flex; align-items: center; min-width: 0; border: 2px solid var(--ink); border-radius: var(--wob-sm); background: var(--paper); padding-left: 14px; }
.campo-at:focus-within { box-shadow: var(--shadow-sm); }
.campo-at span { font-weight: 700; color: var(--muted); }
.campo-at input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 11px 14px 11px 4px; font-size: 16px; }
#resultado, #painel-wallet { margin-top: 18px; display: grid; gap: 10px; }
#resultado > p, #painel-wallet > p { margin: 0; }
#resultado button, #painel-wallet button {
  justify-self: start; min-height: 46px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: var(--wob-sm);
  background: var(--mint); box-shadow: var(--shadow); font-weight: 700; font-size: 15px;
}
#resultado button:hover, #painel-wallet button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
#resultado button:disabled, #painel-wallet button:disabled { opacity: .6; transform: none; cursor: default; }
#resultado button.sec, #painel-wallet button.sec { background: var(--paper); box-shadow: none; }
.aviso { color: var(--muted); font-size: 14.5px; }
.status-verif { padding: 10px 12px; border: 1.5px dashed var(--ink); border-radius: var(--wob-sm); background: var(--paper); }
.status-verif.ok { border-style: solid; border-color: var(--green); background: var(--mint-soft); color: var(--ink); font-weight: 600; }
.codigo {
  justify-self: start; font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 5vw, 30px); letter-spacing: .06em;
  padding: 12px 18px; border: 2px dashed var(--ink); border-radius: var(--wob-sm); background: var(--mint-soft); user-select: all; overflow-wrap: anywhere;
}
.linha { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.linha:last-child { border-bottom: 0; }
.linha .capa { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.linha .quem { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.linha .arroba { font-weight: 700; overflow-wrap: anywhere; }
.linha .sobre { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha .valor { font-family: var(--mono); font-weight: 700; font-size: 14px; white-space: nowrap; }
.grade-acoes { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.grade-fila { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ou-login { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--line); color: var(--muted); font-size: 15px; }

.passos-3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .passos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.passos-3 li { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--wob); padding: 18px; }
.passos-3 .n { font-family: var(--marker); font-size: 30px; color: var(--green); line-height: 1; }
.passos-3 h3 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.passos-3 p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* docs */
.docs-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .docs-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 44px; } }
.docs-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.docs-nav a { flex: none; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 7px 12px; border: 1.5px solid var(--line); border-radius: var(--wob-sm); background: var(--paper); }
.docs-nav a:hover { color: var(--ink); border-color: var(--ink); }
.docs-nav a.ativo { color: var(--ink); background: var(--mint-soft); border-color: var(--ink); }
@media (min-width: 960px) {
  .docs-nav { position: sticky; top: 88px; align-self: start; flex-direction: column; overflow: visible; }
  .docs-nav a { border-color: transparent; background: transparent; }
  .docs-nav a.ativo { border-color: var(--ink); }
}
.docs-conteudo { display: grid; gap: 18px; min-width: 0; max-width: 780px; }
.doc-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob); padding: 22px; scroll-margin-top: 88px; min-width: 0; }
.doc-card h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.12; margin-bottom: 10px; }
.doc-card h3 { font-size: 19px; font-weight: 800; margin: 2px 0 8px; }
.doc-card p, .doc-card li { color: #33362f; }
.doc-card p { margin: 0 0 12px; }
.doc-card p:last-child { margin-bottom: 0; }
.doc-card ul, .doc-card ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.doc-card strong { color: var(--ink); }
.doc-card code { font-size: .9em; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.doc-card.doc-short { background: var(--mint-soft); }
.doc-num { display: block; font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.doc-cmd { margin: 6px 0 14px; padding: 12px 14px; border: 1.5px dashed var(--ink); border-radius: var(--wob-sm); background: var(--panel); }
.doc-cmd code { background: none; border: 0; padding: 0; font-size: 16px; }
.doc-split { display: grid; grid-template-columns: 4fr 1fr; gap: 0; margin: 4px 0 16px; border: 2px solid var(--ink); border-radius: var(--wob-sm); overflow: hidden; }
.doc-split > div { padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.doc-split .s-80 { background: var(--mint); }
.doc-split .s-20 { background: var(--ink); color: #fff; }
.doc-split .v { font-family: var(--mono); font-weight: 700; font-size: 22px; }
.doc-split .k { font-size: 13px; font-weight: 600; }
.doc-steps { counter-reset: s; }
.doc-dl { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0 0 12px; }
@media (min-width: 560px) { .doc-dl { grid-template-columns: 170px 1fr; } }
.doc-dl dt { font-weight: 700; }
.doc-dl dd { margin: 0 0 8px; color: var(--muted); }
.doc-version { color: var(--muted); font-size: 14px; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1.5px solid var(--line); border-radius: var(--wob-sm); padding: 0 14px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
.faq details p { margin: 0 0 12px; color: var(--muted); }
.doc-single { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .carrossel { overflow-x: auto; }
  .carrossel-fita, .tc-spark-linha { animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .tc-clicavel:hover, .btn-mint:hover { transform: none; }
}

/* header extras: X lives in the menu on small screens */
.nav-x { display: block; }
.ico-x { display: none; }
@media (min-width: 520px) { .ico-x { display: inline-grid; } }
@media (min-width: 900px) { .nav-x { display: none; } }

/* Home: pareamento na moeda-base */
.par { display: grid; gap: 20px; align-items: center; background: var(--mint-soft); border: 2px solid var(--ink); border-radius: var(--wob); padding: 24px var(--gut); box-shadow: var(--shadow); }
@media (min-width: 860px) { .par { grid-template-columns: 260px 1fr; gap: 36px; padding: 32px 40px; } }
.par-arte img { width: min(220px, 60vw); margin-inline: auto; }
.par-txt > p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.rota { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 18px 0 6px; }
.rota span { font-family: var(--mono); font-weight: 700; font-size: 15px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob-sm); padding: 6px 12px; }
.rota span.mint { background: var(--mint); box-shadow: var(--shadow-sm); }
.rota svg { width: 30px; height: 20px; flex: none; }
.par-lista { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.par-lista li { position: relative; padding-left: 26px; color: var(--muted); }
.par-lista li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }
.par-lista b { color: var(--ink); }

/* selo da moeda-base na faixa do $TPAD */
.par-arte { display: grid; place-items: center; }
.selo { width: min(230px, 62vw); aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; animation: flutua 5s ease-in-out infinite; }
.selo { overflow: hidden; }
.selo img { width: 86%; height: auto; margin: 0; transform: rotate(-6deg); mix-blend-mode: multiply; }
.rota svg { animation: seta 1.8s ease-in-out infinite; }
.rota svg:nth-of-type(2) { animation-delay: .35s; }
.rota span.mint { animation: pulso 1.8s ease-in-out infinite .2s; }

/* movimento: entrada da home, flutuar, mexer no hover */
.hero h1 { animation: sobe .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-sub { animation: sobe .7s cubic-bezier(.2,.8,.2,1) .12s both; }
.hero-cta { animation: sobe .7s cubic-bezier(.2,.8,.2,1) .22s both; }
.hero .hl { background-size: 0% .5em; animation: risca .8s ease-out .6s forwards; }
.hero-arte > img { animation: entra-arte .9s cubic-bezier(.2,.8,.2,1) .1s both, flutua 6s ease-in-out 1s infinite; }
.bolha { animation: entra-bolha .6s cubic-bezier(.3,1.4,.5,1) .9s both, balanca 4s ease-in-out 1.6s infinite; }
.placar > div { animation: sobe .6s ease both; }
.placar > div:nth-child(2) { animation-delay: .08s; }
.placar > div:nth-child(3) { animation-delay: .16s; }
.placar > div:nth-child(4) { animation-delay: .24s; }
.passo { transition: transform .2s ease, box-shadow .2s ease; }
.passo:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: var(--shadow); }
.passo:hover img { animation: mexe .5s ease-in-out; }
.btn-ca:hover, .btn:hover { transition: transform .15s ease; }
.modelo-linha .btn-mint { animation: pulso 2.4s ease-in-out infinite 2s; }

@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes entra-arte { from { opacity: 0; transform: scale(.9) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes entra-bolha { from { opacity: 0; transform: translateY(16px) scale(.85) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes balanca { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-1deg) translateY(-3px); } }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes risca { to { background-size: 100% .5em; } }
@keyframes mexe { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes seta { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-sub, .hero-cta, .hero-arte > img, .bolha, .placar > div, .selo, .rota svg, .rota span.mint, .modelo-linha .btn-mint, .passo:hover img { animation: none !important; }
  .hero .hl { background-size: 100% .5em; }
}

/* regras: mesma moldura dos outros cards, motivo na mesma linha (alturas parecidas) */
.regras > div { border: 2px solid var(--ink); background: var(--panel); }
.regras .ok { background: var(--mint-soft); }
.regras .nao { background: var(--red-soft); }
.regras li { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.regras .nao li span { display: inline; font-size: 12px; font-weight: 600; white-space: nowrap; }
.regras .ok li code::after { content: " ✓"; color: var(--green); font-weight: 700; }
