* {
  box-sizing: border-box;
}

:root {
  --bg: #09080f;
  --panel: #12101d;
  --panel-strong: #191625;
  --line: #352f46;
  --line-soft: #2b2540;
  --text: #efe4d7;
  --muted: #c9bfd6;
  --brand: #f0d59e;
  --brand-soft: #f8e6bd;
  --glow-a: #4f3b8d;
  --glow-b: #b75ea2;
  --glow-c: #ffd57a;
  --section-gutter: clamp(18px, 4vw, 56px);
  --topbar-h: 74px;
  --btn-radius: 12px;
  --btn-height: 44px;
  --btn-font: inherit;
}

:root {
  --container-width: min(1220px, calc(100% - 36px));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
  font-size: clamp(16px, 0.82vw + 13px, 21px);
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background:
    radial-gradient(1400px 760px at 18% -12%, rgba(93, 61, 171, 0.22), transparent 50%),
    radial-gradient(1100px 620px at 86% 2%, rgba(176, 82, 128, 0.22), transparent 50%),
    linear-gradient(180deg, #07060d 0%, #0d0c15 45%, #05040a 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(10, 9, 15, 0.42), rgba(10, 9, 15, 0.7)),
    radial-gradient(300px 140px at 12% 5%, rgba(176, 82, 128, 0.22), transparent 70%),
    radial-gradient(320px 180px at 88% 0%, rgba(183, 94, 162, 0.2), transparent 68%),
  repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 32px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.011),
      rgba(255, 255, 255, 0.011) 1px,
      transparent 1px,
      transparent 48px
  );
  line-height: 1.58;
}

#status-message {
  position: sticky;
  top: 76px;
  z-index: 30;
  width: var(--container-width);
  margin: 8px auto 0;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(20, 17, 29, 0.92);
  border: 1px solid rgba(240, 213, 158, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: none;
}

body.campamento-fluid #status-message {
  width: calc(100% - (2 * clamp(14px, 3vw, 24px)));
  max-width: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 74px;
  z-index: 50;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.94), rgba(5, 5, 8, 0.72));
  border-bottom: 1px solid rgba(240, 213, 158, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

body.campamento-fluid .topbar {
  padding-left: clamp(14px, 3vw, 24px);
  padding-right: clamp(14px, 3vw, 24px);
}

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

.brand-mark {
  margin: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #20162f;
  border: 1px solid rgba(240, 213, 158, 0.75);
  background: radial-gradient(circle at 20% 20%, #ffe8b5, #6f58a0 62%, #20182f 100%);
  box-shadow: 0 0 20px rgba(240, 213, 158, 0.28);
}

.brand h1 {
  margin: 0;
  line-height: 1;
  font-size: 1.05rem;
}

.brand-kicker {
  margin: 0;
  color: #e0c58f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
}

.topbar nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}

.topbar nav::-webkit-scrollbar {
  display: none;
}

.topbar a {
  color: #ece2f4;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: var(--brand-soft);
}

.topbar a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transition: transform 0.2s ease;
}

.topbar a:hover::after,
.topbar a:focus-visible::after {
  transform: scaleX(1);
}

.ghost-button {
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  color: #27190f;
  border: 1px solid rgba(255, 212, 138, 0.75);
  border-radius: var(--btn-radius);
  padding: 0 14px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  height: var(--btn-height);
  min-width: 132px;
  margin: 0;
}

.topbar .ghost-button {
  min-width: max-content;
  width: auto;
  padding: 0 16px;
  font-size: 0.84rem;
  color: #27190f;
  margin-top: 0;
  margin-bottom: 0;
  align-self: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.topbar .ghost-button + .ghost-button {
  margin-left: 6px;
}

.topbar .ghost-button::after {
  content: none;
}

.topbar .ghost-button:hover,
.topbar .ghost-button:focus-visible {
  color: #27190f;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topbar-actions .ghost-button {
  margin: 0;
}

.btn.btn-primary {
  border: 1px solid rgba(255, 212, 138, 0.45);
}

.btn:hover,
.btn:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(168, 132, 77, 0.2), 0 15px 32px rgba(0, 0, 0, 0.32);
  outline: none;
  opacity: 0.98;
}

.btn:active,
.ghost-button:active,
button:active {
  transform: translateY(0);
}

.topbar a,
.ghost-button,
button,
a.btn {
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

main {
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 0;
  position: relative;
  z-index: 1;
}

.section-band {
  width: 100%;
  margin: 0;
  background: linear-gradient(180deg, #120f1c, #0e0b16);
  border: 0;
  border-radius: 0;
  padding: clamp(36px, 5vw, 62px) var(--section-gutter) clamp(32px, 4.6vw, 58px);
  position: relative;
  box-shadow: none;
}

body.campamento-fluid .section-band {
  padding-left: clamp(14px, 3vw, 24px);
  padding-right: clamp(14px, 3vw, 24px);
}

body.campamento-fluid .section-kicker {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.section-band-tall {
  min-height: clamp(420px, 66vh, 760px);
}

#historia.section-band-tall,
#como-jugar.section-band-tall,
#ranking.section-band-tall,
#ayuda.section-band-tall {
  margin-top: 0;
  min-height: calc(100dvh - var(--topbar-h));
  scroll-margin-top: 84px;
  box-sizing: border-box;
}

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.section-kicker {
  margin: 0;
  color: #b9a8cf;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

h2 {
  margin: 6px 0 14px;
  font-size: clamp(1.8rem, 2.55vw, 2.55rem);
  letter-spacing: 0.01em;
}

h3,
h4 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

p,
li {
  color: var(--text);
  line-height: 1.62;
  font-size: 1.02rem;
}

a {
  color: #f6dca2;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 118px max(24px, calc((100vw - 1220px) / 2)) 28px;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(4, 3, 7, 0.5) 0%, rgba(8, 7, 14, 0.28) 36%, rgba(8, 7, 14, 0.08) 64%, rgba(3, 3, 6, 0.36) 100%),
    linear-gradient(155deg, #07050b 0%, #140d19 52%, #07050a 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  box-shadow: none;
  display: grid;
  place-items: center;
  gap: 0;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(155deg, #07050b 0%, #140d19 52%, #07050a 100%);
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.02) contrast(1.08);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(72% 56% at 50% 20%, rgba(255, 238, 191, 0.16), transparent 42%),
    radial-gradient(60% 44% at 15% 82%, rgba(177, 73, 125, 0.22), transparent 44%),
    radial-gradient(52% 52% at 86% 40%, rgba(120, 84, 220, 0.2), transparent 40%);
  background-blend-mode: screen;
  opacity: 0.78;
  filter: saturate(1.38) contrast(1.14) brightness(1.08);
  transform-origin: center;
  animation: heroBackgroundDrift 18s ease-in-out infinite alternate;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.1) 54%, rgba(0, 0, 0, 0.68) 100%),
    radial-gradient(680px 420px at 36% 45%, rgba(255, 206, 113, 0.18), transparent 64%),
    radial-gradient(620px 420px at 72% 34%, rgba(163, 65, 108, 0.3), transparent 68%);
}

.landing-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  mix-blend-mode: screen;
  z-index: 0;
}

.landing-aura--one {
  width: 840px;
  height: 840px;
  top: -260px;
  left: -220px;
  background: radial-gradient(circle, rgba(246, 195, 104, 0.18), transparent 70%);
  animation: heroAuraDrift 18s ease-in-out infinite alternate;
}

.landing-aura--two {
  width: 780px;
  height: 780px;
  right: -180px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(139, 47, 75, 0.28), transparent 68%);
  animation: heroAuraDrift 22s ease-in-out infinite alternate-reverse;
}

.hero-scrim {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 140px
    );
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: block;
  max-width: min(900px, calc(100vw - 36px));
  padding-top: 0;
  text-align: center;
}

.hero-copy {
  padding-right: 0;
}

.landing-hero .hero-stats,
.faction-strip {
  position: relative;
  z-index: 3;
}

.hero-copy h2 {
  margin: 0 0 24px;
  line-height: 0.92;
  max-width: 100%;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.34), 0 20px 46px rgba(0, 0, 0, 0.95);
}

.hero-copy__muted {
  color: #efe1cf;
  max-width: 62ch;
  margin: 18px auto 0;
  font-size: 1.24rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.faction-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  width: 100%;
}

.faction-card,
.stat-card {
  border: 0;
  border-left: 1px solid rgba(240, 213, 158, 0.28);
  border-radius: 0;
  padding: 12px 18px;
  background: rgba(5, 4, 8, 0.48);
  backdrop-filter: blur(8px);
}

.faction-card:first-child,
.stat-card:first-child {
  border-left: 0;
}

.eyebrow {
  margin: 0;
  color: var(--glow-c);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-pills span {
  border: 1px solid rgba(240, 213, 158, 0.2);
  border-radius: 0;
  padding: 8px 12px;
  background: rgba(5, 4, 8, 0.56);
  color: #dbc09c;
  font-size: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.08;
}

.hero-pills span strong {
  color: #f5ddb0;
  margin-bottom: 2px;
}

.hero-pills span small {
  color: #b5a0ce;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.faction-gallery {
  margin-top: 16px;
  position: relative;
  padding-top: 12px;
  border-top: 1px solid rgba(248, 230, 189, 0.12);
}

.story-lead {
  margin: 14px 0 18px;
  color: #ffe4b7;
  font-size: 1.08rem;
  line-height: 1.64;
  font-weight: 600;
}

.faction-banners {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.faction-banner-card {
  margin: 0;
  border: 1px solid #3a3252;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(35, 29, 45, 0.9), rgba(20, 16, 28, 0.8));
  padding: 10px;
  display: grid;
  gap: 8px;
  align-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.faction-banner-card:hover,
.faction-banner-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 230, 177, 0.48);
}

.faction-banner-card img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(248, 230, 189, 0.35);
  background: #080710;
  filter: brightness(1.15) contrast(1.08) saturate(1.08);
  transition: filter 0.2s ease;
}

.faction-banner-card:hover img,
.faction-banner-card:focus-visible img {
  filter: brightness(1.22) contrast(1.12) saturate(1.2);
}

.faction-banner-card figcaption {
  margin: 0;
  color: #f5d7a3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
}

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

.hero-status-bar {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-status-bar span {
  padding: 8px 10px;
  border-radius: 0;
  border: 1px solid rgba(255, 223, 145, 0.4);
  color: #f6deb4;
  background: linear-gradient(180deg, rgba(24, 18, 34, 0.78), rgba(18, 15, 24, 0.72));
  font-size: 0.78rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  min-width: 172px;
  padding: 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  height: var(--btn-height);
  box-sizing: border-box;
  color: #27190f;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
}


.btn-primary {
  background: linear-gradient(180deg, #fff0c7, #d7a84f);
  border-color: #ffd48a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.42);
  min-width: 170px;
  font-size: 0.94rem;
}

#home-story-full-link,
#home-story-full-link:link,
#home-story-full-link:visited,
#home-story-full-link:hover,
#home-story-full-link:focus-visible,
#home-story-full-link:active {
  margin-top: 22px;
  color: #27190f !important;
  background: linear-gradient(180deg, #fff0c7, #d7a84f) !important;
  border-color: #ffd48a !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.42) !important;
}

.btn-ghost {
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  color: #27190f;
  border-color: rgba(255, 212, 138, 0.75);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.stat-card strong {
  color: #f5d8aa;
  margin: 6px 0 5px;
  display: block;
  font-size: 1.12rem;
}

.stat-label,
.faction-card p {
  margin: 0;
  color: #b9aac9;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.74rem;
}

.faction-card strong {
  color: #f6dec0;
}

@keyframes heroBackgroundDrift {
  0% {
    transform: scale(1.03) translate3d(-10px, 0, 0);
  }

  100% {
    transform: scale(1.08) translate3d(14px, -8px, 0);
  }
}
@keyframes heroAuraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -12px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-16px, 8px, 0) scale(1.05);
  }
}

@keyframes riftPulse {
  0%,
  100% {
    border-color: rgba(255, 237, 190, 0.15);
    opacity: 0.6;
  }
  50% {
    border-color: rgba(255, 237, 190, 0.44);
    opacity: 1;
  }
}

@keyframes heroImageFloat {
  0% {
    transform: scale(1.07) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.12) translate3d(-10px, 6px, 0);
  }

  100% {
    transform: scale(1.08) translate3d(8px, -4px, 0);
  }
}

@keyframes heroGlow {
  0% {
    opacity: 0.35;
  }

  100% {
    opacity: 0.75;
  }
}

@keyframes heroScan {
  0% {
    background-position: 130% 0, 0 0;
  }

  100% {
    background-position: -130% 0, 0 0;
  }
}

@keyframes heroOrbOne {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(10px, -8px) scale(1.12);
  }

  100% {
    transform: translate(-6px, 12px) scale(0.95);
  }
}

@keyframes heroOrbTwo {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-14px, 8px) rotate(180deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

@keyframes heroOrbThree {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(14px, -4px) scale(0.9);
  }

  100% {
    transform: translate(-10px, 10px) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .landing-hero {
    animation: none;
  }

  .landing-hero::before,
  .landing-hero::after,
  .landing-aura,
  .hero-scrim {
    animation: none;
  }
}

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

.landing-hero + .section-band {
  margin-top: 0;
  border-top: 0;
}

.section-band + .section-band {
  margin-top: 0;
}

.landing-hero + .section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 15, 22, 0), rgba(14, 11, 22, 0.82));
}

.card,
.panel-sub,
.account-side,
.invasion-counter-row,
.ranking-grid > div,
.support-grid > li {
  border: 1px solid #2d2640;
  border-radius: 11px;
  background: linear-gradient(170deg, rgba(34, 29, 45, 0.9), rgba(25, 22, 34, 0.8));
  padding: 12px;
}

.three-col-text article p,
.panel-sub li {
  margin: 7px 0 0;
  color: #c6b2d2;
}

.three-col-text article h3,
.panel-sub h3 {
  margin-bottom: 8px;
}

.guide-invasion {
  margin: 36px auto 0;
  max-width: min(1040px, calc(100% - 12px));
  width: 100%;
  padding: 16px 12px 0;
  text-align: center;
}

.guide-invasion h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: #ffe2a0;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.guide-invasion::before {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  margin: 0 auto 24px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 213, 158, 0.15) 12%,
    rgba(240, 213, 158, 0.55) 50%,
    rgba(240, 213, 158, 0.15) 88%,
    transparent
  );
}

body.admin-page::before {
  display: none;
}

.guide-invasion p {
  margin: 0 auto;
  max-width: 68ch;
  font-size: 1.24rem;
  line-height: 1.74;
  color: #efe0bf;
}

.world-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.summary-item {
  margin: 0;
  padding: 12px 14px 12px;
  border: 1px solid #3a3252;
  border-radius: 10px;
  background: linear-gradient(175deg, rgba(47, 41, 64, 0.88), rgba(24, 20, 35, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.summary-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ffce6c, #f7e2b2 45%, #f8b7de);
}

.summary-kicker {
  margin: 0 0 8px;
  color: #f7e2b2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid #f8e6bd;
  box-shadow: 0 0 0 3px rgba(248, 230, 189, 0.1);
}

.summary-copy {
  margin: 0;
  color: #d4c4e3;
  line-height: 1.54;
  font-size: 0.98rem;
}

.summary-line {
  margin-top: 11px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 230, 189, 0.2);
  background: rgba(12, 10, 16, 0.82);
  overflow: hidden;
}

.summary-fill {
  display: block;
  width: var(--w);
  min-width: 6%;
  height: 100%;
  background: linear-gradient(90deg, #7b5de8, #f7b45f);
}

.summary-fill--alert {
  background: linear-gradient(90deg, #b75ea2, #f8bb7d);
}

.summary-fill--danger {
  background: linear-gradient(90deg, #d1495b, #f6bf6f);
}

.summary-fill--good {
  background: linear-gradient(90deg, #58b89f, #6fe2bb);
}

@media (min-width: 1180px) {
  .world-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.panel-sub .support-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.panel-sub .support-list li {
  position: relative;
  margin: 0;
  padding-left: 34px;
  color: #d6c7e7;
  line-height: 1.55;
  font-size: 0.99rem;
}

.panel-sub .support-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.8rem;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #f8e6bd;
  background: radial-gradient(circle, #ffd58a 0%, rgba(248, 230, 189, 0) 65%);
  box-shadow: 0 0 0 3px rgba(248, 230, 189, 0.09);
}

.panel-sub {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-sub h3 {
  margin: 0;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.history-layout {
  align-items: start;
  gap: 16px;
}

.history-content {
  max-width: 66ch;
}

.history-content p {
  margin-bottom: 12px;
}

.history-summary-panel {
  padding-top: 18px;
  padding-bottom: 18px;
  border-color: rgba(255, 212, 138, 0.16);
  background: linear-gradient(175deg, rgba(42, 34, 55, 0.95), rgba(24, 20, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(0, 0, 0, 0.38);
}

.history-summary-panel .world-summary {
  margin-top: 12px;
  gap: 10px;
}

.support-list {
  margin: 0;
  padding-left: 18px;
}

.support-list li {
  margin-bottom: 8px;
  color: #d5c6de;
  font-size: 1rem;
}

.support-list.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.support-faq li {
  margin: 0;
  padding: 14px;
  min-height: 120px;
  border: 1px solid #312b49;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(33, 28, 44, 0.96), rgba(22, 18, 33, 0.86));
}

.support-faq li h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.support-faq li p {
  margin: 0;
  color: #d6c7e7;
  line-height: 1.5;
}

.support-faq li a {
  color: var(--brand-soft);
}

.support-guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-card-link {
  display: inline-flex;
  width: fit-content;
  height: auto;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 4px;
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  color: #000000;
  border: 1px solid rgba(255, 212, 138, 0.75);
  font-weight: 700;
}

.guide-card-link:hover,
.guide-card-link:focus-visible {
  color: #000000;
}

.support-faq .guide-card-link,
.support-faq .guide-card-link:visited,
.support-faq .guide-card-link:hover,
.support-faq .guide-card-link:focus-visible {
  color: #000000;
}

.account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.6fr 1fr;
}

label {
  display: block;
  color: #efe0c7;
  margin-bottom: 10px;
  font-size: 1rem;
}

.auth-shell {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.auth-page .auth-shell {
  max-width: min(1000px, 100%);
  width: 100%;
  margin-inline: auto;
}

.auth-page .section-band p {
  max-width: 720px;
}

.auth-page .section-band {
  padding-top: clamp(24px, 4vw, 36px);
  padding-bottom: clamp(22px, 3.4vw, 34px);
}

.auth-page .section-band > h2 {
  margin-bottom: 12px;
}

.auth-compact {
  padding-top: 18px;
  padding-bottom: 16px;
}

.auth-compact .auth-layout {
  margin-top: 10px;
  gap: 10px;
  align-items: start;
}

.auth-compact .auth-shell .panel,
.auth-compact .auth-layout .panel,
.auth-compact .auth-side-note {
  padding: 12px;
}

.auth-compact .auth-form {
  gap: 8px;
  font-size: 0.95rem;
}

.auth-compact .auth-form-intro,
.auth-compact .auth-note,
.auth-compact .register-rules,
.auth-compact .auth-start-list,
.auth-compact .auth-start-list li,
.auth-compact .auth-side-note p {
  margin-top: 0;
}

.auth-compact .auth-form-card {
  gap: 8px;
}

.auth-compact .input-hint {
  margin-top: 4px;
  font-size: 0.82rem;
}

.auth-compact .register-rules {
  margin-bottom: 2px;
  gap: 6px;
}

.auth-compact .register-rules li {
  line-height: 1.28;
}

.auth-compact .register-feedback {
  min-height: 1rem;
  margin-top: 2px;
}

.auth-compact .button-row {
  margin-top: 2px;
}

.auth-compact button {
  --btn-height: 40px;
  height: 40px;
}

.auth-compact .auth-start-list li + li {
  margin-top: 4px;
}

.auth-form-page.auth-page .auth-compact {
  padding-top: 22px;
  padding-bottom: 10px;
}

.auth-form-page.auth-page .auth-layout {
  margin-top: 16px;
}

.auth-form-page .section-band {
  padding-top: 36px;
}

.auth-form-page .section-band > h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.auth-form-page .section-kicker {
  color: #f5d7a3;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(245, 215, 163, 0.35);
}

.auth-form-page.auth-page {
  margin-top: 0;
  padding-top: var(--topbar-h);
}

.auth-pass-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.auth-compact label {
  margin-bottom: 6px;
}

.auth-compact input,
.auth-compact select,
.auth-compact button {
  padding-top: 8px;
  padding-bottom: 8px;
  margin-top: 3px;
}

.auth-compact .auth-pass-row label {
  margin-bottom: 3px;
}

.auth-layout {
  margin-top: 16px;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.auth-shell .panel {
  padding: 15px;
}

.auth-shell .panel p {
  margin: 0 0 12px;
  color: #d5c7e7;
}

.auth-form {
  display: grid;
  gap: 10px;
  font-size: 0.97rem;
}

.auth-form .button-row {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.auth-form .button-row button {
  width: 100%;
  flex: auto;
}

.auth-form-card {
  display: grid;
  gap: 10px;
}

.auth-form-intro {
  margin: 0 0 10px;
  color: #d5c7e7;
  font-size: 0.96rem;
}

.input-hint {
  display: block;
  margin-top: 6px;
  color: #bcaec8;
  font-size: 0.85rem;
}

.input-hint.error {
  color: #ff8f9d;
}

.input-hint.valid {
  color: #8fefbf;
}

.register-rules {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #d5c7e7;
}

.register-rules li::before {
  content: "▸";
  color: #f6dca2;
  margin-right: 8px;
}

.register-feedback {
  min-height: 1.2rem;
  color: #ffdab5;
  font-size: 0.95rem;
  font-weight: 600;
}

.register-feedback.error {
  color: #ff8f9d;
}

.register-feedback.success {
  color: #8fefbf;
}

.auth-success-modal {
  border: none;
  padding: 0;
  margin: auto;
  min-width: min(92vw, 460px);
  background: transparent;
  color: #efe4d7;
}

.auth-success-modal::backdrop {
  background: rgba(4, 3, 8, 0.78);
}

.auth-success-modal[open] {
  display: block;
}

.auth-success-modal__panel {
  width: min(92vw, 460px);
  border-radius: 14px;
  border: 1px solid #352f46;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  padding: 22px;
}

.auth-success-modal__panel h3 {
  margin: 0 0 10px;
}

.auth-success-modal__panel p {
  margin: 0 0 12px;
  color: #d6c8df;
}

.auth-success-modal__countdown {
  color: #f6dca2;
}

.auth-success-modal__panel .btn {
  width: 100%;
}

.auth-start-list {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #d5c7e7;
}

.auth-start-list li + li {
  margin-top: 8px;
}

.auth-note {
  margin-top: 8px;
  color: #d0bfd8;
}

.auth-note a {
  color: #f6dca2;
}

.auth-side-note {
  border-left: 1px solid #3a3252;
  padding: 15px;
  color: #d5c7e7;
}

.auth-side-note h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.auth-side-note p,
.auth-side-note li,
.auth-side-note a {
  font-size: 0.96rem;
}

input,
select,
button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #4a3d5c;
  background: #10101a;
  color: var(--text);
  padding: 9px;
  margin-top: 4px;
  font: inherit;
}

button {
  border: 1px solid rgba(255, 212, 138, 0.75);
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  color: #27190f;
  cursor: pointer;
  border-radius: var(--btn-radius);
  height: var(--btn-height);
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.96rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: var(--brand-soft);
  transform: translateY(-1px);
}

.btn.btn-ghost:hover,
.btn.btn-ghost:focus-visible,
.hero-actions .btn:hover,
.hero-actions .btn:focus-visible {
  opacity: 0.94;
  box-shadow: 0 0 0 3px rgba(176, 130, 70, 0.2), 0 12px 26px rgba(0, 0, 0, 0.3);
}

#action-timer {
  color: #8fd8f6;
}

.button-row {
  display: flex;
  gap: 10px;
}

.button-row button {
  width: auto;
  flex: 1;
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  border-color: rgba(255, 212, 138, 0.75);
  min-width: 140px;
  font-size: 0.9rem;
}

button:disabled,
button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.35);
  box-shadow: none;
}

.inline-note {
  margin-top: 10px;
  border: 1px dashed #4f4662;
  border-radius: 10px;
  padding: 10px;
  color: #c5c4db;
}

.ranking-grid h3 {
  margin-top: 0;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.ranking-grid-home .ranking-characters {
  grid-column: 1 / -1;
}

.invasion-counter-grid {
  display: grid;
  gap: 10px;
}

.invasion-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #3d3351;
  border-radius: 10px;
  padding: 12px;
  color: #ece2fa;
}

.invasion-counter-row span {
  font-size: 1.05rem;
}

.invasion-counter-row strong {
  font-size: 1.35rem;
  color: #ffdf9b;
}

.ranking-table-wrap {
  overflow: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 560px;
}

.ranking-table th,
.ranking-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(168, 132, 77, 0.2);
  white-space: nowrap;
}

.ranking-table th {
  color: #ffdca2;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-table td {
  color: #ece2fa;
}

.ranking-table tbody tr:first-child td {
  border-top: 1px solid rgba(168, 132, 77, 0.3);
}

.ranking-table tbody tr:nth-child(even) {
  background: rgba(24, 18, 33, 0.45);
}

.ranking-full-link-wrap {
  margin-top: 16px;
  text-align: center;
}

.ranking-tabs {
  margin: 16px 0 14px;
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  justify-content: center;
}

.ranking-tab {
  padding: 8px 14px;
  border: 1px solid rgba(255, 212, 138, 0.4);
  border-radius: 8px;
  background: rgba(24, 18, 33, 0.85);
  color: #ece2fa;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 0.9rem;
}

.ranking-tab:hover,
.ranking-tab.is-active {
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  color: #27190f;
}

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

.ranking-tab-panel.is-active {
  display: block;
}

.ranking-full-main {
  min-height: calc(100dvh - var(--topbar-h));
  padding-top: var(--topbar-h);
  padding-bottom: 0;
}

.ranking-full-main .section-band {
  padding-top: 14px;
}

.campamento-main {
  position: relative;
  z-index: 1;
  padding-top: var(--topbar-h);
}

.campamento-shell {
  padding-top: 0;
  padding-bottom: 34px;
  min-height: calc(100dvh - var(--topbar-h));
}

.dashboard-root {
  background: rgba(11, 11, 19, 0.74);
  border: 1px solid #2e2840;
  border-radius: 14px;
  padding: 0;
}

.dashboard-root::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 250px;
  width: 1px;
  background: rgba(240, 213, 158, 0.15);
  pointer-events: none;
  z-index: 2;
}

.dashboard-shell {
  min-height: calc(100dvh - var(--topbar-h) - 36px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
}

.dashboard-sidebar {
  background: linear-gradient(180deg, #0f0b19, #0c0813);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}

.dashboard-brand-wrap .brand-mark {
  width: 34px;
  height: 34px;
}

.dashboard-brand-wrap h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.dashboard-nav {
  display: grid;
  gap: 6px;
  padding-right: 12px;
}

.dashboard-side-link {
  display: block;
  width: 100%;
  text-decoration: none;
  border: 1px solid transparent;
  color: #dfd0ea;
  border-radius: 8px;
  padding: 9px 11px;
  line-height: 1.2;
  font-weight: 700;
  font-size: 0.92rem;
}

.dashboard-side-link:hover,
.dashboard-side-link:focus-visible {
  color: #27190f;
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  border-color: rgba(255, 212, 138, 0.75);
}

.dashboard-side-link.is-active {
  background: linear-gradient(180deg, #ffe8ac, #d0a54c);
  color: #27190f;
  border-color: rgba(255, 212, 138, 0.8);
}

.dashboard-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 18px;
}

.dashboard-page-head h2 {
  margin: 0 0 4px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.dashboard-kicker {
  margin: 0 0 4px;
}

.dashboard-copy {
  margin: 0;
  color: #d7c9e2;
}

.dashboard-panel {
  margin: 0;
}

.campamento-section {
  margin: 0;
}

.campamento-subtitle {
  margin-top: 4px;
  margin-bottom: 12px;
  color: #d9cae4;
}

.campamento-status {
  border-radius: 10px;
  border: 1px solid transparent;
  margin: 0 0 12px;
  min-height: 1.2rem;
  padding: 8px 10px;
  color: #e7d4ad;
}

.campamento-status.is-success {
  border-color: #4fce96;
  color: #d8ffe8;
  background: rgba(42, 82, 66, 0.22);
}

.campamento-status.is-warning {
  border-color: #d9a96b;
  color: #ffe0b1;
  background: rgba(104, 70, 31, 0.2);
}

.campamento-status.is-error {
  border-color: #df7a8a;
  color: #ffd0d9;
  background: rgba(109, 42, 58, 0.2);
}

.campamento-status:empty {
  min-height: 0;
  padding: 0;
  border: 0;
}

.campamento-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Compatibilidad defensiva por si un fragmento mantiene estilos legacy */
.campamento-grid > .campamento-card,
.campamento-grid > section {
  width: 100%;
  gap: 12px;
}

/* Mantiene compatibilidad si algún fragmento histórico sigue usando .campamento-column */
.campamento-column {
  display: grid;
  gap: 12px;
}

.campamento-card {
  display: grid;
  gap: 10px;
}

.campamento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.campamento-training-view {
  display: grid;
  gap: 12px;
  padding: 0;
}

.campamento-clans-view {
  display: grid;
  gap: 14px;
  padding: 0;
}

.clans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 12px;
}

.clans-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(240, 213, 158, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 14, 28, 0.68);
}

.clans-panel-head h4 {
  margin: 0;
  color: #f3e5d6;
  font-size: 1.08rem;
}

.clan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clan-tabs[hidden],
.clan-tab-panel[hidden],
.clans-layout[hidden],
.clan-page-head[hidden],
.clan-page-intro[hidden] {
  display: none;
}

.clan-tab {
  width: auto;
  min-width: 110px;
  border: 1px solid rgba(240, 213, 158, 0.26);
  border-radius: 8px;
  padding: 8px 14px;
  color: #f3e5d6;
  background: rgba(18, 14, 28, 0.72);
  box-shadow: none;
}

.clan-tab.is-active {
  color: #27190f;
  border-color: rgba(240, 213, 158, 0.72);
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
}

.my-clan-dashboard {
  display: grid;
  gap: 12px;
}

.my-clan-banner {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(240, 213, 158, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(240, 213, 158, 0.13), rgba(183, 94, 162, 0.08)),
    rgba(8, 7, 12, 0.28);
}

.my-clan-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 213, 158, 0.48);
  border-radius: 8px;
  color: #27190f;
  font-size: 1.55rem;
  font-weight: 900;
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
}

.my-clan-banner h5,
.my-clan-detail-card h6,
.my-clan-admin-card h6,
.my-clan-membership-card h6 {
  margin: 0;
  color: #f3e5d6;
}

.my-clan-banner h5 {
  font-size: 1.45rem;
}

.my-clan-banner p,
.my-clan-admin-card p,
.my-clan-membership-card p {
  margin: 4px 0 0;
  color: #d8c8df;
}

.my-clan-role-badge {
  border: 1px solid rgba(79, 206, 150, 0.42);
  border-radius: 999px;
  padding: 7px 11px;
  color: #d8ffe8;
  background: rgba(34, 86, 64, 0.32);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.my-clan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.my-clan-metrics article,
.my-clan-detail-card,
.my-clan-admin-card,
.my-clan-membership-card {
  border: 1px solid rgba(240, 213, 158, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 7, 12, 0.34);
}

.my-clan-metrics span,
.my-clan-detail-row span,
.my-clan-roster span {
  display: block;
  color: #c8b7d4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.my-clan-metrics strong {
  display: block;
  margin-top: 5px;
  color: #f3e5d6;
  font-size: 1.08rem;
}

.my-clan-columns {
  display: grid;
  grid-template-columns: minmax(190px, 0.48fr) minmax(0, 1.52fr);
  gap: 10px;
}

.my-clan-detail-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.my-clan-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(240, 213, 158, 0.12);
  padding-top: 8px;
}

.my-clan-detail-row strong,
.my-clan-roster-table strong {
  color: #f3e5d6;
}

.my-clan-roster-wrap {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.my-clan-roster-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.my-clan-roster-table th,
.my-clan-roster-table td {
  border-bottom: 1px solid rgba(240, 213, 158, 0.09);
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}

.my-clan-roster-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #e8c990;
  background: rgba(18, 14, 28, 0.96);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.my-clan-roster-table th:nth-child(1),
.my-clan-roster-table td:nth-child(1) {
  width: 46%;
}

.my-clan-roster-table th:nth-child(2),
.my-clan-roster-table td:nth-child(2) {
  width: 30%;
}

.my-clan-roster-table th:nth-child(3),
.my-clan-roster-table td:nth-child(3) {
  width: 10%;
}

.my-clan-roster-table th:nth-child(4),
.my-clan-roster-table td:nth-child(4) {
  width: 14%;
}

.my-clan-roster-table td {
  color: #d8c8df;
  font-size: 0.88rem;
  font-weight: 700;
}

.my-clan-roster-table strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-clan-role-select {
  width: min(100%, 150px);
  min-height: 28px;
  border: 1px solid rgba(240, 213, 158, 0.18);
  border-radius: 5px;
  padding: 3px 7px;
  color: #d8c8df;
  background: rgba(18, 14, 28, 0.42);
  font-size: 0.82rem;
  font-weight: 800;
}

.my-clan-role-select:focus {
  outline: 1px solid rgba(240, 213, 158, 0.42);
}

.my-clan-role-fixed {
  color: #c8b7d4;
  font-size: 0.82rem;
  font-weight: 800;
}

.my-clan-admin-card,
.my-clan-membership-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.my-clan-admin-card button,
.my-clan-membership-card button {
  width: auto;
  min-width: 150px;
}

.campamento-invasion-view {
  display: grid;
  gap: 14px;
  padding: 0;
}

.invasion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.invasion-header h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.invasion-header p {
  margin: 0;
  color: #ddd0e7;
  max-width: 760px;
}

.invasion-state {
  border: 1px solid rgba(240, 213, 158, 0.34);
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffe1a4;
  background: rgba(20, 16, 28, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.invasion-state.is-active {
  border-color: rgba(223, 122, 138, 0.5);
  color: #ffd0d9;
}

.invasion-state.is-joined {
  border-color: rgba(79, 206, 150, 0.5);
  color: #d8ffe8;
}

.invasion-countdown-card {
  border: 1px solid rgba(183, 94, 162, 0.36);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(183, 94, 162, 0.14), rgba(240, 213, 158, 0.06)),
    rgba(15, 12, 22, 0.78);
}

.invasion-countdown-card .timer-note {
  color: #ffe1a4;
  font-size: 1.18rem;
  font-weight: 800;
}

.invasion-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.invasion-stat-grid article,
.invasion-action-panel {
  border: 1px solid rgba(240, 213, 158, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: rgba(18, 14, 28, 0.68);
}

.invasion-stat-grid span {
  display: block;
  color: #c8b7d4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invasion-stat-grid strong {
  display: block;
  margin-top: 5px;
  color: #f3e5d6;
  font-size: 1rem;
}

.invasion-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.invasion-action-panel h4 {
  margin: 0 0 5px;
  color: #f3e5d6;
  font-size: 1.1rem;
}

.invasion-action-panel p {
  margin: 0;
  color: #d8c8df;
}

.invasion-lock-note {
  margin-top: 8px !important;
  color: #ffd0d9 !important;
}

.invasion-action-panel button {
  min-width: 180px;
}

.invasion-check-grid,
.invasion-info-grid,
.invasion-history-list {
  display: grid;
  gap: 10px;
}

.invasion-check-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.invasion-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invasion-check-grid article,
.invasion-info-grid article,
.invasion-history-preview {
  border: 1px solid rgba(240, 213, 158, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: rgba(18, 14, 28, 0.68);
}

.invasion-check-grid article.is-ok {
  border-color: rgba(79, 206, 150, 0.42);
}

.invasion-check-grid article.is-bad {
  border-color: rgba(223, 122, 138, 0.44);
}

.invasion-check-grid span,
.invasion-history-list span {
  display: block;
  color: #c8b7d4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invasion-check-grid strong,
.invasion-history-list strong {
  display: block;
  margin-top: 4px;
  color: #f3e5d6;
}

.invasion-info-grid h4,
.invasion-history-head h4 {
  margin: 0 0 5px;
  color: #f3e5d6;
}

.invasion-info-grid p,
.invasion-history-list small,
.invasion-empty {
  color: #d8c8df;
}

.invasion-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.invasion-history-head a {
  color: #27190f;
  border-radius: 8px;
  padding: 8px 11px;
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
}

.invasion-history-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invasion-history-list article {
  border: 1px solid rgba(240, 213, 158, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(8, 7, 12, 0.34);
}

.campamento-state-tag {
  font-size: 0.85rem;
  color: #251929;
  font-weight: 700;
  background: linear-gradient(180deg, #ffe4a8, #d9ab4d);
  border: 1px solid rgba(255, 221, 148, 0.8);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.15;
  white-space: nowrap;
}

.campamento-meta-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.campamento-overview {
  margin-top: 2px;
  display: grid;
  gap: 14px;
  color: #e8ddff;
}

.campamento-hero-card {
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 213, 158, 0.18);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(240, 213, 158, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 13, 29, 0.96), rgba(10, 8, 16, 0.92));
}

.campamento-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid rgba(240, 213, 158, 0.5);
  opacity: 0.95;
}

.campamento-hero-card.is-light {
  background:
    linear-gradient(90deg, rgba(255, 223, 143, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(22, 17, 26, 0.96), rgba(10, 8, 16, 0.92));
}

.campamento-hero-card.is-dark {
  background:
    linear-gradient(90deg, rgba(165, 93, 190, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(17, 13, 27, 0.96), rgba(8, 7, 14, 0.94));
}

.campamento-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.campamento-hero-avatar {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e1326;
  background: linear-gradient(180deg, #ffe6ab 0%, #d4a95b 52%, #ab5d1d 100%);
  border: 1px solid rgba(255, 232, 180, 0.8);
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px rgba(0, 0, 0, 0.45);
}

.campamento-hero-meta {
  min-width: 0;
}

.campamento-hero-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.campamento-hero-name {
  margin: 0;
  color: #f9ddaa;
  font-size: 1.38rem;
  line-height: 1.05;
}

.campamento-subline {
  margin: 0;
  color: #dbcaeb;
}

.campamento-subline strong {
  color: #f4d5a5;
}

.campamento-badge {
  align-self: start;
  justify-self: end;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 208, 132, 0.7);
  background: linear-gradient(180deg, #ffe5a9, #d6a34e);
  color: #24161c;
  font-weight: 800;
  font-size: 0.9rem;
}

.campamento-status-chip {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-weight: 700;
  color: #23141f;
  font-size: 0.8rem;
  line-height: 1.15;
}

.campamento-status-chip.is-ok {
  border-color: #7de5a8;
  background: linear-gradient(180deg, #a9ffcc, #43c286);
}

.campamento-status-chip.is-danger {
  border-color: #ff9fb0;
  background: linear-gradient(180deg, #ffc5d3, #de7b92);
}

.campamento-command-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.campamento-command-item,
.campamento-loadout-panel {
  border: 1px solid rgba(240, 213, 158, 0.16);
  border-radius: 10px;
  background: rgba(8, 7, 13, 0.66);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.campamento-command-item.is-primary {
  border-color: rgba(255, 213, 122, 0.36);
  background:
    linear-gradient(90deg, rgba(255, 213, 122, 0.1), transparent 72%),
    rgba(8, 7, 13, 0.7);
}

.campamento-command-label {
  color: #bcaad2;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.campamento-command-item strong {
  color: #f7ddac;
  line-height: 1.1;
}

.campamento-command-item small {
  color: #cabbd6;
  line-height: 1.3;
}

.campamento-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .campamento-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.campamento-stat-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(9, 8, 16, 0.74);
  border: 1px solid rgba(92, 80, 122, 0.78);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.campamento-stat-label {
  margin: 0;
  color: #cdb8e8;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.campamento-stat-label span {
  border: 1px solid rgba(240, 213, 158, 0.26);
  border-radius: 7px;
  padding: 3px 5px;
  color: #f4d9a5;
  background: rgba(240, 213, 158, 0.08);
  font-size: 0.66rem;
}

.attribute-point-button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 132, 0.72);
  background: linear-gradient(180deg, #f8db9b, #bd7f2f);
  color: #151018;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.attribute-point-button:hover {
  filter: brightness(1.08);
}

.campamento-stat-value {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.02rem;
  color: #efe7d4;
}

.campamento-stat-value strong {
  color: #ffe7aa;
  font-size: 1.28rem;
}

.campamento-stat-foot {
  margin: 0;
  font-size: 0.8rem;
  color: #c7b9da;
}

.campamento-stat-bar-wrap {
  position: relative;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  border: 1px solid #4a4060;
  background: rgba(12, 8, 18, 0.85);
  overflow: hidden;
}

.campamento-stat-bar {
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  width: var(--value, 0%);
  max-width: calc(100% - 2px);
  transition: width 250ms ease;
}

.campamento-stat-bar-life {
  background: linear-gradient(90deg, #8cecff, #2f7ecf);
}

.campamento-stat-bar-str {
  background: linear-gradient(90deg, #ffc86e, #d16f2b);
}

.campamento-stat-bar-agi {
  background: linear-gradient(90deg, #aef7be, #5aa16a);
}

.campamento-stat-bar-arm {
  background: linear-gradient(90deg, #d6b4ff, #6b60d0);
}

.campamento-status-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.campamento-status-strip span {
  border: 1px solid rgba(240, 213, 158, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  color: #e7d4fb;
  background: rgba(14, 12, 20, 0.65);
  font-size: 0.83rem;
}

.campamento-progress-wrap {
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.campamento-progress {
  position: relative;
  width: 100%;
  height: 11px;
  border-radius: 999px;
  border: 1px solid #4f4465;
  overflow: hidden;
  background: rgba(20, 16, 28, 0.85);
}

.campamento-progress-fill {
  --p: 0%;
  position: absolute;
  inset: 0;
  width: var(--p);
  background: linear-gradient(90deg, #ffd07a, #8cc7f4);
}

.campamento-progress-meta {
  margin: 7px 0 0;
  font-size: 0.92rem;
  color: #d4c2de;
}

.campamento-meta-grid p {
  margin: 0;
  color: #e0d0e9;
}

.campamento-loadout-panel p strong {
  color: #f4d5a5;
}

.campamento-list {
  margin: 0;
  padding-left: 0;
  color: #d7c4e1;
  list-style: none;
}

.campamento-inventory-view {
  display: grid;
  gap: 22px;
}

.inventory-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-header h3 {
  margin: 3px 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.inventory-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inventory-summary span {
  border: 1px solid rgba(244, 213, 165, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: #f4d5a5;
  background: rgba(244, 213, 165, 0.07);
  font-size: 0.86rem;
  font-weight: 800;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.inventory-empty {
  padding: 18px 0;
  color: #bca9c8;
}

.inventory-item {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 21, 38, 0.94), rgba(15, 12, 22, 0.94));
  overflow: hidden;
}

.inventory-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #9b8fa8;
}

.inventory-item.rarity-common::before { background: #c6ccd6; }
.inventory-item.rarity-rare::before { background: #66b7ff; }
.inventory-item.rarity-epic::before { background: #b879ff; }
.inventory-item.rarity-legendary::before { background: #f4b24f; }

.inventory-item.is-equipped {
  border-color: rgba(244, 213, 165, 0.42);
  box-shadow: 0 0 0 1px rgba(244, 213, 165, 0.12), 0 16px 35px rgba(0, 0, 0, 0.2);
}

.inventory-item-top,
.inventory-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inventory-slot,
.inventory-rarity {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-slot {
  color: #f4d5a5;
}

.inventory-rarity {
  color: #d8c8e3;
}

.inventory-item-main {
  display: grid;
  gap: 5px;
  min-height: 55px;
}

.inventory-item-main strong {
  color: #f3e7d2;
  line-height: 1.15;
}

.inventory-item-main span {
  color: #bca9c8;
}

.inventory-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

.inventory-stat-chip {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  padding: 5px 7px;
  color: #e9dff0;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
}

.inventory-stat-chip strong {
  color: #f4d5a5;
}

.inventory-stat-chip.is-empty {
  color: #9d8eaa;
}

.inventory-equip-button {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 9px 12px;
  background: #f4d5a5;
  color: #171016;
  font-weight: 900;
  cursor: pointer;
}

.campamento-list-wrap {
  display: grid;
  gap: 8px;
}

.campamento-form {
  display: grid;
  gap: 8px;
}

.campamento-form .button-row {
  margin-top: 2px;
}

.training-section-title {
  margin-bottom: 0;
}

.training-section-copy {
  margin-top: -6px;
  margin-bottom: 4px;
}

.campamento-availability {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(240, 213, 158, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(12, 10, 18, 0.48);
}

.availability-status {
  display: grid;
  gap: 8px;
}

.availability-status > div {
  min-width: 0;
}

.campamento-availability strong {
  display: block;
  color: #ffe1a4;
  font-size: 1.02rem;
}

.campamento-availability p {
  margin: 2px 0 0;
  color: #d8c8df;
  max-width: 100%;
  white-space: normal;
}

.campamento-availability ul {
  margin: 0;
  padding-left: 18px;
  color: #e6c99a;
}

.training-day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-day-summary span {
  border: 1px solid rgba(240, 213, 158, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  color: #f2dfb7;
  background: rgba(8, 7, 12, 0.34);
  font-size: 0.82rem;
  font-weight: 700;
}

.training-state-details p {
  margin: 0;
  color: #e2d4ff;
}

.training-state-details ul {
  margin: 5px 0 0;
}

.training-state-details ul li {
  margin: 5px 0;
}

.campamento-availability.is-ready {
  border-color: rgba(79, 206, 150, 0.5);
  background: rgba(42, 82, 66, 0.18);
}

.campamento-availability.is-blocked {
  border-color: rgba(217, 169, 107, 0.48);
  background: rgba(104, 70, 31, 0.18);
}

.campamento-availability.is-busy {
  border-color: rgba(196, 120, 58, 0.52);
  background: rgba(87, 52, 21, 0.2);
}

.training-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.training-action-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: stretch;
  gap: 10px;
  min-height: 250px;
  border: 1px solid rgba(240, 213, 158, 0.2);
  border-radius: 8px;
  padding: 14px 14px 92px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(32, 27, 44, 0.94), rgba(14, 12, 20, 0.94)),
    radial-gradient(420px 180px at 20% 0%, rgba(240, 213, 158, 0.12), transparent 70%);
}

.training-action-card.is-ready {
  border-color: rgba(240, 213, 158, 0.48);
}

.training-action-card.is-locked {
  opacity: 0.78;
}

.training-action-card.is-current {
  border-color: rgba(79, 206, 150, 0.7);
  box-shadow: inset 0 0 0 1px rgba(79, 206, 150, 0.25);
}

.training-action-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 10px;
}

.training-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #27190f;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #fff2c8, #d7a84f);
  margin-top: 2px;
}

.training-action-head h4 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.training-action-state {
  border: 1px solid rgba(240, 213, 158, 0.32);
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffe1a4;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

.training-action-copy,
.training-action-meta-list,
.training-action-lock {
  margin: 0;
}

.training-action-copy,
.training-action-meta-list,
.training-action-lock,
.training-action-card > .campamento-form,
.training-action-card > .button-row {
  margin-left: 0;
}

.training-action-card .campamento-form {
  display: grid;
  align-self: start;
  height: auto;
}

.training-action-card .button-row {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: calc(100% - 28px);
  transform: translateX(-50%);
  justify-content: center;
  margin-left: 0;
}

.training-action-card .button-row button {
  flex: 0 1 340px;
  width: min(100%, 340px);
  min-width: 0;
  white-space: nowrap;
}

.training-action-copy {
  color: #e9ddee;
  text-align: center;
}

.training-action-meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.training-action-meta-list span {
  border: 1px solid rgba(240, 213, 158, 0.22);
  border-radius: 999px;
  padding: 5px 8px;
  color: #e8c990;
  background: rgba(8, 7, 12, 0.32);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.training-action-lock {
  min-height: 1.2rem;
  color: #ffd0d9;
  font-size: 0.86rem;
  text-align: center;
}

.training-partner-field {
  display: grid;
  gap: 6px;
  color: #d8c8df;
  font-size: 0.86rem;
  font-weight: 800;
}

.training-request-list {
  display: grid;
  gap: 7px;
}

.training-request-item {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(240, 213, 158, 0.16);
  border-radius: 8px;
  padding: 9px;
  background: rgba(8, 7, 12, 0.32);
}

.training-request-item span,
.training-request-item small {
  color: #d8c8df;
  font-size: 0.84rem;
}

.training-request-item div {
  display: flex;
  gap: 6px;
}

.training-request-item button {
  width: auto;
  min-width: 86px;
  padding: 7px 9px;
  font-size: 0.78rem;
}

.training-invasion-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(183, 94, 162, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: rgba(33, 21, 42, 0.58);
}

.training-invasion-strip strong {
  display: block;
  color: #ffe1a4;
}

.training-invasion-strip span {
  display: block;
  color: #d8c8df;
}

.training-invasion-strip button {
  min-width: 170px;
}

@media (max-width: 980px) {
  .training-action-grid {
    grid-template-columns: 1fr;
  }

  .training-invasion-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .invasion-header,
  .invasion-action-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .invasion-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .invasion-check-grid,
  .invasion-info-grid,
  .invasion-history-list,
  .my-clan-summary {
    grid-template-columns: 1fr;
  }
}

.campamento-inline-form {
  align-items: end;
}

.campamento-inline-form label,
.campamento-inline-form .button-row {
  width: 100%;
}

.campamento-clan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.campamento-clan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(240, 213, 158, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(8, 7, 12, 0.34);
}

.campamento-clan-item strong,
.campamento-clan-item span {
  display: block;
}

.campamento-clan-item strong {
  color: #f3e5d6;
}

.campamento-clan-item span {
  color: #c8b7d4;
  font-size: 0.85rem;
}

.campamento-clan-item button {
  width: auto;
  min-width: 100px;
}

.clan-current-badge {
  border: 1px solid rgba(79, 206, 150, 0.42);
  border-radius: 999px;
  padding: 6px 10px;
  color: #d8ffe8 !important;
  background: rgba(34, 86, 64, 0.32);
  font-size: 0.76rem !important;
  font-weight: 900;
  text-transform: uppercase;
}

.campamento-muted {
  margin: 0;
  color: #baaecf;
}

.campamento-clan-intro {
  margin: 0;
  color: #d4c4e5;
}

.campamento-quick-list {
  list-style: disc;
}

.campamento-quick-list li {
  color: #d1c1dd;
}

.timer-note {
  margin: 4px 0 0;
  color: #9de3f6;
}

.campamento-subtitle,
.timer-note,
.campamento-status {
  max-width: 78ch;
}

.ranking-full-screen {
  min-height: calc(100dvh - var(--topbar-h));
  display: flex;
  flex-direction: column;
}

.history-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.history-page-head h2 {
  margin: 0;
}

.history-page-head .ghost-button {
  min-width: 120px;
}

#join-invasion-btn,
#join-first-clan {
  margin-top: 8px;
}

.clan-list {
  display: grid;
  gap: 8px;
}

.timer-note {
  margin: 0;
  color: #9de3fb;
  font-size: 0.9rem;
}

.clan-list .card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.join-clan-btn {
  width: auto;
  min-width: 130px;
}

.hidden {
  display: none;
}

.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.site-footer {
  width: var(--container-width);
  margin: 0 auto 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #b5acc4;
  display: grid;
  gap: 6px;
}

.site-footer-nav,
.site-footer-brand,
.site-footer-legal,
.site-footer-meta {
  margin: 0;
  color: #9fa2b1;
  font-size: 0.88rem;
}

.site-footer-brand {
  color: #f3dcb3;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.site-footer-legal {
  color: #a7a0b6;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-sep {
  color: #8f879f;
  margin: 0 2px;
}

.site-footer-nav a {
  color: #d8c1ef;
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: #ffe7a9;
  text-decoration: underline;
}

.site-footer a {
  color: #f0d6ff;
}

.site-footer-meta {
  color: #a394b6;
  font-size: 0.84rem;
}

.site-footer-meta a {
  color: #f3dcb3;
  font-weight: 700;
}

.site-footer-meta a:hover {
  color: #fff4b8;
}

@media (max-width: 1050px) {
  .hero-content {
    max-width: 680px;
  }

  .faction-strip,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .grid,
  .two-col,
  .auth-layout,
  .ranking-grid,
  .feature-grid,
  .account-grid,
    .support-list.support-grid {
    grid-template-columns: 1fr;
  }

  .auth-side-note {
    border-left: none;
    border-top: 1px solid #3a3252;
    padding: 18px 0 0;
  }

  .faction-banners {
    grid-template-columns: 1fr;
  }

  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-summary-panel {
    order: -1;
  }

  .story-lead {
    font-size: 1.02rem;
  }


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

  .dashboard-root::before {
    display: none;
  }

  .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(240, 213, 158, 0.15);
  }

  .dashboard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .dashboard-side-link {
    text-align: center;
  }

  .campamento-layout {
    grid-template-columns: 1fr;
  }

  .campamento-sidebar {
    position: static;
    top: auto;
  }

  .campamento-content {
    width: 100%;
  }

  .campamento-meta-grid,
  .campamento-command-grid,
  .campamento-stat-grid {
    grid-template-columns: 1fr;
  }

  .campamento-hero-main {
    grid-template-columns: auto 1fr;
  }

  .campamento-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
    padding: 10px 14px;
    align-items: center;
    flex-wrap: wrap;
  }

  :root {
    --topbar-h: 112px;
  }

  .topbar nav {
    order: 3;
    gap: 12px;
    max-width: min(100%, max-content);
    padding-bottom: 2px;
  }

  .topbar-actions {
    order: 2;
    margin-left: 0;
  }

  .ghost-button {
    order: 2;
    margin-left: 0;
  }

  .landing-aura {
    display: none;
  }

  main {
    width: 100%;
  }

  .landing-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 166px 18px 22px;
    background-position: center, 58% center, center;
  }

  .hero-copy h2 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10vw, 4.8rem);
    white-space: nowrap;
  }

  .hero-copy__muted {
    font-size: 1.06rem;
  }

  .auth-pass-row {
    grid-template-columns: 1fr;
  }

  .campamento-grid {
    grid-template-columns: 1fr;
  }
  .faction-strip,
  .hero-stats {
    border-top: 1px solid rgba(240, 213, 158, 0.2);
  }

  .faction-card,
  .stat-card {
    border-left: 0;
    border-top: 1px solid rgba(240, 213, 158, 0.16);
  }
}
