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

:root {
  --red: #e11d48;
  --red-dark: #9f1239;
  --bg: #0a0a0a;
  --bg2: #111114;
  --surface: #18181b;
  --border: #27272a;
  --text: #fafafa;
  --muted: #71717a;
  --accent: #a855f7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(225,29,72,.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168,85,247,.12) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: .7; }
  to   { opacity: 1; }
}

.hero-content { position: relative; z-index: 1; }

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--red);
  background: rgba(225,29,72,.12);
  border: 1px solid rgba(225,29,72,.3);
  padding: .35rem 1rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.logo {
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -4px;
  text-transform: uppercase;
}
.logo span { color: var(--red); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin: 1.5rem 0 2rem;
  line-height: 1.5;
}

.hero-badges {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hbadge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .1em;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── SECTIONS ── */
.section {
  padding: 6rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.section.dark {
  max-width: 100%;
  background: var(--bg2);
  padding: 6rem 1.5rem;
}
.section.dark > * { max-width: 860px; margin-left: auto; margin-right: auto; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--red);
  letter-spacing: .2em;
  margin-bottom: .75rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── BUTTONS ── */
.btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ── GAME PICKER ── */
.picker-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.game-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  min-height: 90px;
  border: 1px solid var(--border);
}

.game-icon { font-size: 2.5rem; }
.game-name {
  font-size: 1.4rem;
  font-weight: 700;
  flex: 1;
}
.game-name.spinning {
  animation: flicker .08s infinite;
}
@keyframes flicker {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}

.picker-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.gamelist { display: flex; flex-wrap: wrap; gap: .5rem; }
.game-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  padding: .3rem .8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.game-tag button {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: .9rem; padding: 0; line-height: 1;
}
.game-tag button:hover { color: var(--red); }

/* ── BEEF ── */
.beef-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media(max-width: 640px) { .beef-wrap { grid-template-columns: 1fr; } }

.beef-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.beef-form input, .beef-form textarea,
.roast-box input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.beef-form input:focus, .beef-form textarea:focus, .roast-box input:focus {
  border-color: var(--red);
}
.beef-form textarea { resize: vertical; min-height: 100px; }

.beef-feed { display: flex; flex-direction: column; gap: .75rem; overflow-y: auto; max-height: 400px; }

.beef-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  animation: slidein .3s ease;
}
@keyframes slidein { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

.beef-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-size: .8rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.beef-card-header strong { color: var(--red); }
.beef-card-header .beef-at { color: var(--accent); }
.beef-text { font-size: .95rem; line-height: 1.5; }
.beef-loading { color: var(--muted); font-style: italic; }

/* ── VIBE ── */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media(max-width: 480px) { .vibe-grid { grid-template-columns: repeat(2,1fr); } }

.vibe-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all .15s;
}
.vibe-btn:hover { border-color: var(--red); background: rgba(225,29,72,.08); transform: scale(1.04); }
.vibe-btn small { display: block; font-size: .75rem; color: var(--muted); margin-top: .25rem; }

.vibe-live {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  min-height: 50px;
}
.vibe-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem 1rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: slidein .3s ease;
}
.vibe-entry .vibe-who { color: var(--muted); font-size: .8rem; font-family: 'JetBrains Mono', monospace; }

/* ── ROAST ── */
.roast-box { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }

.roast-output {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  min-height: 80px;
  display: none;
  animation: slidein .3s ease;
}
.roast-output.show { display: block; }

/* ── HALL OF SHAME ── */
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.hof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.hof-card:hover { border-color: var(--red); transform: translateY(-3px); }
.hof-trophy { font-size: 2.5rem; margin-bottom: .75rem; }
.hof-title { color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.hof-name { font-size: 1.5rem; font-weight: 900; margin-bottom: .5rem; }
.hof-desc { color: var(--muted); font-size: .875rem; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-logo { font-size: 2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: .5rem; }
.footer-sub { color: var(--muted); font-size: .9rem; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .3s ease;
  z-index: 999;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
