:root {
  color-scheme: dark;
  --bg: #000000;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --faint: #4f4f4f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: #000;
  overflow: hidden;
}

.language-wrap {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2;
}

.language-button {
  appearance: none;
  border: 0;
  background: #000;
  color: #bcbcbc;
  padding: 10px 22px 10px 4px;
  cursor: pointer;
  font-size: 14px;
  text-align: right;
}

.language-wrap {
  position: fixed;
}

.language-wrap::after {
  content: "⌄";
  position: absolute;
  right: 3px;
  top: 10px;
  color: #888;
  font-size: 12px;
  pointer-events: none;
}

.language-button option {
  background: #000;
  color: #f5f5f5;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(76px, env(safe-area-inset-top))
    24px
    max(32px, env(safe-area-inset-bottom));
  text-align: center;
}

h1 {
  margin: 0 0 clamp(54px, 8vh, 90px);
  font-size: clamp(34px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 900px;
}

.vote-area {
  width: min(720px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  min-height: 116px;
}

.vote {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 20px;
  font-size: clamp(48px, 11vw, 96px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.vote:active {
  transform: scale(0.97);
}

.vote:hover {
  opacity: 0.72;
}

.vote:focus-visible,
.share:focus-visible,
.language-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.divider {
  width: 1px;
  background: #5a5a5a;
  align-self: stretch;
}

.count {
  margin: 42px 0 0;
  color: #d0d0d0;
  font-size: 14px;
}

.protection {
  margin-top: 68px;
  max-width: 470px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.shield {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #a0a0a0;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.protection p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.share {
  margin-top: 28px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #f0f0f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.share-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  h1 {
    max-width: 330px;
    margin-bottom: 46px;
  }

  .vote-area {
    width: min(390px, 94vw);
    min-height: 95px;
  }

  .vote {
    padding-inline: 10px;
  }

  .count {
    margin-top: 34px;
  }

  .protection {
    margin-top: 54px;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vote {
    transition: none;
  }
}

.turnstile-widget {
  margin-top: 18px;
  min-height: 0;
  display: flex;
  justify-content: center;
}

.vote.selected {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

.vote.unselected {
  color: #000000 !important;
  opacity: 1 !important;
  pointer-events: none;
}

.vote-check {
  display: inline-block;
  margin-left: 9px;
  color: #39d353 !important;
  font-size: 0.38em;
  font-weight: 700;
  vertical-align: 0.18em;
}

.country-milestone {
  margin-top: 24px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #666666;
}

.country-milestone strong {
  color: #777777;
  font-size: 12px;
  font-weight: 500;
}

.country-milestone span {
  font-size: 11px;
  color: #5f5f5f;
}

.country-milestone small {
  margin-top: 1px;
  font-size: 10px;
  color: #505050;
}

.country-icon {
  font-size: 15px;
  color: #5f5f5f;
  margin-bottom: 2px;
}

.country-unlock-note {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  max-width: 250px;
  font-size: 11px;
  line-height: 1.45;
  color: #666;
  letter-spacing: 0.01em;
}

.country-unlock-note small {
  display: block;
  margin-top: 2px;
  padding-left: 10px;
  font-size: 10px;
  color: #4f4f4f;
}

@media (max-width: 600px) {
  .country-unlock-note {
    top: 14px;
    left: 14px;
    max-width: 210px;
    font-size: 10px;
  }

  .country-unlock-note small {
    font-size: 9px;
  }
}
