:root {
  --bg: #16120f;
  --card: #241b17;
  --card-2: #30241d;
  --text: #fff7ed;
  --muted: #c8b8aa;
  --line: rgba(255, 247, 237, 0.13);
  --accent: #f2bf5b;
  --accent-dark: #8a5a13;
  --danger: #ff7a7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(242, 191, 91, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.hero {
  padding: 22px 4px 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 14vw, 6rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
  max-width: 36rem;
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hidden {
  display: none !important;
}

label {
  display: block;
  margin: 14px 0 8px;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  font-size: 1.05rem;
}

input:focus {
  border-color: var(--accent);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--accent);
  color: #251a0e;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

button.secondary {
  background: #fff7ed;
  color: #241b17;
}

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 24px 0 8px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.prompt {
  font-size: clamp(1.7rem, 8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0 20px;
}

.big-name {
  color: var(--accent);
}

.players {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.player-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}

.player-row strong {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.vote-grid button {
  border-radius: 18px;
  padding: 18px 0;
  font-size: 1.4rem;
}

.result-box {
  background: rgba(242, 191, 91, 0.1);
  border: 1px solid rgba(242, 191, 91, 0.22);
  border-radius: 22px;
  padding: 16px;
  margin: 16px 0;
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 680px;
  margin: 0 auto;
  background: #fff7ed;
  color: #241b17;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-weight: 700;
}

@media (max-width: 520px) {
  .topbar {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
