@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;
  --red: #8f2e24;
  --night: #12100d;
  --muted: #6f5d4d;
  --line: rgba(72, 43, 25, 0.22);
  --shadow: 0 24px 70px rgba(26, 14, 8, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  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;
}

a,
button {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.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,
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-gate h2 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.04;
}

.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;
}

.language-gate-actions button:hover,
.language-gate-actions button:focus-visible {
  border-color: rgba(215, 154, 57, 0.86);
  background: rgba(215, 154, 57, 0.16);
  transform: translateY(-2px);
}

.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: 18px;
  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;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
  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.88);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.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);
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: var(--paper-strong);
  background: rgba(215, 154, 57, 0.22);
}

.language-switcher button[aria-pressed="true"]:hover,
.language-switcher button[aria-pressed="true"]:focus-visible {
  color: var(--ink);
  background: #efad45;
}

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

.hero,
.gameplay-band,
.story-band,
.enemies-band,
.campaign-band,
.partners-band {
  padding: clamp(58px, 9vw, 110px) 0;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 112px;
  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.9) 0%, rgba(14, 9, 7, 0.64) 46%, rgba(14, 9, 7, 0.2) 100%),
    linear-gradient(180deg, rgba(14, 9, 7, 0.28) 0%, rgba(14, 9, 7, 0.18) 64%, var(--paper) 100%);
}

.hero-layout,
.split-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.hero-layout {
  grid-template-columns: minmax(0, 820px);
}

.hero-copy-block {
  max-width: 780px;
  min-width: 0;
}

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

h1,
h2,
h3,
p,
figure {
  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(38px, 5.2vw, 64px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4.8vw, 56px);
}

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

.hero-copy,
.split-layout p,
.section-heading p {
  color: rgba(255, 247, 234, 0.86);
  font-size: 21px;
}

.gameplay-band .split-layout p,
.story-band .split-layout p,
.enemies-band .section-heading p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  max-width: 100%;
  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;
  text-align: center;
  overflow-wrap: anywhere;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #efad45;
  transform: translateY(-2px);
  filter: brightness(1.04);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold);
  background: rgba(215, 154, 57, 0.16);
  transform: translateY(-2px);
}

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

.gameplay-preview,
.character-scene {
  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;
}

.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;
}

.character-scene {
  display: grid;
  min-height: 360px;
  place-items: end center;
  padding: 30px 24px 58px;
}

.character-scene img {
  width: min(280px, 78%);
  image-rendering: pixelated;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.34));
}

.character-scene figcaption {
  width: 100%;
  margin-top: 12px;
  color: rgba(255, 247, 234, 0.84);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.enemies-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;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 30px;
}

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

.enemy-roster figure {
  position: relative;
  display: grid;
  min-height: 220px;
  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.22), 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.92);
  background: rgba(18, 16, 13, 0.78);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.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;
}

.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);
}

.ecclesia-mark {
  width: min(280px, 100%);
  margin-bottom: 28px;
}

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

.partner-logos a {
  display: grid;
  min-height: 148px;
  place-items: center;
  border: 1px solid rgba(255, 247, 234, 0.16);
  padding: 20px;
  background: rgba(255, 247, 234, 0.08);
}

.partner-logos a:hover,
.partner-logos a:focus-visible {
  border-color: rgba(215, 154, 57, 0.8);
  background: rgba(215, 154, 57, 0.14);
  transform: translateY(-2px);
}

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

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

.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;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

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

  .hero-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .reverse-mobile > :first-child {
    order: 2;
  }

  .reverse-mobile > :last-child {
    order: 1;
  }

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

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

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

  .section-inner {
    width: min(calc(100% - 28px), 1160px);
  }

  .hero,
  .gameplay-band,
  .story-band,
  .enemies-band,
  .campaign-band,
  .partners-band {
    padding: 44px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-layout {
    gap: 18px;
  }

  .game-logo {
    width: min(286px, 86vw);
    margin-bottom: 16px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 13px;
  }

  .hero-copy,
  .split-layout p,
  .section-heading p {
    font-size: 17px;
  }

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

  .gameplay-preview,
  .character-scene {
    width: 100%;
  }

  .character-scene {
    min-height: 260px;
  }

  .character-scene img {
    width: min(220px, 72%);
  }

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

  .enemy-roster figure {
    min-height: 168px;
    padding: 14px 8px 42px;
  }

  .enemy-roster img {
    max-height: 112px;
  }

  .enemy-roster figcaption {
    font-size: 12px;
  }

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

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

  .partner-logos a {
    min-height: 118px;
    padding: 16px;
  }

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

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