body {
  font-family: system-ui, sans-serif;
  background: #ffffff;
  color: #4a1f2f;
  margin: 0;
  padding: 20px;
}

main {
  max-width: 640px;
  margin: 0 auto;
  background: #fff5f7;
  border: 1px solid #f8c6d2;
  border-radius: 8px;
  padding: 20px;
}

h1 {
  color: #d94f78;
  text-align: center;
  margin-top: 0;
}

h2, h3 {
  color: #b73a62;
  margin-bottom: 8px;
}

section {
  margin-top: 16px;
}

.hidden {
  display: none;
}

input[type="text"] {
  padding: 8px;
  border: 1px solid #f2a7bb;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  background: #ffffff;
  color: #4a1f2f;
}

button {
  padding: 8px 16px;
  background: #ec6e94;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 6px;
}

button:hover {
  background: #d94f78;
}

button:disabled {
  background: #f2a7bb;
  cursor: default;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 4px 0;
}

li {
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #f8c6d2;
  border-radius: 4px;
  margin-bottom: 4px;
}

.status {
  color: #8a3050;
  font-size: 14px;
  min-height: 20px;
}

#countdown-view {
  text-align: center;
  padding: 30px 10px;
  background: #ffffff;
  border: 1px solid #f8c6d2;
  border-radius: 8px;
}

.countdown-label {
  font-size: 16px;
  color: #8a3050;
  margin: 0 0 6px 0;
}

.countdown-hint {
  font-size: 22px;
  color: #b73a62;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.countdown {
  font-size: 72px;
  text-align: center;
  color: #d94f78;
  margin: 0;
  font-weight: bold;
  line-height: 1;
}

.sequence {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #f8c6d2;
  border-radius: 4px;
  font-size: 26px;
}

.arrow {
  color: #d94f78;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-sizing: border-box;
  flex: 0 0 auto;
  font-weight: bold;
}

.arrow.done {
  color: #b73a62;
  opacity: 0.3;
}

.arrow.current {
  color: #ffffff;
  background: #ec6e94;
}

#round-label {
  font-weight: bold;
  color: #b73a62;
  font-size: 18px;
}

.winner {
  font-size: 18px;
  font-weight: bold;
  color: #b73a62;
  text-align: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #f8c6d2;
  border-radius: 4px;
}

#stats-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #f8c6d2;
  border-radius: 4px;
  overflow: hidden;
  font-size: 14px;
}

#stats-table th,
#stats-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #fce3eb;
}

#stats-table th {
  background: #fce3eb;
  color: #b73a62;
}

#stats-table tbody tr:last-child td {
  border-bottom: none;
}

#stats-table tbody tr:nth-child(odd) {
  background: #fff9fb;
}
