/* FahBao Games · site
   Marca: preto #0A0A0A, verde-limão #C6FF00, branco. Archivo Black (títulos) + Space Grotesk (texto).
   Cada jogo usa as cores do próprio jogo na sua seção. */

:root {
  --ink: #0A0A0A;
  --ink-2: #141414;
  --lime: #C6FF00;
  --white: #FFFFFF;
  --paper: #F3F3EC;
  --muted: #A6A6A0;
  --horda-bg: #181C2C;
  --horda-bg-2: #232842;
  --horda-accent: #EB6A2C;
  --linha-bg: #17301A;
  --linha-bg-2: #1F3E22;
  --linha-accent: #FFD866;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --text: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible { outline-color: var(--ink); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--lime); color: var(--ink);
  font: 400 19px/1 var(--display); letter-spacing: -0.04em;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--white);
}
.brand-name { font-weight: 500; font-size: 17px; letter-spacing: 0.01em; }
.brand-name b { font-weight: 700; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .06s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 10px 30px -8px rgba(198, 255, 0, .55); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-orange { background: var(--horda-accent); color: var(--ink); }
.btn-orange:hover { box-shadow: 0 10px 30px -8px rgba(235, 106, 44, .6); }
.btn-yellow { background: var(--linha-accent); color: var(--ink); }
.btn-yellow:hover { box-shadow: 0 10px 30px -8px rgba(255, 216, 102, .5); }
.btn-dark { background: var(--ink); color: var(--lime); }
.btn-dark:hover { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: rgba(10, 10, 10, .08); }
/* Selo oficial do Google Play: imagem sem alteração, com área livre em volta */
.play-badge { display: inline-flex; align-items: center; border-radius: 12px; transition: transform .18s var(--ease), box-shadow .18s; }
.play-badge img { height: 60px; width: auto; }
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .7); }
.play-badge:active { transform: translateY(1px) scale(.98); transition-duration: .06s; }
.actions:has(.play-badge) { align-items: center; gap: 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin-top: 20px; max-width: 34em; color: rgba(255, 255, 255, .86); }
.fine { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .62); max-width: 36em; }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(10, 10, 10, .82);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .langs a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .18s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 2px; }
.langs a { min-height: 40px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.langs a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.langs a[aria-current] { background: var(--white); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding: 56px 0 64px;
  background:
    radial-gradient(60% 70% at 72% 52%, rgba(198, 255, 0, .17), transparent 70%),
    var(--ink);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23C6FF00' fill-opacity='.35'%3E%3Cpath d='M30 20h4v10h10v4H34v10h-4V34H20v-4h10z'/%3E%3Ccircle cx='160' cy='60' r='4'/%3E%3Cpath d='M150 160h3v8h8v3h-8v8h-3v-8h-8v-3h8z' fill-opacity='.6'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' fill-opacity='.14'%3E%3Ccircle cx='90' cy='120' r='5'/%3E%3Cpath d='M190 120h3v8h8v3h-8v8h-3v-8h-8v-3h8z'/%3E%3Ccircle cx='60' cy='190' r='3'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, #000 0 22%, transparent 48%, transparent 62%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0 22%, transparent 48%, transparent 62%, #000 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 78px); margin-top: 20px; max-width: 11em; }
.hero .lede { margin-top: 24px; }
.hero-phones { position: relative; height: min(640px, 72svh); min-height: 420px; }
.phone {
  position: relative; overflow: hidden; aspect-ratio: 9 / 16;
  border-radius: 28px; background: var(--ink-2);
  border: 8px solid #1d1d1d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.phone img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.phone:hover img { transform: scale(1.03); }
.hero-phones .phone { position: absolute; height: 100%; }
.phone-front { right: 30%; top: 0; z-index: 2; }
.phone-back { right: 0; top: 9%; height: 86% !important; opacity: .9; }

/* Entrada do hero, uma vez ao carregar */
.enter { animation: enter .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Seções dos jogos ---------- */
.game { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0; min-height: 100svh; }
.game h2 { font-size: clamp(44px, 6vw, 80px); margin-top: 6px; }
.game-title { display: flex; align-items: center; gap: 22px; }
.game-icon { width: 96px; height: 96px; border-radius: 24px; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14); }

.game-horda { background: linear-gradient(180deg, var(--horda-bg), var(--horda-bg-2)); }
.game-horda .eyebrow { color: var(--horda-accent); }
.game-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cast { justify-self: end; width: min(100%, 520px); }
.cast img { width: 100%; image-rendering: pixelated; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }

.facts {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.facts li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.facts b { font: 400 clamp(36px, 4vw, 52px)/1 var(--display); color: var(--white); }
.facts span { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .74); }
.game-horda .facts b { color: var(--horda-accent); }
.facts-2 { grid-template-columns: repeat(2, 1fr); margin-top: 24px; gap: 10px; }
.facts-2 li { padding: 14px 16px; gap: 2px; }
.facts-2 span { font-size: 14px; }
.facts-2 b { font-size: clamp(30px, 3vw, 40px); color: var(--linha-accent); }

.shots { display: grid; gap: 20px; margin-top: 48px; }
.shots-4 { grid-template-columns: repeat(4, 1fr); }
.shots-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.shots .phone { border-width: 6px; border-radius: 22px; }

.game-linha { background: linear-gradient(180deg, var(--linha-bg), var(--linha-bg-2)); display: flex; align-items: center; }
.game-linha .eyebrow { color: var(--linha-accent); }
.road { position: absolute; left: 0; right: 0; top: 0; height: 22%; opacity: .14; pointer-events: none; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.road img { width: 100%; height: 100%; object-fit: cover; }
.linha-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.game-linha h2 { font-size: clamp(40px, 5vw, 68px); }
.game-linha .lede { margin-top: 16px; }
.tag {
  display: inline-block; margin-right: 8px; padding: 4px 10px; border-radius: 999px;
  background: var(--linha-accent); color: var(--ink); font-size: 12px; letter-spacing: .06em;
}

/* ---------- Estúdio ---------- */
.studio { background: var(--paper); color: var(--ink); padding: clamp(72px, 10vw, 128px) 0; min-height: 100svh; display: flex; align-items: center; }
.studio .eyebrow { color: #4A6100; }
.studio h2 { font-size: clamp(36px, 4.6vw, 64px); margin-top: 14px; max-width: 13em; }
.studio .lede { color: #23231F; }
.studio p + p { margin-top: 16px; max-width: 34em; color: #3A3A35; }
.studio-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.studio-mark {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 48px 24px; border-radius: 28px;
  background: radial-gradient(70% 70% at 50% 40%, rgba(198, 255, 0, .25), transparent 70%), var(--ink);
}
.brand-mark-xl { width: 150px; height: 150px; border-radius: 38px; font-size: 76px; box-shadow: 0 0 0 5px var(--ink), 0 0 0 9px var(--white); }
.studio-games { display: inline-flex; align-items: center; gap: 14px; color: var(--white); font-weight: 700; font-size: 28px; letter-spacing: .32em; margin-right: -.32em; }
.studio-games .plus { width: 22px; height: 22px; background: var(--lime); clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%); }
.studio-games .dots { position: relative; width: 22px; height: 22px; }
.studio-games .dots::before, .studio-games .dots::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; }
.studio-games .dots::before { left: 0; bottom: 0; background: var(--white); }
.studio-games .dots::after { right: 0; top: 0; background: var(--lime); }
.sheet { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sheet div { padding: 14px 0; border-top: 1px solid rgba(10, 10, 10, .14); }
.sheet dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5C5C55; }
.sheet dd { margin: 4px 0 0; font-weight: 500; }

/* ---------- Contato ---------- */
.contact { background: var(--lime); color: var(--ink); padding: clamp(72px, 10vw, 128px) 0; min-height: 80svh; display: flex; align-items: center; }
.contact .eyebrow { color: var(--ink); }
.contact h2 { font-size: clamp(40px, 6vw, 84px); margin-top: 14px; }
.contact .lede { color: #1E2400; }
.mail {
  display: inline-block; margin-top: 36px;
  font: 400 clamp(26px, 5.2vw, 72px)/1.1 var(--display); letter-spacing: -0.02em;
  text-decoration: none; overflow-wrap: break-word;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 4px no-repeat;
  transition: background-size .35s var(--ease);
}
.mail:hover { background-size: 100% 4px; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); padding: 48px 0 40px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: rgba(255, 255, 255, .78); text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) left 80% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .18s;
}
.footer-links a:hover { color: var(--white); background-size: 100% 2px; }
.footer-legal { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }

/* ---------- Telas menores ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .shots-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 48px 0 56px; }
  .hero-grid, .game-head, .linha-grid, .studio-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 520px; min-height: 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone-front { right: auto; left: 4%; }
  .cast { justify-self: center; width: min(100%, 440px); }
  .linha-grid .shots { order: 2; }
  .game, .studio, .contact { min-height: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .brand-name { display: none; }
  .nav-end { gap: 8px; }
  .langs a { padding: 0 9px; }
  .btn-sm { padding: 0 14px; font-size: 14px; }
  .actions .btn { width: 100%; }
  .play-badge img { height: 56px; }
  .hero-phones { height: 440px; }
  .game-title { gap: 16px; }
  .game-icon { width: 72px; height: 72px; border-radius: 18px; }
  .facts { gap: 10px; margin-top: 40px; }
  .facts li { padding: 16px; }
  .shots { gap: 12px; }
  .shots-3 { grid-template-columns: repeat(3, 1fr); }
  .shots .phone { border-width: 4px; border-radius: 14px; }
  .sheet { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}
@media (max-width: 380px) {
  .nav .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
