:root {
  --cobalt: #243bb8;
  --deep: #17235a;
  --paper: #f5f7ff;
  --yellow: #ffda57;
  --pink: #ff82b2;
  --mint: #9be9cc;
  --blue: #a7c7ff;
  --orange: #ffb581;
  --ink: #182451;
  --muted: #bfc9f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cobalt);
  color: var(--paper);
  font:
    17px/1.5 ui-rounded,
    "Avenir Next",
    Avenir,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--pink);
  outline-offset: 4px;
}
.primary {
  background: var(--yellow);
}
.wide {
  width: 100%;
}
.text-button {
  background: transparent;
  color: inherit;
  padding: 10px 0;
  text-align: left;
  justify-content: flex-start;
  font-weight: 600;
}
.danger {
  color: var(--pink);
}
input,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 2px solid #dce1f5;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 18px;
}
label {
  font-size: 0.9rem;
  font-weight: 700;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(44px, 5.8vw, 90px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 850;
  margin-bottom: 30px;
}
h2 {
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 21px;
}
p {
  max-width: 70ch;
}
small {
  font-size: 13px;
  display: block;
  line-height: 1.5;
}
strong,
b {
  font-weight: 800;
}
em {
  font-style: normal;
  color: var(--yellow);
}
.shell {
  min-height: 100vh;
  padding: 26px 4vw 22px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 800;
}
.header-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mode {
  font-size: 12px;
  border: 1px solid #ffffff55;
  padding: 6px 10px;
  border-radius: 30px;
  white-space: nowrap;
}
.mode.demo {
  background: #fff2;
  color: #fff;
}
.connection {
  font-size: 12px;
  color: #ffda57;
  white-space: nowrap;
}
.connection::before {
  content: "•";
  margin-right: 5px;
}
.connection.live {
  color: var(--mint);
}
.icon-button {
  background: #ffffff18;
  color: white;
  width: 44px;
  padding: 4px;
  font-size: 24px;
}
.section-note {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.4;
  color: #e0e7ff;
}
.stage-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 6vw;
  align-items: center;
  min-height: 70vh;
}
.stage-grid h1 {
  font-size: clamp(56px, 6.8vw, 110px);
}
.join-ticket {
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  max-width: 380px;
  transform: rotate(2deg);
  box-shadow: 12px 14px 0 #17235a55;
  justify-self: end;
}
.join-ticket img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: white;
  border-radius: 10px;
  padding: 10px;
}
.join-ticket p {
  margin: 16px 0 0;
  font-weight: 700;
}
.room-code {
  display: block;
  font-size: clamp(38px, 4vw, 66px);
  letter-spacing: 0.08em;
  line-height: 1.25;
}
.join-url {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
  font-weight: 700;
  margin: 8px 0;
}
.audience-count {
  font-size: 23px;
  font-weight: 750;
  margin: 22px 0 12px;
}
.arrivals {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-height: 180px;
  overflow: auto;
}
.name-chip {
  background: #ffffff1c;
  padding: 7px 14px;
  border-radius: 22px;
  font-size: 18px;
  animation: pop 0.25s ease-out;
}
.flow {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  color: #bec9fa;
  font-size: 15px;
}
.flow span {
  padding: 8px 0;
  border-top: 3px solid transparent;
}
.flow .current {
  color: var(--yellow);
  border-color: var(--yellow);
}
.flow .done {
  color: var(--mint);
}
.opening {
  position: relative;
  min-height: 72vh;
  padding-top: 3vh;
}
.opening h1 {
  font-size: clamp(60px, 8vw, 130px);
  max-width: 60%;
}
.receipt {
  position: absolute;
  right: 5vw;
  top: 2vh;
  background: var(--paper);
  color: var(--ink);
  width: 34%;
  padding: 32px;
  transform: rotate(4deg);
  border-radius: 4px;
  box-shadow: 15px 15px 0 #17235a66;
}
.receipt > span {
  font-size: 14px;
  display: block;
  margin-bottom: 26px;
}
.receipt > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 2px dashed #17235a44;
}
.receipt .duplicate {
  color: #a3265a;
}
.receipt p {
  font-size: 26px;
  margin: 30px 0 0;
}
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 35px 0;
}
.rules article {
  padding: 26px 0;
  border-top: 3px solid #9dadf5;
}
.rules article > b {
  font-size: 62px;
  color: var(--yellow);
  line-height: 1.1;
  display: block;
  margin-bottom: 25px;
}
.rules p {
  font-size: 21px;
  color: #e0e7ff;
}
.callout {
  border-left: 5px solid var(--yellow);
  background: #17235a40;
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  margin: 22px 0;
  font-size: 18px;
}
.auction-stage {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: 7vw;
  min-height: 70vh;
}
.lot-card {
  color: var(--ink);
  border-radius: 22px;
  padding: 24px;
  background: var(--paper);
  position: relative;
  box-shadow: 0 7px 0 #17235a55;
}
.pink {
  background: var(--pink);
}
.mint {
  background: var(--mint);
}
.yellow {
  background: var(--yellow);
}
.orange {
  background: var(--orange);
}
.blue {
  background: var(--blue);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  font-weight: 650;
  opacity: 0.8;
}
.symbol {
  font-size: 75px;
  font-weight: 800;
  line-height: 1.4;
}
.lot-card h2 {
  font-size: 35px;
  margin-bottom: 14px;
}
.lot-card p {
  font-size: 18px;
  line-height: 1.4;
}
.lot-card small {
  opacity: 0.8;
}
.lot-card.large {
  padding: 36px;
  transform: rotate(-3deg);
  max-width: 520px;
}
.large .symbol {
  font-size: 105px;
}
.large h2 {
  font-size: clamp(36px, 3.5vw, 58px);
}
.large p {
  font-size: 24px;
}
.large small {
  font-size: 17px;
}
.auction-stakes h1 {
  font-size: clamp(44px, 5vw, 80px);
}
.timer {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 20px 0;
}
.timer.urgent {
  color: var(--pink);
}
.stakes {
  display: flex;
  gap: 40px;
  margin: 24px 0;
}
.stakes strong {
  font-size: 48px;
  display: block;
  line-height: 1.1;
}
.stakes span {
  display: block;
  font-size: 17px;
  color: var(--muted);
}
.workshop-stage {
  text-align: center;
}
.workshop-stage .lead {
  margin: 15px auto;
}
.workshop-stage h1 {
  font-size: clamp(50px, 6vw, 85px);
}
.slot-visual {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 38px;
  align-items: center;
}
.slot-visual span:nth-child(odd) {
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  width: 85px;
  padding: 18px;
}
.results-show h1 {
  max-width: 1000px;
}
.leaderboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.leader-row {
  background: #ffffff14;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
}
.leader-row small {
  color: var(--muted);
  margin-top: 4px;
}
.leader-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.leader-row .verdict {
  font-size: 30px;
  color: var(--mint);
}
.leader-row.winner {
  background: var(--yellow);
  color: var(--ink);
  animation: pop 0.35s ease-out;
}
.winner small,
.winner .verdict {
  color: var(--ink);
}
.leader-row.out {
  background: #17235a66;
}
.out .verdict {
  color: var(--pink);
}
.row-result {
  text-align: right;
  font-size: 15px;
}
.evidence {
  margin-top: 24px;
}
.evidence p {
  font-size: 16px;
  margin: 14px 0;
}
.pause-banner {
  padding: 14px 20px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 20px;
}
.host-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 50px;
}
.host h1 {
  font-size: 56px;
}
.host-sidebar > section,
.host-sidebar > form {
  background: #17235a88;
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.host-sidebar h2 {
  font-size: 23px;
}
.host-sidebar button {
  margin: 8px 0;
  width: 100%;
}
.host-sidebar a {
  display: block;
  margin-top: 16px;
}
.host-sidebar .timer {
  font-size: 55px;
}
.host-sidebar .network-check {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.health {
  display: flex;
  gap: 28px;
}
.health span {
  font-size: 13px;
}
.health b {
  font-size: 25px;
  display: block;
}
.cue-preview {
  max-width: 470px;
  margin: 26px 0;
}
.cue-preview .lot-card {
  padding: 26px;
}
.host-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.host-actions .primary {
  font-size: 21px;
  padding: 20px 26px;
}
.quick-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.setup {
  max-width: 850px;
  margin: 5vh auto;
}
.setup form {
  max-width: 500px;
  background: #17235a70;
  padding: 26px;
  border-radius: 16px;
  margin: 25px 0;
}
.room-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.room-list button {
  display: block;
  text-align: left;
}
.room-list span {
  display: block;
  font-size: 13px;
  font-weight: 400;
}
.join-main {
  max-width: 450px;
  margin: 45px auto;
}
.join-title .brand-mark {
  width: 65px;
  height: 65px;
  font-size: 45px;
  margin-bottom: 28px;
}
.join-main h1 {
  font-size: 58px;
}
.join-main form {
  background: var(--paper);
  color: var(--ink);
  padding: 26px;
  border-radius: 20px;
  margin-top: 30px;
}
.join-main small {
  margin-top: 16px;
  color: #506080;
}
.play.shell {
  padding: 18px;
}
.play header {
  max-width: 620px;
  margin: 0 auto 20px;
  align-items: flex-start;
}
.play .brand {
  font-size: 16px;
  gap: 8px;
}
.play .brand-mark {
  width: 30px;
  height: 30px;
  font-size: 22px;
}
.play .header-right {
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.play .mode {
  font-size: 10px;
  padding: 4px 8px;
}
.play .connection {
  font-size: 10px;
}
.phone-main {
  max-width: 540px;
  margin: auto;
}
.wallet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: #17235a66;
  margin: 0 0 26px;
}
.wallet > span {
  font-size: 18px;
  font-weight: 700;
}
.wallet > strong {
  font-size: 34px;
  line-height: 1.1;
  color: var(--yellow);
  text-align: right;
}
.wallet small {
  font-size: 11px;
  line-height: 1.2;
  color: #d8dffb;
}
.wallet > span small {
  display: inline;
  font-weight: 500;
  margin-left: 5px;
}
.play h1 {
  font-size: 43px;
}
.play h2 {
  font-size: 25px;
}
.play .lot-card {
  padding: 22px;
}
.play .lot-card h2 {
  font-size: 31px;
}
.play .symbol {
  font-size: 60px;
  line-height: 1.25;
}
.player-hero {
  text-align: center;
  padding: 15px 6px 25px;
}
.player-hero p {
  font-size: 18px;
  color: #dce4ff;
}
.player-paddle {
  width: 90px;
  height: 100px;
  background: var(--yellow);
  border-radius: 45px 45px 32px 32px;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 55px;
  font-weight: 800;
  margin: 0 auto 28px;
  box-shadow: 0 8px 0 #17235a66;
}
.ticket-info {
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 15px;
  background: #17235a55;
  border-radius: 10px;
}
.bid-status {
  padding: 18px;
  background: #17235a80;
  border-radius: 12px;
  margin-top: 22px;
}
.bid-status span {
  display: block;
  font-size: 14px;
  color: #dce4ff;
}
.bid-status.winning {
  background: var(--mint);
  color: var(--ink);
}
.bid-status.winning span {
  color: var(--ink);
}
.play .timer {
  text-align: center;
  font-size: 52px;
  margin: 15px 0;
}
.bid-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 14px;
}
.bid-controls input {
  font-size: 30px;
  text-align: center;
  margin: 0;
  font-weight: 800;
  min-width: 0;
}
.bid-controls button {
  font-size: 30px;
  width: 58px;
  flex-shrink: 0;
  padding: 8px;
}
.saved-bid {
  margin: 14px 0 6px;
  font-size: 15px;
}
.inventory {
  margin: 30px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
  text-align: right;
  color: var(--muted);
}
.inventory-grid {
  display: grid;
  gap: 9px;
}
.component {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 15px;
  gap: 15px;
  border: 3px solid transparent;
}
.component:disabled {
  opacity: 0.85;
}
.component > span {
  font-size: 33px;
  width: 32px;
  text-align: center;
}
.component > div {
  flex: 1;
}
.component b {
  font-size: 16px;
  display: block;
}
.component small {
  font-size: 12px;
  font-weight: 400;
}
.component i {
  font-style: normal;
  font-size: 22px;
}
.component.selected {
  border-color: white;
  box-shadow: 0 0 0 2px var(--yellow);
}
.baseline {
  display: flex;
  justify-content: space-between;
  background: #17235a55;
  border: 1px dashed #ffffff55;
  padding: 13px 15px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 12px;
}
.empty {
  background: #17235a55;
  border-radius: 12px;
  padding: 20px;
  color: #dce4ff;
}
.lock-note {
  text-align: center;
  margin-top: 12px;
  color: var(--muted);
}
.swaps {
  margin: 35px 0;
  background: #17235a66;
  padding: 20px;
  border-radius: 16px;
}
.swaps form {
  margin: 20px 0;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-form input {
  margin: 8px 0;
  min-width: 0;
}
.player-id {
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 5px;
}
.proposal {
  border-top: 1px solid #ffffff33;
  padding: 15px 0;
}
.proposal p {
  margin: 5px 0;
}
.proposal .inline-form {
  margin-top: 12px;
}
.private-info {
  background: #17235a66;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}
.private-info summary {
  cursor: pointer;
  font-weight: 700;
}
.private-info p {
  margin: 18px 0;
  padding-left: 12px;
  border-left: 3px solid var(--pink);
  font-size: 15px;
}
.private-info small {
  color: var(--muted);
}
.personal-gates {
  margin: 24px 0;
  text-align: left;
}
.personal-gates > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #ffffff33;
}
.personal-gates b {
  color: var(--yellow);
}
.evidence-copy {
  text-align: left;
  font-size: 15px !important;
  background: #17235a55;
  border-radius: 10px;
  padding: 16px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #17235a;
  padding: 16px;
  border-radius: 12px;
  font-size: 12px;
}
footer {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  margin-top: 30px;
}
footer > span {
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--mint);
  color: var(--ink);
  padding: 15px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 650;
  box-shadow: 0 5px 30px #17235a66;
  z-index: 20;
  opacity: 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%);
  opacity: 1;
}
#toast.error {
  background: var(--pink);
}
.celebrate .player-paddle {
  animation: pop 0.4s ease-out;
}
@keyframes pop {
  0% {
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@media (min-width: 1600px) {
  .shell.stage {
    max-width: 1800px;
    margin: auto;
  }
}
@media (max-width: 850px) {
  .shell {
    padding: 20px;
  }
  header {
    margin-bottom: 24px;
  }
  .header-right {
    gap: 8px;
  }
  .brand {
    font-size: 17px;
  }
  .mode {
    font-size: 10px;
  }
  .stage-grid {
    gap: 30px;
    grid-template-columns: 1.3fr 1fr;
  }
  .stage-grid h1 {
    font-size: 58px;
  }
  .join-ticket {
    padding: 20px;
  }
  .flow {
    gap: 15px;
    flex-wrap: wrap;
  }
  .auction-stage {
    gap: 35px;
  }
  .large .symbol {
    font-size: 75px;
  }
  .large p {
    font-size: 19px;
  }
  .large small {
    font-size: 14px;
  }
  .rules {
    gap: 20px;
  }
  .rules p {
    font-size: 18px;
  }
  .host-grid {
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }
  .host h1 {
    font-size: 43px;
  }
  .receipt {
    right: 0;
    width: 39%;
    padding: 20px;
  }
  .opening .lead {
    max-width: 55%;
  }
  .leaderboard {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .stage-grid,
  .auction-stage,
  .host-grid {
    grid-template-columns: 1fr;
  }
  .stage-grid h1 {
    font-size: 55px;
  }
  .join-ticket {
    justify-self: center;
    max-width: 280px;
  }
  .rules {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rules article {
    padding: 20px 0;
  }
  .rules article > b {
    font-size: 44px;
    margin-bottom: 15px;
  }
  .receipt {
    position: static;
    width: 100%;
    max-width: 400px;
    margin: 25px 0;
    transform: rotate(2deg);
  }
  .opening h1,
  .opening .lead {
    max-width: 100%;
  }
  .stage .header-right .connection {
    display: none;
  }
  .auction-stage {
    gap: 30px;
  }
  .lot-card.large {
    transform: none;
  }
  .large .symbol {
    font-size: 64px;
  }
  .join-main {
    margin: 25px auto;
  }
  .join-main h1 {
    font-size: 48px;
  }
  .flow {
    font-size: 12px;
    gap: 12px;
  }
  .leader-row {
    gap: 10px;
    padding: 13px;
  }
  .row-result {
    font-size: 12px;
  }
  .host-sidebar {
    margin-top: 20px;
  }
  .quick-links {
    flex-wrap: wrap;
  }
  .stage .brand {
    font-size: 15px;
  }
  .stage .icon-button {
    display: none;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .play .brand {
    max-width: 165px;
    line-height: 1.1;
  }
  .baseline {
    font-size: 11px;
    gap: 8px;
  }
  .inline-form button {
    padding: 12px;
  }
  .host-actions {
    flex-direction: column;
  }
  .phone-main .callout {
    font-size: 16px;
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* A live auction puts the clock and competing bids on the projector together. */
.stage:has(.live-auction) {
  padding: 24px 32px;
}
.stage:has(.live-auction) header {
  margin-bottom: 18px;
}
.stage:has(.live-auction) .flow {
  margin-top: 8px;
}
.live-auction {
  display: grid;
  grid-template-columns: 0.9fr 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
}
.race-title {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.race-title h1 {
  font-size: 38px;
  margin: 0;
}
.race-title > span {
  font-size: 17px;
  color: var(--muted);
}
.live-auction .lot-card {
  padding: 22px;
}
.live-auction .lot-card .symbol {
  font-size: 76px;
}
.live-auction .lot-card h2 {
  font-size: 30px;
}
.live-auction .lot-card p {
  font-size: 18px;
}
.live-auction .lot-card small {
  font-size: 14px;
}
.race-clock .section-note {
  margin: 0;
  font-size: 20px;
  color: var(--yellow);
  font-weight: 750;
}
.race-clock .timer {
  font-size: 90px;
  line-height: 1.2;
  margin: 6px 0 10px;
  font-variant-numeric: tabular-nums;
}
.race-clock progress {
  display: block;
  width: 100%;
  height: 12px;
  accent-color: var(--yellow);
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff30;
}
.race-clock progress::-webkit-progress-bar {
  background: #ffffff30;
}
.race-clock progress::-webkit-progress-value {
  background: var(--yellow);
  transition: width 0.2s linear;
}
.cutoff-ticket {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 18px;
  margin-top: 20px;
}
.cutoff-ticket span,
.cutoff-ticket small {
  display: block;
}
.cutoff-ticket span {
  font-weight: 750;
}
.cutoff-ticket strong {
  display: block;
  font-size: 52px;
  line-height: 1.2;
}
.race-rule {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  color: #e0e7ff;
}
.bid-ladder {
  background: #17235a66;
  border-radius: 16px;
  padding: 16px;
}
.bid-ladder h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.bid-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border-top: 1px solid #ffffff24;
}
.bid-rank {
  font-size: 14px;
  color: var(--muted);
}
.bid-row > strong {
  text-align: right;
  font-size: 26px;
  line-height: 1;
  color: var(--mint);
}
.bid-person b {
  font-size: 17px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bid-person small {
  font-size: 10px;
  line-height: 1.2;
  color: var(--mint);
  display: block;
}
.bid-person meter {
  width: 100%;
  height: 9px;
  display: block;
  margin: 2px 0;
}
.bid-person meter::-webkit-meter-bar {
  background: #ffffff18;
  border: 0;
}
.bid-person meter::-webkit-meter-optimum-value {
  background: var(--mint);
}
.bid-person meter::-moz-meter-bar {
  background: var(--mint);
}
.chasing > strong,
.chasing .bid-person small {
  color: var(--pink);
}
.chasing meter::-webkit-meter-optimum-value {
  background: var(--pink);
}
.chasing meter::-moz-meter-bar {
  background: var(--pink);
}
.cutoff-line {
  border-top: 2px dashed var(--yellow);
  font-size: 10px;
  color: var(--yellow);
  padding-top: 3px;
}
.rank-gap {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}
.latest-bid {
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.3;
  margin: 10px 0 0;
  min-height: 18px;
}
.first-bid {
  font-size: 25px;
  padding: 30px 0;
}
.finishing .race-clock progress::-webkit-progress-value {
  background: var(--pink);
}
.finishing .race-clock .section-note {
  color: var(--pink);
}
.finishing .cutoff-ticket {
  box-shadow: 0 0 0 3px var(--pink);
}
@media (prefers-reduced-motion: no-preference) {
  .bid-changed {
    animation: bid-land 0.45s ease-out;
  }
  @keyframes bid-land {
    from {
      background: #ffda5755;
      transform: translateX(-5px);
    }
    to {
      background: transparent;
      transform: none;
    }
  }
}
@media (max-width: 850px) {
  .live-auction {
    grid-template-columns: 1fr 1fr;
  }
  .live-auction > .lot-card {
    display: none;
  }
  .race-title h1 {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .live-auction {
    grid-template-columns: 1fr;
  }
  .race-title {
    display: block;
  }
  .race-clock .timer {
    font-size: 72px;
  }
  .stage:has(.live-auction) {
    padding: 20px;
  }
}
/* Paused auctions keep the full ranking inside a 720p projector. */
.stage:has(.live-auction) .pause-banner {
  padding: 6px 16px;
  margin-bottom: 10px;
  font-size: 14px;
}
.stage:has(.live-auction):has(.pause-banner) .bid-row {
  padding: 0;
}
/* During bidding, bring the controls forward on the actual participant phone. */
.play:has(#bid-form) .lot-card {
  padding: 16px;
}
.play:has(#bid-form) .lot-card .symbol {
  display: none;
}
.play:has(#bid-form) .lot-card h2 {
  font-size: 25px;
  margin: 12px 0 8px;
}
.play:has(#bid-form) .lot-card p {
  font-size: 15px;
  margin: 8px 0;
}
.play:has(#bid-form) .lot-card small {
  font-size: 12px;
}
/* An outbid alert must not cover the next bid action. */
body:has(#bid-form) #toast {
  top: 12px;
  bottom: auto;
  font-size: 14px;
  padding: 10px 16px;
  transform: translateX(-50%) translateY(-130%);
}
body:has(#bid-form) #toast.show {
  transform: translateX(-50%) translateY(0);
}
/* Short desktop projectors must show the whole cue, including its footer. */
@media (min-width: 900px) and (max-height: 850px) {
  .shell.stage {
    padding: 20px 3vw;
  }
  .stage > header {
    margin-bottom: 20px;
  }
  .stage .flow {
    margin-top: 18px;
  }
  .stage .instructions h1,
  .stage .debrief h1 {
    font-size: 68px;
    margin-bottom: 20px;
  }
  .stage .rules {
    margin: 20px 0;
    gap: 24px;
  }
  .stage .rules article {
    padding: 18px 0;
  }
  .stage .rules article > b {
    font-size: 48px;
    margin-bottom: 16px;
  }
  .stage .rules h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .stage .rules p {
    font-size: 18px;
  }
  .stage .callout {
    margin: 16px 0;
    padding: 14px 20px;
  }
  .stage .results-show h1 {
    font-size: 54px;
    max-width: none;
    margin-bottom: 18px;
  }
  .stage .results-show .lead {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .stage .results-show .evidence {
    margin-top: 14px;
  }
  .stage .workshop-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 40px;
    align-items: center;
    min-height: 65vh;
  }
  .stage .workshop-stage .section-note {
    grid-column: 1 / -1;
    margin: 0;
  }
  .stage .workshop-stage h1 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 70px;
  }
  .stage .workshop-stage .lead {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 24px;
  }
  .stage .workshop-stage .slot-visual {
    grid-column: 1;
    grid-row: 3;
  }
  .stage .workshop-stage .timer {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    font-size: 80px;
  }
  .stage .workshop-stage > p:not(.lead),
  .stage .workshop-stage > small {
    grid-column: 1 / -1;
    margin: 0;
    max-width: none;
  }
}

/* The auction's sensory layer is event-driven, never tied to snapshot rerenders. */
.name-chip,
.leader-row.winner,
.celebrate,
.celebrate .player-paddle,
.bid-changed {
  animation: none;
}
.feedback-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feedback-controls button {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #ffffff38;
  background: #ffffff0c;
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
}
.feedback-controls button[aria-pressed="true"] {
  border-color: #ffda5780;
  color: var(--yellow);
}
.phone-main footer .feedback-controls {
  margin: 10px 0;
}
.lot-card {
  position: relative;
}
.sold-seal {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 15px;
  padding: 6px 18px;
  border: 5px double currentColor;
  color: var(--deep);
  background: var(--yellow);
  border-radius: 8px;
  transform: rotate(-12deg);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 4px 6px 0 #17235a22;
}
.race-clock {
  position: relative;
  isolation: isolate;
}
.race-clock::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 124px;
  height: 124px;
  right: 0;
  top: 15px;
  border-radius: 50%;
  opacity: 0.2;
  background: conic-gradient(var(--yellow) var(--remaining, 100%), #ffffff25 0);
  mask: radial-gradient(transparent 58%, #000 60%, #000 66%, transparent 68%);
  pointer-events: none;
}
.finishing .race-clock::before {
  background: conic-gradient(var(--pink) var(--remaining, 100%), #ffffff25 0);
  opacity: 0.45;
}
.race-clock progress::-webkit-progress-value {
  transition:
    width 200ms linear,
    background-color 200ms ease;
}
.race-clock progress::-moz-progress-bar {
  transition:
    width 200ms linear,
    background-color 200ms ease;
}
#auction-effects {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 60;
  contain: strict;
}
.auction-paper {
  position: absolute;
  width: 10px;
  height: 22px;
  border-radius: 2px;
}
#auction-signal {
  position: fixed;
  z-index: 55;
  right: 30px;
  bottom: 62px;
  max-width: min(330px, calc(100vw - 40px));
  padding: 14px 24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 4px 14px 14px 4px;
  box-shadow: 6px 7px 0 #17235a60;
  border-left: 5px dashed #17235a50;
  pointer-events: none;
  visibility: hidden;
  transform: rotate(-2deg);
}
#auction-signal.visible {
  visibility: visible;
}
#auction-signal strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
}
#auction-signal span {
  display: block;
  font-size: 15px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
#auction-signal.open,
#auction-signal.lock {
  background: var(--mint);
}
#auction-signal.play {
  top: 12px;
  bottom: auto;
  right: 16px;
  padding: 10px 16px;
}
#auction-signal.play strong {
  font-size: 20px;
}
.calm-motion *,
.calm-motion *::before,
.calm-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.calm-motion #auction-effects {
  display: none;
}
@media (max-width: 600px) {
  .stage > header {
    flex-wrap: wrap;
  }
  #auction-signal.stage strong {
    font-size: 22px;
  }
}
.teaching-note {
  border-left: 4px solid var(--yellow);
  padding: 12px 18px;
  margin: 18px 0;
  background: #ffffff0c;
}
.teaching-note h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--yellow);
}
.teaching-note p {
  margin-bottom: 8px;
}

/* Teaching controls keep the auction card, clock and bidding action in view. */
.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font:
    700 17px/1 system-ui,
    sans-serif;
  vertical-align: middle;
}
.help-bubble {
  position: fixed;
  z-index: 1000;
  width: min(340px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 2px solid var(--yellow);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 25px #0005;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
.help-bubble[hidden] {
  display: none;
}
.card-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}
.card-switch button:not(.help-button) {
  padding: 8px 14px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}
.card-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.card-switch .help-button {
  margin-left: auto;
}
.lot-card.show-python {
  transform: none;
}
.lot-card.show-python .symbol {
  display: none;
}
.lot-card.show-python h2 {
  margin-top: 14px;
}
.python-example {
  margin: 12px 0;
}
.python-example > span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.python-example pre {
  margin: 8px 0 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font:
    13px/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.large .python-example pre {
  font-size: 17px;
}
.bid-cost {
  font-size: 14px;
  line-height: 1.4;
  margin: 8px 0 12px;
  color: var(--ink);
}
.wallet > strong > small {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bid-status b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
@media (min-width: 900px) and (max-height: 850px) {
  .stage .lot-card.large {
    padding: 26px;
  }
  .stage .large .symbol {
    font-size: 65px;
  }
  .stage .large h2 {
    font-size: 40px;
  }
  .stage .large p {
    font-size: 22px;
  }
  .stage .large small {
    font-size: 15px;
  }
  .stage .race-rule {
    font-size: 14px;
  }
}
.wallet > strong {
  position: relative;
  padding-right: 52px;
}
.wallet .help-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.bid-cost {
  color: var(--paper);
}
.play:has(#bid-form) > header {
  margin-bottom: 16px;
}
.play:has(#bid-form) .wallet {
  margin-bottom: 14px;
  padding: 10px 14px;
}
.play:has(#bid-form) .bid-status {
  margin-top: 14px;
  padding: 10px 14px;
}
.play:has(#bid-form) .timer {
  font-size: 42px;
  margin: 8px 0;
}

.analysis-stage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 5vw;
  align-items: center;
  min-height: 68vh;
}
.analysis-stage h1 {
  font-size: clamp(48px, 6vw, 86px);
}
.analysis-stage .lead {
  font-size: 26px;
}
.discussion-ticket {
  padding: 28px;
  border: 3px solid var(--mint);
  border-radius: 24px;
  text-align: center;
}
.clinic-symbol {
  display: block;
  color: var(--mint);
  font:
    700 64px/1.3 ui-monospace,
    monospace;
}
.discussion-ticket .timer {
  font-size: 48px;
  margin: 12px 0;
}
.discussion-ticket strong {
  color: var(--yellow);
  font-size: 28px;
}
.discussion-ticket small {
  display: block;
}
.build-analysis {
  border: 2px solid var(--mint);
  border-radius: 16px;
  margin: 22px 0;
  overflow: hidden;
}
.build-analysis > summary {
  padding: 16px;
  min-height: 48px;
  cursor: pointer;
  font-weight: 750;
}
.build-content {
  padding: 0 18px 18px;
}
.build-content h2 {
  margin-top: 8px;
}
.build-content li,
.build-content p {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.build-flow {
  list-style: none;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--mint);
}
.build-flow li {
  margin: 18px 0;
}
.build-flow b,
.build-flow span {
  display: block;
}
.build-flow span {
  color: #dce4ff;
}
.build-content details {
  margin: 14px 0;
}
.build-content summary {
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
}
.build-content pre {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.build-limits,
.analysis-boundary {
  color: #dce4ff;
}
.reflection-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.reflection-controls button {
  font-size: 14px;
  padding: 12px;
}
.reflection-controls button[aria-pressed="true"] {
  background: var(--mint);
}
.player-clinic > p {
  font-size: 17px;
}
@media (max-width: 850px) {
  .analysis-stage {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) and (max-height: 850px) {
  .analysis-stage h1 {
    font-size: 68px;
  }
  .analysis-stage .lead {
    font-size: 24px;
  }
}
.player-clinic h1 {
  font-size: 32px;
  margin: 12px 0 16px;
}
.player-clinic > p {
  font-size: 15px;
}
.play .player-clinic .timer {
  font-size: 28px;
  line-height: 1.2;
  margin: 16px 0;
}
.catalog-preview {
  margin: 24px 0;
  border: 1px solid #a7c7ff;
  border-radius: 14px;
  padding: 0 16px;
}
.catalog-preview summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 750;
}
.catalog-preview p {
  font-size: 14px;
}
.catalog-preview ol {
  list-style: none;
  padding: 0;
}
.catalog-preview li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff24;
}
.catalog-preview li > span {
  color: var(--yellow);
  font-size: 24px;
  min-width: 26px;
}
.catalog-preview b,
.catalog-preview small,
.catalog-preview em {
  display: block;
}
.catalog-preview small {
  font-size: 13px;
  color: #dce4ff;
  margin: 4px 0;
}
.catalog-preview em {
  font-size: 11px;
  font-style: normal;
  color: var(--mint);
}
.stage-catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.stage-catalog span {
  background: var(--deep);
  border: 1px solid #ffffff45;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
}
@media (min-width: 900px) and (max-height: 850px) {
  .stage .instructions h1 {
    font-size: 52px;
  }
  .stage .instructions .rules {
    margin: 12px 0;
  }
  .stage .instructions .rules article {
    padding: 10px 0;
  }
  .stage .instructions .rules article > b {
    font-size: 36px;
    margin-bottom: 10px;
  }
  .stage .instructions .rules p {
    font-size: 16px;
  }
  .stage .instructions .rules h2 {
    font-size: 22px;
  }
  .stage .instructions .callout {
    font-size: 16px;
  }
}

/* A confirmed component lands in its tray; odds describe the real server draw. */
.award-slot {
  padding: 18px 8px 12px;
  border-bottom: 5px solid var(--ink, #17235a);
  margin: 0 auto 20px;
  max-width: 320px;
}
.award-ticket {
  background: #9be9cc;
  color: #17235a;
  border: 2px solid #17235a;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 5px 5px 0 #17235a;
  display: grid;
  gap: 8px;
}
.award-ticket > span {
  font-size: 48px;
  line-height: 1;
}
.award-ticket > strong {
  font-size: 23px;
}
.award-ticket > small {
  font-size: 13px;
}
.draw-receipt {
  text-align: left;
  border: 1px solid currentColor;
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0;
  font-size: 14px;
}
.draw-receipt.has-draw {
  background: #ffda57;
  color: #17235a;
}
.draw-receipt p {
  font-size: 14px;
  margin: 10px 0;
  line-height: 1.45;
}
.draw-receipt small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}
.draw-odds {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.draw-odds strong {
  font-size: 36px;
  line-height: 1.2;
}
.draw-odds span {
  max-width: 155px;
  font-size: 13px;
}
.draw-receipt meter {
  width: 100%;
  height: 18px;
  margin-top: 8px;
  accent-color: #243bb8;
}
.bid-row.drawing {
  background: #ffda57;
  color: #17235a;
}
.purchase-receipt > h1 {
  font-size: 36px;
}

.player-hero .draw-receipt p {
  color: inherit;
}

/* The auctioneer's promise sits next to its punchline, never among result metrics. */
.item-promise {
  margin: 14px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #17235a40;
}
.item-promise b {
  display: block;
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.item-promise small {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  opacity: 1;
}
.lot-card.large .item-promise {
  display: none;
}
.sales-tagline {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  max-width: 34ch;
}
.catalog-hook {
  display: block;
  margin-top: 6px;
}
.catalog-preview .catalog-concept {
  font-weight: 700;
}
.live-auction .item-promise {
  margin: 8px 0;
  padding-bottom: 8px;
}
.live-auction .item-promise b {
  font-size: 19px;
}
