/* SkyStair Studios - site */
:root {
  --bg: #000;
  --panel: #0d0d0d;
  --panel-2: #151515;
  --line: #222;
  --text: #fff;
  --soft: #c8c8c8;
  --muted: #8a8a8a;
  --red: #b3121b;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --top: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 56px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- Topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--top);
  display: flex; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: 0 var(--pad);
  background: #000;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; height: 100%; }
.brand-mark { height: 28px; width: auto; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 34px); margin-right: auto; }
.nav a {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--soft); padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--text); border-color: var(--text); }
.lang {
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  color: var(--text); background: none; border: 1px solid #3a3a3a;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.lang:hover { border-color: var(--text); }

/* subnavegação da página do jogo */
.subnav {
  position: sticky; top: var(--top); z-index: 15;
  margin-top: var(--top);
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 32px);
  padding: 0 var(--pad); height: 52px;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; white-space: nowrap;
}
.subnav-title { font-weight: 900; letter-spacing: .18em; font-size: 14px; margin-right: 12px; }
.subnav a { font-size: 13px; font-weight: 700; color: var(--muted); }
.subnav a:hover { color: var(--text); }

/* ---------- Arte (imagem ou fundo de reserva) ---------- */
.art {
  position: relative; overflow: hidden;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(120% 90% at 50% 120%, rgba(179, 18, 27, .28), transparent 60%),
    radial-gradient(80% 60% at 50% 40%, #161616, #050505 70%);
  background-size: cover; background-position: center;
}
.art::after {
  /* grão */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.art.has-img::after { opacity: 0; }
.art.has-img > .tile-word,
.art.has-img > .person-initial { display: none; }

/* ---------- Destaque ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--top) + 40px) var(--pad) clamp(48px, 8vh, 96px);
}
.hero-game { min-height: calc(100svh - var(--top) - 52px); padding-top: 40px; }
.hero-art { position: absolute; inset: 0; }
.hero-art::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, transparent 45%, rgba(0,0,0,.85) 85%, #000 100%),
    linear-gradient(90deg, rgba(0,0,0,.55), transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.status {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  background: var(--red); color: #fff; padding: 5px 10px; border-radius: 3px;
}
.wordmark {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 13vw, 208px);
  letter-spacing: .04em; line-height: .86;
  margin: 18px 0 20px -0.04em;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 20px); color: var(--soft); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-solid { background: #fff; color: #000; }
.btn-solid:hover { background: #d9d9d9; }
.btn-ghost { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Blocos ---------- */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad) 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.block h2 {
  font-weight: 900; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(32px, 4.6vw, 64px); line-height: 1;
}

/* Jogos */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 20px; }
.game-tile { display: block; }
.tile-art {
  aspect-ratio: 3 / 4; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s ease, filter .35s ease;
}
.tile-word { font-weight: 900; font-size: clamp(26px, 3vw, 38px); letter-spacing: .1em; position: relative; z-index: 1; }
.game-tile:hover .tile-art { transform: scale(1.02); filter: brightness(1.15); }
.tile-info { padding: 14px 2px 0; }
.tile-info h3 { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.tile-info span { font-size: 13px; color: var(--muted); }

/* Devlog (estilo Newswire) */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 20px; }
.news-card { display: block; }
.news-card .art { aspect-ratio: 16 / 9; border-radius: 6px; transition: filter .3s; margin-bottom: 14px; }
.news-card:hover .art { filter: brightness(1.2); }
.news-card time { display: block; margin-top: 14px; padding-top: 14px; border-top: 2px solid #fff; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-size: 20px; font-weight: 800; line-height: 1.25; margin: 6px 0 8px; }
.news-card p { color: var(--soft); font-size: 15px; }
.empty { color: var(--muted); }

/* Estúdio */
.studio { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio-mark { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 18%; }
.studio-text p { color: var(--soft); font-size: clamp(17px, 1.5vw, 20px); max-width: 620px; margin: 20px 0 28px; }
.team { display: flex; flex-wrap: wrap; gap: 14px 48px; }
.team dt { font-weight: 800; font-size: 18px; }
.team dd { color: var(--muted); font-size: 14px; }

/* Contato */
.contact { padding-bottom: clamp(64px, 9vw, 120px); }
.mail {
  display: inline-block; margin-top: 18px;
  font-size: clamp(22px, 3.4vw, 44px); font-weight: 800;
  border-bottom: 3px solid #333; padding-bottom: 4px; transition: border-color .15s;
  overflow-wrap: anywhere;
}
.mail:hover { border-color: #fff; }

/* ---------- Página do jogo ---------- */
.about-text { font-size: clamp(20px, 2.3vw, 30px); font-weight: 500; line-height: 1.45; max-width: 980px; margin-top: 24px; color: #e6e6e6; }

.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person-art { aspect-ratio: 3 / 4; border-radius: 6px; display: flex; align-items: flex-end; padding: 18px; }
.person-initial { position: relative; z-index: 1; font-weight: 900; font-size: clamp(64px, 8vw, 120px); line-height: .8; color: rgba(255,255,255,.08); }
.person h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 4px; }
.person p { color: var(--soft); font-size: 15px; }

.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip .feature-art { order: 2; }
.feature-art { aspect-ratio: 16 / 9; border-radius: 6px; }
.feature-text h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin-bottom: 14px; }
.feature-text p { color: var(--soft); font-size: 17px; max-width: 520px; }

.sheet { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sheet div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.sheet dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sheet dd { font-size: 17px; font-weight: 600; margin-top: 4px; }

.more { padding-bottom: clamp(64px, 9vw, 120px); }

/* ---------- Rodapé ---------- */
.footer {
  border-top: 1px solid var(--line); background: #050505;
  padding: 48px var(--pad);
  display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center;
}
.footer-mark { height: 34px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.footer-nav a:hover { color: #fff; }
.legal { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .cast { grid-template-columns: repeat(2, 1fr); }
  .sheet { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar { gap: 16px; }
  .nav { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .nav a { font-size: 11px; }
  .brand-mark { height: 24px; }
  .studio { grid-template-columns: 1fr; }
  .studio-mark { max-width: 220px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cast { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sheet { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
