/* Tide Crew, tidecrew.org: o diário do Capitão.
   Madeira, corda, pergaminho e latão. Turquesa, madeira e latão. Nada de dourado. */

:root {
  --sea-deep: #0b3d4a;
  --sea: #0f5f6e;
  --turq: #1fb3ad;
  --turq-light: #6fe0d6;
  --wood-dark: #3a2212;
  --wood: #6b4024;
  --wood-light: #8f5a33;
  --rope: #c9a36a;
  --rope-dark: #8a6a3c;
  --brass: #a98a4e;
  --brass-dark: #6f5a2f;
  --brass-light: #cdb47c;
  --parch: #efe1bf;
  --parch-dark: #dcc797;
  --ink: #2a190d;
  --ink-soft: #4d3420;

  /* Raridades (cores do design.md; versões escuras para texto no pergaminho) */
  --r-common: #5c6166;
  --r-uncommon: #2d7636;
  --r-rare: #2457a0;
  --r-epic: #633a9c;
  --r-legendary: #9a4a0c;
  --r-mythic: #a3231e;

  --title: "Press Start 2P", ui-monospace, monospace;
  --text: "Pixelify Sans", ui-monospace, monospace;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--parch);
  background-color: var(--sea-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 60%);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--turq-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--parch); color: var(--ink); padding: 8px 12px; font-family: var(--title); font-size: .7rem;
}
.skip:focus { top: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--title);
  font-size: .75rem;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.28), inset 3px 3px 0 rgba(255,255,255,.22), 0 4px 0 var(--ink);
  transition: transform .08s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: inset 3px 3px 0 rgba(0,0,0,.3), 0 1px 0 var(--ink); }
.btn-brass { background: var(--brass-light); color: var(--ink); }
.btn-brass:hover { background: #d8c08c; }
.btn-wood { background: var(--wood); color: var(--parch); }
.btn-wood:hover { background: var(--wood-light); }
.btn-small { padding: 10px 12px; font-size: .6rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }

/* ---------- Topo fixo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, transparent 2px 40px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 55%, var(--wood-dark));
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 3px 0 var(--rope-dark), 0 7px 0 rgba(0,0,0,.25);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; min-height: var(--bar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
}
.logo {
  font-family: var(--title); font-size: 1.05rem; text-decoration: none; white-space: nowrap;
  color: var(--parch);
  text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
  letter-spacing: 1px;
}
.logo span { color: var(--turq-light); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-coin { display: block; width: 32px; height: 32px; }
.nav-desk { display: flex; gap: 4px; margin-left: auto; }
.nav-desk a, .nav-mobile nav a:not(.btn) {
  font-family: var(--text); font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 8px 10px; color: var(--parch); border: 2px solid transparent;
}
.nav-desk a:hover { border-color: var(--rope); background: rgba(0,0,0,.2); }
.join { flex: none; }

.nav-mobile { display: none; position: relative; margin-left: auto; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-family: var(--title); font-size: .6rem; color: var(--ink);
  background: var(--brass-light); border: 3px solid var(--ink); padding: 10px 12px; min-height: 44px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 3px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  background: var(--wood-dark); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--rope-dark), 0 8px 0 rgba(0,0,0,.35);
}
.nav-mobile nav .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .nav-desk, .join { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- Contagem para a largada ---------- */
.countdown {
  max-width: 1160px; margin: 20px auto 0; padding: 22px 24px;
  display: flex; align-items: center; gap: 28px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, transparent 2px 40px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 55%, var(--wood-dark));
  border: 4px solid var(--ink);
  box-shadow: 0 0 0 3px var(--rope-dark), 0 8px 0 rgba(0,0,0,.3);
  position: relative;
}
@media (min-width: 1192px) { .countdown { margin-left: auto; margin-right: auto; } }
.cd-coin { flex: none; width: 96px; height: 96px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.cd-body { min-width: 0; flex: 1; }
.cd-title {
  font-family: var(--title); font-weight: 400; font-size: 1.15rem; line-height: 1.5; margin: 0 0 16px;
  text-shadow: 3px 3px 0 var(--ink); color: var(--parch);
}
.cd-clock { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cd-clock li {
  min-width: 84px; padding: 10px 8px 8px; text-align: center;
  background: var(--parch); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.14), 0 4px 0 var(--ink);
}
.cd-clock b { display: block; font-family: var(--title); font-weight: 400; font-size: 1.7rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cd-clock span { display: block; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.cd-local, .cd-live-sub { margin: 0; font-size: 1.05rem; color: var(--parch); }
.cd-live-line { margin: 0 0 6px; font-family: var(--title); font-size: 1.05rem; line-height: 1.5; color: var(--turq-light); text-shadow: 2px 2px 0 var(--ink); }
.cd-play { margin-top: 14px; }
.cd-wait[hidden], .cd-live[hidden], .cd-play[hidden] { display: none; }
.countdown.is-live { box-shadow: 0 0 0 3px var(--turq), 0 8px 0 rgba(0,0,0,.3); }
@media (max-width: 640px) {
  .countdown { flex-direction: column; align-items: flex-start; gap: 14px; margin: 12px 6px 0; padding: 18px 14px; }
  .cd-coin { width: 64px; height: 64px; }
  .cd-title { font-size: .85rem; }
  .cd-clock { gap: 8px; width: 100%; }
  .cd-clock li { flex: 1 1 0; min-width: 0; padding: 8px 4px 6px; }
  .cd-clock b { font-size: 1.15rem; }
  .cd-clock span { font-size: .8rem; }
}

/* ---------- Contrato oficial do token (escondido enquanto vazio) ---------- */
.contract {
  max-width: 1160px; margin: 20px auto 0; padding: 18px 24px;
  background: var(--parch); color: var(--ink); border: 4px solid var(--ink);
  box-shadow: 0 0 0 3px var(--rope-dark), 0 8px 0 rgba(0,0,0,.3);
}
.contract[hidden] { display: none; }
.ct-title { font-family: var(--title); font-weight: 400; font-size: .95rem; line-height: 1.5; margin: 0 0 8px; }
.ct-note { margin: 0 0 12px; font-size: 1.05rem; color: var(--ink-soft); }
.ct-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ct-addr {
  flex: 1 1 280px; min-width: 0; padding: 12px; background: #fff8e4; border: 3px solid var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; overflow-wrap: anywhere; user-select: all;
}
.ct-copy { flex: none; min-height: 48px; cursor: pointer; }
@media (max-width: 640px) { .contract { margin: 12px 6px 0; padding: 16px 14px; } .ct-copy { flex: 1 1 100%; } }

/* ---------- Abertura ---------- */
main { display: block; }
.hero {
  max-width: 1160px; margin: 0 auto; padding: 48px 16px 40px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
}
.kicker {
  font-family: var(--title); font-size: .6rem; color: var(--turq-light); margin: 0 0 14px; letter-spacing: 1px;
}
.hero h1 {
  font-family: var(--title); font-weight: 400; margin: 0 0 20px;
  font-size: min(2.2rem, 2.85vw); line-height: 1.35;
  text-shadow: 3px 3px 0 var(--ink);
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { color: var(--turq-light); }
.lead { margin: 0 0 8px; max-width: 34em; font-size: 1.2rem; }
.tag { margin: 0 0 22px; color: var(--brass-light); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

.frame-wood {
  margin: 0; padding: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, var(--wood-light), var(--wood));
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--rope-dark), 0 8px 0 rgba(0,0,0,.35);
  position: relative;
}
/* rebites de latão */
.frame-wood::before, .frame-wood::after {
  content: ""; position: absolute; width: 8px; height: 8px; background: var(--brass-light);
  border: 2px solid var(--ink); top: 4px; left: 4px;}
.frame-wood::after { left: auto; right: 4px; }
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 3px solid var(--ink); background: var(--sea);
}
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video figcaption {
  font-family: var(--title); font-size: .55rem; text-align: center; margin-top: 12px; color: var(--parch);
  text-shadow: 2px 2px 0 var(--ink);
}

/* lugar do vídeo: mar e dois cascos em CSS, sem arte */
.placeholder { position: absolute; inset: 0; }
.ph-sea {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(111,224,214,.25) 18px 20px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.08) 46px 52px),
    linear-gradient(180deg, #1aa7a2, #157f8c 60%, #0f5f6e);
}
.ph-ship {
  position: absolute; left: 18%; width: 64%; height: 22%;
  background: repeating-linear-gradient(90deg, var(--wood) 0 14px, var(--wood-light) 14px 16px);
  border: 4px solid var(--ink);
  clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
  opacity: .9;
}
.ph-ship-top { top: 16%; filter: saturate(.6) brightness(.85); }
.ph-ship-bottom { bottom: 16%; }

/* ---------- Diário: páginas de pergaminho ---------- */
.log { max-width: 1160px; margin: 0 auto; padding: 8px 16px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.page {
  position: relative; color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(120,80,30,.10) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 80%, rgba(120,80,30,.08) 0 22%, transparent 23%),
    var(--parch);
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 6px var(--parch-dark), 0 0 0 4px var(--wood), 0 0 0 8px var(--ink), 0 12px 0 rgba(0,0,0,.3);
  padding: 36px clamp(18px, 4vw, 48px) 32px;
  margin: 8px;
}
/* lombada com corda */
.page::before {
  content: ""; position: absolute; left: -8px; right: -8px; top: -14px; height: 8px;
  background: repeating-linear-gradient(135deg, var(--rope) 0 6px, var(--rope-dark) 6px 9px);
  border: 2px solid var(--ink);
}
.page-no { font-family: var(--title); font-size: .55rem; color: var(--ink-soft); margin: 0 0 10px; letter-spacing: 1px; }
.page h2 {
  font-family: var(--title); font-weight: 400; font-size: clamp(1rem, 2.6vw, 1.6rem); line-height: 1.4;
  margin: 0 0 18px; color: var(--wood-dark);
}
.page h3 { font-family: var(--title); font-weight: 400; font-size: .8rem; line-height: 1.5; margin: 0 0 10px; }
.page p { margin: 0 0 14px; max-width: 42em; }
.aside { color: var(--ink-soft); font-style: italic; }
.page-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }

.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 0 0 16px; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 6px; width: 30px; height: 30px;
  display: grid; place-items: center; font-family: var(--title); font-size: .65rem;
  background: var(--sea); color: var(--parch); border: 2px solid var(--ink);
}

/* lugares de arte: moldura de corda + silhuetas em CSS */
.art-slot {
  position: relative; min-height: 240px; overflow: hidden;
  background: linear-gradient(180deg, #1aa7a2, #0f6a78);
  border: 4px solid var(--ink);
  box-shadow: 0 0 0 5px var(--rope), 0 0 0 8px var(--ink);
  margin: 8px;
}
.slot-note {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px;
  background: rgba(42,25,13,.82); color: var(--parch); font-size: .9rem; text-align: center;
}
.sil-ship {
  position: absolute; left: 12%; width: 76%; height: 50px; background: var(--wood-dark);
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
}
.sil-ship-a { top: 30px; opacity: .75; }
.sil-ship-b { top: 140px; }
.sil-rope {
  position: absolute; left: 50%; top: 78px; width: 6px; height: 64px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--rope) 0 6px, var(--rope-dark) 6px 9px);
}
.crew-slot { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-bottom: 44px; }
.crew-slot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 46px;
  background: repeating-linear-gradient(90deg, var(--wood) 0 30px, var(--wood-dark) 30px 33px);
}
/* silhueta: chapéu, cabeça e corpo */
.sil-pirate {
  --c: var(--ink);
  position: relative; width: 44px; height: 92px; z-index: 1;
  background:
    linear-gradient(var(--c), var(--c)) 50% 0 / 80% 9% no-repeat,
    radial-gradient(circle at 50% 18%, var(--c) 0 12px, transparent 13px),
    linear-gradient(var(--c), var(--c)) 50% 100% / 64% 66% no-repeat;
}
.sil-pirate.tall { height: 110px; width: 50px; }

.rarities { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rarities li {
  display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 8px 10px;
  background: rgba(255,255,255,.35); border: 3px solid currentColor;
}
.rarities small { margin-left: auto; font-weight: 400; color: var(--ink-soft); }
.gem { font-size: 1rem; min-width: 1.6em; }
.r-common { color: var(--r-common); }
.r-uncommon { color: var(--r-uncommon); }
.r-rare { color: var(--r-rare); }
.r-epic { color: var(--r-epic); }
.r-legendary { color: var(--r-legendary); }
.r-mythic { color: var(--r-mythic); }

/* ---------- Cartazes ---------- */
.fun-note {
  border: 3px dashed var(--wood); background: rgba(255,255,255,.4); padding: 10px 14px; margin: 0 0 22px; max-width: 44em;
}
.fun-note strong { display: block; font-family: var(--title); font-size: .6rem; line-height: 1.6; margin-bottom: 4px; color: var(--wood-dark); }

.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 28px; margin: 0 0 24px; }
.poster-wrap { perspective: 900px; }
.poster {
  display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; background: none;
  cursor: pointer; font: inherit; color: var(--ink);
}
.poster-inner {
  display: block; position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,.7,.3,1.2);
}
.poster[aria-pressed="true"] .poster-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(circle at 20% 80%, rgba(120,80,30,.16) 0 20%, transparent 21%),
    linear-gradient(180deg, #f3e6c6, #e2cc9b);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 4px var(--wood), 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3);
}
.face::before { /* prego de latão */
  content: ""; position: absolute; top: -10px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%);
  background: var(--brass-light); border: 2px solid var(--ink);
}
.back { transform: rotateY(180deg); }
.p-title { font-family: var(--title); font-size: 1.05rem; color: var(--wood-dark); margin-top: 4px; }
.p-sub { font-family: var(--title); font-size: .5rem; color: var(--ink-soft); }
.p-portrait {
  flex: 1; width: 82%; margin: 4px 0; border: 3px solid var(--ink); background: #c9b282; position: relative; overflow: hidden;
}
.p-sil {
  position: absolute; left: 50%; bottom: 0; width: 56%; height: 82%; transform: translateX(-50%);
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) 50% 4% / 90% 9% no-repeat,
    radial-gradient(circle at 50% 28%, var(--ink-soft) 0 22%, transparent 23%),
    linear-gradient(var(--ink-soft), var(--ink-soft)) 50% 100% / 100% 46% no-repeat;
}
.p-name { font-weight: 600; font-size: 1rem; }
.p-result { margin-bottom: 18px; }
.p-hint { font-family: var(--title); font-size: .45rem; color: var(--sea); visibility: hidden; }
.js .p-hint { visibility: visible; }
.poster:hover .front, .poster:focus-visible .front { box-shadow: 0 0 0 4px var(--turq), 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3); }
.poster:focus-visible { outline: none; box-shadow: none; }
.poster:focus-visible .face { outline: 3px solid var(--turq-light); outline-offset: 10px; }

.stamp {
  position: absolute; right: 6%; bottom: 22%; transform: rotate(-12deg);
  font-family: var(--title); font-size: .7rem; line-height: 1.3; text-align: center;
  padding: 8px 8px; border: 4px double currentColor; color: var(--ink-soft);
  background: rgba(243,230,198,.86);
}
.poster[aria-pressed="true"] .stamp { animation: stamp .35s .45s both; }
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
.back.r-common .stamp { color: var(--r-common); }
.back.r-uncommon .stamp { color: var(--r-uncommon); }
.back.r-rare .stamp { color: var(--r-rare); }
.back.r-epic .stamp { color: var(--r-epic); }
.back.r-legendary .stamp { color: var(--r-legendary); }
.back.r-mythic .stamp { color: var(--r-mythic); }
.back.r-common { box-shadow: 0 0 0 4px #8a8f94, 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3); }
.back.r-uncommon { box-shadow: 0 0 0 4px #3f9a4a, 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3); }
.back.r-rare { box-shadow: 0 0 0 4px #2f6fc4, 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3); }
.back.r-epic { box-shadow: 0 0 0 4px #7c4bc0, 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3); }
.back.r-legendary { box-shadow: 0 0 0 4px #d9741f, 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3); }
.back.r-mythic { box-shadow: 0 0 0 4px #c4302b, 0 0 0 7px var(--ink), 0 8px 0 rgba(0,0,0,.3); }

@media (prefers-reduced-motion: reduce) {
  .poster-inner { transition: none; }
  .poster[aria-pressed="true"] .stamp { animation: none; }
}

.odds { border-top: 3px dashed var(--wood); padding-top: 18px; }
.odds table { border-collapse: collapse; min-width: min(100%, 360px); margin: 0 0 12px; background: rgba(255,255,255,.35); }
.odds th, .odds td { border: 2px solid var(--wood); padding: 6px 12px; text-align: left; }
.odds thead th { background: var(--wood); color: var(--parch); font-family: var(--title); font-size: .55rem; font-weight: 400; }
.odds tbody th { font-weight: 600; }
.odds td { color: var(--ink); font-family: var(--title); font-size: .6rem; line-height: 1.6; font-variant-numeric: tabular-nums; }

/* ---------- Mapa do tesouro ---------- */
.map-page {
  background:
    radial-gradient(circle at 80% 20%, rgba(31,179,173,.16) 0 30%, transparent 31%),
    radial-gradient(circle at 15% 85%, rgba(31,179,173,.14) 0 26%, transparent 27%),
    var(--parch);
}
.map {
  list-style: none; padding: 0; margin: 8px 0 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start;
}
/* caminho tracejado */
.map::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 0;
  border-top: 4px dashed var(--r-mythic); opacity: .75;
}
.isle { position: relative; padding-top: 80px; }
.isle-mark {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 96px; height: 64px;
  background:
    radial-gradient(ellipse at 50% 60%, #d9c08a 0 46%, transparent 47%),
    radial-gradient(ellipse at 50% 62%, var(--turq) 0 60%, transparent 61%);
}
.isle-mark::after { /* palmeira / bandeira */
  content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 26px; background: var(--wood-dark);
  box-shadow: 4px -2px 0 2px var(--r-uncommon);
}
.isle h3 { text-align: center; margin-bottom: 8px; }
.badge {
  display: inline-block; padding: 6px 8px; border: 3px solid var(--ink); font-size: .55rem;
  background: var(--parch-dark);
}
.done .badge { background: var(--sea); color: var(--parch); }
.progress .badge { background: var(--brass-light); }
.later .badge { background: var(--parch-dark); }
.isle ul { margin: 0; padding-left: 18px; font-size: 1rem; }
.isle li { margin-bottom: 6px; }
.x-mark { text-align: center; padding-top: 80px; }
.x {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--title); font-size: 2.4rem; line-height: 1; color: var(--r-mythic);
  text-shadow: 3px 3px 0 var(--ink);
}
.x-mark p { font-size: 1rem; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin: 0 0 16px; max-width: 50em; }
.faq details { border: 3px solid var(--wood); background: rgba(255,255,255,.4); }
.faq summary {
  cursor: pointer; padding: 12px 14px 12px 40px; font-weight: 600; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; position: absolute; left: 12px; top: 10px; font-family: var(--title); font-size: .8rem; color: var(--sea);
}
.faq details[open] summary::before { content: "-"; }
.faq details p { padding: 0 14px 12px 40px; margin: 0; }

.closing { text-align: center; }
.closing p { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; }

/* ---------- Rodapé ---------- */
.footer {
  text-align: center; padding: 28px 16px 36px; color: var(--parch);
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  border-top: 4px solid var(--ink); box-shadow: 0 -3px 0 var(--rope-dark);
}
.footer p { margin: 0 0 8px; }
.footer .warn { max-width: 44em; margin: 0 auto; font-size: 1rem; color: var(--parch); }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: min(2rem, 5.6vw); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .page-grid { grid-template-columns: 1fr; }
  .map { grid-template-columns: 1fr; gap: 12px; }
  .map::before { left: 46px; right: auto; top: 30px; bottom: 30px; height: auto; border-top: 0; border-left: 4px dashed var(--r-mythic); }
  .isle, .x-mark { padding: 8px 0 8px 108px; min-height: 72px; text-align: left; }
  .isle-mark { left: 0; top: 4px; transform: none; }
  .x { left: 28px; top: 10px; transform: none; }
  .isle h3 { text-align: left; }
  .x-mark p { margin: 0; padding-top: 10px; }
}
@media (max-width: 640px) {
  .posters { grid-template-columns: minmax(0, 220px); }
  .odds { overflow-x: auto; }
  .odds table { min-width: 0; width: 100%; }
  .odds th, .odds td { padding: 6px 5px; }
  .odds thead th { font-size: .45rem; }
  .odds td { font-size: .5rem; }
  .rarities { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .logo { font-size: .85rem; }
  .page { margin: 8px 6px; }
}

/* ===== v4 (01/11): estrutura de seções nova (forte e zumbis) ===== */
.hero-shot { margin: 0; width: 100%; min-width: 0; }
.hero-text { min-width: 0; }
.hero-shot img, .shot img { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 3px solid var(--ink); }
.hero-shot figcaption { font-family: var(--title); font-size: .55rem; text-align: center; margin-top: 12px; color: var(--parch); text-shadow: 2px 2px 0 var(--ink); }
.shot { margin: 0; width: 100%; min-width: 0; }
.stats { max-width: 1160px; width: 100%; margin: 0 auto; }
.stat-row { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-row li { background: var(--wood-dark); border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px var(--rope-dark); padding: 18px 10px; text-align: center; color: var(--parch); }
.stat-row b { display: block; font-family: var(--title); font-weight: 400; font-size: clamp(1.1rem, 3vw, 1.8rem); color: var(--brass-light); text-shadow: 2px 2px 0 var(--ink); margin-bottom: 8px; }
.stat-row span { font-size: .95rem; }
.cta.center { justify-content: center; }
.steps4, .cards4 { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps4 li, .cards4 li { background: var(--parch-dark); border: 3px solid var(--ink); padding: 16px 14px; }
.steps4 strong, .cards4 strong { display: block; font-family: var(--title); font-weight: 400; font-size: .7rem; line-height: 1.5; margin: 6px 0 10px; color: var(--wood-dark); }
.steps4 p, .cards4 p { margin: 0; font-size: 1rem; }
.steps4 .n { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--brass); border: 3px solid var(--ink); font-family: var(--title); font-size: .7rem; color: var(--ink); }
.cards4 li:nth-child(1) { border-top: 8px solid #c4d8ff; }
.cards4 li:nth-child(2) { border-top: 8px solid #7d838c; }
.cards4 li:nth-child(3) { border-top: 8px solid #f2c230; }
.cards4 li:nth-child(4) { border-top: 8px solid #4fe6ff; }
.boss { margin-top: 24px; grid-template-columns: 1fr 1fr; align-items: center; }
.acts, .ladder { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.acts li, .ladder li { font-family: var(--title); font-size: .55rem; padding: 10px 12px; border: 3px solid var(--ink); background: var(--wood); color: var(--parch); }
.ladder li { background: var(--c, var(--wood)); color: #fff; }
.ladder li + li::before { content: "\2192"; margin-right: 8px; color: var(--parch); }
.ladder .r-common { --c: var(--r-common); } .ladder .r-uncommon { --c: var(--r-uncommon); } .ladder .r-rare { --c: var(--r-rare); }
.ladder .r-epic { --c: var(--r-epic); } .ladder .r-legendary { --c: var(--r-legendary); }
.bullets { margin: 0 0 8px; padding-left: 20px; }
.bullets li { margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.kv dt { font-family: var(--title); font-size: .55rem; padding-top: 4px; color: var(--wood-dark); }
.kv dd { margin: 0; }
.warn-box { background: #f6d7c7; border: 3px solid var(--r-mythic); padding: 12px 14px; font-weight: 600; }
.token-coin { display: block; width: min(256px, 60%); height: auto; margin: 0 auto; image-rendering: pixelated; }
@media (max-width: 900px) {
  .stat-row, .steps4, .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boss { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps4, .cards4 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
}
.hero h1 span { white-space: normal; }
.tavern-shot { margin: 0 0 24px; }
.countdown[hidden] { display: none; }
