:root {
  --bg-deep: #120f12;
  --bg-mid: #2a1e24;
  --bg-warm: #3a251d;
  --gold: #ffc24b;
  --gold-strong: #ff9f1a;
  --ember: #ff5f2e;
  --ink: #0d1117;
  --text: #f8f4ea;
  --muted: #d9d2c5;
  --accent: #59d1ff;
  --card: rgba(18, 14, 20, 0.82);
  --border: rgba(255, 194, 75, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, #33506d 0, transparent 35%),
    radial-gradient(circle at 82% 70%, #5c2b1a 0, transparent 40%),
    linear-gradient(150deg, var(--bg-deep) 0%, var(--bg-mid) 48%, var(--bg-warm) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 10px
    );
  z-index: 0;
}

.bg-shapes .shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.shape-1 {
  width: 160px;
  height: 160px;
  background: var(--gold-strong);
  top: 8%;
  left: -40px;
}

.shape-2 {
  width: 220px;
  height: 220px;
  background: #3c9cff;
  right: -70px;
  top: 42%;
  animation-delay: -4s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: #e05037;
  left: 55%;
  bottom: -30px;
  animation-delay: -8s;
}

.hero,
.petition-card {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(860px, 100%);
  text-align: center;
  margin-top: 16px;
  animation: reveal-up 0.8s ease-out both;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255, 194, 75, 0.12);
}

h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
}

.petition-card {
  width: min(860px, 100%);
  margin-top: 22px;
  padding: clamp(20px, 4vw, 36px);
  background:
    linear-gradient(170deg, var(--card), rgba(11, 10, 14, 0.95)),
    linear-gradient(120deg, rgba(255, 159, 26, 0.08), rgba(89, 209, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  animation: reveal-up 1s ease-out 0.12s both;
}

.war-banner {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 194, 75, 0.35);
  border-radius: 14px;
  padding: 16px;
  background:
    linear-gradient(125deg, rgba(255, 95, 46, 0.18), rgba(89, 209, 255, 0.09)),
    rgba(0, 0, 0, 0.24);
}

.war-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.war-banner h2 {
  margin: 6px 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  text-transform: uppercase;
}

.war-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.war-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.war-tags span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 14, 24, 0.6);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.target-block {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.meter-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.counter {
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--gold);
}

.meter-track {
  margin-top: 10px;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  transition: width 280ms ease;
}

.target {
  margin: 10px 0 0;
  color: var(--muted);
}

.fake-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fake-stats article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  background: linear-gradient(155deg, rgba(0, 0, 0, 0.22), rgba(15, 21, 36, 0.22));
}

.fake-stats h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.fake-stats p {
  margin: 6px 0 0;
  color: var(--muted);
}

.clash-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(7, 10, 16, 0.76), rgba(30, 20, 17, 0.42));
}

.card-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
}

.gallery-card h3 {
  margin: 8px 0 4px;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
}

.paul-card img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(8, 11, 18, 0.85);
  border-color: rgba(255, 194, 75, 0.7);
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.25);
}

.battle-feed {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.battle-feed h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-size: 1.05rem;
}

.battle-feed ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.battle-feed li {
  margin: 6px 0;
  color: var(--muted);
}

.sign-btn {
  margin-top: 20px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  background: linear-gradient(130deg, var(--gold), var(--ember));
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.sign-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(255, 95, 46, 0.38);
  filter: brightness(1.04);
}

.sign-btn:active {
  transform: translateY(0);
}

.sign-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25) brightness(0.9);
  box-shadow: none;
}

.sign-btn:disabled:hover {
  transform: none;
}

.toast {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #b8f7c4;
  font-weight: 600;
}

.footnote {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(24px, -12px, 0);
  }
}

@media (max-width: 680px) {
  body {
    padding: 14px;
  }

  .fake-stats {
    grid-template-columns: 1fr;
  }

  .clash-gallery {
    grid-template-columns: 1fr;
  }

  .petition-card {
    border-radius: 16px;
  }

  .war-tags {
    flex-direction: column;
    align-items: flex-start;
  }
}
