/* Neutral system type on purpose: the page must not compete with the five styles being judged. */
:root {
  color-scheme: dark;
  --moss-900: #10201a;
  --moss-800: #17301f;
  --moss-700: #234430;
  --line: rgba(247, 245, 239, .16);
  --cream: #f7f5ef;
  --sage: #b9c8b6;
  --leaf: #c2f99f;
  --ink: #16240f;
  --error: #ffb4a8;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--moss-900);
  color: var(--cream);
  font: 400 16px/1.5 var(--ui);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(env(safe-area-inset-top, 0px) + 28px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
}
.wrap { max-width: 1440px; margin: 0 auto; display: grid; gap: 32px; min-width: 0; }
section, header { display: grid; gap: 12px; min-width: 0; }
header { gap: 6px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.top .seg button { min-height: 34px; font-size: 13.5px; }
.who label .opt { color: var(--sage); font-weight: 400; }
.eyebrow { margin: 0; color: var(--leaf); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; font-weight: 700; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; font-weight: 700; }
.lead { margin: 0; max-width: 62ch; color: var(--sage); }
.small, .hint { margin: 0; color: var(--sage); font-size: 13.5px; }
.who { display: grid; gap: 6px; width: min(100%, 360px); min-width: 0; }
.who label { font-size: 14px; font-weight: 600; }
.who input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--moss-800);
  color: var(--cream);
  font: 400 16px/1.2 var(--ui);
}
.who input:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.controls {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-block: 10px;
  background: var(--moss-900);
  border-bottom: 1px solid var(--line);
}
.seg { display: inline-flex; min-width: 0; max-width: 100%; padding: 3px; gap: 2px; background: var(--moss-800); border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sage);
  font: 500 14px/1 var(--ui);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; min-width: 0; }
.card { min-width: 0; display: grid; gap: 10px; }
.name { margin: 0; min-width: 0; font-size: 18px; line-height: 1.2; font-weight: 700; }
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--moss-800);
  cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; }
.card.mine .shot { border-color: var(--leaf); box-shadow: 0 0 0 2px var(--leaf); }
.vote {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: 600 15px/1.1 var(--ui);
  cursor: pointer;
}
.vote[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); }
.vote:disabled { opacity: .6; cursor: progress; }
.status { margin: 0; min-height: 1.5em; color: var(--leaf); font-weight: 600; }
.status.error { color: var(--error); }
.bars { display: grid; gap: 12px; max-width: 640px; }
.bar { display: grid; grid-template-columns: 72px minmax(0, 1fr) 76px; align-items: center; gap: 10px; }
.bar-name { font-weight: 600; }
.bar.mine .bar-name { color: var(--leaf); }
.track { height: 12px; border-radius: 999px; background: var(--moss-700); overflow: hidden; }
.fill-bar { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--sage); }
.bar.mine .fill-bar { background: var(--leaf); }
.bar-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--sage); font-size: 14px; }
.viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  background: var(--moss-900);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(12px, env(safe-area-inset-left, 0px));
}
.vbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.vstage { position: relative; min-height: 0; overflow: hidden; }
.vstage img { position: absolute; inset: 0; margin: auto; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.vnav { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 8px; width: min(100%, 460px); margin: 0 auto; }
.round {
  appearance: none;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--moss-800);
  color: var(--cream);
  font: 500 19px/1 var(--ui);
  cursor: pointer;
}
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(72%, 270px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
  }
  .card { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .seg button { padding: 0 10px; font-size: 13px; }
  .seg.fill { width: 100%; }
  .seg.fill button { flex: 1; padding: 0 4px; }
  .shot { border-radius: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .seg button, .vote { transition: background .15s, color .15s; }
  .fill-bar { transition: width .35s ease; }
}
/* Intro, the two questions and the way between them. */
/* The intro video stays small enough that the start button is on the first phone screen. */
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; }
.intro-video { width: min(56vw, 300px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #000; flex: none; }
.intro-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.start, .next {
  appearance: none;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  background: var(--leaf);
  color: var(--ink);
  font: 700 16px/1.1 var(--ui);
  cursor: pointer;
}
.skip { appearance: none; border: 0; background: none; padding: 8px 0; color: var(--sage); font: 500 14.5px/1.3 var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.steps { display: grid; gap: 56px; min-width: 0; }
.steps.site-first #step-site { order: -1; }
.step { gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.step-head { display: grid; gap: 6px; }
.kicker { margin: 0; color: var(--leaf); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.results { display: grid; gap: 12px; }
.results h3 { margin: 0; font-size: 20px; }
.after { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.thanks { margin: 0; color: var(--leaf); font-size: 20px; font-weight: 700; }
.meta:empty { display: none; }
.meta { margin: 0; color: var(--sage); font-size: 13.5px; }
/* Website pictures: phone screen, computer screen, or the whole page on a phone. */
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.open { color: var(--leaf); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.open:hover { text-decoration: underline; }
.open:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.shot img { object-position: top; }
.grid[data-view="desk"] .shot img { aspect-ratio: 1440 / 900; }
.grid[data-view="full"] .shot img { aspect-ratio: 390 / 1300; }
.grid[data-view="full"] .shot { position: relative; }
.grid[data-view="full"] .shot::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--moss-900)); }
.vbar .open { margin-left: auto; }
.viewer[data-view="full"] .vstage { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.viewer[data-view="full"] .vstage img { position: static; width: min(100%, 430px); max-height: none; margin: 0 auto; }
@media (max-width: 1200px) {
  .grid[data-view="desk"] { grid-auto-columns: min(86%, 420px); }
}
