.site-hero {
  position: relative;
  min-height: clamp(520px, 70vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.site-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201, 153, 58, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13, 11, 8, 0) 30%, rgba(13, 11, 8, 0.92) 80%, var(--bg) 100%),
    linear-gradient(135deg, #1c1710 0%, #0d0b08 100%);
  border: 1px solid var(--gold-border);
  border-radius: inherit;
}

.site-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 3px at 25% 18%, rgba(201, 153, 58, 0.50) 0%, transparent 100%),
    radial-gradient(circle 2px at 75% 12%, rgba(201, 153, 58, 0.40) 0%, transparent 100%),
    radial-gradient(circle 2px at 55% 28%, rgba(201, 153, 58, 0.35) 0%, transparent 100%);
}

.site-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
}

.site-hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 14px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(201, 153, 58, 0.08);
  width: fit-content;
}

.site-hero h1 {
  font-family: var(--font-display-hero);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 40%, var(--gold) 70%, #8a6420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.site-hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 56ch;
  line-height: 1.6;
}

.site-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.site-hero-logo {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 1;
}

.site-hero-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(201, 153, 58, 0.50));
  opacity: 0.9;
}

.features {
  margin-top: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.feature-card {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 153, 58, 0.04);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t), background var(--t), transform 160ms ease;
}

.feature-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201, 153, 58, 0.07);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 7px;
  letter-spacing: 0.3px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-card-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 2px 8px;
  margin-bottom: 8px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(201, 153, 58, 0.08);
}

.guest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201, 153, 58, 0.07), rgba(201, 153, 58, 0.03));
}

.guest-banner-text {
  flex: 1;
}

.guest-banner-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.guest-banner-text span {
  color: var(--muted);
  font-size: 14px;
}

.guest-banner .btn {
  flex-shrink: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--gold-light);
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--gold-light);
}

.dashboard h1 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--gold-light);
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dashboard-card {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 153, 58, 0.04);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t), background var(--t);
}

.dashboard-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201, 153, 58, 0.07);
}

.dashboard-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-light);
}

.dashboard-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.dashboard-card p:last-child {
  margin-bottom: 0;
}

.profile-page {
  max-width: 700px;
  margin: 0 auto;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: rgba(201, 153, 58, 0.04);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.profile-avatar-lg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 36px;
  font-family: var(--font-display);
  color: #0d0b08;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--gold-border-hi);
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-info h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
}

.profile-hero-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 153, 58, 0.03);
}

.profile-card-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  opacity: 0.7;
}

.profile-card-value {
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }

  .dashboard-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
  .site-hero-logo {
      display: none;
    }

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

@media (max-width: 560px) {
  .feature-grid {
      grid-template-columns: 1fr;
    }

  .site-hero-actions {
      flex-direction: column;
      align-items: flex-start;
    }

  .guest-banner {
      flex-direction: column;
      align-items: flex-start;
    }
}

[data-theme="light"] .feature-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .feature-card:hover {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(138, 95, 16, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .char-card {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .char-card:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(138, 95, 16, 0.35);
}

[data-theme="light"] .island-card {
  border-color: rgba(138, 95, 16, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .island-card:hover {
  border-color: rgba(138, 95, 16, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .dashboard-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .site-hero-bg {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(184,136,30,0.10) 0%, transparent 55%),
    linear-gradient(180deg, rgba(248,245,239,0) 30%, rgba(248,245,239,0.92) 80%, var(--bg) 100%),
    linear-gradient(135deg, #ece6da 0%, #f8f5ef 100%);
  border-color: rgba(138, 95, 16, 0.20);
}

[data-theme="light"] .hero-logged-bg {
  background:
    radial-gradient(ellipse 62% 78% at 50% 14%, rgba(184,136,30,0.18) 0%, transparent 62%),
    radial-gradient(circle at 50% 126%, rgba(138,100,32,0.09) 0%, transparent 55%),
    linear-gradient(180deg, #f1eadc 0%, var(--bg) 82%);
}

[data-theme="light"] .hero-logged {
  border-color: rgba(138, 95, 16, 0.20);
}

[data-theme="light"] .hero-logged-text h1,
[data-theme="light"] .site-hero h1,
[data-theme="light"] .cta-box h2 {
  background: linear-gradient(160deg, #6b4a0d 0%, #8a5f10 50%, #b8881e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .cta-box {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(184,136,30,0.07) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  border-color: rgba(138, 95, 16, 0.20);
}

[data-theme="light"] .profile-hero {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .profile-card {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .clio-orb {
  border-color: rgba(138, 95, 16, 0.25);
  background: radial-gradient(circle, rgba(184,136,30,0.07) 0%, transparent 70%);
}

[data-theme="light"] .island-card-bg::after {
  background: linear-gradient(180deg, transparent 10%, rgba(248, 245, 239, 0.62) 100%);
}

/* tema claro: tons de pergaminho suaves (baixa saturação) em vez dos
   pastéis "candy" que destoavam do dourado/creme — cada ato mantém
   a sua tinta, mas harmonizada com a paleta elegante do site */
[data-theme="light"] .island-thalassos .island-bg-ocean {
  background:
    linear-gradient(180deg, #b9cdda 0%, #c4d4de 45%, #cedce4 72%, #d8e3ea 100%),
    radial-gradient(ellipse at 50% 0%, rgba(120,160,195,0.20) 0%, transparent 60%);
}

[data-theme="light"] .island-helion .island-bg-fire {
  background:
    linear-gradient(180deg, #ddb1a1 0%, #e2bcab 45%, #e7c8b6 72%, #edd3c2 100%),
    radial-gradient(ellipse at 50% 70%, rgba(200,120,70,0.18) 0%, transparent 55%);
}

[data-theme="light"] .island-zephyria .island-bg-wind {
  background:
    linear-gradient(180deg, #bdd2cd 0%, #c8dad4 45%, #d2e0da 72%, #dce6e0 100%),
    radial-gradient(ellipse at 30% 40%, rgba(120,170,165,0.18) 0%, transparent 50%);
}

[data-theme="light"] .island-tartaro .island-bg-abyss {
  background:
    linear-gradient(180deg, #c2b7d0 0%, #ccc2d8 45%, #d6cde0 72%, #e0d9e8 100%),
    radial-gradient(ellipse at 50% 80%, rgba(140,110,170,0.16) 0%, transparent 50%);
}

[data-theme="light"] .island-olimpo .island-bg-olympus {
  background:
    linear-gradient(135deg, #d9c587 0%, #e0cf99 35%, #e7d8a8 65%, #ecdfb4 100%),
    radial-gradient(ellipse at 50% 0%, rgba(201,153,58,0.22) 0%, transparent 55%);
}

[data-theme="light"] .island-card h3 {
  color: #18160f;
  text-shadow: 0 1px 4px rgba(248, 245, 239, 0.6);
}

[data-theme="light"] .island-card p {
  color: rgba(24, 22, 15, 0.65);
  text-shadow: 0 1px 3px rgba(248, 245, 239, 0.5);
}

[data-theme="light"] .island-act-badge {
  color: #130a1f;
  text-shadow: none;
}

[data-theme="light"] .level-badge {
  background: rgba(138, 95, 16, 0.12);
  border-color: rgba(138, 95, 16, 0.28);
  color: #3c3c0e;
}

[data-theme="light"] .boss-badge {
  background: rgba(160, 70, 55, 0.10);
  border-color: rgba(160, 70, 55, 0.28);
  color: rgba(101, 35, 23, 0.95);
}

[data-theme="light"] .island-cta {
  color: #f2f2f2;
}

[data-theme="light"] .island-cta-soon {
  background: rgba(24, 22, 15, 0.06);
  border-color: rgba(24, 22, 15, 0.14);
  color: rgba(24, 22, 15, 0.40);
}

[data-theme="light"] .island-cta-locked {
  background: rgba(138, 95, 16, 0.10);
  border-color: rgba(138, 95, 16, 0.28);
  color: var(--gold);
}

[data-theme="light"] .island-sigil {
  color: #302c09;
}

[data-theme="light"] .sx-h2-final{
  background:linear-gradient(135deg,#b9781e,#8a5f10);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-logged {
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-border);   /* banner aberto, não um card */
}

.hero-logged-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 78% at 50% 14%, rgba(201,153,58,0.22) 0%, transparent 62%),
    radial-gradient(circle at 50% 126%, rgba(138,100,32,0.14) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 82%);
}

/* composição centrada e cinematográfica */
.hero-logged-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(40px, 6vw, 76px) 24px;
}

/* ornamento de runas — mesmo padrão dos heros de Sobre/Comunidade */
.hero-runes {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 18px;
  text-indent: 18px;
  color: rgba(201,153,58,0.45);
  margin-bottom: 2px;
}

.overline-badge { margin: 0; }

.hero-logged-name {
  font-family: var(--font-display-hero);
  font-size: clamp(40px, 6.5vw, 70px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 1px;
  margin: 0;
  background: linear-gradient(180deg, #f6dd92 0%, var(--gold-light) 38%, var(--gold) 72%, #8a6420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logged-sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

[data-theme="light"] .hero-logged-name {
  background: linear-gradient(160deg, #6b4a0d 0%, #8a5f10 48%, #b8881e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.clio-orb {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(201,153,58,0.14) 0%, rgba(201,153,58,0.04) 46%, transparent 72%);
  box-shadow: 0 0 50px rgba(201,153,58,0.16), inset 0 0 28px rgba(201,153,58,0.10);
  animation: orb-pulse 3s ease-in-out infinite;
}

/* anel interior concêntrico — dá profundidade ao orb da Clio */
.clio-orb::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(201,153,58,0.18);
  pointer-events: none;
}

.clio-orb-inner {
  width: 80px;
  height: 80px;
}

.clio-svg {
  width: 100%;
  height: 100%;
  animation: clio-spin 20s linear infinite;
}

.clio-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin: 0;
}

.island-map-section {
  margin-bottom: 48px;
}

.island-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}

.island-wide {
  grid-column: span 4;
}

.island-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color var(--t), transform 200ms ease, box-shadow var(--t);
  cursor: default;
}

.island-card:hover {
  border-color: var(--gold-border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.island-wide {
  min-height: 174px;
}

.island-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.island-bg-ocean {
  height: 100%;
  background:
    linear-gradient(180deg, #0a1a2e 0%, #0d2d4a 40%, #0f3860 70%, #0a1a2e 100%),
    radial-gradient(ellipse at 50% 0%, rgba(30,100,180,0.4) 0%, transparent 60%);
}

.island-bg-fire {
  height: 100%;
  background:
    linear-gradient(180deg, #1a0a00 0%, #3d1200 40%, #6b2200 65%, #2a0a00 100%),
    radial-gradient(ellipse at 50% 70%, rgba(220,80,10,0.6) 0%, transparent 55%);
}

.island-bg-wind {
  height: 100%;
  background:
    linear-gradient(180deg, #0d1520 0%, #1a2840 40%, #243550 70%, #0d1520 100%),
    radial-gradient(ellipse at 30% 40%, rgba(80,140,200,0.3) 0%, transparent 50%);
}

.island-bg-abyss {
  height: 100%;
  background:
    linear-gradient(180deg, #050508 0%, #0a0812 40%, #130a1f 65%, #050508 100%),
    radial-gradient(ellipse at 50% 80%, rgba(80,20,120,0.4) 0%, transparent 50%);
}

.island-bg-olympus {
  height: 100%;
  background:
    linear-gradient(135deg, #1a1200 0%, #2d2000 30%, #3d2e00 60%, #1a1200 100%),
    radial-gradient(ellipse at 50% 0%, rgba(201,153,58,0.35) 0%, transparent 55%);
}

.island-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.75) 100%);
}

.island-card-content {
  position: relative;
  z-index: 1;
  padding: 16px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.island-act-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.island-sigil {
  width: 36px;
  height: 36px;
  color: var(--gold-light);
  margin: 4px 0;
}

.island-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.island-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.island-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.level-badge,
.boss-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
}

.level-badge {
  background: rgba(201,153,58,0.10);
  color: var(--gold);
}

.boss-badge {
  background: rgba(201,107,90,0.08);
  color: rgba(232, 160, 144, 0.9);
  border-color: rgba(201,107,90,0.25);
}

.island-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 18px 16px;
  padding: 9px 0;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  color: #0d0b08;
  border: none;
  cursor: pointer;
  transition: opacity var(--t), transform 120ms ease;
}

.island-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.island-cta-locked {
  background: rgba(201,153,58,0.10);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.island-cta-soon {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: default;
}

.island-wide .island-card-content {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.island-wide .island-sigil {
  flex-shrink: 0;
}

.island-wide .island-card-text {
  flex: 1;
}

.island-wide .island-cta {
  margin: 8px 18px 16px;
  width: calc(100% - 36px);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 153, 58, 0.55);
  animation: particle-float linear infinite;
}

.p1 { width: 3px; height: 3px; left: 20%;  animation-duration: 8s;  animation-delay: 0s;   bottom: -10px; }

.p2 { width: 2px; height: 2px; left: 45%;  animation-duration: 11s; animation-delay: -3s;  bottom: -10px; }

.p3 { width: 4px; height: 4px; left: 70%;  animation-duration: 9s;  animation-delay: -6s;  bottom: -10px; }

.p4 { width: 2px; height: 2px; left: 85%;  animation-duration: 13s; animation-delay: -2s;  bottom: -10px; }

.p5 { width: 3px; height: 3px; left: 30%;  animation-duration: 10s; animation-delay: -8s;  bottom: -10px; }

.features-section {
  margin-bottom: 48px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  background: rgba(201, 153, 58, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), background var(--t), transform 180ms ease, box-shadow var(--t);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,153,58,0.4), transparent);
  opacity: 0;
  transition: opacity var(--t);
}

.feature-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201, 153, 58, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-decoration: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  opacity: 0.75;
}

.feature-card-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.feature-card-arrow {
  align-self: flex-end;
  color: var(--gold);
  opacity: 0;
  font-size: 16px;
  transition: opacity var(--t), transform var(--t);
}

.feature-card:hover .feature-card-arrow {
  opacity: 0.7;
  transform: translateX(4px);
}

.feature-card-locked {
  opacity: 0.55;
  pointer-events: none;
}

.coming-soon-badge {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
}

.chars-section {
  margin-bottom: 48px;
}

.chars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.char-card {
  padding: 24px;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  background: rgba(201,153,58,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t), background var(--t);
}

.char-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201,153,58,0.06);
}

.char-icon {
  width: 60px;
  height: 60px;
}

.char-icon svg {
  width: 100%;
  height: 100%;
}

.char-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
}

.char-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}

.char-role {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
}

.cta-section {
  margin-bottom: 56px;
}

.cta-box {
  position: relative;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 60px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(201,153,58,0.08) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-box-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-box-deco svg {
  width: 100%;
  height: auto;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px;
  position: relative;
}

.cta-box p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  margin: 0 0 28px;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

@media (max-width: 1024px) {
  .island-map {
      grid-template-columns: repeat(2, 1fr);
    }

  .island-wide {
      grid-column: span 2;
    }

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

@media (max-width: 768px) {
  .hero-logged-clio {
      display: none;
    }

  .island-map {
      grid-template-columns: 1fr 1fr;
    }

  .island-wide {
      grid-column: span 2;
    }

  .chars-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
  .island-map {
      grid-template-columns: 1fr;
    }

  .island-wide {
      grid-column: span 1;
    }

  .hero-actions,
    .cta-actions {
      flex-direction: column;
      align-items: center;
    }
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  flex: 1;
}

.auth-deco {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-deco-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(201,153,58,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 80% 80%, rgba(138,100,32,0.14) 0%, transparent 50%),
    linear-gradient(160deg, #1c1710 0%, #100d08 50%, #0d0b08 100%);
}

.auth-deco-bg-register {
  background:
    radial-gradient(ellipse 120% 80% at 70% 20%, rgba(201,153,58,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 20% 80%, rgba(138,100,32,0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0d0b08 0%, #140f08 50%, #1c1710 100%);
}

.auth-deco-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  height: 100%;
}

.auth-deco-logo img {
  filter: drop-shadow(0 0 12px rgba(201,153,58,0.45));
  transition: filter 200ms ease;
}

.auth-deco-logo:hover img {
  filter: drop-shadow(0 0 20px rgba(201,153,58,0.65));
}

.auth-deco-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 400px;
}

.auth-deco-overline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.auth-deco-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.auth-deco-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.auth-deco-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: rgba(201,153,58,0.06);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  width: fit-content;
}

.auth-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.auth-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.auth-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.auth-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--gold-border);
}

.auth-deco-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,58,0.18) 0%, transparent 70%);
}

.ao1 {
  width: 300px; height: 300px;
  top: -80px; left: -80px;
  animation: orb-drift 12s ease-in-out infinite;
}

.ao2 {
  width: 200px; height: 200px;
  bottom: 100px; right: -50px;
  animation: orb-drift 16s ease-in-out infinite reverse;
}

.ao3 {
  width: 150px; height: 150px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-drift 20s ease-in-out infinite 4s;
}

.auth-deco-runes {
  display: flex;
  gap: 16px;
  opacity: 0.18;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 4px;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-y: auto;
}

.auth-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--gold-border);
  flex-shrink: 0;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t);
}

.auth-back-link:hover {
  color: var(--gold-light);
}

.auth-form-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px) clamp(24px, 6vw, 60px);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.auth-form-header {
  margin-bottom: 28px;
}

.auth-form-header h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 7px;
}

.auth-form-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.auth-form-header a {
  color: var(--gold-light);
  font-weight: 500;
  transition: color var(--t);
}

.auth-form-header a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-remember-row,
.auth-terms {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 6px 0;
}

.auth-forgot-link {
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--gold-light);
  opacity: 1;
  text-decoration: none;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

.auth-checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--gold-border);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background var(--t), border-color var(--t);
  position: relative;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #0d0b08;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.auth-checkbox-label a {
  color: var(--gold-light);
}

.auth-checkbox-label a:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  margin-top: 8px;
  padding: 13px 20px;
  font-size: 15px;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 6px;
  min-height: 20px;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--gold-border);
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 300ms ease, background 300ms ease;
}

.pw-strength-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  min-width: 80px;
  text-align: right;
}

[data-theme="light"] .auth-deco-bg {
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(184,136,30,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 80% 80%, rgba(138,100,32,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #e5dece 0%, #ddd5c0 50%, #d4c8aa 100%);
}

[data-theme="light"] .auth-deco-bg-register {
  background:
    radial-gradient(ellipse 120% 80% at 70% 20%, rgba(184,136,30,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 20% 80%, rgba(138,100,32,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #ddd5c0 0%, #e5dece 50%, #d4c8aa 100%);
}

[data-theme="light"] .auth-deco-text h2 {
  background: linear-gradient(160deg, #5a3e0a 0%, #7a520d 50%, #9a6e1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .auth-deco-stats {
  background: rgba(138, 95, 16, 0.07);
  border-color: rgba(138, 95, 16, 0.22);
}

[data-theme="light"] .auth-orb {
  background: radial-gradient(circle, rgba(138,95,16,0.12) 0%, transparent 70%);
}

[data-theme="light"] .auth-deco-runes {
  color: var(--gold);
  opacity: 0.22;
}

[data-theme="light"] .auth-form-panel {
  background: var(--bg);
}

[data-theme="light"] .auth-form-top {
  border-bottom-color: rgba(138, 95, 16, 0.15);
}

[data-theme="light"] .auth-form-header h1 {
  color: var(--text);
}

[data-theme="light"] .auth-checkbox-custom {
  border-color: rgba(138, 95, 16, 0.30);
  background: rgba(255,255,255,0.60);
}

[data-theme="light"] .auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

[data-theme="light"] .auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
  border-color: #f8f5ef;
}

[data-theme="light"] .pw-strength-bar {
  background: rgba(138, 95, 16, 0.15);
}

@media (max-width: 768px) {
  .auth-split {
      grid-template-columns: 1fr;
    }

  .auth-deco {
      min-height: 220px;
      max-height: 260px;
    }

  .auth-deco-text h2 {
      font-size: 20px;
    }

  .auth-deco-runes,
    .auth-deco-stats {
      display: none;
    }

  .auth-form-inner {
      padding: 28px 20px;
    }

  .form-row-two {
      grid-template-columns: 1fr;
    }
}

.profile-main {
  min-height: calc(100dvh - 64px);
  padding: clamp(24px, 4vw, 48px) var(--space-4);
}

.profile-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-flash {
  margin: 0;
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  padding: 0;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(201,153,58,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(138,100,32,0.08) 0%, transparent 55%),
    var(--surface);
  pointer-events: none;
}

.ph-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,58,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.ph-orb1 { width: 280px; height: 280px; top: -100px; left: -60px; animation: orb-drift 14s ease-in-out infinite; }

.ph-orb2 { width: 200px; height: 200px; bottom: -80px; right: -40px; animation: orb-drift 18s ease-in-out infinite reverse; }

.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 20px rgba(201,153,58,0.30);
}

.profile-avatar-img,
.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.profile-avatar-placeholder {
  background: linear-gradient(135deg, #2a1f0a, #3d2d0e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-light);
}

.profile-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #0d0b08;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--surface);
  transition: background var(--t), transform var(--t);
}

.profile-avatar-edit-btn:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

.profile-hero-info {
  min-width: 0;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-hero-name-row h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}

.profile-role-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.role-user {
  background: rgba(201,153,58,0.14);
  border: 1px solid rgba(201,153,58,0.30);
  color: var(--gold-light);
}

.role-admin {
  background: rgba(160,70,55,0.14);
  border: 1px solid rgba(160,70,55,0.35);
  color: #d4856e;
}

.profile-hero-email {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.profile-quick-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(201,153,58,0.05);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  flex-shrink: 0;
}

.pqs-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pqs-icon {
  font-size: 18px;
  line-height: 1;
}

.pqs-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 3px;
}

.pqs-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.pqs-divider {
  width: 1px;
  height: 32px;
  background: var(--gold-border);
}

.profile-tabs-wrap {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--gold-border);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.profile-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.profile-tab:hover {
  color: var(--text);
  background: rgba(201,153,58,0.04);
}

.profile-tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  background: rgba(201,153,58,0.05);
}

.profile-tab-danger {
  margin-left: auto;
}

.profile-tab-danger:hover,
.profile-tab-danger.active {
  color: #d4856e;
  border-bottom-color: #c96b5a;
  background: rgba(160,70,55,0.05);
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

.profile-panel-inner {
  padding: clamp(20px, 4vw, 36px) clamp(20px, 4vw, 40px);
  max-width: 560px;
}

.profile-panel-inner h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.profile-panel-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(160,70,55,0.25);
  border-radius: var(--radius);
  background: rgba(160,70,55,0.04);
}

.danger-card-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.danger-card-text p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

[data-theme="light"] .profile-hero-bg {
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(138,95,16,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(138,100,32,0.05) 0%, transparent 55%),
    rgba(255,255,255,0.55);
}

[data-theme="light"] .profile-avatar-placeholder {
  background: linear-gradient(135deg, #ddd5c0, #c9b890);
  color: #6b4a0d;
}

[data-theme="light"] .profile-quick-stats {
  background: rgba(138,95,16,0.05);
  border-color: rgba(138,95,16,0.18);
}

[data-theme="light"] .profile-tabs-wrap {
  background: rgba(255,255,255,0.60);
  border-color: rgba(138,95,16,0.18);
}

[data-theme="light"] .profile-tabs {
  border-bottom-color: rgba(138,95,16,0.15);
}

[data-theme="light"] .profile-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(138,95,16,0.05);
}

[data-theme="light"] .danger-card {
  border-color: rgba(160,70,55,0.20);
  background: rgba(160,70,55,0.03);
}

@media (max-width: 768px) {
  .profile-hero-inner {
      grid-template-columns: auto 1fr;
      grid-template-rows: auto auto;
    }

  .profile-quick-stats {
      grid-column: 1 / -1;
      justify-content: space-between;
    }

  .pqs-divider { height: 24px; }
}

@media (max-width: 480px) {
  .profile-quick-stats {
      flex-wrap: wrap;
      gap: 12px;
    }

  .pqs-divider { display: none; }

  .danger-card {
      flex-direction: column;
      align-items: flex-start;
    }
}

.drawer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a1200;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.drawer-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .story-section,
[data-theme="light"] .story-act-card {
  background: rgba(255,255,255,0.6);
  border-color: rgba(139,100,50,0.2);
}

[data-theme="light"] .story-section:hover,
[data-theme="light"] .story-act-card:hover {
  border-color: rgba(201,149,58,0.45);
  box-shadow: 0 8px 24px rgba(100,70,20,0.15);
}

[data-theme="light"] .story-section-header,
[data-theme="light"] .story-act-header {
  background: rgba(201,149,58,0.06);
  border-bottom-color: rgba(139,100,50,0.18);
}

[data-theme="light"] .story-callout {
  background: rgba(56,150,200,0.07);
  border-color: rgba(56,150,200,0.22);
}

[data-theme="light"] .story-boss {
  background: rgba(200,60,60,0.06);
  border-color: rgba(200,60,60,0.22);
}

[data-theme="light"] .story-ending {
  background: rgba(34,160,80,0.07);
  border-color: rgba(34,160,80,0.22);
}

[data-theme="light"] .story-act-lore {
  border-left-color: rgba(201,149,58,0.45);
  background: rgba(201,149,58,0.05);
}

[data-theme="light"] .story-timeline::before {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,149,58,0.4) 8%,
    rgba(201,149,58,0.4) 92%,
    transparent 100%);
}

[data-theme="light"] .story-act::before {
  background: rgba(201,149,58,0.35);
  border-color: rgba(139,100,50,0.3);
}

[data-theme="light"] .story-act:hover::before,
[data-theme="light"] .story-act.visible::before {
  background: #c9953a;
  border-color: rgba(201,149,58,0.7);
}

[data-theme="light"] .story-acts-title {
  color: rgba(28,20,16,0.45);
}

[data-theme="light"] .story-acts-title::before,
[data-theme="light"] .story-acts-title::after {
  background: rgba(139,100,50,0.25);
}

.story-badge,
.story-act-label,
.story-act-roman {
  color: var(--gold-text);
}

.story-badge {
  background: var(--gold-dim);
  border-color: var(--gold-border);
}

[data-theme="light"] .story-badge {
  color: #8a5e1a;
  background: rgba(201,149,58,0.12);
  border-color: rgba(201,149,58,0.35);
}

.story-boss-star { color: #e8b86d; }

.story-boss-label { color: #e8a060; }

[data-theme="light"] .story-boss-star { color: #c07020; }

[data-theme="light"] .story-boss-label { color: #b05a18; }

.story-ending-label { color: #7ecf8e; }

[data-theme="light"] .story-ending-label { color: #1a7a3a; }

.story-list li::before { color: var(--gold-text); }

[data-theme="light"] .story-list li::before { color: #c9953a; }

.story-act-final::before {
  background: linear-gradient(135deg, #c9953a, #e8b86d) !important;
  border-color: rgba(201,149,58,0.7) !important;
  box-shadow: 0 0 12px rgba(201,149,58,0.45);
}

.story-act-final .story-act-card {
  border-color: var(--gold-border);
  background: var(--gold-glow);
}

.story-hero {
  background: linear-gradient(145deg,
    rgba(201,149,58,0.1) 0%,
    rgba(153,122,86,0.07) 60%,
    rgba(26,20,18,0) 100%);
}

.story-hero::before {
  background: radial-gradient(ellipse 60% 50% at 50% 0%,
    rgba(201,149,58,0.16), transparent 70%);
}

.story-hero h1 {
  background: linear-gradient(135deg, var(--text), var(--gold-text) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .story-hero h1 {
  background: linear-gradient(135deg, #1c1410, #8a5e1a 70%);
  -webkit-background-clip: text;
  background-clip: text;
}

.story-page {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.story-lead {
  font-size: 17px;
  line-height: 1.75;
}

.story-content p,
.story-act-body p {
  font-size: 15.5px;
  line-height: 1.75;
}

.story-callout {
  font-size: 15px;
  line-height: 1.65;
}

.story-list li {
  font-size: 15px;
  line-height: 1.65;
}

.story-section-header h2,
.story-act-title-wrap h3 {
  font-size: 19px;
}

.story-boss {
  font-size: 15px;
  line-height: 1.65;
}

.story-ending p {
  font-size: 15px;
  line-height: 1.7;
}

.story-act-lore {
  font-size: 14px !important;
  line-height: 1.65;
}

.story-act-roman {
  font-size: 24px;
}

.story-page { padding-bottom: 60px; }

.story-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 40px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,149,58,0.35) 8%,
    rgba(201,149,58,0.35) 92%,
    transparent 100%);
}

.story-act {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.story-act.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-act::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201,149,58,0.35);
  border: 2px solid var(--border);
  transition: background 300ms ease, border-color 300ms ease;
}

.story-act:hover::before,
.story-act.visible::before {
  background: var(--gold);
  border-color: var(--gold-border);
}

.story-act-final::before {
  width: 14px !important;
  height: 14px !important;
  left: -36px !important;
  top: 20px !important;
}

.story-act-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.story-act-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.story-act-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}

.story-act-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.story-act-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.story-act-divider-v {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.story-act-title-wrap { flex: 1; min-width: 0; }

.story-act-title-wrap h3 {
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-act-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

[data-theme="light"] .story-act-level-badge {
  background: rgba(0,0,0,0.04);
}

.story-act-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-act-lore {
  font-style: italic;
  opacity: 0.65;
  padding: 10px 16px;
  border-left: 2px solid var(--gold-border);
  background: var(--gold-glow);
  border-radius: 0 8px 8px 0;
}

.story-boss {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.22);
  color: var(--muted);
}

.story-boss strong { color: var(--text); }

.story-boss-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.story-ending {
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.22);
}

.story-ending-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-ending-label::before { content: '◈'; font-size: 10px; }

.story-hero {
  position: relative;
  padding: 56px 44px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  margin-bottom: 48px;
  overflow: hidden;
  text-align: center;
}

.story-hero-runes {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 18px;
  opacity: 0.3;
  letter-spacing: 6px;
}

.story-overline {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-text);
}

[data-theme="light"] .story-overline { color: #8a5e1a; }

.story-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 18px;
}

.story-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.story-section:hover {
  border-color: var(--gold-border);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.story-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.story-section-header h2 { margin: 0; }

.story-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.story-content strong { color: var(--text); }

.story-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.18);
  color: var(--muted);
}

.story-callout svg { flex-shrink: 0; color: #38bdf8; margin-top: 2px; }

.story-list {
  margin: 0; padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-list li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}

.story-list li::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: var(--gold, #c9953a);
  font-size: .85rem;
  top: .15rem;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Symbola', sans-serif;
}

.story-acts { margin-top: 40px; }

.story-acts-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  opacity: 0.55;
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-acts-title::before,
.story-acts-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .story-act {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
}

@media (max-width: 600px) {
  .story-hero { padding: 36px 20px; text-align: left; }

  .story-hero-runes { justify-content: flex-start; }

  .story-timeline { padding-left: 28px; }

  .story-timeline::before { left: 8px; }

  .story-act::before { left: -24px; width: 8px; height: 8px; top: 20px; }

  .story-act-final::before { left: -26px !important; width: 10px !important; height: 10px !important; }

  .story-act-header { padding: 14px 16px 12px; gap: 10px; }

  .story-act-body { padding: 16px 18px; }

  .story-act-title-wrap h3 { white-space: normal; font-size: 16px; }

  .story-content, .story-act-body { padding-left: 18px; padding-right: 18px; }
}

.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 90px;
}

.about-hero {
  text-align: center;
  padding: 36px 16px 28px;
  margin-bottom: 12px;
  position: relative;
}

.about-hero-runes {
  font-size: 14px;
  letter-spacing: 18px;
  color: rgba(201, 153, 58, 0.45);
  text-indent: 18px;
  margin-bottom: 18px;
  font-family: var(--font-display);
}

.about-overline {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  opacity: 0.85;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #f4dca5 0%, #c9993a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 18px;
  line-height: 1.15;
}

.about-lead {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--muted);
}

.about-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.about-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(201, 153, 58, 0.05);
  font-family: var(--font-display);
  letter-spacing: 0.4px;
}

.about-hero-tag strong {
  color: var(--gold-light);
  font-weight: 700;
}

.about-section {
  margin-top: 56px;
}

.about-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.about-badge {
  display: inline-block;
  padding: 5px 11px;
  background: rgba(201, 153, 58, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}

.about-section-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.3px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-stat-card {
  position: relative;
  padding: 26px 20px;
  background: linear-gradient(160deg, rgba(201, 153, 58, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.about-stat-card:hover {
  border-color: rgba(201, 153, 58, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.about-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(201, 153, 58, 0.14);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  margin-bottom: 14px;
}

.about-stat-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 24px rgba(201, 153, 58, 0.25);
}

.about-stat-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.about-stat-sub {
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.8;
}

.about-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-member-card {
  position: relative;
  padding: 26px 26px 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.about-member-stripe {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(201, 153, 58, 0.2) 100%);
  opacity: 0.7;
  transition: opacity 240ms ease, width 240ms ease;
}

.about-member-card:hover {
  border-color: rgba(201, 153, 58, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.about-member-card:hover .about-member-stripe {
  opacity: 1;
  width: 4px;
}

.about-member-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.about-member-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 153, 58, 0.85), rgba(153, 122, 86, 0.55));
  border: 2px solid rgba(201, 153, 58, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #1a1410;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.about-member-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 153, 58, 0.35) 0%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
  opacity: 0.6;
}

.about-member-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.about-member-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.about-member-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
}

.about-member-role svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.about-member-tasks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.about-member-tasks li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.about-member-tasks li::before {
  content: '◈';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 11px;
  opacity: 0.7;
}

.about-member-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.about-stack-pill {
  padding: 5px 12px;
  background: rgba(201, 153, 58, 0.08);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  font-family: var(--font-display);
  letter-spacing: 0.4px;
}

.about-timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-timeline-rail,
.about-timeline-progress {
  position: absolute;
  top: 14px;
  left: 13px;
  width: 2px;
  pointer-events: none;
  border-radius: 2px;
}

.about-timeline-rail {
  bottom: 14px;
  background: rgba(201, 153, 58, 0.13);
}

.about-timeline-progress {
  height: 0;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(201, 153, 58, 0.5);
  transition: height 120ms linear;
  z-index: 1;
}

.about-timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 26px;
}

.about-timeline-item:last-child {
  padding-bottom: 0;
}

.about-timeline-marker {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(201, 153, 58, 0.18);
  border: 2px solid rgba(201, 153, 58, 0.4);
  z-index: 2;
  transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.about-timeline-item.is-active .about-timeline-marker {
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(201, 153, 58, 0.18), 0 0 18px rgba(201, 153, 58, 0.55);
  transform: scale(1.15);
}

.about-timeline-item-current .about-timeline-marker {
  animation: about-pulse 2.4s ease-in-out infinite;
}

.about-timeline-body {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 220ms ease, background 220ms ease;
}

.about-timeline-item.is-active .about-timeline-body {
  border-color: rgba(201, 153, 58, 0.35);
  background: rgba(201, 153, 58, 0.05);
}

.about-timeline-item:hover .about-timeline-body {
  border-color: rgba(201, 153, 58, 0.45);
  background: rgba(201, 153, 58, 0.06);
}

.about-timeline-meta {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.9;
}

.about-timeline-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.about-timeline-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.about-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.about-tool-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 220ms ease, transform 220ms ease;
}

.about-tool-item:hover {
  border-color: rgba(201, 153, 58, 0.4);
  transform: translateY(-2px);
}

.about-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(201, 153, 58, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  flex-shrink: 0;
}

.about-tool-name {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.about-tool-desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.about-text-block {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.about-text-block p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

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

.about-contact-intro {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.about-contact-form {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.about-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.about-contact-form label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.about-contact-form input,
.about-contact-form textarea {
  padding: 11px 14px;
  background: rgba(13, 11, 8, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 180ms ease, background 180ms ease;
  resize: vertical;
}

.about-contact-form input:focus,
.about-contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(13, 11, 8, 0.85);
}

.about-contact-form textarea {
  min-height: 130px;
  line-height: 1.55;
}

.about-contact-counter {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
  letter-spacing: 0.4px;
}

.about-contact-submit {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.about-credential {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(201, 153, 58, 0.10) 0%, rgba(201, 153, 58, 0.02) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.about-credential::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.about-credential-seal {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 153, 58, 0.15);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 18px rgba(201, 153, 58, 0.25);
}

.about-credential-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
  opacity: 0.9;
}

.about-credential-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

[data-theme="light"] .about-stat-card,
[data-theme="light"] .about-member-card,
[data-theme="light"] .about-timeline-body,
[data-theme="light"] .about-tool-item,
[data-theme="light"] .about-text-block,
[data-theme="light"] .about-contact-form {
  background: rgba(0, 0, 0, 0.025);
}

[data-theme="light"] .about-contact-form input,
[data-theme="light"] .about-contact-form textarea {
  background: rgba(255, 252, 245, 0.85);
}

[data-theme="light"] .about-member-avatar {
  color: #fff8e8;
}

[data-theme="light"] .about-credential {
  background: linear-gradient(135deg, rgba(201, 153, 58, 0.18) 0%, rgba(201, 153, 58, 0.05) 100%);
}

/* tema claro: stat cards "O projeto até hoje" — calor + elevação + número rico
   (o tint cinza quase invisível deixava-os lavados sobre o creme) */
[data-theme="light"] .about-stat-card {
  background: linear-gradient(165deg, #fffdf8 0%, #f5eee0 100%);
  border-color: rgba(138, 95, 16, 0.22);
  box-shadow: 0 4px 16px rgba(120, 90, 40, 0.07);
}
[data-theme="light"] .about-stat-card:hover {
  border-color: rgba(138, 95, 16, 0.45);
  box-shadow: 0 12px 30px rgba(150, 105, 25, 0.15);
}
[data-theme="light"] .about-stat-icon {
  background: linear-gradient(135deg, rgba(201, 149, 58, 0.24), rgba(201, 149, 58, 0.10));
  border-color: rgba(138, 95, 16, 0.30);
  color: #a06a12;
}
[data-theme="light"] .about-stat-value {
  color: #8a5f10;
  text-shadow: none;
}

@media (max-width: 900px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 640px) {
  .about-page { padding: 36px 18px 64px; }

  .about-section { margin-top: 44px; }

  .about-section-header { gap: 10px; flex-wrap: wrap; }

  .about-section-header h2 { font-size: 21px; }

  .about-hero h1 { letter-spacing: 0; }

  .about-team-grid,
    .about-tools-grid,
    .about-contact-row { grid-template-columns: 1fr; }

  .about-stats-grid { gap: 10px; }

  .about-stat-value { font-size: 30px; }

  .about-stat-card { padding: 20px 14px; }

  .about-credential { flex-direction: column; text-align: center; gap: 14px; padding: 24px 20px; }

  .about-contact-form { padding: 22px 18px; }

  .about-contact-submit { align-self: stretch; justify-content: center; }

  .about-timeline-item { padding-left: 38px; padding-bottom: 22px; }

  .about-timeline-rail,
    .about-timeline-progress { left: 11px; }

  .about-timeline-marker { left: 6px; top: 10px; }

  .about-timeline-body { padding: 16px 18px; }
}

.game-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    background: linear-gradient(135deg, #f5d98a 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin: 0 0 6px;
}

.page-subtitle {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(201,153,58,0.10);
    border: 1px solid var(--gold-border);
    display: grid;
    place-items: center;
    color: var(--gold);
    flex-shrink: 0;
}

.saves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.save-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--gold-border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    overflow: hidden;
}

.save-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(201,153,58,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.save-card-active {
    border-color: rgba(201,153,58,0.55);
    box-shadow: 0 0 0 1px rgba(201,153,58,0.22), var(--shadow-soft);
}

.save-card-active:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(201,153,58,0.40), var(--shadow);
}

.save-card-empty {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    background: transparent;
    min-height: 220px;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.save-card-empty:hover {
    border-color: var(--gold);
    background: rgba(201,153,58,0.04);
    transform: translateY(-2px);
}

.save-slot-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.save-slot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(201,153,58,0.10);
    border: 1px solid var(--gold-border);
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-display);
}

.save-chapter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-light, #e8c46a);
    background: rgba(201,153,58,0.10);
    border: 1px solid var(--gold-border);
    padding: 5px 10px;
    border-radius: 999px;
    width: fit-content;
}

.save-chapter-tag span { font-size: 14px; }

.save-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.save-stat {
    background: var(--surface-2);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    padding: 10px 12px;
}

.save-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.save-stat-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.save-stat-value small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 2px;
}

.save-bar-wrap { display: flex; flex-direction: column; gap: 6px; }

.save-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
}

.save-bar {
    height: 6px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
}

.save-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.save-bar-fill-hp { background: linear-gradient(90deg, #7aad6e, #a8d49c); }

.save-bar-fill-xp { background: linear-gradient(90deg, var(--gold-dark, #8a6420), var(--gold-light, #e8c46a)); }

.save-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.save-meta svg { flex-shrink: 0; opacity: 0.7; }

.save-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.save-actions > .save-action-btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
    gap: 7px;
    cursor: pointer;
    justify-content: center;
}

.save-actions > .save-action-btn svg {
    flex-shrink: 0;
}

.save-empty-icon {
    color: var(--faint);
    margin-bottom: 4px;
}

.save-empty-label {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px;
}

.saves-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(201,153,58,0.06);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--muted);
}

.saves-notice svg { flex-shrink: 0; color: var(--gold); }

.game-mobile-notice {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(201,153,58,0.08);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 4px;
}

.game-mobile-notice svg { flex-shrink: 0; color: var(--gold); }

@media (max-width: 768px) {
  .game-mobile-notice { display: flex; }
}

@media (max-width: 600px) {
  .page-header { flex-direction: column; align-items: flex-start; }

  .saves-grid  { grid-template-columns: 1fr; }

  .save-stats  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .jogar-download-btn { display: none; }
}

[data-theme="light"] .story-page {
  --story-bg: #f7f1e7;
  --story-surface: rgba(255, 251, 245, 0.78);
  --story-surface-strong: rgba(255, 248, 240, 0.92);
  --story-border: rgba(138, 95, 16, 0.20);
  --story-border-strong: rgba(138, 95, 16, 0.34);
  --story-text: #1f1812;
  --story-muted: rgba(31, 24, 18, 0.70);
  --story-faint: rgba(31, 24, 18, 0.46);
  --story-gold: #8a5f10;
  --story-gold-2: #b8881e;
  --story-gold-soft: rgba(184, 136, 30, 0.14);
  --story-blue-soft: rgba(86, 145, 190, 0.12);
  --story-red-soft: rgba(176, 76, 52, 0.10);
  --story-green-soft: rgba(56, 140, 82, 0.11);
  color: var(--story-text);
}

[data-theme="light"] .story-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 149, 58, 0.10), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(160, 110, 45, 0.08), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f5eee3 100%);
}

[data-theme="light"] .story-page,
[data-theme="light"] .story-page p,
[data-theme="light"] .story-page li {
  color: var(--story-muted);
}

[data-theme="light"] .story-page strong,
[data-theme="light"] .story-page h1,
[data-theme="light"] .story-page h2,
[data-theme="light"] .story-page h3 {
  color: var(--story-text);
}

[data-theme="light"] .story-hero {
  background:
    radial-gradient(ellipse at top, rgba(201, 149, 58, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(243, 232, 214, 0.88));
  border-color: var(--story-border);
  box-shadow: 0 18px 48px rgba(120, 84, 28, 0.10);
}

[data-theme="light"] .story-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(201,149,58,0.12), transparent 50%);
}

[data-theme="light"] .story-hero-runes {
  color: rgba(138, 95, 16, 0.26);
}

[data-theme="light"] .story-overline {
  color: var(--story-gold);
}

[data-theme="light"] .story-hero h1 {
  background: linear-gradient(135deg, #2a1d14 0%, #8a5f10 72%, #b8881e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .story-lead {
  color: var(--story-muted);
}

[data-theme="light"] .story-section {
  background: var(--story-surface);
  border-color: var(--story-border);
  box-shadow: 0 10px 30px rgba(100, 70, 20, 0.06);
}

[data-theme="light"] .story-section:hover {
  border-color: var(--story-border-strong);
  box-shadow: 0 16px 34px rgba(100, 70, 20, 0.10);
}

[data-theme="light"] .story-section-header {
  background: rgba(138, 95, 16, 0.05);
  border-bottom-color: rgba(138, 95, 16, 0.14);
}

[data-theme="light"] .story-badge {
  color: var(--story-gold);
  background: rgba(201, 149, 58, 0.11);
  border-color: rgba(201, 149, 58, 0.28);
}

[data-theme="light"] .story-content p {
  color: var(--story-muted);
}

[data-theme="light"] .story-content strong {
  color: var(--story-text);
}

[data-theme="light"] .story-callout {
  background: var(--story-blue-soft);
  border-color: rgba(86, 145, 190, 0.22);
  color: var(--story-muted);
}

[data-theme="light"] .story-callout svg {
  color: #3d7fb0;
}

[data-theme="light"] .story-list li {
  color: var(--story-muted);
}

[data-theme="light"] .story-list li::before {
  color: var(--story-gold);
}

[data-theme="light"] .story-acts-title {
  color: var(--story-faint);
}

[data-theme="light"] .story-acts-title::before,
[data-theme="light"] .story-acts-title::after {
  background: rgba(138, 95, 16, 0.22);
}

[data-theme="light"] .story-timeline::before {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(201, 149, 58, 0.38) 8%,
    rgba(201, 149, 58, 0.38) 92%,
    transparent 100%
  );
}

[data-theme="light"] .story-act::before {
  background: rgba(201, 149, 58, 0.30);
  border-color: rgba(138, 95, 16, 0.28);
}

[data-theme="light"] .story-act:hover::before,
[data-theme="light"] .story-act.visible::before {
  background: #c9953a;
  border-color: rgba(201, 149, 58, 0.72);
}

[data-theme="light"] .story-act-final::before {
  background: linear-gradient(135deg, #c9953a, #e7bc68) !important;
  border-color: rgba(201, 149, 58, 0.72) !important;
  box-shadow: 0 0 16px rgba(201, 149, 58, 0.28);
}

[data-theme="light"] .story-act-card {
  background: var(--story-surface-strong);
  border-color: var(--story-border);
  box-shadow: 0 10px 26px rgba(100, 70, 20, 0.07);
}

[data-theme="light"] .story-act-card:hover {
  border-color: var(--story-border-strong);
  box-shadow: 0 18px 38px rgba(100, 70, 20, 0.12);
}

[data-theme="light"] .story-act-header {
  background: rgba(201, 149, 58, 0.06);
  border-bottom-color: rgba(138, 95, 16, 0.14);
}

[data-theme="light"] .story-act-label,
[data-theme="light"] .story-act-roman {
  color: var(--story-gold);
}

[data-theme="light"] .story-act-divider-v {
  background: rgba(138, 95, 16, 0.16);
}

[data-theme="light"] .story-act-level-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(138, 95, 16, 0.16);
  color: var(--story-muted);
}

[data-theme="light"] .story-act-body p {
  color: var(--story-muted);
}

[data-theme="light"] .story-act-lore {
  color: rgba(70, 50, 30, 0.78) !important;
  background: rgba(201, 149, 58, 0.07);
  border-left-color: rgba(201, 149, 58, 0.44);
}

[data-theme="light"] .story-boss {
  background: var(--story-red-soft);
  border-color: rgba(176, 76, 52, 0.22);
  color: var(--story-muted);
}

[data-theme="light"] .story-boss strong {
  color: var(--story-text);
}

[data-theme="light"] .story-boss-star {
  color: #c06d21;
}

[data-theme="light"] .story-boss-label {
  color: #a5551a;
}

[data-theme="light"] .story-ending {
  background: var(--story-green-soft);
  border-color: rgba(56, 140, 82, 0.22);
}

[data-theme="light"] .story-ending-label {
  color: #1d7b40;
}

[data-theme="light"] .story-ending p {
  color: var(--story-muted);
}

[data-theme="light"] .story-act-final .story-act-card {
  background:
    radial-gradient(circle at top, rgba(201, 149, 58, 0.10), transparent 48%),
    rgba(255, 249, 240, 0.94);
  border-color: rgba(201, 149, 58, 0.32);
}

@media (max-width: 600px) {
  [data-theme="light"] .story-hero {
      box-shadow: 0 12px 28px rgba(120, 84, 28, 0.08);
    }

  [data-theme="light"] .story-section,
    [data-theme="light"] .story-act-card {
      background: rgba(255, 250, 244, 0.94);
    }
}

.search-main {
  padding: 60px 0 80px;
  min-height: 80vh;
}

.search-form {
  max-width: 640px;
  margin-bottom: 40px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 6px 10px 6px 16px;
  transition: border-color var(--t);
}

.search-input-wrap:focus-within {
  border-color: var(--gold-border-hi);
  box-shadow: var(--focus);
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  padding: 6px 0;
}

.search-input::placeholder { color: var(--muted); }

.search-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color var(--t), background var(--t), transform var(--t);
  text-decoration: none;
}

.search-card:hover {
  border-color: var(--gold-border-hi);
  background: var(--surface-3);
  transform: translateX(3px);
}

.search-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-offset);
  border: 2px solid var(--gold-border);
  flex-shrink: 0;
}

.search-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.search-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.search-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-username {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
}

.search-role {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gold);
  margin-top: 2px;
}

.search-arrow { color: var(--muted); flex-shrink: 0; }

.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-hint, .search-more {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

.user-profile-main {
  padding: 60px 0 80px;
}

.up-hero-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
}

.up-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.up-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.up-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.up-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-border-hi);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.up-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface-offset);
  border: 3px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
}

.up-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0b08;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  border: 2px solid var(--bg);
}

.up-info {
  flex: 1;
  min-width: 200px;
}

.up-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.up-name-row h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--gold-light);
  margin: 0;
}

.up-since {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.up-bio {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  max-width: 500px;
  margin: 0;
}

.up-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}

.friend-pending-actions {
  display: flex;
  gap: 8px;
}

.up-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .up-grid { grid-template-columns: 1fr; }
}

.up-card {
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.up-card-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.up-no-save-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent, #c9993a);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.up-no-save-cta:hover {
  background: rgba(201, 153, 58, 0.10);
  border-color: var(--accent, #c9993a);
  transform: translateY(-1px);
}

.up-card-title {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.up-comment-count {
  margin-left: auto;
  background: var(--surface-offset);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.up-stat-level {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.up-stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.up-stat-sub {
  font-size: 13px;
  color: var(--muted);
}

.up-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.up-stat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.up-stat-val {
  color: var(--text);
  font-weight: 500;
}

.up-bar {
  height: 5px;
  background: var(--surface-offset);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.up-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.up-bar-hp  { background: linear-gradient(90deg, #c96b5a, #e8826e); }

.up-bar-xp  { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }

.up-stat-divider {
  height: 1px;
  background: var(--gold-border);
  margin: 12px 0;
}

.up-mutual-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.up-mutual-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t);
}

.up-mutual-item:hover { color: var(--gold-light); }

.up-mutual-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-offset);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
  flex-shrink: 0;
}

.up-comment-form {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gold-border);
}

.up-comment-textarea {
  width: 100%;
  background: var(--surface-3);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--t);
  outline: none;
  min-height: 80px;
}

.up-comment-textarea:focus {
  border-color: var(--gold-border-hi);
  box-shadow: var(--focus);
}

.up-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.up-comment-hint {
  font-size: 12px;
  color: var(--faint);
}

.up-comment-error {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(201, 107, 90, 0.10);
  border: 1px solid rgba(201, 107, 90, 0.30);
  border-radius: 8px;
  font-size: 13px;
  color: var(--error);
}

.up-comment-login-hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-border);
}

.up-comment-login-hint a { color: var(--gold-light); }

.up-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.up-comment {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 153, 58, 0.10);
}

.up-comment:last-child { border-bottom: none; padding-bottom: 0; }

.up-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.up-comment-author {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

.up-comment-author:hover { text-decoration: underline; }

.up-comment-date {
  font-size: 11px;
  color: var(--faint);
}

.up-comment-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--t);
  display: flex;
  align-items: center;
}

.up-comment-delete:hover { color: var(--error); }

.up-comment-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.up-no-comments {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

.up-load-more {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

[data-theme="light"] .up-hero-card,
[data-theme="light"] .up-card {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .search-card {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .search-card:hover {
  background: rgba(255, 248, 235, 0.98);
}

[data-theme="light"] .up-comment-textarea {
  background: rgba(255, 250, 240, 0.9);
}

[data-theme="light"] .search-input-wrap {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(138, 95, 16, 0.18);
}

.up-content-tabs { display: flex; border-bottom: 1px solid var(--gold-border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }

.up-content-tabs::-webkit-scrollbar { display: none; }

.up-content-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer; white-space: nowrap; transition: color var(--t), border-color var(--t); }

.up-content-tab:hover { color: var(--text); }

.up-content-tab.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.up-tab-badge { background: var(--error); color: #fff; font-family: var(--font-body); font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 999px; line-height: 1.4; }

.up-tab-badge-neutral { background: var(--surface-offset); color: var(--muted); }

.up-content-panel { display: none; }

.up-content-panel.active { display: block; }

.up-section { margin-bottom: 28px; }

.up-section-title { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }

.up-friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }

.up-friend-card { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--surface-3); border: 1px solid var(--gold-border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: background var(--t), border-color var(--t); }

.up-friend-card:hover { background: var(--surface-offset); border-color: var(--gold-border-hi); }

.up-friend-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-offset); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; color: var(--gold); flex-shrink: 0; overflow: hidden; }

.up-friend-avatar img { width: 100%; height: 100%; object-fit: cover; }

.up-friend-info { flex: 1; min-width: 0; }

.up-friend-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.up-friend-level { font-size: 11px; color: var(--muted); margin-top: 1px; }

.up-friend-search { margin-bottom: 8px; }

.up-friend-search-wrap { position: relative; }

.up-friend-search-input { padding-left: 40px !important; }

.up-friend-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }

.up-search-results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

.up-search-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-3); border: 1px solid var(--gold-border); border-radius: var(--radius); transition: background var(--t); }

.up-search-result-item:hover { background: var(--surface-offset); }

.up-search-result-info { display: flex; align-items: center; gap: 8px; }

.up-pending-list { display: flex; flex-direction: column; gap: 8px; }

.up-pending-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: rgba(201, 153, 58, 0.05); border: 1px solid var(--gold-border); border-radius: var(--radius); }

.up-pending-actions { display: flex; gap: 6px; flex-shrink: 0; }

.up-empty-state { text-align: center; padding: 32px 20px; color: var(--muted); font-size: 14px; }

.up-bio-placeholder { font-size: 14px; color: var(--faint); font-style: italic; }

.up-add-bio-btn { background: none; border: none; color: var(--gold-light); font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; font-family: inherit; }

[data-theme="light"] .up-friend-card { background: rgba(255, 250, 240, 0.8); border-color: rgba(138, 95, 16, 0.18); }

[data-theme="light"] .up-friend-card:hover { background: rgba(255, 248, 230, 1.0); border-color: rgba(138, 95, 16, 0.35); }

[data-theme="light"] .up-search-result-item, [data-theme="light"] .up-pending-item { background: rgba(255, 250, 240, 0.8); border-color: rgba(138, 95, 16, 0.18); }

[data-theme="light"] .up-search-result-item:hover { background: rgba(255, 248, 230, 1.0); }

.sx-outer{position:relative;width:100%;}

[data-theme="dark"] .sx-wrap{background:#0f0e0c;}

[data-theme="dark"] .sx-hero-lead{color:rgba(232,220,190,.75);}

[data-theme="dark"] .sx-scroll-cta{color:rgba(201,153,58,.75);}

[data-theme="dark"] .sx-scroll-arrow{border-color:#c9953a;}

[data-theme="dark"] .sx-left h2{color:#e8dfc8;}

[data-theme="dark"] .sx-left p{color:rgba(232,220,190,.72);}

[data-theme="dark"] .sx-lore{color:rgba(220,200,160,.85)!important;}

[data-theme="dark"] .sx-tag{background:rgba(201,153,58,.12);border-color:rgba(201,153,58,.30);color:#c9993a;}

[data-theme="dark"] .sx-lvl{color:#c9993a;border-color:rgba(201,153,58,.30);}

[data-theme="dark"] .sx-boss{background:rgba(201,153,58,.08);border-color:rgba(201,153,58,.22);}

[data-theme="dark"] .sx-boss div:last-child{color:rgba(232,220,190,.80);}

[data-theme="dark"] .sx-boss-purple{background:rgba(122,86,176,.12);border-color:rgba(122,86,176,.30);}

[data-theme="dark"] .sx-callout{background:rgba(44,111,143,.12);border-color:rgba(44,111,143,.28);}

[data-theme="dark"] .sx-ending{background:linear-gradient(135deg,rgba(201,153,58,.14),rgba(138,95,16,.08));border-color:rgba(201,153,58,.32);}

[data-theme="dark"] .sx-ending p{color:rgba(220,200,160,.80);}

[data-theme="dark"] .sx-dot{background:rgba(232,220,190,.20);}

[data-theme="dark"] .sx-dot-label{background:rgba(30,25,18,.96);color:#e8dfc8;border-color:rgba(201,153,58,.25);}

[data-theme="dark"] .sx-counter{color:rgba(232,220,190,.50);}

[data-theme="dark"] .sx-list li{color:rgba(220,200,160,.80);}

[data-theme="dark"] .sx-art p{color:rgba(201,153,58,.60);}

[data-theme="dark"] .sx-boss-ico{color:#c9993a;}

[data-theme="dark"] .sx-panel-glow{opacity:.7;}

.sx-wrap{
  position:relative;
  width:100%;
  /* altura real da navbar (logo 60px + padding 24px); dvh evita o "salto"
     da barra de endereço no mobile que empurrava a página para baixo */
  height:calc(100vh - var(--header-h, 84px));
  height:calc(100dvh - var(--header-h, 84px));
  overflow:hidden;
  background:#f5f0e8;
  font-family:inherit;
}

.sx-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}

.sx-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  animation:sxOrb 22s ease-in-out infinite alternate;
}

.sx-orb-1{
  width:560px;
  height:560px;
  top:-120px;
  left:-60px;
  background:radial-gradient(circle,rgba(201,153,58,.18),transparent);
  animation-delay:0s;
}

.sx-orb-2{
  width:460px;
  height:460px;
  top:40%;
  right:-80px;
  background:radial-gradient(circle,rgba(184,136,30,.14),transparent);
  animation-delay:-8s;
}

.sx-orb-3{
  width:380px;
  height:380px;
  bottom:-60px;
  left:40%;
  background:radial-gradient(circle,rgba(138,100,32,.10),transparent);
  animation-delay:-16s;
}

.sx-particles{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:.28;
  pointer-events:none;
}

.sx-prog{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  z-index:20;
  background:rgba(138,95,16,.10);
}

.sx-prog-fill{
  height:100%;
  width:0;
  background:linear-gradient(90deg,#b8881e,#c9953a);
  transition:width .4s cubic-bezier(.16,1,.3,1);
}

.sx-counter{
  position:absolute;
  top:14px;
  right:20px;
  z-index:20;
  font-size:.68rem;
  letter-spacing:.2em;
  color:rgba(28,20,16,.58);
  font-weight:700;
  text-transform:uppercase;
}

.sx-dots{
  position:absolute;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:9px;
  z-index:20;
  align-items:center;
}

.sx-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:rgba(28,20,16,.16);
  border:none;
  cursor:pointer;
  padding:0;
  position:relative;
  transition:width .3s ease,background .3s ease;
}

.sx-dot.sx-dot-active{
  width:24px;
  background:#c9953a;
}

.sx-dot:hover .sx-dot-label{
  opacity:1;
  transform:translateX(-50%) translateY(-6px);
}

.sx-dot-label{
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%) translateY(0);
  background:rgba(245,240,232,.96);
  color:#1c1410;
  border:1px solid rgba(138,95,16,.18);
  font-size:.65rem;
  padding:.28rem .55rem;
  border-radius:7px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s,transform .18s;
  font-weight:600;
}

.sx-track{
  position:absolute;
  inset:0;
  display:flex;
  width:900%;
  transition:transform .75s cubic-bezier(.77,0,.18,1);
  z-index:10;
  will-change:transform;
}

.sx-panel{
  flex:0 0 calc(100% / 9);
  height:100%;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.sx-panel-glow{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 65% 30%,rgba(201,153,58,.16),transparent 50%),
    radial-gradient(ellipse at 10% 75%,rgba(138,95,16,.08),transparent 40%);
  z-index:0;
}

.sx-panel-final .sx-panel-glow{
  background:
    radial-gradient(ellipse at 55% 28%,rgba(201,153,58,.22),transparent 46%),
    radial-gradient(ellipse at 6% 78%,rgba(138,95,16,.10),transparent 40%);
}

.sx-panel-intro{
  background:radial-gradient(ellipse at 50% 40%,rgba(201,153,58,.12),transparent 56%);
}

.sx-intro-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:clamp(12px,1.8vw,20px);
  padding:clamp(20px,4vw,60px);
  position:relative;
  z-index:2;
  width:100%;
}

.sx-hero-runes{
  letter-spacing:.42em;
  color:rgba(138,95,16,.55);
  font-size:.85rem;
  animation:sxRunes 5s ease-in-out infinite alternate;
}

.sx-overline{
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#a86f1a;
  font-weight:800;
}

.sx-hero-title{
  font-size:clamp(3.8rem,11vw,9.5rem);
  line-height:.88;
  letter-spacing:-.1em;
  font-weight:900;
  background:linear-gradient(135deg,#f7e7bc 0%,#e0b85e 50%,#b9781e 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  animation:sxTitleIn 1s cubic-bezier(.16,1,.3,1) both;
  padding-inline-end: 0.15em;
}

.sx-hero-lead{
  max-width:54ch;
  color:rgba(28,20,16,.70);
  font-size:clamp(.92rem,1.3vw,1.14rem);
  line-height:1.7;
}

.sx-scroll-cta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  color:rgba(138,95,16,.65);
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-top:.4rem;
}

.sx-scroll-arrow{
  display:block;
  width:20px;
  height:20px;
  border-right:2px solid #a86f1a;
  border-bottom:2px solid #a86f1a;
  transform:rotate(-45deg);
  animation:sxArrow 1.6s ease-in-out infinite;
}

.sx-content{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(20px,3.5vw,64px);
  align-items:center;
  padding:clamp(24px,4vw,72px) clamp(28px,5.5vw,90px);
  width:100%;
  max-width:1560px;
  margin:0 auto;
}

.sx-left{
  display:grid;
  gap:14px;
}

.sx-tag{
  display:inline-flex;
  padding:.4rem .9rem;
  border-radius:999px;
  border:1px solid rgba(138,95,16,.22);
  background:rgba(138,95,16,.08);
  color:#8a5f10;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
  width:fit-content;
}

.sx-act-num{
  display:flex;
  align-items:baseline;
  gap:12px;
  padding-inline-end: 0.15em;
}

.sx-act-num>span:first-child{
  font-size:clamp(2.8rem,5.5vw,5rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.08em;
  background:linear-gradient(135deg,#f3d79a,#b77a1d);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  padding-inline-end: 0.15em;
}

.sx-act-num-final>span:first-child{
  background:linear-gradient(135deg,#fde9b5,#d89a34);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  padding-inline-end: 0.15em;
}

.sx-lvl{
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#8a5f10;
  padding:.32rem .75rem;
  border:1px solid rgba(138,95,16,.22);
  border-radius:999px;
}

.sx-left h2{
  font-size:clamp(1.9rem,3.8vw,3.8rem);
  line-height:.95;
  letter-spacing:-.07em;
  font-weight:900;
  color:#1c1410;
}

.sx-h2-final{
  background:linear-gradient(135deg,#f7e7bc 0%,#e0b85e 50%,#b9781e 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  padding-bottom: 20px;
}

.sx-rule{
  width:300px;
  height:2px;
  background:linear-gradient(90deg,#c9953a,transparent);
}

.sx-rule-gold{
  background:linear-gradient(90deg,#e0b85e,transparent);
}

.sx-left p{
  color:rgba(28,20,16,.74);
  font-size:clamp(.86rem,1.1vw,1.04rem);
  line-height:1.74;
  max-width:52ch;
}

.sx-lore{
  border-left:2px solid rgba(138,95,16,.25);
  padding-left:14px;
  color:rgba(82,57,20,.86)!important;
  font-style:italic;
}

.sx-callout{
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:13px 16px;
  border-radius:14px;
  border:1px solid rgba(38,92,122,.18);
  background:rgba(38,92,122,.08);
}

.sx-callout-ico{
  color:#2c6f8f;
  font-size:.95rem;
  flex-shrink:0;
  margin-top:.1rem;
}

.sx-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:7px;
}

.sx-list li{
  padding-left:20px;
  position:relative;
  color:rgba(58,45,28,.82);
  font-size:clamp(.84rem,1.05vw,.98rem);
}

.sx-list li::before{
  content:"◈";
  position:absolute;
  left:0;
  color:#c9953a;
  font-size:.68rem;
  top:.22rem;
}

.sx-boss{
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:12px 15px;
  border-radius:14px;
  border:1px solid rgba(138,95,16,.20);
  background:rgba(138,95,16,.08);
}

.sx-boss-purple{
  border-color:rgba(122,86,176,.22);
  background:rgba(122,86,176,.08);
}

.sx-boss-final{
  border-color:rgba(201,153,58,.28);
  background:linear-gradient(135deg,rgba(201,153,58,.12),rgba(138,95,16,.05));
}

.sx-boss-ico{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  min-width:55px;
  font-size:.58rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:900;
  color:#8a5f10;
  white-space:nowrap;
}

.sx-boss-ico svg{
  color:#c9953a;
  margin-bottom:2px;
}

.sx-boss-phases{
  display:block;
  font-size:.52rem;
  letter-spacing:.08em;
  font-weight:700;
  opacity:.72;
}

.sx-boss div:last-child{
  color:rgba(55,39,22,.82);
  font-size:.86rem;
  line-height:1.55;
}

.sx-ending{
  padding:14px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(201,153,58,.10),rgba(184,136,30,.06));
  border:1px solid rgba(201,153,58,.22);
}

.sx-ending-label{
  display:block;
  font-size:.68rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:900;
  color:#a86f1a;
  margin-bottom:.5rem;
}

.sx-ending p{
  color:rgba(55,39,22,.78);
  line-height:1.6;
  font-size:.88rem;
}

.sx-right{
  display:flex;
  justify-content:center;
  align-items:center;
}

.sx-art{
  width:clamp(200px,24vw,400px);
  height:clamp(200px,24vw,400px);
  border-radius:32px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  border:1px solid rgba(138,95,16,.14);
  overflow:hidden;
  background:radial-gradient(circle at 50% 38%,var(--art-a),var(--art-b));
}

.sx-art-glow{
  position:absolute;
  width:160px;
  height:160px;
  border-radius:50%;
  filter:blur(28px);
  background:inherit;
  animation:sxGlow 3.8s ease-in-out infinite alternate;
  opacity:.42;
}

.sx-symbol{
  font-size:clamp(3.2rem,5.2vw,5rem);
  line-height:1;
  position:relative;
  z-index:1;
  animation:sxSymbol 4.2s ease-in-out infinite alternate;
  filter:drop-shadow(0 0 22px rgba(201,153,58,.35));
}

.sx-symbol-final{
  animation:sxFinalSym 3s ease-in-out infinite alternate;
}

.sx-art p{
  position:relative;
  z-index:1;
  font-size:.74rem;
  color:rgba(82,57,20,.68);
  text-align:center;
  max-width:22ch;
  margin-top:.9rem;
  font-style:italic;
}

@media(max-width:820px) {
  .sx-content{
      grid-template-columns:1fr;
      overflow-y:auto;
      max-height:100%;
      padding-top:48px;
    }

  .sx-right{display:none}
}

@media(prefers-reduced-motion:reduce) {
  .sx-orb,.sx-art-glow,.sx-symbol,.sx-symbol-final,.sx-scroll-arrow,.sx-hero-runes{animation:none!important}

  .sx-track{transition:none!important}
}

.site-hero-full {
    position: relative;
    height: 100svh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, rgba(30,18,4,0.98) 0%, #050302 70%);
    margin-bottom: 80px;
  }

[data-theme="light"] .site-hero-full {
    background: radial-gradient(
      ellipse at 50% 40%,
      rgba(50, 30, 5, 0.98) 0%,
      #050302 70%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 93%,
      rgba(0, 0, 0, 0.82) 96%,
      rgba(0, 0, 0, 0.42) 98.5%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 93%,
      rgba(0, 0, 0, 0.82) 96%,
      rgba(0, 0, 0, 0.42) 98.5%,
      transparent 100%
    );
  }

[data-theme="light"] .site-hero-full::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(5, 3, 2, 0.05) 72%,
      rgba(5, 3, 2, 0.10) 100%
    );
  }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
  }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(8,5,2,0.65);
    pointer-events: none;
  }

[data-theme="light"] .hero-overlay {
    background: rgba(6,3,1,0.58);
  }

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
  }

.site-hero-full-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 0 24px;
    animation: heroFadeIn 1.2s ease both;
  }

.hero-logo-wrap { animation: heroFloat 5s ease-in-out infinite; }

.hero-logo-img { width: clamp(320px, 32vw, 900px); height: auto; filter: drop-shadow(0 0 40px rgba(201,153,58,0.45)); }

.hero-overline { font-family: var(--font-display); font-size: 13px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; opacity: 0.85; animation: heroFadeIn 1.4s 0.3s ease both; }

.hero-tagline  { font-size: clamp(15px, 2.2vw, 18px); color: rgba(255,255,255,0.7); max-width: 52ch; line-height: 1.65; margin: 0; animation: heroFadeIn 1.4s 0.5s ease both; }

.hero-actions-row {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: heroFadeIn 1.4s 0.7s ease both;
  }

.hero-explore-btn {
    background: none;
    border: 1px solid rgba(201,153,58,0.4);
    color: rgba(255,255,255,0.7);
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: none;
    transition: border-color 200ms, color 200ms, background 200ms;
    animation: heroFadeIn 1.4s 1s ease both;
  }

.hero-explore-btn:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,153,58,0.08); }

.hero-download-btn {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #0d0b08;
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: none;
    font-weight: 600;
    transition: background 200ms, border-color 200ms, transform 200ms, box-shadow 200ms;
    animation: heroFadeIn 1.4s 1s ease both;
  }

.hero-download-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,153,58,0.35);
  }

.hero-download-btn svg { stroke: #0d0b08; }

.hero-swipe-svg { display: none; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: heroScrollBounce 2.2s ease-in-out infinite;
  }

.hero-scroll-wheel {
    animation: heroWheelMove 2.2s ease-in-out infinite;
    transform-origin: center;
  }

@media (max-width: 768px) {
  .nav-guest-btn { display: none; }

  .hero-download-btn { display: none !important; }

  .hero-mouse-svg { display: none; }

  .hero-swipe-svg { display: block !important; }

  .saves-notice {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }

  .saves-notice code {
      word-break: break-all;
    }

  .auth-form-panel {
      padding-bottom: 80px;
    }

  .hero-scroll-indicator { cursor: pointer; }
}

@media (max-width: 560px) {
  .hero-actions,
    .cta-actions {
      align-items: center;
    }

  .auth-split { flex-direction: column; }

  .auth-deco  { display: none; }

  .auth-form-panel { width: 100%; }
}

.save-helper {
    background: linear-gradient(135deg, rgba(201,153,58,0.07) 0%, rgba(201,153,58,0.03) 100%);
    border: 1px solid rgba(201,153,58,0.30);
    border-radius: 14px;
    margin-bottom: 22px;
    overflow: hidden;
}

.save-helper-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text);
    transition: background 160ms ease;
}

.save-helper-header:hover {
    background: rgba(201,153,58,0.05);
}

.save-helper-header:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.save-helper-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,153,58,0.14);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    color: var(--gold);
    flex-shrink: 0;
}

.save-helper-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}

.save-helper-chevron {
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.save-helper.collapsed .save-helper-chevron {
    transform: rotate(-90deg);
}

.save-helper-content {
    max-height: 600px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 340ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}

.save-helper.collapsed .save-helper-content {
    max-height: 0;
    opacity: 0;
}

.save-helper-content-inner {
    min-height: 0;
}

.save-helper-content-inner > * {
    padding-left: 22px;
    padding-right: 22px;
}

.save-helper-content-inner > *:first-child {
    padding-top: 16px;
}

.save-helper-content-inner > *:last-child {
    padding-bottom: 20px;
}

.save-helper-text {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.5;
}

.save-helper-path-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.save-helper-path {
    flex: 1;
    min-width: 0;
    font-family: 'Consolas', 'SFMono-Regular', 'Menlo', monospace;
    font-size: 12.5px;
    color: var(--gold-light, #e8c46a);
    background: rgba(0,0,0,0.22);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 8px 12px;
    user-select: all;
    overflow-x: auto;
    white-space: nowrap;
}

/* tema claro: trocar o bloco cinzento (preto translúcido) por um chip
   de pergaminho com mono dourado — combina com o resto da página */
[data-theme="light"] .save-helper-path {
    background: #fbf7ee;
    border-color: rgba(138,95,16,0.30);
    color: #8a5f10;
    box-shadow: inset 0 1px 2px rgba(120,90,40,0.07);
}

.save-helper-copy {
    flex-shrink: 0;
    min-height: 38px !important;
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.save-helper-copy.copied {
    background: rgba(106,180,106,0.18);
    border-color: rgba(106,180,106,0.5);
    color: #8adb8a;
}

.save-helper-steps {
    list-style: none;
    counter-reset: step;
    padding: 0 22px 20px 22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-helper-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 32px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.55;
}

.save-helper-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,153,58,0.14);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
}

.save-helper-steps kbd {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--gold-border);
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gold-light, #e8c46a);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
    line-height: 1;
}

.save-helper-steps strong {
    color: var(--gold-light, #e8c46a);
    font-weight: 700;
}

.save-helper-steps em {
    color: var(--gold);
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 600px) {
  .save-helper { flex-direction: column; gap: 12px; }

  .save-helper-path-row { flex-direction: column; align-items: stretch; }

  .save-helper-copy { width: 100%; justify-content: center; }
}

.save-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    padding: 20px;
}

.save-preview-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.save-preview-box {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--gold-border);
    border-radius: 18px;
    padding: 24px;
    transform: scale(0.96);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.save-preview-overlay.active .save-preview-box {
    transform: scale(1);
}

.save-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.save-preview-header h2 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.3px;
}

.save-preview-close {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.save-preview-close:hover {
    background: rgba(201,90,80,0.10);
    color: #e07060;
    border-color: rgba(201,90,80,0.30);
}

.save-preview-subtitle {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
}

.save-preview-subtitle strong { color: var(--text); }

.save-preview-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(224, 160, 64, 0.10);
    border: 1px solid rgba(224, 160, 64, 0.35);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.45;
}

.save-preview-warning svg {
    flex-shrink: 0;
    color: #e0a040;
    margin-top: 2px;
}

.save-preview-warning #save-preview-warning-detail {
    color: var(--gold-light, #e8c46a);
    font-weight: 600;
}

.save-preview-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 2px;
}

.save-preview-body .save-preview-card {
    
    transition: none;
}

.save-preview-body .save-preview-card:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(201,153,58,0.22), var(--shadow-soft);
}

.save-preview-body .save-preview-card .save-slot-num {
    width: auto;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.8px;
}

.save-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.save-preview-actions .btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 500px) {
  .save-preview-box { padding: 18px; }

  .save-preview-header h2 { font-size: 18px; }

  .save-preview-actions { flex-direction: column-reverse; }

  .save-preview-actions .btn { width: 100%; }
}

/* Page */
.cm-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

/* Hero */
.cm-hero {
    text-align: center;
    margin-bottom: 36px;
}

/* ornamento + overline + título: mesmo padrão do hero do "Sobre" */
.cm-runes {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 18px;
    text-indent: 18px;
    color: rgba(201, 153, 58, 0.45);
    margin-bottom: 16px;
}

.cm-overline {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.85;
    margin: 0 0 14px;
}

.cm-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 0 0 18px;
    background: linear-gradient(180deg, #f4dca5 0%, #c9993a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.cm-subtitle {
    color: var(--muted);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 22px;
}

.cm-stats-bar {
    display: inline-flex;
    align-items: center;
    background: var(--surface-offset);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 0;
}

.cm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 22px;
    gap: 2px;
}

.cm-stat-num {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.cm-stat-label {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cm-stat-sep {
    width: 1px;
    height: 30px;
    background: var(--border);
    flex-shrink: 0;
}

/* Search */
.cm-search-wrap {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cm-search-box {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.cm-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: color 0.2s;
}

.cm-search-box:focus-within .cm-search-icon { color: var(--gold); }

.cm-search-input {
    width: 100%;
    padding: 13px 44px;
    background: var(--surface-offset);
    border: 1.5px solid var(--border);
    border-radius: 40px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}

.cm-search-input::placeholder { color: var(--muted); }

.cm-search-input:focus {
    border-color: rgba(201,153,58,0.6);
    box-shadow: 0 0 0 3px rgba(201,153,58,0.1);
    background: var(--surface-2);
}

.cm-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.18s, background 0.18s;
}

.cm-search-clear:hover { color: var(--text); background: var(--surface-3); }

.cm-results-count {
    font-size: 12px;
    color: var(--muted);
    display: none;
}

/* ── Podium ── */
.cm-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    max-width: 640px;
    margin: 8px auto 44px;
}

.cm-podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 0;
    border-radius: 0;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 58%);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.cm-podium-card:hover { transform: translateY(-5px); filter: brightness(1.08); }

/* corpo (info do jogador) */
.cm-pod-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 22px 12px 16px;
    gap: 4px;
}

/* degrau (base) com o número grande */
.cm-pod-base {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    border-top: 2px solid var(--cm-accent, var(--gold));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    background: linear-gradient(180deg, var(--cm-step-top), var(--cm-step-bot));
}

/* brilho a varrer o degrau — apenas no #1 */
.cm-podium-card.rank-1 .cm-pod-base::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255,236,180,0.28) 50%, transparent 65%);
    transform: translateX(-130%);
    animation: cm-shimmer-slide 3s linear infinite;
    pointer-events: none;
}

.cm-pod-hash {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cm-accent, var(--gold));
    opacity: 0.65;
    align-self: flex-start;
    margin-top: 0.6em;
}

.cm-pod-rank {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1;
    color: var(--cm-accent, var(--gold));
}

/* alturas dos degraus (efeito pódio) */
.cm-podium-card.rank-1 .cm-pod-base { height: 142px; }
.cm-podium-card.rank-2 .cm-pod-base { height: 100px; }
.cm-podium-card.rank-3 .cm-pod-base { height: 74px; }

.cm-podium-card.rank-1 .cm-pod-rank { font-size: 88px; }
.cm-podium-card.rank-2 .cm-pod-rank { font-size: 60px; }
.cm-podium-card.rank-3 .cm-pod-rank { font-size: 48px; }
.cm-podium-card.rank-1 .cm-pod-hash { font-size: 30px; }
.cm-podium-card.rank-2 .cm-pod-hash { font-size: 24px; }
.cm-podium-card.rank-3 .cm-pod-hash { font-size: 20px; }

/* Rank 1 — ouro (centro, mais alto) */
.cm-podium-card.rank-1 {
    --cm-accent: #f0cf7a;
    --cm-step-top: rgba(201,153,58,0.32);
    --cm-step-bot: rgba(201,153,58,0.05);
    --cm-ring: conic-gradient(from 0deg, #8a6420, #f0cf7a, #fff6e0, #c9993a, #8a6420, #f0cf7a, #8a6420);
    flex: 1.4 1 0;          /* 1.o lugar mais largo que os restantes */
    z-index: 3;
    overflow: visible;
}
.cm-podium-card.rank-1 .cm-pod-body { background: radial-gradient(ellipse at top, rgba(201,153,58,0.16), transparent 65%); }
.cm-podium-card.rank-1 .cm-pod-rank { text-shadow: 0 0 28px rgba(201,153,58,0.7); }

/* Rank 2 — prata */
.cm-podium-card.rank-2 {
    --cm-accent: #d6d6d6;
    --cm-step-top: rgba(192,192,192,0.22);
    --cm-step-bot: rgba(192,192,192,0.04);
    --cm-ring: conic-gradient(from 0deg, #8a8a8a, #e8e8e8, #ffffff, #bcbcbc, #8a8a8a, #e8e8e8, #8a8a8a);
    z-index: 2;
}
.cm-podium-card.rank-2 .cm-pod-rank { text-shadow: 0 0 20px rgba(192,192,192,0.45); }

/* Rank 3 — bronze */
.cm-podium-card.rank-3 {
    --cm-accent: #e08c44;
    --cm-step-top: rgba(205,127,50,0.22);
    --cm-step-bot: rgba(205,127,50,0.04);
    --cm-ring: conic-gradient(from 0deg, #7a4a1e, #e08c44, #ffd9a8, #b5702f, #7a4a1e, #e08c44, #7a4a1e);
    z-index: 1;
}
.cm-podium-card.rank-3 .cm-pod-rank { text-shadow: 0 0 18px rgba(205,127,50,0.45); }

/* ── Drama exclusivo do #1 ── */

/* entrada escalonada: os degraus sobem ao carregar (#1 entra por ultimo) */
.cm-podium-card { animation: cm-pod-rise 0.7s cubic-bezier(0.16,1,0.3,1) backwards; }
.cm-podium-card.rank-2 { animation-delay: 0.05s; }
.cm-podium-card.rank-3 { animation-delay: 0.16s; }
.cm-podium-card.rank-1 { animation-delay: 0.30s; }

/* conteudo do #1 acima dos efeitos */
.cm-podium-card.rank-1 .cm-pod-body > * { position: relative; z-index: 1; }

/* anel metalico colado a cada avatar (mascara = donut: sem spokes, sem espaco) */
.cm-podium-card .cm-pod-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: var(--cm-ring);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    pointer-events: none;
}

/* so o anel do #1 gira */
.cm-podium-card.rank-1 .cm-pod-avatar::before { animation: cm-ring-spin 6s linear infinite; }

/* numero do #1 a pulsar */
.cm-podium-card.rank-1 .cm-pod-rank { animation: cm-rank-glow 2.4s ease-in-out infinite; }

/* coroa a flutuar */
.cm-podium-card.rank-1 .cm-pod-medal {
    animation: cm-crown-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.55));
}

/* Medal icon color */
.cm-pod-medal { margin-bottom: 8px; }

.cm-podium-card.rank-1 .cm-pod-medal { color: #ffd700; }

.cm-podium-card.rank-2 .cm-pod-medal { color: #c0c0c0; }

.cm-podium-card.rank-3 .cm-pod-medal { color: #cd7f32; }

/* Avatar */
.cm-pod-avatar {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark,#8a6420), var(--gold,#c9993a));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700; color: #0d0b08;
    margin-bottom: 10px;
    overflow: visible;
    border: 0;
}

.cm-podium-card.rank-1 .cm-pod-avatar {
    width: 96px; height: 96px; font-size: 34px;
    margin-bottom: 12px;
    animation: cm-aura-breathe 3.6s ease-in-out infinite;
}

.cm-pod-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.cm-pod-username {
    font-weight: 700; font-size: 14px;
    width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 4px;
}

.cm-podium-card.rank-1 .cm-pod-username { font-size: 15px; }

.cm-pod-level {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    margin-bottom: 6px;
}

.cm-podium-card.rank-1 .cm-pod-level { font-size: 15px; color: var(--gold); }

.cm-podium-card.rank-2 .cm-pod-level { color: #c0c0c0; }

.cm-podium-card.rank-3 .cm-pod-level { color: #cd7f32; }

.cm-pod-xp-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 80%; margin-bottom: 4px;
}

.cm-pod-xp-bar {
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px; overflow: hidden;
}

.cm-pod-xp-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dark,#8a6420), var(--gold,#c9993a));
    border-radius: 2px;
}

.cm-pod-xp-label { font-size: 10px; color: var(--muted); }

.cm-pod-chapter {
    font-size: 11px; color: var(--muted);
    width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 0 4px; margin-top: 2px;
}

.cm-pod-nosave {
    font-size: 11px; color: var(--muted);
    background: rgba(255,255,255,0.05);
    border-radius: 8px; padding: 2px 10px; margin-top: 4px;
}

/* ── Lista — "tabletes" angulares, com brilho e pódio em destaque ── */
.cm-list {
    display: flex; flex-direction: column; gap: 7px;
    padding: 0 12px;
}

.cm-row {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 13px 22px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 60%),
      var(--surface-offset);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(201,153,58,0.35);   /* spine dourada */
    border-radius: 0;                                /* angular, sem arredondar */
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform 0.22s cubic-bezier(.16,1,.3,1), border-color 0.2s, box-shadow 0.25s, background 0.2s;
    animation: cm-row-fade 0.4s ease both;
}

/* varrimento de luz no hover */
.cm-row::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(108deg, transparent 26%, rgba(255,236,184,0.13) 50%, transparent 74%);
    transform: translateX(-135%);
    opacity: 0;
    transition: transform 1.3s cubic-bezier(.42,0,.32,1), opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
}
.cm-row:hover::after { transform: translateX(135%); opacity: 1; }

.cm-row > * { position: relative; z-index: 2; }

.cm-row:hover {
    transform: translateX(5px);
    border-color: rgba(201,153,58,0.5);
    border-left-color: #e8c46a;
    box-shadow: -7px 0 26px -12px rgba(201,153,58,0.65), 0 8px 24px rgba(0,0,0,0.32);
}

/* ── Pódio em destaque ── */
/* #1 — campeão: ouro rico, borda a brilhar, shimmer contínuo */
.cm-row.tier-gold {
    padding: 16px 22px;
    border-color: rgba(201,153,58,0.55);
    border-left-color: #f0cf7a;
    background:
      linear-gradient(100deg, rgba(201,153,58,0.24), rgba(201,153,58,0.04) 72%),
      var(--surface-offset);
    box-shadow: inset 0 0 0 1px rgba(201,153,58,0.20), 0 10px 34px -12px rgba(201,153,58,0.5);
}
.cm-row.tier-gold::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 40%, rgba(255,241,196,0.20) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: cm-shimmer-slide 4.6s linear infinite;
    pointer-events: none;
    z-index: 1;
}
.cm-row.tier-gold .cm-row-name { font-size: 15.5px; }
.cm-row.tier-gold .cm-row-lv { color: #f4d680; text-shadow: 0 0 14px rgba(201,153,58,0.45); }

/* #2 — prata */
.cm-row.tier-silver {
    border-color: rgba(207,214,221,0.45);
    border-left-color: #cfd6dd;
    background: linear-gradient(100deg, rgba(207,214,221,0.16), transparent 68%), var(--surface-offset);
}
/* #3 — bronze */
.cm-row.tier-bronze {
    border-color: rgba(205,138,78,0.42);
    border-left-color: #cd8a4e;
    background: linear-gradient(100deg, rgba(205,138,78,0.15), transparent 68%), var(--surface-offset);
}

/* Rank cell */
.cm-row-rank {
    width: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

.cm-rnum {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700; color: var(--muted);
}

/* Medalhões metálicos ornamentados (top 3) */
.cm-medal {
    position: relative;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 5px rgba(0,0,0,0.22);
}
.cm-medal::before {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
}
.cm-medal svg { width: 15px; height: 15px; }
.cm-medal-1 {
    background: linear-gradient(150deg, #fff1c4 0%, #f0c75a 42%, #b9821f 100%);
    color: #3a2606;
    box-shadow: 0 0 16px rgba(201,153,58,0.6), 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -2px 5px rgba(120,80,10,0.3);
}
.cm-medal-1::before { border-color: rgba(255,228,158,0.55); }
.cm-medal-2 { background: linear-gradient(150deg, #fbfdff 0%, #cdd4db 45%, #9aa2ab 100%); color: #2b2f33; }
.cm-medal-3 { background: linear-gradient(150deg, #f6cf9f 0%, #d49050 45%, #a4632c 100%); color: #381f0c; }

/* Row avatar */
.cm-row-av {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark,#8a6420), var(--gold,#c9993a));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #0d0b08;
    flex-shrink: 0; overflow: hidden;
}

.cm-row-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Row info */
.cm-row-info { flex: 1; min-width: 0; }

.cm-row-name {
    font-weight: 600; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cm-row-sub {
    font-size: 11px; color: var(--muted); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Row right */
.cm-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.cm-row-lv {
    font-family: var(--font-display);
    font-size: 14.5px; font-weight: 700; color: var(--gold-light); white-space: nowrap;
}

.cm-row-xpbar { width: 68px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }

.cm-row-xpfill {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dark,#8a6420), var(--gold,#c9993a));
    border-radius: 2px;
}

.cm-row-nosave {
    font-size: 10px; color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border); border-radius: 8px; padding: 2px 8px; white-space: nowrap;
}

/* Empty / no-results */
.cm-empty, .cm-no-results {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 64px 20px; color: var(--muted); font-size: 14px; text-align: center;
}

/* Pagination */
.cm-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }

.cm-page-info  { font-size: 13px; color: var(--muted); }

/* ============================================================ */
/* TEMA CLARO — superfícies elevadas (papel quente) + ouro fundo */
/* Estratégia: figura-fundo via cartões claros sobre o creme,    */
/* sombras suaves e acentos dourados profundos (registam no claro)*/
/* ============================================================ */

/* barra de stats + separador com contraste */
[data-theme="light"] .cm-stats-bar {
    background: #fdfaf3;
    border-color: rgba(138,100,50,0.18);
    box-shadow: 0 1px 2px rgba(120,90,40,0.05);
}
[data-theme="light"] .cm-stat-sep { background: rgba(138,100,50,0.18); }

/* ── Pódio: tiles elevados, ouro/prata/bronze ricos ── */
[data-theme="light"] .cm-podium-card {
    background: #fdfaf3;
    box-shadow: 0 4px 16px rgba(120,90,40,0.09);
}
[data-theme="light"] .cm-podium-card.rank-1 {
    --cm-accent: #a06a12;
    --cm-step-top: rgba(201,149,58,0.42);
    --cm-step-bot: rgba(201,149,58,0.08);
    background: linear-gradient(180deg, rgba(201,149,58,0.26), #fffdf8 62%);
    box-shadow: 0 8px 26px rgba(160,110,20,0.16);
}
[data-theme="light"] .cm-podium-card.rank-2 {
    --cm-accent: #74787d;
    --cm-step-top: rgba(120,124,132,0.30);
    --cm-step-bot: rgba(120,124,132,0.05);
    background: linear-gradient(180deg, rgba(120,124,132,0.22), #fbf9f4 62%);
}
[data-theme="light"] .cm-podium-card.rank-3 {
    --cm-accent: #a05c24;
    --cm-step-top: rgba(180,110,40,0.30);
    --cm-step-bot: rgba(180,110,40,0.05);
    background: linear-gradient(180deg, rgba(180,110,40,0.22), #fbf8f2 62%);
}

/* degrau: bisel claro no topo */
[data-theme="light"] .cm-pod-base { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }

/* glow dos números só funciona no escuro: trocar por contraste sólido */
[data-theme="light"] .cm-podium-card.rank-2 .cm-pod-rank,
[data-theme="light"] .cm-podium-card.rank-3 .cm-pod-rank { text-shadow: none; }

[data-theme="light"] .cm-podium-card.rank-1 .cm-pod-level { color: #a06a12; }
[data-theme="light"] .cm-podium-card.rank-2 .cm-pod-level { color: #74787d; }
[data-theme="light"] .cm-podium-card.rank-3 .cm-pod-level { color: #a05c24; }
[data-theme="light"] .cm-podium-card.rank-1 .cm-pod-medal { color: #c9971f; }
[data-theme="light"] .cm-podium-card.rank-2 .cm-pod-medal { color: #8d9298; }
[data-theme="light"] .cm-podium-card.rank-3 .cm-pod-medal { color: #b5702f; }

/* shimmer do #1 mais discreto (selector corrigido p/ o degrau real) */
[data-theme="light"] .cm-podium-card.rank-1 .cm-pod-base::before {
    background: linear-gradient(110deg, transparent 32%, rgba(255,238,195,0.55) 50%, transparent 68%);
}

/* ── Lista: tabletes claros sobre o creme, com spine dourada e glow ── */
[data-theme="light"] .cm-row {
    background: linear-gradient(180deg, #fffdf8, #fbf6ec 70%);
    border-color: rgba(138,100,50,0.18);
    border-left-color: rgba(201,149,58,0.42);
    box-shadow: 0 1px 2px rgba(120,90,40,0.05);
}
[data-theme="light"] .cm-row::after {
    background: linear-gradient(108deg, transparent 33%, rgba(201,149,58,0.14) 50%, transparent 67%);
}
[data-theme="light"] .cm-row:hover {
    border-color: rgba(201,149,58,0.5);
    border-left-color: #c9971f;
    box-shadow: -7px 0 22px -12px rgba(201,149,58,0.5), 0 8px 20px rgba(150,105,25,0.15);
}

[data-theme="light"] .cm-row.tier-gold {
    background: linear-gradient(100deg, rgba(201,149,58,0.22), #fffdf8 72%);
    border-color: rgba(201,149,58,0.5);
    border-left-color: #d9a83a;
    box-shadow: inset 0 0 0 1px rgba(201,149,58,0.18), 0 8px 26px -12px rgba(201,149,58,0.45);
}
[data-theme="light"] .cm-row.tier-gold::before {
    background: linear-gradient(110deg, transparent 40%, rgba(255,238,190,0.5) 50%, transparent 60%);
}
[data-theme="light"] .cm-row.tier-gold .cm-row-lv { color: #a06a12; text-shadow: none; }

[data-theme="light"] .cm-row.tier-silver {
    background: linear-gradient(100deg, rgba(150,158,166,0.15), #fffdf8 68%);
    border-color: rgba(150,158,166,0.45);
    border-left-color: #9aa2ab;
}
[data-theme="light"] .cm-row.tier-bronze {
    background: linear-gradient(100deg, rgba(180,110,40,0.14), #fffdf8 68%);
    border-color: rgba(180,110,40,0.42);
    border-left-color: #b5702f;
}

[data-theme="light"] .cm-rnum { color: rgba(24,22,15,0.5); }
[data-theme="light"] .cm-row-lv { color: #8a5f10; }

/* medalhões: realces de luz mais subtis no tema claro */
[data-theme="light"] .cm-medal { box-shadow: 0 2px 6px rgba(120,90,40,0.22), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 5px rgba(120,80,20,0.12); }
[data-theme="light"] .cm-medal-1 { box-shadow: 0 0 14px rgba(201,149,58,0.45), 0 2px 7px rgba(120,90,40,0.25), inset 0 1px 0 rgba(255,255,255,0.7); }

/* barras de XP: pista mais escura + enchimento ouro profundo */
[data-theme="light"] .cm-row-xpbar,
[data-theme="light"] .cm-pod-xp-bar { background: rgba(60,45,15,0.14); }
[data-theme="light"] .cm-row-xpfill,
[data-theme="light"] .cm-pod-xp-fill {
    background: linear-gradient(to right, #a06a12, #c9971f);
}

[data-theme="light"] .cm-pod-nosave { background: rgba(60,45,15,0.05); border-color: rgba(60,45,15,0.12); }
[data-theme="light"] .cm-row-nosave { background: rgba(60,45,15,0.05); border-color: rgba(60,45,15,0.12); }
[data-theme="light"] .cm-search-input,
[data-theme="light"] .cm-search-input:focus { background: #fff; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .cm-pod-body { padding: 14px 6px 12px; }
    .cm-podium-card.rank-1 .cm-pod-base { height: 92px; }
    .cm-podium-card.rank-2 .cm-pod-base { height: 70px; }
    .cm-podium-card.rank-3 .cm-pod-base { height: 54px; }
    .cm-podium-card.rank-1 .cm-pod-rank { font-size: 52px; }
    .cm-podium-card.rank-2 .cm-pod-rank { font-size: 42px; }
    .cm-podium-card.rank-3 .cm-pod-rank { font-size: 34px; }
    .cm-podium-card.rank-1 .cm-pod-hash { font-size: 22px; }
    .cm-podium-card.rank-2 .cm-pod-hash { font-size: 18px; }
    .cm-podium-card.rank-3 .cm-pod-hash { font-size: 15px; }
    .cm-pod-avatar { width: 48px; height: 48px; font-size: 17px; }
    .cm-podium-card.rank-1 .cm-pod-avatar { width: 58px; height: 58px; font-size: 20px; }
    .cm-pod-username { font-size: 12px; }
    .cm-pod-chapter { display: none; }
    .cm-row { padding: 10px 14px; gap: 10px; }
    .cm-row-av { width: 34px; height: 34px; }
    .cm-row-xpbar { width: 40px; }
}

/* ========================================= */
/* Páginas de erro (404 / 403 / 500)          */
/* ========================================= */
.error-page {
    position: relative;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    overflow: hidden;
}

/* glow dourado de fundo, centrado atrás do 404 */
.error-page::before {
    content: '';
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, 90vw);
    height: min(680px, 90vw);
    background: radial-gradient(circle, rgba(201,153,58,0.28) 0%, rgba(201,153,58,0.10) 38%, transparent 70%);
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}

.error-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 560px;
    width: 100%;
}

.error-code {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(120px, 28vw, 220px);
    line-height: 0.85;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 8px 60px rgba(255,255,255,0.10);
}

[data-theme="light"] .error-code {
    color: var(--text);
    text-shadow: none;
}

.error-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 4.5vw, 32px);
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    margin: 12px 0 0;
}

[data-theme="light"] .error-title { color: var(--text); }

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 200ms, border-color 200ms, color 200ms, transform 200ms, box-shadow 200ms;
}

.error-btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #0d0b08;
    font-weight: 600;
}

.error-btn-gold svg { stroke: #0d0b08; }

.error-btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,153,58,0.35);
}

.error-btn-ghost {
    background: none;
    border: 1px solid rgba(201,153,58,0.4);
    color: rgba(255,255,255,0.7);
}

.error-btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(201,153,58,0.08);
}

[data-theme="light"] .error-btn-ghost {
    color: var(--text);
    border-color: var(--gold-border);
}

@media (max-width: 480px) {
    .error-actions { flex-direction: column; }
    .error-btn { width: 100%; justify-content: center; }
}
