@font-face {
  font-family: Caudex;
  src: url("assets/reino/fontes/Caudex-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Alegreya;
  src: url("assets/reino/fontes/Alegreya-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #100809;
  --bg2: #1b0c10;
  --panel: #180c10ee;
  --text: #f4e9e2;
  --muted: #d4c2be;
  --gold: #d3a6a8;
  --gold-hi: #f6e7e2;
  --gold-lo: #8e4855;
  --rune: #e78792;
  --display: Caudex, Georgia, serif;
  --body: Alegreya, Georgia, serif;
  --serif: Caudex, Georgia, serif;
  --ui: system-ui, sans-serif;
  --site-button-bg: #38151f;
  --site-button-hover: #592431;
  --site-button-border: #9b5764;
  --site-button-text: #fff4ef;
  --section-fade: linear-gradient(180deg, #100809 0%, #10080984 12%, #1008099c 86%, #100809 100%);
}

.sr-only {
  display: block !important;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body, .home {
  background: var(--bg) url("assets/premium/news-texture.webp") center top / 1700px auto repeat;
}

.nav, .scrolled .nav, .legal-page .nav {
  background: #100809f5;
  border-bottom-color: #88465373;
}

.nav .brand .logo { height: 46px; }
footer .brand .logo { width: min(280px, 78vw); height: auto; }

.nav .lang a,
.nav nav a,
.game-login label,
form label,
fieldset legend,
.legal,
.slots .slotsText,
.news-list i,
.world-stage__copy span {
  font-family: var(--ui);
  font-variant-numeric: lining-nums tabular-nums;
}

.nav .lang a[aria-current] { border-bottom-color: var(--rune); }
.game-login .eyebrow, .game-login label, .news-list i, .sec > .wrap > .eyebrow, .world-stage__heading .eyebrow {
  color: var(--gold);
}

.home .hero {
  height: auto;
  min-height: 0;
  background: var(--bg);
}
.hero-bg {
  inset: 44px 0 auto;
  height: auto;
  filter: none;
  mask-image: linear-gradient(#000 90%, transparent);
}
.hero-shade { background: linear-gradient(180deg, #10080924, transparent 35%, #10080924 83%, var(--bg)); }
.embers { display: block; pointer-events: none; }

.hero > .hero-inner {
  --hero-top-padding: clamp(98px, 8vw, 145px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* Os botões começam abaixo das botas na ilustração de proporção 2:1. */
  grid-template-rows: minmax(calc(45vw + 44px - var(--hero-top-padding)), auto) auto auto;
  gap: clamp(12px, 1.5vw, 28px);
  align-items: center;
  justify-content: center;
  width: min(100%, 1800px);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: var(--hero-top-padding) clamp(18px, 2.5vw, 45px) 48px;
}

.hero-inner > #acesso {
  grid-column: 1;
  grid-row: 1;
  position: static;
  justify-self: center;
  transform: none;
  margin: 0;
  /* O corredor livre entre os dois grupos ocupa cerca de 21% da arte. */
  width: min(20.5vw, 380px);
  padding-inline: clamp(16px, calc(4vw - 30px), 30px);
  gap: 12px;
  background: linear-gradient(160deg, #230f15f5, #11080bf5);
  border-color: #a96670;
}
.hero .cta, .hero .slots {
  position: static;
  grid-column: 1 / -1;
  justify-self: center;
  left: auto;
  transform: none;
  margin: 0;
}
.hero .cta { grid-row: 2; }
.hero .slots { grid-row: 3; text-align: center; }

#acesso { scroll-margin-top: 12px; }
.game-login input, input[type=text], input[type=email], select {
  background: #10090c;
  border-color: #76515b;
  color: var(--text);
}
.game-login__tabs button[aria-pressed="true"], .world-stage__tabs button.is-active {
  background: #5f2635 !important;
  border-color: #d58a93 !important;
  color: #fff2ef !important;
}
.btn:hover, .nav .btn:hover, .game-login .btn:hover,
.game-login__tabs button:hover, .world-stage__tabs button:hover {
  border-color: #d58a93 !important;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rune);
  outline-offset: 3px;
}

.hero .slotsText, .slots-lg .slotsText {
  font: 600 13px/1.45 var(--ui);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .025em;
  text-transform: none;
  color: #f1dedb;
}
.slots-bar { border-color: #915260; }
.slots-bar i { background: linear-gradient(90deg, #6b2233, #db828b); }
.slots-lg { background: #180d12e6; border-color: #a2606b; }

.news-stage, .media {
  background: var(--section-fade), url("assets/premium/news-texture.webp") center top / 1900px auto repeat;
}
.news-feature::before { border-color: #df909370; }
.news-feature > .tag { background: #5b2331; color: #fff1ed; }
#classes {
  background: var(--section-fade), url("assets/premium/classes-hall.webp") center / cover no-repeat;
}
#mundo {
  background: var(--section-fade), url("assets/premium/kingdom-backdrop.webp") center / cover no-repeat;
}
#modos {
  background: var(--section-fade), url("assets/reino/mundos/vulcao-dragao.webp") center / cover no-repeat;
}
.home .sec h2::after {
  height: clamp(25px, 4.5vw, 68px);
  background: url("assets/reino/divisor.webp") center / contain no-repeat;
}
.class-showcase, .world-stage, .home footer {
  background: var(--section-fade), url("assets/premium/news-texture.webp") center top / 1700px auto repeat;
}
.class-showcase > header h2 { color: var(--text); font-family: var(--display); }
.class-showcase > header img, .world-stage__heading > img { object-fit: contain; height: clamp(25px, 4.5vw, 68px); }

.heroes figure {
  isolation: isolate;
  overflow: visible;
  border: 0;
  background: none;
  margin-top: 28px;
}
.heroes figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 16% 0 0;
  border: 1px solid #a25e6d;
  background: linear-gradient(#150a0b4a, #1b0c13f0),
    url("assets/premium/classes-hall.webp") center / auto 100% no-repeat;
}
.heroes .hero-card__portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 90%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 8px 8px #050205d9);
}
.heroes figure:hover .hero-card__portrait { transform: none; }
.heroes figcaption {
  inset: auto 0 0;
  padding: 29px 7px 13px;
  background: linear-gradient(transparent, #140810f5 30%);
}
.heroes figcaption b { color: var(--text); font-size: clamp(14px, 1.35vw, 21px); }
.heroes figcaption span { font: 500 clamp(12px, 1vw, 15px)/1.35 var(--ui); color: var(--muted); }

.class-showcase {
  padding: clamp(42px, 7vw, 96px) 0 42px;
  background: var(--section-fade), url("assets/premium/classes-hall.webp") center / cover no-repeat;
}
.class-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  max-width: 1050px;
}
.class-focus__copy h3 {
  font-size: clamp(35px, 5vw, 70px);
  line-height: 1.08;
  margin-block: 4px 20px;
}
.class-focus__role { color: var(--gold); }
.class-focus__description { max-width: 48ch; color: var(--text); }
.class-focus__video { margin-top: 20px; }
.class-focus__art {
  display: block;
  justify-self: center;
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px #050204);
}
.class-focus__selectors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  max-width: 820px;
  margin-top: 28px;
}
.class-focus__selectors button {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 3px;
  border: 1px solid #9256638c;
  background: #180c13e6;
  color: var(--text);
  font: 600 13px/1.2 var(--ui);
  cursor: pointer;
}
.class-focus__selectors button[aria-pressed="true"] { background: #50212e; border-color: #de9098; }
.class-focus__selectors img { width: 52px; height: auto; }

.world-stage { min-height: 0; padding-bottom: 54px; }
.world-stage__viewer {
  position: relative;
  width: min(calc(100% - 32px), 1254px);
  margin: 0 auto;
  aspect-ratio: 1254 / 625;
  min-height: 0;
  padding: 0;
}
.world-stage__art { object-fit: cover; transform: none; }
.world-stage__shade { background: linear-gradient(180deg, transparent 47%, #10080940 64%, #100809eb); }
.world-stage__copy {
  bottom: 6%;
  left: 8%;
  width: min(75%, 620px);
  text-align: left;
  transform: none;
}
.world-stage__copy h3 { color: var(--text); font-family: var(--display); }
.world-stage__copy p { color: var(--muted); font-family: var(--body); }
.world-stage__copy span { color: #f1b8bf; font-size: 13px; letter-spacing: .08em; }
.world-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid #b36f7a;
  background: #190b13e8;
  color: var(--text);
  font: 26px/1 var(--ui);
  cursor: pointer;
}
.world-arrow--prev { left: 12px; }
.world-arrow--next { right: 12px; }
.world-stage__tabs {
  position: static;
  display: grid;
  width: min(calc(100% - 32px), 1254px);
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 12px auto 0;
  border: 0;
  transform: none;
}
.world-stage__tabs button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 3px !important;
  min-height: 87px;
}
.world-stage__tabs button::before { display: none; }
.world-stage__tabs img { width: 37px; height: 37px; object-fit: contain; }
.world-stage__tabs span {
  font: 600 clamp(10px, 1vw, 14px)/1.15 var(--ui);
  letter-spacing: 0;
  text-transform: none;
}

.sec-form {
  background: linear-gradient(90deg, #100809b8, #10080991 45%, #100809e6),
    url("assets/reino/mundos/cidadela-eterna.webp") center / cover no-repeat;
}
#inscricao form { background: var(--panel); border-color: #975665; }
.pick input:checked + span { background: #692a3b; color: var(--text); border-color: var(--rune); }
.community-faq-scene {
  background: var(--section-fade), url("assets/premium/community-archive.webp") center / cover no-repeat;
}
.community-faq-scene::before { display: none; }
.community-faq-scene details, .community-faq-scene details[open] {
  background: #150a0ed9;
  border-bottom-color: #91536165;
}
.community-faq-scene summary { color: var(--text); }
.legal a:hover, .nav nav a:not(.btn):hover { color: var(--rune); }

@media (max-width: 1180px) {
  .home .hero {
    flex-direction: column;
    align-items: stretch;
    padding-top: 68px;
  }
  .hero-bg { position: relative; inset: auto; }
  .hero-shade { background: none; }
  .hero > .hero-inner {
    grid-template-rows: auto auto auto;
    padding: 10px 16px 30px;
  }
  .hero-inner > #acesso {
    width: min(100%, 400px);
    padding-inline: clamp(18px, 5vw, 30px);
  }
  .hero .cta { width: min(100%, 400px); flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 820px) {
  .world-stage__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav nav .btn-ghost { display: inline-flex; }
  .nav nav .btn:not(.btn-ghost) { display: none; }
  .nav .brand .logo { height: 42px; }
  .home .hero {
    padding-top: 58px;
    background: var(--bg) url("assets/premium/news-texture.webp") center / cover;
  }
  .hero-inner > #acesso { background: #1b0d13f2; }

  .class-focus { grid-template-columns: 1fr; gap: 10px; }
  .class-focus__art { grid-row: 1; width: min(52vw, 240px); }
  .class-focus__copy { text-align: center; }
  .class-focus__description { margin-inline: auto; }
  .class-focus__selectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-focus__selectors img { width: 40px; }

  .world-stage__viewer { aspect-ratio: auto; }
  .world-stage__art { position: static; display: block; height: auto; }
  .world-stage__shade { display: none; }
  .world-stage__copy { position: static; width: auto; padding: 14px 4px 8px; }
  .world-stage__copy p { margin-inline: 0; }
  .world-arrow { top: 23vw; width: 38px; height: 38px; }
  .world-stage__tabs button { min-height: 75px; }
}

.hero .slots-bar::after { background: #d99aa2; }

