/* LOMO landing page.
   Same design language as the LOMO app: warm light ground, soft cards,
   mesh gradients, dot-matrix numerals, pill labels. Miami stays in the
   photos, the pink-and-yellow gradients, and the script accents.
   One light theme on purpose. */

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

:root {
  --flamingo: #EE789B;
  --flamingo-deep: #D95F84;
  --sun: #F9DB3F;
  --pool: #1F838C;
  --deep: #0F3B41;
  --sand: #FBF1E1;
  --ink: #2A1A22;

  --pool-ink: #155F66;
  --flamingo-ink: #A8385C;
  --ink-2: #5E4A52;
  --ink-3: #6F5F66;

  --bg: #F1ECE6;
  --card: #FCFAF7;
  --well: #F6F1EB;
  --line: rgba(42, 26, 34, 0.08);

  --shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(42, 26, 34, 0.05),
    0 14px 34px -18px rgba(42, 26, 34, 0.22);
  --shadow-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(42, 26, 34, 0.06),
    0 24px 48px -22px rgba(42, 26, 34, 0.32);

  --disp: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* no double-tap zoom or text inflation on phones */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* [hidden] must win over any component's own display value */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--deep);
  outline-offset: 3px;
}

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

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}


/* ============================================================
   PIECES
   ============================================================ */

/* The wordmark always sits on a flamingo tile, like the brand art. */
.brand {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding-inline: 16px;
  border-radius: 16px;
  background: var(--flamingo);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 20px -12px rgba(217, 95, 132, 0.8);
}

.brand img {
  height: 20px;
  width: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  font: 600 16px var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn img {
  width: 20px;
  height: auto;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}

.btn-sm img {
  width: 16px;
}

.btn-ink {
  background: var(--ink);
  color: var(--sand);
  box-shadow: 0 12px 22px -12px rgba(42, 26, 34, 0.8);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-sand {
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 12px 22px -12px rgba(15, 59, 65, 0.8);
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip-sun {
  background: var(--sun);
  color: var(--ink);
}

.chip-ink {
  background: var(--ink);
  color: var(--sand);
}

.chip-pool {
  background: #D6EEEC;
  color: var(--pool-ink);
}

.chip-flam {
  background: #FADDE6;
  color: var(--flamingo-ink);
}

.chip-glass {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.chip-glass-dark {
  background: rgba(15, 59, 65, 0.45);
  color: #fff;
}

.card {
  position: relative;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.script {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
}

.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flamingo-ink);
}

/* glossy orbs, as in the app */
.orb {
  position: relative;
  display: block;
  border-radius: 50%;
}

.orb::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 20%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(2px);
  transform: rotate(-24deg);
}

.orb-pink {
  background: radial-gradient(circle at 36% 30%, #FFE3EC 0 6%, #F7B6C8 20%, #EE789B 48%, #D95F84 74%, #A8385C 100%);
}

.orb-sun {
  background: radial-gradient(circle at 36% 30%, #FFF8D6 0 6%, #FCE98E 20%, #F9DB3F 46%, #E8B923 74%, #B98B0C 100%);
}

.orb-teal {
  background: radial-gradient(circle at 36% 30%, #E4F6F4 0 6%, #A6DCD8 20%, #3FA3AA 46%, #1F838C 72%, #0F3B41 100%);
}

/* dot-matrix numerals (drawn by landing.js) */
.dm {
  display: block;
  height: 56px;
  width: auto;
  overflow: visible;
}

.dm-lg {
  height: 84px;
  margin: 18px 0 20px;
}

.dm-ink circle.on {
  fill: var(--ink);
}

.dm-ink circle.off {
  fill: rgba(42, 26, 34, 0.045);
}

.dm-white circle.on {
  fill: #fff;
}

.dm-white circle.off {
  fill: rgba(255, 255, 255, 0.08);
}


/* ============================================================
   NAV
   ============================================================ */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 24px 0;
}

.nav {
  max-width: 1192px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 7px 7px 7px 7px;
  border-radius: 999px;
  background: rgba(252, 250, 247, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nav .brand {
  height: 42px;
  border-radius: 999px;
  padding-inline: 18px;
}

.nav .brand img {
  height: 17px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}

.nav-links a:hover {
  background: var(--well);
  color: var(--ink);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 56px 56px 56px 60px;
  border-radius: 40px;
  background:
    radial-gradient(90% 80% at 0% 0%, #F9C2D2 0%, rgba(249, 194, 210, 0) 60%),
    radial-gradient(80% 90% at 100% 100%, #F9DB3F 0%, rgba(249, 219, 63, 0) 62%),
    radial-gradient(70% 70% at 70% 20%, #F9A57A 0%, rgba(249, 165, 122, 0) 60%),
    linear-gradient(135deg, #F28CA9 0%, #F6A98B 55%, #F9D458 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 40px 70px -40px rgba(217, 95, 132, 0.8);
  position: relative;
  overflow: hidden;
}

/* the retro striped sun, softened */
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      transparent 52%,
      rgba(242, 140, 169, 0.9) 52% 57%,
      transparent 57% 66%,
      rgba(242, 140, 169, 0.9) 66% 72%,
      transparent 72% 80%,
      rgba(242, 140, 169, 0.9) 80% 87%,
      transparent 87%
    ),
    radial-gradient(circle, #FCE58A 0%, #F9DB3F 60%);
  opacity: 0.55;
  filter: blur(0.5px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-h {
  margin: 10px 0 20px;
  font-family: var(--disp);
  font-weight: 300;
  font-size: clamp(56px, 7.6vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-p {
  margin: 0 0 28px;
  max-width: 26em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(42, 26, 34, 0.8);
}

.hero-art {
  position: relative;
  z-index: 1;
  padding: 28px 10px 34px 34px;
}

.photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 50px -26px rgba(42, 26, 34, 0.55);
  border: 6px solid rgba(255, 255, 255, 0.7);
}

.photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 64% 50%;
}

.float {
  position: absolute;
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
}

.float-ticket {
  left: 0;
  bottom: 0;
  width: 210px;
  padding: 16px 18px;
  background: rgba(252, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-k {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.float-clock {
  font-family: var(--disp);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.float-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.float-pay {
  font-family: var(--mono);
  font-size: 13px;
}

.float-pulse {
  right: 0;
  top: 0;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle at 50% 50%, #FCE89A 0 8%, #F9A6BD 24%, #EE789B 48%, #F2A2B9 72%, #F9D6E0 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rings {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.rings i {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  animation: ring 2.4s ease-out infinite;
}

.rings i:nth-child(2) {
  animation-delay: 0.8s;
}

.rings i:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes ring {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }

  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.rings img {
  position: relative;
  width: 34px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(169, 56, 92, 0.45));
  animation: beat 1.2s ease-in-out infinite;
}

@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.18);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }
}


/* ============================================================
   SECTIONS
   ============================================================ */

.sec {
  padding-top: 104px;
}

.sec-head {
  max-width: 44em;
  margin-bottom: 32px;
}

.sec-h {
  margin: 0;
  font-family: var(--disp);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sec-p {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 36em;
}


/* ---------- pick your side (social) ---------- */

.friend {
  margin-top: 16px;
  font-size: 13px;
  padding: 8px 14px;
}

.sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.side {
  appearance: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.side::after {
  content: "";
  position: absolute;
  inset: 0 0 60% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.side > * {
  position: relative;
  z-index: 1;
}

.side:hover {
  transform: translateY(-2px);
}

.side-long {
  background:
    radial-gradient(80% 80% at 0% 0%, #fdf0b5 0%, rgba(253, 240, 181, 0) 60%),
    radial-gradient(70% 80% at 100% 100%, #f6b98a 0%, rgba(246, 185, 138, 0) 65%),
    linear-gradient(135deg, #fce58a 0%, #f9db3f 55%, #f6c25a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 30px 50px -28px rgba(185, 139, 12, 0.7);
}

.side-moon {
  background:
    radial-gradient(90% 80% at 0% 0%, #f9c2d2 0%, rgba(249, 194, 210, 0) 60%),
    radial-gradient(70% 70% at 90% 100%, #f9a57a 0%, rgba(249, 165, 122, 0) 60%),
    linear-gradient(135deg, #f28ca9 0%, #ee789b 55%, #f6a98b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 30px 50px -28px rgba(217, 95, 132, 0.8);
}

.side[aria-checked="true"] {
  box-shadow:
    0 0 0 3px var(--ink),
    0 30px 50px -26px rgba(42, 26, 34, 0.55);
}

.side-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-k {
  font-size: 14px;
  font-weight: 600;
}

.side-mine {
  visibility: hidden;
}

.side[aria-checked="true"] .side-mine {
  visibility: visible;
}

.side-h {
  margin-top: 10px;
  font-family: var(--disp);
  font-weight: 300;
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.side-p {
  font-size: 16px;
}

.side-count {
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.side-count .dm {
  height: 48px;
}

.side-u {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
  padding-bottom: 2px;
}

.tally {
  margin-top: 18px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.tally b {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 20px;
}

.tally-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--well);
}

.tally-bar i {
  height: 100%;
  width: 50%;
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#barLong {
  background: var(--sun);
}

#barMoon {
  background: var(--flamingo);
}

.tally-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}

/* the X logo, used on the post buttons */
.x-mark {
  width: 18px;
  height: 18px;
  margin-left: auto;
  fill: var(--ink);
}

.x-mark-btn {
  margin-left: 0;
  fill: currentColor;
}

.btn-soft {
  background: var(--well);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (max-width: 860px) {
  .sides {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .side {
    padding: 22px 22px 20px;
  }

  .tally {
    grid-template-columns: 1fr 1fr;
  }

  .tally-bar {
    grid-column: 1 / -1;
    order: -1;
  }

  .tally-r {
    text-align: right;
  }
}

/* ============================================================
   VICE POINTS: the weekly Long only vs Moon only vote
   Reuses the side cards, tally and chips above; adds the countdown, the
   pool, the vote / claim panels and the VP balance pill in the nav.
   ============================================================ */

.vice .sec-head {
  margin-bottom: 18px;
}

/* the three-step strip under the heading */
.vsteps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vsteps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 15px;
}

.vsteps span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: #2A1A22;
  font-size: 13px;
  font-weight: 700;
}

/* countdown + pool */
.vtop {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

/* the clock is always brand ink, in both themes, with sun-yellow dots */
.vclock {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(238, 120, 155, 0.35) 0%, rgba(238, 120, 155, 0) 65%),
    #2A1A22;
  color: #FBF1E1;
  padding: 24px 26px 22px;
  box-shadow: 0 30px 50px -28px rgba(42, 26, 34, 0.8);
}

.vclock-k {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

.vclock-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 14px;
}

.vunit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vunit .dm {
  height: 64px;
}

.vunit em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 241, 225, 0.7);
}

.vcolon {
  width: 8px;
  height: 64px;
  background:
    radial-gradient(circle, #F9DB3F 3px, transparent 3.5px) center 34% / 8px 8px no-repeat,
    radial-gradient(circle, #F9DB3F 3px, transparent 3.5px) center 66% / 8px 8px no-repeat;
}

.vclock .dm circle.on {
  fill: #F9DB3F;
}

.vclock .dm circle.off {
  fill: rgba(249, 219, 63, 0.08);
}

.vclock.is-over .dm circle.on {
  fill: rgba(249, 219, 63, 0.35);
}

.vclock-s {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(251, 241, 225, 0.75);
}

.vpool-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 14px;
}

.vpool-row .dm {
  height: 64px;
}

.vpool-u {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.25;
  padding-bottom: 3px;
}

.vpool-p {
  margin: 0;
  font-size: 15px;
}

/* "If Moon wins: 70.9 VP each" under each side's count */
.vest {
  margin-top: 14px;
  align-self: stretch;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 600;
}

.vest b {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 18px;
}

.side[aria-disabled="true"] {
  cursor: default;
}

.side[aria-disabled="true"]:not([aria-checked="true"]) {
  opacity: 0.6;
}

.side[aria-disabled="true"]:hover {
  transform: none;
}

/* social proof: handles that just voted, scrolling */
.vfeed {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.vfeed-k {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.vfeed-row {
  display: flex;
  gap: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}

.vfeed-row span {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: vfeed-in 0.4s ease-out;
}

.vfeed-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.vfeed-row i.long {
  background: #F9DB3F;
}

.vfeed-row i.moon {
  background: #EE789B;
}

@keyframes vfeed-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
}

/* the panels that change with the round state */
.vpanel {
  margin-top: 18px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 32px;
  align-items: center;
}

.vpanel-h {
  margin: 0;
  font-family: var(--disp);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.vpanel-p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

.vpanel-small {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.vpanel-act {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.vpanel-win .vpanel-p {
  color: #2A1A22;
}

.kicker-ink {
  color: #2A1A22;
}

.vhandle {
  display: flex;
  align-items: center;
  height: 54px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 17px;
}

.vhandle span {
  color: var(--ink-3);
  font-weight: 600;
}

.vhandle input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: 500 17px var(--body);
  color: var(--ink);
  outline: none;
}

.vhandle:focus-within {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.vpost {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--well);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  color: var(--ink-2);
}

.vpost-btn {
  width: 100%;
}

.vmsg {
  margin: 0;
  min-height: 1.2em;
  font-size: 14px;
  font-weight: 600;
  color: var(--flamingo-ink);
}

.vmsg:empty {
  display: none;
}

.vshare {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--well);
}

.vshare-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14px;
}

.vshare-dm {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.vshare-dm .dm {
  height: 72px;
}

.vrules {
  margin-top: 18px;
  padding: 16px 22px;
}

.vrules summary {
  cursor: pointer;
  font-weight: 600;
}

.vrules ul {
  margin: 12px 0 2px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-2);
  font-size: 15px;
}

/* Vice Points balance in the nav, once you have some */
.vp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: var(--sun);
  color: #2A1A22;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.vp-pill i {
  font-style: normal;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #2A1A22;
  color: #F9DB3F;
}

.vp-pill[hidden] {
  display: none !important;
}

.toast-v {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: #2A1A22;
  color: #FBF1E1;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.6);
}

/* dark mode bits the base sheet doesn't know about */
:root[data-theme="dark"] .vest {
  background: rgba(255, 255, 255, 0.55);
}

:root[data-theme="dark"] .vclock {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 50px -28px rgba(0, 0, 0, 0.9);
}

@media (max-width: 860px) {
  .vtop,
  .vpanel {
    grid-template-columns: minmax(0, 1fr);
  }

  .vunit .dm,
  .vcolon,
  .vpool-row .dm {
    height: 48px;
  }
}

@media (max-width: 420px) {
  .vclock-row {
    gap: 6px;
  }

  .vunit .dm,
  .vcolon {
    height: 38px;
  }
}


/* "Not you? Use another handle" */
.vlink {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: 600 13px var(--body);
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vice[data-state="loading"] .sides {
  opacity: 0.6;
}

.side .vwin {
  display: none;
}

.side.is-winner .vwin {
  display: inline-flex;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 290px;
}

.step-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.step h3 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-2);
}

.step-orbs {
  margin-top: auto;
  display: flex;
  gap: 18px;
}

.step-orbs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
}

.step-orbs .orb {
  width: 52px;
  height: 52px;
}

.moon-demo {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--disp);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 20px;
  text-transform: uppercase;
  box-shadow: 0 12px 22px -12px rgba(42, 26, 34, 0.8);
}

.moon-demo img {
  width: 24px;
}

.step-dm {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.dm-cap {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
  padding-bottom: 2px;
}


/* ---------- two games ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mesh {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.mesh > * {
  position: relative;
  z-index: 1;
}

.mesh::after {
  content: "";
  position: absolute;
  inset: 0 0 60% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mesh-pink {
  background:
    radial-gradient(90% 80% at 0% 0%, #F9C2D2 0%, rgba(249, 194, 210, 0) 60%),
    radial-gradient(80% 90% at 100% 100%, #F9DB3F 0%, rgba(249, 219, 63, 0) 62%),
    radial-gradient(70% 70% at 78% 18%, #F9A57A 0%, rgba(249, 165, 122, 0) 60%),
    linear-gradient(135deg, #F28CA9 0%, #F6A98B 55%, #F9D458 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 30px 50px -28px rgba(217, 95, 132, 0.8);
}

.mesh-teal {
  color: #fff;
  background:
    radial-gradient(55% 60% at 88% 6%, rgba(249, 219, 63, 0.95) 0%, rgba(249, 219, 63, 0) 70%),
    radial-gradient(60% 60% at 70% 30%, rgba(246, 165, 110, 0.5) 0%, rgba(246, 165, 110, 0) 70%),
    radial-gradient(80% 70% at 0% 100%, #0F3B41 0%, rgba(15, 59, 65, 0) 70%),
    linear-gradient(150deg, #2D9CA2 0%, #1A737B 52%, #124A51 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 30px 50px -28px rgba(15, 59, 65, 0.85);
}

.mesh-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mesh-k {
  font-size: 14px;
  font-weight: 600;
}

.mesh-k-light {
  color: #fff;
}

.mesh-h {
  margin: 14px 0 0;
  font-family: var(--disp);
  font-weight: 300;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.mesh-h-light {
  color: #fff;
}

.mesh-p {
  margin: 0 0 12px;
  max-width: 30em;
  font-size: 16px;
}

.mesh-p-light {
  color: #fff;
}

.mesh .btn {
  margin-top: auto;
}

.clocks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 26px;
}

.clock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  font-size: 14px;
}

.clock .orb {
  width: 30px;
  height: 30px;
}

.clock em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-2);
}


/* ---------- money flow ---------- */

.flow {
  padding: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-radius: 22px;
  background: var(--well);
}

.node-k {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.node-v {
  font-family: var(--disp);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.node-start {
  background: var(--ink);
  color: var(--sand);
  padding: 22px 26px;
}

.node-start .node-k {
  color: rgba(251, 241, 225, 0.8);
}

.node-start .node-v {
  font-size: 44px;
}

.branch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 32px;
}

/* the bracket that splits one ticket into two lanes */
.branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 44px;
  width: 20px;
  border: 2px dashed rgba(42, 26, 34, 0.25);
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.lane {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.lane .node:first-child::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 16px;
  border-top: 2px dashed rgba(42, 26, 34, 0.25);
}

.node-buy {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: var(--sun);
}

.node-buy .node-k {
  color: var(--ink);
  font-size: 16px;
}

.buy-logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 14px;
  border-radius: 12px;
  background: var(--flamingo);
}

.buy-logo img {
  height: 16px;
  width: auto;
  display: block;
}

.node-house {
  background: #E4F2F0;
  justify-content: center;
}

.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.fine-line {
  margin: 14px 4px 0;
  font-size: 13px;
  color: var(--ink-3);
}


/* ---------- launchpad ---------- */

.road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 34px;
}

.road-line {
  position: absolute;
  top: 8px;
  left: 24px;
  right: 24px;
  height: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px dashed rgba(42, 26, 34, 0.2);
  margin-top: 6px;
}

.road-line i {
  width: 16px;
  height: 16px;
  margin-top: -9px;
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.road-line i.on {
  background: var(--flamingo-deep);
}

.road-line i.next {
  background: var(--sun);
  border-color: var(--ink);
  border-width: 2px;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    transform: scale(1.3);
  }
}

.stop {
  padding: 22px 24px 24px;
}

.stop h3 {
  margin: 14px 0 4px;
  font-family: var(--disp);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.stop p {
  margin: 0;
  color: var(--ink-2);
}

.stop-next {
  background:
    radial-gradient(80% 90% at 100% 100%, rgba(249, 219, 63, 0.55) 0%, rgba(249, 219, 63, 0) 70%),
    radial-gradient(70% 80% at 0% 0%, rgba(249, 194, 210, 0.6) 0%, rgba(249, 194, 210, 0) 70%),
    var(--card);
}

.signup {
  margin-top: 20px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px 28px;
  align-items: center;
}

.signup-copy h3 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.signup-copy p {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.signup-form {
  display: flex;
  gap: 10px;
}

.signup-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding-inline: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--well);
  box-shadow: inset 0 1px 2px rgba(42, 26, 34, 0.08);
  font: 16px var(--body);
  color: var(--ink);
}

.signup-form input::placeholder {
  color: var(--ink-3);
}

.signup-msg {
  grid-column: 2;
  margin: -4px 0 0 22px;
  min-height: 1.2em;
  font-size: 14px;
  font-weight: 600;
}

.signup-msg:empty {
  display: none;
}

.signup-msg.ok {
  color: var(--pool-ink);
}

.signup-msg.err {
  color: var(--flamingo-ink);
}

.signup-msg a {
  margin-left: 6px;
}


/* ---------- postcard ---------- */

.postcard {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(15, 59, 65, 0.8);
}

.postcard > img {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 520px);
  object-fit: cover;
  object-position: 40% 55%;
}

.postcard-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 59, 65, 0.05) 20%, rgba(15, 59, 65, 0.45));
}

.postcard-script {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(54px, 9vw, 118px);
  line-height: 1;
  color: #fff;
  text-align: center;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
}


/* ---------- footer ---------- */

.foot {
  padding-top: 72px;
  padding-bottom: 48px;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14px;
  font-weight: 500;
}

.foot-links a {
  text-decoration: none;
  color: var(--ink-2);
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-legal {
  margin: 20px 0 0;
  max-width: 72em;
  font-size: 13px;
  color: var(--ink-2);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 32px 36px;
  }

  .hero-art {
    max-width: 460px;
    width: 100%;
    justify-self: center;
  }

  /* on one column the sun sits behind the photo, not the headline */
  .hero::before {
    top: auto;
    bottom: 60px;
    right: -150px;
    width: 380px;
    height: 380px;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .node-start {
    justify-self: start;
  }

  .branch {
    padding-left: 24px;
  }

  .branch::before {
    top: -14px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  /* keep the light/dark switch beside Open app, not centred */
  .theme-btn {
    margin-left: auto;
  }

  .nav {
    justify-content: space-between;
  }

  .steps,
  .duo,
  .road {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    min-height: 0;
  }

  .step-orbs,
  .moon-demo,
  .step-dm {
    margin-top: 16px;
  }

  .road {
    padding-top: 0;
    padding-left: 30px;
  }

  /* the route runs down the left on phones */
  .road-line {
    top: 20px;
    bottom: 20px;
    left: 7px;
    right: auto;
    width: 14px;
    height: auto;
    margin: 0;
    border-top: 0;
    border-left: 2px dashed rgba(42, 26, 34, 0.2);
    grid-template-columns: none;
    grid-template-rows: repeat(3, 1fr);
  }

  .road-line i {
    margin: 0 0 0 -9px;
  }

  .lane {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lane .node:first-child::after {
    display: none;
  }

  .signup {
    grid-template-columns: minmax(0, 1fr);
  }

  .signup-msg {
    grid-column: 1;
    margin-left: 4px;
  }

  .sec {
    padding-top: 80px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-inline: 16px;
  }

  .nav-wrap {
    padding: 10px 12px 0;
  }

  .hero {
    padding: 30px 22px 28px;
    border-radius: 32px;
  }

  .hero-cta .btn {
    flex: 1;
  }

  .hero-art {
    padding: 20px 4px 28px 20px;
  }

  .float-ticket {
    width: 176px;
    padding: 12px 14px;
  }

  .float-clock {
    font-size: 36px;
  }

  .float-pulse {
    width: 96px;
    height: 96px;
  }

  .signup-form {
    flex-direction: column;
  }

  .mesh {
    padding: 24px 22px 24px;
  }

  .flow {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}


/* ============================================================
   DARK MODE: "Ocean Drive at night" (option A)
   On when <html data-theme="dark">: set before first paint by the inline
   script in index.html, toggled by the moon/sun button in the nav.
   Same mechanism as the app: --ink becomes the light text colour; things
   painted with ink keep the real brand ink; bright cards ("light islands")
   keep every daytime token and look exactly as they do in light mode.
   ============================================================ */

:root[data-theme="dark"] {
  --ink: #FBF1E1;
  --ink-2: #C8DCD9;
  --ink-3: #A9C6C2;
  --pool-ink: #7FD3D9;
  --flamingo-ink: #F49AB4;

  --bg: #06181C;
  --card: #0E2A30;
  --well: #163A41;
  --line: rgba(207, 227, 225, 0.12);

  --shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(207, 227, 225, 0.08),
    0 16px 36px -18px rgba(0, 0, 0, 0.7);
  --shadow-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(207, 227, 225, 0.1),
    0 26px 50px -22px rgba(0, 0, 0, 0.8);

  color-scheme: dark;
}

/* painted with ink: stays brand ink */
:root[data-theme="dark"] .chip-ink,
:root[data-theme="dark"] .moon-demo,
:root[data-theme="dark"] .node-start {
  --ink: #2A1A22;
}

/* light islands */
:root[data-theme="dark"] .mesh-pink,
:root[data-theme="dark"] .side-long,
:root[data-theme="dark"] .side-moon,
:root[data-theme="dark"] .chip-sun,
:root[data-theme="dark"] .chip-pool,
:root[data-theme="dark"] .chip-flam,
:root[data-theme="dark"] .step-n,
:root[data-theme="dark"] .node-buy,
:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .float-pulse,
:root[data-theme="dark"] .btn-sand {
  /* text inherits the parent's already-resolved colour, so set it here */
  color: var(--ink);
  --ink: #2A1A22;
  --ink-2: #5E4A52;
  --ink-3: #6F5F66;
  --pool-ink: #155F66;
  --flamingo-ink: #A8385C;
  --card: #FCFAF7;
  --well: #F6F1EB;
  --line: rgba(42, 26, 34, 0.08);
  color-scheme: light;
}

/* an ink pill vanishes on deep teal, so the main buttons turn sun-yellow */
:root[data-theme="dark"] .btn-ink {
  background: var(--sun);
  color: #2A1A22;
  box-shadow: 0 12px 26px -14px rgba(249, 219, 63, 0.6);
}

:root[data-theme="dark"] .btn-ink img {
  filter: brightness(0) saturate(100%);
  opacity: 0.85;
}

:root[data-theme="dark"] .btn-glass,
:root[data-theme="dark"] .chip-glass {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}

:root[data-theme="dark"] .btn-soft {
  box-shadow: inset 0 0 0 1px var(--line);
}

:root[data-theme="dark"] .nav {
  background: rgba(14, 42, 48, 0.82);
}

/* the hero: deep teal with a coral glow top-right and pink bottom-left
   (yellow glow over teal turns olive) */
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(246, 165, 110, 0.42) 0%, rgba(246, 165, 110, 0) 62%),
    radial-gradient(70% 70% at 0% 100%, rgba(242, 140, 169, 0.36) 0%, rgba(242, 140, 169, 0) 65%),
    linear-gradient(150deg, #13464E 0%, #0C2D33 55%, #071B1F 100%);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 40px 70px -40px rgba(0, 0, 0, 0.9);
}

:root[data-theme="dark"] .hero::before {
  opacity: 0.22;
}

:root[data-theme="dark"] .script {
  color: var(--sun);
}

:root[data-theme="dark"] .hero-note {
  color: var(--ink-2);
}

:root[data-theme="dark"] .photo {
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .float-ticket {
  background: rgba(14, 42, 48, 0.92);
}

:root[data-theme="dark"] .dm-ink circle.off {
  fill: rgba(251, 241, 225, 0.06);
}

:root[data-theme="dark"] .node-house {
  background: #123F45;
}

:root[data-theme="dark"] .branch::before,
:root[data-theme="dark"] .lane .node:first-child::after,
:root[data-theme="dark"] .road-line {
  border-color: rgba(251, 241, 225, 0.25);
}

:root[data-theme="dark"] .mesh-teal {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 50px -28px rgba(0, 0, 0, 0.9);
}


/* ---------- the light/dark switch in the nav ---------- */

.theme-btn {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

.theme-btn:hover {
  background: var(--well);
  color: var(--ink);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* show the mode you'd switch TO */
.theme-btn .i-sun,
:root[data-theme="dark"] .theme-btn .i-moon {
  display: none;
}

:root[data-theme="dark"] .theme-btn .i-sun {
  display: block;
}
