/* L2 Empires — composições do site (em cima da base do design system) */

/* ---- Cabeçalho: estado do servidor, som e ação ---- */

.header-cluster {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.4vw, 1.1rem);
  justify-self: end;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--mist);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

.server-status strong { color: var(--white); font-variant-numeric: tabular-nums; }

.server-status__dot {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 .7rem rgba(126, 154, 119, .55);
}

.server-status__dot.is-offline { background: var(--danger); box-shadow: 0 0 .7rem rgba(196, 106, 88, .5); }

.audio-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--mist);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.audio-toggle svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: square; stroke-width: 1.4; }
.audio-toggle .audio-waves { opacity: .25; transition: opacity .25s var(--ease); }
.audio-toggle[aria-pressed="true"] { border-color: var(--line-strong); color: var(--gold-bright); }
.audio-toggle[aria-pressed="true"] .audio-waves { opacity: 1; }
.audio-toggle:hover { color: var(--white); }

.header-action { justify-self: auto; }

/* ---- Revelação ao rolar ---- */

.reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .12s; }
.reveal[data-reveal-delay="2"] { transition-delay: .24s; }
.reveal[data-reveal-delay="3"] { transition-delay: .36s; }

/* ---- Brasas do herói ---- */

.hero__embers {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

[data-parallax] { will-change: transform; }

/* ---- Home: prova viva no herói ---- */

.hero h1 { max-width: none; font-size: clamp(3.4rem, 7.2vw, 7.2rem); }

.hero__proof {
  display: flex;
  margin-top: 2.2rem;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  color: rgba(231, 224, 209, .72);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__proof b {
  margin-right: .35rem;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0;
}

.hero__actions {
  display: flex;
  margin-top: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: .5rem;
  transform: translateX(-50%);
  color: rgba(231, 224, 209, .5);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero__scroll i {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  animation: scroll-pulse 2.4s var(--ease) infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---- Home: interlúdio editorial centrado ---- */

.interlude {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 160, 108, .07), transparent 30rem),
    var(--void-soft);
  text-align: center;
}

.interlude__sigil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(16rem, 26vw, 24rem);
  opacity: .05;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.interlude__inner { position: relative; max-width: 46rem; margin: 0 auto; }

.interlude h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 450;
  letter-spacing: -.01em;
  line-height: 1;
}

.interlude p { margin: 1.4rem auto 0; color: var(--mist); }

/* ---- Home: faixa cinematográfica ---- */

.cinema-band {
  position: relative;
  min-height: clamp(26rem, 60vh, 42rem);
  overflow: hidden;
}

.cinema-band img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.05) brightness(.82);
}

.cinema-band::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(9, 10, 12, .85), transparent 30% 70%, rgba(9, 10, 12, .85));
}

.cinema-band figcaption {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 1.6rem;
  color: rgba(231, 224, 209, .66);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---- Home: as três estirpes ---- */

.race-grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-cold);
  background: var(--line-cold);
}

.race-card {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  background: var(--basalt);
}

.race-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.05) brightness(.9);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}

.race-card:hover img { transform: scale(1.03); filter: saturate(.95) contrast(1.05); }

.race-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(0deg, rgba(7, 8, 10, .95), rgba(7, 8, 10, 0));
}

.race-card strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; text-transform: uppercase; }
.race-card span { color: #c7c1b6; font-size: .62rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }

/* ---- Home: hall da fama em marfim ---- */

.section--ivory { background: var(--ivory); color: var(--void); }

.honor-board { max-width: var(--max); margin: 0 auto; }

.honor-board .table-wrap { border: 1px solid rgba(9, 10, 12, .28); background: #d9d1c2; padding: clamp(1.2rem, 3vw, 2.6rem); }
.honor-board table { min-width: 40rem; }
.honor-board th, .honor-board td { border-bottom: 1px solid rgba(9, 10, 12, .2); }
.honor-board th { color: #615e57; }
.honor-board td { color: var(--void); }
.honor-board td:first-child { color: #78653f; }
.honor-board .table-state { color: #625f58; }

.honor-board__foot {
  display: flex;
  margin-top: 1.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.honor-board__foot span { color: #625f58; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.section--ivory .button--primary { border-color: var(--gold-deep); color: var(--gold-deep); }
.section--ivory .button--primary:hover { border-color: var(--void); background: var(--void); color: var(--ivory); }

/* ---- Heróis internos (páginas de utilidade) ---- */

.page-hero {
  position: relative;
  display: grid;
  min-height: clamp(24rem, 52vh, 34rem);
  overflow: hidden;
  align-items: end;
  isolation: isolate;
  padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4rem);
}

.page-hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.75) contrast(1.05) brightness(.62);
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, var(--void) 0%, rgba(9, 10, 12, .35) 55%, rgba(9, 10, 12, .78) 100%);
}

.page-hero__inner { max-width: var(--max); width: 100%; margin: 6rem auto 0; }

.page-hero h1 {
  max-width: 19ch;
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6.4rem);
  font-weight: 420;
  letter-spacing: -.01em;
  line-height: .98;
  text-wrap: balance;
}

.page-hero p { max-width: 40rem; margin: 1.1rem 0 0; color: #d7d1c6; font-size: .92rem; }

/* ---- Info: quadro vivo e capítulos ---- */

.status-board {
  display: grid;
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.status-board article {
  display: grid;
  min-height: 7.5rem;
  padding: 1.3rem 1.5rem;
  align-content: center;
  gap: .3rem;
  border-right: 1px solid var(--line);
}

.status-board article:last-child { border-right: 0; }
.status-board span { color: var(--smoke); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-board strong { color: var(--white); font-family: var(--font-display); font-size: 1.55rem; font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }

.info-ledger {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.info-chapter {
  min-width: 0;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-chapter--wide { grid-column: 1 / -1; }

.info-chapter__head span { color: var(--gold-bright); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.info-chapter__head h3 { margin: .5rem 0 0; color: var(--white); font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 500; }
.info-chapter__head p { margin: .5rem 0 1.6rem; color: var(--mist); font-size: .85rem; }

.stat-list { margin: 0; border-top: 1px solid var(--line-cold); }
.stat-list div { display: flex; padding: .85rem 0; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-cold); }
.stat-list dt { color: var(--mist); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat-list dd { margin: 0; color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: lining-nums tabular-nums; }

.competition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-cold); border: 1px solid var(--line-cold); }
.competition-grid > div { display: grid; padding: 1.5rem; align-content: start; gap: .35rem; background: var(--void-soft); }
.competition-grid strong { color: var(--white); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.competition-grid p { margin: 0; color: var(--mist); font-size: .8rem; }

.panel-kicker { color: var(--gold-bright); font-size: .6rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

/* ---- Info: downloads ---- */

.download-stage {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
  border: 1px solid var(--line);
}

.download-primary {
  display: grid;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  align-content: start;
  gap: 1.3rem;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 10%, rgba(184, 160, 108, .09), transparent 22rem),
    var(--void-soft);
}

.download-primary h3 { margin: .4rem 0 0; color: var(--white); font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 500; }
.download-primary > div > p:last-child { margin: .5rem 0 0; color: var(--mist); font-size: .86rem; }

.status-label {
  display: inline-flex;
  width: fit-content;
  padding: .35rem .7rem;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.download-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--smoke); font-size: .68rem; letter-spacing: .05em; }
.download-meta strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }

.installation-steps { display: grid; }
.installation-steps article { display: grid; padding: clamp(1.3rem, 2.6vw, 2rem) clamp(1.5rem, 3vw, 2.6rem); align-content: center; grid-template-columns: auto 1fr; column-gap: 1.4rem; border-bottom: 1px solid var(--line); }
.installation-steps article:last-child { border-bottom: 0; }
.installation-steps span { grid-row: span 2; align-self: start; color: var(--gold-deep); font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.installation-steps h3 { margin: 0; color: var(--white); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.installation-steps p { margin: .2rem 0 0; color: var(--mist); font-size: .82rem; }

.download-note {
  display: grid;
  max-width: var(--max);
  margin: 1px auto 0;
  padding: 1.5rem clamp(1.5rem, 3vw, 2.6rem);
  gap: .3rem;
  border: 1px solid var(--line);
  border-top: 0;
}

.download-note strong { color: var(--white); font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.download-note p { margin: 0; color: var(--mist); font-size: .84rem; }

/* ---- Rankings ---- */

.ranking-tabs {
  display: flex;
  max-width: var(--max);
  margin: 0 auto 0;
  overflow-x: auto;
  border: 1px solid var(--line-cold);
  border-bottom: 0;
  scrollbar-width: none;
}

.ranking-tabs::-webkit-scrollbar { display: none; }

.ranking-tabs button {
  min-width: max-content;
  min-height: 3.65rem;
  padding: 0 1.3rem;
  border: 0;
  border-right: 1px solid var(--line-cold);
  border-radius: 0;
  background: transparent;
  color: var(--mist);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ranking-tabs button:hover,
.ranking-tabs button[aria-pressed="true"] { background: rgba(184, 160, 108, .08); color: var(--gold-bright); }

.leaderboard-frame { max-width: var(--max); margin: 0 auto; border: 1px solid var(--line-cold); }

.leaderboard-frame__head {
  display: flex;
  padding: 1.5rem clamp(1.2rem, 3vw, 2.2rem);
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-cold);
}

.leaderboard-frame__head h3 { margin: .3rem 0 0; color: var(--white); font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 500; }

.live-mark { display: inline-flex; align-items: center; gap: .55rem; color: var(--mist); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.live-mark i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--smoke); }
.live-mark[data-state="ready"] i { background: var(--success); box-shadow: 0 0 .6rem rgba(126, 154, 119, .5); }
.live-mark[data-state="loading"] i { background: var(--gold); animation: live-pulse 1.4s ease infinite; }
.live-mark[data-state="error"] i,
.live-mark[data-state="empty"] i { background: var(--danger); }

@keyframes live-pulse { 50% { opacity: .35; } }

.ranking-shell { padding: 0 clamp(1.2rem, 3vw, 2.2rem) 1.5rem; }
.ranking-shell table { min-width: 44rem; }

.ranking-notes { display: grid; max-width: var(--max); margin: clamp(3rem, 6vw, 5rem) auto 0; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 4vw, 4rem); }
.ranking-notes article { padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.ranking-notes span { color: var(--gold-bright); font-family: var(--font-display); font-size: 1.1rem; }
.ranking-notes h3 { margin: .5rem 0 .4rem; color: var(--white); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.ranking-notes p { margin: 0; color: var(--mist); font-size: .84rem; }

/* ---- Portal ---- */

.auth-grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.portal-panel {
  display: grid;
  min-width: 0;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  align-content: start;
  gap: 1.1rem;
  border-right: 1px solid var(--line);
}

.portal-panel:last-child { border-right: 0; }

.auth-panel--register {
  background:
    radial-gradient(circle at 85% 8%, rgba(184, 160, 108, .07), transparent 20rem),
    var(--void-soft);
}

.portal-panel__head h3 { margin: .5rem 0 0; color: var(--white); font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 500; }
.portal-panel__head p { margin: .4rem 0 .6rem; color: var(--mist); font-size: .85rem; }

.text-link { color: var(--gold-bright); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.message { min-height: 1.2rem; font-size: .8rem; }
.message.is-visible { padding: .8rem .9rem; border: 1px solid var(--line-cold); }
.message--success { border-color: rgba(126, 154, 119, .5); color: var(--success); }
.message--error { border-color: rgba(196, 106, 88, .5); color: var(--danger); }
.message--info { border-color: var(--line-strong); color: var(--gold-bright); }

.account-area { max-width: var(--max); margin: 0 auto; }

.account-head {
  display: flex;
  margin-bottom: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.account-head h2 { margin: .4rem 0 0; color: var(--white); font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 450; line-height: .95; }
.account-head p { margin: .5rem 0 0; color: var(--mist); font-size: .85rem; }

.account-stats {
  display: grid;
  margin-bottom: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.account-stats article { display: grid; min-height: 7rem; padding: 1.2rem 1.4rem; align-content: center; gap: .25rem; border-right: 1px solid var(--line); }
.account-stats article:last-child { border-right: 0; }
.account-stats span { color: var(--smoke); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.account-stats strong { color: var(--white); font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }

.account-section { padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--line); border-top: 0; }
.account-stats + .account-section { border-top: 1px solid var(--line); margin-top: -1px; }

.account-section__head {
  display: flex;
  margin-bottom: 1.6rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-section__head h3 { margin: .45rem 0 0; color: var(--white); font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 500; }

.account-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-columns .account-section:first-child { border-right: 0; }
.account-columns .account-section { min-width: 0; }
.account-columns form { display: grid; gap: 1rem; max-width: 30rem; }
.account-columns form .button { justify-self: start; }

.account-section--support p { max-width: 38rem; color: var(--mist); font-size: .88rem; }
.support-note { color: var(--smoke); font-size: .76rem; }

.characters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1px; background: var(--line-cold); border: 1px solid var(--line-cold); }
.characters-grid .table-state,
.characters-grid .empty-state { grid-column: 1 / -1; background: var(--void); border: 0; padding: 1.6rem; }

.character-card { padding: 1.4rem 1.5rem; background: var(--void-soft); }
.character-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.character-card h4 { margin: 0; color: var(--white); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.character-card header p { margin: .15rem 0 0; color: var(--mist); font-size: .72rem; }
.character-status { padding: .28rem .55rem; border: 1px solid var(--line-cold); color: var(--smoke); font-size: .55rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.character-status.is-online { border-color: rgba(126, 154, 119, .55); color: var(--success); }
.character-card dl { display: grid; margin: 1.1rem 0 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.character-card dt { color: var(--smoke); font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.character-card dd { margin: .15rem 0 0; color: var(--ivory); font-family: var(--font-display); font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }

/* ---- Portal: arsenal, coins e Pix ---- */

.coins-bar {
  display: grid;
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.5rem;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 0% 50%, rgba(184, 160, 108, .1), transparent 18rem);
}

.coins-bar__saldo span { display: block; color: var(--gold-bright); font-size: .6rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.coins-bar__saldo strong { color: var(--white); font-family: var(--font-display); font-size: 1.9rem; font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }
.coins-bar p { margin: 0; color: var(--mist); font-size: .78rem; }

.shop-grid { display: grid; margin-bottom: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: var(--line-cold); border: 1px solid var(--line-cold); }

.shop-item {
  display: flex;
  min-height: 5.4rem;
  padding: 1.1rem 1.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 0;
  background: var(--void-soft);
  text-align: left;
  transition: background-color .25s var(--ease);
}

.shop-item:hover { background: var(--basalt); }
.shop-item.is-selected { background: rgba(184, 160, 108, .14); box-shadow: inset 0 0 0 1px var(--gold); }
.shop-item__name { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.shop-item__quantity { display: block; color: var(--smoke); font-size: .68rem; }
.shop-item__price { color: var(--gold-bright); font-size: .72rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }

.pix-area { display: grid; margin-bottom: 1.6rem; gap: 1.2rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); }
.pix-area__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pix-area__head h4 { margin: .4rem 0 0; color: var(--white); font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.pix-area .shop-grid { margin-bottom: 0; }
.pix-area > .button { justify-self: start; }
.pix-flag { border-color: rgba(204, 98, 72, .6); color: var(--ember-bright); }

.pix-ticket { display: grid; padding: 1.4rem; grid-template-columns: auto 1fr; gap: 1.4rem; border: 1px solid var(--line-strong); background: var(--void-soft); }
.pix-ticket__qr { display: grid; width: 11rem; min-height: 11rem; place-items: center; background: var(--white); }
.pix-ticket__qr img { width: 100%; }
.pix-ticket__placeholder { color: var(--void); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pix-ticket__body { display: grid; align-content: start; gap: .6rem; }
.pix-ticket__body label { color: var(--mist); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pix-ticket__value { margin: 0; color: var(--gold-bright); font-family: var(--font-display); font-size: 1.25rem; }
.pix-ticket textarea { width: 100%; min-height: 4.6rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 0; background: #0a0c0f; color: var(--ivory); font-size: .72rem; resize: none; }
.pix-ticket__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pix-ticket__status { color: var(--mist); font-size: .76rem; }

#purchase-form { display: grid; gap: 1.2rem; }
#purchase-form .field { max-width: 26rem; }
#purchase-form .button { justify-self: start; }

/* ---- Rodapé expandido ---- */

.site-footer__grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: minmax(16rem, 1.2fr) repeat(2, minmax(10rem, .8fr)) minmax(12rem, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.site-footer__brand p { margin: 1.2rem 0 0; max-width: 24rem; color: var(--smoke); font-size: .76rem; }

.site-footer__col h3 { margin: 0 0 1.1rem; color: var(--gold-bright); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__col nav { display: grid; gap: .6rem; }
.site-footer__col a { width: fit-content; color: var(--mist); font-size: .78rem; text-decoration: none; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__col p { margin: 0; color: var(--smoke); font-size: .76rem; }

.site-footer__legal {
  display: flex;
  max-width: var(--max);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-cold);
}

.site-footer__legal p { margin: 0; color: var(--smoke); font-size: .66rem; letter-spacing: .05em; }
.site-footer__legal a { color: var(--gold-bright); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

.franchise-note { display: flex; align-items: center; gap: .8rem; }
.franchise-note span { color: var(--smoke); font-size: .58rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.franchise-note img { width: 6.5rem; opacity: .55; }

/* ---- Responsivo ---- */

@media (max-width: 68rem) {
  .server-status small,
  .server-status > span > span { display: none; }
  .header-cluster .button { display: none; }
  .race-grid { grid-template-columns: 1fr; }
  .race-card { min-height: 26rem; }
  .status-board { grid-template-columns: repeat(2, 1fr); }
  .status-board article { border-bottom: 1px solid var(--line); }
  .status-board article:nth-child(even) { border-right: 0; }
  .status-board article:nth-last-child(-n+2) { border-bottom: 0; }
  .info-ledger { grid-template-columns: 1fr; }
  .competition-grid { grid-template-columns: 1fr; }
  .download-stage { grid-template-columns: 1fr; }
  .download-primary { border-right: 0; border-bottom: 1px solid var(--line); }
  .ranking-notes { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .portal-panel { border-right: 0; }
  .portal-panel:first-child { border-bottom: 1px solid var(--line); }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .account-stats article { border-bottom: 1px solid var(--line); }
  .account-stats article:nth-child(even) { border-right: 0; }
  .account-stats article:nth-last-child(-n+2) { border-bottom: 0; }
  .account-columns { grid-template-columns: 1fr; }
  .account-columns .account-section:first-child { border-right: 1px solid var(--line); border-bottom: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
  .hero__proof { flex-wrap: wrap; gap: 1rem 1.6rem; }
  .hero__actions .button { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }
  .status-board,
  .account-stats { grid-template-columns: 1fr; }
  .status-board article,
  .account-stats article { border-right: 0; border-bottom: 1px solid var(--line); }
  .status-board article:last-child,
  .account-stats article:last-child { border-bottom: 0; }
  .pix-ticket { grid-template-columns: 1fr; }
  .pix-ticket__qr { width: min(100%, 13rem); margin: 0 auto; }
  .character-card dl { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__legal { justify-content: flex-start; }
}
