:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --accent: #38bdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Verdana", "Geneva", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.nav__brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav__links a {
  color: var(--text);
  margin-left: 12px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav__links a:hover {
  background: rgba(56, 189, 248, 0.15);
}

.layout {
  min-height: 100vh;
}

.content {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
}

.hero {
  background: none;
  border: none;
  border-radius: 16px;
  padding: 32px 42px;
  text-align: center;
  box-shadow: none;
}

.hero__label {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.hero__hint {
  margin: 0;
  opacity: 0.82;
}

.cover__img,
.qr__img {
  max-width: min(90vw, 520px);
  width: 100%;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: none;
}

.hero__note {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.7;
}

.vote-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 14px 16px;
  justify-items: center;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .vote-buttons {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .vote-buttons {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

.vote-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.65);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
  min-width: 140px;
}

.vote-btn:hover:not([disabled]) {
  background: rgba(56, 189, 248, 0.3);
}

.vote-btn:active:not([disabled]) {
  transform: translateY(1px);
}

.vote-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.vote-btn--selected {
  background: rgba(56, 189, 248, 0.5);
  border-color: rgba(56, 189, 248, 1);
}

[data-vote-status] {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.85;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  background: #0b162d;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 20px 22px;
  min-width: min(420px, 90vw);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.modal__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__text {
  margin: 0 0 14px;
  font-size: 16px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

