/* Enigmática — fundo escuro com uma cena do jogo, painéis escuros, uma cor de destaque */
@font-face { font-family: 'Chakra'; src: url('assets/fonts/chakra-petch-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chakra'; src: url('assets/fonts/chakra-petch-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Chakra'; src: url('assets/fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #07090c;
  --text: #e9edf2;
  --dim: #aab3bf;
  --mute: #7b8592;
  --hot: #ff5a3c;
  --line: rgba(233, 237, 242, .16);
  --panel: rgba(9, 11, 15, .74);
  --gut: clamp(20px, 4.4vw, 64px);
  --wide: 1280px;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 400 17px/1.55 'Chakra', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

/* uma imagem só, escurecida, atrás da página inteira */
.bg { position: fixed; inset: 0; z-index: -1; background: url(assets/img/bg.jpg) center / cover no-repeat; filter: saturate(.85) brightness(.5); }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 12, .95) 0%, rgba(7, 9, 12, .78) 45%, rgba(7, 9, 12, .55) 100%), linear-gradient(0deg, rgba(7, 9, 12, .6), transparent 40%); }

/* cabeçalho */
.head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 40px; padding: 22px var(--gut); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.head.is-scrolled { background: rgba(7, 9, 12, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 14px; }
.logo img { width: 44px; height: 44px; }
.logo b { display: block; font-size: 24px; font-weight: 700; letter-spacing: .18em; line-height: 1.1; }
.logo small { display: block; font-size: 11px; letter-spacing: .3em; color: var(--hot); text-transform: uppercase; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { display: flex; align-items: center; gap: 4px; color: var(--mute); font-size: 14px; letter-spacing: .2em; }
.lang button { border: 0; background: none; padding: 6px 4px; color: var(--mute); letter-spacing: .2em; cursor: pointer; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--hot); font-weight: 700; }

/* botões */
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.b { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid rgba(233, 237, 242, .35); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, background .2s; }
.b:hover { border-color: var(--text); background: rgba(233, 237, 242, .07); }
.b.on { background: var(--hot); border-color: var(--hot); color: var(--ink); }
.b.on:hover { background: #ff7458; border-color: #ff7458; }

/* painel: o mesmo estilo em todo o site */
.panel { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.st { font-size: 12px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--hot); }

/* abertura */
.hero { width: min(100% - 2 * var(--gut), var(--wide)); margin: 0 auto; min-height: calc(100svh - 92px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: 30px 0 70px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.lede { margin: 22px 0 32px; max-width: 40ch; color: var(--dim); font-size: 19px; }
.trailer { padding: 0; }
.poster { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 78px; height: 78px; background: var(--hot); color: var(--ink); transition: transform .2s; }
.play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 3px; }
.poster:hover .play { transform: scale(1.08); }
.trailer iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.trailer figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.trailer figcaption b { font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* seções */
.block { width: min(100% - 2 * var(--gut), var(--wide)); margin: 0 auto; padding: clamp(50px, 7vw, 90px) 0 0; scroll-margin-top: 90px; }
.h { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game { display: flex; flex-direction: column; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.p { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.game h3 { margin: 8px 0 8px; font-size: 30px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.tx { color: var(--dim); max-width: 48ch; }
.game .row { margin-top: auto; padding-top: 22px; }

.chs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ch { position: relative; min-width: 0; display: flex; align-items: flex-end; gap: 12px; min-height: 150px; padding: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.ch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.6); transition: opacity .3s, filter .3s; }
.ch:hover { border-color: var(--hot); }
.ch:hover img { opacity: .4; filter: none; }
.ch > .ic, .ch > span { position: relative; }
.ch > .ic { width: 26px; height: 26px; margin-bottom: 4px; }
.ch b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ch small { display: block; color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
.ch > span { min-width: 0; }

.about-p { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px 32px; }
.about-p img { width: 110px; }
.about .h { margin-bottom: 10px; }
.mail { display: inline-block; margin-top: 14px; color: var(--hot); font-weight: 600; letter-spacing: .04em; }
.mail:hover { text-decoration: underline; }

.foot { width: min(100% - 2 * var(--gut), var(--wide)); margin: clamp(50px, 7vw, 90px) auto 0; padding: 22px 0 34px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--mute); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.socials { display: flex; gap: 18px; }
.socials a { color: var(--dim); transition: color .2s; }
.socials a:hover { color: var(--hot); }

/* responsivo */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .games { grid-template-columns: 1fr; }
  .chs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .head { gap: 16px; padding-block: 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .logo b { font-size: 19px; }
  .logo img { width: 36px; height: 36px; }
  .bg::after { background: rgba(7, 9, 12, .78); }
  .chs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chs li:first-child { grid-column: 1 / -1; }
  .about-p { grid-template-columns: 1fr; }
  .b { flex: 1 1 auto; justify-content: center; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- celular: mais respiro e cada parte bem separada ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 20px; gap: 36px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .lede { margin: 16px 0 26px; font-size: 17px; }
  .hero .row { flex-direction: column; }
  .trailer figcaption { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
  .block { padding-top: 72px; }
  .h { display: flex; align-items: center; gap: 14px; font-size: 24px; margin-bottom: 20px; }
  .h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .games { gap: 28px; }
  .p { padding: 18px 18px 22px; }
  .game h3 { font-size: 24px; }
  .game .row { padding-top: 18px; }
  .chs { grid-template-columns: 1fr; gap: 8px; }
  .chs li:first-child { grid-column: auto; }
  .ch { min-height: 0; align-items: center; padding: 14px 16px; }
  .ch img { display: none; }
  .ch > .ic { margin: 0; width: 24px; height: 24px; }
  .about-p { padding: 24px 20px; gap: 18px; justify-items: start; }
  .about-p img { width: 72px; }
  .about .h::after { display: none; }
  .foot { margin-top: 60px; gap: 16px; }
}
