:root {
  --bg: #0f0a18;
  --surface: #1e1630;
  --surface-2: #271d3d;
  --text: #f5f2fa;
  --muted: #b3a9c9;
  --gold: #e3b54a;
  --gold-2: #f2cc6f;
  --line: #3a2d55;
  --font-title: "Cinzel", serif;
  --font-pixel: "Press Start 2P", monospace;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; }

h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; margin-bottom: 18px; }
h3 { font-size: 1.25rem; font-weight: 700; }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #241a05;
  box-shadow: 0 8px 24px rgba(227, 181, 74, 0.25);
}
.btn-gold:hover { color: #241a05; box-shadow: 0 12px 30px rgba(227, 181, 74, 0.4); }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-small { padding: 9px 18px; font-size: 0.9rem; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(15, 10, 24, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { border-radius: 8px; }
.brand:hover { color: var(--gold); }

.nav-links { display: flex; gap: clamp(12px, 2.4vw, 28px); }
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  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); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 10, 24, 0.9);
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.to-top:hover { transform: translateY(-3px); border-color: var(--gold); }

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/img/hero.jpg") center / cover no-repeat;
  image-rendering: auto;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(30, 22, 48, 0.35), rgba(15, 10, 24, 0.92) 75%),
    linear-gradient(180deg, rgba(15, 10, 24, 0.85), rgba(15, 10, 24, 0.6) 40%, var(--bg));
}

.hero-inner { position: relative; max-width: 760px; }

.hero-logo {
  width: clamp(150px, 24vw, 230px);
  height: auto;
  margin: 6px auto 18px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--muted);
  margin: 18px auto 30px;
  max-width: 620px;
}
.lead strong { color: var(--text); }
.lead em { color: var(--gold); font-style: normal; font-family: var(--font-title); }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.platforms {
  margin-top: 26px;
  font-family: var(--font-pixel);
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--muted);
}
.platforms .dot { color: var(--gold); margin: 0 10px; }

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 14px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 40px);
}

.section.alt {
  max-width: none;
  background: linear-gradient(180deg, var(--bg), var(--surface) 30%, var(--surface) 70%, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section.alt > .eyebrow, .section.alt > h2, .section.alt > .muted { max-width: var(--max); }

.jogo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  margin-top: 34px;
  align-items: start;
}
.jogo-text p + p { margin-top: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--line);
  background: rgba(227, 181, 74, 0.07);
  border-radius: 999px;
  padding: 6px 14px;
}

.themes { display: grid; gap: 18px; }
.theme-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.theme-tag {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  color: var(--gold);
  line-height: 1.7;
  margin-bottom: 10px;
}
.theme-card h3 { margin-bottom: 8px; }
.theme-card p:last-child { color: var(--muted); font-size: 0.95rem; }

.rail-wrap { position: relative; margin-top: 34px; }

.video-frame {
  position: relative;
  margin: 34px auto 0;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}
.video-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, rgba(10, 0, 30, 0.15), rgba(10, 0, 30, 0.75));
  transition: opacity 0.3s ease;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 0.25s ease;
}
.video-play svg { width: 84px; height: 60px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55)); }
.video-play .yt-bg { fill: var(--gold, #ffd166); }
.video-play-label {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}
.video-frame:hover .video-poster { transform: scale(1.04); filter: brightness(1.05); }
.video-frame:hover .video-play { transform: scale(1.06); }
.video-frame:focus-visible { outline: 2px solid var(--gold, #ffd166); outline-offset: 3px; }
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 auto; scroll-snap-align: start; }

.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-80%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 10, 24, 0.85);
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.rail-btn:hover { background: var(--surface-2); border-color: var(--gold); }
.rail-btn.prev { left: -8px; }
.rail-btn.next { right: -8px; }

.shot {
  width: min(560px, 82vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img {
  width: 100%;
  aspect-ratio: 1440 / 694;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.shot.ui img { aspect-ratio: 1600 / 688; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.pixel-block { margin-top: 64px; }
.pixel-block h3 { font-size: 1.5rem; }
.pixel-block .muted { margin: 8px 0 26px; }

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
}
.icons-grid img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.icons-grid img:hover { border-color: var(--gold); transform: translateY(-3px); }

.band { position: relative; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/vilarejo.jpg") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.band > * { position: relative; }

.jam-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 34px;
  align-items: start;
}
.jam-text p + p { margin-top: 16px; }

.jam-facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.jam-facts h3 { margin-bottom: 16px; color: var(--gold); }
.jam-facts ul { list-style: none; }
.jam-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}
.jam-facts li:last-child { border-bottom: 0; }
.jam-facts span { color: var(--muted); }
.jam-facts strong { text-align: right; }

.behind { margin-top: 48px; }
.photo {
  width: min(420px, 78vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.behind-label { margin-top: 6px; font-size: 0.9rem; }

.team-sub { max-width: 560px; margin: -6px auto 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 38px;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.member:hover { border-color: var(--gold); transform: translateY(-4px); }
.monogram {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 15px;
  color: #241a05;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.member h3 { font-size: 1.05rem; margin-bottom: 6px; }
.member p { color: var(--gold); font-size: 0.9rem; font-weight: 600; }

.ost {
  max-width: 720px;
  margin: 34px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.ost-now { display: flex; align-items: center; gap: 16px; }
.ost-big {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #241a05;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(227, 181, 74, 0.3);
  transition: transform 0.15s ease;
}
.ost-big:hover { transform: scale(1.06); }
.ost-info { flex: 1; min-width: 0; }
.ost-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}
.ost-title { font-weight: 600; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ost-bar {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}
#ost-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.15s linear;
}
.ost-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; flex: 0 0 auto; }
.ost-list { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.ost-track {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ost-track:hover { border-color: var(--gold); }
.ost-track.active { border-color: var(--gold); background: rgba(227, 181, 74, 0.08); color: var(--gold); }
.ost-track span { color: var(--muted); font-size: 0.85rem; }

.play-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}
.itch-embed {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.itch-embed iframe { display: block; border-radius: 6px; }
.play-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 44px clamp(16px, 4vw, 40px) 30px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-about {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 460px;
}
.footer-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}
.footer-brand { font-family: var(--font-title); font-weight: 900; font-size: 1.3rem; margin-bottom: 6px; }
.footer-about .muted { font-size: 0.95rem; }
.footer-about strong { color: var(--text); }

.footer-contato {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  width: min(520px, 100%);
}
.footer-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.footer-link:hover { border-color: var(--gold); background: rgba(227, 181, 74, 0.06); transform: translateY(-2px); }
.footer-link-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-link-value { color: var(--text); font-size: 0.92rem; font-weight: 500; word-break: break-word; }
.footer-link:hover .footer-link-value { color: var(--gold); }

.footer .small { max-width: var(--max); margin: 26px auto 0; text-align: center; }

@media (max-width: 760px) {
  .footer-grid { flex-direction: column; }
  .footer-contato { width: 100%; }
}

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

@media (max-width: 900px) {
  .jogo-grid, .jam-grid { grid-template-columns: 1fr; }
  .rail-btn.prev { left: 2px; }
  .rail-btn.next { right: 2px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 40px) 16px;
    background: rgba(15, 10, 24, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px dashed var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .shot { width: 88vw; }
  .photo { width: 84vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  .btn, .shot img, .member, .icons-grid img { transition: none; }
}
