@font-face {
  font-family: "Pirata One";
  src: url("assets/fonts/PirataOne-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/Oswald-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #1b120e;
  --paper: #f7eddc;
  --paper-strong: #fff7ea;
  --gold: #d79a39;
  --gold-dark: #8d561c;
  --red: #8f2e24;
  --green: #2f5d46;
  --night: #12100d;
  --muted: #6f5d4d;
  --line: rgba(72, 43, 25, 0.2);
  --shadow: 0 24px 70px rgba(26, 14, 8, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

body.language-gate-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.9), rgba(18, 16, 13, 0.76)),
    url("assets/title_screen/background.jpg") center / cover;
}

.language-gate.is-hidden {
  display: none;
}

.language-gate-panel {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 247, 234, 0.22);
  padding: clamp(26px, 5vw, 38px);
  color: var(--paper-strong);
  text-align: center;
  background: rgba(18, 16, 13, 0.84);
  box-shadow: var(--shadow);
}

.language-gate-kicker {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-gate h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 7vw, 46px);
}

.language-gate h2 span {
  color: rgba(255, 247, 234, 0.78);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-gate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.language-gate-actions button {
  display: grid;
  min-height: 128px;
  place-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 247, 234, 0.18);
  padding: 16px;
  color: var(--paper-strong);
  background: rgba(255, 247, 234, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.language-gate-actions button:hover,
.language-gate-actions button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 247, 234, 0.14);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.language-gate-actions img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--paper-strong);
  background: linear-gradient(180deg, rgba(19, 12, 8, 0.78), rgba(19, 12, 8, 0));
}

.brand,
.header-actions,
.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 247, 234, 0.36);
  background: rgba(27, 18, 14, 0.54);
  color: var(--gold);
  font-family: "Pirata One", Georgia, serif;
  font-size: 20px;
}

.nav-links a {
  color: rgba(255, 247, 234, 0.86);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.brand:hover {
  color: #ffffff;
}

.language-switcher {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 234, 0.34);
  background: rgba(20, 14, 10, 0.36);
}

.language-switcher button {
  min-width: 42px;
  border: 0;
  padding: 9px 10px;
  color: rgba(255, 247, 234, 0.74);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 86px clamp(18px, 5vw, 72px) 18px;
  color: var(--paper-strong);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/title_screen/background.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 9, 7, 0.88) 0%, rgba(14, 9, 7, 0.66) 42%, rgba(14, 9, 7, 0.12) 100%),
    linear-gradient(180deg, rgba(14, 9, 7, 0.36) 0%, rgba(14, 9, 7, 0.12) 58%, var(--paper) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-logo {
  width: min(360px, 82vw);
  margin: 0 0 22px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 4.6vw, 52px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.12;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 26px;
  color: rgba(255, 247, 234, 0.9);
  font-size: 20px;
}

.hero-actions,
.campaign-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 13, 8, 0.22);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 247, 234, 0.55);
  color: var(--paper-strong);
  background: rgba(20, 14, 10, 0.34);
}

.button-dark {
  background: var(--night);
  color: var(--paper-strong);
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band,
.about-band,
.story-band,
.how-band,
.gameplay-band,
.campaign-band,
.partners-band,
.community-band {
  padding: clamp(62px, 9vw, 112px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.intro-grid > div:first-child p:not(.section-kicker),
.how-copy p,
.campaign-copy p,
.community-layout p {
  color: var(--muted);
  font-size: 21px;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article {
  border-left: 4px solid var(--gold);
  padding: 18px 0 18px 22px;
  background: linear-gradient(90deg, rgba(255, 247, 234, 0.75), rgba(255, 247, 234, 0));
}

.feature-list span {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-band {
  color: var(--paper-strong);
  background: linear-gradient(180deg, #15100d, #271911);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.about-logo-panel {
  display: grid;
  min-height: 280px;
  place-items: center;
  border: 1px solid rgba(255, 247, 234, 0.16);
  padding: clamp(26px, 5vw, 42px);
  background:
    radial-gradient(circle at 50% 46%, rgba(215, 154, 57, 0.18), transparent 48%),
    rgba(255, 247, 234, 0.07);
  box-shadow: var(--shadow);
}

.about-logo-panel img {
  width: min(100%, 300px);
}

.about-copy p:not(.section-kicker) {
  color: rgba(255, 247, 234, 0.82);
  font-size: 21px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.story-band {
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.92), rgba(247, 237, 220, 0.98)),
    url("assets/backgrounds/fundo_pergaminho.jpg") center / cover;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.story-copy p:not(.section-kicker),
.gameplay-layout p,
.partners-layout p {
  color: var(--muted);
  font-size: 21px;
}

.story-timeline {
  display: grid;
  gap: 16px;
}

.story-timeline article {
  border-left: 4px solid var(--red);
  padding: 20px 22px;
  background: rgba(255, 247, 234, 0.72);
  box-shadow: 0 14px 34px rgba(69, 42, 25, 0.09);
}

.story-timeline span {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.how-band {
  color: var(--paper-strong);
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.94), rgba(18, 16, 13, 0.78)),
    url("assets/backgrounds/background_desert.jpg") center / cover;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.how-copy p {
  color: rgba(255, 247, 234, 0.82);
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.loop-steps article {
  min-height: 210px;
  border: 1px solid rgba(255, 247, 234, 0.16);
  padding: 22px;
  background: rgba(255, 247, 234, 0.08);
}

.loop-steps span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.loop-steps h3 {
  color: #ffffff;
}

.loop-steps p {
  margin-bottom: 0;
  color: rgba(255, 247, 234, 0.76);
}

.enemy-challenges {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  border-top: 1px solid rgba(255, 247, 234, 0.16);
  padding-top: clamp(30px, 5vw, 48px);
}

.enemy-challenges h3 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
}

.enemy-challenges p:not(.section-kicker) {
  margin-bottom: 0;
  color: rgba(255, 247, 234, 0.78);
  font-size: 20px;
}

.enemy-roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.enemy-roster figure {
  position: relative;
  display: grid;
  min-height: 210px;
  margin: 0;
  place-items: end center;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 234, 0.16);
  padding: 18px 12px 46px;
  background:
    radial-gradient(circle at 50% 34%, rgba(215, 154, 57, 0.2), transparent 44%),
    rgba(255, 247, 234, 0.08);
}

.enemy-roster img {
  width: min(92%, 150px);
  max-height: 150px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.36));
}

.enemy-roster figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px;
  color: rgba(255, 247, 234, 0.9);
  background: rgba(18, 16, 13, 0.78);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.showcase {
  padding: 24px 0 clamp(58px, 8vw, 100px);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.visual-panel {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-panel,
.enemy-panel {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(215, 154, 57, 0.2), transparent 34%),
    linear-gradient(180deg, #2b2118, #15100d);
}

.character-panel img,
.enemy-panel img {
  width: min(78%, 310px);
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.enemy-panel img {
  width: min(84%, 380px);
}

.visual-panel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: var(--paper-strong);
  background: linear-gradient(180deg, rgba(18, 16, 13, 0), rgba(18, 16, 13, 0.92));
  font-size: 17px;
}

.gameplay-band {
  background: var(--paper);
}

.gameplay-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.gameplay-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 154, 57, 0.16), transparent 42%),
    #201713;
  box-shadow: var(--shadow);
}

.gameplay-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.campaign-band {
  color: var(--paper-strong);
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.92), rgba(18, 16, 13, 0.74)),
    url("assets/backgrounds/background_battlefield.jpg") center / cover;
}

.campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.campaign-copy {
  align-items: flex-start;
  flex-direction: column;
}

.campaign-copy p {
  color: rgba(255, 247, 234, 0.82);
}

.countdown-card {
  border: 1px solid rgba(255, 247, 234, 0.2);
  padding: clamp(24px, 5vw, 42px);
  background: rgba(18, 16, 13, 0.72);
  box-shadow: var(--shadow);
}

.countdown-label {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown div {
  min-width: 0;
  border: 1px solid rgba(255, 247, 234, 0.16);
  padding: 14px 8px;
  text-align: center;
  background: rgba(255, 247, 234, 0.08);
}

.countdown strong {
  display: block;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.countdown span {
  color: rgba(255, 247, 234, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown-note {
  margin: 18px 0 0;
  color: rgba(255, 247, 234, 0.78);
}

.partners-band {
  color: var(--paper-strong);
  background: linear-gradient(180deg, #17120f, #241812);
}

.partners-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.partners-layout p {
  color: rgba(255, 247, 234, 0.78);
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.partner-logos a {
  display: grid;
  min-height: 168px;
  place-items: center;
  border: 1px solid rgba(255, 247, 234, 0.16);
  padding: 24px;
  background: rgba(255, 247, 234, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.partner-logos a:hover {
  transform: translateY(-3px);
  background: rgba(255, 247, 234, 0.12);
}

.partner-logos img {
  width: min(100%, 170px);
  max-height: 96px;
  object-fit: contain;
}

.partner-logos .social-icon img {
  width: min(78px, 72%);
}

.community-band {
  background:
    linear-gradient(180deg, rgba(247, 237, 220, 0.92), rgba(247, 237, 220, 0.98)),
    url("assets/backgrounds/fundo_pergaminho.jpg") center / cover;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.9fr) auto;
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
}

.community-layout h2 {
  margin-bottom: 0;
}

.community-layout p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 247, 234, 0.76);
  background: var(--night);
  font-size: 16px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .site-header {
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(14, 9, 7, 0.9), rgba(14, 9, 7, 0.48)),
      linear-gradient(180deg, rgba(14, 9, 7, 0.22) 0%, rgba(14, 9, 7, 0.2) 65%, var(--paper) 100%);
  }

  .intro-grid,
  .about-layout,
  .story-layout,
  .how-layout,
  .gameplay-layout,
  .campaign-layout,
  .partners-layout,
  .community-layout,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 320px;
  }

  .loop-steps {
    grid-template-columns: 1fr;
  }

  .enemy-challenges {
    grid-template-columns: 1fr;
  }

  .enemy-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-layout .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: 86vh;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy,
  .intro-grid > div:first-child p:not(.section-kicker),
  .about-copy p:not(.section-kicker),
  .story-copy p:not(.section-kicker),
  .how-copy p,
  .gameplay-layout p,
  .partners-layout p,
  .campaign-copy p,
  .community-layout p {
    font-size: 19px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .enemy-roster {
    grid-template-columns: 1fr;
  }

  .language-gate-actions {
    grid-template-columns: 1fr;
  }

  .language-gate-actions button {
    min-height: 104px;
  }

  .partner-logos {
    grid-template-columns: 1fr;
  }

  .partner-logos a {
    min-height: 136px;
  }
}
