*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c0392b;
  --red2: #e74c3c;
  --red-glow: #c0392b44;
  --red-soft: #c0392b18;
  --cream: #faf6f0;
  --warm: #f0e8df;
  --brown: #3d2b1f;
  --brown2: #5c3d2e;
  --muted: #a08060;
  --border: #e8d8c8;
}

body {
  min-height: 100vh;
  background: var(--cream);
  font-family: 'Fraunces', Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Textured background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 100%, #c0392b0d 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 0%, #c0392b08 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Floating blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--red); bottom: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; background: #e07b1a; top: -80px; right: -60px; animation-delay: -9s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 52px 48px;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 8px 60px #3d2b1f14, 0 2px 8px #3d2b1f08;
  animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes cardIn {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Capybara SVG mascot */
.mascot {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  display: block;
  animation: capyBob 3s ease-in-out infinite;
}
@keyframes capyBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brown);
  text-align: center;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
h1 em {
  font-style: italic;
  color: var(--red);
}

.subtitle {
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}

/* Error banner */
.error-banner {
  background: #ffeeed;
  border: 1px solid #f5c6c4;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 20px;
  display: none;
}
.error-banner.show { display: block; }

/* Discord button */
.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 4px 24px var(--red-glow);
  letter-spacing: -0.02em;
}
.btn-discord:hover {
  background: var(--red2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--red-glow);
}
.btn-discord:active { transform: translateY(0); }
.btn-discord svg { width: 22px; height: 22px; flex-shrink: 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
.divider span { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); }

.note {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.note strong { color: var(--brown2); }

/* Footer */
.footer {
  position: fixed;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  z-index: 1;
  opacity: 0.6;
}
