/* phones draw a blue flash on every tap; the site's own hover and focus styles replace it */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* ---------------------------------------------------------------------------
   Voting flow + account pages (signup / verify / login / vote).
   Loaded after style.css, which supplies the site header, fonts and tokens.
   --------------------------------------------------------------------------- */

.vote-body [hidden] { display: none !important; }

.vote-body {
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --muted: rgba(244, 239, 228, 0.62);
  --faint: rgba(244, 239, 228, 0.38);
  --danger: #e58a8a;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(240, 215, 140, 0.09), transparent 70%),
    var(--bg);
  min-height: 100vh;
}

.vote-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3.5rem 16px 6rem;
}

.eyebrow {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.vote-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
  color: var(--ivory);
}

.vote-lede {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0 0;
  max-width: 34rem;
}

/* ---- Account pages (signup / verify / login) ---------------------------- */

.auth-card {
  max-width: 27rem;
  margin: 1rem auto 0;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.auth-card .vote-title { font-size: 2.4rem; }

.auth-steps {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}

.auth-steps span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
}

.auth-steps span.is-done { background: var(--gold); }

/* Google's dark-theme sign-in button (per their branding guidelines). */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
  padding: 0.85rem 1.25rem;
  background: #131314;
  border: 1px solid #8e918f;
  border-radius: 8px;
  color: #e3e3e3;
  font: 500 0.92rem 'Montserrat', sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-google:hover { background: #1f1f20; border-color: #c4c7c5; }
.btn-google:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 -0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

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

.auth-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }

.auth-field label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: 400 1rem 'Montserrat', sans-serif;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 215, 140, 0.15);
}

.auth-field input.code-input {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.6em;
  text-align: center;
  padding: 0.7rem 0 0.7rem 0.6em;
}

.auth-hint { font-size: 0.75rem; color: var(--faint); }

.btn-block {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.95rem 1.5rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.auth-alt {
  margin: 1.75rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.auth-alt a { color: var(--gold); text-decoration: none; font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }

.auth-inline-form { margin: 1rem 0 0; text-align: center; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: 500 0.85rem 'Montserrat', sans-serif;
  color: var(--gold);
  cursor: pointer;
}

.link-btn:hover { text-decoration: underline; }

.notice {
  margin: 1.5rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  border: 1px solid rgba(240, 215, 140, 0.35);
  background: rgba(240, 215, 140, 0.08);
  color: var(--gold);
}

.notice-error {
  border-color: rgba(229, 138, 138, 0.4);
  background: rgba(229, 138, 138, 0.08);
  color: var(--danger);
}

.notice-dev { border-style: dashed; }

/* ---- Voting flow -------------------------------------------------------- */

.vote-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.vote-progress {
  display: flex;
  gap: 1.75rem;
  margin: 0 0 2.75rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.vote-progress-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--faint);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.vote-progress-step.is-active { color: var(--text); border-bottom-color: var(--gold); }
.vote-progress-step.is-done { color: var(--muted); }

.vote-progress-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font: 500 0.75rem 'Oswald', sans-serif;
}

.vote-progress-step.is-active .vote-progress-index { border-color: var(--gold); color: var(--gold); }
.vote-progress-step.is-done .vote-progress-index { background: var(--gold); border-color: var(--gold); color: #000; }

.vote-progress-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vote-stage { display: none; }
.vote-stage.is-active { display: block; }

.vote-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.vote-search { position: relative; flex: 1; min-width: 14rem; }

#nominee-search {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font: 400 0.95rem 'Montserrat', sans-serif;
  padding: 0.85rem 1.25rem;
  transition: border-color 0.2s ease;
}

#nominee-search:focus { outline: none; border-color: var(--gold); }

.cat-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.cat-tab {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font: 500 0.78rem 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-tab:hover { color: var(--text); }
.cat-tab.is-on { background: var(--gold); border-color: var(--gold); color: #000; }

.nominee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.85rem;
}

.nominee-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  padding: 1.15rem 1.2rem 1.2rem;
  min-height: 6.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nominee-card:hover:not(:disabled) { border-color: rgba(240, 215, 140, 0.5); transform: translateY(-2px); }
.nominee-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nominee-card:disabled { opacity: 0.35; cursor: not-allowed; }

.nominee-card.is-selected {
  border-color: var(--gold);
  background: rgba(240, 215, 140, 0.08);
}

.nominee-card-cat {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nominee-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}

.nominee-card-check {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #000;
}

.nominee-card.is-selected .nominee-card-check { background: var(--gold); border-color: var(--gold); }

.vote-empty { color: var(--muted); padding: 2rem 0; text-align: center; grid-column: 1 / -1; }

/* Sticky tray with current selection */
.vote-tray {
  position: sticky;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.selected-nominees { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1; min-width: 0; }

.nominee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.35rem 0.3rem 0.85rem;
  border: 1px solid rgba(240, 215, 140, 0.5);
  border-radius: 999px;
  font-size: 0.8rem;
}

.nominee-chip-remove {
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
}

.selection-count { font-size: 0.8rem; color: var(--muted); margin: 0; white-space: nowrap; }

.vote-main .btn-primary,
.vote-main .btn-secondary {
  border-radius: 8px;
  cursor: pointer;
}

.vote-main .btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

/* Stage 2 */
.final-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.final-choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  text-align: left;
  padding: 1.6rem 1.5rem;
  min-height: 9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.final-choice-card:hover { border-color: rgba(240, 215, 140, 0.5); }

.final-choice-card.is-selected {
  border-color: var(--gold);
  background: rgba(240, 215, 140, 0.08);
  box-shadow: 0 0 0 1px var(--gold), 0 20px 50px rgba(240, 215, 140, 0.08);
}

.final-choice-category {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.final-choice-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
}

.vote-stage-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.vote-error { margin: 0 0 1.5rem; }

/* Stage 3 */
.vote-done { text-align: center; padding: 2rem 0; }

.seal {
  width: 96px;
  height: 96px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.4rem;
  box-shadow: 0 0 0 8px rgba(240, 215, 140, 0.06), 0 0 60px rgba(240, 215, 140, 0.2);
}

.vote-done .vote-lede { margin-left: auto; margin-right: auto; }
.vote-done .gold { font-weight: 600; }

.vote-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--faint);
}

.vote-account form { margin: 0; }

@media (max-width: 640px) {
  .vote-main { padding-top: 2rem; }
  .auth-card { padding: 2rem 1.35rem; border-radius: 12px; }
  .vote-progress { gap: 1rem; }
  .vote-progress-label { font-size: 0.7rem; letter-spacing: 0.08em; }
  .nominee-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .nominee-card-name { font-size: 1.2rem; }
  .vote-tray { bottom: 0.5rem; }
  .vote-tray .btn-primary { width: 100%; }
}

@media (max-width: 380px) {
  .nominee-grid { grid-template-columns: 1fr; }
}
