:root {
  --bg: #050101;
  --panel: rgba(15, 9, 12, 0.88);
  --panel-strong: rgba(10, 6, 8, 0.96);
  --text: #fff7f2;
  --muted: #cbb8b3;
  --red: #ff2727;
  --red-soft: rgba(255, 39, 39, 0.18);
  --gold: #ffbf5a;
  --green: #86ff65;
  --line: rgba(255, 255, 255, 0.13);
  --glow: 0 0 24px rgba(255, 39, 39, 0.65), 0 0 78px rgba(255, 39, 39, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 39, 39, 0.24), transparent 22rem),
    radial-gradient(circle at 84% 34%, rgba(255, 111, 32, 0.2), transparent 24rem),
    linear-gradient(180deg, #070102, #130304 42%, #050101);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 39, 39, 0.13) 39%, transparent 44%),
    linear-gradient(65deg, transparent 0 62%, rgba(255, 116, 35, 0.11) 63%, transparent 69%);
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.intro-pending .site-intro {
  opacity: 1;
  visibility: visible;
}

.intro-mark,
.intro-word,
.intro-load,
.intro-status {
  grid-area: 1 / 1;
  justify-self: center;
}

.intro-mark {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(255, 39, 39, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 39, 39, 0.24), transparent 66%);
  box-shadow: 0 0 44px rgba(255, 39, 39, 0.62);
  animation: introMark 1700ms ease both;
}

.intro-mark img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.intro-word {
  margin-top: 226px;
  color: var(--text);
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  padding-left: 0.18em;
  text-shadow: 0 0 26px rgba(255, 39, 39, 0.9);
  animation: introWord 1700ms ease both;
}

.intro-load {
  width: min(280px, calc(100% - 80px));
  height: 3px;
  margin-top: 392px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.intro-load span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform-origin: left;
  animation: introLoad 1550ms ease both;
}

.intro-status {
  margin-top: 434px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  animation: introStatus 430ms ease infinite alternate;
}

.intro-pending main,
.intro-pending .site-footer {
  opacity: 0;
  transform: translateY(18px);
}

.intro-pending .site-header {
  opacity: 0;
  transform: translateX(calc(-50% + 140px));
}

.intro-pending.intro-complete .site-intro {
  opacity: 0;
  visibility: hidden;
}

.intro-pending.intro-complete .site-header {
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 850ms ease 120ms, transform 850ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.intro-pending.intro-complete main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 900ms ease 280ms, transform 900ms ease 280ms;
}

.intro-pending.intro-complete .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 900ms ease 520ms, transform 900ms ease 520ms;
}

@keyframes introMark {
  0% {
    opacity: 0;
    transform: scale(0.72);
    filter: blur(10px);
  }
  38% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introWord {
  0%,
  28% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introLoad {
  0%,
  22% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes introStatus {
  from {
    opacity: 0.56;
  }
  to {
    opacity: 1;
  }
}

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

  .intro-pending main,
  .intro-pending .site-footer {
    opacity: 1;
    transform: none;
  }

  .intro-pending .site-header {
    opacity: 1;
    transform: translateX(-50%);
  }
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 2, 4, 0.56);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(5, 2, 4, 0.92);
  box-shadow: 0 0 38px rgba(255, 39, 39, 0.22);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 92, 92, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #ffca74, transparent 28%),
    linear-gradient(145deg, #2a080b, #ff2929 55%, #160304);
  color: white;
  box-shadow: var(--glow);
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 92, 92, 0.74);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 39, 39, 0.8);
}

.header-action,
.dashboard-header-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.dashboard-header-link {
  margin-left: auto;
  border: 1px solid rgba(255, 191, 90, 0.76);
  background: rgba(255, 191, 90, 0.11);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 191, 90, 0.24);
}

.dashboard-header-link:hover,
.dashboard-header-link[aria-current="page"] {
  background: linear-gradient(180deg, rgba(255, 191, 90, 0.28), rgba(255, 39, 39, 0.18));
  color: var(--text);
}

.header-action,
.button.primary {
  border: 1px solid rgba(255, 125, 104, 0.8);
  background: linear-gradient(180deg, #ff3434, #a80710);
  color: white;
  box-shadow: var(--glow);
}

.button.secondary {
  border: 1px solid rgba(255, 66, 66, 0.54);
  background: rgba(13, 5, 7, 0.88);
  color: var(--text);
  text-shadow: 0 0 14px rgba(255, 39, 39, 0.34);
}

.button.secondary:hover:not(:disabled) {
  border-color: rgba(255, 191, 90, 0.72);
  background: rgba(255, 39, 39, 0.2);
  color: #ffffff;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 66, 66, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.cinematic-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 132px 0 76px;
}

.cinematic-section::before,
.story-section::before,
.contact-shell::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 39, 39, 0.24), transparent 62%);
  filter: blur(28px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 191, 90, 0.46);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 39, 39, 0.72), 0 8px 0 rgba(0, 0, 0, 0.38);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 span,
.hero-line strong,
.final-cta h2,
.match-panel span {
  color: var(--gold);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  font-weight: 900;
}

.hero-line {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-copy,
.story-copy p,
.commands-copy p,
.final-cta p,
.contact-panel p,
.discord-card p,
.dashboard-panel p,
.match-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.public-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 18px;
}

.public-stats article {
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(255, 66, 66, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 39, 39, 0.12), rgba(10, 4, 6, 0.72)),
    rgba(10, 4, 6, 0.72);
  box-shadow: 0 0 18px rgba(255, 39, 39, 0.2);
}

.public-stats span,
.public-stats strong {
  display: block;
}

.public-stats span {
  color: #e5d4cf;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-stats strong {
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 191, 90, 0.28);
}

.hero-preview {
  perspective: 1200px;
}

.discord-card,
.dashboard-panel,
.metric-card,
.rr-card,
.flow-panel,
.command-console,
.match-panel,
.contact-panel,
.feature-strip article {
  border: 1px solid rgba(255, 66, 66, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 39, 39, 0.12), rgba(10, 4, 6, 0.93)),
    rgba(10, 4, 6, 0.88);
  box-shadow: var(--glow);
}

.discord-card {
  position: relative;
  padding: 28px;
  transform: rotate(-3deg);
}

.discord-card::before,
.dashboard-panel::before,
.match-panel::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 14px;
  width: 4px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: var(--glow);
}

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

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #210708;
  font-weight: 900;
}

.app-badge {
  padding: 3px 8px;
  border-radius: 5px;
  background: #5865f2;
  font-size: 0.78rem;
  font-weight: 900;
}

.stats-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.stats-card p span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 900;
}

.stats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}

.kda {
  color: var(--gold);
  font-size: 1.1rem;
}

.story-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 96px 0;
}

.story-section.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.story-copy {
  padding-left: 24px;
  border-left: 4px solid var(--red);
}

.metric-stack,
.rank-update-stack {
  display: grid;
  gap: 18px;
}

.metric-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 118px;
  padding: 24px 28px;
}

.metric-card strong {
  color: var(--gold);
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.metric-card span {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 90px;
}

.feature-strip article {
  min-height: 150px;
  padding: 22px;
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.rr-card {
  padding: 28px;
}

.rr-card span {
  color: var(--muted);
  font-weight: 800;
}

.rr-card strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.9;
  font-weight: 900;
}

.rr-card.positive strong {
  color: var(--green);
  text-shadow: 0 0 28px rgba(134, 255, 101, 0.55);
}

.rr-card.negative strong {
  color: #ff6464;
  text-shadow: 0 0 28px rgba(255, 39, 39, 0.55);
}

.dashboard-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px;
}

.dashboard-panel div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-panel p {
  margin-bottom: 8px;
}

.flow-panel {
  display: grid;
  grid-template-columns: 1fr 58px 0.7fr 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 28px;
}

.flow-panel div {
  display: grid;
  min-height: 132px;
  place-items: center;
  border: 1px solid rgba(255, 66, 66, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.flow-panel span {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: var(--glow);
}

.commands-section,
.support-section,
.faq-section,
.final-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 110px auto;
}

.commands-section,
.support-section,
.faq-section,
.final-cta {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 32px;
  align-items: center;
}

.command-console {
  padding: 24px;
}

.command-console p {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.command-console p:last-child {
  border-bottom: 0;
}

.command-console span {
  color: var(--gold);
  font-weight: 900;
}

.support-panel {
  display: grid;
  gap: 14px;
}

.support-panel article,
.faq-list details {
  border: 1px solid rgba(255, 66, 66, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 39, 39, 0.1), rgba(10, 4, 6, 0.92)),
    rgba(10, 4, 6, 0.86);
  box-shadow: var(--glow);
}

.support-panel article {
  padding: 22px;
}

.support-panel strong,
.support-panel span {
  display: block;
}

.support-panel strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.12rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-panel span,
.faq-list p,
.support-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.match-panel {
  position: relative;
  padding: 34px;
}

.rounds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
}

.rounds span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.rounds .win {
  background: #61b846;
}

.rounds .loss {
  background: #ed3232;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

.contact-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 130px 16px 70px;
}

.contact-panel {
  width: min(760px, 100%);
  padding: 30px;
}

.legal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 142px 0 76px;
}

.legal-hero {
  max-width: 860px;
  margin-bottom: 34px;
}

.legal-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 11vw, 8rem);
}

.legal-hero p {
  color: #e5d4cf;
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-hero small {
  color: var(--gold);
  font-weight: 900;
}

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

.legal-card {
  padding: 22px;
  border: 1px solid rgba(255, 66, 66, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 39, 39, 0.1), rgba(10, 4, 6, 0.94)),
    rgba(10, 4, 6, 0.88);
  box-shadow: var(--glow);
}

.legal-card-wide {
  grid-column: 1 / -1;
}

.legal-card h2 {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 1.18rem;
}

.legal-card p {
  margin-bottom: 0;
  color: #e5d4cf;
  line-height: 1.7;
}

.legal-card .button {
  margin-top: 18px;
}

.dashboard-page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 142px 0 76px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.dashboard-hero h1 {
  font-size: clamp(4rem, 10vw, 9rem);
}

.dashboard-hero p,
.dashboard-status-card p,
.dashboard-topbar span,
.dashboard-kpis span,
.dashboard-kpis small,
.widget-heading span,
.widget-heading small,
.settings-list p,
.player-table span,
.health-list p,
.sidebar-profile span {
  color: #e5d4cf;
}

.dashboard-hero p {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.dashboard-status-card,
.dashboard-shell,
.dashboard-widget,
.dashboard-kpis article {
  border: 1px solid rgba(255, 66, 66, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 39, 39, 0.1), rgba(10, 4, 6, 0.94)),
    rgba(10, 4, 6, 0.88);
  box-shadow: var(--glow);
}

.dashboard-status-card {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.dashboard-status-card .button {
  margin-top: 8px;
}

.auth-logout {
  display: none;
}

.dashboard-status-card.is-authenticated .status-dot {
  background: var(--green);
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(134, 255, 101, 0.7);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 720px;
  overflow: hidden;
}

.dashboard-sidebar {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 1, 2, 0.46);
}

.sidebar-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.sidebar-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-profile strong,
.sidebar-profile span {
  display: block;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 10px;
}

.dashboard-sidebar button {
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.dashboard-sidebar button:hover,
.dashboard-sidebar button.is-active {
  border-color: rgba(255, 66, 66, 0.44);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.dashboard-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
}

.is-hidden {
  display: none !important;
}

.dashboard-selected {
  display: grid;
  gap: 18px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  gap: 18px;
}

.selected-server-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 191, 90, 0.28);
  border-radius: 8px;
  background: rgba(255, 191, 90, 0.06);
}

.selected-server-bar span,
.selected-server-bar strong {
  display: block;
}

.selected-server-bar span {
  color: var(--muted);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-topbar span,
.dashboard-topbar strong {
  display: block;
}

.dashboard-topbar strong {
  font-size: 1.25rem;
}

[data-save-status][data-state="loading"] {
  opacity: 0.78;
}

[data-save-status][data-state="saved"] {
  border-color: rgba(134, 255, 101, 0.6);
}

[data-save-status][data-state="error"] {
  border-color: rgba(255, 100, 100, 0.75);
  background: rgba(255, 39, 39, 0.2);
}

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

.dashboard-kpis article {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
}

.dashboard-kpis strong {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 191, 90, 0.28);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
}

.guild-widget {
  min-height: 190px;
}

.guild-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.guild-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.guild-card:hover,
.guild-card.is-selected {
  border-color: rgba(255, 191, 90, 0.68);
  background: rgba(255, 191, 90, 0.1);
  box-shadow: 0 0 20px rgba(255, 191, 90, 0.16);
}

.guild-card.needs-install {
  border-color: rgba(255, 191, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 191, 90, 0.08), rgba(255, 39, 39, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.guild-card.needs-install:hover {
  border-color: rgba(255, 191, 90, 0.76);
  background: rgba(255, 191, 90, 0.14);
}

.guild-card.needs-install small {
  color: var(--gold);
}

.guild-icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 66, 66, 0.42);
  border-radius: 8px;
  background-color: rgba(255, 39, 39, 0.18);
  background-position: center;
  background-size: cover;
  font-weight: 900;
}

.guild-card strong,
.guild-card small {
  display: block;
}

.guild-card small,
.empty-state {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-widget {
  padding: 22px;
}

.players-widget {
  display: grid;
  gap: 18px;
}

.player-add-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.58fr 0.6fr 0.9fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.player-add-form input,
.player-add-form select {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.055);
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.mini-check input {
  position: relative;
  width: 42px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mini-check input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.mini-check input:checked {
  border-color: rgba(255, 191, 90, 0.72);
  background: rgba(255, 39, 39, 0.26);
}

.mini-check input:checked::before {
  transform: translateX(18px);
  background: var(--gold);
}

.player-overview {
  display: grid;
  gap: 12px;
}

.form-message {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-message:empty {
  display: none;
}

.form-message[data-state="error"] {
  color: #ff8f8f;
}

.form-message[data-state="success"] {
  color: var(--green);
}

.player-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.player-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 66, 66, 0.42);
  border-radius: 50%;
  background-color: rgba(255, 39, 39, 0.18);
  background-position: center;
  background-size: cover;
  color: var(--gold);
  font-weight: 900;
}

.player-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.player-title,
.player-meta,
.player-owner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.player-title strong {
  font-size: 1.05rem;
}

.player-title span,
.player-meta span,
.player-owner small {
  color: var(--muted);
}

.player-title span {
  padding: 3px 8px;
  border: 1px solid rgba(255, 191, 90, 0.28);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.player-meta span {
  font-size: 0.9rem;
}

.player-owner span {
  font-weight: 800;
}

.player-remove {
  min-height: 40px;
  padding: 0 14px;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.player-actions .button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

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

.audit-list {
  display: grid;
  gap: 12px;
}

.audit-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.audit-list strong {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.setting-control,
.toggle-row {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(5, 1, 2, 0.42);
}

.setting-control {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.setting-control > span,
.toggle-row strong {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.setting-control input,
.setting-control select {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.055);
}

.setting-control:focus-within,
.toggle-row:focus-within {
  border-color: rgba(255, 191, 90, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 191, 90, 0.12);
}

.settings-form input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  appearance: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.settings-form input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, background 160ms ease;
}

.settings-form input[type="checkbox"]:checked {
  border-color: rgba(255, 191, 90, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 191, 90, 0.32), rgba(255, 39, 39, 0.32)),
    rgba(255, 39, 39, 0.2);
  box-shadow: 0 0 22px rgba(255, 39, 39, 0.24);
}

.settings-form input[type="checkbox"]:checked::before {
  transform: translateX(26px);
  background: var(--gold);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 14px;
}

.toggle-row > span {
  display: grid;
  gap: 4px;
}

.toggle-row small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.chart-widget,
.table-widget {
  min-height: 320px;
}

.widget-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.widget-heading span,
.widget-heading strong {
  display: block;
}

.widget-heading strong {
  font-size: 1.35rem;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  height: 220px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-chart span {
  min-height: 34px;
  height: var(--height);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--gold), var(--red));
  box-shadow: 0 0 26px rgba(255, 39, 39, 0.45);
}

.settings-list,
.health-list {
  display: grid;
  gap: 12px;
}

.settings-list p,
.health-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.health-list strong {
  color: var(--text);
  text-align: right;
}

.settings-list span {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(134, 255, 101, 0.52);
}

.settings-list strong {
  color: var(--text);
}

.player-table {
  display: grid;
  gap: 10px;
}

.player-table div {
  display: grid;
  grid-template-columns: 1fr 120px 70px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.player-table em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.player-table em.negative {
  color: #ff6464;
}

.health-widget {
  display: grid;
  align-content: start;
}

.health-ring {
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  margin: 8px auto 24px;
  border: 12px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--green);
  border-right-color: var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgba(255, 39, 39, 0.24), var(--glow);
}

.health-ring strong,
.health-ring span {
  grid-area: 1 / 1;
}

.health-ring strong {
  transform: translateY(-10px);
  font-size: 2.4rem;
}

.health-ring span {
  transform: translateY(24px);
  color: var(--muted);
  font-weight: 900;
}

.contact-panel h1 {
  font-size: clamp(3.2rem, 10vw, 7rem);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 66, 66, 0.45);
  border-radius: 8px;
  background: rgba(5, 1, 2, 0.72);
  color: var(--text);
  font: inherit;
  padding: 14px;
  outline: none;
}

select {
  appearance: none;
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    rgba(5, 1, 2, 0.72);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 39, 39, 0.18);
}

textarea {
  resize: vertical;
}

select option {
  color: #111;
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    padding: 18px;
    border: 1px solid rgba(255, 66, 66, 0.42);
    border-radius: 8px;
    background: rgba(5, 2, 4, 0.96);
  }

  .main-nav.is-open {
    display: grid;
  }

  .header-action {
    display: none;
  }

  .dashboard-header-link {
    margin-left: 0;
  }

  .cinematic-section,
  .story-section,
  .story-section.reverse,
  .feature-strip,
  .commands-section,
  .support-section,
  .faq-section,
  .final-cta,
  .dashboard-hero,
  .dashboard-shell,
  .dashboard-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

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

  .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dashboard-sidebar nav {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
  }

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

  .feature-strip {
    margin-top: 0;
  }

  .discord-card {
    transform: none;
  }

}

@media (max-width: 640px) {
  .brand span:not(.brand-mark) {
    display: none;
  }

  h1 {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  h2 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .hero-line {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stats-layout,
  .dashboard-panel,
  .flow-panel,
  .public-stats,
  .dashboard-kpis,
  .player-table div {
    grid-template-columns: 1fr;
  }

  .dashboard-page {
    padding-top: 118px;
  }

  .dashboard-main,
  .dashboard-sidebar,
  .dashboard-widget,
  .dashboard-status-card {
    padding: 16px;
  }

  .dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .selected-server-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .player-table em {
    text-align: left;
  }

  .player-add-form,
  .player-card {
    grid-template-columns: 1fr;
  }

  .player-remove,
  .player-actions .button {
    width: 100%;
  }

  .player-actions {
    justify-content: stretch;
  }

  .flow-panel span {
    width: 3px;
    height: 36px;
    margin: 0 auto;
  }

  .story-section {
    min-height: auto;
    padding: 72px 0;
  }

  .command-console p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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