:root {
  --bg-0: #0b0b0b;
  --bg-1: #141414;
  --bg-2: #1a1a1a;
  --accent-red: #8b0000;
  --accent-gold: #bfa76f;
  --text-main: #e5e5e5;
  --text-muted: #9a9a9a;
  --border-soft: rgba(191, 167, 111, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 14% 8%, rgba(139, 0, 0, 0.24) 0, transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(191, 167, 111, 0.15) 0, transparent 35%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 45%);
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
  font-family: "Cinzel", serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 7vw, 4.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(191, 167, 111, 0.2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(20, 20, 20, 0.2) 0, rgba(11, 11, 11, 0.82) 78%),
    linear-gradient(165deg, rgba(26, 26, 26, 0.42) 0%, rgba(15, 15, 15, 0.5) 35%, rgba(17, 17, 17, 0.62) 100%),
    url("hero-mafia-roulette.svg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(191, 167, 111, 0.04) 0,
      rgba(191, 167, 111, 0.04) 2px,
      transparent 2px,
      transparent 8px
    );
  opacity: 0.35;
}

.topnav {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  font-family: "Cinzel", serif;
  color: var(--text-main);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-main);
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(11, 11, 11, 0.2);
}

.nav-links a:hover {
  border-color: var(--border-soft);
}

.smoke {
  position: absolute;
  width: 48vw;
  max-width: 600px;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.28;
  background: radial-gradient(circle, rgba(229, 229, 229, 0.3), rgba(229, 229, 229, 0));
  animation: drift 14s ease-in-out infinite;
}

.smoke-a {
  left: -8%;
  top: 8%;
}

.smoke-b {
  right: -10%;
  top: 20%;
  animation-delay: -5s;
}

.smoke-c {
  left: 18%;
  bottom: -24%;
  animation-delay: -9s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-24px) translateX(12px) scale(1.07);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: calc(92vh - 80px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem 0;
}

.status-badge {
  display: inline-block;
  width: fit-content;
  justify-self: center;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--border-soft);
  background: rgba(20, 20, 20, 0.7);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.subtitle {
  color: var(--text-main);
  margin: 0 auto 1.6rem;
  max-width: 640px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.cta-button,
.community-button,
.newsletter button {
  background: linear-gradient(145deg, #7a0909, #4d0202);
  color: var(--text-main);
  border: 1px solid rgba(191, 167, 111, 0.45);
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta-button:hover,
.community-button:hover,
.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(191, 167, 111, 0.5), 0 0 18px rgba(191, 167, 111, 0.35);
  border-color: rgba(191, 167, 111, 0.8);
}

.section {
  padding: 4.2rem 0;
}

.muted {
  color: var(--text-muted);
}

.error {
  color: #d46a6a;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.fact-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.72);
  padding: 1rem;
}

.fact-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.flow-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.flow-list li {
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(191, 167, 111, 0.22);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
}

.mockup {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(165deg, rgba(139, 0, 0, 0.18), rgba(20, 20, 20, 0.75));
}

.mockup-surface {
  min-height: 260px;
  border-radius: 10px;
  border: 1px dashed rgba(191, 167, 111, 0.45);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.card {
  position: absolute;
  width: 78px;
  height: 110px;
  border-radius: 8px;
  border: 1px solid rgba(191, 167, 111, 0.6);
  background: linear-gradient(180deg, #2a2a2a, #151515);
}

.fan-1 {
  transform: rotate(-18deg);
  left: 34%;
}

.fan-2 {
  transform: rotate(0deg);
  left: 45%;
}

.fan-3 {
  transform: rotate(18deg);
  left: 56%;
}

.revolver-hint {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(139, 0, 0, 0.55);
  border-radius: 999px;
  bottom: 18px;
  right: 24px;
}

.mockup p {
  position: absolute;
  bottom: 12px;
  left: 16px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent-gold);
}

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

.feature-card {
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.8rem;
  color: var(--accent-gold);
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.status-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

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

.checklist li {
  border: 1px solid rgba(191, 167, 111, 0.2);
  background: rgba(20, 20, 20, 0.6);
  border-radius: 9px;
  padding: 0.7rem 0.8rem;
}

.state {
  display: inline-block;
  min-width: 56px;
  text-align: center;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  margin-right: 0.5rem;
}

.state.done {
  background: rgba(36, 107, 36, 0.25);
  border: 1px solid rgba(64, 188, 64, 0.4);
}

.state.active {
  background: rgba(139, 0, 0, 0.28);
  border: 1px solid rgba(139, 0, 0, 0.65);
}

.state.wait {
  background: rgba(191, 167, 111, 0.15);
  border: 1px solid rgba(191, 167, 111, 0.35);
}

.trust-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(139, 0, 0, 0.2), rgba(20, 20, 20, 0.8));
  padding: 1.1rem;
}

.trust-box ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.platform-item {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  background: rgba(20, 20, 20, 0.65);
}

.community-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.newsletter {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter input {
  min-width: min(270px, 82vw);
  border-radius: 999px;
  border: 1px solid rgba(191, 167, 111, 0.4);
  background: rgba(11, 11, 11, 0.8);
  color: var(--text-main);
  padding: 0.7rem 0.95rem;
}

.newsletter input::placeholder {
  color: #7f7f7f;
}

.community-button.ghost {
  background: rgba(20, 20, 20, 0.6);
}

blockquote {
  margin: 2rem 0 0;
  border-left: 2px solid var(--accent-gold);
  padding-left: 1rem;
  color: var(--accent-gold);
  font-family: "Cinzel", serif;
}

.footer {
  border-top: 1px solid rgba(191, 167, 111, 0.2);
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.45);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
}

.footer p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.footer div:last-child {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.legal-page {
  min-height: 100vh;
}

.legal-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.75);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.legal-card h2 {
  font-size: 1.15rem;
  margin-top: 1.2rem;
}

.legal-card p {
  color: var(--text-muted);
}

.admin-wrap {
  display: grid;
  gap: 1rem;
}

.admin-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.78);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.admin-card input,
.admin-card textarea {
  border-radius: 10px;
  border: 1px solid rgba(191, 167, 111, 0.35);
  background: rgba(11, 11, 11, 0.8);
  color: var(--text-main);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.admin-card button {
  width: fit-content;
  background: linear-gradient(145deg, #7a0909, #4d0202);
  color: var(--text-main);
  border: 1px solid rgba(191, 167, 111, 0.45);
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-output {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(191, 167, 111, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #c9c9c9;
  padding: 0.7rem;
  overflow-x: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .facts-grid,
  .split,
  .grid-3,
  .status-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    width: 100%;
    gap: 0.45rem;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    min-height: calc(82vh - 110px);
  }

  .section {
    padding: 3.5rem 0;
  }

  .fan-1 {
    left: 24%;
  }

  .fan-2 {
    left: 42%;
  }

  .fan-3 {
    left: 60%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }

  .reveal,
  .smoke,
  .cta-button,
  .community-button,
  .newsletter button {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
