:root {
  --bg: #0b0804;
  --bg-elevated: #171009;
  --gold: #f0b84d;
  --gold-soft: #caa14d;
  --gold-dim: #8a6a2f;
  --text: #f4ead9;
  --text-dim: #baa98f;
  --danger: #e2574c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(ellipse at top, #241a0d 0%, var(--bg) 55%, #050403 100%);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow-x: hidden;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(240, 184, 77, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 10%, rgba(240, 184, 77, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(240, 184, 77, 0.35), transparent),
    radial-gradient(2px 2px at 30% 85%, rgba(240, 184, 77, 0.4), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(240, 184, 77, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 45% 35%, rgba(240, 184, 77, 0.3), transparent);
  background-repeat: repeat;
  background-size: 400px 400px;
}

header, main, footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: left;
}

.shield {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(240, 184, 77, 0.35);
}

.site-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(240, 184, 77, 0.35);
}

.subtitle {
  margin: 0.15rem 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.card {
  background: linear-gradient(160deg, var(--bg-elevated), #0e0a05);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.login-card {
  max-width: 420px;
  margin: 2rem auto;
  text-align: center;
}

.login-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  color: var(--gold);
  font-size: 1.8rem;
  margin: 0 0 0.25rem;
}

.hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}

#login-form,
#password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

#login-form label,
#password-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

input[type='text'],
input[type='password'] {
  background: #241a0d;
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

input[type='text']:focus,
input[type='password']:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 184, 77, 0.2);
}

button {
  cursor: pointer;
  font-family: inherit;
}

#login-form button,
#password-form button,
.vote-btn {
  background: linear-gradient(135deg, var(--gold), #c98f2e);
  color: #241a0d;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#login-form button:hover,
#password-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 184, 77, 0.3);
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0;
}

.voting-screen {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.voting-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.voting-topbar span {
  color: var(--gold);
  font-weight: 600;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  text-decoration: underline;
  font-size: 0.85rem;
}

.banner {
  background: rgba(226, 87, 76, 0.15);
  border: 1px solid var(--danger);
  color: #ffcfc9;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.progress {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0 0 0.15rem;
}

.category-description {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.nominees {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vote-btn {
  background: #241a0d;
  color: var(--text);
  border: 1px solid var(--gold-dim);
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.vote-btn:hover {
  border-color: var(--gold);
}

.vote-btn.selected {
  background: linear-gradient(135deg, var(--gold), #c98f2e);
  color: #241a0d;
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(240, 184, 77, 0.4);
}

.vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 1.5rem 0 2.5rem;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }
}
