body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #1c1c1c;
  color: #f0f0f0;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #ffe47a;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.back-button {
  background-color: #2b2b2b;
  color: #ffe47a;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 228, 122, 0.2);
  transition: background 0.2s ease;
}

.back-button:hover {
  background-color: #3a3a3a;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.score-area, .timer-area {
  background: #2b2b2b;
  padding: 1rem;
  border-radius: 1rem;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 0 12px rgba(255, 228, 122, 0.2);
}

.drawn-card {
  width: 280px;
  height: 420px;
  object-fit: cover;
  margin-top: -10px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.score-thumbnail {
  width: 40px;
  height: auto;
  border-radius: 4px;
}

.score-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.score-list div {
  background-color: #444;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  font-size: 0.85rem;
  flex: 0 1 auto;
}

.main-card-area {
  background: #2b2b2b;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 0 24px rgba(255, 228, 122, 0.2);
  margin-bottom: 2rem;
}

.card-display {
  width: 260px;
  height: 390px;
  margin: 0 auto;
  border: 14px solid #0033a0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #ffd700 0%, #ffffff 50%, #ffd700 100%);
  padding: 10px;
  box-shadow: 0 0 18px rgba(255, 228, 122, 0.3);
  transition: all 0.3s ease;
}

.choice-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.kings-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: gold;
  color: #000;
  font-weight: bold;
  font-size: 1.4em;
  padding: 1em 2em;
  border: 3px solid #444;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.kings-banner.show {
  opacity: 1;
}

.kings-banner.hidden {
  display: none;
}

button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #9e182f;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

button:hover {
  background-color: #c41e3a;
}

.highlight {
  color: #ffe47a;
}

#timeContainer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#timeInput {
  width: 100%;
  padding: 0.3rem;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 0.5rem;
  border: none;
  background: #1c1c1c;
  color: #ffe47a;
}

#timeInput.warning {
  color: #ff4747;
  transform: scale(1.1);
}

#timeInput.finished {
  color: #ffe47a;
  font-weight: bold;
}

.rules-section {
  background: #2b2b2b;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 18px rgba(255, 228, 122, 0.15);
}

.rules-section h2 {
  color: #ffe47a;
  margin-bottom: 1rem;
}

.rules-block {
  background: #1f1f1f;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin-top: 1.5rem;
  box-shadow: 0 0 10px rgba(255, 228, 122, 0.1);
}

.rules-block h3 {
  color: #ffe47a;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.rules-block ul, .rules-block ol {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.rounds-list li, .setup-list li {
  margin-bottom: 0.5rem;
}

.rules-block li ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.event-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1rem;
}

.event-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.2rem;
  text-indent: -1.2rem;
}

.event-list li ul {
  margin-top: 0.4rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}
.drink-tracker {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #2a2a2a;
  border-radius: 8px;
  color: #ffe47a;
}
.drink-tracker input {
  margin-bottom: 0.5rem;
  padding: 0.25rem;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
}
.player-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.player-cards img {
  width: 30px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.player-cards img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
    font-size: 1rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .main-card-area {
    padding: 1rem;
    width: 100%;
  }

  .score-area,
  .timer-area {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }

  .player-score {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .choice-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .choice-buttons button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    width: 100%;
  }

  .card-display {
    font-size: 1.1rem;
    padding: 1rem;
  }

  .score-thumbnail {
    width: 48px;
    height: auto;
  }

  h1,
  h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .rules-section,
  .rules-block {
    padding: 1rem;
    font-size: 0.95rem;
  }

  #timeContainer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  #timeInput {
    width: 100%;
    font-size: 1rem;
  }
}
