* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  background: #111;
  color: #211f1a;
}

.page {
  min-height: 100vh;
  width: 100%;
}

.hidden {
  display: none;
}

/* SETUP PAGE */

.setup-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(122, 0, 0, 0.4), transparent 35%),
    linear-gradient(135deg, #050505, #150000, #051107);
  padding: 24px;
  text-align: center;
  color: #f1ead8;
}

.setup-logo {
  width: 220px;
  max-width: 80%;
  margin-bottom: 12px;
}

.setup-page h1 {
  margin: 0;
  font-size: 42px;
  text-transform: uppercase;
  color: #ead9a8;
}

.setup-page p {
  margin: 8px 0 18px;
  letter-spacing: 1px;
}

textarea {
  width: 100%;
  max-width: 520px;
  height: 230px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #b79a5b;
  background: #090909;
  color: white;
  font-size: 18px;
  resize: none;
  outline: none;
}

button {
  width: 100%;
  max-width: 520px;
  margin-top: 18px;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: #7b0d13;
  color: #f4ead6;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 4px solid #3b0508;
}

/* DRAW PAGE */

.draw-page {
  position: relative;
  overflow: hidden;
  background: #ebe5d6;
  border: 10px solid #161613;
  padding: 12px;
  height: 100vh;
  max-height: 100vh;
}

.draw-page::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid #161613;
  pointer-events: none;
  z-index: 4;
}

.watermark {
  position: absolute;
  width: 92%;
  max-width: 520px;
  opacity: 0.055;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.draw-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 86px;
  padding-left: 14px;
}

.small-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.draw-header h1 {
  margin: 0;
  font-size: 32px;
  line-height: 0.9;
  text-transform: uppercase;
}

.draw-header p {
  margin: 6px 0 0;
  font-size: 18px;
  color: #7b0d13;
  text-transform: uppercase;
}

.divider {
  position: relative;
  z-index: 2;
  border-top: 4px double #161613;
  margin: 6px 0 10px;
}

/* SHUFFLE AREA */

.shuffle-area {
  position: relative;
  z-index: 2;
  height: 94px;
  border: 2px solid #9d8a5d;
  background: rgba(235, 229, 214, 0.68);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

#statusText {
  margin: 0;
  font-size: 15px;
  color: #7b0d13;
  text-transform: uppercase;
}

#shuffleDisplay {
  font-size: 28px;
  color: #161613;
  padding: 8px;
}

.shuffling {
  animation: shufflePulse 0.12s infinite alternate;
}

@keyframes shufflePulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
    color: #7b0d13;
  }
}

/* RESULT LIST */

.result-list {
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 8px;
}

.result-list.two-columns {
  grid-template-columns: 1fr 1fr;
}

.result-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  border: 1px solid #9d8a5d;
  background: rgba(244, 240, 225, 0.82);
  font-size: 13px;
  text-transform: uppercase;
  overflow: hidden;
  animation: revealName 0.28s ease forwards;
}

.result-list li span:first-child {
  background: #7b0d13;
  color: #f4ead6;
  height: 100%;
  display: grid;
  place-items: center;
}

.result-list li span:last-child {
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes revealName {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* TAGLINE */

.tagline-footer {
  position: relative;
  z-index: 3;
  margin-top: 7px;
  text-align: center;
  font-size: 10px;
  color: #161613;
  letter-spacing: 0.3px;
}

footer {
  display: none;
}

/* MOBILE */

@media (max-width: 480px) {
  .draw-page {
    padding: 10px;
    border-width: 8px;
  }

  .draw-header {
    height: 76px;
    padding-left: 12px;
    gap: 14px;
  }

  .small-logo {
    width: 56px;
    height: 56px;
  }

  .draw-header h1 {
    font-size: 27px;
  }

  .draw-header p {
    font-size: 15px;
  }

  .shuffle-area {
    height: 90px;
  }

  #shuffleDisplay {
    font-size: 24px;
  }

  .result-list {
    gap: 4px 6px;
  }

  .result-list li {
    grid-template-columns: 30px 1fr;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    font-size: 12px;
  }

  .tagline-footer {
    font-size: 9px;
    margin-top: 6px;
  }
}