@font-face {
  font-family: 'Bebas Neue';
  src:
    url('/fonts/BebasNeueCyrillic.woff2') format('woff2'),
    url('/fonts/BebasNeueCyrillic.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arial Nova';
  src:
    url('/fonts/ArialNova.woff2') format('woff2'),
    url('/fonts/ArialNova.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arial Nova';
  src:
    url('/fonts/ArialNova-Bold.woff2') format('woff2'),
    url('/fonts/ArialNova-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #ab2735;
  --burgundy: #4c061a;
  --cream: #ffecce;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --photo-w: clamp(110px, 10.4vw, 150px);
  --cta-size: clamp(180px, 20.8vw, 300px);
  --gutter: 120px;
  --copy-w: 520px;
  --dock-h: 160px;
  --landing-min-h: 0px;
  --copy-gap: 20px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-text: 'Arial Nova', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #4c061a;
}

body {
  font-family: var(--font-text);
  color: var(--white);
  overflow: hidden;
}

.app {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.result-scroll,
.result-dock,
.page-canvas {
  display: contents;
}

.app.is-landing,
.app.is-zoom,
.app.is-result {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: clip;
  overflow-y: visible;
}

.app.is-landing {
  min-height: max(100dvh, var(--landing-min-h));
}

.app:not(.is-landing):not(.is-zoom):not(.is-result) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

html:has(.app.is-landing),
html:has(.app.is-zoom),
html:has(.app.is-result) {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  max-height: none;
  scrollbar-gutter: stable;
}

body:has(.app.is-landing),
body:has(.app.is-zoom),
body:has(.app.is-result) {
  overflow: visible;
  height: auto;
  max-height: none;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    url('/assets/bg.jpg') center / cover no-repeat,
    radial-gradient(120% 90% at 70% 45%, #ab2735 0%, #7c1728 50%, #4c061a 100%);
  z-index: 0;
  transform: scale(1.04);
  animation: bg-in 1.6s var(--ease) both;
}

.top,
.landing-copy,
.result-copy,
.stage,
.panel,
.foot {
  position: relative;
  z-index: 2;
}

.top {
  position: absolute;
  top: 40px;
  left: var(--gutter);
  z-index: 6;
  animation: rise 0.8s var(--ease) both;
}

.logo {
  display: block;
  width: 97px;
  height: 60px;
  object-fit: contain;
}

.landing-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: min(var(--copy-w), calc(100% - var(--gutter) * 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

#landing-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(50px, 7.6vw, 110px);
  line-height: 0.91;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 520px;
  pointer-events: auto;
  text-box-trim: both;
  text-box-edge: cap alphabetic;
}

.title-lead,
.title-mid,
.title-accent {
  display: block;
  animation: rise 0.9s var(--ease) both;
  text-box-trim: both;
  text-box-edge: cap alphabetic;
}

.title-lead { animation-delay: 0.12s; }
.title-mid { animation-delay: 0.2s; }
.title-accent {
  color: var(--cream);
  animation-delay: 0.28s;
}

.intro {
  margin-top: var(--copy-gap);
  max-width: 520px;
  font-size: 18px;
  line-height: 24px;
  animation: rise 0.9s var(--ease) 0.4s both;
  pointer-events: auto;
  text-box-trim: start;
  text-box-edge: cap alphabetic;
}

.result-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: min(var(--copy-w), calc(100% - var(--gutter) * 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}

.result-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(64px, 7.6vw, 110px);
  line-height: 0.91;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 520px;
  white-space: nowrap;
  text-box-trim: both;
  text-box-edge: cap alphabetic;
}

.result-name span {
  display: inline;
}

.result-occupation {
  margin-top: var(--copy-gap);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: var(--cream);
}

.result-message {
  margin-top: var(--copy-gap);
  max-width: 520px;
  font-size: 18px;
  line-height: 24px;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.photos {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
}

.photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--photo-w);
  height: auto;
  aspect-ratio: 220 / 250;
  transform: translate(-50%, -50%) rotate(var(--rot));
  transform-origin: center center;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
  opacity: var(--vis, 1);
  pointer-events: none;
  contain: layout style;
  transition:
    left 0.9s var(--ease),
    top 0.9s var(--ease),
    width 0.9s var(--ease),
    opacity 0.7s ease,
    filter 0.6s ease,
    transform 0.9s var(--ease);
  animation: photo-in 0.9s var(--ease) both;
  animation-delay: var(--delay, 0.35s);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.photo.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.72);
}

.photo.is-winner {
  z-index: 2;
  filter:
    drop-shadow(0 0 28px #ffecce)
    drop-shadow(0 0 80px #ffecce)
    drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
}

.photo.is-result {
  left: calc((var(--gutter) + min(var(--copy-w), calc(100% - var(--gutter) * 2)) + 100%) / 2);
  top: 50%;
  width: var(--result-w, 500px);
  transform: translate(-50%, -50%) rotate(var(--rot));
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
}

.app.is-result .photos {
  z-index: 5;
}

.app.is-result .photo.is-result {
  transition: none;
}

.app.is-zoom .stage,
.app.is-result .stage,
.app.is-landing .stage {
  overflow: visible;
}

.app.is-result .photo:not(.is-winner) {
  display: none;
}

.app.is-result .bottle-anchor,
.app.is-result .cta {
  display: none;
  animation: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bottle-anchor {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  width: calc(var(--bh) * 0.277);
  height: var(--bh);
  transform: translate(-50%, -50%);
  overflow: visible;
  z-index: 4;
  pointer-events: none;
  --shadow-x: 30px;
  --shadow-y: 20px;
  transition:
    left 0.9s var(--ease),
    top 0.9s var(--ease),
    width 0.9s var(--ease),
    height 0.9s var(--ease),
    opacity 0.6s ease;
  animation: bottle-in 1.1s var(--ease) 0.2s both;
}

.bottle,
.bottle-shadow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
}

.bottle-shadow {
  transform: translate(var(--shadow-x), var(--shadow-y)) rotate(var(--bottle-rot, -61deg));
  opacity: 0.33;
  filter: brightness(0);
  z-index: 0;
}

.bottle {
  transform: rotate(var(--bottle-rot, -61deg));
  z-index: 1;
}

.cta {
  position: absolute;
  left: var(--cx, 73.6%);
  top: var(--cy, 50.3%);
  width: var(--cta-size);
  height: var(--cta-size);
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 125px #ffecce;
  pointer-events: auto;
  z-index: 5;
  animation: cta-in 1s var(--ease) 0.35s both;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, opacity 0.5s ease;
}

.cta:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 4px 150px #ffecce;
}

.cta:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 6px;
}

.cta-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 2px;
}

.cta-word {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(50px, 7.6vw, 110px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 12px;
}

.cta-hint {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  margin-top: -5px;
  text-align: center;
}

.cta-orbit {
  position: absolute;
  inset: -18%;
  transform-origin: 50% 50%;
}

.app.is-landing .cta-orbit,
.app.is-spinning .bottle,
.app.is-spinning .bottle-shadow,
.app.is-cta-hover .bottle,
.app.is-cta-hover .bottle-shadow {
  will-change: transform;
}

.arrow {
  position: absolute;
  width: 18%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(171, 39, 53, 0.55));
}

.arrow-a {
  top: 4%;
  right: 6%;
  transform: rotate(-10deg);
}

.arrow-b {
  bottom: 4%;
  left: 6%;
  transform: rotate(170deg);
}

.app:not(.is-landing) .cta {
  animation: fade-out 0.35s ease forwards;
  pointer-events: none;
}

.panel {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  width: min(var(--copy-w), calc(100% - var(--gutter) * 2));
  background: var(--red);
  border-radius: 5px 5px 0 0;
  padding: 20px;
  z-index: 6;
}

.landing-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: rise 0.9s var(--ease) 0.55s both;
}

.panel-text {
  flex: 1;
  font-size: 15px;
  line-height: 20px;
}

.result-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fant-copy {
  display: flex;
  flex-direction: column;
}

.fant-title,
.fant-text {
  color: var(--white);
  font-size: 14px;
  line-height: 20px;
}

.fant-title {
  font-weight: 700;
}

.fant-text strong {
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--red);
  text-decoration: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--cream);
}

.btn-support {
  flex: 0 0 auto;
  min-width: 170px;
  max-width: 170px;
  padding: 14px 16px 8px;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  white-space: normal;
}

.btn-vote {
  width: 100%;
  padding: 26px 20px 16px;
  font-size: 40px;
  line-height: 20px;
}

.foot {
  position: absolute;
  left: var(--gutter);
  bottom: 0;
  width: min(var(--copy-w), calc(100% - var(--gutter) * 2));
  background: var(--burgundy);
  padding: 10px 20px;
  z-index: 6;
  animation: rise 0.9s var(--ease) 0.65s both;
}

.copyright {
  font-size: 15px;
  line-height: 20px;
  color: var(--cream);
}

.app:not(.is-landing) .landing-copy,
.app:not(.is-landing) .landing-panel {
  animation: fade-out 0.4s ease forwards;
  pointer-events: none;
}

.app:not(.is-landing) #landing-title,
.app:not(.is-landing) .intro {
  pointer-events: none;
}

.app.is-spinning .landing-copy,
.app.is-shine .landing-copy,
.app.is-spinning .landing-panel,
.app.is-shine .landing-panel,
.app.is-spinning .cta,
.app.is-shine .cta,
.app.is-zoom .cta,
.app.is-result .cta {
  display: none;
}

.app.is-landing .result-copy,
.app.is-landing .result-panel,
.app.is-launching .result-copy,
.app.is-launching .result-panel,
.app.is-game .result-copy,
.app.is-game .result-panel,
.app.is-spinning .result-copy,
.app.is-spinning .result-panel,
.app.is-shine .result-copy,
.app.is-shine .result-panel {
  opacity: 0;
  pointer-events: none;
}

.app.is-zoom .result-copy,
.app.is-result .result-copy {
  opacity: 1;
  pointer-events: auto;
}

.app.is-zoom .result-name,
.app.is-zoom .result-occupation,
.app.is-zoom .result-message,
.app.is-result .result-name,
.app.is-result .result-occupation,
.app.is-result .result-message {
  opacity: 0;
}

.app.is-zoom .result-copy.is-shown .result-name,
.app.is-result .result-copy.is-shown .result-name {
  animation: rise 0.7s var(--ease) both;
}

.app.is-zoom .result-copy.is-shown .result-occupation,
.app.is-result .result-copy.is-shown .result-occupation {
  animation: rise 0.7s var(--ease) 0.14s both;
}

.app.is-zoom .result-copy.is-shown .result-message,
.app.is-result .result-copy.is-shown .result-message {
  animation: rise 0.7s var(--ease) 0.32s both;
}

.app.is-zoom .result-panel,
.app.is-result .result-panel {
  pointer-events: auto;
}

.app.is-zoom .result-panel:not(.is-shown),
.app.is-result .result-panel:not(.is-shown) {
  opacity: 0;
  pointer-events: none;
}

.app.is-zoom .result-panel.is-shown,
.app.is-result .result-panel.is-shown {
  animation: panel-in 0.45s var(--ease) 0.52s both;
}

.app.is-from-zoom .result-copy.is-shown .result-name,
.app.is-from-zoom .result-copy.is-shown .result-occupation,
.app.is-from-zoom .result-copy.is-shown .result-message {
  animation: none;
  opacity: 1;
}

.app.is-from-zoom .result-panel.is-shown {
  animation: none;
  opacity: 1;
  transform: none;
}

.app.is-zoom .foot,
.app.is-result .foot {
  animation: none;
  opacity: 1;
  visibility: visible;
}

.app:not(.is-landing):not(.is-zoom):not(.is-result) .foot {
  animation: fade-out 0.35s ease forwards;
  pointer-events: none;
}

.app.is-landing .result-scroll,
.app.is-zoom .result-scroll,
.app.is-result .result-scroll {
  display: block;
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  min-height: 100dvh;
  padding-bottom: var(--dock-h, 160px);
  overflow: visible;
}

.app.is-landing .result-scroll {
  display: flex;
  flex-direction: column;
  z-index: 5;
  pointer-events: none;
  min-height: max(100dvh, var(--landing-min-h));
}

.app.is-landing .top,
.app.is-landing #landing-title,
.app.is-landing .intro {
  pointer-events: auto;
}

.app.is-landing .result-dock,
.app.is-zoom .result-dock,
.app.is-result .result-dock {
  display: block;
  position: fixed;
  left: var(--gutter);
  bottom: 0;
  width: min(var(--copy-w), calc(100% - var(--gutter) * 2));
  margin-left: 0;
  z-index: 8;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app.is-landing .landing-panel,
.app.is-landing .foot,
.app.is-zoom .result-panel,
.app.is-zoom .foot,
.app.is-result .result-panel,
.app.is-result .foot {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
}

.app.is-landing .result-panel,
.app.is-zoom .landing-panel,
.app.is-result .landing-panel,
.result-panel[hidden],
.result-copy[hidden] {
  display: none;
}

.app.is-landing .page-canvas,
.app.is-zoom .page-canvas,
.app.is-result .page-canvas {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.app.is-landing .top {
  position: relative;
  top: auto;
  left: var(--gutter);
  flex: 0 0 auto;
  padding-top: 40px;
  z-index: 7;
}

.app.is-landing .page-canvas {
  flex: 1 1 auto;
  min-height: 0;
}

.app.is-landing .landing-copy {
  position: relative;
  top: auto;
  bottom: auto;
  left: var(--gutter);
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  padding: calc(var(--copy-gap) * 2) 0 32px;
  width: min(var(--copy-w), calc(100% - var(--gutter) * 2));
}

.app.is-landing .stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--dock-h, 160px);
  z-index: 3;
  overflow: visible;
}

.app.is-zoom .result-scroll,
.app.is-result .result-scroll {
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.app.is-zoom .landing-copy,
.app.is-result .landing-copy {
  display: none;
}

.app.is-zoom .top,
.app.is-result .top {
  position: relative;
  top: auto;
  left: var(--gutter);
  flex: 0 0 auto;
  padding-top: 40px;
  z-index: 7;
}

.app.is-zoom .result-copy,
.app.is-result .result-copy {
  position: relative;
  top: auto;
  left: var(--gutter);
  bottom: auto;
  flex: 1 0 auto;
  width: min(var(--copy-w), calc(100% - var(--gutter) * 2));
  min-width: 0;
  overflow: visible;
  justify-content: center;
  padding: calc(var(--copy-gap) * 2) 0 32px;
}

.app.is-zoom .stage,
.app.is-result .stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 3;
  overflow: visible;
}

@keyframes fade-out {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) translateY(24px) scale(0.86);
  }
  to {
    opacity: var(--vis, 1);
    transform: translate(-50%, -50%) rotate(var(--rot));
  }
}

@keyframes bottle-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes cta-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes bg-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.app:not(.is-landing) .photo {
  animation: none;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--burgundy);
}

#preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s;
}

.preloader-logo {
  width: min(12.125rem, 52vw);
  height: auto;
  overflow: visible;
  display: block;
}

@media (max-width: 1199px) {
  :root {
    --photo-w: 120px;
    --cta-size: 150px;
    --gutter: 40px;
    --copy-w: 643px;
    --copy-gap: 16px;
  }

  .top {
    top: 40px;
  }

  .landing-copy {
    top: 149px;
    bottom: auto;
    width: min(640px, calc(100% - 80px));
  }

  #landing-title {
    font-size: 80px;
    max-width: none;
  }

  .title-lead,
  .title-mid {
    display: inline;
  }

  .title-lead::after {
    content: ' ';
  }

  .intro {
    margin-top: var(--copy-gap);
    max-width: 322px;
    font-size: 15px;
    line-height: 20px;
  }

  .result-copy {
    top: 48.5%;
    bottom: auto;
    width: min(643px, calc(100% - 80px));
  }

  .result-name {
    font-size: clamp(34px, 8vw, 64px);
    line-height: 0.92;
    max-width: none;
    white-space: nowrap;
  }

  .result-name span {
    display: inline;
  }

  .result-occupation,
  .result-message {
    font-size: 15px;
    line-height: 20px;
    max-width: 643px;
  }

  .cta-word {
    font-size: 50px;
    margin-top: 12px;
  }

  .photo.is-result {
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) rotate(var(--rot));
  }

  .bottle-anchor {
    --shadow-x: 15px;
    --shadow-y: 10px;
  }

  .landing-panel {
    width: min(643px, calc(100% - 80px));
    bottom: 40px;
  }

  .result-panel {
    width: min(643px, calc(100% - 80px));
    bottom: 40px;
  }

  .foot {
    width: min(643px, calc(100% - 80px));
  }

  .app.is-zoom .result-scroll,
  .app.is-result .result-scroll {
    display: flex;
    flex-direction: column;
  }

  .app.is-zoom .page-canvas,
  .app.is-result .page-canvas {
    display: flex;
    flex-direction: column;
    position: static;
    min-height: 0;
    flex: 0 0 auto;
  }

  .app.is-zoom .top,
  .app.is-result .top {
    position: relative;
    top: auto;
    left: var(--gutter);
    padding-top: 40px;
    z-index: 7;
  }

  .app.is-zoom .stage,
  .app.is-result .stage {
    position: absolute;
    top: 0;
    left: 0;
    inset: auto;
    width: 100%;
    height: var(--result-photo-space, 420px);
    min-height: 0;
    order: 0;
    z-index: 3;
  }

  .app.is-zoom .photos,
  .app.is-result .photos {
    z-index: 3;
  }

  .app.is-zoom .photo.is-result,
  .app.is-result .photo.is-result {
    left: calc(100% - var(--result-w, 380px) / 2 - var(--result-right-pad, 0px));
    top: 48%;
  }

  .app.is-zoom .result-copy,
  .app.is-result .result-copy {
    flex: 1 0 auto;
    justify-content: flex-start;
    padding-top: calc(var(--copy-gap) * 2);
    padding-bottom: 48px;
    width: calc(100% - var(--gutter) - var(--result-w, 380px) - var(--result-right-pad, 0px) - 24px);
    max-width: calc(100% - var(--gutter) - var(--result-w, 380px) - var(--result-right-pad, 0px) - 24px);
    min-height: calc(var(--result-photo-space, 420px) - 88px);
    z-index: 6;
  }

  .app.is-landing .top {
    left: var(--gutter);
    padding-top: 40px;
  }

  .app.is-landing .landing-copy {
    justify-content: center;
    padding-top: calc(var(--copy-gap) * 2);
    width: min(640px, calc(100% - 80px));
  }

  .btn-support {
    min-width: 254px;
    max-width: 254px;
    padding: 14px 20px 8px;
    white-space: nowrap;
  }
}

@media (max-width: 639px) {
  :root {
    --photo-w: 100px;
    --cta-size: 150px;
    --gutter: 15px;
    --copy-w: 370px;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app {
    min-height: 100dvh;
  }

  .top {
    top: 15px;
    left: 15px;
  }

  .landing-copy {
    top: 104px;
    bottom: auto;
    left: 15px;
    width: calc(100% - 30px);
  }

  #landing-title {
    font-size: 50px;
    line-height: 45px;
    letter-spacing: -0.02em;
  }

  .intro {
    max-width: 368px;
    font-size: 15px;
    line-height: 20px;
  }

  .result-copy {
    position: relative;
    top: auto;
    left: 15px;
    bottom: auto;
    display: flex;
    width: calc(100% - 30px);
  }

  .app.is-zoom .top,
  .app.is-result .top {
    top: auto;
    left: 15px;
    padding-top: 15px;
  }

  .app.is-zoom .stage,
  .app.is-result .stage {
    position: relative;
    width: 100%;
    height: auto;
    min-height: var(--result-photo-space, 300px);
    order: 1;
    margin: var(--copy-gap) 0;
  }

  .app.is-zoom .page-canvas,
  .app.is-result .page-canvas {
    order: 2;
  }

  .app.is-zoom .top,
  .app.is-result .top {
    order: 0;
  }

  .app.is-zoom .photo.is-result,
  .app.is-result .photo.is-result {
    left: 58%;
    top: 50%;
  }

  .app.is-zoom .result-copy,
  .app.is-result .result-copy {
    display: flex;
    width: calc(100% - 30px);
    max-width: none;
    left: 15px;
    margin-top: 0;
    min-height: 0;
    justify-content: flex-start;
    padding: 0 0 24px;
  }

  .app.is-zoom .result-dock,
  .app.is-result .result-dock,
  .app.is-landing .result-dock {
    left: 0;
    width: 100%;
    margin-left: 0;
  }

  .app.is-landing .top {
    left: 15px;
    padding-top: 15px;
  }

  .app.is-landing .landing-copy {
    left: 15px;
    width: calc(100% - 30px);
    justify-content: flex-start;
    padding: calc(var(--copy-gap) * 2) 0 24px;
  }

  .result-name {
    font-size: 60px;
    line-height: 55px;
    white-space: nowrap;
    max-width: none;
  }

  .cta-word {
    font-size: 60px;
    margin-top: 12px;
  }

  .panel {
    left: 0;
    width: 100%;
    border-radius: 5px 5px 0 0;
    padding: 10px 15px;
  }

  .landing-panel {
    bottom: 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .result-panel {
    bottom: 40px;
    gap: 10px;
  }

  .btn-support,
  .btn-vote {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 20px;
  }

  .btn-support {
    padding: 14px 20px 8px;
  }

  .btn-vote {
    padding: 12px 20px 6px;
  }

  .foot {
    left: 0;
    width: 100%;
    padding: 10px 15px;
  }

  .app.is-zoom .stage,
  .app.is-result .stage {
    overflow: visible;
    height: auto;
    inset: auto;
  }
}

@supports (text-box-trim: both) {
  .app.is-landing .landing-copy {
    padding-top: var(--copy-gap);
  }
}

@media (min-width: 640px) {
  @supports (text-box-trim: both) {
    .app.is-zoom .result-copy,
    .app.is-result .result-copy {
      padding-top: var(--copy-gap);
    }
  }
}

@media (max-width: 1199px) {
  .app.is-landing {
    --landing-min-h: 0px;
    min-height: 100dvh;
  }

  .app.is-landing .result-scroll {
    min-height: 100dvh;
  }

  .app.is-landing .page-canvas {
    flex: 0 0 auto;
    min-height: 0;
  }

  .app.is-landing .landing-copy {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .app.is-landing .stage {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: clamp(280px, 46dvh, 400px);
    flex: 1 1 auto;
  }
}

@media (min-width: 1200px) {
  :root {
    --landing-min-h: 900px;
  }
}

@media (hover: none) {
  .cta:hover {
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
