.home-link {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  border: 1.6px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.lesson { margin-top: 26px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 1.6px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.lesson h1 {
  margin: 12px 0 6px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}

.stage {
  margin-top: 18px;
  border: 1.6px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
}

.caption {
  min-height: 2.6em;
  margin: 12px 0 0;
  font-weight: 750;
  line-height: 1.35;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.controls[hidden] { display: none; }

.btn {
  border: 1.6px solid transparent;
  border-radius: 9px;
  background: var(--mint);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 750;
  cursor: pointer;
}

.btn.coral { background: var(--coral); color: var(--ink); }

.btn.ghost { background: #ffffff; border-color: var(--ink); }

.btn.is-on { box-shadow: inset 0 0 0 1.6px var(--ink); }

.btn:disabled { cursor: default; opacity: 0.45; }

.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  max-width: 100%;
  flex: 0 1 auto;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: 700;
}

.count, .stage select {
  border: 1.6px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 8px;
  font: inherit;
  font-weight: 700;
}

.count { width: 5.6rem; }

input[type="range"] { accent-color: #0c1438; width: 140px; }

.readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat {
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
}

.stat b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stat span { color: var(--muted); font-size: 13px; }

.notes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.notes p {
  margin: 0;
  line-height: 1.45;
}

.notes.read {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.notes.read > p {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 12px 14px;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 5px 5px 0 var(--mint-fill);
  font-weight: 600;
  line-height: 1.5;
}
.notes.read > p:nth-child(2) { box-shadow: 5px 5px 0 var(--leaf); }
.notes.read > p:nth-child(3) { box-shadow: 5px 5px 0 var(--coral); }
.notes.read > .chance-chart { grid-column: 1 / -1; }
.notes.read > p b { font-weight: 800; }

.chance-chart {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 16px 22px;
  align-items: start;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  padding: 12px 12px 14px;
  background: #ffffff;
}

.chance-chart svg { display: block; width: 100%; height: auto; }
.chance-chart .grid { stroke: var(--line); stroke-width: 1; }
.chance-chart .swerve-line, .chance-chart .flip-line { stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; }
.chance-chart .hold-line, .chance-chart .fixed-line { stroke: var(--coral); stroke-width: 3; stroke-linecap: round; }
.chance-chart .equal { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 3 3; }
.chance-chart .mark { stroke: var(--ink); stroke-width: 1.5; }
.chance-chart .meet { fill: var(--ink); }
.chance-chart .swerve-dot, .chance-chart .flip-dot { fill: #ffffff; stroke: var(--leaf); stroke-width: 2.5; }
.chance-chart .hold-dot, .chance-chart .fixed-dot { fill: #ffffff; stroke: var(--coral); stroke-width: 2.5; }
.chance-chart text { fill: var(--muted); font-size: 12px; font-weight: 700; font-family: Nunito, "Segoe UI", sans-serif; }
.chance-chart text.axis { fill: var(--ink); }
.chance-chart .key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 14px; font-weight: 750; }
.chance-chart .key i { display: inline-block; width: 22px; height: 4px; margin-right: 6px; border-radius: 99px; vertical-align: middle; }
.chance-chart .key .swerve, .chance-chart .key .flip { background: var(--leaf); }
.chance-chart .key .hold, .chance-chart .key .fixed { background: var(--coral); }
.chance-chart .key .theirs { width: 2px; height: 14px; background: var(--ink); }
.chance-chart .chance-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-weight: 750;
}
.chance-chart .chance-row input[type="range"] { width: 100%; }
.chance-chart .chance-read {
  display: grid;
  gap: 12px;
  max-width: none;
  margin-top: 0;
  padding: 0 6px 6px 0;
  font-weight: 600;
  line-height: 1.45;
}
.chance-chart .chance-read p {
  margin: 0;
  padding: 12px 14px;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
}
.chance-chart .chance-read .theirs {
  background: #eef2fb;
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-0.7deg);
}
.chance-chart .chance-read .swerve,
.chance-chart .chance-read .flip {
  background: #e7f8f2;
  box-shadow: 7px 7px 0 var(--leaf);
  transform: rotate(0.6deg);
}
.chance-chart .chance-read .hold,
.chance-chart .chance-read .fixed {
  background: #fff1ef;
  box-shadow: 7px 7px 0 var(--coral);
  transform: rotate(-0.45deg);
}
.chance-chart .chance-read .result {
  background: var(--mint);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(0.5deg);
  font-weight: 800;
}

.doors {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.door {
  width: 168px;
  height: 250px;
  padding: 8px;
  border: 1.6px solid var(--ink);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.door.is-picked { box-shadow: inset 0 0 0 4px var(--ink); }
.door.is-open { cursor: default; }
.door .slab { width: 78%; height: auto; }
.door .face {
  position: absolute;
  top: 34%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
}
.door.is-open .face { display: none; }
.door .prize-img { width: 78%; height: auto; }
.door .prize-img.goat { width: 62%; }
.door .prize { font-size: 15px; font-weight: 800; }

.doors[hidden],
.door-grid[hidden] { display: none; }

.door-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.cell {
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background-color: #ffffff;
  background-image: url("../images/door.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78% auto;
  padding: 0;
  cursor: pointer;
}

.cell.is-pick { box-shadow: inset 0 0 0 3px var(--ink); }
.cell.is-other { box-shadow: inset 0 0 0 3px var(--coral); }
.cell.is-open {
  background-image: url("../images/goat.png");
  background-size: 62% auto;
  cursor: default;
}
.cell.is-car {
  background-color: #ffffff;
  background-image: url("../images/car.png");
  background-size: 78% auto;
}

.people, .families, .flips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 58px;
}

.people { padding-bottom: 14px; }
.flips[hidden], .compare[hidden], .row-label[hidden] { display: none; }

.person, .kid, .flip {
  width: 46px;
  height: 58px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  display: block;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.person { position: relative; background-image: url("../images/person.png"); }
.person.is-share { box-shadow: inset 0 0 0 3px var(--coral); }
.person.is-share::after {
  content: attr(data-day);
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  padding: 0 3px;
  border-radius: 6px;
  background: var(--coral);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
}
.flip { width: 52px; height: 52px; border-radius: 50%; }
.flip.is-heads { background-image: url("../images/coin-heads.png"); }
.flip.is-tails { background-image: url("../images/coin-tails.png"); }

.family {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
}

.kid { position: relative; }
.kid.boy { background-image: url("../images/boy.png"); }
.kid.girl { background-image: url("../images/girl.png"); }
.kid.is-tuesday::after {
  content: "Tu";
  position: absolute;
  right: -4px;
  bottom: -4px;
  padding: 0 3px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--leaf);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
}
.family.is-both { background: var(--mint-wash); }

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

.dotp {
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background-color: #ffffff;
  background-image: url("../images/person.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 92% auto;
}

.dotp.tp { box-shadow: inset 0 0 0 2px var(--dot); background-color: var(--mint-wash); }
.dotp.fp { box-shadow: inset 0 0 0 2px var(--coral); background-color: #fff1ef; }
.dotp.fn { box-shadow: inset 0 0 0 2px var(--leaf); background-color: var(--mint); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-radius: 2px;
  vertical-align: -1px;
  border: 1px solid var(--ink);
  background: var(--line);
}

.swatch.tp { background: var(--dot); }
.swatch.fp { background: var(--coral); }
.swatch.fn { background: var(--mint-fill); }

.compare { margin-top: 12px; }
.row-label { margin: 0 0 6px; font-weight: 800; }
.positive-row { display: flex; flex-wrap: wrap; gap: 4px; }
.positive-row .dotp { width: 28px; height: 36px; }

.guess-note { font-weight: 700; color: var(--muted); }

.ward {
  display: grid;
  grid-template-columns: 190px 1fr 72px;
  gap: 8px;
  align-items: center;
}
.ward h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.ward h3 img { width: 22px; height: 28px; object-fit: contain; }
.ward b { font-size: 14px; }
.tokens { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px; }
.token {
  width: 16px;
  height: 20px;
  border-radius: 3px;
  background-color: #ffffff;
  background-image: url("../images/person.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.token.is-ok { box-shadow: inset 0 0 0 1.5px var(--dot); background-color: var(--mint-wash); }
.token.is-severe { border-bottom: 3px solid var(--coral); }

.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 72px; gap: 8px; align-items: center; }
.bar-row span { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.bar-row img { width: 22px; height: 28px; object-fit: contain; }
.track { height: 18px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #ffffff; }
.fill { height: 100%; width: 0; background: var(--mint-fill); transition: width 0.45s ease; }
.fill.coral { background: var(--coral); }
.bar-row b { font-size: 14px; }

.timeline {
  display: flex;
  height: 96px;
  border: 1.6px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.gap {
  height: 100%;
  border-right: 1.5px solid var(--ink);
  position: relative;
  background-color: #ffffff;
  background-image: url("../images/bus.png");
  background-repeat: no-repeat;
  background-position: 8px bottom 8px;
  background-size: min(48px, 72%) 34px;
}

.gap:last-child { border-right: 0; }
.gap.is-hit { background-color: var(--mint-wash); box-shadow: inset 0 -4px 0 var(--coral); }
.pin {
  position: absolute;
  top: 8px;
  width: 26px;
  height: 34px;
  margin-left: -13px;
  background: url("../images/person.png") center / contain no-repeat;
}

.choice-dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(12, 20, 56, 0.12);
}

.choice-dock[hidden] { display: none; }

.dock-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dock-card span { font-weight: 800; font-size: 14px; }

.mini-door {
  width: 42px;
  height: 56px;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background-color: #ffffff;
  background-image: url("../images/door.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78% auto;
}

.mini-door.is-yours { box-shadow: inset 0 0 0 3px var(--ink); }
.mini-door.is-other { box-shadow: inset 0 0 0 3px var(--coral); }
.mini-door.is-car { background-image: url("../images/car.png"); }
.mini-door.is-goat { background-image: url("../images/goat.png"); background-size: 62% auto; }

body.has-dock { padding-bottom: 108px; }

.notes .spoiler[hidden] { display: none; }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .home-link { margin-left: auto; }
  .lesson h1 { font-size: 28px; }
  .door { width: 104px; height: 168px; }
  .door .face { font-size: 24px; }
  .door-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bar-row, .ward { grid-template-columns: 1fr; }
  .choice-dock { flex-direction: column; }
  .crowd { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .digit-bars .bar-row { grid-template-columns: 24px 1fr 52px; }
  .sheet { grid-template-columns: 72px 1fr; }
}

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

.tray {
  min-width: 0;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  padding: 8px 6px 10px;
  text-align: center;
}

.tray.is-on { background: var(--mint-wash); }
.tray img { height: 72px; width: auto; }
.tray .coins { display: flex; justify-content: center; gap: 4px; min-height: 34px; margin-top: 4px; }
.tray .coins img { height: 30px; }
.tray .name { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; }

.face-up {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.face-up img { height: 64px; width: auto; }
.face-up b { font-size: 16px; }

.pile {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 44px;
}

.pile .person { width: 34px; height: 44px; }
.person.is-club { box-shadow: inset 0 0 0 3px var(--coral); }

.env-pair, .wake-row, .beauty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.env {
  width: 148px;
  min-height: 132px;
  box-sizing: border-box;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px;
}

.env.is-on { background: var(--mint-wash); }
.env img { height: 74px; width: auto; }
.env b {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.env .name { font-size: 13px; font-weight: 800; color: var(--muted); }

.beauty-row img.bed { height: 120px; width: auto; }
.beauty-row img.coin { height: 64px; width: auto; }

.wake {
  min-width: 92px;
  border: 1.6px solid var(--ink);
  border-radius: 14px;
  background: #ffffff;
  padding: 8px 10px;
  text-align: center;
  font-weight: 800;
}

.wake span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }

.chord-box { display: flex; justify-content: center; }
.chord-box svg { width: min(280px, 100%); height: auto; display: block; }

.capital {
  margin: 10px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.capital.is-mod { color: var(--coral); }

.step-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; min-height: 26px; }
.step {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 1.4px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.step.win { background: var(--mint); }
.step.lose { background: var(--coral); color: var(--ink); }

.sheet {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.sheet img { width: 92px; height: auto; }
.num-list { margin: 0; font-weight: 800; line-height: 1.55; }
.num-list em { font-style: normal; color: var(--coral); }

.digit-bars { margin-top: 12px; }
.digit-bars .bar-row { grid-template-columns: 24px 1fr 58px; }
.digit-bars .fill { transition: none; }
.stat.is-hot { background: var(--mint-wash); }

.bayes-board {
  display: grid;
  grid-template-columns: 96px 1fr 1fr;
  gap: 8px;
}

.bayes-head, .bayes-side {
  display: grid;
  place-items: center;
  min-width: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.bayes-cell {
  min-width: 0;
  min-height: 96px;
  border: 1.6px solid var(--ink);
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
}

.bayes-cell.is-on { background: var(--mint-wash); }
.bayes-cell.is-dim { opacity: 0.38; }
.bayes-faces { display: flex; flex-wrap: wrap; gap: 3px; }
.bayes-faces img { height: 34px; width: auto; }
.bayes-cell b { display: block; margin-top: 4px; font-size: 18px; }

.bayes-pies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.bayes-pie-card {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.bayes-pie-card figcaption {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.bayes-pie {
  --share: 60;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  border: 1.6px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(var(--leaf) calc(var(--share) * 1%), var(--mint-wash) 0);
  display: grid;
  place-items: center;
}

.bayes-pie.is-answer {
  background: conic-gradient(var(--leaf) calc(var(--share) * 1%), var(--coral) 0);
}

.bayes-pie b {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1.6px solid var(--ink);
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.bayes-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-weight: 750;
}

.bayes-field input[type="range"] { flex: 1; width: auto; min-width: 140px; }
.bayes-field b { font-size: 22px; letter-spacing: -0.03em; }
.bayes-board { margin-top: 14px; }

.notes b { font-weight: 800; }

.lesson-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}
.lesson-row img { height: 72px; width: auto; }

.result-chart {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}
.result-row {
  display: grid;
  grid-template-columns: minmax(92px, 180px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}
.result-row .track { min-width: 0; }
.result-row b { min-width: 5.2rem; text-align: right; }

.ship-yard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ship-yard p { margin: 0 0 6px; font-weight: 800; }
.ship-planks {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}
.ship-planks button {
  height: 22px;
  min-width: 0;
  padding: 0;
  border: 1.6px solid var(--ink);
  border-radius: 6px;
  background: var(--mint-wash);
  cursor: pointer;
}
.ship-planks button.is-new { background: var(--coral); }

.grain-heap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  min-height: 72px;
}
.grain-heap i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--leaf);
  border: 1.5px solid var(--ink);
}
.grain-heap i[hidden] { display: none; }
.grain-heap i.is-down { box-shadow: inset 0 0 0 3px var(--coral); }
.grain-heap i.is-up { box-shadow: inset 0 0 0 3px var(--ink); }

.playboard [hidden] { display: none !important; }

.playboard .act-pair,
.playboard .actor,
.playboard .route,
.playboard .track,
.playboard .day,
.playboard .nash,
.playboard .nash button {
  min-width: 0;
}

.act-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.act-pair.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.actor {
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  background: #ffffff;
}

.actor b { display: block; margin: 4px 0; }
.actor .pay { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }

.actor > img,
.actor img.mover,
.hunt .actor > img,
#car-spot img {
  height: 84px;
  width: auto;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.nash-floor {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 10px;
  align-items: stretch;
}
.nash-name { display: block; text-align: center; margin-bottom: 6px; }
.nash-side { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 196px; padding-top: 96px; }
.nash-person, .choice-fig {
  position: absolute;
  left: 0;
  top: 0;
  height: 84px;
  width: auto;
  z-index: 3;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.choice-hold {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 84px;
  height: 84px;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.choice-hold img { height: 84px; width: auto; display: block; }
.nash-floor.is-two { grid-template-columns: 1fr 1fr; }
.zones { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zones.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zone {
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  min-height: 120px;
  padding: 8px;
  text-align: center;
}
button.zone { font: inherit; color: inherit; cursor: pointer; width: 100%; }
button.zone > img { height: 84px; width: auto; }
.zone > b { display: block; margin-bottom: 6px; }
.zone .hint { display: block; min-height: 2.2em; font-size: 12px; font-weight: 750; line-height: 1.25; }
.zone.is-here { background: var(--mint-wash); }
.zone.is-win { background: var(--mint); }
.zone.is-lure { box-shadow: inset 0 0 0 3px var(--coral); }
.zone.is-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 188px;
}
.zone.is-tall { min-height: 248px; }
.zone .folk, .zone .gems, .zone .coins { min-height: 72px; }
button.coin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  background: #ffffff;
  padding: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
button.coin-btn img { height: 36px; width: auto; }
.coin-row button.coin-btn { width: auto; height: auto; }
.offer img.mover { height: 28px; width: auto; }
.you-home, .coins.you-home { min-height: 72px; align-items: center; }
.nash-pad {
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  min-height: 196px;
  padding: 8px 6px;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.nash-pad b { display: block; font-size: 15px; }
.nash-pad .hint { display: block; min-height: 2.4em; font-size: 12px; font-weight: 750; line-height: 1.25; }
.nash-pad .coins { min-height: 32px; }
.nash-pad.is-here { background: var(--mint-wash); }
.nash-pad.is-win { background: var(--mint); }
.nash-pad.is-lure { box-shadow: inset 0 0 0 3px var(--coral); }
.nash-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.playboard.is-lane #you.is-take > img { transform: translate(34px, 18px) rotate(7deg); }
.playboard.is-lane #them.is-take > img { transform: translate(-34px, 18px) rotate(-7deg); }
.playboard.is-lane #you.is-share > img { transform: translate(-16px, -6px) rotate(-6deg); }
.playboard.is-lane #them.is-share > img { transform: translate(16px, -6px) rotate(6deg); }

.playboard { position: relative; }

.pad { min-height: 64px; }
.bench { display: flex; justify-content: space-around; margin-top: 8px; }
.bench .pad { width: 88px; }

.walker {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  height: 56px;
  width: auto;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.walker.is-set { visibility: visible; }
.walker.quarry { height: 76px; }
.hunt > .walker { grid-column: 1 / -1; grid-row: 1 / -1; }

.coins img.mover { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

#you-coin, #them-coin, #your-face, #their-face,
#car-spot img, #evening > img, .chain .msg, .folk .one, .mark {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
#car-spot.is-met img { transform: scale(1.28); }

.folk .one.is-up { transform: translateY(-36px); }
.playboard .day { transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.playboard .day.is-off { opacity: 0.55; }

.coins, .purse-row, .herd, .neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  min-height: 32px;
}

.coins img, .purse-row img { height: 28px; width: auto; }
.coins b.more { display: inline-flex; align-items: center; font-size: 16px; margin-left: 2px; }
.herd img { height: 58px; width: auto; }
.neighbors img { height: 52px; width: auto; }

.armor-plane {
  position: relative;
  width: min(280px, 100%);
  margin: 0 auto;
}

.armor-plane img { width: 100%; height: auto; display: block; }

.mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--mint);
  opacity: 0;
  pointer-events: none;
}

.mark.is-on { opacity: 1; }
.mark.is-miss { border-color: var(--coral); box-shadow: 0 0 0 4px #ffffff; }

.nash {
  display: grid;
  grid-template-columns: 92px 1fr 1fr;
  gap: 8px;
}

.nash .nh, .nash .nv {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.nash button {
  border: 1.6px solid var(--ink);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.nash button img { height: 36px; width: auto; }
.nash button span { display: block; margin-top: 4px; font-size: 13px; }
.nash button.is-rest { background: var(--mint); }
.nash button.is-leave { background: var(--coral); color: var(--ink); }
.nash button.is-leave span { color: var(--ink); }

.meadow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 52px;
  padding: 10px;
  border: 1.6px dashed var(--leaf);
  border-radius: 16px;
}

.blade {
  width: 16px;
  height: 34px;
  border-radius: 40% 40% 46% 46%;
  background: var(--leaf);
  border: 1.5px solid var(--ink);
  transform-origin: bottom center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.blade.is-gone { transform: scaleY(.08); opacity: 0; }

.side-label {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.rail { position: relative; display: grid; gap: 8px; }

.track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 84px;
  border: 1.6px solid var(--ink);
  border-radius: 14px;
  padding: 6px 10px;
  background: #ffffff;
}

.tram-slot { width: 74px; flex: none; }

.people { display: flex; flex-wrap: wrap; gap: 2px; }
.people img { height: 52px; width: auto; transition: opacity .7s ease, transform .7s ease; }
.track.is-hit .people img { opacity: .22; transform: translateY(14px); }

.tram {
  position: absolute;
  left: 0;
  top: 0;
  height: 64px;
  width: auto;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }

.day {
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  min-height: 64px;
  padding: 6px 2px;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
}

.day.is-next { background: var(--mint); }
.day.is-off {
  background: var(--mint-wash);
  color: var(--muted);
  text-decoration: line-through;
}
.day.is-pick { box-shadow: inset 0 0 0 3px var(--ink); }

.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
  border: 1.6px solid var(--ink);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.route b { font-size: 18px; letter-spacing: -0.03em; }
.route .mini { display: flex; gap: 2px; }
.route .mini img { height: 32px; width: auto; }
.route.is-shut { border-style: dashed; opacity: .5; }
.route.is-on { background: var(--mint); box-shadow: inset 0 0 0 1.6px var(--ink); }

.lane {
  position: relative;
  height: 220px;
  overflow: hidden;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 0 var(--coral);
  transition: box-shadow .25s ease;
}

.lane::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 16px;
  border-left: 3px dashed var(--leaf);
}

.racer {
  position: absolute;
  top: 0;
  left: 0;
  height: 88px;
  width: auto;
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.lane:not(.is-set) .racer { visibility: hidden; }
.lane.is-crash { box-shadow: inset 0 0 0 3px var(--coral); }

.hunt {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 104px 1fr;
  gap: 8px;
  align-items: center;
}

.meet {
  min-height: 96px;
  display: grid;
  place-items: center;
}

.meet img { height: 88px; width: auto; }

.prize { min-height: 64px; display: flex; justify-content: center; align-items: center; }
.prize img { height: 52px; width: auto; }

.ward { display: grid; gap: 8px; }
.bed-pic { height: 64px; width: auto; }

.coin-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 22px 0; }

.coin-row button {
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.coin-row button img { width: 100%; height: 100%; object-fit: contain; }
.coin-row button.coin-btn { width: auto; height: auto; }
.coin-row button.coin-btn img { width: auto; height: 36px; }
.coin-row button {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, background-color 0.3s ease;
}
.coin-row button.is-offer { background: var(--mint); transform: translateY(-18px); }
.coin-row button.is-keep { background: var(--mint-wash); transform: translateY(14px); }
.coin-row button.is-gone { opacity: .2; transform: translateY(22px); }

@keyframes act-pop {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.act-pop { animation: act-pop .6s cubic-bezier(0.16, 1, 0.3, 1); }

@media (max-width: 640px) {
  .act-pair, .act-pair.is-three, .nash-floor, .zones, .zones.is-three { grid-template-columns: 1fr; }
  .nash { grid-template-columns: 72px 1fr 1fr; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actor > img, .hunt .actor > img { height: 72px; }
  .lane { height: 190px; }
  .racer { height: 72px; }
}

.doors-row, .boxes, .machines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.door-spot, .box-card, .machine-btn {
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px;
  text-align: center;
  min-width: 0;
}

.machine-btn {
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.door-spot img.plan, .box-card > img, .machine-btn img { height: 84px; width: auto; }
.door-spot b, .box-card b, .machine-btn b, .machine-btn span { display: block; }
.machine-btn span { font-size: 13px; font-weight: 700; }
.door-spot.is-met, .box-card.is-taken, .machine-btn.is-on, .actor.is-win { background: var(--mint); }
.actor.is-lose { background: var(--mint-wash); }

.crowd { display: flex; justify-content: center; gap: 4px; min-height: 60px; }
.crowd img { height: 56px; width: auto; }

.inside { min-height: 64px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; }
.inside img { height: 48px; width: auto; }
.inside b { font-size: 22px; letter-spacing: -0.03em; }

.line-up { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.cand {
  width: 72px;
  min-height: 92px;
  padding: 4px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #0c1438;
}

.cand svg, .cand img { width: 56px; height: auto; display: block; margin: 0 auto; }
.cand.is-now { box-shadow: 0 0 0 3px #0c1438; }
.cand.is-hired { box-shadow: 0 0 0 3px #f5c518; }
.cand b { display: block; min-height: 1.2em; }

.pile-count {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.playboard .btn, .playboard .offer, .playboard .day { max-width: 100%; white-space: normal; }
.playboard > .door-spot { max-width: 280px; margin: 0 auto; }
.box-card .urn-note { display: block; font-size: 13px; font-weight: 750; }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer {
  width: 100%;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  min-width: 0;
}
.offer b { display: block; margin-bottom: 4px; font-size: 16px; }
.offer.is-on { background: var(--mint); }

.slice {
  height: 84px;
  width: auto;
  max-width: 100%;
  transform-origin: center bottom;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.slice.is-small { transform: scale(0.58); }
.door-spot.is-envy { background: var(--mint-wash); }

.folk, .slips, .chain { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-width: 0; }
.folk .one, .slip, .msg {
  width: 84px;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  padding: 4px;
  background: #ffffff;
}
.slip.is-yours { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.slip.is-yours.is-on { transform: translateY(-36px); }
.slip.mover.is-down { transform: translateY(36px); }
.slip.mover.is-away { transform: translateY(-36px); }
.slip.is-wide { width: 168px; font-size: 11px; font-weight: 750; line-height: 1.25; }
.slip .order, .slip .pick { display: block; }
.slip .pick { min-height: 2.4em; }
.folk .one svg, .slip svg { height: 48px; width: auto; display: block; margin: 0 auto; }
.slip.is-dim { opacity: 0.35; }
.actor.is-win { background: var(--mint); }
.actor.is-dim { opacity: 0.45; }
.folk .one img, .slip img, .msg img { height: 48px; width: auto; }
.folk .one span { display: block; margin-top: 2px; font-weight: 750; line-height: 1.2; white-space: normal; }
.folk .one span .line, .slip span .line { display: block; margin-top: 0; font-style: normal; font-weight: 750; line-height: 1.15; white-space: nowrap; }
.folk .one span .q { display: block; margin-top: 0; font-size: 11px; font-style: normal; font-weight: 750; line-height: 1.1; white-space: nowrap; }
.folk .one.is-down { transform: translateY(36px); }
.folk .one.is-away { transform: translateY(-72px); }
.folk .one.is-dim { opacity: 0.35; }
.playboard .mover { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; }
.gems { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 36px; }
.gems i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--leaf);
  border: 1.6px solid var(--ink);
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}
.gems i.is-other { background: var(--ink); }
.gems i.is-next { transform: translateY(-36px); }
.folk .one b, .slip b, .msg b { display: block; }
.folk .one.is-up, .slip.is-on, .msg.is-in { background: var(--mint); }
.folk .one.is-wait { opacity: 0.4; }
.door-spot.is-bad, .msg.is-lost { background: #ffffff; box-shadow: inset 0 0 0 3px var(--coral); }
.playboard .day b { display: block; }
.folk, .slips, .chain { width: 100%; }
.msg { width: 132px; font-weight: 750; }

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

.braess-story { display: grid; gap: 12px; }
.braess-beat {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
}
.braess-beat .n {
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1.6px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.braess-beat p { margin: 0 0 10px; line-height: 1.45; }
.braess-beat p:last-child { margin-bottom: 0; }
.braess-map {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 20px minmax(0, 1fr) 52px;
  grid-template-rows: auto auto auto;
  gap: 6px;
  align-items: stretch;
}
.braess-hub {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
  min-height: 64px;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  background: var(--mint-wash);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.braess-hub.work { grid-column: 5; }
.braess-map .braess-seg:nth-child(2) { grid-column: 2; grid-row: 1; }
.braess-map .braess-seg:nth-child(3) { grid-column: 4; grid-row: 1; }
.braess-map .braess-seg:nth-child(5) { grid-column: 2; grid-row: 3; }
.braess-map .braess-seg:nth-child(6) { grid-column: 4; grid-row: 3; }
.braess-seg {
  min-width: 0;
  width: 100%;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  padding: 6px;
  background: #ffffff;
  text-align: center;
}
button.braess-seg {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.braess-bridge {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.braess-seg.is-picked { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.braess-beat.is-now { background: var(--mint-wash); }
.road-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.town { width: 52px; flex: none; text-align: center; font-size: 15px; }
.road-scene { position: relative; flex: 1; min-width: 0; height: 280px; }
.road-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.road { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; transition: stroke 0.5s ease, opacity 0.5s ease; }
.hit { fill: none; stroke: #ffffff; stroke-opacity: 0.01; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; }
.hit.is-off { pointer-events: none; cursor: default; }
.braess-play .btn { max-width: 100%; white-space: normal; }
.braess-play [hidden] { display: none !important; }
.braess-play .caption { min-height: 3.2em; }
.road.is-bunch { stroke: var(--leaf); stroke-width: 8; }
.road.is-full { stroke: var(--coral); stroke-width: 8; }
.road.is-quiet { opacity: 0.28; }
.road.cut { stroke: var(--leaf); opacity: 0; }
.road.cut.is-open { opacity: 1; stroke-width: 8; }
.joint { fill: #ffffff; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lab {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 1.6px solid var(--ink);
  border-radius: 10px;
  background: #ffffff;
  padding: 2px 6px;
  text-align: center;
  line-height: 1.2;
}
.lab b { display: block; font-size: 14px; }
.lab span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.lab.ul { left: 27%; top: 16%; }
.lab.ur { left: 73%; top: 16%; }
.lab.ll { left: 27%; top: 84%; }
.lab.lr { left: 73%; top: 84%; }
.lab.cut { left: 62%; top: 50%; background: var(--leaf); }
.driver {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  height: 28px;
  width: auto;
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.road-scene:not(.is-set) .driver { visibility: hidden; }
.driver.is-you { filter: drop-shadow(0 0 0 var(--ink)); outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 6px; }
.braess-meter .braess-fill { transition: width 0.6s ease; }
.road-pips { display: flex; justify-content: center; gap: 8px; }
.road-pips button {
  width: 32px;
  height: 32px;
  border: 1.6px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  color: inherit;
  cursor: pointer;
}
.road-pips button.is-on { background: var(--mint); }
.braess-seg b { display: block; font-size: 15px; }
.braess-seg span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.braess-seg.is-crowd { background: var(--mint-wash); }
.braess-seg.is-full { background: #ffffff; box-shadow: inset 0 0 0 3px var(--coral); }
.braess-seg.is-you { background: var(--mint); }
.braess-seg.is-skip { opacity: 0.4; }
.braess-cars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 24px; margin-top: 4px; }
.braess-cars img { height: 24px; width: auto; }
.braess-bridge {
  grid-column: 2 / 5;
  grid-row: 2;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
}
.braess-bridge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  border-left: 3px dashed var(--ink);
}
.braess-bridge span {
  position: relative;
  z-index: 1;
  border: 1.6px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 800;
}
.braess-bridge.is-open::before { border-left-style: solid; border-left-color: var(--leaf); }
.braess-bridge.is-open span { background: var(--leaf); }
.braess-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 750;
}
.braess-meter > span { width: 8.2rem; min-width: 0; }
.braess-meter .track {
  position: relative;
  flex: 1;
  height: 16px;
  border: 1.6px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}
.braess-meter .braess-fill { height: 100%; background: var(--leaf); }
.braess-meter.is-worse .braess-fill { background: var(--coral); }
.braess-meter b { width: 4.2rem; text-align: right; font-size: 16px; }
.braess-mark {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 76.5%;
  width: 2px;
  background: var(--ink);
}
.braess-key { margin: 6px 0 0; font-size: 13px; font-weight: 750; color: var(--muted); }

@media (max-width: 640px) {
  .machines { grid-template-columns: 1fr; }
  .cand { width: 56px; min-height: 78px; }
  .cand img { height: 44px; }
  .offers, .trio, .notes.read, .chance-chart { grid-template-columns: 1fr; }
  .slip, .folk .one { width: 72px; }
  .bayes-pies { grid-template-columns: 1fr; }
  .bayes-board { grid-template-columns: 72px 1fr 1fr; }
  .braess-beat { grid-template-columns: 28px minmax(0, 1fr); padding: 10px; }
  .braess-beat .n { width: 28px; height: 28px; font-size: 13px; }
  .braess-hub { font-size: 12px; }
  .braess-map { grid-template-columns: 40px minmax(0, 1fr) 14px minmax(0, 1fr) 40px; }
  .braess-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .braess-meter > span { grid-column: 1 / -1; width: auto; }
  .braess-meter .track { min-width: 0; }
  .road-scene { height: 220px; }
  .town { width: 36px; font-size: 13px; }
  .driver { height: 20px; }
  .lab b { font-size: 12px; }
  .lab.ul, .lab.ll { left: 32%; }
  .lab.ur, .lab.lr { left: 66%; }
  .lab.cut { left: 68%; top: 50%; }
  .braess-play .caption { min-height: 4.4em; }
  .ship-yard { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .playboard *, .playboard *::before { transition: none !important; animation: none !important; }
  .driver, .road, .braess-meter .braess-fill { transition: none !important; }
  .lane .racer,
  .road-scene .driver,
  .playboard .tram,
  .playboard .walker,
  .playboard .mover,
  .playboard .cut-line,
  .playboard.is-lane .actor > img,
  .playboard .nash-person,
  .playboard .choice-fig,
  .playboard .choice-hold,
  .playboard .choice-hold img,
  .playboard .slice,
  .playboard .coin-row button,
  .playboard #you-coin,
  .playboard #them-coin,
  .playboard #your-face,
  .playboard #their-face,
  .playboard #car-spot img,
  .playboard #evening > img,
  .playboard .chain .msg,
  .playboard .folk .one,
  .playboard .mark,
  .playboard .slip.is-yours,
  .playboard .blade,
  .playboard .gems i,
  .playboard .mover,
  .playboard .sq-piece,
  .playboard .step-mark,
  .playboard .wedge,
  .playboard .ruler-bar,
  .playboard .horn-slice {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .playboard .day {
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .playboard .ice-bar { transition: transform 0.7s ease-out !important; }
  .playboard .ice-sun { transition: transform 0.5s ease-out, opacity 0.5s ease-out !important; }
  .playboard .ice-sun circle,
  .playboard .ice-sun rect { transition: fill 0.5s ease-out !important; }
  .playboard .ice-link,
  .playboard .ice-drop { transition: transform 0.3s ease-out, opacity 0.3s ease-out !important; }
  .playboard .ice-line { transition: opacity 0.2s ease-out !important; }
  .playboard .cup-move { transition: transform 0.7s ease-out !important; }
  .playboard .cup-person { transition: transform 0.3s ease-out, opacity 0.3s ease-out !important; }
  .playboard .plank,
  .playboard .grain,
  .playboard .special,
  .playboard .loop-arrow {
    transition: transform 0.45s ease-out, opacity 0.45s ease-out !important;
  }
  .playboard .ball-piece,
  .playboard .ball-whole,
  .playboard .ball-done,
  .playboard .ball-side {
    transition: transform 0.8s ease-out, opacity 0.45s ease-out !important;
  }
  .playboard .messenger,
  .playboard .isle-one {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease !important;
  }
  .playboard .week-day { transition: background-color 0.4s ease !important; }
  .playboard .fort-body { transition: fill 0.4s ease !important; }
  .playboard .special circle,
  .playboard .liar-card b { transition: fill 0.25s ease-out, color 0.25s ease-out !important; }
  .playboard .ruler-bar { transition: transform 0.5s ease-out !important; }
  .playboard .paid-more,
  .playboard .risk-fill,
  .playboard .wager-fill,
  .playboard .box-lid,
  .playboard .runaway,
  .playboard .lever,
  .playboard .shield {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease !important;
  }
  .playboard .folk .body,
  .playboard .folk .one-body { transition: fill 0.4s ease !important; }
  .playboard .pasture-cow,
  .playboard .gate-person,
  .playboard .net-car,
  .playboard .pd-person,
  .playboard .chk-car,
  .playboard .chk-flash,
  .playboard .hunt-person,
  .playboard .reply-arrow,
  .playboard .reply-nash,
  .playboard .mix-mark,
  .playboard .meet-person,
  .playboard .eve-person,
  .playboard .penny-coin,
  .playboard .talk-person,
  .playboard .talk-bubble,
  .playboard .simp-houses,
  .playboard .simp-merge,
  .playboard .lord-end,
  .playboard .lord-arrow,
  .playboard .lord-rise,
  .playboard .lord-final-tag,
  .playboard .eco-map,
  .playboard .eco-zoom,
  .playboard .dist-row,
  .playboard .dist-nation,
  .playboard .gabe-horn,
  .playboard .bus-person,
  .playboard .bus-mark,
  .playboard .net-person,
  .playboard .net-set,
  .playboard .plane-card,
  .playboard .lane-person,
  .playboard .lane-you,
  .playboard .matt-coin,
  .playboard .adm-dot,
  .playboard .adm-region,
  .playboard .adm-trend,
  .playboard .miss-dot,
  .playboard .plane-hint {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease !important;
  }
  .playboard .gabe-coat {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease, stroke-dashoffset 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .playboard .rep-mark {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
  }
  .beat-bar i { transition: none !important; }
}

.lesson.is-beat .kicker,
.lesson.is-beat .lead,
.lesson.is-beat .beat-source { display: none; }

.beat-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 4px 0 8px;
  background: #f7fbff;
}

.beat-top .beat-bar { flex: 1 1 auto; min-width: 0; margin: 0; }

.beat-top .play-again {
  flex: none;
  margin: 0;
  padding: 6px 12px;
  white-space: nowrap;
}

.beat-bar {
  height: 8px;
  margin: 0 0 16px;
  border: 1.6px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.beat-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--coral);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lesson.is-beat h1 {
  max-width: 36rem;
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.25;
}

.beat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  background: var(--mint-wash);
}

.beat-card[hidden] { display: none; }

.beat-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.beat-card .btn { flex: none; }

@media (max-width: 640px) {
  .lesson.is-beat h1 { font-size: 24px; }
  .beat-card { flex-direction: column; align-items: stretch; }
  .beat-card .btn { align-self: flex-end; }
}

.board-scroll { overflow-x: auto; }
.board-scroll svg { display: block; max-width: none; }
#shore { max-width: 100%; height: auto; }

.pair-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.pair-totals p {
  margin: 0;
  min-width: 7.2rem;
  padding: 8px 12px;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  background: var(--mint-wash);
  font-weight: 750;
}
.pair-totals b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.pair-totals p[hidden] { display: none; }

.edge-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.sq-piece, .wedge {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sq-hole, .sq-hole-num { opacity: 0; transition: opacity 0.9s ease; }
svg.is-hole .sq-hole,
svg.is-hole .sq-hole-num { opacity: 1; }
.sq-edge { transition: opacity 0.4s ease; }
.sq-edge.is-off { opacity: 0; }

.eq-board { position: relative; }
.step-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  border-radius: 999px;
  background: var(--leaf);
  transform-origin: 0 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-mark.is-bad { background: var(--coral); }
.step-mark.is-hidden { opacity: 0; }
.eqs { list-style: none; margin: 0; padding: 0 0 0 18px; }
.eqs li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 4px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 750;
}
.eqs .eq-v { color: var(--muted); }
.eqs li.is-pick { box-shadow: inset 0 0 0 2px var(--leaf); }
.eqs li.is-bad { box-shadow: inset 0 0 0 2px var(--coral); }
.eqs li.is-bad .eq-v { color: var(--ink); }

.ball-banner {
  margin: 8px 0 0;
  font-weight: 800;
}
.ball-banner[hidden] { display: none; }

.coast-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 750;
}
.ruler-bar {
  display: block;
  width: 56px;
  height: 8px;
  border-radius: 999px;
  background: #fe8e83;
  transform-origin: left center;
  transition: transform 0.5s ease-out;
}

.horn-scroll { overflow-x: auto; }
.horn-row { position: relative; width: 402px; height: 150px; }
.horn-slice {
  position: absolute;
  top: 0;
  width: 70px;
  text-align: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.horn-slice:nth-child(1) { left: 0; }
.horn-slice:nth-child(2) { left: 66px; }
.horn-slice:nth-child(3) { left: 132px; }
.horn-slice:nth-child(4) { left: 198px; }
.horn-slice:nth-child(5) { left: 264px; }
.horn-slice:nth-child(6) { left: 330px; }
.horn-slice.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
.horn-slice.is-wait { opacity: 0; transform: translate3d(22px, 0, 0); }
.horn-slice svg { display: block; width: 70px; height: 100px; }
.horn-slice span { display: block; font-size: 11px; font-weight: 800; line-height: 1.15; color: var(--ink); white-space: nowrap; }

.ice-intro { margin: 0 0 8px; font-weight: 750; line-height: 1.4; }
.ice-fig { position: relative; max-width: 460px; margin: 0 auto; }
.ice-sun {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  transform: scale(0.62);
  opacity: 0.5;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
.ice-sun circle,
.ice-sun rect { fill: #f3d98a; transition: fill 0.5s ease-out; }
.ice-sun.is-hot { transform: scale(1); opacity: 1; }
.ice-sun.is-hot circle,
.ice-sun.is-hot rect { fill: #f5c518; }
.ice-pair {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: end;
}
.ice-col { position: relative; text-align: center; }
.ice-track {
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ice-bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  transform: translateY(184px);
  transition: transform 0.7s ease-out;
}
.ice-icon { display: block; height: 42px; width: auto; }
.ice-col b { display: block; margin-top: 8px; font-size: 15px; }
.ice-gap { position: relative; height: 280px; }
.ice-link {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 120px;
  height: 6px;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: center;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.ice-link.lr { background: #fe8e83; }
.ice-link.rl { background: #5ec5a7; }
.ice-link.is-on { opacity: 1; transform: scale(1); }
.ice-link:after {
  content: "";
  position: absolute;
  top: -7px;
  border: 10px solid transparent;
}
.ice-link.lr:after { right: -4px; border-left-color: #fe8e83; border-right: 0; }
.ice-link.rl:after { left: -4px; border-right-color: #5ec5a7; border-left: 0; }
.ice-drop {
  position: absolute;
  left: 50%;
  top: -32px;
  width: 6px;
  height: 24px;
  margin-left: -3px;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: top center;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.ice-drop { background: #f5c518; }
.ice-drop.is-on { opacity: 1; transform: scale(1); }
.ice-drop:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #f5c518;
  border-bottom: 0;
}
.ice-line {
  min-height: 4.8em;
  margin: 18px 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.ice-line.is-in { opacity: 1; }
.ice-claims {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}
.ice-claims .btn { white-space: normal; line-height: 1.25; min-height: 52px; }
.ice-only { flex: 1 0 100%; margin-top: 4px; }
@media (min-width: 800px) {
  .ice-claims { grid-template-columns: 1fr 1fr 1fr; }
  .ice-claims.cols-2 { grid-template-columns: 1fr 1fr; }
}

.hosp .ice-track,
.hosp .ice-gap { height: 200px; }
.hosp .ice-bar { transform: translateY(138px); }
.hosp .ice-link { bottom: 78px; }

.cup-fig { position: relative; max-width: 520px; margin: 18px auto 0; }
.cup-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
}
.cup-person { position: relative; width: 96px; text-align: center; transform-origin: center bottom; }
.cup-person .who { display: block; height: 112px; width: auto; margin: 0 auto; }
.cup-own { display: block; height: 46px; width: auto; margin: 6px auto 0; }
.cup-person b { display: block; margin-top: 8px; font-size: 15px; }
.cup-spot {
  position: absolute;
  left: 50%;
  top: 62px;
  width: 44px;
  height: 36px;
  margin-left: -22px;
}
.cup-move {
  display: block;
  height: 40px;
  width: auto;
  margin: 8px auto 0;
  transition: transform 0.7s ease-out;
}
.cup-move.is-measuring { transition: none !important; }
.cup-person.ill.is-watched { transform: scale(1.06); }
.cup-fig.is-watch .well { opacity: 0.45; }
.cup-person { transition: transform 0.3s ease-out, opacity 0.3s ease-out; }

.boat, .heap, .sets, .ball-board { display: block; width: min(100%, 520px); height: auto; margin: 12px auto 0; }
.boat .plank { stroke: #0c1438; stroke-width: 2; }
.heap .grain { stroke: #0c1438; stroke-width: 1.5; }
.boat .plank, .heap .grain { transition: transform 0.4s ease-out, opacity 0.4s ease-out; }
.boat .plank.is-out { transform: translateY(-36px); opacity: 0; }
.boat .plank.is-in { transform: translateY(34px); opacity: 0; }
.boat .plank.is-measuring, .heap .grain.is-measuring { transition: none !important; }
.heap .grain.is-gone { transform: translateY(-18px); opacity: 0; }
.liar-card {
  position: relative;
  max-width: 460px;
  margin: 28px auto 6px;
  padding: 36px 24px 40px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #5ec5a7, inset 0 -10px 0 #f5c518;
  text-align: center;
}
.liar-card p { margin: 0; color: #0c1438; font-size: 28px; font-weight: 800; line-height: 1.35; }
.liar-card b {
  color: #0c1438;
  font-weight: 800;
  background: #fe8e83;
  border-radius: 8px;
  padding: 0 0.28em;
}
.liar-card b.is-hot { box-shadow: 0 0 0 4px #f5c518; }
.loop-arrow {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 42px;
  height: 42px;
  opacity: 0;
}
.loop-arrow.is-on { opacity: 1; }
.sets .special { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; transition: transform 0.45s ease-out, opacity 0.45s ease-out; }
.sets .special.is-on { opacity: 1; transform: none; }
.sets .special circle { transition: fill 0.25s ease-out; }
.sets .special.is-hot circle.face { fill: #fe8e83; }
.sets .mark-x { opacity: 0; font-size: 42px; font-weight: 800; fill: #0c1438; }
.sets .special.is-hot .mark-x { opacity: 1; }
.sets text { font-family: Nunito, "Segoe UI", sans-serif; font-weight: 800; }
.ball-board { width: min(100%, 680px); }
.ball-board text { font-family: Nunito, "Segoe UI", sans-serif; font-weight: 800; fill: #0c1438; }
.ball-piece, .ball-whole, .ball-done { transition: transform 0.8s ease-out, opacity 0.45s ease-out; }
.ball-piece { transform-box: fill-box; transform-origin: center; }
.ball-side { opacity: 0.28; transition: opacity 0.45s ease-out; }
.ball-side.is-on { opacity: 1; }
.ball-whole.is-gone { opacity: 0; }
.ball-done { opacity: 0; }
.ball-done.is-on { opacity: 1; }

.week { width: min(100%, 640px); margin: 8px auto 0; }
.week-ropes, .week-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.week-rope { width: 36px; height: 28px; display: block; margin: 0 auto; }
.week-day {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 2.5px solid #0c1438;
  border-radius: 14px;
  background: #5ec5a7;
  color: #0c1438;
  font-weight: 800;
  font-size: 18px;
  transition: background-color 0.4s ease;
}
.week-day.is-now { background: #f5c518; }
.week-day.is-out { background: #fe8e83; }
.fort-board, .isle-board { width: min(100%, 680px); height: auto; display: block; margin: 0 auto; }
.fort-board text, .isle-board text { font-family: Nunito, "Segoe UI", sans-serif; font-weight: 800; fill: #0c1438; }
.fort-body { transition: fill 0.4s ease; }
.fort-body.is-lit { fill: #f5c518; }
.messenger { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.isle-one { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease; }
.isle-one.is-gone { transform: translate(170px, 36px); opacity: 0; }
.isle-count { margin: 10px 0 0; font-weight: 800; color: #0c1438; }
.isle-count b { font-size: 22px; }
.logic-caption { min-height: 2.8em; font-size: 18px; font-weight: 800; }
.logic-caption:empty { display: none; }
.logic-caption.is-hot { box-shadow: 0 0 0 4px #f5c518; border-radius: 12px; padding: 8px 10px; }
.explain { margin-top: 16px; }
.explain p { margin: 0 0 8px; line-height: 1.45; }
.explain p:last-child { margin-bottom: 0; }
.pair-board { width: min(100%, 680px); height: auto; display: block; margin: 0 auto; }
.pair-board text { font-family: Nunito, "Segoe UI", sans-serif; font-weight: 800; fill: #0c1438; }
.pair-board .say-mark { fill: #fe8e83; opacity: 0; }
.pair-board .say-mark.is-on { opacity: 1; }
@media (max-width: 640px) {
  .week-day { min-height: 64px; font-size: 14px; border-radius: 10px; }
  .week-ropes, .week-row { gap: 6px; }
  .logic-caption { font-size: 16px; }
  .pick-pair, .urn-row, .compare, .sunk-split { grid-template-columns: 1fr; }
  .wager { grid-template-columns: 72px 1fr 1fr; }
  .box-row, .cover-scene { flex-direction: column; align-items: center; }
}

.pick-board, .urn-row, .sunk-split, .cover-scene, .wager-wrap, .box-row, .bandit-row { margin: 0 auto; max-width: 680px; }
.pick-pair[hidden], .compare[hidden], .sunk-card[hidden], .wager-bars[hidden] { display: none; }
.round-label, .hit-count { margin: 0 0 8px; font-weight: 800; color: #0c1438; }
.hit-count b { font-size: 22px; }
.pick-pair, .urn-row, .sunk-split, .compare, .bandit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bandit-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-card, .urn-btn, .bandit-one, .sunk-card, .compare p, .wager-cell {
  border: 2.5px solid #0c1438;
  border-radius: 16px;
  background: #fff;
  color: #0c1438;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-weight: 800;
}
.pick-card, .urn-btn {
  padding: 12px;
  text-align: left;
  cursor: pointer;
}
.pick-card.is-on, .urn-btn.is-on { background: #d3f1e5; }
.pick-card.is-switch, .urn-btn.is-switch, .sunk-card.is-rational { box-shadow: 0 0 0 4px #f5c518; }
.pick-card b, .urn-btn b, .bandit-one b, .sunk-card b { display: block; }
.pick-bar, .meter, .risk-track, .wager-track {
  display: flex;
  height: 18px;
  border: 2px solid #0c1438;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.pick-bar { height: 36px; margin-bottom: 8px; }
.pick-bar.cols { display: grid; grid-template-columns: 89fr 10fr 1fr; }
.pick-bar .span2 { grid-column: span 2; }
.pick-bar .cut { box-shadow: inset -4px 0 0 #0c1438; }
.avg { display: block; margin-top: 6px; }
.pick-name { display: block; margin-bottom: 6px; font-size: 18px; }
.pick-bar i { display: block; height: 100%; }
.pick-bar .g, .meter .paid { background: #5ec5a7; }
.pick-bar .y, .chance-dot { background: #f5c518; }
.pick-bar .r, .meter .more, .risk-fill { background: #fe8e83; }
.urn-btn svg { width: min(100%, 180px); height: auto; display: block; margin: 0 auto 8px; }
.color-chip { display: inline-block; min-width: 88px; text-align: center; border-radius: 999px; border: 2px solid #0c1438; padding: 4px 10px; font-weight: 800; color: #0c1438; }
.color-chip.is-red { background: #fe8e83; }
.color-chip.is-black { background: #0c1438; color: #fff; }
.sunk-card { padding: 12px; }
.sunk-card p { margin: 8px 0 0; }
.sunk-card.is-on { box-shadow: 0 0 0 4px #0c1438; }
.meter { height: 28px; margin-top: 8px; }
.meter .paid { width: 60%; }
.meter .more { width: 40%; background: #fe8e83; }
.meter.fresh-meter { height: 48px; background: #f5c518; }
.fresh-pay { width: 100%; background: #f5c518; }
.cover-scene { display: flex; gap: 28px; align-items: flex-end; justify-content: center; }
.cover-person { height: 120px; width: auto; }
.cover-car { height: 78px; width: auto; }
.shield { opacity: 0; transform: scale(0.6); transform-origin: center; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease; }
.shield.is-on { opacity: 1; transform: scale(1); }
.road { position: relative; height: 36px; max-width: 460px; margin: 10px auto 0; background: #f5c518; border: 3px solid #0c1438; border-radius: 10px; }
.road i { position: absolute; left: 10%; right: 10%; top: 50%; border-top: 4px dashed #0c1438; }
.risk-track { max-width: 360px; margin: 14px auto; display: block; height: 22px; background: #f5c518; overflow: visible; }
.risk-fill { display: block; height: 100%; width: 100%; transform: scaleX(0.28); transform-origin: left center; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.risk-fill.is-high { transform: scaleX(0.86); }
.wager { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 8px; }
.wager-h, .wager-r { display: grid; place-items: center; text-align: center; font-weight: 800; color: #0c1438; }
.wager-cell { min-height: 72px; font-size: 18px; cursor: pointer; }
.wager-cell.is-inf { background: #f5c518; }
.wager-cell.is-loss { background: #fe8e83; }
.wager-cell.is-gain { background: #5ec5a7; }
.wager-cell.is-on { box-shadow: inset 0 0 0 4px #0c1438; }
.wager-bars { margin-top: 14px; display: grid; gap: 8px; }
.wager-bars[hidden] { display: none; }
.wager-line { display: grid; grid-template-columns: 120px 1fr 64px; gap: 8px; align-items: center; font-weight: 800; color: #0c1438; }
.wager-fill { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.wager-fill.believe { background: #f5c518; }
.wager-fill.doubt { background: #5ec5a7; }
.wager-bars.is-on .wager-fill.believe { transform: scaleX(1); }
.wager-bars.is-on .wager-fill.doubt { transform: scaleX(0.22); }
.predicted { display: inline-block; margin: 0 0 10px; background: #f5c518; border: 2px solid #0c1438; border-radius: 999px; padding: 4px 10px; font-weight: 800; color: #0c1438; }
.box-row { display: flex; gap: 24px; justify-content: center; align-items: flex-end; }
.box-col { text-align: center; }
.box-name { margin: 8px 0 0; max-width: 200px; min-height: 2.6em; font-weight: 800; color: #0c1438; }
.money-box { position: relative; border: 3px solid #0c1438; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: #0c1438; }
.money-box.clear { width: 140px; height: 100px; background: #5ec5a7; }
.money-box.opaque { width: 200px; height: 160px; background: #f5c518; }
.money-box.opaque.is-empty { background: #fe8e83; }
.box-lid { position: absolute; inset: 0; background: #f5c518; border-radius: 13px; transform-origin: top center; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.money-box.opaque.is-open .box-lid { transform: translateY(-72%) rotate(-16deg); }
.compare { margin-top: 12px; }
.compare p { margin: 0; padding: 10px; }
.compare .is-yours { background: #f5c518; }
.track-board { width: min(100%, 680px); height: auto; display: block; margin: 0 auto; }
.track-board .runaway { transform-box: fill-box; transform-origin: 0 0; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.track-board .lever { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transform-box: fill-box; transform-origin: 12px 28px; }
.track-board .lever.is-pulled { transform: rotate(36deg); }
.track-board .runaway.to-five { transform: translate(400px, 0); }
.track-board .runaway.to-one { transform: translate(400px, 112px); }
.track-board .body { fill: #5ec5a7; transition: fill 0.4s ease; }
.track-board .one-body { fill: #f5c518; transition: fill 0.4s ease; }
.track-board .is-hit .body,
.track-board .is-hit .one-body { fill: #fe8e83; }
.track-board .is-hit { opacity: 0.4; }
.scene { display: block; width: min(100%, 440px); height: auto; margin: 8px auto 14px; }
.pair-read { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 4px 0 0; font-weight: 800; color: #0c1438; }
.pair-read .say-mark { color: #fe8e83; opacity: 0; font-size: 28px; line-height: 1; }
.pair-read .say-mark.is-on { opacity: 1; }
.cup-person.ill .who { border-bottom: 8px solid #fe8e83; }
.cup-person.well .who { border-bottom: 8px solid #5ec5a7; }
.bandit-one img { height: 72px; width: auto; }
.box-row > img { height: 150px; width: auto; }
.week-day img { height: 42px; width: auto; display: block; margin: 0 auto 4px; }
.sets img.special.is-hot { outline: 6px solid #fe8e83; outline-offset: 4px; }
.liar-card .scene { width: min(100%, 280px); }
.bandit-one { min-height: 110px; background: #5ec5a7; display: grid; place-items: center; align-content: center; gap: 6px; }
.bandit-one.is-known { background: #f5c518; }
.bandit-one.is-low { background: #fe8e83; }
.bandit-one.is-now { box-shadow: 0 0 0 4px #0c1438; }
.bandit-total { margin: 10px 0 0; font-weight: 800; color: #0c1438; }
@media (max-width: 640px) {
  .pick-pair, .urn-row, .compare, .sunk-split { grid-template-columns: 1fr; }
  .wager { grid-template-columns: 72px 1fr 1fr; }
  .box-row, .cover-scene { flex-direction: column; align-items: center; }
}

.ask-line { margin: 4px 0 10px; font-weight: 800; line-height: 1.35; }
.deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 4px;
}
.deal-who, .deal-mid { text-align: center; min-width: 0; }
.deal-who > svg { height: 96px; width: auto; display: block; margin: 0 auto; }
.deal-who b, .deal-mid > b { display: block; margin-top: 2px; font-size: 14px; }
.deal-pay { display: block; min-height: 1.3em; font-weight: 800; font-size: 14px; }
.deal-say {
  display: inline-block;
  min-height: 1.45em;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: #0c1438;
}
.deal-say:empty { padding: 0; }
.deal-say.is-yes { background: #5ec5a7; }
.deal-say.is-no { background: #fe8e83; }
.coin-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  align-content: flex-start;
  width: 136px;
  max-width: 100%;
  min-height: 36px;
  margin: 6px auto 0;
  padding: 4px;
  border-radius: 12px;
}
.coin-stack.is-wide { width: 188px; }
.coin-stack.is-out { box-shadow: 0 0 0 3px #f5c518; }
.coin-stack.is-yours { box-shadow: inset 0 0 0 3px #5ec5a7, 0 0 0 3px #f5c518; }
.coin-stack.is-theirs { box-shadow: inset 0 0 0 3px #fe8e83, 0 0 0 3px #f5c518; }
.disc { width: 24px; height: 24px; display: block; flex: none; }
.disc.is-gone { opacity: 0; transform: scale(0.35); }
.tri-piles {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 6px;
  justify-content: center;
  min-height: 48px;
}
.tri-piles .coin-stack { width: 48px; max-width: 48px; min-height: 28px; margin-top: 0; }
.cake-board {
  max-width: 560px;
  margin: 4px auto 0;
}
.cake-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.cake-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  min-height: 108px;
}
.cake-land {
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}
.cake-join {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.cake-slab { overflow: hidden; flex: none; }
.cake-slab svg { display: block; max-width: none; }
.cake-slab.is-yours { outline: 4px solid #f5c518; outline-offset: 2px; box-shadow: inset 0 0 0 4px #5ec5a7; }
.cake-slab.is-taken { outline: 4px solid #f5c518; outline-offset: 2px; box-shadow: inset 0 0 0 4px #fe8e83; }
.cut-line {
  width: 4px;
  flex: none;
  border-radius: 2px;
  background: #0c1438;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.cut-line.is-in { transform: scaleY(1); }
@media (max-width: 640px) {
  .deal-who > svg { height: 74px; }
  .disc { width: 18px; height: 18px; }
  .coin-stack, .coin-stack.is-wide { width: 112px; }
  .tri-piles { grid-template-columns: repeat(3, 40px); }
  .tri-piles .coin-stack { width: 40px; max-width: 40px; }
}

.pasture-people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  text-align: center;
}
.pasture-who svg { height: 78px; width: auto; display: block; margin: 0 auto; }
.pasture-who b { display: block; margin-top: 2px; font-size: 14px; line-height: 1.15; }
.pasture-milk { display: block; min-height: 1.2em; font-weight: 800; font-size: 14px; }
.pasture {
  position: relative;
  width: min(100%, 680px);
  height: 260px;
  margin: 10px auto 0;
}
.pasture-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pasture-shade { opacity: 0; transition: opacity 0.4s ease; }
.pasture-bare { fill: #fe8e83; opacity: 0; transition: opacity 0.4s ease; }
.pasture-cow {
  position: absolute;
  z-index: 1;
  width: 52px;
  height: 38px;
  margin-left: -26px;
  margin-top: -19px;
  transform: scale(0.2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.pasture-cow.is-in { transform: scale(1); opacity: 1; }
.pasture-cow svg { width: 100%; height: 100%; display: block; }
.pasture-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 680px);
  margin: 10px auto 0;
}
.pasture-stat {
  border: 1.6px solid #0c1438;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px 8px;
  text-align: center;
}
.pasture-stat span { display: block; font-size: 12px; font-weight: 750; line-height: 1.2; }
.pasture-stat b { display: block; margin-top: 2px; font-size: 18px; }
.pasture-stat .pasture-flag { display: inline-block; }
.pasture-flag {
  display: inline-block;
  margin-top: 2px;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 16px;
}
.pasture-flag.is-good { background: #5ec5a7; }
.pasture-flag.is-thin { background: #f5c518; }
.pasture-flag.is-bare { background: #fe8e83; }
.pasture-controls .field { flex: 1 1 240px; min-width: 0; }
.pasture-controls input[type="range"] { flex: 1 1 120px; width: auto; min-width: 100px; }

.gate-scene { position: relative; height: 300px; margin-top: 6px; }
.gate-art {
  position: absolute;
  left: 50%;
  top: 0;
  width: 160px;
  height: 150px;
  transform: translateX(-50%);
  overflow: visible;
}
.gate-broken, .gate-fixed { transition: opacity 0.4s ease; }
.gate-fixed { opacity: 0; }
.gate-art.is-fixed .gate-broken { opacity: 0; }
.gate-art.is-fixed .gate-fixed { opacity: 1; }
.gate-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}
.gate-person {
  position: relative;
  width: 88px;
  flex: none;
  text-align: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.gate-person svg { height: 86px; width: auto; display: block; margin: 0 auto; }
.gate-person b { display: block; font-size: 14px; line-height: 1.1; }
.gate-person.is-go { transform: translateY(-92px); }
.gate-cost {
  display: inline-block;
  margin-top: 2px;
  border: 1.6px solid #0c1438;
  border-radius: 999px;
  background: #fe8e83;
  color: #0c1438;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 1px 6px;
}
.gate-cost.is-big { font-size: 13px; padding: 3px 8px; }
.gate-label { flex: 1 0 100%; font-weight: 800; font-size: 14px; }

.net-scene {
  position: relative;
  width: min(100%, 560px);
  margin: 4px auto 0;
  aspect-ratio: 400 / 260;
}
.net-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.net-road {
  fill: none;
  stroke-linecap: round;
  transition: stroke 0.4s ease, stroke-width 0.4s ease, stroke-opacity 0.4s ease;
}
.net-lab {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  border: 1.6px solid #0c1438;
  border-radius: 8px;
  background: #ffffff;
  padding: 1px 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.net-car {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 42px;
  height: 24px;
  margin-left: -21px;
  margin-top: -12px;
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.net-car svg { width: 100%; height: 100%; display: block; }
.net-trip { margin: 8px 0 0; font-weight: 800; text-align: center; }

@media (max-width: 640px) {
  .pasture { height: 210px; }
  .pasture-who svg { height: 58px; }
  .pasture-cow { width: 34px; height: 26px; margin-left: -17px; margin-top: -13px; }
  .pasture-stats { grid-template-columns: 1fr 1fr; }
  .pasture-stat b { font-size: 16px; }
  .gate-scene { height: 250px; }
  .gate-art { width: 124px; height: 116px; }
  .gate-row { gap: 4px; }
  .gate-person { width: 72px; }
  .gate-person svg { height: 64px; }
  .gate-person.is-go { transform: translateY(-64px); }
  .net-car { width: 30px; height: 18px; margin-left: -15px; margin-top: -9px; }
  .net-lab { font-size: 11px; padding: 0 4px; }
  .pd-room { min-height: 180px; }
  .game-person svg { height: 72px; }
  .game-row .who { min-width: 100%; }
  .chk-scene { height: 240px; }
  .chk-you { top: 140px; }
  .chk-car { width: 58px; height: 78px; margin-left: -29px; }
  .hunt-scene, .meet-scene, .eve-scene { height: 280px; }
  .hunt-person, .meet-person, .eve-person { width: 74px; }
  .mix-coin { flex-basis: 72px; }
  .mix-coin svg { width: 64px; height: 64px; }
  .penny-coin { width: 84px; height: 84px; }
  .pd-grid, .reply-grid { grid-template-columns: 0.85fr 1fr 1fr; }
  .pd-label, .reply-label, .pd-chip, .reply-chip { font-size: 11px; }
}

.game-split { align-items: flex-start; }
.game-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.game-row .who { font-weight: 800; min-width: 8.5rem; }
.game-row .btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.game-row .btn span { font-size: 12px; font-weight: 650; }
.game-person { text-align: center; }
.game-person b { display: block; font-size: 14px; line-height: 1.15; }
.game-person svg { height: 92px; width: auto; display: block; margin: 0 auto; }
.game-tag {
  display: inline-block;
  min-height: 1.3em;
  margin-top: 2px;
  border: 1.6px solid #0c1438;
  border-radius: 999px;
  background: #ffffff;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.game-tag:empty { visibility: hidden; }

.pd-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pd-room { position: relative; min-height: 220px; }
.pd-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-person {
  position: relative;
  z-index: 1;
  padding: 16px 8px 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.pd-person.is-dim { opacity: 0.38; }
.pd-person.is-bright { transform: scale(1.05); }
.reply-rail {
  height: 12px;
  margin: 2px 0 8px;
  border: 2px solid #0c1438;
  border-radius: 6px;
  background: #f5c518;
}
.pd-grid, .reply-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
  border-top: 10px solid #f5c518;
  padding-top: 8px;
}
.reply-grid { margin-top: 0; border-top: 0; padding-top: 0; }
.pd-label, .reply-label { font-size: 13px; font-weight: 800; display: flex; align-items: end; }
.pd-cell, .reply-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1.6px solid #0c1438;
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
}
.reply-cell { font: inherit; color: inherit; cursor: pointer; text-align: left; width: 100%; }
.pd-cell.is-pick, .reply-cell.is-pick { box-shadow: inset 0 0 0 3px #0c1438; }
.pd-chip, .reply-chip {
  display: inline-block;
  border: 1.6px solid #0c1438;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 800;
}
.pd-chip-you, .reply-you { background: #5ec5a7; }
.pd-chip-them, .reply-them { background: #fe8e83; }
.reply-arrow, .reply-nash {
  display: inline-block;
  max-height: 0;
  margin: 0;
  border: 0 solid #0c1438;
  border-radius: 999px;
  padding: 0 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.reply-arrow { background: #fe8e83; }
.reply-nash { background: #5ec5a7; }
.reply-arrow.is-on, .reply-nash.is-on {
  max-height: 44px;
  margin-top: 2px;
  border-width: 1.6px;
  padding: 1px 8px;
  opacity: 1;
  transform: translateY(0);
}

.chk-scene { position: relative; height: 280px; margin-top: 4px; overflow: hidden; }
.chk-road { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chk-car {
  position: absolute;
  left: 50%;
  width: 74px;
  height: 98px;
  margin-left: -37px;
  z-index: 2;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.chk-car svg { width: 100%; height: 100%; display: block; }
.chk-you { top: 168px; }
.chk-them { top: 8px; }
.chk-them svg { transform: rotate(180deg); }
.chk-flash {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 1;
  width: 86px;
  height: 54px;
  margin: -27px 0 0 -43px;
  border: 3px solid #0c1438;
  border-radius: 50%;
  background: #f5c518;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.chk-flash.is-on { opacity: 0.95; transform: scale(1); }
.chk-driver { position: absolute; z-index: 4; }
.chk-you-tag { left: 8px; bottom: 8px; }
.chk-them-tag { right: 8px; top: 8px; }

.hunt-scene, .meet-scene, .eve-scene {
  position: relative;
  height: 320px;
  margin-top: 4px;
  overflow: hidden;
}
.hunt-stag, .hunt-hare, .meet-door, .eve-venue {
  position: absolute;
  top: 0;
  text-align: center;
  z-index: 1;
}
.hunt-stag { left: 8px; width: 132px; }
.hunt-hare { right: 8px; top: 10px; width: 96px; }
.meet-door, .eve-venue { width: 42%; }
.meet-left, .eve-opera { left: 0; }
.meet-right, .eve-pitch { right: 0; }
.hunt-stag svg, .hunt-hare svg, .meet-door svg, .eve-venue svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.meet-door svg, .eve-venue svg { width: min(130px, 100%); }
.hunt-stag b, .hunt-hare b, .meet-door b, .eve-venue b { font-size: 14px; }
.hunt-stag.is-caught b, .meet-door.is-lit b, .eve-venue.is-lit b {
  background: #f5c518;
  border-radius: 999px;
  padding: 0 8px;
}
.hunt-person svg { height: 76px; }
.hunt-person, .meet-person, .eve-person {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  z-index: 2;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.eve-pref { display: block; font-size: 12px; font-weight: 750; line-height: 1.2; }

.mix-coins { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mix-coin { flex: 0 0 96px; text-align: center; }
.mix-coin svg { width: 84px; height: 84px; display: block; margin: 0 auto; }
.mix-coin b { display: block; font-size: 14px; }
.mix-mark {
  flex: 1 1 auto;
  border: 1.6px solid #0c1438;
  border-radius: 12px;
  background: #f5c518;
  padding: 8px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: scale(0.86);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.mix-mark.is-on { opacity: 1; transform: scale(1); }
.mix-sheet { margin-top: 12px; border-top: 10px solid #f5c518; padding-top: 8px; }
.mix-head { font-size: 13px; font-weight: 750; }
.mix-cols, .mix-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.mix-cols span, .mix-row span { font-size: 13px; font-weight: 800; }
.mix-row b {
  display: block;
  border: 1.6px solid #0c1438;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  text-align: center;
}
.mix-row.is-equal b { background: #f5c518; }
.mix-controls { display: grid; gap: 8px; }
.mix-slider { width: 100%; }
.mix-slider input[type="range"] { flex: 1 1 140px; width: auto; min-width: 100px; }

.penny-row { display: flex; justify-content: space-around; gap: 16px; }
.penny-side { text-align: center; perspective: 640px; }
.penny-coin {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.penny-coin svg { width: 100%; height: 100%; display: block; }
.penny-side b { display: block; margin-top: 4px; }
.penny-side.is-win .game-tag { background: #f5c518; }

.rep-people { display: flex; justify-content: space-around; gap: 12px; }
.rep-rail {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  padding: 8px;
  border: 2px solid #0c1438;
  border-radius: 12px;
  background: #f5c518;
}
.rep-mark {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  display: flex;
  overflow: hidden;
  border: 1.6px solid #0c1438;
  border-radius: 7px;
  background: #ffffff;
  opacity: 0.45;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.rep-mark.is-played { opacity: 1; transform: scale(1); }
.rep-mark { position: relative; }
.rep-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  margin-left: -1px;
  background: #0c1438;
}
.rep-half { flex: 1 1 50%; }
.rep-half.is-c { background: #5ec5a7; }
.rep-half.is-d { background: #fe8e83; }
.rep-key { margin: 6px 0 0; font-size: 13px; font-weight: 750; }
#partner-plan { width: min(100%, 28rem); max-width: 100%; }

@media (max-width: 640px) {
  .hunt-scene { height: 300px; }
  .hunt-stag { width: 104px; }
  .hunt-hare { width: 74px; }
  .hunt-person svg { height: 64px; }
}

.talk-scene { position: relative; height: 330px; }
.talk-pad { position: absolute; bottom: 0; width: 38%; height: 64px; }
.talk-pad-l { left: 4%; }
.talk-pad-r { right: 4%; }
.talk-pad svg { width: 100%; height: 100%; display: block; }
.talk-person {
  position: absolute;
  top: 52px;
  width: 104px;
  z-index: 2;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.talk-person svg { height: 78px; }
.talk-bubble {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  max-width: 240px;
  margin: 0;
  padding: 8px 12px;
  border: 4px solid #f5c518;
  border-radius: 16px;
  background: #ffffff;
  color: #0c1438;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transform-origin: center bottom;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.talk-bubble.is-on { opacity: 1; transform: translateX(-50%) scale(1); }
.talk-bubble.is-on.is-ignored { opacity: 0.42; }
.talk-bubble b { display: block; min-height: 1.2em; }
.talk-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-right: 4px solid #f5c518;
  border-bottom: 4px solid #f5c518;
  transform: rotate(45deg);
}

.simp-scene { position: relative; min-height: 250px; }
.simp-houses {
  display: flex;
  gap: 16px;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.simp-houses.is-away { opacity: 0; transform: scale(0.86); }
.simp-house, .simp-merge { position: relative; flex: 1; min-width: 0; text-align: center; padding-top: 42px; }
.simp-roof { position: absolute; left: -10px; top: 0; width: calc(100% + 20px); height: 48px; }
.simp-meters { display: flex; justify-content: center; gap: 18px; }
.simp-col { width: 92px; }
.simp-pct { display: block; min-height: 1.2em; font-size: 16px; }
.simp-track {
  height: 120px;
  width: 42px;
  margin: 4px auto 6px;
  border: 2px solid #0c1438;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.simp-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center bottom;
  transform: scaleY(0.15);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.simp-label, .simp-count, .simp-name, .simp-sub { display: block; font-weight: 800; line-height: 1.25; }
.simp-label { font-size: 13px; }
.simp-count, .simp-sub { font-size: 13px; font-weight: 750; }
.simp-name { margin: 8px 0 0; }
.simp-sub { margin: 2px 0 0; }
.simp-merge {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  padding: 42px 12px 8px;
  border-radius: 16px;
  background: #ffffff;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.simp-merge.is-on { opacity: 1; transform: none; }

.lord-chart { width: 100%; height: auto; display: block; }
.lord-arrow, .lord-rise, .lord-final-tag, .lord-end {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.lord-end { transform-box: fill-box; transform-origin: center; }
.lord-chart.is-final .lord-arrow { opacity: 0.4; }
.lord-chart.is-change .lord-arrow { opacity: 1; }
.lord-rise { opacity: 0; }
.lord-chart.is-change .lord-rise { opacity: 1; }
.lord-final-tag { opacity: 0; }
.lord-chart.is-final .lord-final-tag { opacity: 1; }
.lord-chart.is-final .lord-end-b { transform: scale(1.35); }

.eco-scene { position: relative; height: 340px; overflow: hidden; }
.eco-map, .eco-zoom {
  position: absolute;
  inset: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.eco-map.is-away { opacity: 0; transform: scale(1.06); pointer-events: none; }
.eco-zoom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px 8px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}
.eco-zoom.is-on { opacity: 1; transform: none; pointer-events: auto; }
.eco-line { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.eco-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border: 3px solid #f5c518;
  border-radius: 50%;
  box-sizing: border-box;
}
.eco-region {
  position: absolute;
  bottom: 8px;
  width: 22%;
  height: 102px;
  margin: 0;
  padding: 28px 4px 6px;
  border: 2px solid #0c1438;
  border-radius: 12px;
  color: #0c1438;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.eco-region b, .eco-region span { display: block; font-size: 13px; }
.eco-region.is-pick { box-shadow: inset 0 0 0 3px #0c1438; }
.eco-roof { position: absolute; left: -8px; top: -18px; width: calc(100% + 16px); height: 40px; }
.eco-zoom-name, .eco-detail, .eco-key { margin: 0; font-weight: 800; line-height: 1.3; }
.eco-zoom-name { margin-bottom: 4px; text-align: center; }
.eco-detail { margin-top: 4px; max-width: 36rem; text-align: center; }
.eco-key { margin: 8px 0 0; font-weight: 750; }
.eco-plot-slot {
  position: relative;
  flex: none;
  width: min(100%, 420px);
  height: 236px;
}
.eco-plot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.dist-scene { position: relative; min-height: 230px; }
.dist-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.dist-row.is-away { opacity: 0; transform: scale(0.9); }
.dist-block { position: relative; text-align: center; padding-top: 34px; }
.dist-roof { position: absolute; left: -6px; top: 0; width: calc(100% + 12px); height: 36px; }
.dist-name, .dist-nation-text, .dist-meter-name { margin: 0 0 6px; font-weight: 800; line-height: 1.25; }
.dist-bar {
  display: flex;
  height: 32px;
  overflow: hidden;
  border: 2px solid #0c1438;
  border-radius: 8px;
  background: #ffffff;
}
.dist-green, .dist-red {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  color: #0c1438;
  font-size: 13px;
  font-weight: 800;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.dist-green { background: #5ec5a7; }
.dist-red { background: #fe8e83; }
.dist-seat {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border: 2px solid #0c1438;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.dist-seat.is-g { background: #5ec5a7; }
.dist-seat.is-r { background: #fe8e83; }
.dist-nation {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 36px 12px 8px;
  border-radius: 16px;
  background: #ffffff;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.dist-nation.is-on { opacity: 1; transform: none; }
.dist-meter { margin-top: 10px; }
.dist-meter-row { display: flex; align-items: center; gap: 6px; }
.dist-meter-row .dist-bar { flex: 1; }
.dist-post {
  width: 10px;
  height: 40px;
  flex: none;
  border: 2px solid #0c1438;
  border-radius: 3px;
  background: #f5c518;
}
.dist-nation-text { margin-top: 10px; }

.gabe-picture { width: 100%; height: auto; display: block; }
.gabe-horn { transform-origin: 0 0; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.gabe-body { fill-opacity: 0; stroke-width: 5; stroke-linejoin: round; transition: fill-opacity 0.9s ease; }
.gabe-body.is-filled { fill-opacity: 1; }
.gabe-coat {
  stroke-linecap: round;
  stroke-dasharray: 16 12;
  stroke-dashoffset: 160;
  opacity: 0;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.gabe-coat.is-on { opacity: 1; stroke-dashoffset: 0; }
.gabe-totals { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.gabe-totals p { margin: 0; font-weight: 750; }
.gabe-totals b { display: block; font-size: 28px; line-height: 1.1; }

.pic-totals { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.pic-totals p { margin: 0; font-weight: 800; }
.pic-totals b { display: block; font-size: 28px; line-height: 1.1; }
.pic-totals span { display: block; font-size: 14px; }

.bus-scene { position: relative; height: 250px; }
.bus-road { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 128px; }
.bus-gaps { display: flex; height: 44px; margin-top: 36px; }
.bus-gap {
  position: relative;
  flex: 1 1 0;
  border: 2px solid #0c1438;
  background: #ffffff;
  transition: background-color 0.4s ease;
}
.bus-gap.is-hot { background: #f5c518; }
.bus-gap b {
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  text-align: center;
  font-size: 14px;
}
.bus-icon { position: absolute; bottom: 46px; width: 34px; margin-left: -17px; }
.bus-icon svg { display: block; width: 34px; height: 30px; }
.bus-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  border: 2px solid #0c1438;
  border-radius: 4px;
  background: #f5c518;
}
.bus-person {
  position: absolute;
  left: 0;
  bottom: 118px;
  width: 54px;
  opacity: 0;
  transform: translate(16px, 36px);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.bus-person svg { height: 72px; width: auto; display: block; }
.bus-person.is-on { opacity: 1; }
.bus-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #f5c518;
  border-radius: 50%;
  background: #fe8e83;
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.bus-mark.is-on { opacity: 1; transform: none; }

.friend-scene { position: relative; height: 360px; }
.net-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.net-lines line { stroke: #0c1438; stroke-width: 3; }
.net-lines line.is-near { stroke: #f5c518; stroke-width: 6; }
.net-lines line.is-far { stroke: #fe8e83; stroke-width: 4; }
.net-set {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.net-set.is-on { opacity: 1; pointer-events: auto; }
.net-person {
  position: absolute;
  width: 72px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  transform: translate(-50%, -40%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.net-person.is-you { color: #5ec5a7; transform: translate(-50%, -40%) scale(1.12); }
.net-person.is-hot { color: #fe8e83; }
.net-person.is-you.is-hot { color: #5ec5a7; }
.net-person svg { height: 58px; width: auto; display: block; margin: 0 auto; }
.net-person b, .net-person .net-deg { display: block; font-size: 13px; line-height: 1.15; color: #0c1438; }
.net-deg { opacity: 0; }
.friend-scene.is-degrees .net-deg { opacity: 1; }

.adm-plot { width: 100%; height: auto; display: block; }
.adm-dot { transition: opacity 0.9s ease; }
.adm-dot.is-out { opacity: 0.12; }
.adm-region { transition: opacity 0.9s ease; }
.adm-trend { transition: opacity 0.9s ease; }

.plane-scene { position: relative; height: 320px; }
.plane-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(46%, 280px);
  text-align: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.plane-card b { display: block; margin-top: 4px; }
.plane-art { width: 100%; height: auto; display: block; }
.plane-home { transform: translateX(-50%); }
.plane-scene.is-all .plane-home { transform: translateX(-108%); }
.plane-lost { opacity: 0; transform: translateX(-30%); pointer-events: none; }
.plane-scene.is-all .plane-lost { opacity: 1; transform: translateX(8%); }
.plane-hint-lost { opacity: 0; }
.plane-scene.is-all .plane-hint-home { opacity: 0; }
.plane-scene.is-all .plane-hint-lost { opacity: 1; }
.plane-advice { margin: 8px 0 0; font-weight: 800; }

.miss-plot { width: 100%; height: auto; display: block; }
.miss-dot { transition: opacity 0.9s ease; }
.miss-dot.is-gone { opacity: 0.15; }

.lane-scene {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 300px;
  padding-bottom: 78px;
}
.check-col { text-align: center; min-width: 0; }
.lane-post {
  height: 14px;
  border: 2px solid #0c1438;
  border-radius: 4px;
  background: #f5c518;
}
.lane-post::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: -8px auto 0;
  border: 2px solid #0c1438;
  border-radius: 50%;
  background: #fe8e83;
}
.lane-flag {
  display: inline-block;
  margin-top: 8px;
  padding: 1px 8px;
  border: 2px solid #0c1438;
  border-radius: 999px;
  background: #f5c518;
  opacity: 0;
  font-size: 13px;
}
.check-col.is-first .lane-flag { opacity: 1; }
.lane-person { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease; }
.lane-person svg { height: 46px; width: auto; display: block; margin: 0 auto; }
.lane-person.is-gone { transform: translateY(-28px); opacity: 0; }
.lane-name { display: block; margin-top: 4px; font-weight: 800; }
.lane-you {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 64px;
  text-align: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.lane-you svg { height: 58px; width: auto; display: block; margin: 0 auto; }
.lane-you b { display: block; font-size: 13px; }

.matt-scene { display: flex; justify-content: center; gap: 48px; }
.matt-col { width: 120px; text-align: center; }
.matt-col > b { display: block; margin-bottom: 6px; }
.matt-stack { position: relative; height: 230px; }
.matt-coin {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 14px;
  border: 3px solid #f5c518;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-16px) scale(0.8);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.matt-coin.is-g { background: #5ec5a7; }
.matt-coin.is-r { background: #fe8e83; }
.matt-coin.is-on { opacity: 1; }
.matt-count { display: block; margin-top: 6px; font-weight: 800; }
.matt-chance { margin: 8px 0 0; font-weight: 800; }

@media (max-width: 640px) {
  .talk-scene { height: 300px; }
  .talk-person { width: 88px; }
  .talk-person svg { height: 64px; }
  .talk-bubble { max-width: 180px; font-size: 14px; }
  .simp-track { height: 96px; width: 30px; }
  .simp-col { width: 72px; }
  .simp-pct { font-size: 14px; }
  .simp-merge { left: 0; right: 0; }
  .eco-scene { height: 360px; }
  .eco-region { height: 92px; padding-top: 24px; }
  .eco-region b, .eco-region span { font-size: 11px; }
  .dist-row { grid-template-columns: 1fr 1fr; }
  .dist-scene { min-height: 360px; }
}

.families[hidden],
.day-row[hidden],
.tue-board[hidden] { display: none; }

#families { justify-content: center; }
.families .family {
  border: 3px solid #f5c518;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.family.is-out { opacity: 0.18; }
.families.is-many { gap: 6px; min-height: 0; }
.families.is-many .family { padding: 3px 3px 14px; border-width: 2px; }
.families.is-many .kid { width: 32px; height: 40px; }
.kid i {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0 2px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #0c1438;
  color: #0c1438;
  white-space: nowrap;
}
.kid i.is-tu { background: #f5c518; }
.day-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 8px 0 0;
}
.day-row span {
  min-width: 36px;
  text-align: center;
  border: 2px solid #0c1438;
  border-radius: 10px;
  padding: 4px 6px;
  font-weight: 800;
  background: #ffffff;
}
.day-row .is-tu { background: #f5c518; }
.tue-board { opacity: 0; }
.tue-board.is-on { opacity: 1; transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.tue-label { margin: 10px 0 4px; font-size: 14px; font-weight: 800; }

.trend { display: none; width: 100%; height: auto; aspect-ratio: 640 / 210; margin-top: 12px; }
.trend.is-on { display: block; }
.chord-box svg { width: min(320px, 100%); }

.sb-board { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sb-board .bed { height: 88px; width: auto; }
.sb-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 140px;
  padding: 8px 10px 10px;
  border: 3px solid #f5c518;
  border-radius: 16px;
  background: #ffffff;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sb-week.is-dim { opacity: 0.42; }
.sb-week.is-count,
.wake.is-awake.is-count { box-shadow: inset 0 0 0 3px #0c1438; }
.sb-week.is-heads .wake.is-awake { background: #5ec5a7; border: 3px solid #f5c518; }
.sb-week.is-tails .wake.is-awake { background: #fe8e83; border: 3px solid #f5c518; }
.sb-week b { font-weight: 800; }
.sb-week .coin { height: 56px; width: auto; }

@media (max-width: 640px) {
  .families.is-many .kid { width: 26px; height: 34px; }
  .kid i { font-size: 7px; }
  .day-row span { min-width: 28px; padding: 3px 4px; font-size: 13px; }
  .sb-week { min-width: 0; flex: 1 1 120px; }
  .sb-board .bed { height: 72px; }
}
