﻿:root {
  --bg: #080808;
  --line: rgba(216, 186, 127, 0.14);
  --line-strong: rgba(216, 186, 127, 0.28);
  --text: #f5efe2;
  --muted: rgba(245, 239, 226, 0.68);
  --gold: #d7b46c;
  --olive: #7f8e63;
  --shadow: 0 32px 96px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 180, 108, 0.08), transparent 18%),
    radial-gradient(circle at top right, rgba(127, 142, 99, 0.06), transparent 22%),
    linear-gradient(180deg, #171613 0%, #0d0d0c 36%, #080808 100%);
  overflow-x: hidden;
}
a, button { font: inherit; }
.page-glow, .page-grain { position: fixed; inset: 0; pointer-events: none; }
.page-glow {
  background:
    radial-gradient(circle at 18% 16%, rgba(215, 180, 108, 0.08), transparent 16%),
    radial-gradient(circle at 82% 10%, rgba(127, 142, 99, 0.05), transparent 18%);
}
.page-grain {
  background-image: url("../assets/images/textura-floresta.png");
  opacity: 0.07;
  mix-blend-mode: soft-light;
}
.discovery-toast {
  position: fixed; top: 24px; left: 50%; z-index: 30;
  min-width: min(420px, calc(100vw - 2rem));
  padding: 0.95rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(26, 24, 20, 0.94); color: var(--text); text-align: center;
  transform: translate(-50%, -18px); opacity: 0; box-shadow: 0 20px 48px rgba(0,0,0,.35);
  backdrop-filter: blur(16px); transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.discovery-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.reveal-focus {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 24%, rgba(0,0,0,.6) 100%);
  backdrop-filter: blur(0px);
  transition: opacity .9s ease, backdrop-filter .9s ease;
}
.reveal-focus.visible {
  opacity: 1;
  backdrop-filter: blur(3px);
}
.topbar {
  width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.4rem 0 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.topbar-link, .ghost-button, .discover-button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text);
  background: rgba(21,20,18,.82); backdrop-filter: blur(12px);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), border-color .6s ease, background .6s ease, box-shadow .6s ease;
}
.topbar-link, .ghost-button { padding: .85rem 1.2rem; }
.topbar-link:hover, .ghost-button:hover, .discover-button:hover {
  transform: translateY(-1px); border-color: var(--line-strong); background: rgba(34,32,28,.96); box-shadow: 0 16px 36px rgba(0,0,0,.24);
}
.passport-shell {
  width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; display: grid; gap: 1.6rem;
}
.passport-hero, .passport-content {
  position: relative; border: 1px solid var(--line); border-radius: 32px;
  background: linear-gradient(180deg, rgba(31,29,25,.94), rgba(10,10,10,.97)), linear-gradient(135deg, rgba(215,180,108,.04), transparent 36%);
  box-shadow: var(--shadow); overflow: hidden;
}
.passport-hero::before, .passport-content::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 16% 16%, rgba(215,180,108,.12), transparent 20%), radial-gradient(circle at 84% 12%, rgba(127,142,99,.06), transparent 22%);
  pointer-events: none;
}
.passport-hero {
  display: grid; grid-template-columns: 1.2fr 0.95fr; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem);
}
.hero-copy, .passport-panel, .content-header, .passport-grid, .action-grid, .history-list, .family-grid { position: relative; z-index: 1; }
.hero-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: clamp(1rem, 3vw, 2.5rem);
}
.collection-seal { margin: .25rem 0 .5rem; }
.seal-ring, .collection-mark-ring {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(216,186,127,.28);
  background: radial-gradient(circle, rgba(215,180,108,.08), transparent 62%), rgba(20,18,16,.82);
  box-shadow: inset 0 0 0 10px rgba(215,180,108,.03), 0 18px 42px rgba(0,0,0,.24);
}
.seal-ring { width: 120px; height: 120px; }
.seal-core, .collection-mark-text {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-transform: uppercase; letter-spacing: .18em; color: rgba(245,239,226,.76);
}
.seal-core {
  width: 82px; height: 82px; border-radius: 50%; border: 1px solid rgba(216,186,127,.24); font-size: .62rem; line-height: 1.5; background: rgba(255,255,255,.02);
}
.passport-panel { display: grid; gap: 1rem; }
.stat-card, .progress-card, .certificate-card, .passport-card, .action-card, .history-item, .history-empty, .family-card {
  position: relative; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(36,33,29,.8), rgba(14,14,13,.9)); backdrop-filter: blur(16px);
}
.stat-card::after, .progress-card::after, .certificate-card::after, .passport-card::after, .action-card::after, .history-item::after, .history-empty::after, .family-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(216,186,127,.18), transparent 40%, rgba(216,186,127,.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.stat-card, .progress-card, .certificate-card { padding: 1.3rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(245,239,226,.64);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: rgba(216,186,127,.5); }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; line-height: .95; }
h1 { font-size: clamp(3.4rem, 8vw, 5.8rem); letter-spacing: .01em; }
h2 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin-top: .35rem; }
p { color: var(--muted); line-height: 1.75; }
.lede { font-size: 1.08rem; color: var(--text); max-width: 62ch; }
.stat-label, .stat-meta, .progress-header span, .card-meta, .badge, .history-meta, .history-order, .family-meta, .rarity-chip { font-size: .88rem; color: var(--muted); }
.stat-card { display: grid; gap: .4rem; }
.stat-value { font-size: clamp(2.8rem, 7vw, 4.8rem); font-family: "Cormorant Garamond", serif; color: var(--gold); text-shadow: 0 0 24px rgba(215,180,108,.16); }
.progress-card, .certificate-card { display: grid; gap: .9rem; }
.progress-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.progress-track { width: 100%; height: 12px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--olive), var(--gold), #efe0b7); box-shadow: 0 0 22px rgba(215,180,108,.28); transition: width 1.1s cubic-bezier(.22, 1, .36, 1); }
.certificate-code { font-size: 1.45rem; font-family: "Cormorant Garamond", serif; color: var(--text); letter-spacing: .08em; }
.certificate-copy { max-width: 34ch; }
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.memory-item {
  padding: .85rem .9rem;
  border: 1px solid rgba(216,186,127,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.01));
}
.memory-value {
  display: block;
  margin-top: .3rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  color: rgba(245,239,226,.94);
}
.sequence-reward {
  padding: .95rem 1rem;
  border: 1px solid rgba(216,186,127,.14);
  border-radius: 18px;
  color: rgba(245,239,226,.78);
  background: linear-gradient(180deg, rgba(215,180,108,.05), rgba(255,255,255,.015));
  transition: border-color .8s ease, box-shadow .8s ease, background .8s ease;
}
.sequence-reward-unlocked {
  border-color: rgba(216,186,127,.26);
  background: linear-gradient(180deg, rgba(215,180,108,.11), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(216,186,127,.04), 0 18px 44px rgba(0,0,0,.18);
}
.passport-content { padding: 1.5rem; display: grid; gap: 1.25rem; }
.content-header { display: grid; grid-template-columns: .95fr 1.05fr; gap: 1rem; align-items: end; }
.content-header.compact { align-items: start; }
.next-teaser {
  max-width: 46ch;
  color: rgba(245,239,226,.82);
}
.collection-mark { margin-top: .9rem; }
.collection-mark-ring { width: 104px; height: 104px; transform: rotate(-12deg); }
.collection-mark-text { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(216,186,127,.22); font-size: .58rem; line-height: 1.45; background: rgba(255,255,255,.02); }
.family-grid, .passport-grid, .action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.ownership-grid,
.badge-collection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.family-card { padding: 1.15rem; display: grid; gap: .8rem; overflow: hidden; }
.family-card::before {
  content: ""; position: absolute; inset: auto -12% -34% 38%; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215,180,108,.14), transparent 68%);
  filter: blur(18px); opacity: .55; pointer-events: none;
}
.family-card-near {
  border-color: rgba(216,186,127,.26);
  background: linear-gradient(180deg, rgba(46,40,30,.88), rgba(14,14,13,.92));
  box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 0 0 1px rgba(216,186,127,.04);
}
.family-card-complete {
  border-color: rgba(216,186,127,.34);
  background: linear-gradient(180deg, rgba(52,44,30,.92), rgba(17,16,13,.94));
}
.family-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.family-meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.family-meter-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(127,142,99,.85), rgba(215,180,108,.95)); }
.family-meta { color: rgba(245,239,226,.72); }
.family-clue { color: rgba(245,239,226,.56); font-size: .9rem; text-transform: none; }
.family-reward { color: rgba(245,239,226,.82); font-size: .92rem; }
.ownership-card,
.collection-badge-card,
.collection-badge-empty {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(36,33,29,.8), rgba(14,14,13,.9));
  overflow: hidden;
}
.ownership-card::after,
.collection-badge-card::after,
.collection-badge-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(216,186,127,.18), transparent 40%, rgba(216,186,127,.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.ownership-card,
.collection-badge-card {
  display: grid;
  gap: .55rem;
}
.ownership-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: rgba(245,239,226,.96);
}
.ownership-copy {
  color: rgba(245,239,226,.7);
}
.collection-badge-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 12% 24%, rgba(215,180,108,.08), transparent 22%),
    linear-gradient(180deg, rgba(42,37,30,.88), rgba(14,14,13,.92));
}
.collection-medallion {
  position: relative;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,180,108,.14), rgba(215,180,108,.04) 58%, transparent 72%);
}
.collection-medallion-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(216,186,127,.28);
  box-shadow: inset 0 0 0 10px rgba(216,186,127,.05), inset 0 0 18px rgba(216,186,127,.08);
}
.collection-medallion-core {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(216,186,127,.2);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  letter-spacing: .08em;
  color: rgba(245,239,226,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.collection-badge-body {
  display: grid;
  gap: .35rem;
}
.collection-badge-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(245,239,226,.64);
}
.passport-card, .action-card { overflow: hidden; }
.passport-card { padding: 1.2rem; display: grid; gap: 1rem; }
.passport-card.discovered { background: linear-gradient(180deg, rgba(46,40,30,.84), rgba(13,13,12,.94)), linear-gradient(135deg, rgba(215,180,108,.08), transparent 42%); border-color: rgba(216,186,127,.22); }
.passport-card.locked { background: linear-gradient(180deg, rgba(25,24,22,.88), rgba(10,10,10,.95)); opacity: .92; }
.passport-card.ceremonial-reveal {
  animation: ceremonialReveal 1.8s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 24;
}
.country-aura, .country-mist, .background-stamp { position: absolute; pointer-events: none; }
.country-aura { inset: -10% 42% 35% -10%; background: radial-gradient(circle, var(--country-glow, rgba(215,180,108,.12)), transparent 70%); opacity: .8; filter: blur(18px); }
.country-mist { inset: auto -10% -12% 10%; height: 45%; background: radial-gradient(ellipse at center, var(--country-mist, rgba(255,255,255,.05)), transparent 70%); opacity: .55; filter: blur(24px); }
.background-stamp { right: -6px; top: 48%; transform: translateY(-50%) rotate(-20deg); width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(216,186,127,.12); color: rgba(216,186,127,.12); text-transform: uppercase; letter-spacing: .18em; font-size: .62rem; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 8px rgba(216,186,127,.05); }
.card-content, .action-content { position: relative; z-index: 2; display: grid; gap: 1rem; }
.card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.rarity-chip, .badge {
  display: inline-flex; align-items: center; justify-content: center; padding: .42rem .72rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: rgba(245,239,226,.78);
}
.rarity-chip { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.card-list { list-style: none; display: grid; gap: .48rem; }
.card-list li { color: var(--muted); }
.card-list li::before { content: "•"; color: var(--gold); margin-right: .5rem; }
.card-certificate {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .7rem; border-top: 1px solid rgba(216,186,127,.12);
}
.luxury-certificate {
  margin-top: .25rem;
  padding: 1rem 1.05rem 0;
  border-top-color: rgba(216,186,127,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    radial-gradient(circle at 12% 18%, rgba(215,180,108,.06), transparent 24%);
  border-radius: 18px;
}
.luxury-certificate > div {
  min-width: 140px;
}
.certificate-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,239,226,.5); }
.certificate-value { color: rgba(245,239,226,.9); }
.luxury-certificate .certificate-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  letter-spacing: .02em;
}
.teaser-copy { color: rgba(245,239,226,.78); }
.silhouette-panel {
  position: relative; min-height: 132px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(216,186,127,.1);
  background:
    radial-gradient(circle at 24% 38%, rgba(255,255,255,.06), transparent 18%),
    radial-gradient(circle at 70% 64%, rgba(215,180,108,.06), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.silhouette-orb,
.silhouette-trace,
.silhouette-marker {
  position: absolute;
  pointer-events: none;
}
.silhouette-orb {
  width: 148px; height: 148px; right: -24px; top: -14px; border-radius: 48% 52% 44% 56% / 56% 42% 58% 44%;
  background: radial-gradient(circle at 40% 38%, rgba(245,239,226,.06), rgba(245,239,226,.01) 46%, transparent 68%);
  border: 1px solid rgba(216,186,127,.1); filter: blur(.2px); opacity: .8;
}
.silhouette-trace {
  inset: 18px 22px 18px 18px; border-radius: 18px;
  border: 1px dashed rgba(245,239,226,.14); opacity: .55;
  clip-path: polygon(8% 34%, 24% 18%, 44% 24%, 58% 14%, 72% 34%, 82% 56%, 66% 76%, 44% 84%, 18% 70%, 10% 52%);
}
.silhouette-marker {
  width: 78px; height: 78px; left: 18px; bottom: -10px; border-radius: 50%;
  border: 1px solid rgba(216,186,127,.14);
  box-shadow: inset 0 0 0 12px rgba(216,186,127,.03);
}
.silhouette-line { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,239,226,.36); }
.passport-card .stamp {
  position: absolute; right: 18px; bottom: 18px; padding: .42rem .68rem; border: 1px solid rgba(216,186,127,.3); border-radius: 999px; color: rgba(245,239,226,.78); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; background: rgba(215,180,108,.07); z-index: 2;
}
.action-card { padding: 1.1rem; display: grid; gap: .9rem; }
.discover-button { padding: .82rem 1rem; cursor: pointer; color: var(--text); position: relative; z-index: 2; }
.discover-button[disabled] { cursor: default; opacity: .45; transform: none; box-shadow: none; }
.history-list { display: grid; gap: .9rem; }
.history-item, .history-empty { padding: 1rem 1.1rem; }
.history-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; overflow: hidden; }
.history-flag-wash { position: absolute; inset: 0; background: linear-gradient(270deg, var(--flag-wash, rgba(255,255,255,.05)), transparent 58%); opacity: .55; pointer-events: none; }
.history-content, .history-date { position: relative; z-index: 1; }
.history-order { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(216,186,127,.22); color: var(--gold); font-weight: 700; }
.history-country { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; }
.history-date { text-align: right; }
.history-empty, .empty-state { text-align: center; }
.empty-state { grid-column: 1 / -1; padding: 2rem; border: 1px dashed rgba(245,239,226,.14); border-radius: 24px; background: rgba(14,14,13,.62); }
body.focus-reveal .topbar,
body.focus-reveal .passport-hero,
body.focus-reveal .families-panel,
body.focus-reveal .collection-ownership,
body.focus-reveal .pending,
body.focus-reveal .history-panel,
body.focus-reveal .passport-actions {
  opacity: .18;
  filter: blur(3px) saturate(.72);
  transition: opacity .8s ease, filter .8s ease;
}
body.focus-reveal .discovered-panel {
  position: relative;
  z-index: 22;
  opacity: 1;
  filter: none;
}
body.focus-reveal .discovered-panel .passport-card:not(.ceremonial-reveal) {
  opacity: .14;
  transition: opacity .8s ease;
}
body.focus-reveal .discovered-panel .passport-card.ceremonial-reveal {
  opacity: 1;
  box-shadow: 0 32px 84px rgba(0,0,0,.38), 0 0 0 1px rgba(216,186,127,.12);
}

@keyframes ceremonialReveal {
  0% {
    opacity: .72;
    transform: translateY(24px) scale(.976);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
  }
  38% {
    opacity: 1;
    transform: translateY(-4px) scale(1.008);
    box-shadow: 0 28px 62px rgba(0,0,0,.28), 0 0 0 1px rgba(216,186,127,.10);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 46px rgba(0,0,0,.24);
  }
}

@media (max-width: 900px) {
  .passport-hero, .content-header, .family-grid, .passport-grid, .action-grid, .history-item, .ownership-grid, .badge-collection { grid-template-columns: 1fr; }
  .history-item, .history-date { text-align: center; }
  .luxury-certificate > div { min-width: 120px; }
  .memory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-link, .ghost-button { text-align: center; }
  .discovery-toast { min-width: calc(100vw - 2rem); }
}
