:root {
  --ink: #080a08;
  --ink-soft: #101510;
  --gold: #c99943;
  --gold-light: #efc66f;
  --platinum: #e7e4dc;
  --sage: #82932b;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(201, 153, 67, 0.16), transparent 34rem),
    linear-gradient(180deg, #090c09 0%, #050605 100%);
  color: #f5f1e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.vote-page {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.vote-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1122px);
  margin: 0 auto 16px;
  color: rgba(245, 241, 232, 0.72);
}

.vote-intro p {
  margin: 0;
  font-size: 0.92rem;
}

.poster-shell {
  width: min(100%, 1122px);
  margin: 0 auto;
}

.poster-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  overflow: hidden;
  border: 1px solid rgba(239, 198, 111, 0.26);
  border-radius: 18px;
  background: #060806;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.approved-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.poster-hotspot {
  position: absolute;
  z-index: 2;
  top: 45.506419%;
  height: 7.061341%;
  min-height: 44px;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(201, 153, 67, 0.001);
  box-shadow: 0 0 0 0 rgba(239, 198, 111, 0);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  touch-action: manipulation;
}

.poster-hotspot[data-choice="Mundea"] {
  left: 3.208556%;
  width: 22.192513%;
}

.poster-hotspot[data-choice="Viedisimo"] {
  left: 28.520499%;
  width: 21.836007%;
}

.poster-hotspot[data-choice="Mondwell"] {
  left: 53.208556%;
  width: 22.103387%;
}

.poster-hotspot[data-choice="NOYREN"] {
  left: 78.342246%;
  width: 21.657754%;
}

.poster-hotspot:not(:disabled):hover {
  border-color: rgba(239, 198, 111, 0.76);
  background: rgba(201, 153, 67, 0.12);
  box-shadow: 0 0 22px rgba(201, 153, 67, 0.34), 0 0 0 1px rgba(231, 228, 220, 0.62) inset;
  transform: scale(1.018);
}

.poster-hotspot:focus-visible {
  outline: 3px solid var(--platinum);
  outline-offset: 4px;
  border-color: var(--gold-light);
}

.poster-hotspot.is-selected {
  border-color: var(--gold-light);
  background: rgba(201, 153, 67, 0.14);
  box-shadow:
    0 0 28px rgba(201, 153, 67, 0.52),
    0 0 0 1px rgba(231, 228, 220, 0.82) inset;
}

.poster-hotspot.is-recorded {
  cursor: default;
  border-color: var(--platinum);
}

.selection-mark {
  position: absolute;
  top: -18px;
  right: -13px;
  display: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--platinum);
  border-radius: 999px;
  background: #0a0d0a;
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.58);
}

.poster-hotspot.is-selected .selection-mark {
  display: grid;
}

.action-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 32px), 980px);
  margin: -1px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(201, 153, 67, 0.55);
  border-radius: 0 0 18px 18px;
  background: rgba(9, 12, 9, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.action-panel.is-complete {
  border-color: rgba(231, 228, 220, 0.62);
}

.action-copy {
  min-width: 0;
}

.action-label {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.action-copy strong {
  display: block;
  overflow: hidden;
  color: #fff7e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-copy p {
  margin: 7px 0 0;
  color: rgba(245, 241, 232, 0.68);
  font-size: 0.85rem;
  line-height: 1.35;
}

.submit-vote {
  flex: 0 0 auto;
  min-width: 168px;
  min-height: 50px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  background: linear-gradient(135deg, #e0b25b, #b9812e);
  color: #11120e;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(185, 129, 46, 0.24);
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.submit-vote:not(:disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.submit-vote:focus-visible {
  outline: 3px solid var(--platinum);
  outline-offset: 3px;
}

.submit-vote:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: grayscale(0.55);
}

.thank-you-seal {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 1.55rem;
  box-shadow: 0 0 30px rgba(201, 153, 67, 0.26) inset;
}

.vote-footer {
  width: min(100%, 980px);
  margin: 18px auto 0;
  color: rgba(245, 241, 232, 0.43);
  font-size: 0.76rem;
  text-align: center;
}

.results-page {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.results-header {
  margin-bottom: 32px;
  text-align: center;
}

.results-header h1 {
  margin: 10px 0 4px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  font-weight: 500;
  line-height: 1;
}

.results-header p {
  margin: 8px 0 0;
  color: rgba(245, 241, 232, 0.6);
}

.results-status-card,
.results-board {
  border: 1px solid rgba(201, 153, 67, 0.34);
  border-radius: 20px;
  background: rgba(14, 18, 14, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.results-status-card {
  padding: 18px 22px;
  color: rgba(245, 241, 232, 0.68);
  text-align: center;
}

.results-board {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.7fr);
  gap: 30px;
  margin-top: 22px;
  padding: 30px;
}

.results-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(231, 228, 220, 0.13);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(201, 153, 67, 0.12), rgba(255, 255, 255, 0.018));
}

.results-summary span,
.results-summary small {
  color: rgba(245, 241, 232, 0.62);
}

.results-summary strong {
  margin: 2px 0 8px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
}

.results-summary small + small {
  margin-top: 8px;
}

.results-bars {
  display: grid;
  gap: 20px;
}

.result-row {
  align-content: center;
}

.result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.result-meta strong {
  color: #fff3dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.result-meta span {
  color: rgba(245, 241, 232, 0.56);
  font-size: 0.78rem;
}

.result-track {
  height: 11px;
  overflow: hidden;
  border: 1px solid rgba(231, 228, 220, 0.12);
  border-radius: 999px;
  background: #080b08;
}

.result-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a7782c, #efc66f);
  box-shadow: 0 0 16px rgba(239, 198, 111, 0.34);
  transition: width 400ms ease;
}

@media (max-width: 720px) {
  .vote-page {
    padding: 14px 0 28px;
  }

  .poster-shell {
    width: calc(100% - 16px);
  }

  .vote-intro {
    padding: 0 16px;
  }

  .vote-intro p {
    max-width: 190px;
    font-size: 0.78rem;
    text-align: right;
  }

  .poster-stage {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .poster-hotspot {
    border-radius: 8px;
  }

  .selection-mark {
    top: -14px;
    right: -8px;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .action-panel {
    position: sticky;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 16px;
    border-radius: 16px;
  }

  .action-copy p {
    max-width: 250px;
    font-size: 0.76rem;
  }

  .submit-vote {
    min-width: 132px;
    padding-inline: 16px;
  }

  .vote-footer {
    padding: 0 18px;
  }

  .results-page {
    width: min(calc(100% - 24px), 960px);
    padding-top: 44px;
  }

  .results-board {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 0.58rem;
  }

  .action-panel {
    align-items: flex-end;
    gap: 12px;
  }

  .action-copy strong {
    font-size: 1.25rem;
  }

  .action-copy p {
    max-width: 180px;
  }

  .submit-vote {
    min-width: 116px;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.83rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
