:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #0b0d0c;
  color: #d8dedb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 15%, #173128 0, transparent 35rem),
    #0b0d0c;
}

main {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

header { text-align: center; margin-bottom: 3rem; }
h1 { margin: .25rem 0; font-size: clamp(2.2rem, 8vw, 4.5rem); letter-spacing: -.08em; }
.eyebrow { color: #71d69f; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; }
.premise, .muted { color: #8b9691; }

.memorial {
  border: 1px solid #6a3436;
  background: rgba(34, 10, 12, .88);
  margin-bottom: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.memorial[hidden] { display: none; }
.memorial h2 { margin: .5rem 0; color: #e09395; }
.memorial p { text-transform: capitalize; color: #b5aaa8; }

button {
  appearance: none;
  border: 1px solid #71d69f;
  background: #152b21;
  color: #d8dedb;
  cursor: pointer;
  font: inherit;
  padding: .75rem 1rem;
}

button:hover { background: #204231; }

.apparatus {
  border: 1px solid #30453c;
  background: rgba(7, 12, 10, .8);
  padding: 1.25rem;
  box-shadow: 0 0 80px rgba(55, 209, 126, .08);
}

.status-row { display: flex; justify-content: space-between; color: #8b9691; }
.status { font-weight: 800; letter-spacing: .12em; }
.status.alive { color: #71d69f; }
.status.dead { color: #d66f71; }
.creature { min-height: 9rem; display: grid; place-items: center; font-size: 1.35rem; line-height: 1.3; color: #71d69f; }
.identity { text-align: center; text-transform: capitalize; font-weight: 700; }
.lifetime, .countdown { text-align: center; color: #8b9691; }
.countdown { min-height: 1.3rem; color: #d6be71; }
.apparatus-actions {
  align-items: center;
  border-top: 1px solid #25312c;
  color: #8b9691;
  display: flex;
  font-size: .8rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

h2 { margin-top: 3rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; }
.graveyard { display: grid; gap: .5rem; }
.graveyard article {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  border-bottom: 1px solid #25312c;
  padding: .85rem 0;
  text-transform: capitalize;
}
.graveyard small { color: #8b9691; }

@media (max-width: 520px) {
  main { padding-top: 2.5rem; }
  .apparatus-actions { align-items: stretch; flex-direction: column; gap: 1rem; }
  .graveyard article { grid-template-columns: 1fr; gap: .25rem; }
}
