/* Whisper Games — carvão, papel e uma porta entreaberta.
   O estúdio é preto e branco desenhado a lápis; a única cor do site vem dos jogos. */

:root {
  --ink: #050505;
  --coal: #0c0c0b;
  --paper: #ebe6d9;
  --paper-2: rgba(235, 230, 217, 0.72);
  --graphite: rgba(235, 230, 217, 0.5);
  --line: rgba(235, 230, 217, 0.13);
  --portal: hsl(188 100% 62%);
  --portal-glow: hsl(188 100% 60% / 0.45);
  --serif: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --game: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grão de carvão por cima de tudo */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
}

a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
  border-radius: 4px;
}
img,
video {
  max-width: 100%;
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- navegação ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(16px, 4vw, 48px);
}
.nav-mark {
  display: block;
  width: 40px;
  height: 40px;
  opacity: 0.9;
}
.nav ul {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  color: var(--graphite);
  transition: color 200ms;
}
.nav a:hover {
  color: var(--paper);
}

/* ---------- hero: a porta ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  padding: 0 16px clamp(40px, 8vh, 90px);
  overflow: hidden;
  isolation: isolate;
}
.hero-door {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: start center;
  padding-top: 5vh;
}
/* escurece a base para a logo e os botões respirarem */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(5, 5, 5, 0.75) 45%, var(--ink));
  pointer-events: none;
}
.hero-door img {
  width: min(78vh, 130vw);
  height: auto;
  max-width: none;
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 46%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 54% at 50% 46%, #000 52%, transparent 100%);
  animation:
    door-in 2.4s var(--ease) both,
    breathe 14s ease-in-out 2.4s infinite alternate;
}
/* a luz que vaza da porta treme de leve */
.hero-door::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 30%;
  width: 22vh;
  height: 60vh;
  transform: translate(-60%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 250, 235, 0.16), transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 6s steps(1) infinite;
}
@keyframes door-in {
  from {
    opacity: 0;
    transform: scale(1.06);
    filter: brightness(0.2);
  }
}
@keyframes breathe {
  to {
    transform: scale(1.045);
  }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 0.55; }
  42% { opacity: 1; }
  77% { opacity: 0.8; }
  78% { opacity: 1; }
}
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-logo {
  width: min(80vw, 420px);
  height: auto;
  filter: drop-shadow(0 10px 40px #000) drop-shadow(0 0 2px #000);
  animation: rise 1.6s var(--ease) 0.6s both;
}
.hero-line {
  margin: 0;
  max-width: 30ch;
  font: italic 400 clamp(1.15rem, 2.6vw, 1.5rem) / 1.35 var(--serif);
  color: var(--paper-2);
  text-shadow: 0 2px 20px #000;
  animation: rise 1.6s var(--ease) 0.9s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  animation: rise 1.6s var(--ease) 1.15s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 200ms,
    box-shadow 200ms;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover {
  background: #fff;
}
.btn-ghost {
  background: rgba(5, 5, 5, 0.4);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--paper-2);
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--graphite), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- seções ---------- */
.section {
  padding: clamp(80px, 14vh, 160px) clamp(16px, 5vw, 64px);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 18px;
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* manifesto */
.manifesto {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.manifesto h2 {
  margin: 0;
  font: 400 clamp(2.3rem, 6vw, 4.6rem) / 1.02 var(--serif);
  letter-spacing: -0.01em;
}
.manifesto h2 em {
  color: var(--graphite);
}
.manifesto p {
  margin: 0 0 1em;
  color: var(--paper-2);
  max-width: 44ch;
}
.signature {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--graphite);
}
.signature strong {
  display: block;
  font: 400 1.6rem/1.1 var(--serif);
  color: var(--paper);
}

/* ---------- jogo em destaque: a porta vira portal ---------- */
.game {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 70% 40%, #071622 0%, #04060c 45%, var(--ink) 75%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.game::before {
  /* estrelas */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 60%, transparent),
    radial-gradient(1px 1px at 32% 78%, #cfe9ff 60%, transparent),
    radial-gradient(1.5px 1.5px at 58% 12%, #fff 60%, transparent),
    radial-gradient(1px 1px at 81% 64%, #fff 60%, transparent),
    radial-gradient(1px 1px at 91% 28%, #ffe9cf 60%, transparent),
    radial-gradient(1px 1px at 45% 48%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 22% 58%, #bfefff 60%, transparent),
    radial-gradient(1px 1px at 67% 88%, #fff 60%, transparent);
  background-size: 420px 420px;
  opacity: 0.55;
  animation: drift 90s linear infinite;
}
@keyframes drift {
  to {
    background-position: -420px 840px;
  }
}
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.portal {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 460px);
  justify-self: center;
  display: grid;
  place-items: center;
}
.portal::before,
.portal::after {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
}
.portal::before {
  background: conic-gradient(from 0deg, transparent 0 8%, var(--portal) 14%, transparent 30%, #b48bff 46%, transparent 58%, var(--portal) 72%, transparent 88%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  filter: drop-shadow(0 0 18px var(--portal-glow));
  animation: spin 9s linear infinite;
}
.portal::after {
  inset: 0;
  background:
    radial-gradient(circle, hsl(188 100% 70% / 0.32) 0 22%, transparent 48%),
    radial-gradient(circle, transparent 60%, hsl(188 100% 60% / 0.18) 66%, transparent 74%);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  50% { transform: scale(1.04); opacity: 0.8; }
}
.portal img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
}
.game h2 {
  margin: 0 0 18px;
  font: 800 clamp(1.8rem, 4.4vw, 3rem) / 1.05 var(--game);
  letter-spacing: -0.03em;
}
.game h2 span {
  color: var(--portal);
}
.game-lede {
  margin: 0 0 28px;
  color: var(--paper-2);
  max-width: 46ch;
}
.features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
}
.features li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.features b {
  font: 700 0.95rem/1.3 var(--game);
  display: block;
  margin-bottom: 2px;
}
.features span {
  color: var(--graphite);
  font-size: 0.95rem;
}
.features svg {
  width: 26px;
  height: 26px;
  color: var(--portal);
  margin-top: 2px;
}
.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn-portal {
  background: var(--portal);
  color: #021015;
  box-shadow: 0 10px 40px -10px var(--portal-glow);
}
.btn-portal:hover {
  background: hsl(188 100% 72%);
}
.soon {
  font-size: 0.85rem;
  color: var(--graphite);
}

/* ---------- próximo jogo: a masmorra à luz de tocha ---------- */
.dungeon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 80% at 72% 50%, rgba(255, 150, 60, 0.16), transparent 60%),
    radial-gradient(120% 90% at 30% 100%, #140c08 0%, var(--ink) 70%);
  border-bottom: 1px solid var(--line);
}
.dungeon::before {
  /* pedras da masmorra, bem sutis */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image:
    linear-gradient(90deg, rgba(255, 230, 200, 0.6) 1px, transparent 1px),
    linear-gradient(rgba(255, 230, 200, 0.6) 1px, transparent 1px);
  background-size: 64px 32px;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent);
  mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent);
}
.dungeon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.dungeon h2 {
  margin: 0 0 18px;
  font: 700 clamp(2.2rem, 5.4vw, 3.8rem) / 1 'Pixelify Sans', var(--sans);
  color: #f3e3c3;
  text-shadow: 3px 3px 0 #3a1f4a;
}
.dungeon-lede {
  margin: 0 0 28px;
  color: var(--paper-2);
  max-width: 44ch;
}
.dungeon-card {
  position: relative;
  justify-self: center;
  width: min(100%, 480px);
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(255, 150, 60, 0.18));
  animation: torch 5s ease-in-out infinite;
}
.dungeon-card img {
  width: 100%;
  height: auto;
}
@keyframes torch {
  0%, 100% { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(255, 150, 60, 0.18)); }
  45% { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 70px rgba(255, 170, 70, 0.28)); }
  60% { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 50px rgba(255, 140, 50, 0.14)); }
}
/* carimbo "Em breve" */
.stamp {
  position: absolute;
  right: -4%;
  top: 8%;
  padding: 10px 16px 8px;
  font: 700 clamp(1rem, 2.4vw, 1.35rem) / 1 'Pixelify Sans', var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8323a;
  border: 3px solid currentColor;
  border-radius: 6px;
  background: rgba(243, 227, 195, 0.9);
  transform: rotate(9deg);
  box-shadow: inset 0 0 0 2px rgba(200, 50, 58, 0.35);
  mix-blend-mode: normal;
}
.btn-torch {
  background: #f3e3c3;
  color: #1c120c;
  box-shadow: 0 10px 40px -12px rgba(255, 150, 60, 0.55);
}
.btn-torch:hover {
  background: #fff3da;
}

/* chips de plataforma */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: -6px 0 22px;
  padding: 0;
}
.platforms li {
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.platforms li.maybe {
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--graphite);
  box-shadow: inset 0 0 0 1px rgba(235, 230, 217, 0.08);
}

/* ---------- instagram ---------- */
.social {
  text-align: center;
}
.social h2 {
  margin: 0 auto 14px;
  max-width: 18ch;
  font: 400 clamp(2rem, 5vw, 3.6rem) / 1.05 var(--serif);
}
.social p {
  margin: 0 auto 30px;
  max-width: 40ch;
  color: var(--paper-2);
}
.handle {
  font: italic 400 1.2rem/1 var(--serif);
}

/* ---------- rodapé ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(16px, 5vw, 64px) 48px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer img {
  width: 150px;
  height: auto;
  opacity: 0.8;
}
.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--graphite);
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--paper);
}

/* ---------- vinheta em tela cheia ---------- */
.reel {
  width: min(1100px, 100vw);
  max-width: 100vw;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}
.reel::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.reel video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 6px;
}
.reel-close {
  display: block;
  margin: 0 0 10px auto;
  background: none;
  border: 0;
  color: var(--paper-2);
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 4px;
}

/* ---------- aparece ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- páginas de texto (privacidade) ---------- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 110px 20px 64px;
}
.doc h1 {
  margin: 0 0 8px;
  font: 400 clamp(2.2rem, 7vw, 3.4rem) / 1.05 var(--serif);
}
.doc h2 {
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font: 400 1.6rem/1.2 var(--serif);
}
.doc h3 {
  margin: 1.6rem 0 0.4rem;
  font: 600 1.02rem/1.3 var(--sans);
}
.doc p,
.doc ul {
  margin: 0 0 1rem;
  color: var(--paper-2);
}
.doc li {
  margin-bottom: 0.4rem;
}
.doc a {
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.doc strong {
  color: var(--paper);
}
.doc code {
  font-size: 0.9em;
  color: var(--paper);
}
.doc .meta {
  color: var(--graphite);
  margin-bottom: 2rem;
}
.doc .back,
.doc-lang {
  font-size: 0.92rem;
  color: var(--graphite);
}

@media (max-width: 860px) {
  .manifesto,
  .game-grid,
  .dungeon-grid {
    grid-template-columns: 1fr;
  }
  .dungeon-card {
    order: -1;
    width: min(88vw, 400px);
  }
  .portal {
    width: min(86vw, 380px);
  }
  .nav ul li:not(:last-child) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* rodapé simples das páginas de texto */
body > footer:not(.footer) {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--graphite);
}
