:root {
  --blood: #b30000;
  --blood-bright: #e01212;
  --bg: #07060a;
  --panel: #121016;
  --panel-border: #2a1417;
  --ink: #e8e0dc;
  --amber: #d98a1c;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(179, 0, 0, .25), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'Special Elite', 'Courier New', monospace;
  min-height: 100vh;
}

/* Niebla animada */
.fog {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 20% 80%, rgba(255, 255, 255, .05), transparent 70%),
    radial-gradient(50% 35% at 80% 70%, rgba(255, 255, 255, .04), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-4%) scale(1); }
  to   { transform: translateX(4%) scale(1.1); }
}

header, main, footer { position: relative; z-index: 1; }

.hero { padding: 5rem 0 3rem; }

.kicker {
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: .9rem;
}

.title {
  font-family: 'Creepster', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: .95;
  color: var(--blood-bright);
  text-shadow: 0 0 12px rgba(224, 18, 18, .6), 0 4px 0 #3a0000;
  animation: flicker 5s infinite;
}
@keyframes flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: .55; }
}

.subtitle { color: #bdb2ae; margin-top: 1rem; }

.pets { font-size: 1.4rem; margin: 1rem 0 1.5rem; }
.pets span { font-family: 'Creepster', cursive; color: var(--amber); font-size: 1.8rem; }

.event-box {
  max-width: 560px;
  border: 1px dashed var(--blood);
  border-radius: .5rem;
  padding: .9rem 1.2rem;
  background: rgba(0, 0, 0, .35);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.countdown .unit {
  min-width: 78px;
  padding: .6rem .4rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: .5rem;
}
.countdown .num {
  display: block;
  font-family: 'Creepster', cursive;
  font-size: 2.2rem;
  color: var(--blood-bright);
}
.countdown .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #8f8582; }

.card-dark {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: .75rem;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, .6);
}

.section-title, .creep {
  font-family: 'Creepster', cursive;
  font-weight: 400;
  letter-spacing: .04em;
}
.section-title { color: var(--blood-bright); font-size: 2.4rem; margin-bottom: 1rem; }
.blood-text { color: var(--blood-bright); }

.pact {
  border-left: 4px solid var(--blood);
  padding: .5rem 1rem;
  margin: 1.2rem 0;
  color: #cfc4c0;
  font-style: italic;
}

.btn-blood {
  --bs-btn-bg: var(--blood);
  --bs-btn-border-color: #5c0000;
  --bs-btn-hover-bg: var(--blood-bright);
  --bs-btn-hover-border-color: var(--blood);
  --bs-btn-active-bg: #7d0000;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-family: 'Creepster', cursive;
  letter-spacing: .08em;
  box-shadow: 0 0 18px rgba(179, 0, 0, .45);
}

.form-control, .form-control:focus {
  background: #0c0a0f;
  border-color: #3a2226;
  color: var(--ink);
}
.form-control:focus {
  border-color: var(--blood);
  box-shadow: 0 0 0 .2rem rgba(179, 0, 0, .3);
}

/* Catálogo de asesinos */
.killer-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.killer-col { position: relative; }

.killer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 150px;
  padding: .9rem .6rem;
  background: #0c0a0f;
  border: 1px solid #3a2226;
  border-radius: .6rem;
  cursor: pointer;
  position: relative;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.killer-card:hover { transform: translateY(-3px); border-color: var(--blood); }
.killer-radio:focus-visible + .killer-card { outline: 2px solid var(--amber); outline-offset: 2px; }
.killer-radio:checked + .killer-card {
  border-color: var(--blood-bright);
  background: #1c0709;
  box-shadow: 0 0 20px rgba(224, 18, 18, .55);
}

.killer-emoji { font-size: 2.2rem; }
.killer-name { font-family: 'Creepster', cursive; font-size: 1.25rem; line-height: 1.1; margin-top: .3rem; color: #f0e6e2; }
.killer-origin { font-size: .75rem; color: #8f8582; margin-top: .25rem; }

.killer-card.taken {
  opacity: .35;
  filter: grayscale(1);
  cursor: not-allowed;
}
.killer-card.taken:hover { transform: none; border-color: #3a2226; }
.badge-taken {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--blood);
  color: #fff;
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.success-box {
  padding: 2rem 1rem;
  border: 1px solid var(--blood);
  border-radius: .75rem;
  background: rgba(179, 0, 0, .08);
}

footer { border-top: 1px solid var(--panel-border); margin-top: 3rem; }

/* Panel de administración */
.admin-wrap { max-width: 1000px; margin: 3rem auto; position: relative; z-index: 1; }
.table-dark { --bs-table-bg: transparent; }

@media (max-width: 575px) {
  .card-dark { padding: 1.2rem; }
  .hero { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fog, .title { animation: none; }
  html { scroll-behavior: auto; }
}
