/* Web3 Sem Ilusões — guia educativo
   Paleta: tinta, âmbar, teal — evitar “AI purple SaaS” */

:root {
  --ink: #0c0f0e;
  --ink-2: #141918;
  --ink-3: #1c2321;
  --paper: #f2efe6;
  --muted: #9aa39e;
  --line: rgba(242, 239, 230, 0.12);
  --amber: #e0a045;
  --amber-dim: rgba(224, 160, 69, 0.15);
  --teal: #3d9b8f;
  --teal-dim: rgba(61, 155, 143, 0.14);
  --danger: #d4654a;
  --danger-dim: rgba(212, 101, 74, 0.14);
  --ok: #6f9f7a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 72rem;
  --narrow: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 155, 143, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(224, 160, 69, 0.08), transparent 50%),
    var(--ink);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
}

/* Keep a quiet cue on text links / buttons only — no orange box around whole blocks */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: none;
}

.game-edge summary:focus,
.game-edge summary:focus-visible,
.game-edge:focus,
.game-edge:focus-visible {
  outline: none;
  box-shadow: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 15, 14, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.15;
}

.logo span,
.logo .logo-rest {
  color: var(--amber);
  display: inline;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.logo:hover span,
.logo:hover .logo-rest {
  color: #f0c48a;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-main {
  display: none;
  gap: 1.1rem;
  align-items: center;
}

.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--paper);
}

.nav-main a.nav-aviso,
.mobile-nav a.nav-aviso {
  color: var(--amber);
  font-weight: 600;
}

.nav-main a.nav-aviso:hover,
.mobile-nav a.nav-aviso:hover,
.nav-main a.nav-aviso[aria-current="page"] {
  color: #f0c48a;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.1rem;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 0.35rem 0;
}

@media (min-width: 880px) {
  .nav-main { display: flex; }
  .menu-toggle { display: none; }
}

/* Layout helpers */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.section--tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 600;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.meta-update {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: #1a1208;
}

.btn-primary:hover {
  color: #1a1208;
  background: #ebb25a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-secondary {
  background: var(--ink-3);
  border-color: var(--line);
  color: var(--paper);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  font-weight: 600;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500;
}

.hero-risk {
  border-left: 3px solid var(--danger);
  padding: 0.85rem 1rem;
  background: var(--danger-dim);
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0 1.75rem;
  color: #f3cfc6;
  max-width: 36rem;
}

.hero-card {
  background: linear-gradient(160deg, rgba(28, 35, 33, 0.95), rgba(20, 25, 24, 0.9));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.hero-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-card .tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  height: fit-content;
}

.tag-edu { background: var(--teal-dim); color: #8fd4c9; }
.tag-exp { background: var(--amber-dim); color: #f0c48a; }
.tag-pub { background: var(--danger-dim); color: #f0a894; }

/* Content labels */
.content-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.content-label--edu {
  background: var(--teal-dim);
  color: #9fdcd2;
  border: 1px solid rgba(61, 155, 143, 0.35);
}

.content-label--exp {
  background: var(--amber-dim);
  color: #efc28a;
  border: 1px solid rgba(224, 160, 69, 0.35);
}

.content-label--pub {
  background: var(--danger-dim);
  color: #f0a894;
  border: 1px solid rgba(212, 101, 74, 0.4);
}

.pub-box {
  border: 1px solid rgba(212, 101, 74, 0.45);
  background: rgba(212, 101, 74, 0.08);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: #f3cfc6;
}

.pub-box strong {
  color: #ffb19e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* Split audiences */
.split-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.panel--yes {
  border-color: rgba(61, 155, 143, 0.35);
}

.panel--no {
  border-color: rgba(212, 101, 74, 0.35);
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.panel li + li {
  margin-top: 0.45rem;
}

/* Cards / grids */
.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card .card-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--ink-3);
  color: var(--amber);
  border: 1px solid var(--line);
}

/* Risk list */
.risk-list {
  display: grid;
  gap: 0.85rem;
}

.risk-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
}

.risk-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.risk-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Checklist */
.check-grid {
  display: grid;
  gap: 0.65rem;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.check-item .n {
  font-family: var(--font-display);
  color: var(--amber);
  font-weight: 600;
}

.check-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-item strong {
  display: block;
}

/* Framework steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 1.2rem 1.15rem 4.2rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 600;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Project cards (onde estou) */
.project-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  display: grid;
  gap: 0.85rem;
}

.project-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.project-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge--affiliate {
  border-color: rgba(212, 101, 74, 0.5);
  color: #f0a894;
  background: var(--danger-dim);
}

.badge--risk-high {
  border-color: rgba(212, 101, 74, 0.5);
  color: #f0a894;
}

.badge--risk-med {
  border-color: rgba(224, 160, 69, 0.5);
  color: #efc28a;
}

.badge--risk-low {
  border-color: rgba(111, 159, 122, 0.5);
  color: #a8cbb0;
}

.project-meta {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.project-meta strong {
  color: var(--paper);
  font-weight: 600;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

/* Service box */
.service-box {
  background:
    linear-gradient(135deg, rgba(61, 155, 143, 0.1), transparent 45%),
    var(--ink-2);
  border: 1px solid rgba(61, 155, 143, 0.3);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem;
}

.service-box h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.includes-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 700px) {
  .includes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.includes,
.excludes {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.includes h3 { color: var(--ok); margin-top: 0; }
.excludes h3 { color: var(--danger); margin-top: 0; }

.includes ul,
.excludes ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.includes li + li,
.excludes li + li {
  margin-top: 0.4rem;
}

.price-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* FAQ */
.faq details {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--amber);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Forms */
.form {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  color: var(--paper);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status--pending {
  border: 1px solid rgba(224, 160, 69, 0.35);
  background: rgba(224, 160, 69, 0.08);
  color: var(--amber);
}

.form-status--success {
  border: 1px solid rgba(61, 155, 143, 0.4);
  background: rgba(61, 155, 143, 0.1);
  color: #7dcdc0;
}

.form-status--error {
  border: 1px solid rgba(220, 80, 80, 0.4);
  background: rgba(220, 80, 80, 0.1);
  color: #f0a0a0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: #090b0a;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-copy {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: #6d7571;
}

/* Support / community banner */
.section--support {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.support-banner {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.4rem 1.75rem 2.2rem;
  border-radius: 22px;
  border: 1px solid rgba(224, 160, 69, 0.28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 160, 69, 0.16), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(61, 155, 143, 0.12), transparent 50%),
    linear-gradient(160deg, rgba(28, 35, 33, 0.9), rgba(8, 10, 9, 0.95));
  overflow: hidden;
  isolation: isolate;
}

.support-banner::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(224, 160, 69, 0.07) 60deg,
    transparent 120deg,
    rgba(61, 155, 143, 0.08) 200deg,
    transparent 280deg
  );
  animation: supportSpin 18s linear infinite;
  z-index: -1;
  opacity: 0.9;
}

.support-eyes {
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  width: 4.5rem;
  height: 4.5rem;
  perspective: 600px;
}

.support-eyes__emoji {
  display: inline-block;
  font-size: 2.75rem;
  line-height: 1;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: eyes3d 3.6s ease-in-out infinite;
}

.support-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
}

.support-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.2;
}

.support-text {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

@keyframes eyes3d {
  0%,
  100% {
    transform: rotateY(-18deg) rotateX(6deg) translateZ(0) scale(1);
  }
  35% {
    transform: rotateY(16deg) rotateX(-4deg) translateZ(18px) scale(1.08);
  }
  65% {
    transform: rotateY(-8deg) rotateX(10deg) translateZ(8px) scale(1.03);
  }
}

@keyframes supportSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-eyes__emoji,
  .support-banner::before {
    animation: none !important;
  }
}

/* Inner pages */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose {
  max-width: var(--narrow);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.changelog {
  display: grid;
  gap: 1rem;
}

.changelog article {
  border-left: 3px solid var(--teal);
  padding: 0.25rem 0 0.25rem 1rem;
}

.changelog time {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 700;
}

.changelog h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.25rem 0 0.4rem;
}

.changelog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--amber-dim);
  border: 1px solid rgba(224, 160, 69, 0.3);
  color: #f0d3a8;
  margin: 1.25rem 0;
}

.callout--danger {
  background: var(--danger-dim);
  border-color: rgba(212, 101, 74, 0.35);
  color: #f3cfc6;
}

.narrow {
  max-width: 40rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.toc a {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.toc a:hover {
  color: var(--paper);
  border-color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .orb, .hero-ring, .pulse-dot, .btn-glow::after, .principle-rail__track {
    animation: none !important;
  }
  .timeline,
  .timeline__body,
  .timeline__year,
  .timeline__marker,
  .timeline__fill {
    transition: none !important;
  }
  .will-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .timeline {
    --p: 1 !important;
  }
  .timeline__body,
  .timeline__year {
    opacity: 1 !important;
    transform: none !important;
  }
  .timeline__marker {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
  }
  .timeline__fill {
    transform: translateX(-50%) scaleY(1) !important;
  }
  .game-card, .card-3d, .hero-card { transform: none !important; }
}

/* ===== MOTION / CREATIVE LAYER ===== */
.hero {
  isolation: isolate;
}

.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 5%;
  background: radial-gradient(circle, rgba(61, 155, 143, 0.55), transparent 70%);
  animation: driftA 14s ease-in-out infinite;
}

.orb-b {
  width: 340px;
  height: 340px;
  top: 20%;
  right: -5%;
  background: radial-gradient(circle, rgba(224, 160, 69, 0.4), transparent 70%);
  animation: driftB 18s ease-in-out infinite;
}

.orb-c {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 40%;
  background: radial-gradient(circle, rgba(212, 101, 74, 0.28), transparent 70%);
  animation: driftC 12s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  right: 8%;
  top: 12%;
  border: 1px solid rgba(224, 160, 69, 0.18);
  border-radius: 50%;
  animation: spinSlow 48s linear infinite;
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(61, 155, 143, 0.25);
  border-radius: 50%;
  animation: spinSlow 36s linear infinite reverse;
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}

@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 20px) scale(0.95); }
}

@keyframes driftC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.pulse-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.35rem;
  box-shadow: 0 0 0 0 rgba(61, 155, 143, 0.55);
  animation: pulse 2.2s ease-out infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 155, 143, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(61, 155, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 155, 143, 0); }
}

.hero-title em {
  background: linear-gradient(120deg, var(--amber), #f0c48a, var(--teal), var(--amber));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  to { background-position: 220% center; }
}

.hero-card {
  animation: cardFloat 7s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-glow:hover::after {
  opacity: 1;
}

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.will-reveal.reveal-left {
  transform: translateX(-32px);
}

.will-reveal.reveal-right {
  transform: translateX(32px);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero-card .stagger {
  opacity: 0;
  transform: translateY(10px);
}

.hero-card.is-in .stagger,
.hero-card:not(.will-reveal) .stagger {
  animation: staggerIn 0.55s ease forwards;
}

.hero-card.is-in .stagger:nth-child(1) { animation-delay: 0.1s; }
.hero-card.is-in .stagger:nth-child(2) { animation-delay: 0.22s; }
.hero-card.is-in .stagger:nth-child(3) { animation-delay: 0.34s; }

@keyframes staggerIn {
  to { opacity: 1; transform: none; }
}

.card, .risk-item, .step, .project-card, .check-item {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover, .project-card:hover, .risk-item:hover, .step:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 160, 69, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.toc a {
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.toc a:hover {
  transform: translateY(-2px);
}

.risk-banner {
  animation: bannerIn 0.6s ease;
}

@keyframes bannerIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.section {
  position: relative;
}

.faq details {
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.faq details[open] {
  border-color: rgba(61, 155, 143, 0.4);
  transform: translateX(4px);
}

/* Game recommendation cards */
.games-grid {
  display: grid;
  gap: 1.5rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(28, 35, 33, 0.98), rgba(14, 18, 17, 0.98));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.45s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.game-card.is-in,
.game-card:not(.will-reveal) {
  opacity: 1;
  transform: translateY(0);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 160, 69, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.game-card.is-in:hover {
  transform: translateY(-5px);
}

.game-card__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 155, 143, 0.12), transparent 55%),
    #0a0c0b;
  overflow: hidden;
}

.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(12, 15, 14, 0.4));
  pointer-events: none;
}

.game-card__media img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(100%, 320px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.game-card:hover .game-card__media img {
  transform: scale(1.04);
}

.game-card__media img.game-logo--square {
  max-height: 108px;
  max-width: 108px;
  border-radius: 18px;
}

.game-card--sorare .game-card__media {
  min-height: 118px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.03), transparent 50%),
    #ffffff;
}

.game-card--sorare .game-card__media::after {
  background: linear-gradient(180deg, transparent 75%, rgba(12, 15, 14, 0.06));
}

.game-card--sorare .game-card__media img {
  max-width: min(100%, 340px);
  max-height: 72px;
  filter: none;
}

.game-card--sorare:hover .game-card__media img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.game-card--soccerverse .game-card__media {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.06), transparent 55%),
    #1d232a;
}

.game-card--soccerverse .game-card__media img {
  max-height: 120px;
  max-width: 200px;
}

.game-card--mfl .game-card__media {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(254, 235, 0, 0.08), transparent 55%),
    #1a1a1a;
}

.game-card--mfl .game-card__media img {
  max-height: 118px;
  max-width: 160px;
  border-radius: 12px;
}

.game-card__body {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.25rem 1.35rem 1.4rem;
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.game-card__body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.game-facts {
  margin: 0;
  padding: 0.85rem 1rem;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.game-facts strong {
  color: var(--paper);
}

.game-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(224, 160, 69, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.game-meta > div {
  min-width: 0;
}

.game-meta dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.game-meta dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--paper);
  line-height: 1.35;
  word-break: break-word;
}

.game-risk-note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid rgba(224, 160, 69, 0.55);
  background: rgba(224, 160, 69, 0.06);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.game-risk-note strong {
  color: var(--amber);
}

.game-cta {
  margin-top: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(224, 160, 69, 0.35);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(224, 160, 69, 0.14), transparent 55%),
    rgba(12, 15, 14, 0.55);
}

.game-cta .project-actions {
  margin-top: 0;
}

.game-cta .btn-primary {
  flex: 1 1 12rem;
}

.game-cta .btn-ghost {
  flex: 1 1 10rem;
}

@media (max-width: 640px) {
  .game-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.game-card .badges {
  margin-bottom: 0.1rem;
}

.content-label + .content-label {
  margin-left: 0.35rem;
}

.edge-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

.edge-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--amber);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.edge-card:hover {
  transform: translateX(4px);
  border-color: rgba(224, 160, 69, 0.45);
}

.edge-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.edge-tag {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.edge-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.edge-card li + li {
  margin-top: 0.55rem;
}

.edge-card strong {
  color: var(--paper);
}

/* ===== 3D LAYER ===== */
.principle-grid--3d {
  perspective: 1200px;
}

.card-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-3d::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateZ(-12px);
  pointer-events: none;
}

.hero {
  perspective: 1100px;
}

.hero-card {
  transform-style: preserve-3d;
}

.hero-fx .hero-ring {
  transform-style: preserve-3d;
}

.tilt-active {
  transition: transform 0.12s ease-out;
}

/* Principles + game edge panels */
.section--edge {
  position: relative;
  overflow: hidden;
}

.edge-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 10% 20%, rgba(224, 160, 69, 0.1), transparent 60%),
    radial-gradient(600px 280px at 90% 80%, rgba(61, 155, 143, 0.1), transparent 55%);
  pointer-events: none;
}

.principle-rail {
  margin: 1.5rem 0 1.75rem;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.65rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.principle-rail__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marquee 28s linear infinite;
}

.principle-rail__track span:nth-child(odd) {
  color: var(--amber);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.principle-grid {
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 700px) {
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .principle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  position: relative;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 16px;
  background: rgba(14, 18, 17, 0.85);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.principle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 160, 69, 0.12), transparent 45%, rgba(61, 155, 143, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.principle-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: rgba(224, 160, 69, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.principle-card:hover::before {
  opacity: 1;
}

.principle-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(224, 160, 69, 0.55);
  line-height: 1;
  display: block;
  margin-bottom: 0.55rem;
}

.principle-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.principle-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section--edge.is-in .principle-card {
  animation: principleIn 0.6s ease backwards;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

@keyframes principleIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.game-edge {
  border: 1px solid rgba(224, 160, 69, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(224, 160, 69, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(28, 35, 33, 0.55), rgba(0, 0, 0, 0.32));
  padding: 0.2rem 1rem 0.2rem;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    transform 0.3s ease;
  overflow: hidden;
}

.game-edge:hover {
  border-color: rgba(224, 160, 69, 0.5);
}

.game-edge[open],
.game-edge.is-open {
  border-color: rgba(224, 160, 69, 0.6);
  box-shadow:
    0 0 0 1px rgba(224, 160, 69, 0.14),
    0 16px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(242, 239, 230, 0.05);
  padding-bottom: 0.95rem;
}

.game-edge summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.game-edge summary::-webkit-details-marker { display: none; }

.game-edge__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
}

.game-edge__title::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-dim);
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.game-edge[open] .game-edge__title::before,
.game-edge.is-open .game-edge__title::before {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(224, 160, 69, 0.28);
}

.game-edge__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  /* Label text comes from ::before; keep host font-size 0 to hide fallback textContent */
  font-size: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.85rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  box-shadow: 0 6px 16px rgba(224, 160, 69, 0.25);
}

.game-edge__toggle::before {
  content: attr(data-show);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.game-edge__toggle::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.game-edge summary:hover .game-edge__toggle {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 20px rgba(224, 160, 69, 0.35);
}

.game-edge[open] .game-edge__toggle,
.game-edge.is-open .game-edge__toggle {
  background: transparent;
  color: var(--amber);
  border-color: rgba(224, 160, 69, 0.45);
  box-shadow: none;
}

.game-edge[open] .game-edge__toggle::before,
.game-edge.is-open .game-edge__toggle::before {
  content: attr(data-hide);
}

.game-edge[open] .game-edge__toggle::after,
.game-edge.is-open .game-edge__toggle::after {
  transform: rotate(225deg) translateY(-1px);
}

.game-edge ul {
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  list-style: none;
  color: #c8d0cb;
  font-size: 0.92rem;
}

.game-edge[open] ul.is-revealing li,
.game-edge[open] li {
  animation: tipItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--ti, 0) * 0.08s);
}

@keyframes tipItemIn {
  from {
    opacity: 0;
    transform: translateX(-12px) translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.game-edge li {
  position: relative;
  margin: 0;
  padding: 0.75rem 0.9rem 0.75rem 2.15rem;
  border-radius: 10px;
  border: 1px solid rgba(224, 160, 69, 0.1);
  background: linear-gradient(135deg, rgba(224, 160, 69, 0.07), rgba(12, 15, 14, 0.45));
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  line-height: 1.45;
}

.game-edge li + li {
  margin-top: 0.45rem;
}

.game-edge li:hover {
  border-color: rgba(224, 160, 69, 0.22);
  background: rgba(224, 160, 69, 0.06);
}

.game-edge li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  transform: rotate(45deg);
}

.game-edge li strong {
  color: var(--amber);
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .game-edge[open] ul.is-revealing li,
  .game-edge[open] li,
  .game-edge__toggle,
  .game-edge__title::before {
    animation: none !important;
    transition: none !important;
  }
}

.game-card--kickoff .game-card__media {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(224, 160, 69, 0.12), transparent 55%),
    #14110c;
}

.game-card--roller .game-card__media {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(61, 155, 143, 0.14), transparent 55%),
    #0c1413;
}

.game-card.is-in {
  animation: gameSoftIn 0.6s ease backwards;
}

.games-grid .game-card:nth-child(1).is-in { animation-delay: 0.04s; }
.games-grid .game-card:nth-child(2).is-in { animation-delay: 0.1s; }
.games-grid .game-card:nth-child(3).is-in { animation-delay: 0.16s; }
.games-grid .game-card:nth-child(4).is-in { animation-delay: 0.22s; }
.games-grid .game-card:nth-child(5).is-in { animation-delay: 0.28s; }

@keyframes gameSoftIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-edge {
  animation: none;
}

.game-card.is-in .game-edge {
  animation: edgeSoftIn 0.45s ease 0.15s backwards;
}

@keyframes edgeSoftIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.section-title {
  position: relative;
}

.hero h1 {
  text-wrap: balance;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* —— Linha temporal Web3 (3D · ritmo lento) —— */
.section--timeline {
  position: relative;
}

.section--timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(61, 155, 143, 0.04) 40%, transparent);
}

.timeline-scene {
  margin-top: 2.25rem;
  perspective: 1400px;
  perspective-origin: 50% 20%;
}

.timeline {
  --rail: 1.25rem;
  --p: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem 0 0.5rem calc(var(--rail) + 1.1rem);
  position: relative;
  max-width: 40rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) / 2);
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
  border-radius: 2px;
}

.timeline__fill {
  position: absolute;
  left: calc(var(--rail) / 2);
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  transform: translateX(-50%) scaleY(var(--p));
  transform-origin: top center;
  background: linear-gradient(180deg, var(--teal), var(--amber));
  border-radius: 2px;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 18px rgba(61, 155, 143, 0.35);
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem;
}

.timeline__item:last-child {
  padding-bottom: 0.35rem;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * (var(--rail) + 1.1rem) + var(--rail) / 2);
  top: 1.15rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid var(--teal);
  transform: translateX(-50%) scale(0.55);
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.8s ease;
  z-index: 2;
}

.timeline__item.is-in .timeline__marker {
  transform: translateX(-50%) scale(1);
  box-shadow: 0 0 0 5px var(--teal-dim);
}

.timeline__item--warn .timeline__marker {
  border-color: var(--danger);
}

.timeline__item--warn.is-in .timeline__marker {
  box-shadow: 0 0 0 5px var(--danger-dim);
}

.timeline__item--now .timeline__marker {
  border-color: var(--amber);
  background: var(--amber-dim);
}

.timeline__item--now.is-in .timeline__marker {
  box-shadow: 0 0 0 5px var(--amber-dim);
}

.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin: 0 0 0.45rem;
  transition:
    opacity 0.9s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline.is-pending .timeline__item:not(.is-in) .timeline__year {
  opacity: 0;
  transform: translateY(12px);
}

.timeline__body {
  position: relative;
  padding: 0.95rem 1.05rem 1.05rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(28, 35, 33, 0.92), rgba(20, 25, 24, 0.78));
  border: 1px solid var(--line);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(242, 239, 230, 0.06);
  transform-origin: left center;
  backface-visibility: hidden;
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.8s ease;
}

.timeline.is-pending .timeline__item:not(.is-in) .timeline__body {
  opacity: 0;
  transform: rotateX(22deg) translateY(28px) scale(0.96);
}

.timeline__item.is-in .timeline__body {
  opacity: 1;
  transform: none;
}

.timeline.is-pending .timeline__item:nth-child(even):not(.is-in) .timeline__body {
  transform: rotateX(18deg) translateY(24px) scale(0.96);
}

.timeline__body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper);
}

.timeline__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.timeline__note {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 36rem;
}

@media (min-width: 720px) {
  .timeline {
    --rail: 1.5rem;
    padding-left: calc(6.5rem + var(--rail));
    max-width: 44rem;
  }

  .timeline::before,
  .timeline__fill {
    left: calc(6.5rem + var(--rail) / 2);
  }

  .timeline__marker {
    left: calc(-1 * (6.5rem + var(--rail)) + 6.5rem + var(--rail) / 2);
    top: 1.25rem;
  }

  .timeline__year {
    position: absolute;
    left: calc(-1 * (6.5rem + var(--rail)));
    width: 5.5rem;
    text-align: right;
    top: 1.15rem;
    margin: 0;
    font-size: 1.05rem;
  }

  .timeline.is-pending .timeline__item:not(.is-in) .timeline__year {
    transform: translateX(-10px);
  }

  .timeline__item.is-in .timeline__year {
    opacity: 1;
    transform: none;
  }
}

.lang-switch {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 15, 14, 0.55);
  margin-left: 0;
  flex-shrink: 0;
}

.lang-switch--mobile {
  display: none;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.42rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn.is-active {
  background: var(--teal-dim);
  color: #8fd4c9;
}

.lang-switch__btn:hover:not(.is-active) {
  color: var(--paper);
}

.legal-locale {
  margin: 1rem 0 1.25rem;
}

/* Match menu breakpoint (min-width: 880px) so lang never disappears */
@media (max-width: 879px) {
  /* Header: only Menu — logo gets full width without lang overlap */
  .lang-switch--header {
    display: none;
  }

  .lang-switch--mobile {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.85rem;
    padding: 0.28rem;
    gap: 0.2rem;
  }

  .lang-switch--mobile .lang-switch__btn {
    flex: 1 1 0;
    text-align: center;
    padding: 0.55rem 0.35rem;
    font-size: 0.78rem;
  }

  .menu-toggle {
    padding: 0.4rem 0.7rem;
    font-size: 0.88rem;
  }

  .logo {
    font-size: clamp(0.92rem, 4.2vw, 1.1rem);
    max-width: calc(100% - 5.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.vol-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(28, 35, 33, 0.95), rgba(14, 18, 17, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.vol-panel__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.vol-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.vol-total-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.25rem;
}

.vol-total {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 600;
  color: var(--paper);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.vol-delta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.vol-delta.is-pos {
  background: var(--teal-dim);
  color: #8fd4c9;
  border-color: rgba(61, 155, 143, 0.35);
}

.vol-delta.is-neg {
  background: var(--danger-dim);
  color: #f0a898;
  border-color: rgba(212, 101, 74, 0.35);
}

.vol-delta__vs {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.85;
}

.vol-delta.is-pop {
  animation: volPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes volPop {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.vol-sub {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.vol-tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--line);
}

.vol-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.vol-tab.is-active {
  background: var(--teal-dim);
  color: #8fd4c9;
}

.vol-tab:hover:not(.is-active) {
  color: var(--paper);
}

.vol-tab:active {
  transform: scale(0.97);
}

.vol-chart {
  position: relative;
  height: min(360px, 56vw);
  min-height: 240px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(28, 35, 33, 0.35), transparent 40%),
    var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.5s ease;
}

.vol-chart.is-pos {
  box-shadow: inset 0 0 0 1px rgba(61, 155, 143, 0.12);
}

.vol-chart.is-neg {
  box-shadow: inset 0 0 0 1px rgba(212, 101, 74, 0.14);
}

.vol-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vol-y {
  position: absolute;
  inset: 0 0.55rem 2rem auto;
  width: 4.4rem;
  pointer-events: none;
}

.vol-y span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.vol-x {
  position: absolute;
  left: 2%;
  right: 10%;
  bottom: 0.45rem;
  height: 1.1rem;
  pointer-events: none;
}

.vol-x span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.vol-badge {
  position: absolute;
  transform: translate(calc(-100% - 10px), -50%) scale(0.9);
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.vol-badge.is-in {
  opacity: 1;
  transform: translate(calc(-100% - 10px), -50%) scale(1);
}

.vol-badge.is-neg {
  background: var(--danger);
  color: #fff;
}

.vol-dot.is-pulse {
  animation: volDotPulse 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes volDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.82; }
}

.vol-brand {
  position: absolute;
  right: 0.85rem;
  bottom: 1.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.88;
  z-index: 2;
}

.vol-brand__mark {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  background: var(--ink-2);
  border: 1px solid rgba(224, 160, 69, 0.45);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
}

.vol-brand__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.vol-chains-title {
  margin: 1.45rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
}

.vol-chains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.vol-chain {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.07s);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(12, 15, 14, 0.35);
  border: 1px solid transparent;
}

.vol-chains.is-drawn .vol-chain {
  opacity: 1;
  transform: none;
}

.vol-chain__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.vol-chain__name {
  font-weight: 600;
  color: var(--paper);
}

.vol-chain__right {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.vol-chain__val {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.vol-chain__chg {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.vol-chain__chg.is-pos {
  color: #8fd4c9;
  background: var(--teal-dim);
}

.vol-chain__chg.is-neg {
  color: #f0a898;
  background: var(--danger-dim);
}

.vol-chain__track {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(242, 239, 230, 0.06);
  overflow: hidden;
}

.vol-chain__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.vol-chains.is-drawn .vol-chain__fill {
  width: var(--w, 0%);
}

.vol-chain:has(.vol-chain__chg.is-neg) .vol-chain__fill {
  background: linear-gradient(90deg, #a85a48, var(--danger));
}

.vol-note {
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 720px) {
  .vol-panel {
    padding: 1.55rem 1.55rem 1.3rem;
  }

  .vol-chains {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vol-chain,
  .vol-chain__fill,
  .vol-delta,
  .vol-badge,
  .vol-dot {
    animation: none !important;
    transition: none !important;
  }
  .vol-chain {
    opacity: 1 !important;
    transform: none !important;
  }
  .vol-chain__fill {
    width: var(--w, 0%) !important;
  }
  .vol-badge {
    opacity: 1 !important;
  }
}
