/* ==========================================================================
   Kryptshade — layout apocalíptico
   Paleta: cinza-osso, ferrugem, carvão, musgo morto
   ========================================================================== */

:root {
  --ash: #0c0b09;
  --ash-2: #161310;
  --ash-3: #221e18;
  --bone: #d8cbb0;
  --bone-dim: #9a8d74;
  --rust: #c4562e;
  --rust-deep: #8a3418;
  --blood: #5c1e16;
  --moss: #3a4034;
  --fog: rgba(180, 170, 140, 0.08);
  --line: rgba(216, 203, 176, 0.14);

  --font-display: "Teko", sans-serif;
  --font-stamp: "Special Elite", cursive;
  --font-body: "Barlow", sans-serif;

  --header-h: 4.25rem;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bone);
  background: var(--ash);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--rust);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ——— Atmosphere ——— */

.ash-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(196, 86, 46, 0.06), transparent 45%),
    radial-gradient(ellipse at 80% 90%, rgba(58, 64, 52, 0.18), transparent 50%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.8s steps(2) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 1%); }
}

.stamped {
  font-family: var(--font-stamp);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--rust);
  text-transform: none;
  margin: 0 0 0.75rem;
}

/* Special Elite — voz atmosférica do site */
.hero__lead,
.page-hero__lead,
.section-lead,
.war__lead,
.lore__deck,
.chapter__text,
.origin__quote,
.origin__aside,
.lastcall__text,
.tx__hint,
.diary-cta__content > p,
.rules-panel__lead,
.rules-list p,
.rules-section li,
.rules-footnote,
.faction-tile__copy p,
.faction-dossier__lead,
.faction-dossier__text p,
.lore-beat__body p,
.intel__lead,
.factions-hub__lead,
.dossier__copy p,
.war-band__copy p,
.intel-card p,
.faction-others__list em,
.site-footer__col,
.site-footer__bottom,
.tx__val--mono {
  font-family: var(--font-stamp);
  letter-spacing: 0.02em;
}

.hero__lead,
.page-hero__lead,
.section-lead,
.war__lead,
.lore__deck,
.lastcall__text,
.rules-panel__lead,
.intel__lead,
.factions-hub__lead {
  line-height: 1.75;
  font-size: 1.08rem;
}

.chapter__text,
.origin__aside,
.dossier__copy p,
.war-band__copy p,
.intel-card p,
.faction-tile__copy p,
.rules-list p,
.rules-section li,
.lore-beat__body p,
.faction-dossier__text p {
  line-height: 1.85;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  color: var(--bone);
  margin-bottom: 0.75rem;
}

.section-lead {
  max-width: 36rem;
  color: var(--bone-dim);
  margin: 0;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(12, 11, 9, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(196, 86, 46, 0.35));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__sub {
  font-family: var(--font-stamp);
  font-size: 0.68rem;
  color: var(--bone-dim);
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 10rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border: 1px solid var(--line);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  background: rgba(22, 19, 16, 0.65);
}

.nav-account img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.nav-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account:hover,
.nav-account[aria-current="page"] {
  border-color: var(--rust);
  color: var(--bone);
}

.site-nav__list a {
  font-family: var(--font-stamp);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--bone-dim);
  transition: color 0.2s;
  text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--bone);
}

.site-nav__item {
  position: relative;
  list-style: none;
}

.site-nav__item--has-sub {
  display: flex;
  align-items: center;
}

.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-stamp);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  transition: color 0.2s;
}

.site-nav__trigger:hover,
.site-nav__item--has-sub.is-current .site-nav__trigger,
.site-nav__item--has-sub.is-open .site-nav__trigger {
  color: var(--bone);
}

.site-nav__caret {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s var(--ease);
  opacity: 0.75;
}

.site-nav__item--has-sub.is-open .site-nav__caret {
  transform: rotate(225deg) translateY(-1px);
}

.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  min-width: 10.5rem;
  border: 1px solid var(--line);
  background: rgba(16, 14, 11, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

@media (min-width: 861px) {
  .site-nav__sub {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease) 0.15s, transform 0.2s var(--ease) 0.15s, visibility 0s linear 0.35s;
    z-index: 40;
  }

  /* Ponte invisível sobre o vão entre o gatilho e o submenu, para o hover não cair. */
  .site-nav__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.9rem;
  }

  .site-nav__item--has-sub:hover .site-nav__sub,
  .site-nav__item--has-sub:focus-within .site-nav__sub,
  .site-nav__item--has-sub.is-open .site-nav__sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
  }

  .site-nav__item--has-sub:hover .site-nav__trigger {
    color: var(--bone);
  }

  .site-nav__item--has-sub:hover .site-nav__caret {
    transform: rotate(225deg) translateY(-1px);
  }

  .site-nav__sub a {
    display: block;
    padding: 0.55rem 1rem;
    white-space: nowrap;
  }

  .site-nav__sub a:hover,
  .site-nav__sub a[aria-current="page"] {
    color: var(--bone);
    background: rgba(196, 86, 46, 0.12);
  }
}

@media (min-width: 861px) and (max-width: 1240px) {
  .site-header__inner { gap: 1rem; }
  .site-nav { gap: 1rem; }

  .site-nav__list {
    gap: 0.9rem;
    flex-wrap: nowrap;
  }

  .site-nav__list a,
  .site-nav__trigger {
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .brand__text { display: none; }
}

@media (min-width: 861px) {
  .nav-account { max-width: 7rem; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .nav-account { max-width: 5.5rem; }
}

@media (min-width: 861px) and (max-width: 960px) {
  .site-header__inner,
  .site-nav { gap: 0.7rem; }
  .site-nav__list { gap: 0.6rem; }
  .site-nav__actions { gap: 0.4rem; }

  .site-nav__list a,
  .site-nav__trigger { font-size: 0.8rem; letter-spacing: 0.02em; }
}

/* Com a tradução automática (o Google marca o <html> com .translated-ltr) os rótulos do menu ficam mais longos. */
@media (min-width: 861px) {
  .translated-ltr .site-nav__list { gap: 0.9rem; flex-wrap: nowrap; }

  .translated-ltr .site-nav__list a,
  .translated-ltr .site-nav__trigger { font-size: 0.86rem; letter-spacing: 0.03em; white-space: nowrap; }
}

@media (min-width: 861px) and (max-width: 960px) {
  .translated-ltr .site-nav__list { gap: 0.5rem; }

  .translated-ltr .site-nav__list a,
  .translated-ltr .site-nav__trigger { font-size: 0.76rem; letter-spacing: 0.01em; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--bone);
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-stamp);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--rust {
  background: linear-gradient(180deg, var(--rust) 0%, var(--rust-deep) 100%);
  color: #f5ebe0;
  box-shadow: 0 8px 24px rgba(138, 52, 24, 0.35);
}

.btn--rust:hover {
  background: linear-gradient(180deg, #d46538 0%, var(--rust) 100%);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--bone-dim);
  background: rgba(216, 203, 176, 0.05);
}

.btn--steam {
  background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
  border-color: #66c0f4;
  color: #c7d5e0;
  gap: 0.55rem;
}

.btn--steam:hover {
  background: linear-gradient(180deg, #3d6a8a 0%, #2a475e 100%);
  color: #fff;
}

.btn--steam__mark {
  flex-shrink: 0;
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
}

.btn--lg {
  min-height: 3.4rem;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.text-link {
  font-family: var(--font-stamp);
  color: var(--rust);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--rust);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: -1;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.55) contrast(1.1) brightness(0.55);
  transform: scale(1.08);
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-drift {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, 1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    animation: none;
  }

  .hero__media,
  .hero__content {
    transform: none !important;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.55) 0%, rgba(12, 11, 9, 0.35) 40%, rgba(12, 11, 9, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 11, 9, 0.55), transparent 35%, transparent 65%, rgba(12, 11, 9, 0.55));
}

.hero__fog {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(58, 64, 52, 0.35) 40%, rgba(12, 11, 9, 0.9));
  animation: fog-rise 12s ease-in-out infinite alternate;
}

@keyframes fog-rise {
  from { opacity: 0.7; transform: translateY(8%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px 40px rgba(0, 0, 0, 0.75);
}

.hero__content {
  width: min(720px, calc(100% - 2rem));
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  animation: hero-in 1.1s var(--ease) both;
  will-change: transform;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero__logo {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.7));
  animation: logo-breathe 5s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.7)); transform: scale(1); }
  50% { filter: drop-shadow(0 16px 48px rgba(196, 86, 46, 0.25)); transform: scale(1.02); }
}

.hero__eyebrow {
  margin-bottom: 0.35rem;
}

.hero__title {
  margin-bottom: 1rem;
}

.hero__brand {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, #f0e6d2 20%, var(--bone-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  color: var(--bone-dim);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.6);
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--bone-dim);
}

.hero__status strong { color: var(--bone); }

.hero__status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #e07a5f;
}

.hero__status--online .hero__status-dot {
  background: #7dbe6a;
  box-shadow: 0 0 0 0 rgba(125, 190, 106, 0.6);
  animation: hero-status-pulse 2.4s ease-out infinite;
}

@keyframes hero-status-pulse {
  to { box-shadow: 0 0 0 0.5rem rgba(125, 190, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__status--online .hero__status-dot { animation: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  color: var(--bone-dim);
  letter-spacing: 0.06em;
  opacity: 0.75;
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50% { opacity: 0.9; transform: translate(-50%, 4px); }
}

/* ——— Reveal on scroll ——— */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ——— Como entrar ——— */

.join {
  padding: 3.5rem 0 5rem;
  background: var(--ash);
  border-top: 1px solid var(--line);
}

.join__inner {
  max-width: 42rem;
}

.join__lead {
  margin: 0.75rem 0 1.25rem;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
}

.join-toc {
  margin: 0 0 2.5rem;
  padding: 1rem 1.15rem;
  list-style: none;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.7);
  counter-reset: join-toc;
  display: grid;
  gap: 0.55rem;
}

.join-toc li {
  counter-increment: join-toc;
}

.join-toc a {
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-stamp);
  letter-spacing: 0.02em;
}

.join-toc a::before {
  content: counter(join-toc, decimal-leading-zero) ". ";
  color: var(--rust);
}

.join-toc a:hover {
  color: var(--rust);
}

.join-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.join-step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--rust);
}

.join-step__body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.join-step__body p {
  margin: 0 0 1rem;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.join-board {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.55);
}

@media (min-width: 560px) {
  .join-board {
    grid-template-columns: 1fr 1fr;
  }

  .join-board__wide,
  .join-board__note {
    grid-column: 1 / -1;
  }
}

.join-board__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--bone-dim);
}

.join-board__key {
  display: block;
  font-family: var(--font-stamp);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 0.2rem;
}

.join-board__val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bone);
}

.join-board__val--mono {
  font-family: var(--font-stamp);
  font-size: 1.05rem;
}

.join-board__val--online {
  color: #7dbe6a;
}

.join-board__val--offline {
  color: #e07a5f;
}

.join-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  background: rgba(34, 30, 24, 0.85);
}

.join-fact__tag {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rust);
}

.join-fact p {
  margin: 0;
  font-family: var(--font-stamp);
  color: var(--bone);
  line-height: 1.6;
}

/* ——— Transmission (connect) ——— */

.tx {
  position: relative;
  padding: 3.25rem 0 3.75rem;
  background:
    linear-gradient(180deg, #0a0908 0%, #14110e 50%, #0c0b09 100%);
  border-block: 1px solid rgba(196, 86, 46, 0.25);
  overflow: hidden;
}

.tx__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(216, 203, 176, 0.35) 2px,
    rgba(216, 203, 176, 0.35) 3px
  );
  pointer-events: none;
}

.tx__inner {
  position: relative;
}

.tx__label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.tx__label .stamped {
  margin: 0;
}

.tx__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 0 rgba(196, 86, 46, 0.6);
  animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(196, 86, 46, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(196, 86, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 86, 46, 0); }
}

.tx__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.4rem;
}

.tx__hint {
  color: var(--bone-dim);
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

.tx__board {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(196, 86, 46, 0.35);
  background:
    linear-gradient(135deg, rgba(196, 86, 46, 0.08), transparent 40%),
    rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(216, 203, 176, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.tx__cell {
  flex: 1 1 160px;
  padding: 1.25rem 1.5rem;
  min-width: 0;
}

.tx__cell--wide {
  flex: 1.4 1 220px;
}

.tx__divider {
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(196, 86, 46, 0.45),
    transparent
  );
  align-self: stretch;
}

.tx__key {
  display: block;
  font-family: var(--font-stamp);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.45rem;
}

.tx__val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1.1;
}

.tx__val--mono {
  font-family: var(--font-stamp);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.btn-copy {
  margin-left: 0.65rem;
  vertical-align: middle;
  font-family: var(--font-stamp);
  font-size: 0.72rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-dim);
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.btn-copy:hover {
  color: var(--bone);
  border-color: var(--rust);
}

/* ——— Chapters (cinematic full-bleed) ——— */

.chapters {
  background: var(--ash);
}

.chapter {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.chapter__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.chapter__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.55) contrast(1.15) brightness(0.45);
  transform: scale(1.04);
  transition: transform 8s var(--ease), filter 0.8s;
}

.chapter:hover .chapter__bg img {
  transform: scale(1.1);
  filter: saturate(0.7) contrast(1.18) brightness(0.5);
}

.chapter__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 42%, rgba(12, 11, 9, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.35) 0%, transparent 30%, rgba(12, 11, 9, 0.85) 100%);
}

.chapter--right .chapter__veil {
  background:
    linear-gradient(270deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 42%, rgba(12, 11, 9, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.35) 0%, transparent 30%, rgba(12, 11, 9, 0.85) 100%);
}

.chapter__content {
  position: relative;
  padding: 4.5rem 0;
  max-width: 34rem;
}

.chapter--right .chapter__content {
  margin-left: auto;
  text-align: right;
}

.chapter--right .chapter__text {
  margin-left: auto;
}

.chapter__num {
  position: absolute;
  top: 2rem;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 203, 176, 0.18);
  pointer-events: none;
  user-select: none;
}

.chapter--right .chapter__num {
  right: auto;
  left: 0;
}

.chapter__title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1rem;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

.chapter__text {
  color: var(--bone-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 28rem;
}

/* ——— Origin manifesto ——— */

.origin {
  position: relative;
  min-height: min(90vh, 860px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0;
}

.origin__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.origin__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.45) contrast(1.2) brightness(0.35);
  transform: scale(1.05);
}

.origin__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(92, 30, 22, 0.35), transparent 55%),
    linear-gradient(90deg, rgba(12, 11, 9, 0.95) 0%, rgba(12, 11, 9, 0.75) 50%, rgba(12, 11, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.5), rgba(12, 11, 9, 0.85));
}

.origin__body {
  max-width: 40rem;
}

.origin__title {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.92;
  margin-bottom: 1.5rem;
}

.origin__title em {
  font-style: normal;
  color: var(--rust);
}

.origin__quote {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--rust);
  font-family: var(--font-stamp);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--bone);
  max-width: 32rem;
}

.origin__aside {
  color: var(--bone-dim);
  max-width: 30rem;
  margin-bottom: 1.75rem;
}

/* ——— War bands (factions) ——— */

.war {
  background: var(--ash);
  padding: 0;
}

.war__intro {
  position: relative;
  margin: 0;
  padding: 7rem 0 6rem;
  isolation: isolate;
  overflow: hidden;
}

.war__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(92, 30, 22, 0.28), transparent 50%),
    linear-gradient(180deg, #0c0b09, #14110e 60%, #0c0b09);
}

.war__intro::after {
  content: "FACTIONS";
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 203, 176, 0.07);
  pointer-events: none;
  z-index: -1;
}

.war__intro-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.war__intro .stamped {
  display: block;
  margin: 0;
}

.war__title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0;
  line-height: 0.95;
}

.war__lead {
  color: var(--bone-dim);
  max-width: 34rem;
  margin: 0.35rem 0 0;
  line-height: 1.7;
  font-size: 1.08rem;
}

.war__list {
  display: flex;
  flex-direction: column;
}

.war-band {
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-top: 1px solid rgba(216, 203, 176, 0.1);
  isolation: isolate;
}

@media (min-width: 800px) {
  .war-band {
    min-height: 300px;
  }

  .war-band:nth-child(even) .war-band__copy {
    margin-left: auto;
    text-align: right;
  }

  .war-band:nth-child(even) .war-band__copy p {
    margin-left: auto;
  }

  .war-band:nth-child(even) .war-band__shade {
    background:
      linear-gradient(270deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 45%, rgba(12, 11, 9, 0.25) 100%),
      linear-gradient(180deg, transparent 20%, rgba(12, 11, 9, 0.7) 100%);
  }
}

.war-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  filter: saturate(0.4) contrast(1.15) brightness(0.4);
  transform: scale(1.05);
  transition: transform 1s var(--ease), filter 0.6s;
}

.war-band:hover .war-band__img {
  transform: scale(1.12);
  filter: saturate(0.65) contrast(1.2) brightness(0.5);
}

.war-band__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 45%, rgba(12, 11, 9, 0.25) 100%),
    linear-gradient(180deg, transparent 20%, rgba(12, 11, 9, 0.7) 100%);
  transition: background 0.5s;
}

.war-band:hover .war-band__shade {
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.88) 0%, rgba(12, 11, 9, 0.4) 50%, rgba(92, 30, 22, 0.25) 100%),
    linear-gradient(180deg, transparent 10%, rgba(12, 11, 9, 0.65) 100%);
}

.war-band__copy {
  width: var(--wrap);
  margin-inline: auto;
  padding: 2.25rem 0;
  max-width: 36rem;
}

.war-band__tag {
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  color: var(--rust);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.war-band__copy h3 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.55rem;
}

.war-band__copy p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 1.02rem;
  max-width: 28rem;
}

/* ——— Last call ——— */

.lastcall {
  position: relative;
  min-height: min(75vh, 640px);
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0;
}

.lastcall__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.lastcall__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.4) contrast(1.15) brightness(0.35);
}

.lastcall__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(92, 30, 22, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.7), rgba(12, 11, 9, 0.92));
}

.lastcall__fog {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(12, 11, 9, 0.95));
}

.lastcall__content {
  position: relative;
}

.lastcall__title {
  font-size: clamp(3rem, 9vw, 5.5rem);
  margin-bottom: 0.85rem;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lastcall__text {
  color: var(--bone-dim);
  font-size: 1.15rem;
  max-width: 28rem;
  margin: 0 auto 1.85rem;
}

/* ——— Page hero (História e internas) ——— */

.page-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.45) contrast(1.15) brightness(0.4);
}

.page-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.55) 0%, rgba(12, 11, 9, 0.35) 40%, rgba(12, 11, 9, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 11, 9, 0.7), transparent 50%);
}

.page-hero__fog {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(12, 11, 9, 0.95));
}

.page-hero__content {
  position: relative;
  max-width: 40rem;
  animation: hero-in 1s var(--ease) both;
}

.page-hero__title {
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #f0e6d2 20%, var(--bone-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero__lead {
  color: var(--bone-dim);
  font-size: 1.12rem;
  max-width: 32rem;
  margin: 0;
  line-height: 1.7;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-hero--404 { min-height: min(86vh, 760px); }
.page-hero--404 .page-hero__content { max-width: 46rem; }
.page-hero--404 .page-hero__title { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 0.95; }

/* ——— Dossier (sobre) ——— */

.dossier {
  padding: 5.5rem 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(92, 30, 22, 0.18), transparent 45%),
    var(--ash-2);
  border-top: 1px solid var(--line);
}

.dossier__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .dossier__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.dossier__title {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.dossier__copy p {
  color: var(--bone-dim);
  max-width: 36rem;
}

.dossier__figure {
  margin: 0;
  position: relative;
}

.dossier__figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1);
  border: 1px solid var(--line);
}

.dossier__figure figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  background: rgba(12, 11, 9, 0.85);
  border: 1px solid var(--line);
}

/* ——— Lore timeline ——— */

.lore {
  background: var(--ash);
  border-top: 1px solid var(--line);
  padding-bottom: 2rem;
}

.lore__intro {
  padding: 5rem 0 2.5rem;
}

.lore__heading {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.lore__deck {
  color: var(--bone-dim);
  max-width: 36rem;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.lore-beat {
  position: relative;
  padding: 3.25rem 0 3.75rem;
  border-top: 1px solid rgba(216, 203, 176, 0.1);
  isolation: isolate;
}

.lore-beat--media {
  min-height: min(70vh, 620px);
  display: grid;
  align-items: end;
  padding: 4rem 0;
}

.lore-beat__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.lore-beat__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.15) brightness(0.38);
}

.lore-beat__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 45%, rgba(12, 11, 9, 0.25) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.4), rgba(12, 11, 9, 0.85));
}

.lore-beat--flip .lore-beat__veil {
  background:
    linear-gradient(270deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 45%, rgba(12, 11, 9, 0.25) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.4), rgba(12, 11, 9, 0.85));
}

.lore-beat__meta {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lore-beat__meta .stamped {
  margin: 0;
}

.lore-beat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.06em;
  line-height: 1;
}

.lore-beat__body {
  max-width: 40rem;
}

.lore-beat__body--wide {
  max-width: 46rem;
}

.lore-beat--flip .lore-beat__body--wide {
  margin-left: auto;
}

.intel__footnote {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-family: var(--font-stamp);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 44rem;
}

.diary-cta--mid {
  min-height: min(55vh, 480px);
}

.diary-cta__content strong {
  color: var(--bone);
  font-weight: 600;
}

.lore-beat--flip .lore-beat__body,
.lore-beat--flip .lore-beat__meta {
  margin-left: auto;
  text-align: right;
}

.lore-beat--flip .lore-beat__meta {
  justify-content: flex-end;
}

.lore-beat__body h3 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.lore-beat__body p {
  color: var(--bone-dim);
  margin: 0 0 1rem;
  line-height: 1.75;
}

.lore-beat__body p:last-child {
  margin-bottom: 0;
}

.lore-beat__body em {
  font-style: normal;
  color: var(--rust);
  font-family: var(--font-stamp);
}

.lore-beat__aside {
  margin-top: 1.25rem !important;
  padding: 1rem 0 0 1.15rem;
  border-left: 2px solid var(--rust);
  font-family: var(--font-stamp);
  color: var(--bone) !important;
  font-size: 1.05rem;
}

.lore-beat--flip .lore-beat__aside {
  border-left: none;
  border-right: 2px solid var(--rust);
  padding: 1rem 1.15rem 0 0;
}

/* ——— Intel / factions archive ——— */

.intel {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(92, 30, 22, 0.2), transparent 45%),
    var(--ash-2);
  border-top: 1px solid var(--line);
}

.intel__head {
  margin-bottom: 2.75rem;
  max-width: 40rem;
}

.intel__title {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.intel__lead {
  color: var(--bone-dim);
  margin: 0;
  line-height: 1.7;
}

.intel__list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .intel__list {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.intel-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(196, 86, 46, 0.06), transparent 40%),
    rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.intel-card:hover {
  border-color: rgba(196, 86, 46, 0.45);
  transform: translateY(-2px);
}

.intel-card__emblem {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.intel-card__tag {
  display: block;
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  color: var(--rust);
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.intel-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.intel-card p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 0.98rem;
  line-height: 1.65;
}

.lore-banner {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.lore-banner img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.65) contrast(1.08) brightness(0.85);
  display: block;
}

.intel__note {
  margin: 2rem 0 0;
}

/* ——— Diary CTA ——— */

.diary-cta {
  position: relative;
  min-height: min(65vh, 560px);
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0;
}

.diary-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.diary-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.4) contrast(1.15) brightness(0.32);
}

.diary-cta__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(92, 30, 22, 0.3), transparent 55%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.7), rgba(12, 11, 9, 0.92));
}

.diary-cta__content {
  position: relative;
  max-width: 36rem;
}

.diary-cta__title {
  font-size: clamp(2.6rem, 7vw, 4rem);
  margin-bottom: 1rem;
}

.diary-cta__content p {
  color: var(--bone-dim);
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.war__more {
  margin: 1.25rem 0 0;
}

.war-band__hit {
  display: grid;
  align-items: end;
  position: relative;
  min-height: 260px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 800px) {
  .war-band__hit {
    min-height: 300px;
  }
}

.war-band__hit .war-band__img,
.war-band__hit .war-band__shade {
  position: absolute;
  inset: 0;
}

.war-band__hit .war-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.war-band__hit .war-band__shade {
  z-index: -1;
}

.intel-card h3 a {
  color: inherit;
  text-decoration: none;
}

.intel-card h3 a:hover {
  color: var(--rust);
}

.intel-card .text-link {
  display: inline-block;
  margin-top: 0.85rem;
}

/* ——— Factions hub ——— */

.factions-hub {
  padding: 4.5rem 0 5rem;
  background: var(--ash);
  border-top: 1px solid var(--line);
}

.factions-hub__intro {
  margin-bottom: 2.75rem;
  max-width: 40rem;
}

.factions-hub__lead {
  color: var(--bone-dim);
  margin: 0;
  line-height: 1.7;
}

.factions-hub__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .factions-hub__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.faction-tile {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.faction-tile:hover {
  border-color: rgba(196, 86, 46, 0.5);
  transform: translateY(-3px);
}

.faction-tile__link {
  display: grid;
  color: inherit;
  height: 100%;
}

@media (min-width: 600px) {
  .faction-tile__link {
    grid-template-columns: 1.05fr 1fr;
  }
}

.faction-tile__media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.faction-tile__screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.1) brightness(0.55);
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.faction-tile:hover .faction-tile__screen {
  transform: scale(1.06);
  filter: saturate(0.7) contrast(1.12) brightness(0.6);
}

.faction-tile__emblem {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
}

.faction-tile__copy {
  padding: 1.5rem 1.35rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faction-tile__tag {
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  color: var(--rust);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.faction-tile__copy h3 {
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
}

.faction-tile__copy p {
  color: var(--bone-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.faction-tile__cta {
  font-family: var(--font-stamp);
  color: var(--rust);
  font-size: 0.9rem;
}

/* ——— Faction detail ——— */

.faction-hero {
  position: relative;
  min-height: min(70vh, 620px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
}

.faction-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.faction-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.15) brightness(0.4);
}

.faction-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.55) 0%, rgba(12, 11, 9, 0.25) 40%, rgba(12, 11, 9, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 11, 9, 0.75), transparent 55%);
}

.faction-hero__fog {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(12, 11, 9, 0.95));
}

.faction-hero__content {
  position: relative;
  max-width: 40rem;
  animation: hero-in 1s var(--ease) both;
}

.faction-hero__back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--bone-dim);
  transition: color 0.2s;
}

.faction-hero__back:hover {
  color: var(--rust);
}

.faction-hero__emblem {
  width: clamp(110px, 18vw, 160px);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
}

.faction-hero__title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: 0.04em;
  margin: 0;
}

.faction-dossier {
  padding: 4.5rem 0;
  background: var(--ash-2);
  border-top: 1px solid var(--line);
}

.faction-dossier__inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .faction-dossier__inner {
    grid-template-columns: 1.35fr 0.75fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.faction-dossier__text p {
  color: var(--bone-dim);
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.faction-dossier__lead {
  color: var(--bone) !important;
  font-size: 1.12rem;
}

.faction-dossier__aside {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
}

.faction-dossier__aside figure {
  margin: 0 0 1.25rem;
}

.faction-dossier__aside img {
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.faction-meta {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.faction-meta dt {
  font-family: var(--font-stamp);
  font-size: 0.72rem;
  color: var(--rust);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.faction-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faction-screen {
  margin: 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.faction-screen img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  filter: saturate(0.6) contrast(1.1) brightness(0.75);
}

.faction-others {
  padding: 4rem 0 5rem;
  background: var(--ash);
}

.faction-others__head {
  margin-bottom: 2rem;
}

.faction-others__head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.faction-others__list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .faction-others__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.faction-others__list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, transform 0.25s;
}

.faction-others__list a:hover {
  border-color: rgba(196, 86, 46, 0.45);
  transform: translateY(-2px);
}

.faction-others__list img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.faction-others__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faction-others__list em {
  font-family: var(--font-stamp);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--rust);
}

/* ——— Rules ——— */

.rules {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(92, 30, 22, 0.18), transparent 45%),
    var(--ash);
  border-top: 1px solid var(--line);
}

.rules-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.rules-tabs__tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--bone-dim);
  font-family: var(--font-stamp);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: none;
  min-height: 2.75rem;
  padding: 0.45rem 1.25rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.rules-tabs__tab:hover {
  color: var(--bone);
  border-color: var(--bone-dim);
}

.rules-tabs__tab.is-active {
  color: #f5ebe0;
  border-color: rgba(196, 86, 46, 0.65);
  background: linear-gradient(180deg, var(--rust) 0%, var(--rust-deep) 100%);
}

.rules-panel[hidden] {
  display: none;
}

.rules-panel__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.rules-panel__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.rules-panel__lead {
  color: var(--bone-dim);
  margin: 0;
  line-height: 1.7;
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(196, 86, 46, 0.06), transparent 40%),
    rgba(0, 0, 0, 0.4);
}

.rules-list__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.rules-list p {
  margin: 0;
  color: var(--bone-dim);
  line-height: 1.65;
}

.rules-footnote {
  margin: 1.75rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 44rem;
}

.rules-sections {
  display: grid;
  gap: 1.25rem;
}

.rules-section {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
}

.rules-section h4 {
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  color: var(--bone);
}

.rules-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.rules-section li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--bone-dim);
  line-height: 1.7;
}

.rules-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 1px;
}

/* ——— Donations ——— */

.donate {
  padding: 4.5rem 0 3rem;
  background: var(--ash-2);
  border-top: 1px solid var(--line);
}

.donate__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .donate__grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 3.5rem;
  }
}

.donate__title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.donate__copy p {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.donate__card {
  padding: 2rem 1.75rem;
  border: 1px solid rgba(196, 86, 46, 0.4);
  background:
    linear-gradient(160deg, rgba(196, 86, 46, 0.12), transparent 45%),
    rgba(0, 0, 0, 0.5);
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.donate__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.donate__card-lead {
  font-family: var(--font-stamp);
  color: var(--bone);
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
}

.donate__via {
  margin: 0.85rem 0 0;
  font-family: var(--font-stamp);
  font-size: 0.82rem;
  color: var(--bone-dim);
  letter-spacing: 0.06em;
}

.donate__hint {
  margin: 1rem 0 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.55;
  font-size: 0.95rem;
}

.donate__hint code {
  font-size: 0.85em;
}

.donate__flash {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  font-family: var(--font-stamp);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}

.donate__flash--ok {
  border-left: 3px solid #66c0f4;
}

.donate__flash--error {
  border-left: 3px solid var(--rust);
}

.donate-form {
  width: 100%;
  text-align: left;
  margin-top: 0.5rem;
}

.donate-form__presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.55rem 0 0.85rem;
}

.donate-form__chip {
  cursor: pointer;
}

.donate-form__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.donate-form__chip span {
  display: block;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.45);
  font-family: var(--font-stamp);
  color: var(--bone);
}

.donate-form__chip input:checked + span {
  border-color: var(--rust);
  color: var(--rust);
  background: rgba(92, 30, 22, 0.25);
}

.donate-form__custom {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.donate-form__custom input {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.65);
  color: var(--bone);
  font: inherit;
}

.donate-form .btn {
  width: 100%;
}

.donate-uses {
  padding: 3.5rem 0 4.5rem;
  background: var(--ash);
  border-top: 1px solid var(--line);
}

.donate-uses__head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.donate-uses__title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.donate-uses__list {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .donate-uses__list {
    grid-template-columns: 1fr 1fr;
  }
}

.donate-uses__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
}

.donate-uses__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.donate-uses__list p {
  margin: 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.donate-notice {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(92, 30, 22, 0.22), transparent 50%),
    var(--ash-2);
  border-top: 1px solid var(--line);
}

.donate-notice__inner {
  max-width: 42rem;
}

.donate-notice__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1.15rem;
}

.donate-notice__inner p {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.donate-notice__inner .btn {
  margin-top: 0.5rem;
}

/* ——— Diário (público) ——— */

.journal {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(92, 30, 22, 0.18), transparent 45%),
    var(--ash);
  border-top: 1px solid var(--line);
}

.journal__intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.journal__lead,
.reels__lead {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin: 0.75rem 0 0;
}

.journal__empty,
.reels__empty {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  padding: 2rem 0;
}

.journal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.journal-entry__link {
  display: grid;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  align-items: stretch;
}

@media (min-width: 720px) {
  .journal-entry__link {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.75rem;
  }
}

.journal-entry__media {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  border: 1px solid var(--line);
  background: var(--ash-2);
}

.journal-entry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.journal-entry__link:hover .journal-entry__media img {
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.08);
}

.journal-entry__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0;
}

.journal-entry__copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0.55rem 0 0.85rem;
  color: var(--bone);
}

.journal-entry__author {
  margin: -0.35rem 0 0.65rem !important;
  font-family: var(--font-stamp);
  font-size: 0.92rem !important;
  color: var(--rust) !important;
  letter-spacing: 0.03em;
  max-width: none !important;
}

.journal-entry {
  position: relative;
}

.journal-entry__author-link {
  display: inline-block;
  margin: 0.55rem 0 0;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
  text-decoration: none;
}

.journal-entry__author-link:hover {
  color: var(--rust);
}

.journal-entry__copy p {
  margin: 0;
  color: var(--bone-dim);
  line-height: 1.65;
  max-width: 38rem;
}

.journal-entry__cta {
  margin-top: 1.15rem;
  font-family: var(--font-stamp);
  color: var(--rust);
  letter-spacing: 0.04em;
}

.journal-read__hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(14rem, 36vh, 22rem);
  display: flex;
  align-items: flex-end;
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.journal-read__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.journal-read__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.42) blur(1px);
}

.journal-read__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.4), rgba(12, 11, 9, 0.94) 80%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 86, 46, 0.16), transparent 55%);
}

.journal-read__head {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
}

.journal-read__head a {
  color: inherit;
  text-decoration: none;
}

.journal-read__head a:hover {
  color: var(--rust);
}

.journal-read__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0.6rem 0 0;
  max-width: 18ch;
}

.journal-read__byline {
  margin: 0.85rem 0 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  letter-spacing: 0.03em;
}

.journal-read__byline a {
  color: var(--rust);
  text-decoration: none;
}

.journal-read__byline a:hover {
  text-decoration: underline;
}

.journal-author {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 0;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.55);
}

.journal-author__portrait {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.journal-author__name {
  margin: 0.25rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.journal-author__meta {
  margin: 0 0 0.75rem;
  font-family: var(--font-stamp);
  font-size: 0.88rem;
  color: var(--bone-dim);
}

.journal-read__body {
  padding: 2.75rem 0 5rem;
  max-width: min(44rem, var(--wrap));
}

.journal-read__copy p {
  font-family: var(--font-stamp);
  font-size: 1.05rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin: 0 0 1.35rem;
}

.journal-read__back {
  margin-top: 2.5rem !important;
}

/* Foto rasgada no diário */
.torn-photo {
  position: relative;
  width: min(100%, 28rem);
  margin: 0 auto 2.75rem;
  padding: 0.35rem 0 0.5rem;
}

.torn-photo__shadow {
  position: absolute;
  inset: 8% 6% 4% 8%;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(18px);
  transform: rotate(2.5deg);
  z-index: 0;
  pointer-events: none;
}

.torn-photo__mat {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(145deg, #e8dcc4 0%, #d2c2a4 42%, #c4b08a 100%);
  padding: 0.85rem 0.85rem 1.65rem;
  transform: rotate(-1.6deg);
  filter: url(#torn-edge);
  box-shadow:
    inset 0 0 0 1px rgba(90, 70, 40, 0.22),
    inset 0 0 28px rgba(80, 55, 30, 0.12);
}

.torn-photo__print {
  position: relative;
  overflow: hidden;
  background: #1a1612;
  filter: url(#torn-edge-soft);
  box-shadow: inset 0 0 0 1px rgba(40, 30, 18, 0.35);
}

.torn-photo__print::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 230, 180, 0.12), transparent 45%),
    linear-gradient(180deg, transparent 60%, rgba(40, 25, 12, 0.28)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 2px,
      rgba(80, 55, 30, 0.03) 2px,
      rgba(80, 55, 30, 0.03) 3px
    );
  mix-blend-mode: multiply;
}

.torn-photo__print img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) sepia(0.18);
}

.torn-photo__caption {
  display: block;
  margin: 0.85rem 0 0;
  text-align: center;
  color: #0a0908;
  font-size: calc(0.82rem + 8px);
  letter-spacing: 0.08em;
}

.torn-photo__tape {
  position: absolute;
  z-index: 2;
  width: 3.4rem;
  height: 1.15rem;
  background:
    linear-gradient(
      180deg,
      rgba(210, 190, 140, 0.55),
      rgba(180, 150, 100, 0.42)
    );
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.torn-photo__tape--tl {
  top: 0.55rem;
  left: 1.25rem;
  transform: rotate(-18deg);
}

.torn-photo__tape--br {
  right: 1.15rem;
  bottom: 0.85rem;
  transform: rotate(12deg);
  width: 2.8rem;
}

@media (min-width: 720px) {
  .torn-photo {
    width: min(100%, 32rem);
    margin-bottom: 3.25rem;
  }

  .torn-photo__mat {
    padding: 1.05rem 1.05rem 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .torn-photo__mat {
    transform: none;
  }
}

/* ——— Vídeos (público) ——— */

.reels {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(58, 64, 52, 0.35), transparent 50%),
    var(--ash-2);
  border-top: 1px solid var(--line);
}

.reels__intro {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.reels__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .reels__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }

  .reel:first-child {
    grid-column: 1 / -1;
  }
}

.reel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}

.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--bone);
}

.reel__fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.reel__fallback span {
  position: relative;
  z-index: 1;
  font-family: var(--font-stamp);
  letter-spacing: 0.04em;
  color: var(--rust);
}

.reel__consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.9rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--bone);
  cursor: pointer;
}

.reel__consent img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  transition: filter 0.3s var(--ease);
}

.reel__consent:hover img,
.reel__consent:focus-visible img { filter: brightness(0.55) saturate(0.9); }

.reel__play {
  position: relative;
  width: 4.2rem;
  height: 4.2rem;
  border: 2px solid var(--rust);
  border-radius: 50%;
  background: rgba(12, 11, 9, 0.6);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.reel__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent var(--bone);
}

.reel__consent:hover .reel__play { transform: scale(1.06); background: rgba(196, 86, 46, 0.35); }

.reel__consent-text {
  position: relative;
  display: grid;
  gap: 0.2rem;
}

.reel__consent-text strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.reel__consent-text small {
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  color: var(--bone-dim);
}

.reel__meta {
  padding: 1rem 0 0;
}

.reel__meta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0.45rem 0 0.65rem;
  color: var(--bone);
}

.reel__ext {
  font-family: var(--font-stamp);
  font-size: 0.92rem;
  color: var(--rust);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.reel__ext:hover {
  color: var(--bone);
}

/* ——— Minha Conta ——— */

.account {
  padding: 2rem 0 4.5rem;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(42, 71, 94, 0.22), transparent 50%),
    var(--ash);
  border-top: 1px solid var(--line);
}

.page-hero--account-compact {
  min-height: clamp(8rem, 18vh, 12rem);
}

.page-hero--account-compact .page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.account__inner {
  max-width: min(1120px, var(--wrap));
}

/* Painel em colunas: jogador · conteúdo · extras */

.account--dash {
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  border-top: 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(196, 86, 46, 0.12), transparent 45%),
    radial-gradient(ellipse at 85% 10%, rgba(42, 71, 94, 0.22), transparent 50%),
    var(--ash);
}

.account--dash .account__inner {
  max-width: min(1320px, var(--wrap));
}

.acct-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.acct-bar .stamped {
  margin: 0 0 0.3rem;
}

.acct-bar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
}

.acct-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.acct-col {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  min-width: 0;
}

@media (min-width: 960px) {
  .acct-layout--page,
  .acct-layout--dash {
    grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
  }

  .acct-layout--dash .acct-col--extras {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .acct-layout--dash {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.45fr) minmax(16rem, 1fr);
  }

  .acct-layout--dash .acct-col--extras {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
}

.acct-card {
  min-width: 0;
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
}

.acct-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.acct-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bone);
}

.acct-card__lead {
  margin: 0.3rem 0 0;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--bone-dim);
}

.acct-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.acct-chip {
  flex: none;
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone-dim);
}

.acct-chip--ok {
  color: #8fc47c;
  border-color: rgba(143, 196, 124, 0.45);
  background: rgba(143, 196, 124, 0.08);
}

.acct-chip--warn {
  color: #d3b064;
  border-color: rgba(211, 176, 100, 0.45);
  background: rgba(211, 176, 100, 0.08);
}

.acct-chip--bad {
  color: #e07a5a;
  border-color: rgba(196, 86, 46, 0.55);
  background: rgba(196, 86, 46, 0.1);
}

.acct-chip--gold {
  color: #1a1408;
  border-color: #e2bf6a;
  background: #e2bf6a;
}

/* Coluna do jogador */

.acct-player {
  padding: 1.35rem 1.2rem;
  border-color: rgba(196, 86, 46, 0.3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.acct-player__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.acct-player__avatar {
  flex: none;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border: 2px solid rgba(196, 86, 46, 0.55);
  border-radius: 50%;
  background: var(--ash);
}

.acct-player__avatar--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--rust);
}

.acct-player__meta {
  min-width: 0;
}

.acct-player__meta .stamped {
  margin: 0;
}

.acct-player__name {
  margin: 0.15rem 0 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bone);
}

.acct-player__steam {
  margin: 0.35rem 0 0;
  font-family: var(--font-stamp);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
  color: var(--bone-dim);
}

.acct-player__badges {
  margin-top: 1rem;
}

.acct-member {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.45);
  text-align: center;
  text-decoration: none;
  color: var(--bone);
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.acct-member:hover {
  border-color: rgba(196, 86, 46, 0.6);
}

.acct-member span {
  display: grid;
  gap: 0.15rem;
}

.acct-member strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.acct-member small {
  font-family: var(--font-stamp);
  font-size: 0.76rem;
  color: var(--bone-dim);
}

.acct-member--on {
  justify-content: flex-start;
  text-align: left;
  color: #1a1408;
  border-color: #e2bf6a;
  background: linear-gradient(135deg, #e8c878, #c4963a);
}

.acct-member--on:hover {
  border-color: #f1d58f;
  filter: brightness(1.06);
}

.acct-member--on small {
  color: rgba(26, 20, 8, 0.78);
}

.acct-member--on svg {
  flex: none;
  width: 2rem;
  height: 2rem;
}

.acct-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.acct-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.45);
  text-align: center;
}

.acct-stats .acct-stats__wide {
  grid-column: 1 / -1;
}

.acct-stats dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.acct-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.acct-stats .acct-stats__money,
.acct-stats__wide dd {
  font-size: 1.25rem;
}

.acct-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.acct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.acct-btn:hover {
  border-color: rgba(196, 86, 46, 0.55);
  background: rgba(196, 86, 46, 0.08);
}

.acct-btn.is-active {
  border-color: rgba(196, 86, 46, 0.75);
  background: rgba(92, 30, 22, 0.32);
}

.acct-btn__count {
  min-width: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--rust);
  font-size: 0.78rem;
  line-height: 1.3rem;
  letter-spacing: 0;
  color: #fff;
}

.acct-btn--danger {
  border-color: rgba(196, 86, 46, 0.45);
  background: rgba(92, 30, 22, 0.25);
}

.acct-btn--danger:hover {
  background: rgba(140, 40, 25, 0.55);
}

@media (max-width: 959px) {
  .acct-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acct-btn {
    padding: 0.6rem 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .acct-btn--danger {
    grid-column: 1 / -1;
  }
}

/* Coluna principal */

.acct-next {
  border-left: 3px solid var(--rust);
  background: linear-gradient(120deg, rgba(196, 86, 46, 0.15), rgba(12, 11, 9, 0.95) 60%);
}

.acct-next .stamped {
  margin: 0 0 0.3rem;
}

.acct-next__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
}

.acct-next__text {
  margin: 0.4rem 0 0.9rem;
  font-family: var(--font-stamp);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--bone-dim);
}

.acct-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acct-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.4);
  transition: border-color 0.2s ease;
}

.acct-row:hover {
  border-color: rgba(196, 86, 46, 0.45);
}

.acct-row__thumb {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ash);
}

.acct-row__body {
  flex: 1;
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.acct-row__name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bone);
}

.acct-row__flag {
  margin-left: 0.35rem;
  font-family: var(--font-stamp);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--rust);
}

.acct-row__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  font-family: var(--font-stamp);
  font-size: 0.76rem;
  color: var(--bone-dim);
}

.acct-row__tags .acct-chip {
  padding: 0.04rem 0.4rem;
  font-size: 0.72rem;
}

.acct-row__note {
  font-family: var(--font-stamp);
  font-size: 0.76rem;
  color: #d3b064;
}

.acct-row__actions {
  flex: none;
  display: flex;
  gap: 0.75rem;
}

.acct-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-stamp);
  font-size: 0.84rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--rust);
  cursor: pointer;
}

.acct-link:hover {
  text-decoration: underline;
  color: var(--bone);
}

.acct-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px dashed var(--line);
}

.acct-empty p {
  flex: 1 1 100%;
  margin: 0;
  font-family: var(--font-stamp);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--bone-dim);
}

/* Coluna de extras */

.acct-plan--on {
  border-color: rgba(226, 191, 106, 0.45);
  background:
    linear-gradient(160deg, rgba(226, 191, 106, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
}

.acct-plan__status {
  margin: 0;
  font-family: var(--font-stamp);
  font-size: 0.86rem;
  color: var(--bone);
}

.acct-plan__perks {
  display: grid;
  gap: 0.3rem;
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  color: var(--bone-dim);
}

.acct-plan__note {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid var(--rust);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--bone);
}

.acct-plan__perks li::marker {
  color: #e2bf6a;
}

.acct-steps,
.acct-notifs {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acct-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-stamp);
  font-size: 0.86rem;
  color: var(--bone-dim);
}

.acct-step:last-child,
.acct-notifs li:last-child {
  border-bottom: 0;
}

.acct-step__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.acct-step__label {
  flex: 1 1 9rem;
  min-width: 0;
}

.acct-step__form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0 auto;
}

.acct-step--done {
  color: var(--bone);
}

.acct-step--done .acct-step__mark {
  color: #8fc47c;
  border-color: rgba(143, 196, 124, 0.5);
}

.acct-step--pending .acct-step__mark {
  color: #d3b064;
  border-color: rgba(211, 176, 100, 0.5);
}

.acct-step--error .acct-step__mark {
  color: #e07a5a;
  border-color: rgba(196, 86, 46, 0.55);
}

.acct-step--locked {
  opacity: 0.55;
}

.acct-notifs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-stamp);
  font-size: 0.84rem;
}

.acct-notifs a,
.acct-notifs strong {
  min-width: 0;
  font-weight: 400;
  text-decoration: none;
  color: var(--bone-dim);
}

.acct-notifs a:hover {
  color: var(--rust);
}

.acct-notifs li.is-unread {
  padding-left: 0.55rem;
  border-left: 2px solid var(--rust);
}

.acct-notifs li.is-unread a,
.acct-notifs li.is-unread strong {
  color: var(--bone);
}

.acct-notifs time {
  flex: none;
  font-size: 0.72rem;
  color: var(--bone-dim);
}

.account-main {
  min-width: 0;
  display: grid;
  gap: 1.15rem;
}

.account-section-head {
  margin-bottom: 0.15rem;
}

.account-section-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-section-head__title {
  margin: 0.25rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.account-section-head__lead {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.55;
}

.account-stat-card__value {
  margin: 0.45rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--rust);
}

.account-stat-card__value span {
  font-size: 1.1rem;
  color: var(--bone-dim);
  font-weight: 500;
}

.account-stat-card__value--sm {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--bone);
}

.account-stat-card__label {
  margin: 0 0 0.85rem;
  font-family: var(--font-stamp);
  font-size: 0.88rem;
  color: var(--bone-dim);
}

.account-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.account-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin-bottom: 1.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  background: rgba(34, 30, 24, 0.85);
}

.account-fact__tag {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rust);
  line-height: 1.2;
}

.account-fact p {
  margin: 0;
  font-family: var(--font-stamp);
  color: var(--bone);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.account-fact--ok {
  border-left-color: #66c0f4;
}

.account-fact--ok .account-fact__tag {
  color: #66c0f4;
}

.account-fact--error {
  border-left-color: var(--rust);
  background: rgba(92, 30, 22, 0.28);
}

.account-fact--warn {
  border-left-color: #c4a35a;
}

.account-fact--warn .account-fact__tag {
  color: #c4a35a;
}

.account-panel,
.account-login {
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
  padding: 1.5rem 1.35rem 1.6rem;
}

.account-panel + .account-panel { margin-top: 1.25rem; }

.account-danger { border-color: rgba(196, 86, 46, 0.45); }

.account-danger__list {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  color: var(--bone-dim);
  font-size: 0.95rem;
}

.account-danger__blocked {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  font-family: var(--font-stamp);
  color: var(--bone);
}

.account-danger__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem;
}

.account-danger__form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.account-danger__form input {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.75);
  color: var(--bone);
  font: inherit;
  letter-spacing: 0.1em;
}

.btn--danger {
  background: linear-gradient(180deg, #7a2416 0%, var(--blood) 100%);
  border-color: var(--rust);
  color: var(--bone);
}

.btn--danger:hover { background: linear-gradient(180deg, #8f2c1b 0%, #6b2318 100%); }

.account-login--wide {
  max-width: 36rem;
  margin-inline: auto;
}

.account-login__title,
.account-card__name,
.account-next__title,
.account-side__heading {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.account-login__title,
.account-card__name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.45rem 0 0.9rem;
}

.account-next__title,
.account-side__heading {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 0.35rem 0 0.75rem;
}

.account-next__text,
.account-login__text,
.account-side__text {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0 0 1.15rem;
}

.account-login .btn--steam {
  display: inline-flex;
}

.account-login__hint,
.account-side__note,
.account-support__soon {
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
  color: var(--bone-dim);
  line-height: 1.55;
}

.account-login__hint code {
  font-size: 0.84em;
  color: var(--bone);
}

.account-dossier {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .account-dossier {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.5rem;
    padding: 1.75rem 1.6rem;
  }
}

.account-dossier__avatar,
.account-card__avatar {
  width: 7.25rem;
  height: 7.25rem;
  border: 1px solid var(--line);
  background: var(--ash-2);
  overflow: hidden;
}

.account-dossier__avatar img,
.account-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}

.account-card__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--rust);
  background: var(--ash-3);
}

.account-meta {
  margin: 0 0 1.15rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .account-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.account-meta dt {
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 0.2rem;
}

.account-meta dd {
  margin: 0;
  color: var(--bone);
}

.account-meta code {
  font-size: 0.9rem;
  word-break: break-all;
}

.account-meta a {
  color: var(--rust);
  text-decoration: none;
  font-family: var(--font-stamp);
}

.account-meta a:hover {
  color: var(--bone);
}

.account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.account-inline-form {
  display: inline;
  margin: 0;
}

.account-progress__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.account-progress__count {
  margin: 0;
  font-family: var(--font-stamp);
  color: var(--rust);
  letter-spacing: 0.04em;
}

.account-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.account-check__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.45);
}

.account-check__mark {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--bone-dim);
  background: var(--ash-2);
}

.account-check__item--done .account-check__mark {
  color: #f5ebe0;
  border-color: rgba(102, 192, 244, 0.45);
  background: rgba(42, 71, 94, 0.55);
}

.account-check__item--todo .account-check__mark {
  color: var(--rust);
  border-color: rgba(196, 86, 46, 0.5);
}

.account-check__item--locked {
  opacity: 0.72;
}

.account-check__item--pending .account-check__mark {
  color: #c4a35a;
}

.account-check__item--error .account-check__mark {
  color: #f0c4b0;
  border-color: var(--rust);
}

.account-check__copy strong {
  display: block;
  font-family: var(--font-stamp);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--bone);
  margin-bottom: 0.2rem;
}

.account-check__copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--bone-dim);
  line-height: 1.45;
}

.account-check__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.account-support {
  border-color: rgba(196, 86, 46, 0.28);
  background:
    linear-gradient(165deg, rgba(92, 30, 22, 0.22), rgba(12, 11, 9, 0.95));
}

.account-support__soon {
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
  font-style: italic;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


/* ——— Grupos de jogadores ——— */

.groups-hub {
  padding: 3.5rem 0 4.5rem;
  background: var(--ash);
  border-top: 1px solid var(--line);
}

.groups-hub__intro {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.groups-hub__lead,
.groups-hub__empty {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.groups-hub__actions {
  margin-top: 1.1rem;
}

.groups-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .groups-hub__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.group-tile__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  background: rgba(22, 19, 16, 0.75);
  transition: border-color 0.2s;
}

.group-tile__link:hover {
  border-color: var(--rust);
}

.group-tile__emblem {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--line);
  background: var(--ash-2);
  overflow: hidden;
}

.group-tile__emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-tile__tag {
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--rust);
  margin-bottom: 0.25rem;
}

.group-tile__copy h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.group-tile__copy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--bone-dim);
  line-height: 1.5;
}

.group-tile__meta {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--rust);
}

.group-page__hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(14rem, 36vh, 22rem);
  display: flex;
  align-items: flex-end;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.group-page__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.group-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.4);
}

.group-page__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.35), rgba(12, 11, 9, 0.94) 78%);
}

.group-page__identity {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.group-page__emblem {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ash-2);
}

.group-page__tag {
  display: inline-block;
  font-family: var(--font-stamp);
  color: var(--rust);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.group-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--bone);
}

.group-page__leader {
  margin: 0.45rem 0 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
}

.group-page__body {
  padding: 2.5rem 0 4.5rem;
}

.group-page__layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .group-page__layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.85fr);
    align-items: start;
  }
}

.group-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
  padding: 1.35rem 1.25rem 1.5rem;
  margin-bottom: 1.15rem;
}

.group-page__narrative p {
  font-family: var(--font-stamp);
  color: var(--bone);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.group-page__empty,
.group-side__text {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.6;
  margin: 0.5rem 0 1rem;
}

.group-members,
.group-pending {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.group-members li,
.group-pending li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.group-members img,
.group-members__fallback {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ash-3);
}

.group-members__fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--rust);
}

.group-members strong,
.group-pending strong {
  display: block;
  font-family: var(--font-stamp);
  font-weight: 400;
  color: var(--bone);
}

.group-members span {
  font-size: 0.8rem;
  color: var(--bone-dim);
}

.group-pending__actions {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}

.account-groups {
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.account-groups__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.account-groups__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.account-groups__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.4);
}

.account-groups__item img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.account-groups__item strong {
  display: block;
  font-family: var(--font-stamp);
  font-weight: 400;
  color: var(--bone);
}

.account-groups__item span {
  font-size: 0.82rem;
  color: var(--bone-dim);
}

.account-groups__create {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.account-groups__form {
  margin-top: 0.75rem;
}

.account-groups__fields {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .account-groups__fields {
    grid-template-columns: 1fr 1fr;
  }

  .account-groups__full {
    grid-column: 1 / -1;
  }
}

.account-groups__fields label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
  letter-spacing: 0.03em;
}

.account-groups__fields input,
.account-groups__fields textarea,
.account-groups__fields select {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.65);
  color: var(--bone);
  font: inherit;
}

.account-chars__list .account-groups__item {
  grid-template-columns: auto 1fr;
}

@media (min-width: 640px) {
  .account-chars__list .account-groups__item {
    grid-template-columns: auto 1fr auto;
  }
}

.account-chars__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .account-chars__actions {
    grid-column: auto;
    justify-content: flex-end;
  }
}

.account-chars__active {
  color: var(--rust);
  font-size: 0.85rem;
}

.account-chars__note {
  display: block;
  margin-top: 0.25rem;
  color: #c4a35a;
  font-size: 0.82rem;
}

.account-chars__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.account-donate-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.account-donate-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.4);
  font-family: var(--font-stamp);
}

.account-donate-list strong {
  font-weight: 400;
  color: var(--rust);
  font-size: 1.15rem;
}

.account-donate-list span {
  color: var(--bone-dim);
  font-size: 0.88rem;
  grid-column: 1;
}

.account-donate-list code {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.75rem;
  color: var(--bone-dim);
}

.account-groups__browse {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line);
}

.account-groups__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.account-groups__chip {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  background: rgba(12, 11, 9, 0.45);
}

.account-groups__chip:hover {
  border-color: var(--rust);
  color: var(--rust);
}

/* ——— Personagens hub + ficha ——— */

.chars-hub {
  padding: 2.75rem 0 4.5rem;
}

.chars-hub__intro {
  margin-bottom: 2rem;
}

.chars-hub__lead {
  max-width: 36rem;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.65;
  margin: 0.5rem 0 1rem;
}

.chars-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chars-hub__empty {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  border: 1px dashed var(--line);
  padding: 1.5rem;
}

.chars-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .chars-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .chars-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.char-tile__link {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.2s ease;
}

.char-tile__link:hover {
  border-color: rgba(168, 74, 50, 0.65);
}

.char-tile__portrait img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.char-tile__copy h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.char-tile__tag {
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: 0.82rem;
  color: var(--rust);
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.char-tile__copy p {
  margin: 0;
  font-family: var(--font-stamp);
  font-size: 0.92rem;
  color: var(--bone-dim);
  line-height: 1.55;
}

.char-tile__meta {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--rust);
}

.char-page__hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(14rem, 36vh, 22rem);
  display: flex;
  align-items: flex-end;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.char-page__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.char-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.35);
}

.char-page__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.35), rgba(12, 11, 9, 0.94) 78%);
}

.char-page__identity {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.char-page__portrait {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ash-2);
}

.char-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--bone);
}

.char-page__owner {
  margin: 0.45rem 0 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
}

.char-page__active {
  color: var(--rust);
}

.char-page__meta {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  font-size: 0.92rem;
}

.char-page__body {
  padding: 2.5rem 0 4.5rem;
}

.char-page__layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .char-page__layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.75fr);
    align-items: start;
  }
}

.char-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
  padding: 1.35rem 1.25rem 1.5rem;
}

.char-page__story p {
  font-family: var(--font-stamp);
  color: var(--bone);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin: 0.75rem 0 0;
}

.char-page__diaries {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.char-page__diaries-empty {
  margin: 0.65rem 0 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
}

.char-page__diary-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.char-page__diary-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.4);
  text-decoration: none;
  color: inherit;
}

.char-page__diary-list a:hover {
  border-color: rgba(168, 74, 50, 0.65);
}

.char-page__diary-list strong {
  font-family: var(--font-stamp);
  font-weight: 400;
  color: var(--bone);
}

.char-page__diary-list span {
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.char-side__dl {
  margin: 0.75rem 0 1rem;
  display: grid;
  gap: 0.75rem;
}

.char-side__dl div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.char-side__dl dt {
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  text-transform: uppercase;
}

.char-side__dl dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-stamp);
  color: var(--bone);
}

/* ——— Footer ——— */

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.92), rgba(12, 11, 9, 0.97)),
    var(--footer-img) center / cover no-repeat;
  filter: saturate(0.4) brightness(0.45);
}

.site-footer__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .site-footer__inner {
    grid-template-columns: minmax(18rem, 1.4fr) auto auto auto;
  }

  .site-footer__brand { grid-column: auto; }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__brand img {
  width: 64px;
  height: 64px;
}

.site-footer__claim {
  margin: 0;
  font-family: var(--font-stamp);
  font-size: 0.95rem;
  color: var(--bone-dim);
  max-width: 16rem;
}

.site-footer__col {
  font-size: 0.88rem;
  color: var(--bone-dim);
}

.site-footer__heading {
  margin: 0 0 0.9rem;
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

.site-footer__links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.site-footer__links a,
.site-footer__ral a {
  color: var(--bone);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__ral a:hover { color: var(--rust); }

.complaints-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #c8102e;
  background: rgba(200, 16, 46, 0.12);
  color: var(--bone);
  text-decoration: none;
  transition: background 0.2s ease;
}

.complaints-badge:hover { background: rgba(200, 16, 46, 0.25); }

.site-footer__ral {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
}

.site-footer__bottom {
  width: var(--wrap);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--bone-dim);
}

@media (min-width: 900px) {
  .site-footer__bottom {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
  }

  .site-footer__bottom .disclaimer { justify-self: end; text-align: right; }
}

.site-footer__bottom p { margin: 0; }

.disclaimer {
  opacity: 0.6;
  max-width: 34rem;
  line-height: 1.5;
}

/* ——— Mobile nav ——— */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(12, 11, 9, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-nav__item--has-sub {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__trigger {
    justify-content: space-between;
    width: 100%;
    padding: 0.15rem 0;
  }

  .site-nav__sub {
    display: none;
    margin: 0.35rem 0 0.15rem 0.75rem;
    padding: 0.35rem 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    background: transparent;
  }

  .site-nav__item--has-sub.is-open .site-nav__sub {
    display: grid;
    gap: 0.35rem;
  }

  .site-nav__sub a {
    display: block;
    padding: 0.4rem 0.75rem;
  }

  .site-nav__actions {
    flex-wrap: wrap;
  }

  .tx__divider {
    display: none;
  }

  .tx__board {
    flex-direction: column;
  }

  .chapter {
    min-height: 70vh;
  }

  .chapter__content,
  .chapter--right .chapter__content {
    text-align: left;
    margin-left: 0;
  }

  .chapter--right .chapter__text {
    margin-left: 0;
  }

  .chapter__num,
  .chapter--right .chapter__num {
    right: 0;
    left: auto;
    opacity: 0.5;
  }

  .hero__scroll {
    display: none;
  }

  .lore-beat--flip .lore-beat__body,
  .lore-beat--flip .lore-beat__meta {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .lore-beat--flip .lore-beat__meta {
    justify-content: flex-start;
  }

  .lore-beat--flip .lore-beat__aside {
    border-right: none;
    border-left: 2px solid var(--rust);
    padding: 1rem 0 0 1.15rem;
  }

  .intel-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== Modo manutenção ===== */
.maint-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--ash);
  color: var(--bone);
  font-family: var(--font-body);
}

.maint {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.25rem;
  overflow: hidden;
  isolation: isolate;
}

.maint__bg {
  position: absolute;
  inset: -4%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(12, 11, 9, 0.35), rgba(12, 11, 9, 0.92) 70%),
    linear-gradient(180deg, rgba(92, 30, 22, 0.35), rgba(12, 11, 9, 0.85)),
    var(--maint-bg) center / cover no-repeat;
  filter: grayscale(0.55) contrast(1.1);
  animation: maint-drift 24s ease-in-out infinite alternate;
}

@keyframes maint-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, 1%, 0); }
}

.maint__tape {
  position: absolute;
  left: -10%;
  width: 120%;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.45rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: #120f0b;
  background: repeating-linear-gradient(-45deg, #d9a521 0 22px, #1a1611 22px 44px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.maint__tape span {
  display: inline-block;
  padding: 0.1rem 1rem;
  background: rgba(217, 165, 33, 0.92);
  animation: maint-tape 38s linear infinite;
}

.maint__tape--top {
  top: 1.75rem;
  transform: rotate(-2.5deg);
}

.maint__tape--bottom {
  bottom: 2rem;
  transform: rotate(2deg);
}

.maint__tape--bottom span {
  animation-direction: reverse;
}

@keyframes maint-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

.maint__card {
  position: relative;
  width: min(620px, 100%);
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem) 2.25rem;
  text-align: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 18, 14, 0.88), rgba(12, 11, 9, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(196, 86, 46, 0.12);
  backdrop-filter: blur(6px);
}

.maint__card::before,
.maint__card::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--rust);
}

.maint__card::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.maint__card::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.maint__logo {
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 6px 18px rgba(196, 86, 46, 0.35));
}

.maint__stamp {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.7rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px dashed rgba(196, 86, 46, 0.6);
  transform: rotate(-1.5deg);
}

.maint__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(196, 86, 46, 0.25);
  animation: maint-flicker 6s steps(1) infinite;
}

@keyframes maint-flicker {
  0%, 91%, 95%, 100% { opacity: 1; }
  92% { opacity: 0.55; }
  94% { opacity: 0.8; }
}

.maint__message {
  margin: 0 auto 1.5rem;
  max-width: 46ch;
  color: var(--bone-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

.maint__signal {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 26px;
  margin-bottom: 1.25rem;
}

.maint__signal span {
  width: 6px;
  background: var(--rust);
  opacity: 0.25;
  animation: maint-signal 1.6s ease-in-out infinite;
}

.maint__signal span:nth-child(1) { height: 20%; animation-delay: 0s; }
.maint__signal span:nth-child(2) { height: 40%; animation-delay: 0.15s; }
.maint__signal span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.maint__signal span:nth-child(4) { height: 80%; animation-delay: 0.45s; }
.maint__signal span:nth-child(5) { height: 100%; animation-delay: 0.6s; }

@keyframes maint-signal {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.maint__eta {
  margin: 0 0 1.5rem;
  font-family: var(--font-stamp);
  color: var(--bone);
}

.maint__eta span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}

.maint__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.maint__preview {
  margin: 1.5rem 0 0;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  color: #e0c57a;
  border: 1px solid rgba(176, 137, 46, 0.45);
  background: rgba(176, 137, 46, 0.08);
}

.maint__staff {
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
  font-family: var(--font-stamp);
  font-size: 0.72rem;
  color: rgba(216, 203, 176, 0.35);
  text-decoration: none;
}

.maint__staff:hover,
.maint__staff:focus-visible {
  color: var(--bone-dim);
}

.maint-admin-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 70;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.65rem 1rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: #120f0b;
  background: repeating-linear-gradient(-45deg, #d9a521 0 16px, #c8961a 16px 32px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.maint-admin-bar strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maint-admin-bar a {
  color: #120f0b;
  font-weight: 600;
}

@media (max-width: 560px) {
  .maint__tape { font-size: 0.95rem; }
  .maint-admin-bar span { display: none; }
}

/* ==========================================================================
   Loja
   ========================================================================== */
.store {
  padding: 3.5rem 0 4.5rem;
  background: var(--ash);
  border-top: 1px solid var(--line);
}

.store--solo {
  padding-top: calc(var(--header-h) + 2.5rem);
}

.store__notice {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(217, 165, 33, 0.35);
  border-left: 3px solid #d9a521;
  background: rgba(217, 165, 33, 0.07);
  font-family: var(--font-stamp);
  color: var(--bone);
  line-height: 1.6;
}

.store__notice--admin {
  border-color: rgba(102, 192, 244, 0.35);
  border-left-color: #66c0f4;
  background: rgba(102, 192, 244, 0.06);
}

.store__notice--orders {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  border-color: var(--line);
  border-left-color: var(--rust);
  background: rgba(22, 19, 16, 0.7);
}

.store__closed {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.25rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
}

.store__closed h3 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.store__closed p:not(.stamped),
.store__empty {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
}

.store__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.store__tabs a {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  font-family: var(--font-stamp);
  font-size: 0.9rem;
  color: var(--bone-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.store__tabs a:hover,
.store__tabs a[aria-current="page"] {
  color: var(--bone);
  border-color: rgba(196, 86, 46, 0.55);
  background: rgba(196, 86, 46, 0.12);
}

.store__grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.store-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.8);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.store-card:hover {
  border-color: rgba(196, 86, 46, 0.5);
  transform: translateY(-3px);
}

.store-card--featured {
  border-color: rgba(196, 86, 46, 0.45);
  box-shadow: 0 0 0 1px rgba(196, 86, 46, 0.15), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.store-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ash-2);
  border-bottom: 1px solid var(--line);
}

.store-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.5s var(--ease);
}

.store-card:hover .store-card__media img {
  transform: scale(1.04);
}

.store-card__media.is-placeholder,
.store-item__media.is-placeholder {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(196, 86, 46, 0.18), transparent 65%),
    var(--ash-2);
}

.store-card__media.is-placeholder img,
.store-item__media.is-placeholder img {
  object-fit: contain;
  padding: 18%;
  opacity: 0.55;
  filter: grayscale(0.4);
}

.store-card__ribbon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-stamp);
  font-size: 0.78rem;
  color: #f5ebe0;
  background: linear-gradient(180deg, var(--rust), var(--rust-deep));
}

.store-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.15rem 1.2rem;
}

.store-card__cat {
  display: block;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--rust);
  margin-bottom: 0.35rem;
}

.store-card__body h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.store-card__body p {
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.55;
}

.store-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.store-card__price,
.store-item__price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--bone);
}

.store-card__price s,
.store-item__price s {
  display: block;
  font-size: 0.55em;
  color: var(--bone-dim);
}

.store-card__tag {
  font-family: var(--font-stamp);
  font-size: 0.82rem;
  padding: 0.3rem 0.65rem;
  border: 1px dashed var(--line);
  color: var(--bone-dim);
}

.store-orders {
  margin-top: 2.75rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.7);
}

.store-orders li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.store-orders li:last-child { border-bottom: 0; }

.store-orders__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.store-orders__item img {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ash-3, #1b1814);
}

.store-orders small,
.store-orders__status {
  font-family: var(--font-stamp);
  font-size: 0.82rem;
  color: var(--bone-dim);
}

.store-orders__status--paid { color: #e0c57a; }
.store-orders__status--delivered { color: #b7d39a; }
.store-orders__status--canceled,
.store-orders__status--refunded { color: #e8b4ab; }

.store__crumb {
  margin-bottom: 1.5rem;
}

.store-item {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .store-item { grid-template-columns: 1.1fr 1fr; gap: 2.75rem; }
}

.store-item__media {
  border: 1px solid var(--line);
  background: var(--ash-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.store-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-item__title {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  margin-bottom: 0.75rem;
}

.store-item__summary {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
}

.store-item__price {
  font-size: 2.6rem;
  margin: 0.5rem 0 1.25rem;
}

.store-item__perks {
  margin: 0 0 1.5rem;
}

.store-item__perks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  border-bottom: 1px dashed var(--line);
}

.store-item__perks li::before {
  content: "✚";
  position: absolute;
  left: 0;
  color: var(--rust);
  font-size: 0.9rem;
}

.store-item__buy .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-item__hint {
  margin: 0.75rem 0 0;
  font-family: var(--font-stamp);
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.6;
}

.store-item__desc {
  max-width: 46rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  line-height: 1.8;
}

@media (max-width: 560px) {
  .store-orders li { grid-template-columns: 1fr auto; }
}

.store-orders__status--shipped { color: #9cc3d9; }

.store-orders--account {
  margin-top: 0;
}

.store-orders--account ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-orders__pay {
  grid-column: 1 / -1;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(224, 168, 90, 0.5);
  background: rgba(224, 168, 90, 0.06);
  font-size: 0.92rem;
  color: var(--bone-dim);
}

.store-orders__pay p { margin: 0.55rem 0 0; }

.store-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 0;
}

.store-pay dt {
  font-family: var(--font-stamp);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.store-pay dd {
  margin: 0.1rem 0 0;
  color: var(--bone);
  font-weight: 600;
  word-break: break-all;
}

.store-orders__pay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.store-orders__pay-actions form { margin: 0; }

.store-orders__extra {
  grid-column: 1 / -1;
  font-family: var(--font-stamp);
  font-size: 0.82rem;
  color: var(--bone-dim);
}

.store-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.store-sizes__label {
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
  margin-right: 0.35rem;
}

.store-sizes__chip {
  min-width: 2.6rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
}

.store-sizes__chip.is-out {
  opacity: 0.4;
  text-decoration: line-through;
}

.store-checkout {
  display: grid;
  gap: 1.25rem;
}

.store-checkout fieldset {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.55);
}

.store-checkout legend {
  padding: 0 0.4rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
}

.store-checkout__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-size {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 3.4rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.65);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.store-size input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-size span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.store-size small {
  font-family: var(--font-stamp);
  font-size: 0.68rem;
  color: var(--bone-dim);
}

.store-size:hover { border-color: rgba(196, 86, 46, 0.6); }

.store-size:has(input:checked) {
  border-color: var(--rust);
  background: rgba(196, 86, 46, 0.18);
}

.store-size:has(input:focus-visible) {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.store-size.is-out {
  opacity: 0.4;
  cursor: not-allowed;
}

.store-size.is-out span { text-decoration: line-through; }

.store-checkout__ship .account-groups__fields { margin-bottom: 0.25rem; }
.store-checkout [hidden] { display: none; }

.store-checkout__legal {
  display: grid;
  gap: 0.6rem;
}

.store-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bone-dim);
  cursor: pointer;
}

.store-check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--rust);
}

.store-check a { color: var(--rust); }

.store-checkout__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  margin: 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
}

.store-checkout__total strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--bone);
  letter-spacing: 0.02em;
}

.store-checkout__total small { font-size: 0.8rem; }

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.pay-methods span {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
}

.donate-form .pay-methods { justify-content: center; margin: 0.6rem 0 0.8rem; }

.store-checkout .pay-methods { margin-top: -0.4rem; }

.store-orders__status--pending { color: #e0a85a; }

.store-item__vat {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
}

.store-coupon {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.store-coupon__row {
  display: flex;
  gap: 0.5rem;
}

.store-coupon input {
  flex: 1;
  min-width: 0;
  max-width: 16rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.65);
  color: var(--bone);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-coupon__applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.store-coupon__badge {
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(196, 86, 46, 0.55);
  background: rgba(196, 86, 46, 0.1);
  color: var(--bone);
  letter-spacing: 0.08em;
}

.store-coupon__msg { margin: 0; min-height: 1.1em; }
.store-coupon__msg.is-ok { color: #b7d39a; }
.store-coupon__msg.is-error { color: #e8b4ab; }

/* ---------- Páginas legais ---------- */

.legal {
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  background: var(--ash);
}

.legal__inner {
  max-width: 820px;
}

.legal__title {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legal__meta {
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.legal h2 {
  margin: 2.4rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  color: var(--bone);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal p,
.legal li {
  color: var(--bone-dim);
}

.legal strong { color: var(--bone); }

.legal ul {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  list-style: square;
}

.legal li::marker { color: var(--rust); }

.legal a { color: var(--rust); }

.legal code {
  font-size: 0.9em;
  color: var(--bone);
}

.legal__todo {
  padding: 0 0.3rem;
  background: rgba(196, 86, 46, 0.2);
  color: var(--bone);
  font-family: var(--font-stamp);
  font-size: 0.85em;
}

.legal__admin {
  padding: 0.8rem 1rem;
  border: 1px solid var(--rust);
  background: rgba(196, 86, 46, 0.12);
}

.legal__table-wrap { overflow-x: auto; }

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal__table th,
.legal__table td {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--bone-dim);
}

.legal__table th {
  font-family: var(--font-stamp);
  font-weight: 400;
  color: var(--rust);
  background: rgba(22, 19, 16, 0.55);
}

.legal__form {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line);
  background: rgba(22, 19, 16, 0.55);
}

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

/* Faixa de pré-visualização / rascunho (só admins) */
.preview-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  padding: 0.7rem 1.25rem;
  background: rgba(28, 42, 51, 0.96);
  border-top: 1px solid rgba(102, 192, 244, 0.45);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  color: var(--bone);
  font-family: var(--font-stamp);
  font-size: 0.92rem;
  text-align: center;
}

.preview-banner strong { color: #66c0f4; letter-spacing: 0.04em; text-transform: uppercase; }

/* ===== Comunidade: sino, badges, formulários ===== */
/* Seletor de idioma (cabeçalho e ecrã de manutenção) */
.lang-pick {
  position: relative;
  flex: none;
}

.lang-pick__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.15rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.65);
  color: var(--bone-dim);
  font: 600 0.78rem/1 var(--font-body, sans-serif);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-pick__btn:hover,
.lang-pick__btn:focus-visible,
.lang-pick.is-open .lang-pick__btn {
  color: var(--bone);
  border-color: var(--rust);
  outline: none;
}

.lang-pick__flag {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.lang-pick__caret {
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.lang-pick.is-open .lang-pick__caret {
  margin-top: 0.15rem;
  transform: rotate(-135deg);
}

.lang-pick__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 10rem;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.97);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.55);
}

.lang-pick.is-open .lang-pick__menu {
  display: block;
}

.lang-pick__menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  background: none;
  color: var(--bone-dim);
  font: 0.92rem/1.2 var(--font-body, sans-serif);
  text-align: left;
  cursor: pointer;
}

.lang-pick__menu button:hover,
.lang-pick__menu button:focus-visible {
  background: rgba(196, 86, 46, 0.14);
  color: var(--bone);
  outline: none;
}

.lang-pick__menu button[aria-current="true"] {
  color: var(--bone);
  box-shadow: inset 2px 0 0 var(--rust);
}

/* Entre 861 e 1280 px a barra do menu fica cheia: o botão mostra só a bandeira. */
@media (min-width: 861px) and (max-width: 1280px) {
  .lang-pick__code,
  .lang-pick__caret { display: none; }
}

@media (max-width: 860px) {
  .lang-pick__menu {
    right: auto;
    left: 0;
  }
}

.maint__lang {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.maint__lang .lang-pick__menu {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* Tradução automática do Google: esconde a barra e os balões que ela injeta */
body { top: 0 !important; }
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }

.nav-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.65);
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.nav-bell:hover,
.nav-bell.has-unread {
  color: var(--bone);
  border-color: var(--rust);
}

.nav-bell__count {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  font: 600 0.68rem/1.1rem var(--font-body, sans-serif);
  text-align: center;
}

.ks-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  vertical-align: middle;
}

.ks-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.05rem 0.4rem;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.ks-badge__icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.ks-badge--newcomer { color: #66c0f4; }
.ks-badge--donor { color: #e07a6a; }
.ks-badge--member {
  color: #e2bf6a;
  background: linear-gradient(135deg, rgba(226, 191, 106, 0.16), rgba(226, 191, 106, 0.04));
}
/* Cargos: a cor vem do painel (Configurações → Cargos); "destaque" junta fundo e brilho */
.ks-badge--glow {
  background: color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: 0 0 0.6rem color-mix(in srgb, currentColor 18%, transparent);
}

/* Perfil público: insígnias grandes, com o símbolo destacado num círculo */
.ks-badges--lg {
  gap: 0.55rem;
}

.ks-badges--lg .ks-badge {
  gap: 0.55rem;
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  font-size: 0.92rem;
  background-color: rgba(10, 9, 8, 0.55);
}

.ks-badges--lg .ks-badge__icon {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0.3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.ks-form {
  display: grid;
  gap: 0.9rem;
}

.ks-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  color: var(--bone-dim);
  letter-spacing: 0.03em;
}

.ks-form input[type="text"],
.ks-form input[type="file"],
.ks-form textarea,
.ks-form select {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.65);
  color: var(--bone);
  font: inherit;
}

.ks-form textarea { resize: vertical; }

.ks-form input:focus,
.ks-form textarea:focus {
  outline: none;
  border-color: var(--rust);
}

.ks-form__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--bone-dim);
  line-height: 1.55;
}

.ks-form .btn { justify-self: start; }

.page-flash { margin-bottom: 1.5rem; }

.account-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.account-toggle input {
  margin-top: 0.2rem;
  accent-color: var(--rust);
}

/* Notificações na conta */
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.notif-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.notif-list__item.is-unread {
  border-left-color: var(--rust);
  background: rgba(196, 86, 46, 0.06);
}

.notif-list__kind {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
}

.notif-list__title {
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
}

a.notif-list__title:hover { color: var(--rust); }

.notif-list__body p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--bone-dim);
}

.notif-list__item time {
  font-size: 0.78rem;
  color: var(--bone-dim);
  white-space: nowrap;
}

/* ===== Eventos ===== */
.events,
.gallery,
.timeline,
.appeal {
  padding: 3.5rem 0 4.5rem;
  background: var(--ash);
  border-top: 1px solid var(--line);
}

.events__heading { margin: 0 0 1.25rem; }
.events__heading--past { margin-top: 3rem; }

.events__empty {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
}

.events__list {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  display: grid;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
  scroll-margin-top: 6rem;
}

.event-card.is-live { border-color: var(--rust); }

@media (min-width: 820px) {
  .event-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

.event-card__media {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
}

.event-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}

.event-card__when {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(12, 11, 9, 0.85);
  border-left: 3px solid var(--rust);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--bone);
}

.event-card.is-live .event-card__when {
  background: var(--rust);
  color: #fff;
}

.event-card__body {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.35rem 1.25rem 1.5rem;
}

.event-card__body .stamped { margin: 0; }

.event-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  color: var(--bone);
}

.event-card__text {
  margin: 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.7;
}

.event-card__people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.event-card__count {
  font-size: 0.9rem;
  color: var(--bone-dim);
}

.event-card__count strong { color: var(--bone); font-size: 1.05rem; }

.event-card__avatars {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-card__avatars li {
  width: 2rem;
  height: 2rem;
  margin-left: -0.4rem;
  border: 2px solid var(--ash-2);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ash-3);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--bone);
}

.event-card__avatars li:first-child { margin-left: 0; }
.event-card__avatars img { width: 100%; height: 100%; object-fit: cover; }
.event-card__more { font-weight: 600; }

.event-card__actions,
.event-card__actions form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.event-card__joined { color: #8fbf6a; font-family: var(--font-stamp); }
.event-card__full { color: #c4a35a; font-family: var(--font-stamp); }

.events__past {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.events__past li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 0.9rem;
}

.events__past strong { color: var(--bone); }

@media (min-width: 640px) {
  .events__past li { grid-template-columns: 12rem 1fr auto; align-items: baseline; }
}

/* ===== Galeria ===== */
.gallery__grid {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.gallery__item {
  border: 1px solid var(--line);
  background: var(--ash-2);
}

.gallery__item a {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.4s;
  filter: saturate(0.85);
}

.gallery__item a:hover img,
.gallery__item a:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1);
}

.gallery__meta {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.gallery__meta strong { color: var(--bone); }
.gallery__meta p { margin: 0.2rem 0 0; line-height: 1.5; }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}

.pager a {
  min-width: 2.25rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  color: var(--bone-dim);
  text-align: center;
  text-decoration: none;
}

.pager a:hover,
.pager a[aria-current="page"] {
  border-color: var(--rust);
  color: var(--bone);
}

.gallery__submit {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  scroll-margin-top: 6rem;
}

@media (min-width: 900px) {
  .gallery__submit { grid-template-columns: 1fr 1fr; }
}

.gallery__mine {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.gallery__mine li {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.gallery__mine img {
  width: 6rem;
  height: 3.4rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.gallery__mine div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.85rem;
}

.gallery__mine small { color: var(--bone-dim); }

.gallery__status {
  justify-self: start;
  padding: 0.05rem 0.45rem;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.gallery__status--pending { color: #c4a35a; }
.gallery__status--approved { color: #8fbf6a; }
.gallery__status--rejected { color: var(--rust); }

.lightbox {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 5, 4, 0.94);
  color: var(--bone);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop { background: rgba(6, 5, 4, 0.8); }

.lightbox__fig {
  margin: 0;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 3.5rem 3.5rem 1.5rem;
}

.lightbox__fig img {
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}

.lightbox__fig figcaption {
  font-family: var(--font-stamp);
  font-size: 0.9rem;
  color: var(--bone-dim);
  text-align: center;
}

.lightbox__btn {
  position: fixed;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.85);
  color: var(--bone);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__btn:hover { border-color: var(--rust); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
  .lightbox__fig { padding: 3.5rem 0.5rem 4.5rem; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}

/* ===== Cronologia ===== */
.timeline__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 3.25rem;
  max-width: 52rem;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--rust), var(--rust-deep) 60%, transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.timeline__dot {
  position: absolute;
  left: -3.25rem;
  top: 0.75rem;
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--rust);
  background: var(--ash);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--bone);
}

.timeline__item:target .timeline__card { border-color: var(--rust); }

.timeline__card {
  display: grid;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
}

.timeline__card .stamped { margin: 0; }

.timeline__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  color: var(--bone);
}

.timeline__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.8);
}

.timeline__text {
  margin: 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
  line-height: 1.75;
}

.timeline__entries {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.timeline__entries-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
}

.timeline__entries ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.timeline__entries a { color: var(--bone); }
.timeline__entries a:hover { color: var(--rust); }
.timeline__entries span { color: var(--bone-dim); font-size: 0.85rem; }

.journal-read__marco {
  margin: 0 0 1.5rem;
  padding: 0.6rem 0.85rem;
  border-left: 3px solid var(--rust);
  background: rgba(34, 30, 24, 0.7);
  font-family: var(--font-stamp);
  font-size: 0.88rem;
  color: var(--bone-dim);
}

.journal-read__marco a { color: var(--bone); }
.journal-read__marco a:hover { color: var(--rust); }

/* ===== Comentários ===== */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.comments__title { margin: 0 0 1.25rem; }

.comments__empty {
  font-family: var(--font-stamp);
  color: var(--bone-dim);
}

.comments__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comment {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  scroll-margin-top: 6rem;
}

.comment.is-pending { opacity: 0.75; }

.comment__avatar {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.comment__avatar--ph {
  display: grid;
  place-items: center;
  background: var(--ash-3);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.comment__body {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.7);
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.comment__head strong { color: var(--bone); }
.comment__head time { color: var(--bone-dim); font-size: 0.78rem; }
.comment__pending { color: #c4a35a; font-size: 0.78rem; }

.comment__text {
  margin: 0;
  color: var(--bone);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.comments__form { max-width: 40rem; }

/* ===== Recurso de suspensão ===== */
.appeal__inner { max-width: 44rem; }

.appeal__who {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--bone);
}

.appeal__facts {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.appeal__facts div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
}

.appeal__facts dt {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}

.appeal__facts dd {
  margin: 0;
  color: var(--bone);
  font-family: var(--font-stamp);
}

.appeal__history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.appeal__history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.appeal__reply {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--bone);
  line-height: 1.6;
}

.appeal__foot {
  font-family: var(--font-stamp);
  font-size: 0.88rem;
  color: var(--bone-dim);
}

/* ===== Membros ===== */
.members {
  padding: 2.75rem 0 4.5rem;
}

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

.members__count {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.members__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.members__filter input,
.members__filter select {
  min-height: 2.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.7);
  color: var(--bone);
  font-family: var(--font-stamp);
  font-size: 0.92rem;
}

.members__filter input {
  flex: 1 1 12rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .members__filter {
    flex-wrap: nowrap;
  }

  .members__filter input {
    width: 15rem;
  }
}

.members__filter input:focus,
.members__filter select:focus {
  outline: 1px solid var(--rust);
  outline-offset: 0;
}

.members__grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0.75rem 0.25rem;
  display: grid;
  gap: 2.25rem 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

@media (max-width: 520px) {
  .members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.9rem 1.1rem;
  }
}

.member-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg));
  transition: transform 0.35s var(--ease);
}

.member-card:hover,
.member-card:focus-within {
  z-index: 2;
  transform: translate(0, -4px) rotate(0deg) scale(1.05);
}

.member-card .ks-badges {
  justify-content: center;
}

.ks-badges--icon .ks-badge {
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(10, 9, 8, 0.6);
}

.ks-badges--icon .ks-badge__icon {
  width: 1rem;
  height: 1rem;
}

/* Foto rasgada (mesmo papel da foto dos relatos do diário) */
.member-photo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 11rem;
  color: inherit;
  text-decoration: none;
}

.member-photo:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 6px;
}

.member-photo__shadow {
  position: absolute;
  inset: 10% 6% 2% 8%;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(12px);
  transform: rotate(2deg) translateY(6px);
  pointer-events: none;
}

.member-photo__mat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.55rem 0.7rem;
  background: linear-gradient(145deg, #e8dcc4 0%, #d2c2a4 42%, #c4b08a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(90, 70, 40, 0.22),
    inset 0 0 22px rgba(80, 55, 30, 0.14);
}

.member-photo__print {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1612;
  box-shadow: inset 0 0 0 1px rgba(40, 30, 18, 0.35);
}

.member-photo__print::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 230, 180, 0.14), transparent 45%),
    linear-gradient(180deg, transparent 60%, rgba(40, 25, 12, 0.3)),
    repeating-linear-gradient(-12deg, transparent, transparent 2px, rgba(80, 55, 30, 0.04) 2px, rgba(80, 55, 30, 0.04) 3px);
  mix-blend-mode: multiply;
}

.member-photo__print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08) sepia(0.2);
  transition: filter 0.35s ease;
}

.member-photo:hover .member-photo__print img,
.member-photo:focus-visible .member-photo__print img {
  filter: saturate(0.95) contrast(1.05) sepia(0.05);
}

.member-photo__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 3rem;
  color: #c4b08a;
}

.member-photo__caption {
  display: block;
  max-width: 100%;
  margin-top: 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-stamp);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #0a0908;
}

.member-photo__date {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-stamp);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #4a3c28;
}

.member-photo__tape {
  position: absolute;
  z-index: 2;
  width: 3rem;
  height: 1rem;
  background: linear-gradient(180deg, rgba(210, 190, 140, 0.6), rgba(180, 150, 100, 0.45));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.member-photo__tape--tl { top: -0.35rem; left: 0.4rem; transform: rotate(calc(-18deg + var(--tape-rot, 0deg) / 3)); }
.member-photo__tape--tr { top: -0.35rem; right: 0.4rem; transform: rotate(calc(18deg + var(--tape-rot, 0deg) / 3)); }
.member-photo__tape--tc { top: -0.45rem; left: calc(50% - 1.5rem); transform: rotate(var(--tape-rot, 0deg)); }
.member-photo__tape--bl { bottom: -0.3rem; left: 0.5rem; width: 2.5rem; transform: rotate(14deg); }
.member-photo__tape--br { bottom: -0.3rem; right: 0.5rem; width: 2.5rem; transform: rotate(-12deg); }

.member-photo--v1 .member-photo__mat { filter: url(#member-torn-1); }
.member-photo--v2 .member-photo__mat { filter: url(#member-torn-2); }
.member-photo--v3 .member-photo__mat { filter: url(#member-torn-3); }
.member-photo--v4 .member-photo__mat { filter: url(#member-torn-4); }
.member-photo--v1 .member-photo__print { filter: url(#member-torn-soft-1); }
.member-photo--v2 .member-photo__print { filter: url(#member-torn-soft-2); }
.member-photo--v3 .member-photo__print { filter: url(#member-torn-soft-3); }
.member-photo--v4 .member-photo__print { filter: url(#member-torn-soft-4); }

@media (prefers-reduced-motion: reduce) {
  .member-card,
  .member-card:hover,
  .member-card:focus-within {
    transition: none;
  }
}

.members__note {
  font-family: var(--font-stamp);
  font-size: 0.9rem;
  color: var(--bone-dim);
}

.member-page__badges {
  margin: 0.6rem 0 0.9rem;
}

.member-page__avatar {
  width: 10.5rem;
  flex-shrink: 0;
  transform: rotate(var(--rot, 0deg));
}

.member-page__avatar .member-photo__date {
  margin-top: 0.5rem;
  white-space: nowrap;
  text-align: center;
  font-size: 0.74rem;
  color: #0a0908;
}

.member-page .char-page__hero {
  padding-top: calc(var(--header-h) + 2rem);
}

.member-page__owner {
  margin-bottom: 1.25rem;
}

.member-page__main {
  display: grid;
  gap: 1.25rem;
}

.member-page .char-page__side {
  display: grid;
  gap: 1.25rem;
}

.member-page__chars,
.member-page__groups {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.member-page__chars {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.member-page__chars a,
.member-page__groups a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.4);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.member-page__chars a:hover,
.member-page__groups a:hover {
  border-color: rgba(168, 74, 50, 0.65);
}

.member-page__chars img,
.member-page__groups img {
  flex-shrink: 0;
  width: 3.4rem;
  height: 3.4rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.member-page__groups img {
  width: 2.75rem;
  height: 2.75rem;
}

.member-page__chars strong,
.member-page__groups strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--bone);
}

.member-page__chars small,
.member-page__groups small {
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  color: var(--bone-dim);
}

.member-page__chars em {
  font-style: normal;
  color: var(--rust);
}

.member-page__shots {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
}

.member-page__shots a {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
}

.member-page__shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.member-page__shots a:hover img {
  transform: scale(1.05);
}

/* Perfil personalizado (Membros Kryptshade): banner e cor */
.member-page--banner .char-page__hero {
  min-height: clamp(18rem, 46vh, 28rem);
}

.member-page--banner .char-page__media img {
  filter: saturate(0.9) brightness(0.62);
}

.member-page--banner .char-page__shade {
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.15), rgba(12, 11, 9, 0.55) 45%, rgba(12, 11, 9, 0.95) 92%);
}

.member-page--color .char-page__hero {
  border-bottom-color: rgba(var(--accent-rgb), 0.55);
}

.member-page--color .char-page__shade {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(12, 11, 9, 0.94) 78%);
}

.member-page--banner.member-page--color .char-page__shade {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(12, 11, 9, 0.55) 45%, rgba(12, 11, 9, 0.95) 92%);
}

.member-page--color .char-page__body {
  background: radial-gradient(ellipse 80% 420px at 50% 0, rgba(var(--accent-rgb), 0.1), transparent 70%);
}

.member-page--color .stamped,
.member-page--color .stamped a,
.member-page--color .text-link,
.member-page--color .member-page__chars em {
  color: var(--accent);
}

.member-page--color .char-panel {
  border-color: rgba(var(--accent-rgb), 0.3);
  background:
    linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), transparent 55%),
    linear-gradient(160deg, rgba(34, 30, 24, 0.92), rgba(12, 11, 9, 0.95));
  box-shadow: inset 0 2px 0 rgba(var(--accent-rgb), 0.6);
}

.member-page--color .char-page__diary-list a:hover,
.member-page--color .member-page__chars a:hover,
.member-page--color .member-page__groups a:hover,
.member-page--color .member-page__shots a:hover {
  border-color: rgba(var(--accent-rgb), 0.75);
}

.member-page--color .char-side__dl div {
  border-bottom-color: rgba(var(--accent-rgb), 0.2);
}

.profile-custom__tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.profile-custom__preview {
  position: relative;
  display: block;
  height: 7.5rem;
  margin: 0.5rem 0 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--accent, var(--rust));
  background: #16130f;
}

.profile-custom__banner {
  position: absolute;
  inset: 0;
  background: url("../images/comunidade.jpg") center / cover;
  filter: saturate(0.9) brightness(0.62);
}

.profile-custom__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 11, 9, 0.9));
}

.profile-custom__name,
.profile-custom__label {
  position: absolute;
  left: 1rem;
  z-index: 1;
}

.profile-custom__name {
  bottom: 1.55rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.profile-custom__label {
  bottom: 0.55rem;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  color: var(--accent, var(--rust));
}

.profile-custom--locked .profile-custom__preview {
  filter: grayscale(0.7);
  opacity: 0.6;
}

.profile-custom__form {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}

.profile-custom__form .account-side__note {
  margin: 0;
}

.profile-custom__field {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
}

.profile-custom__field textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.65);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
}

.profile-custom__field textarea:focus {
  outline: none;
  border-color: var(--accent, var(--rust));
}

.rich-editor {
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.65);
}

.rich-editor:focus-within {
  border-color: var(--accent, var(--rust));
}

.rich-editor--over {
  border-color: #d05048;
}

.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(34, 30, 24, 0.7);
}

.rich-editor__toolbar button {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.rich-editor__toolbar button:hover,
.rich-editor__toolbar button:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.rich-editor__toolbar button[aria-pressed="true"] {
  border-color: var(--accent, var(--rust));
  color: var(--accent, var(--rust));
}

.rich-editor__sep {
  width: 1px;
  height: 1.3rem;
  margin: 0 0.2rem;
  background: var(--line);
}

.rich-editor__area {
  position: relative;
  min-height: 8.5rem;
  max-height: 24rem;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  outline: none;
}

.rich-editor__area.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  color: var(--bone-dim);
  opacity: 0.7;
  pointer-events: none;
}

[data-rich-count].is-over {
  color: #d05048;
  font-weight: 700;
}

.rich-editor__area > :first-child,
.member-page__about-text > :first-child {
  margin-top: 0;
}

.rich-editor__area p,
.rich-editor__area ul,
.rich-editor__area ol,
.rich-editor__area blockquote,
.member-page__about-text p,
.member-page__about-text ul,
.member-page__about-text ol,
.member-page__about-text blockquote {
  margin: 0.6rem 0 0;
}

.rich-editor__area ul,
.rich-editor__area ol,
.member-page__about-text ul,
.member-page__about-text ol {
  padding-left: 1.4rem;
  list-style: disc;
}

.rich-editor__area ol,
.member-page__about-text ol {
  list-style: decimal;
}

.rich-editor__area li,
.member-page__about-text li {
  display: list-item;
}

.rich-editor__area blockquote,
.member-page__about-text blockquote {
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 3px solid var(--accent, var(--rust));
  color: var(--bone-dim);
  font-style: normal;
}

.member-page__about-text {
  margin-top: 0.75rem;
  color: var(--bone);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.profile-custom__field input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: var(--bone);
}

.profile-custom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-custom__colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-custom__colors legend {
  margin-bottom: 0.45rem;
  padding: 0;
  font-family: var(--font-stamp);
  color: var(--bone-dim);
}

.profile-swatch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.profile-swatch input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-swatch__dot,
.profile-swatch input[type="color"] {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.profile-swatch__dot {
  border: 2px solid rgba(12, 11, 9, 0.9);
}

.profile-swatch input[type="color"] {
  padding: 0;
  border: 0;
  background: conic-gradient(#d05048, #d39a2c, #9cc43a, #5fa3bd, #9a72cf, #d0679a, #d05048);
  cursor: pointer;
}

.profile-swatch input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 4px;
}

.profile-swatch input[type="color"]::-webkit-color-swatch {
  border: 2px solid rgba(12, 11, 9, 0.9);
  border-radius: 50%;
}

.profile-swatch input[type="color"]::-moz-color-swatch {
  border: 2px solid rgba(12, 11, 9, 0.9);
  border-radius: 50%;
}

.profile-swatch input[type="radio"]:checked + .profile-swatch__dot,
.profile-swatch input[type="radio"]:checked + input[type="color"] {
  box-shadow: 0 0 0 2px var(--bone);
  transform: scale(1.08);
}

.profile-swatch input[type="radio"]:focus-visible + .profile-swatch__dot {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.group-members__name {
  color: inherit;
  text-decoration: none;
}

.group-members__name:hover strong {
  color: var(--rust);
}
