:root {
      --bg: #f8f8f8;
      --blue: #0073EB;
      --pink: #EC2C79;
      --text: #141414;
      --glass: rgba(255, 255, 255, 0.7);
      --glass-border: rgba(255, 255, 255, 0.30);
      --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
      --radius-xl: 34px;
      --radius-lg: 24px;
      --max-width: 1280px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .page-shell {
      min-height: 500vh;
      position: relative;
      isolation: isolate;
      background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.96) 0%, rgba(255,255,255,0.68) 18%, rgba(243,243,245,0) 30%),
        var(--bg);
    }
    
    .container {
      width: min(calc(100% - 32px), var(--max-width));
      margin: 0 auto;
      position: relative;
      z-index: 3;
    }

    :root {
      --curtain-side-height: clamp(300px, 60vw, 690px); /* increased ~30% */
      --curtain-top-height: clamp(55px, 7vw, 110px); /* reduced ~40% */
      --curtain-top-overlap: clamp(18px, 2vw, 34px);
    }
    
    /* keep page-shell as the positioning context */
    .page-shell {
      min-height: 100vh;
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.96) 0%, rgba(255,255,255,0.68) 18%, rgba(243,243,245,0) 30%),
        var(--bg);
    }
    


/* =========================
   VOTE PAGE
========================= */

.vote-page {
  position: relative;
  z-index: 3;
}

.vote-hero {
  padding: 104px 0 46px;
}

.vote-hero-stage {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(36px, 5vw, 72px);
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,0.96) 0 10%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 78% 16%, rgba(255,255,255,0.72) 0 8%, rgba(255,255,255,0) 27%),
    linear-gradient(132deg, #fff 0%, #f6fbff 35%, #ffe9f2 65%, #eef7ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 22px 60px rgba(0, 115, 235, 0.12);
}

.vote-hero-stage::before {
  content: "";
  position: absolute;
  inset: auto -8% -30% -8%;
  height: 58%;
  background:
    linear-gradient(90deg, rgba(0,115,235,0.16), rgba(236,44,121,0.18)),
    url("SVG_assets/Banner.svg") center / cover no-repeat;
  opacity: 0.36;
  transform: rotate(-2deg);
  pointer-events: none;
}

.vote-hero-stage::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(236, 44, 121, 0.16);
  pointer-events: none;
}

.vote-intro {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 610px;
}

.vote-eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--pink);
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}

.vote-title {
  margin: 0;
  font-family: "Dela Gothic One", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: clamp(4.8rem, 12vw, 10.5rem);
  line-height: 0.82;
  font-weight: 900;
  color: #111;
  text-shadow:
    6px 6px 0 rgba(0, 115, 235, 0.16),
    -5px -5px 0 rgba(236, 44, 121, 0.13);
}

.vote-subtitle {
  max-width: 580px;
  margin: 40px 10px 20px;
  font-size: clamp(1.15rem, 1.6vw, 1.7rem);
  line-height: 1.22;
  color: #121212;
  font-weight: 400;
}

.vote-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-width: 152px;
  height: 58px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  box-shadow: 0 14px 28px rgba(0, 115, 235, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.vote-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 115, 235, 0.28);
}

.vote-cta:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
}

/* Voting availability notice */
.voting-closed-modal {
  width: min(760px, calc(100% - 32px));
  height: min(390px, calc(100vh - 32px));
  height: min(390px, calc(100svh - 32px));
  min-height: 0;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 32px;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 10%, rgba(236, 44, 121, 0.13), transparent 29%),
    linear-gradient(145deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 30px 90px rgba(13, 35, 58, 0.28);
}

.voting-closed-modal::backdrop {
  background: rgba(8, 20, 33, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.voting-closed-modal:focus {
  outline: none;
}

.voting-closed-modal[open] {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  animation: voting-modal-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.voting-closed-art {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background:radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), transparent 36%), linear-gradient(160deg, #fff4bd, #ffeca2);
}

.voting-closed-art::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.voting-closed-art picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.voting-closed-art img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(12px 16px 18px rgba(79, 51, 17, 0.18));
}

.voting-closed-content {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 58px 46px 48px;
  overflow: auto;
  overscroll-behavior: contain;
}

.voting-closed-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f1f3;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.voting-closed-close img {
  width: 23px;
  height: 23px;
  display: block;
  opacity: 0.72;
  transition: opacity 150ms ease;
}

.voting-closed-close:hover {
  background: #eae7ea;
}

.voting-closed-close:hover img {
  opacity: 1;
}

.voting-closed-close:focus-visible {
  outline: 3px solid rgba(0, 115, 235, 0.42);
  outline-offset: 2px;
}

.voting-closed-kicker {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 15px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(236, 44, 121, 0.11);
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voting-closed-modal h2 {
  margin: 0 0 16px;
  max-width: 390px;
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.voting-closed-modal p {
  max-width: 390px;
  margin: 0;
  color: #3d4650;
  font-size: 1.05rem;
  line-height: 1.55;
}

@keyframes voting-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .voting-closed-modal {
    width: min(430px, calc(100% - 24px));
    height: min(500px, calc(100vh - 24px));
    height: min(500px, calc(100svh - 24px));
    min-height: 0;
    border-radius: 26px;
  }

  .voting-closed-modal[open] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(180px, 27svh, 205px) minmax(0, 1fr);
  }

  .voting-closed-art {
    min-height: 0;
    height: 100%;
    border-radius: 0;
  }

  .voting-closed-art::after {
    right: 50%;
    bottom: -58px;
    width: 210px;
    height: 110px;
    transform: translateX(50%);
  }

  .voting-closed-art img {
    inset: 12px 50% 8px auto;
    width: auto;
    height: calc(100% - 20px);
    max-width: 68%;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(50%);
    filter: drop-shadow(8px 10px 12px rgba(79, 51, 17, 0.16));
  }

  .voting-closed-content {
    align-items: center;
    padding: 26px 28px 30px;
    text-align: center;
  }

  .voting-closed-close {
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 5px 16px rgba(70, 46, 18, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .voting-closed-kicker {
    margin-bottom: 12px;
    font-size: 0.67rem;
  }

  .voting-closed-modal h2 {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
  }

  .voting-closed-modal p {
    max-width: 350px;
    font-size: 0.94rem;
    line-height: 1.45;
  }
}

@media (max-width: 640px) and (min-height: 521px) {
  .voting-closed-art {
    background:
      radial-gradient(circle at 50% 36%, rgba(255, 246, 218, 0.82), transparent 38%),
      linear-gradient(145deg, #ffe0a3 0%, #ffb36f 56%, #f38164 100%);
  }
}

@media (max-width: 400px) {
  .voting-closed-content {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 640px) and (max-height: 520px) {
  .voting-closed-modal {
    width: min(620px, calc(100% - 16px));
    height: calc(100vh - 16px);
    height: calc(100svh - 16px);
    border-radius: 22px;
  }

  .voting-closed-modal[open] {
    grid-template-columns: minmax(120px, 32%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .voting-closed-art img {
    inset: auto;
    left: 0;
    bottom: 0;
    width: 92%;
    height: 92%;
    max-width: none;
    object-position: left bottom;
    transform: none;
  }

  .voting-closed-content {
    align-items: flex-start;
    padding: 28px 46px 24px 26px;
    text-align: left;
  }

  .voting-closed-kicker {
    margin-bottom: 8px;
  }

  .voting-closed-modal h2 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }

  .voting-closed-modal p {
    font-size: 0.86rem;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voting-closed-modal[open] {
    animation: none;
  }
}

.vote-hero-art {
  position: relative;
  z-index: 2;
  min-height: 430px;
}

.vote-ballot-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 82%);
  aspect-ratio: 1;
  transform: translate(-50%, -48%);
}

.vote-box {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(320px, 76%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.94), rgba(255,255,255,0.68)),
    linear-gradient(135deg, rgba(0,115,235,0.18), rgba(236,44,121,0.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 28px 46px rgba(20,20,20,0.12);
  transform: translate(-50%, -50%) rotate(-5deg);
}

.vote-box img {
  width: 74%;
  height: 74%;
  display: block;
  filter: drop-shadow(0 16px 20px rgba(20,20,20,0.12));
}

.vote-slip {
  position: absolute;
  width: 190px;
  height: 132px;
  border-radius: 20px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 18px 26px rgba(20,20,20,0.12);
}

.vote-slip span,
.vote-slip strong {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.vote-slip span:first-child {
  width: 72%;
  background: rgba(20,20,20,0.14);
}

.vote-slip span:nth-child(2) {
  width: 46%;
  margin-top: 14px;
  background: rgba(20,20,20,0.1);
}

.vote-slip strong {
  width: 42px;
  height: 42px;
  margin-top: 14px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(0,115,235,0.12);
}

.vote-slip-one {
  left: -4%;
  top: 4%;
  transform: rotate(-14deg);
}

.vote-slip-two {
  right: -2%;
  top: 0;
  transform: rotate(13deg);
}

.vote-slip-two strong {
  background: var(--pink);
  box-shadow: 0 0 0 8px rgba(236,44,121,0.12);
}

.vote-pet {
  position: absolute;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(20,20,20,0.13));
}

.vote-pet-left {
  left: -3%;
  bottom: -34%;
  width: min(250px, 45%);
  transform: rotate(-8deg);
}

.vote-pet-right {
  right: -15%;
  bottom: -30%;
  width: min(300px, 55%);
  transform: rotate(7deg);
}

.vote-hero-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.vote-hero-confetti span {
  position: absolute;
  width: 15px;
  height: 32px;
  border-radius: 999px;
  background: var(--pink);
  opacity: 0.72;
}

.vote-hero-confetti span:nth-child(1) { left: 12%; top: 9%; transform: rotate(-18deg); background: var(--blue); }
.vote-hero-confetti span:nth-child(2) { left: 48%; top: 13%; transform: rotate(20deg); background: #7ac143; }
.vote-hero-confetti span:nth-child(3) { left: 83%; top: 28%; transform: rotate(-32deg); }
.vote-hero-confetti span:nth-child(4) { left: 21%; bottom: 17%; transform: rotate(28deg); background: #ffc83d; }

/* Keep the desktop composition fluid before it becomes a stacked card. */
@media (max-width: 1100px) {
  .vote-hero-stage {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    min-height: 470px;
    padding: clamp(32px, 4.5vw, 52px);
  }

  .vote-title {
    font-size: clamp(4.6rem, 11.5vw, 8rem);
  }

  .vote-subtitle {
    margin-top: 30px;
  }

  .vote-hero-art {
    min-height: 390px;
  }
}

/* At compact landscape widths, keep both foreground pets inside the card. */
@media (min-width: 881px) and (max-width: 1100px) {
  .vote-pet-left {
    bottom: -18%;
  }

  .vote-pet-right {
    right: -10%;
    bottom: -15%;
  }
}

/* Portrait and compact displays use a text-first vertical card. */
@media (max-width: 880px), (orientation: portrait) and (max-width: 1100px) {
  .vote-hero {
    padding: 92px 0 34px;
  }

  .vote-hero-stage {
    width: min(calc(100% - 24px), var(--max-width));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: clamp(24px, 5vw, 42px);
    padding: clamp(30px, 7vw, 58px) clamp(24px, 7vw, 58px) 0;
    border-radius: 30px;
  }

  .vote-intro {
    width: 100%;
    max-width: 720px;
  }

  .vote-title {
    font-size: clamp(4.4rem, 18vw, 8.5rem);
  }

  .vote-subtitle {
    max-width: 680px;
    margin: clamp(26px, 5vw, 38px) 0 0;
    font-size: clamp(1.08rem, 2.8vw, 1.45rem);
    line-height: 1.3;
  }

  .vote-cta {
    margin-top: 24px;
  }

  .vote-hero-art {
    width: min(100%, 620px);
    min-height: 400px;
    margin: 0 auto;
  }

  .vote-ballot-stack {
    top: 46%;
    width: min(390px, 72%);
    transform: translate(-50%, -50%);
  }

  .vote-pet-left {
    left: 2%;
    bottom: -20%;
    width: min(230px, 42%);
  }

  .vote-pet-right {
    right: -3%;
    bottom: -18%;
    width: min(270px, 49%);
  }

  .vote-hero-stage::before {
    inset: auto -12% -14% -12%;
    height: 40%;
  }

  .vote-hero-stage::after {
    right: -170px;
    top: 34%;
    width: 360px;
    height: 360px;
  }
}

@media (max-width: 540px) {
  .vote-hero {
    padding-top: 84px;
  }

  .vote-hero-stage {
    width: calc(100% - 16px);
    gap: 16px;
    padding: 28px 20px 0;
    border-radius: 24px;
  }

  .vote-title {
    font-size: clamp(3.6rem, 22vw, 6.3rem);
    line-height: 0.86;
    text-shadow:
      4px 4px 0 rgba(0, 115, 235, 0.16),
      -3px -3px 0 rgba(236, 44, 121, 0.13);
  }

  .vote-intro {
    text-align: center;
  }

  .vote-subtitle {
    margin-top: 24px;
    font-size: clamp(1rem, 4.7vw, 1.18rem);
    line-height: 1.34;
  }

  .vote-cta {
    width: auto;
    min-width: 152px;
    height: 54px;
    margin-top: 20px;
    padding: 0 32px;
    font-size: 1.15rem;
  }

  .vote-hero-art {
    min-height: 370px;
  }

  .vote-ballot-stack {
    top: 45%;
    width: min(300px, 82%);
  }

  .vote-box {
    border-radius: 24px;
  }

  .vote-slip {
    width: 138px;
    height: 96px;
    padding: 17px;
    border-radius: 15px;
  }

  .vote-slip span,
  .vote-slip strong {
    height: 8px;
  }

  .vote-slip span:nth-child(2) {
    margin-top: 10px;
  }

  .vote-slip strong {
    width: 30px;
    height: 30px;
    margin-top: 10px;
    box-shadow: 0 0 0 5px rgba(0,115,235,0.12);
  }

  .vote-slip-two strong {
    box-shadow: 0 0 0 5px rgba(236,44,121,0.12);
  }

  .vote-pet-left {
    left: -2%;
    bottom: -12%;
    width: 43%;
  }

  .vote-pet-right {
    right: -7%;
    bottom: -10%;
    width: 51%;
  }

  .vote-hero-confetti span {
    width: 10px;
    height: 22px;
  }

  .vote-hero-confetti span:nth-child(2) { left: 78%; top: 9%; }
  .vote-hero-confetti span:nth-child(3) { top: 56%; }
  .vote-hero-confetti span:nth-child(4) { left: 12%; bottom: 25%; }
}


.vote-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 84px;
}

.vote-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  padding: 28px 24px 0;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 10px 28px rgba(0,0,0,0.04);
}

.vote-card-content {
  text-align: center;
}

.vote-card h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.4vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.vote-card p {
  margin: 0 auto;
  max-width: 290px;
  font-size: 1rem;
  line-height: 1.32;
  color: #171717;
  font-weight: 400;
}

.vote-card-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
  margin-top: 18px;
}

.vote-card-art img {
  height: 310px;
  display: block;
}

.privacy-card h2 {
  color: #7ac143;
}

.confidentiality-card h2 {
  color: #e04444;
}

.integrity-card h2 {
  color: #b56c3f;
}

/* Medium widths: turn the three columns into three horizontal rows. */
@media (max-width: 1000px) {
  .vote-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 22px;
  }

  .vote-card {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
    align-items: stretch;
    padding: 30px 34px 0 0;
  }

  .vote-card-content {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 0 0 30px 50px;
    text-align: left;
  }

  .vote-card h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
  }

  .vote-card p {
    max-width: 520px;
    margin: 0;
    font-size: clamp(1.1rem, 2.25vw, 1.3rem);
  }

  .vote-card-art {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
    margin-top: 0;
    align-items: flex-end;
  }

  .vote-card-art img {
    width: auto;
    max-width: 125%;
    height: clamp(270px, 36vw, 350px);
    flex: 0 0 auto;
  }
}

/* Narrow phones: restore the desktop card shape and stack it vertically. */
@media (max-width: 600px) {
  .vote-highlights {
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 60px;
  }

  .vote-card {
    min-height: 490px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 24px 0;
  }

  .vote-card-content {
    align-self: auto;
    padding: 0;
    text-align: center;
  }

  .vote-card h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .vote-card p {
    max-width: 290px;
    margin: 0 auto;
    font-size: 1rem;
  }

  .vote-card-art {
    min-height: 220px;
    height: auto;
    margin-top: 18px;
  }

  .vote-card-art img {
    width: auto;
    max-width: none;
    height: 310px;
  }
}
