:root {
  --ink: #0b0f14;
  --ink-2: #20262c;
  --soft: #303831;
  --paper: #f2eee5;
  --card: #fffdf8;
  --muted: #505851;
  --line: #aaa297;
  --control: #6d675f;
  --acid: #caff3f;
  --acid-dark: #455100;
  --danger: #84251d;
  --coral: #ff8266;
  --sky: #64bde7;
  --shadow: 0 20px 50px #0b0f141a;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #090c10;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: #090c10;
  background-image:
    radial-gradient(circle at 18% 10%, #caff3f1a 0 1px, transparent 2px),
    radial-gradient(circle at 82% 38%, #f2eee512 0 1px, transparent 2px);
  background-size: 28px 28px, 34px 34px;
  font: 650 14px/1.45 Arial, Helvetica, sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #344500;
  outline-offset: 3px;
}

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

.skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.skip:focus {
  transform: none;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border: 1px solid #caff3f24;
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid #f2eee50f;
  border-radius: inherit;
}

.ambient::after {
  inset: 39%;
  background: #caff3f12;
}

.ambient-one {
  top: -240px;
  left: -210px;
}

.ambient-two {
  right: -260px;
  bottom: -230px;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 620px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  border-right: 1px solid #ffffff17;
  border-left: 1px solid #ffffff17;
  background: var(--paper);
  box-shadow: 0 0 100px #000;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: #f2eee5f2;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.brand strong,
.brand small {
  display: block;
  font-weight: 950;
}

.brand strong {
  font-size: 12px;
  letter-spacing: .055em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .14em;
}

.top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.help,
.streak {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
}

.help {
  width: 44px;
  font-weight: 1000;
}

.streak {
  gap: 7px;
  padding: 0 11px;
  font-size: 9px;
}

.streak b {
  font-size: 14px;
}

.bot {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid #ffffff1f;
  border-radius: 24px;
  background: var(--ink);
  box-shadow: inset 0 -7px #ffffff08, 0 6px 16px #0b0f1426;
}

.bot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffff14;
  border-radius: 18px;
}

.bot i {
  position: absolute;
  top: 26px;
  width: 14px;
  height: 13px;
  border-radius: 4px;
  background: var(--acid);
}

.bot i:first-child {
  left: 19px;
}

.bot i:nth-child(2) {
  right: 19px;
}

.bot b {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  height: 3px;
  border-radius: 4px;
  background: #fff;
}

.bot.sm {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.bot.sm::after {
  inset: 4px;
  border-radius: 9px;
}

.bot.sm i {
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.bot.sm i:first-child {
  left: 10px;
}

.bot.sm i:nth-child(2) {
  right: 10px;
}

.bot.sm b {
  right: 11px;
  bottom: 10px;
  left: 11px;
  height: 2px;
}

main {
  padding: 34px 24px 48px;
}

.hero,
.machine {
  text-align: center;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .145em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 1000;
  letter-spacing: -.045em;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(43px, 11vw, 64px);
  line-height: .94;
}

h1 span {
  color: var(--acid-dark);
}

h2 {
  font-size: 31px;
  line-height: 1.02;
}

h3 {
  font-size: 23px;
  line-height: 1.1;
}

main h1:focus,
main h2:focus {
  outline: none;
}

.lead {
  max-width: 450px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.left {
  margin-left: 0;
  text-align: left;
}

.badge,
.system-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
}

.badge {
  margin-bottom: 15px;
  border: 1px solid var(--control);
  background: var(--card);
}

.system-status {
  gap: 8px;
  margin: 0 auto 12px;
  background: var(--ink);
  color: #fff;
}

.system-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 9px var(--acid);
}

.machine-core {
  position: relative;
  width: min(100%, 330px);
  margin: 2px auto 23px;
  padding: 15px 22px 20px;
}

.machine-core::before {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 0;
  left: 5%;
  height: 40%;
  border-radius: 50%;
  background: #caff3f38;
  filter: blur(27px);
}

.machine-casing {
  position: relative;
  min-height: 200px;
  border: 1px solid #575d62;
  border-radius: 50px 50px 34px 34px;
  padding: 25px 25px 20px;
  background:
    linear-gradient(102deg, #343a40 0 8%, #11161b 17% 83%, #343a40 92% 100%);
  box-shadow:
    inset 0 2px #ffffff26,
    inset 0 -10px #00000045,
    0 20px 27px #0b0f1438;
}

.machine-casing::before,
.machine-casing::after {
  content: "";
  position: absolute;
  top: 73px;
  width: 16px;
  height: 71px;
  border: 1px solid #8a847b;
  background: var(--paper);
  box-shadow: inset 0 0 0 4px #d4cec3;
}

.machine-casing::before {
  left: -10px;
  border-radius: 12px 3px 3px 12px;
}

.machine-casing::after {
  right: -10px;
  border-radius: 3px 12px 12px 3px;
}

.machine-screen {
  position: relative;
  height: 112px;
  overflow: hidden;
  border: 6px solid #343b42;
  border-radius: 27px;
  background-color: #050708;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, #ffffff08 3px 4px),
    radial-gradient(circle at center, #17200f 0, #050708 72%);
  box-shadow:
    inset 0 0 25px #000,
    0 1px #6b737a;
}

.eye {
  position: absolute;
  top: 37px;
  width: 34px;
  height: 16px;
  border-radius: 7px;
  background: var(--acid);
  box-shadow: 0 0 13px #caff3fa3;
  transform-origin: center;
}

.left-eye {
  left: 48px;
}

.right-eye {
  right: 48px;
}

.mouth {
  position: absolute;
  right: 72px;
  bottom: 24px;
  left: 72px;
  height: 4px;
  border-radius: 4px;
  background: var(--acid);
  box-shadow: 0 0 9px #caff3f7a;
  transform-origin: center;
}

.machine-lamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 178px;
  margin: 18px auto 0;
  border: 1px solid #4e555b;
  border-radius: 999px;
  padding: 9px 12px;
  background: #050708;
  box-shadow: inset 0 4px 8px #000;
}

.machine-lamps i {
  width: 17px;
  height: 17px;
  border: 2px solid #30371f;
  border-radius: 50%;
  background: #4f581f;
  box-shadow: inset 0 2px 3px #00000087;
}

.machine-lamps i.lit,
.machine-core.card-sealed .machine-lamps i {
  border-color: #8dac22;
  background: var(--acid);
  box-shadow: 0 0 11px #caff3fa6, inset 0 2px #fff8;
}

.machine-core::after {
  content: "THE MACHINE";
  position: absolute;
  right: 50%;
  bottom: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: .15em;
  transform: translateX(50%);
}

.mood-smug .left-eye {
  transform: rotate(7deg) translateY(2px);
}

.mood-smug .right-eye {
  transform: rotate(-7deg);
}

.mood-smug .mouth {
  right: 88px;
  left: 61px;
  transform: rotate(-4deg);
}

.mood-surprised .eye {
  width: 21px;
  height: 25px;
  border-radius: 50%;
}

.mood-surprised .left-eye {
  left: 55px;
}

.mood-surprised .right-eye {
  right: 55px;
}

.mood-surprised .mouth {
  right: 94px;
  left: 94px;
  height: 11px;
  border-radius: 50%;
}

.mood-beaten .left-eye {
  transform: rotate(-13deg) translateY(5px);
}

.mood-beaten .right-eye {
  transform: rotate(13deg) translateY(5px);
}

.mood-beaten .mouth {
  right: 82px;
  left: 82px;
  border-radius: 50% 50% 0 0;
  transform: rotate(3deg);
}

.mood-tie .eye {
  height: 5px;
  border-radius: 1px;
}

.mood-tie .mouth {
  right: 78px;
  left: 78px;
}

.machine-dialog,
.machine-strip {
  border-radius: 17px;
  background: var(--ink);
  color: #fff;
  text-align: left;
}

.machine-dialog {
  position: relative;
  max-width: 460px;
  margin: 0 auto 20px;
  padding: 15px 18px 16px;
  box-shadow: 0 10px 24px #0b0f141f;
}

.machine-dialog::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

.machine-dialog small,
.machine-strip small {
  display: block;
  margin-bottom: 4px;
  color: var(--acid);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .14em;
}

.machine-dialog q {
  display: block;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
  quotes: none;
}

.machine-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0;
  padding: 11px 13px;
}

.machine-strip .machine-avatar {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.machine-strip .bot {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--ink-2);
}

.machine-strip .bot::after {
  border-radius: 8px;
}

.machine-strip .bot i {
  top: 11px;
  width: 6px;
  height: 6px;
}

.machine-strip .bot i:first-child {
  left: 9px;
}

.machine-strip .bot i:nth-child(2) {
  right: 9px;
}

.machine-strip .bot b {
  right: 9px;
  bottom: 9px;
  left: 9px;
}

.machine-strip strong {
  display: block;
  font-size: 12px;
  line-height: 1.38;
}

.sealed-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 11px var(--acid);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0 0 23px;
}

.meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fffdf8b3;
  font-size: 9px;
  font-weight: 950;
}

.primary,
.secondary {
  width: 100%;
  min-height: 58px;
  border-radius: 15px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 950;
}

.primary {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.primary.acid {
  background: var(--acid);
  color: var(--ink);
  box-shadow: inset 0 -3px #8cae18;
}

.secondary {
  border: 2px solid var(--control);
  background: transparent;
  color: var(--ink);
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.helper {
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.fair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--card);
  text-align: left;
}

.fair::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 72px;
  height: 72px;
  border: 10px solid #caff3f2b;
  border-radius: 50%;
}

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

.fair h3 {
  margin: 0;
  font-size: 17px;
}

.fair p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.seal {
  border-radius: 999px;
  padding: 7px 9px;
  background: #e0dacd;
  color: #383e39;
  font-size: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.head h2 {
  margin: 0;
}

.head > strong {
  flex: 0 0 auto;
}

.progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-bottom: 27px;
}

.progress span {
  height: 10px;
  border: 1px solid #8a8379;
  border-radius: 9px;
  background: #d7d1c6;
  box-shadow: inset 0 2px 3px #0b0f141c;
}

.progress .on {
  border-color: #789214;
  background: var(--acid);
  box-shadow: 0 0 10px #caff3f75;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  border-radius: var(--radius);
  padding: 21px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card::after {
  content: "FS";
  position: absolute;
  top: 14px;
  right: -6px;
  color: #0b0f1408;
  font-size: 76px;
  font-weight: 1000;
  letter-spacing: -.08em;
  pointer-events: none;
}

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

.qmeta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
}

.card h3 {
  margin: 19px 0;
}

.settlement {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.choices,
.rows,
.compare,
.stack {
  display: grid;
  gap: 9px;
}

.choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  border: 2px solid var(--control);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--ink);
}

.choice strong {
  display: block;
  font-size: 17px;
}

.choice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.team {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 50px;
  min-height: 46px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--ink);
  color: var(--acid);
  font-size: 11px;
  font-weight: 950;
}

.team::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
}

.rows,
.compare {
  margin: 18px 0;
}

.row {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--card);
}

.num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}

.row small {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.verified {
  margin: 0 auto 18px;
  color: #314400;
  font-size: 11px;
  font-weight: 900;
}

.verified::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
}

.machine .machine-core {
  width: min(83%, 280px);
  margin-top: -18px;
  margin-bottom: 5px;
}

.machine .machine-casing {
  min-height: 171px;
  padding: 21px 22px 17px;
}

.machine .machine-screen {
  height: 91px;
}

.machine .machine-lamps {
  margin-top: 13px;
}

.machine .eye {
  top: 29px;
}

.machine .mouth {
  bottom: 18px;
}

.speech {
  margin: 15px 0 19px;
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.cmp {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.cmp div {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 10px;
  font-size: 11px;
  font-weight: 900;
}

.cmp div:nth-child(2) {
  justify-content: center;
  background: #e0dacd;
  font-size: 9px;
}

.cmp div:last-child {
  justify-content: flex-end;
  text-align: right;
}

.cmp.diff div:nth-child(2) {
  background: var(--acid);
}

.error {
  border: 2px solid var(--danger);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff7f5;
  color: var(--danger);
  font-size: 12px;
}

.score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.score > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 10px;
  background: var(--card);
  text-align: center;
}

.score b {
  display: block;
  font-size: 43px;
  line-height: 1;
}

.score .denom {
  margin-left: 2px;
  color: var(--muted);
  font-size: .42em;
  font-weight: 800;
  vertical-align: baseline;
}

.score small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
}

.score > span {
  color: var(--muted);
  font-size: 10px;
}

.verdict {
  margin: 16px 0;
  border-radius: 18px;
  padding: 18px;
  background: var(--acid);
  box-shadow: inset 0 -4px #0b0f1417;
  text-align: center;
}

.verdict.loss {
  background: var(--ink);
  color: #fff;
}

.verdict.tie {
  border: 2px solid var(--line);
  background: var(--card);
}

.verdict h2 {
  margin: 0 0 5px;
  font-size: 25px;
}

.verdict p {
  margin: 0;
  font-size: 11px;
}

.machine-afterword {
  margin: 0 0 16px;
  border-left: 4px solid var(--acid);
  padding: 13px 15px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.share {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
  text-align: center;
}

.blocks {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 8px 0 10px;
}

.blocks span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-weight: 1000;
}

.blocks .ok {
  background: var(--acid);
}

.blocks .bad {
  background: var(--ink);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 12px 0 18px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 5px;
  background: #ffffff60;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 18px;
}

.stat small {
  color: var(--muted);
  font-size: 8px;
}

.pending {
  margin: 16px 0;
  border: 2px solid #8e7600;
  border-radius: 18px;
  padding: 17px;
  background: #fff8cd;
  color: #4a4000;
}

footer {
  padding: 15px 18px max(15px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  text-underline-offset: 3px;
}

footer p {
  margin: 7px 0 0;
}

.legal {
  width: min(100% - 32px, 760px);
  margin: 24px auto;
  border-radius: 24px;
  padding: 40px clamp(20px, 5vw, 56px) 64px;
  background: var(--paper);
  box-shadow: 0 20px 70px #0008;
}

.legal h1 {
  font-size: clamp(38px, 8vw, 54px);
}

.legal h2 {
  margin-top: 32px;
  font-size: 23px;
}

.legal p,
.legal li {
  color: var(--soft);
  line-height: 1.7;
}

.legal .note {
  border-left: 5px solid var(--acid-dark);
  padding: 12px 15px;
  background: var(--card);
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 25px;
  font-weight: 900;
}

@media (hover: hover) {
  .primary,
  .secondary,
  .choice {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }

  .primary:hover:not(:disabled),
  .secondary:hover:not(:disabled),
  .choice:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px #0b0f1424;
  }
}

@media (max-width: 390px) {
  main {
    padding: 27px 14px 36px;
  }

  header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand strong {
    font-size: 11px;
  }

  .streak {
    padding: 0 10px;
  }

  .machine-core {
    padding-right: 16px;
    padding-left: 16px;
  }

  .left-eye {
    left: 42px;
  }

  .right-eye {
    right: 42px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
}

@media (min-width: 900px) {
  .shell {
    min-height: calc(100dvh - 48px);
    margin-top: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bot {
    animation: arrive .35s ease-out;
  }

  .machine-core {
    animation: arrive .48s cubic-bezier(.2, .8, .2, 1) both;
  }

  .mood-thinking .eye {
    animation: eye-scan 1.8s ease-in-out infinite alternate;
  }

  .mood-thinking .machine-lamps i {
    animation: lamp-scan 1.5s ease-in-out infinite;
  }

  .mood-thinking .machine-lamps i:nth-child(2) { animation-delay: .14s; }
  .mood-thinking .machine-lamps i:nth-child(3) { animation-delay: .28s; }
  .mood-thinking .machine-lamps i:nth-child(4) { animation-delay: .42s; }
  .mood-thinking .machine-lamps i:nth-child(5) { animation-delay: .56s; }

  .system-status::before,
  .sealed-dot {
    animation: status-pulse 2.2s ease-in-out infinite;
  }

  @keyframes arrive {
    from { opacity: .2; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: none; }
  }

  @keyframes eye-scan {
    from { transform: translateX(-5px); }
    to { transform: translateX(5px); }
  }

  @keyframes lamp-scan {
    0%, 55%, 100% { background: #4f581f; box-shadow: inset 0 2px 3px #00000087; }
    30% { background: var(--acid); box-shadow: 0 0 11px #caff3fa6; }
  }

  @keyframes status-pulse {
    50% { opacity: .55; box-shadow: 0 0 3px var(--acid); }
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #363c38;
    --line: #777168;
    --control: #4b4640;
  }

  .choice,
  .card,
  .row,
  .cmp,
  .score > div,
  .share,
  .fair,
  .stat {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .ambient {
    display: none;
  }

  .progress .on,
  .machine-lamps i.lit,
  .machine-core.card-sealed .machine-lamps i,
  .eye,
  .mouth {
    background: CanvasText;
  }

  .system-status::before,
  .sealed-dot {
    border: 1px solid CanvasText;
  }
}

/* Reconstructed line-art Machine: grey frame, antenna and the original equals-sign mouth. */
html {
  background: #ddd7cb;
}

body {
  background-color: #ddd7cb;
  background-image: url("/assets/arena-backdrop.svg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.ambient {
  display: none;
}

.ambient::before,
.ambient::after {
  border-color: #0b0f140d;
}

.ambient::after {
  background: #caff3f24;
}

.shell {
  border-color: #0b0f1414;
  box-shadow: 0 24px 80px #0b0f1433;
}

.brand-machine {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}

.legal-machine {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
}

.brand strong {
  font-size: 13px;
}

.brand small {
  color: #4f504b;
  font-size: 8px;
}

.machine-core {
  width: 190px;
  min-height: 166px;
  margin: 1px auto 24px;
  padding: 28px 14px 24px;
}

.machine-core::before {
  display: none;
}

.machine-casing,
.machine .machine-casing {
  z-index: 2;
  width: 134px;
  min-height: 104px;
  height: 104px;
  margin: 0 auto;
  border: 3px solid #73736c;
  border-radius: 20px;
  padding: 0;
  background: var(--paper);
  box-shadow: 0 9px 18px #0b0f1417;
}

.machine-casing::before,
.machine-casing::after {
  top: 33px;
  width: 10px;
  height: 32px;
  border: 3px solid #73736c;
  background: var(--paper);
  box-shadow: none;
}

.machine-casing::before {
  left: -12px;
  border-radius: 8px 2px 2px 8px;
}

.machine-casing::after {
  right: -12px;
  border-radius: 2px 8px 8px 2px;
}

.machine-screen,
.machine .machine-screen {
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 17px;
  background: transparent;
  box-shadow: none;
}

.machine-screen::before,
.machine-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.machine-screen::before {
  top: -28px;
  width: 3px;
  height: 27px;
  border-radius: 3px;
  background: #73736c;
  transform-origin: 50% 100%;
}

.machine-screen::after {
  top: -34px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 2px #73736c;
}

.eye,
.machine .eye {
  top: 28px;
  width: 17px;
  height: 15px;
  border: 2px solid #667319;
  border-radius: 5px;
  box-shadow: 0 0 10px #a7ce2b40;
}

.left-eye,
.machine .left-eye {
  left: 29px;
}

.right-eye,
.machine .right-eye {
  right: 29px;
}

.mouth,
.machine .mouth {
  right: 42px;
  bottom: 18px;
  left: 42px;
  height: 10px;
  border-top: 3px solid #73736c;
  border-bottom: 3px solid #73736c;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.machine-lamps,
.machine .machine-lamps {
  display: none;
}

.machine-lamps i {
  width: 9px;
  height: 9px;
  border: 1px solid #687033;
  background: #858b63;
  box-shadow: none;
}

.machine-lamps i.lit,
.machine-core.card-sealed .machine-lamps i {
  border-color: #536500;
  background: var(--acid);
  box-shadow: 0 0 7px #8fb31d70;
}

.machine-core::after {
  z-index: 1;
  bottom: 2px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .18em;
}

.mood-smug .mouth {
  right: 42px;
  left: 42px;
  transform: none;
}

.mood-surprised .eye {
  width: 17px;
  height: 18px;
  border-radius: 50%;
}

.mood-surprised .left-eye {
  left: 32px;
}

.mood-surprised .right-eye {
  right: 32px;
}

.mood-surprised .mouth {
  right: 42px;
  left: 42px;
  height: 10px;
  border-radius: 0;
  transform: none;
}

.mood-beaten .mouth,
.mood-tie .mouth {
  right: 42px;
  left: 42px;
  transform: none;
}

.machine {
  overflow: visible;
}

.machine .machine-core {
  width: 190px;
  margin-top: -8px;
  margin-bottom: 9px;
}

.bot,
.bot.sm,
.machine-strip .bot {
  overflow: visible;
  border: 2px solid #73736c;
  background: transparent;
  box-shadow: none;
}

.bot::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #73736c;
  transform: translateX(-50%);
}

.bot::after,
.bot.sm::after,
.machine-strip .bot::after {
  inset: auto;
  top: -11px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--acid);
  transform: translateX(-50%);
}

.bot i,
.bot.sm i,
.machine-strip .bot i {
  background: var(--acid);
}

.bot b,
.bot.sm b,
.machine-strip .bot b {
  height: 6px;
  border-top: 2px solid #73736c;
  border-bottom: 2px solid #73736c;
  border-radius: 0;
  background: transparent;
}

.system-status {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.system-status::before {
  box-shadow: 0 0 7px #8fb31d70;
}

.machine-dialog,
.machine-strip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 9px 22px #0b0f1417;
}

.machine-dialog::before {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--card);
}

.machine-dialog small,
.machine-strip small {
  color: var(--acid-dark);
}

.machine-strip .bot {
  background: transparent;
}

.hero-intro {
  position: relative;
}

.arena-stage {
  position: relative;
  min-height: 286px;
  margin: -4px 0 0;
  overflow: hidden;
  border: 1px solid #8f8c83;
  border-radius: 30px;
  padding: 20px 22px 24px;
  background:
    linear-gradient(145deg, #fffdf8f2, #f2eee5d9),
    url("/assets/arena-backdrop.svg") center / cover;
  box-shadow: 0 18px 38px #0b0f1423;
  isolation: isolate;
}

.arena-stage::before,
.arena-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.arena-stage::before {
  top: -84px;
  right: -70px;
  width: 210px;
  height: 210px;
  background: var(--acid);
  opacity: .42;
}

.arena-stage::after {
  bottom: -84px;
  left: -68px;
  width: 190px;
  height: 190px;
  border: 34px solid var(--sky);
  opacity: .18;
}

.arena-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #4f504b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .14em;
}

.arena-topline strong {
  display: inline-grid;
  place-items: center;
  min-width: 49px;
  min-height: 31px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: .08em;
}

.arena-stage .machine-core {
  margin-top: 5px;
  margin-bottom: 5px;
}

.arena-name {
  display: block;
  margin: -2px auto 11px;
  color: #474842;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.arena-stage .system-status {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  border-color: #7d7b73;
  background: #fffdf8e8;
}

.hero-intro .machine-dialog {
  z-index: 3;
  width: calc(100% - 34px);
  margin-top: -13px;
  margin-bottom: 24px;
  border-color: #77756e;
  box-shadow: 0 13px 28px #0b0f1426;
}

.hero-intro h1 {
  margin-top: 2px;
}

.hero-intro .meta span:nth-child(1) {
  border-color: #6b7d17;
  background: #caff3f63;
}

.hero-intro .meta span:nth-child(2) {
  border-color: #6b8794;
  background: #64bde73d;
}

.hero-intro .meta span:nth-child(3) {
  border-color: #a65d4c;
  background: #ff82663b;
}

.hero-intro > .primary {
  background: var(--acid);
  color: var(--ink);
  box-shadow: inset 0 -4px #8aa817, 0 12px 24px #78990d2e;
}

.hero-intro > .primary:focus-visible {
  outline-color: var(--ink);
}

.hero-intro .fair {
  border-top: 4px solid var(--sky);
  box-shadow: 0 12px 25px #0b0f1412;
}

.play-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
  text-align: left;
}

.play-steps > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 13px 11px;
  background: var(--card);
  box-shadow: 0 8px 18px #0b0f140d;
}

.play-steps > div:nth-child(2) {
  background: #f6f9e7;
}

.play-steps > div:nth-child(3) {
  background: #fff5ef;
}

.play-steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--acid);
  font-size: 10px;
}

.play-steps strong,
.play-steps small {
  display: block;
}

.play-steps strong {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.25;
}

.play-steps small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.card {
  border-top: 4px solid var(--acid);
  background:
    linear-gradient(145deg, #fffdf8 74%, #caff3f1c),
    var(--card);
}

.progress .on {
  background: var(--acid);
  box-shadow: inset 0 0 0 1px #667519;
}

.machine-strip {
  border-left: 5px solid var(--acid);
}

@media (hover: hover) {
  .hero-intro > .primary:hover:not(:disabled) {
    box-shadow: inset 0 -4px #8aa817, 0 16px 28px #78990d42;
  }

  .choice:hover:not(:disabled) {
    background: #f7f9e9;
  }
}

@media (max-width: 390px) {
  .machine-core {
    padding-right: 14px;
    padding-left: 14px;
  }

  .left-eye,
  .machine .left-eye {
    left: 29px;
  }

  .right-eye,
  .machine .right-eye {
    right: 29px;
  }

  .arena-stage {
    border-radius: 24px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .play-steps {
    grid-template-columns: 1fr;
  }

  .play-steps > div {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .machine-casing {
    animation: machine-idle 4.6s ease-in-out infinite;
  }

  .machine-screen::before {
    animation: antenna-think 4.6s ease-in-out infinite;
  }

  .mood-smug .eye {
    animation: machine-blink 5.8s ease-in-out infinite;
  }

  .mood-smug .right-eye {
    animation-delay: .04s;
  }

  .bot i {
    animation: bot-blink 6.4s ease-in-out infinite;
  }

  .arena-stage::before {
    animation: arena-orbit 8s ease-in-out infinite alternate;
  }

  @keyframes machine-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }

  @keyframes antenna-think {
    0%, 38%, 62%, 100% { transform: translateX(-50%) rotate(0); }
    46% { transform: translateX(-50%) rotate(-5deg); }
    54% { transform: translateX(-50%) rotate(5deg); }
  }

  @keyframes machine-blink {
    0%, 42%, 46%, 100% { height: 15px; }
    44% { height: 3px; }
  }

  @keyframes bot-blink {
    0%, 47%, 51%, 100% { opacity: 1; }
    49% { opacity: .18; }
  }


  @keyframes arena-orbit {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-12px, 10px, 0) scale(1.08); }
  }
}

@media (forced-colors: active) {
  .machine-dialog,
  .machine-strip,
  .system-status {
    border: 1px solid CanvasText;
  }
}
