/* Vote page: phone first (360 to 430px), fine on a desktop. */

body {
  min-height: 100vh;
  /* biome-ignore lint/suspicious/noDuplicateProperties: 100vh is the fallback for browsers without dvh */
  min-height: 100dvh;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 48px
    max(20px, env(safe-area-inset-left));
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.wordmark {
  display: block;
  height: 20px;
  width: auto;
}
.state-pill {
  height: 32px;
  padding: 0 14px;
  gap: 8px;
  font: 500 15px / 1 var(--nw-font-body);
  color: var(--nw-text-badge);
}

.title {
  margin: 36px 0 0;
  font: 700 38px / 1.1 var(--nw-font-display);
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
}
.lede {
  margin: 14px 0 0;
  font: 500 18px / 1.5 var(--nw-font-body);
  color: var(--nw-text-body);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

/* One option: a real <button> while the vote is open, a plain row after. */
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 10px 10px 10px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: 500 22px / 1.15 var(--nw-font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 300ms ease,
    background-color 300ms ease;
}
button.option {
  cursor: pointer;
  appearance: none;
}
button.option:hover {
  background: rgba(255, 255, 255, 0.1);
}
button.option:active {
  background: rgba(255, 255, 255, 0.13);
}
button.option:focus-visible {
  outline: 3px solid var(--nw-lavender);
  outline-offset: 3px;
}
button.option:disabled {
  cursor: progress;
}
.option.is-yours {
  border-color: var(--nw-border-accent);
}

.option-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(134, 199, 231, 0.16);
  transition: width 600ms ease;
  pointer-events: none;
}
.option.is-yours .option-fill {
  background: rgba(160, 170, 255, 0.24);
}
.option.is-winner .option-fill {
  background: rgba(0, 255, 191, 0.18);
}

.option-label {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.option-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font: 500 14px / 1.2 var(--nw-font-body);
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
}
.option-tag:empty {
  display: none;
}
.option-count {
  position: relative;
  flex: none;
  font: 500 16px / 1.2 var(--nw-font-body);
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.option-icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
}
.option.is-yours .option-icon {
  background: var(--nw-lavender);
}
.option-icon svg {
  width: 20px;
  height: 20px;
}

.message {
  margin: 20px 0 0;
  min-height: 1.5em;
  font: 500 17px / 1.5 var(--nw-font-body);
  color: #fff;
}
.message:empty {
  margin: 0;
  min-height: 0;
}
.total {
  margin: 16px 0 0;
  font: 500 16px / 1.5 var(--nw-font-body);
  color: var(--nw-text-body);
}

.closed-bar {
  margin-top: 32px;
}
