:root {
  --teal: #19a387;
  --teal-ink: #11806a;
  --teal-deep: #0b4f43;
  --ink: #3d3d3d;
  --ink-soft: #6a6a6a;
  --ink-faint: #949494;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --line: #e2e2e2;
  --footer: #2a2c2d;
  --sans: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; }
.section.mist { background: var(--mist); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}
h1, h2, h3 { font-weight: 300; margin: 0; color: var(--ink); }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.01em; }
.lede { color: var(--ink-soft); font-size: 17px; line-height: 1.65; max-width: 44ch; margin: 22px 0 0; }
.center .lede, .game-head .lede { margin-left: auto; margin-right: auto; }
.more-link { display: inline-block; margin-top: 20px; font-size: 15px; font-weight: 400; }
.more-link::after { content: " \25B8"; font-size: 11px; }
.center { text-align: center; }

/* ---------- header ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 26px 32px;
}
.wordmark { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
/* The Theranos "o": a solid teal sphere sitting on the baseline at x-height. */
.wordmark .o { display: inline-block; width: 0.54em; height: 0.54em; margin: 0 0.03em 0 0.04em; vertical-align: baseline; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { color: #fff; font-size: 12px; letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase; }
.nav .login {
  border: 1px solid rgba(255,255,255,.85); padding: 8px 18px; border-radius: 3px;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 640px; display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden;
  background: #0b4f43 url("img/hero-drops.jpg") center 60% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,90,74,.55), rgba(20,150,122,.45) 55%, rgba(6,80,66,.7));
  mix-blend-mode: hard-light;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(25,163,135,.35), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; padding: 140px 32px 100px; width: 100%; max-width: 920px; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; letter-spacing: -0.015em; }
.hero p { font-size: 17px; opacity: .9; margin: 28px auto 0; max-width: 56ch; }
.hero a { color: #fff; }

.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transition: opacity .8s ease, visibility .8s; pointer-events: none; visibility: hidden; }
.slide.on { opacity: 1; pointer-events: auto; visibility: visible; }

.strip { background: var(--teal); color: #fff; font-size: 14px; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.strip b { font-weight: 600; }
.strip a { color: #fff; font-size: 20px; line-height: 1; }

/* ---------- about / quote ---------- */
.quote { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: start; }
.portrait {
  width: 260px; height: 260px; border-radius: 50%; overflow: hidden; margin: 0 auto;
  box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Suspect mugshots: square frames, unlike the round editorial portraits. */
.portrait.sm { width: 180px; height: 180px; border-radius: 2px; }
.connect { text-align: center; margin-top: 40px; }
.connect .eyebrow { font-size: 10px; }
.chips { display: flex; justify-content: center; gap: 10px; }
.chips span {
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal-ink); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
blockquote { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.25; color: var(--ink); }
blockquote s { color: var(--ink-faint); text-decoration-thickness: 1px; }
.attr { font-size: 14px; color: var(--ink-soft); margin: 8px 0 26px; }
.fine { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.fine ul { padding-left: 0; list-style: none; }
.fine li::before { content: "\2022  "; color: var(--teal); }
.fine li { margin: 6px 0; }
.signature-box {
  border-left: 3px solid var(--teal); padding: 8px 0 8px 20px; margin: 24px 0;
  font-size: 18px; line-height: 1.5; color: var(--ink);
}
.signature-box .attr { display: inline-block; margin: 8px 0 0; }

/* ---------- game ---------- */
.game-head { text-align: center; margin-bottom: 56px; }
.modes { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 28px; }
.modes button {
  border: 0; background: none; padding: 9px 20px; border-radius: 999px; cursor: pointer;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600;
}
.modes button.on { background: var(--teal); color: #fff; }
.modes button:disabled { cursor: not-allowed; opacity: .45; }
.mode-note { font-size: 14px; color: var(--ink-faint); margin-top: 12px; min-height: 22px; }

.lab { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; gap: 44px; align-items: center; }
.suspect { text-align: center; display: flex; flex-direction: column; align-items: center; align-self: stretch; justify-content: center; }
.suspect h3 { font-size: 28px; margin: 30px 0 8px; }
.suspect p { font-size: 15px; color: var(--ink-soft); margin: 0 auto 22px; max-width: 24ch; min-height: 3.2em; }
.guess {
  appearance: none; cursor: pointer; border: 2px solid var(--teal); background: #fff; color: var(--teal-ink);
  padding: 14px 34px; border-radius: 999px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  transition: background .15s, color .15s, transform .1s;
}
.guess:hover:not(:disabled) { background: var(--teal); color: #fff; }
.guess:active:not(:disabled) { transform: scale(.97); }
.guess:disabled { opacity: .4; cursor: default; }
.guess kbd { font-family: inherit; opacity: .55; font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.suspect.picked .portrait { box-shadow: 0 0 0 10px #fff, 0 0 0 13px var(--teal); }

.specimen {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 30px 34px 26px;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.25); position: relative; min-height: 320px;
  display: flex; flex-direction: column;
}
.specimen-label {
  display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px dashed var(--line); padding-bottom: 14px; margin-bottom: 22px;
}
.specimen-label b { color: var(--teal-ink); font-weight: 600; }
.tweet { font-size: 22px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: #2c2c2c; flex: 1; }
.tweet.long { font-size: 18px; }
.tweet .ctx { display: block; font-size: 14px; color: var(--ink-faint); margin-bottom: 10px; }
.tweet-meta { font-size: 13px; color: var(--ink-faint); margin-top: 18px; display: flex; justify-content: space-between; gap: 10px; }
.tweet-meta .media { font-style: italic; }
.expand { border: 0; background: none; color: var(--teal-ink); padding: 0; cursor: pointer; font-size: 15px; margin-top: 10px; align-self: flex-start; }

.result { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; display: none; }
.result.on { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.verdict { font-size: 26px; font-weight: 400; line-height: 1.25; margin-bottom: 16px; color: var(--teal-ink); }
.result-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; margin: 0; }
.result-grid dt { color: var(--ink-faint); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; padding-top: 4px; }
.result-grid dd { margin: 0; }
.bar { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; margin-top: 8px; display: flex; }
.bar i { display: block; height: 100%; background: var(--teal); }
.bar i + i { background: #b7c9c4; }
.result .next { margin-top: 22px; }
.quip { font-size: 15px; color: var(--ink-soft); font-style: italic; margin-top: 16px; }

.chart {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; align-items: center;
  margin-top: 56px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; color: var(--ink-soft);
}
.chart b { color: var(--ink); font-weight: 500; font-size: 17px; }
.chart label { display: flex; align-items: center; gap: 10px; }
.name-field span { display: flex; flex-direction: column; }
.name-field small { font-size: 11px; color: var(--ink-faint); padding: 2px 2px 0; }
.chart input {
  font: inherit; font-size: 17px; font-weight: 500; border: 0; border-bottom: 1px dashed var(--line); padding: 2px 2px; width: 200px;
  color: var(--ink); background: none; cursor: text;
}
.chart input:hover { border-bottom-color: var(--ink-faint); }
.chart input:focus { outline: none; border-bottom: 1px solid var(--teal); }
.chart .save { border: 0; background: none; color: var(--teal-ink); cursor: pointer; font-size: 15px; padding: 0; }
.done-card { text-align: center; padding: 40px 10px; }
.done-card h3 { font-size: 28px; margin-bottom: 10px; }

/* ---------- stats rings ---------- */
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.rings { display: grid; grid-template-columns: repeat(2, 190px); gap: 26px; justify-content: center; }
.ring {
  width: 190px; height: 190px; border-radius: 50%; border: 3px solid var(--teal); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px;
}
.ring b { font-weight: 400; font-size: 34px; color: var(--ink); line-height: 1.1; }
.ring span { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.35; }
.footnote { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 18px; }
.footnote.left { text-align: left; }

/* ---------- difference ---------- */
.diff { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.portrait.lg { width: 340px; height: 340px; }

/* ---------- leaderboard ---------- */
.board-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
table.board { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.board th { text-align: left; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.board td { padding: 14px 18px; border-bottom: 1px solid var(--mist); }
.board td.num, .board th.num { text-align: right; font-variant-numeric: tabular-nums; }
.board tr.me td { background: #effaf7; }
.board tr.edison td { color: var(--ink-faint); font-style: italic; }
.board .rank { color: var(--ink-faint); width: 40px; }
.board-empty { padding: 28px 18px; color: var(--ink-faint); font-size: 15px; text-align: center; }
/* Top five visible; the rest scrolls under a sticky header and a fade. */
.board-scroll { overflow-y: auto; overscroll-behavior: contain; background: #fff; scrollbar-width: thin; }
.board-scroll.more { mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
.board thead th { position: sticky; top: 0; z-index: 1; background: #fff; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.board tr.flash td { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: #c9ece2; } }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 14px; font-size: 13px; color: var(--ink-faint); }
.board-foot p { margin: 0; }
.board-foot b { color: var(--ink); font-weight: 500; }
.board-foot .link { border: 0; background: none; padding: 0; color: var(--teal-ink); cursor: pointer; font: inherit; }
.board-foot .link:hover { text-decoration: underline; }

/* ---------- hardest ---------- */
.hard-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 52px; }
.hard {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px;
}
.hard .specimen-label { margin: 0; padding-bottom: 12px; }
.hard .tweet { font-size: 17px; flex: none; }
.hard-foot { font-size: 14px; color: var(--ink-soft); margin-top: auto; }
.hard-foot b { color: var(--ink); font-weight: 500; }
.pending { text-align: center; color: var(--ink-faint); padding: 36px; border: 1px dashed var(--line); border-radius: 4px; margin-top: 48px; font-size: 16px; }

/* ---------- testimonial ---------- */
.testimonial { text-align: center; padding: 104px 0; border-top: 1px solid var(--mist); }
.testimonial .wrap { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 16px; }
.testimonial blockquote { font-size: clamp(22px, 2.4vw, 30px); max-width: 32ch; margin: 0 auto; }
.testimonial .attr { margin: 18px 0 0; font-size: 15px; }
.arrow {
  border: 0; background: none; cursor: pointer; color: #c4c4c4; font-size: 44px; font-weight: 200; line-height: 1;
  width: 48px; height: 48px; padding: 0;
}
.arrow:hover { color: var(--teal); }

/* ---------- footer ---------- */
footer { background: var(--footer); color: #9aa0a3; font-size: 14px; padding: 72px 0 36px; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
footer h4 { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: #6d7376; margin: 0 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 8px 0; }
footer a { color: #c9cdcf; }
.legal { border-top: 1px solid #3b3e40; margin-top: 48px; padding-top: 24px; font-size: 13px; line-height: 1.65; color: #80878a; }
.legal p { margin: 0 0 10px; }

.banner {
  background: #fff8e1; color: #6d5a1f; font-size: 14px; text-align: center; padding: 10px 16px; border-bottom: 1px solid #f0e2b0;
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--footer); color: #fff; font-size: 15px; padding: 12px 20px; border-radius: 3px; transition: .25s; z-index: 50;
  max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav ul li:not(:last-child) { display: none; }
  .quote, .tests, .diff, .board-wrap { grid-template-columns: 1fr; gap: 48px; }
  .diff .portrait { order: -1; }
  .lab { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .lab .specimen { grid-column: 1 / -1; order: -1; }
  .portrait.sm { width: 120px; height: 120px; }
  .suspect h3 { margin-top: 22px; font-size: 24px; }
  .suspect { justify-content: flex-start; }
  .suspect p { font-size: 14px; min-height: 0; flex: 1; }
  .specimen { min-height: 200px; }
  .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 20px 16px; }
  .wordmark { font-size: 26px; }
  .section { padding: 72px 0; }
  .hero { min-height: 540px; }
  .hero-inner { padding: 110px 16px 70px; }
  .hero p { font-size: 16px; }
  .strip { font-size: 13px; }
  .lede { font-size: 16px; }
  .modes button { padding: 8px 12px; font-size: 11px; letter-spacing: .1em; }
  .specimen { padding: 22px 20px 20px; }
  .tweet { font-size: 19px; }
  .tweet.long { font-size: 16.5px; }
  .guess { padding: 12px 20px; letter-spacing: .14em; }
  .guess kbd { display: none; }
  .rings { grid-template-columns: repeat(2, 150px); gap: 14px; }
  .ring { width: 150px; height: 150px; padding: 16px; }
  .ring b { font-size: 26px; }
  .ring span { font-size: 11.5px; }
  .portrait { width: 220px; height: 220px; }
  .portrait.lg { width: 240px; height: 240px; }
  .board td, .board th { padding: 12px 8px; }
  .chart { justify-content: flex-start; }
  .testimonial { padding: 72px 0; }
  .testimonial .wrap { grid-template-columns: 28px 1fr 28px; gap: 6px; }
  .arrow { width: 28px; font-size: 34px; }
}

/* ---------- 404 + analytics ---------- */
.hero.full { min-height: 100vh; }
.hero.short { min-height: 400px; }
.hero.short .hero-inner { padding: 130px 32px 64px; }
.eyebrow.light { color: #fff; opacity: .85; }
.hero.full .more-link { margin-top: 32px; }

.stats { padding-top: 72px; }
.stats-status { text-align: center; color: var(--ink-soft); margin: 0 0 32px; }
.rings.four { grid-template-columns: repeat(4, 190px); }
.stats-h { font-size: clamp(24px, 2.4vw, 30px); margin: 88px 0 24px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: max(var(--h), 2px); background: var(--teal); border-radius: 2px 2px 0 0; opacity: .85; }
.bar:hover { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-faint); margin-top: 8px; }
.stat-lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px; margin: 88px 0 48px; }
.stat-lists h3 { font-size: 22px; margin-bottom: 16px; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li {
  position: relative; display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 14px; margin-bottom: 6px; font-size: 15px; z-index: 0;
}
.stat-list li::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); z-index: -1;
  background: #e3f4ef; border-radius: 2px;
}
.stat-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-list li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-list li.empty { color: var(--ink-faint); }
.stat-list li.empty::before { display: none; }
@media (max-width: 1000px) {
  .rings.four { grid-template-columns: repeat(2, 190px); }
}
@media (max-width: 560px) {
  .rings.four { grid-template-columns: repeat(2, minmax(0, 150px)); gap: 16px; }
  .stat-lists { grid-template-columns: 1fr; gap: 40px; }
  .hero.short .hero-inner { padding: 110px 16px 48px; }
}
