* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 18px;
  text-align: center;
}

.hidden {
  display: none;
}

.name-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name-card {
  width: 100%;
  max-width: 620px;
  background: white;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.name-card h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.15;
  text-align: center;
}

.name-card p {
  margin: 0 0 24px;
  font-size: 19px;
  color: #4b5563;
  text-align: center;
}

#name-input {
  width: 100%;
  padding: 22px;
  border: 2px solid #d1d5db;
  border-radius: 18px;
  font-size: 24px;
  text-align: center;
  outline: none;
  margin-bottom: 18px;
}

#name-input:focus {
  border-color: #2563eb;
}

.continue-button {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 20px;
  background: #2563eb;
  color: white;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.continue-button:hover {
  background: #1d4ed8;
}

.small-message {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  color: #b91c1c !important;
  font-weight: bold;
  text-align: center;
}

.top-header {
  background: white;
  border-radius: 22px;
  padding: 26px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.top-header h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  text-align: center;
}

.top-header p {
  margin: 0;
  font-size: 18px;
  color: #4b5563;
  text-align: center;
}

.options {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.option-group {
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.vote-button,
.name-pill {
  width: 100%;
  min-height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: none;
  border-radius: 18px;
  padding: 22px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.vote-button {
  background: white;
  color: #111827;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vote-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.vote-button span {
  text-align: center;
}

.vote-button span:last-child {
  font-size: 17px;
  color: #2563eb;
  white-space: nowrap;
}

.names-list {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.name-pill {
  background: #dbeafe;
  color: #1e3a8a;
  cursor: default;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
}

.message {
  margin: 26px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #374151;
}

@media (max-width: 620px) {
  .container {
    padding: 18px 12px;
  }

  .name-card {
    padding: 26px 18px;
  }

  .name-card h1,
  .top-header h1 {
    font-size: 28px;
  }

  #name-input {
    font-size: 21px;
    padding: 19px;
  }

  .vote-button,
  .name-pill {
    min-height: 68px;
    padding: 18px;
    font-size: 21px;
    flex-direction: column;
  }

  .vote-button span:last-child {
    font-size: 16px;
  }
}
