:root {
  --blood: #8a0f0f;
  --blood-bright: #d31818;
  --rot: #6b7c2a;
  --toxic: #7cff3a;
  --toxic-dim: #3d7a1f;
  --ash: #0a0a0c;
  --steel: #1a1714;
  --rust: #5c2a14;
  --bone: #e8dcc8;
  --muted: #9a8f7e;
  --discord: #5865f2;
  --panel: rgba(10, 8, 7, 0.78);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: var(--bone);
  background: #050505;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--toxic);
}

.grain,
.scanlines,
.vignette,
.embers {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.grain {
  z-index: 40;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.scanlines {
  z-index: 41;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.18) 2px 3px
  );
  animation: flicker 7s infinite;
}

.vignette {
  z-index: 39;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  box-shadow: inset 0 0 120px rgba(90, 0, 0, 0.35);
}

#embers {
  z-index: 5;
}

@keyframes flicker {
  0%, 19%, 21%, 100% { opacity: 0.55; }
  20% { opacity: 0.2; }
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.4rem;
  background:
    linear-gradient(90deg, #1a0505 0%, #120c08 40%, #0c1208 100%);
  border-bottom: 3px solid #3a0d0d;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--toxic);
  box-shadow: 0 0 18px rgba(124, 255, 58, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: #f3f3f3;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--blood-bright);
  text-transform: uppercase;
}

.status-cluster {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid #3d4a22;
  background: #0c1008;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--toxic);
  box-shadow: 0 0 8px var(--toxic);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.5; }
}

.ticker-wrap {
  position: relative;
  z-index: 20;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    #111 0 10px,
    #1a1a1a 10px 20px
  );
  border-bottom: 1px solid #3a2a12;
}

.ticker {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ffb4a2;
  padding: 0.4rem 0;
  animation: marquee 38s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2.4rem 4vw 3rem;
  align-items: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 4, 4, 0.88) 0%, rgba(8, 4, 4, 0.55) 45%, rgba(5, 5, 5, 0.72) 100%),
    url("../img/banner.gif") center 42% / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #050505 0%, transparent 28%),
    repeating-linear-gradient(
      90deg,
      transparent 0 70px,
      rgba(255, 40, 0, 0.03) 70px 71px
    );
}

.hero-copy h1 {
  margin: 0 0 0.6rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(211, 24, 24, 0.45), 3px 4px 0 #2a0000;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--blood-bright);
}

.lede {
  max-width: 36rem;
  font-size: 1.15rem;
  color: #d7cbb8;
}

.intel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.6rem;
  max-width: 38rem;
}

.intel article {
  padding: 0.8rem;
  background: rgba(12, 8, 6, 0.7);
  border: 1px solid #3a2418;
  box-shadow: inset 0 0 20px rgba(90, 20, 0, 0.25);
}

.intel strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  color: var(--toxic);
}

.intel span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-wrap {
  position: relative;
}

.login-panel {
  position: relative;
  padding: 1.5rem 1.4rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(22, 14, 10, 0.92), rgba(8, 7, 6, 0.94));
  border: 1px solid #5a2a18;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(90, 0, 0, 0.18);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    #c41e1e 0 12px,
    #1a1a1a 12px 24px
  );
  height: 8px;
}

.login-panel header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.7rem 0 1rem;
}

.login-panel header img {
  width: 72px;
  filter: drop-shadow(0 0 10px rgba(255, 70, 0, 0.35));
}

.login-panel h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
}

.login-panel p.hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.28rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9b8a0;
}

input {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #4a3324;
  background: #0c0a09;
  color: var(--bone);
  font: 1rem "Rajdhani", sans-serif;
  outline: none;
}

input:focus {
  border-color: var(--toxic);
  box-shadow: 0 0 0 1px var(--toxic-dim), 0 0 16px rgba(124, 255, 58, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-blood {
  background: linear-gradient(#b91616, #6d0b0b);
  color: #fff;
  box-shadow: 0 0 18px rgba(180, 20, 20, 0.35);
}

.btn-blood:hover {
  filter: brightness(1.08);
}

.btn-google,
.btn-discord {
  letter-spacing: 0.08em;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, #5a3a28, transparent);
}

.social {
  display: grid;
  gap: 0.55rem;
}

.alert {
  display: none;
  padding: 0.7rem 0.8rem;
  border: 1px solid #7a1a1a;
  background: rgba(80, 8, 8, 0.55);
  color: #ffd0c8;
  font-size: 0.9rem;
}

.alert.show {
  display: block;
}

.alert.ok {
  border-color: var(--toxic-dim);
  background: rgba(20, 40, 10, 0.55);
  color: #d6ffc4;
}

.fineprint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

.site-footer {
  position: relative;
  z-index: 10;
  padding: 1.1rem 1.4rem 1.4rem;
  border-top: 1px solid #3a1c12;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #070605;
}

.dashboard {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 2.2rem 4vw 3rem;
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.9)),
    url("../img/banner.png") center / cover;
}

.dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
}

.features-card {
  grid-column: 1 / -1;
}

.discord-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--toxic);
  box-shadow: 0 0 18px rgba(124, 255, 58, 0.35);
  display: block;
  margin-bottom: 0.7rem;
}

.profile-card h2 {
  margin: 0;
}

.discord-handle {
  margin: 0.2rem 0 0.8rem;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
}

.tribe-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.tribe-select {
  background: #0c0a09;
  color: var(--bone);
  border: 1px solid #4a3324;
  padding: 0.45rem 0.6rem;
  font: 0.95rem "Rajdhani", sans-serif;
}

.channel-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.channel-tab {
  background: #140e0c;
  color: var(--muted);
  border: 1px solid #4a3324;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.channel-tab.is-active {
  color: #fff;
  border-color: var(--toxic-dim);
  box-shadow: 0 0 12px rgba(124, 255, 58, 0.15);
}

.tribe-identity {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  margin-top: 0.6rem;
  border: 1px solid #4a3324;
  background: rgba(8, 6, 5, 0.65);
}

.tribe-identity h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tribe-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid currentColor;
}

.member-list {
  display: grid;
  gap: 0.5rem;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #3a2418;
  background: rgba(6, 5, 5, 0.7);
}

.member-row strong {
  display: block;
}

.member-role {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.btn-kick,
.btn-rank,
.btn-transfer {
  width: auto;
  padding: 0.35rem 0.8rem;
  color: #fff;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-kick {
  background: #5a1212;
  border: 1px solid #ff3e3e;
}

.btn-rank {
  background: #143018;
  border: 1px solid var(--toxic-dim);
}

.btn-transfer {
  background: #3a2a08;
  border: 1px solid #ffd100;
  color: #ffd100;
}

.tribe-style-form {
  display: grid;
  gap: 0.7rem;
  max-width: 28rem;
}

.tribe-style-form label {
  display: grid;
  gap: 0.3rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.tribe-style-form input,
.tribe-style-form select {
  background: #0c0a09;
  color: var(--bone);
  border: 1px solid #4a3324;
  padding: 0.5rem 0.6rem;
  font: 0.95rem "Rajdhani", sans-serif;
}

.tribe-style-form .btn {
  width: auto;
  justify-self: start;
}

.feed {
  height: 320px;
  overflow: auto;
  background: rgba(6, 5, 5, 0.7);
  border: 1px solid #3a2418;
  padding: 0.7rem;
}

.feed-item {
  margin-bottom: 0.7rem;
}

.feed-item header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.feed-item p {
  margin: 0.2rem 0 0;
}

.feed-item.log p {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.chat-form .btn {
  width: auto;
  padding-inline: 1.2rem;
}

.card {
  background: var(--panel);
  border: 1px solid #4a2a18;
  padding: 1.1rem;
}

.card h2 {
  margin: 0 0 0.7rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
}

.meta {
  display: grid;
  gap: 0.35rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
}

.btn-ghost {
  margin-top: 1rem;
  background: transparent;
  color: var(--bone);
  border: 1px solid #6a3a28;
  width: auto;
  padding-inline: 1.4rem;
}

#verify-actions {
  display: grid;
  gap: 0.6rem;
  max-width: 22rem;
  margin-top: 1rem;
}

#verify-actions .btn {
  width: 100%;
}

@media (max-width: 960px) {
  .hero,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .status-cluster .hide-sm {
    display: none;
  }

  .intel {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .intel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
