/* ==========================================================================
   Marcelo Murilo — portfólio
   Direção: landonorris.store — paleta tirada do retrato do hero (tan sobre
   preto quente + off-white), display expandido, dinâmica de loja
   (badges, cards de produto, PDP, marquees).
   ========================================================================== */

:root {
  --volt: #4B4B48;
  --accent-rgb: 75, 75, 72;
  --ink: #F2F1EF;        /* fundo da página */
  --ink-mid: #E9E8E5;    /* meio do gradiente do scrollytelling */
  --olive: #1C1B19;      /* texto/contraste sobre superfícies claras */
  --paper: #FFFFFF;
  --card: #EAE9E6;
  --text: #1C1B19;
  --text-rgb: 28, 27, 25;
  --text-dim: rgba(var(--text-rgb), 0.72);
  --ink-dim: rgba(28, 27, 25, 0.68);
  --on-olive: #FFFFFF;
  --on-olive-dim: rgba(255, 255, 255, 0.72);
  --on-accent: #FFFFFF;
  --accent-soft: rgba(var(--accent-rgb), 0.8);
  --accent-faint: rgba(var(--accent-rgb), 0.66);
  /* Combinação gerada no Fontjoy com Archivo Black travada como display:
     Archivo Black (display) + Oswald (rótulos) + Prompt (corpo) */
  --display: "Archivo Black", "Arial Black", Arial, sans-serif;
  --body: "Prompt", Arial, sans-serif;
  --utility: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Prompt", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

/* Temas — Claro é o padrão; Grafite e P&B são variações escolhidas no site. */
html[data-theme="grafite"] { /* cinza sobre preto */
  --volt: #A9AFB6;
  --accent-rgb: 169, 175, 182;
  --ink: #101214;
  --ink-mid: #0C0E10;
  --olive: #181B1E;
  --paper: #EDEFF1;
  --card: #E2E4E7;
  --text: #fff;
  --text-rgb: 255, 255, 255;
  --ink-dim: rgba(16, 18, 20, 0.65);
  --on-olive: #FFFFFF;
  --on-olive-dim: rgba(255, 255, 255, 0.72);
  --on-accent: #181B1E;
  --accent-soft: rgba(var(--accent-rgb), 0.55);
  --accent-faint: rgba(var(--accent-rgb), 0.42);
}

html[data-theme="pb"] {      /* preto e branco */
  --volt: #FFFFFF;
  --accent-rgb: 255, 255, 255;
  --ink: #0A0A0A;
  --ink-mid: #060606;
  --olive: #141414;
  --paper: #FFFFFF;
  --card: #EFEFEF;
  --text: #fff;
  --text-rgb: 255, 255, 255;
  --ink-dim: rgba(10, 10, 10, 0.65);
  --on-olive: #FFFFFF;
  --on-olive-dim: rgba(255, 255, 255, 0.72);
  --on-accent: #141414;
  --accent-soft: rgba(var(--accent-rgb), 0.55);
  --accent-faint: rgba(var(--accent-rgb), 0.42);
}

html[data-theme="claro"] {   /* cinza sobre branco (tema claro) */
  --volt: #4B4B48;
  --accent-rgb: 75, 75, 72;
  --ink: #F2F1EF;
  --ink-mid: #E9E8E5;
  --olive: #1C1B19;
  --paper: #FFFFFF;
  --card: #EAE9E6;
  --text: #1C1B19;
  --text-rgb: 28, 27, 25;
  --ink-dim: rgba(28, 27, 25, 0.68);
  --on-olive: #FFFFFF;
  --on-olive-dim: rgba(255, 255, 255, 0.72);
  --on-accent: #FFFFFF;
  --accent-soft: rgba(var(--accent-rgb), 0.8);
  --accent-faint: rgba(var(--accent-rgb), 0.66);
}

html[data-theme="claro"] .story,
html:not([data-theme]) .story {
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-mid) 48%, var(--paper) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.pixel { image-rendering: pixelated; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* Display expandido — eco da Termina da loja.
   font-variation-settings garante o eixo wdth mesmo onde font-stretch falha. */
.display {
  font-family: var(--display);
  font-weight: 400; /* Archivo Black já é black; >400 vira faux-bold */
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.94;
}

.display--md { font-size: clamp(1.7rem, 4vw, 2.9rem); }

.eyebrow {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--volt);
  margin-bottom: 1rem;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 2px;
}

.section--light :focus-visible,
.section--pdp :focus-visible {
  outline-color: var(--olive);
}

/* --------------------------------------------------------------------------
   Topbar volt (faixa de frete da loja)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--volt);
  color: var(--on-accent);
  overflow: hidden;
  white-space: nowrap;
}

.topbar__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0.42rem 0;
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  animation: topbar-slide 14s linear infinite;
}

.topbar__track i { font-style: normal; font-size: 0.5rem; }

.topbar__track, .marquee__track { will-change: transform; }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes topbar-slide {
  from { transform: translateX(34vw); }
  to   { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: var(--olive);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}

.site-header__nav,
.site-header__actions {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.site-header__actions { justify-content: flex-end; }

.site-header a {
  color: var(--on-olive);
  text-decoration: none;
  font-family: var(--utility);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-header a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-header__logo {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem !important;
  font-style: italic;
  letter-spacing: -0.04em !important;
}

.site-header__logo:hover { text-decoration: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-olive);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.chip-cta {
  background: var(--volt);
  color: var(--on-accent) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.chip-cta:hover { text-decoration: none !important; filter: brightness(1.06); }

/* Links sociais com o logo da rede herdando a cor do texto */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-link svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Seletor de tema flutuante (teste de variações da identidade)
   -------------------------------------------------------------------------- */
.theme-picker {
  position: fixed;
  right: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.theme-picker__toggle {
  background: var(--volt);
  color: var(--on-accent);
  border: 0;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.14em;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.theme-picker__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--olive);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 0.4rem;
}

.theme-picker__menu[hidden] { display: none; }

.theme-picker__menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  color: var(--on-olive);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.theme-picker__menu button:hover { background: rgba(var(--accent-rgb), 0.15); }

.theme-picker__menu button.is-current { outline: 2px solid var(--volt); outline-offset: -2px; }

.theme-picker__menu button span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(var(--text-rgb), 0.4);
  flex-shrink: 0;
}

.theme-picker__menu button em { font-style: normal; }

/* Seletor de idioma — mesmo componente, à esquerda do botão de tema */
.lang-picker { right: 7.2rem; }

.lang-flag {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.theme-picker__toggle--lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-picker__current { display: inline-flex; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(var(--accent-rgb), 0.07), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(var(--accent-rgb), 0.045) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(var(--accent-rgb), 0.045) 79px 80px),
    var(--ink);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4.5rem);
}

.hero__copy h1 {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  margin: 0.4rem 0 1.4rem;
}

.hero__sub {
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__spec { margin-top: 2.2rem; color: var(--accent-soft); }

.hero__figure {
  position: relative;
  text-align: center;
  padding-bottom: 1.5rem;
  transform-style: preserve-3d;
  perspective: 900px;
}

.hero__photo {
  width: min(400px, 88%);
  margin: 0 auto;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
}

.hero__caption { margin-top: 1rem; color: var(--accent-soft); }

/* --------------------------------------------------------------------------
   Scrollytelling com profundidade
   -------------------------------------------------------------------------- */
.story {
  position: relative;
  min-height: 520vh;
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-mid) 42%, var(--olive) 100%);
  color: var(--text);
}

.story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(var(--accent-rgb), 0.05) 119px 120px),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(var(--accent-rgb), 0.04) 119px 120px);
  opacity: 0.7;
}

.story__stage {
  position: sticky;
  top: 64px;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 3rem);
  transform-style: preserve-3d;
  perspective: 1200px;
}

.story__visual {
  position: relative;
  min-height: min(620px, 70vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
}

.story__visual::before,
.story__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  transform: rotateX(64deg) translateZ(-120px);
}

.story__visual::before {
  width: 85%;
  height: 85%;
}

.story__visual::after {
  width: 56%;
  height: 56%;
}

.story__year {
  position: absolute;
  inset: auto auto 4% 0;
  color: rgba(var(--accent-rgb), 0.13);
  font-size: clamp(5rem, 18vw, 15rem);
  transform: translateZ(-220px);
  pointer-events: none;
}

.story__sprite {
  position: absolute;
  width: min(220px, 42vw);
  opacity: 0;
  transform: translate3d(0, 48px, -260px) scale(0.62);
  transition: opacity 0.35s ease, transform 0.55s ease;
  will-change: transform, opacity;
}

.story__sprite.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 120px) scale(1.25);
}

.story__sprite--media {
  width: min(430px, 58vw);
  image-rendering: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.28));
}

.story__copy {
  position: relative;
  z-index: 1;
}

.story__steps {
  min-height: 320px;
  position: relative;
}

.story__step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.story__step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.story__step h2 {
  margin-bottom: 1rem;
  color: var(--volt);
}

.story__step p:not(.story__tag) {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: rgba(var(--text-rgb), 0.82);
}

.story__tag {
  margin-top: 1.2rem;
  color: var(--accent-soft);
}

.story__hint {
  margin-top: 2rem;
  color: var(--accent-faint);
}

.story__more {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--volt);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.story__more:hover { background: var(--volt); color: var(--on-accent); }

/* Modal "ver história" — história detalhada de uma experiência */
.story-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(580px, calc(100vw - 2rem));
  margin: auto;
}

.story-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.story-modal[open] { animation: story-modal-in 0.25s ease; }

@keyframes story-modal-in {
  from { opacity: 0; transform: translateY(16px); }
}

.story-modal__panel {
  background: var(--ink);
  color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  gap: 0.9rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.story-modal__panel h3 { color: var(--volt); }

.story-modal__panel p:not(.story__tag):not(.eyebrow) {
  font-family: var(--serif);
  line-height: 1.6;
  color: rgba(var(--text-rgb), 0.85);
}

.story-modal__panel .story__tag { margin-top: 0.3rem; }

.story-modal__close {
  justify-self: end;
  background: none;
  border: none;
  color: var(--accent-soft);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.story-modal__close:hover { color: var(--volt); }

.story-modal__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.story-modal__photos img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.story-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 0.4rem;
}

.story-modal__link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--volt);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
  padding-bottom: 0.15rem;
}

.story-modal__link:hover { border-bottom-color: var(--volt); }

/* Modal de contato — cartões de WhatsApp / E-mail */
.contact-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-option:hover {
  border-color: var(--volt);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateX(4px);
}

.contact-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  background: var(--volt);
  color: var(--on-accent);
}

.contact-option__icon svg { width: 1.3em; height: 1.3em; fill: currentColor; }

.contact-option strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.contact-option em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn--volt { background: var(--volt); color: var(--on-accent); }

.btn--ghost {
  border: 1.5px solid rgba(var(--accent-rgb), 0.5);
  color: var(--volt);
}

.btn--dark { background: var(--olive); color: var(--on-olive); }

/* --------------------------------------------------------------------------
   Marquee de stack
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--volt);
  color: var(--on-accent);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--olive);
}

.marquee__track {
  display: inline-block;
  padding: 0.55rem 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  animation: slide 40s linear infinite;
}

/* --------------------------------------------------------------------------
   Banda de coleção full-bleed (campanhas da loja) com zoom no scroll
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(ellipse 70% 90% at 68% 45%, rgba(var(--accent-rgb), 0.10), transparent 65%),
    var(--olive);
}

.band__art {
  position: absolute;
  right: clamp(-4rem, 4vw, 10rem);
  top: 50%;
  translate: 0 -50%;
  width: min(520px, 55vw);
  transition: transform 0.1s linear;
  will-change: transform;
}

.band__overlay {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 6vh, 3.5rem);
}

.band__title {
  color: var(--on-olive);
  font-size: clamp(2.6rem, 8vw, 6rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.band__link {
  color: var(--on-olive);
  text-decoration: none;
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.band__link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: clamp(3rem, 8vh, 5.5rem) clamp(1rem, 4vw, 3rem); }

.section--light { background: var(--paper); color: var(--olive); }

.section--pdp { background: var(--card); color: var(--olive); padding: 0; }

.section--dark { background: var(--ink); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto 2.2rem;
}

.viewall {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: inherit;
  text-underline-offset: 4px;
}

.viewall::after { content: " →"; }

.viewall--volt { color: var(--volt); }

/* --------------------------------------------------------------------------
   Cards de projeto (cards de produto da loja)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.6rem 1.2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.card { position: relative; }

/* Cards de jogos jogáveis: o card inteiro vira um link só (stretched link
   no <a> do nome) e mostra um aviso de "jogar" ao passar o mouse. */
.card--playable .card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card--playable .card__media { cursor: pointer; }

.card__play-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.card--playable:hover .card__play-hint { opacity: 1; }

.card__media {
  position: relative;
  background: var(--card);
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.card__media img {
  width: 52%;
  transition: transform 0.25s ease;
}

.card:hover .card__media img { transform: scale(1.07); }

.card__media--type { background: var(--olive); }

.card__logo {
  width: 58% !important;
  object-fit: contain;
}

.card__logo--light { width: 72% !important; }

.type-tile {
  color: var(--on-olive);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  transition: transform 0.25s ease;
}

.card:hover .type-tile { transform: scale(1.06) rotate(-2deg); }

.ascii {
  color: var(--on-olive);
  font-size: 0.85rem;
  line-height: 1.25;
  transition: transform 0.25s ease;
}

.card:hover .ascii { transform: scale(1.06); }

.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--volt);
  color: var(--on-accent);
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.32rem 0.7rem;
  z-index: 1;
}

.badge--dark { background: var(--olive); color: var(--on-olive); }

.card__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.card__name a { color: inherit; text-decoration: none; }

.card__name a:hover { text-decoration: underline; text-underline-offset: 4px; }

.card__desc {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-bottom: 0.6rem;
}

.card__stack { color: var(--ink-dim); }

/* --------------------------------------------------------------------------
   PDP — Boy Arena em destaque
   -------------------------------------------------------------------------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
}

.pdp__info {
  background: var(--paper);
  padding: clamp(1.8rem, 4vw, 3rem);
  align-self: start;
  position: sticky;
  top: 64px;
}

.pdp__info h2 { margin-bottom: 0.5rem; }

.pdp__version { color: var(--ink-dim); margin-bottom: 1.4rem; }

.pdp__info > p { color: var(--ink-dim); margin-bottom: 1.2rem; }

.pdp__specs {
  list-style: none;
  margin-bottom: 1.8rem;
}

.pdp__specs li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(22, 19, 17, 0.12);
  font-size: 0.92rem;
  font-weight: 500;
}

.pdp__specs li::before {
  content: "●";
  color: var(--volt);
  -webkit-text-stroke: 1px var(--olive);
  margin-right: 0.6rem;
  font-size: 0.6rem;
  vertical-align: 2px;
}

.pdp__gallery-wrap { position: relative; min-width: 0; }

.pdp__gallery {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pdp__gallery::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 min(430px, 82vw);
  scroll-snap-align: start;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 100%;
  padding: 3.5rem 1.5rem;
}

.pdp__gallery-wrap, .pdp__gallery { height: 100%; }

.shot img { width: 46%; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.25)); }

.shot--boss { background: var(--olive); }

.shot--boss img { width: 62%; }

.shot figcaption { color: var(--ink-dim); }

.shot--boss figcaption { color: var(--on-olive); }

.gallery-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 2px solid rgba(var(--text-rgb), 0.18);
  background: var(--volt);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gallery-arrow:hover { transform: translateY(-50%) scale(1.08); filter: brightness(1.05); }

.gallery-arrow__ghost {
  position: absolute;
  right: 38px;
  bottom: -6px;
  width: 74px;
  max-width: none;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
  animation: ghost-run 0.6s steps(2, end) infinite;
}

@keyframes ghost-run {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

/* --------------------------------------------------------------------------
   Experiência — linhas de arquivo
   -------------------------------------------------------------------------- */
.xp {
  list-style: none;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(var(--accent-rgb), 0.22);
}

.xp__row {
  display: grid;
  grid-template-columns: 200px 1.1fr 1fr 1.2fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0.6rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.22);
  transition: background 0.15s ease, color 0.15s ease;
}

.xp__row:hover { background: var(--volt); color: var(--on-accent); }

.xp__period { color: var(--volt); }

.xp__row:hover .xp__period { color: var(--on-accent); }

.xp__org {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.02rem;
}

.xp__role { font-weight: 500; color: var(--text-dim); }

.xp__row:hover .xp__role { color: rgba(255, 255, 255, 0.78); }

.xp__metric { font-weight: 600; font-size: 0.92rem; text-align: right; }

.xp__note {
  max-width: 1280px;
  margin: 1.6rem auto 0;
  color: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Stack
   -------------------------------------------------------------------------- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.stack__label {
  color: var(--ink-dim);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  border: 1.5px solid var(--olive);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.chips li:hover { background: var(--olive); color: var(--on-olive); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--olive);
  padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 4vw, 3rem) 2rem;
  border-top: 3px solid var(--volt);
}

.footer__cta {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.footer__cta h2 { color: var(--on-olive); margin-bottom: 0.8rem; }

.footer__cta p { color: var(--on-olive-dim); margin-bottom: 1.6rem; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.footer__cols h3 {
  color: var(--on-olive);
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer__cols ul { list-style: none; }

.footer__cols li { margin-bottom: 0.5rem; }

.footer__cols a {
  color: var(--on-olive-dim);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer__legal {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--on-olive-dim);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar__track, .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .story { min-height: auto; }
  .story__stage { position: static; min-height: auto; }
  .story__step { position: static; display: none; }
  .story__step.is-active { display: block; }
  .btn, .card__media img, .type-tile, .ascii, .story__step, .story__sprite { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .story { min-height: 450vh; }
  .story__stage {
    grid-template-columns: 1fr;
    align-content: center;
  }
  .story__visual {
    min-height: 38vh;
  }
  .story__sprite {
    width: min(150px, 38vw);
  }
  .story__sprite--media {
    width: min(280px, 66vw);
  }
  .story__steps {
    min-height: 280px;
  }
  .pdp { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .xp__row { grid-template-columns: 1fr 1fr; row-gap: 0.3rem; }
  .xp__metric { text-align: left; }
}

@media (max-width: 680px) {
  .topbar__track { padding-left: 0; }
  .site-header { grid-template-columns: auto auto 1fr; padding: 0.8rem 1rem; }
  .nav-toggle { display: flex; }
  .site-header__logo { justify-self: start; }
  .site-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--olive);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
    padding: 0 clamp(1rem, 4vw, 3rem);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }
  .site-header__nav.is-open {
    max-height: 320px;
    opacity: 1;
    padding: 0.4rem clamp(1rem, 4vw, 3rem) 0.9rem;
  }
  .site-header__nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
  }
  .site-header__nav a:last-child { border-bottom: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { order: -1; padding-bottom: 0; }
  .hero__photo { width: min(260px, 80%); }
  .cards { grid-template-columns: 1fr 1fr; gap: 1.2rem 0.8rem; }
  .card__desc { font-size: 0.82rem; }

  .footer { padding: clamp(2.4rem, 8vh, 5rem) 1.2rem 1.6rem; }
  .footer__cta { margin-bottom: 2.4rem; }
  .footer__cols {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    margin-bottom: 2rem;
  }
  .footer__cols > div {
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
  }
  .footer__cols > div:last-child { border-bottom: 0; }
  .footer__cols h3 { margin-bottom: 0.6rem; }
  .footer__cols li { margin-bottom: 0.4rem; }
  .footer__cols .social-link { justify-content: center; }
  .footer__legal { text-align: center; font-size: 0.75rem; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .site-header__actions a:not(.chip-cta) { display: none; }
}
