/* The session page: the way in, the lobby, a strip over the running game, and the results between rounds.

   The chrome is the hub's: achromatic, with --attract for what is active.
   The four seat colours (--seat) are the players', and mark only seats and
   players: the table, the names, the standings' swatches. */

body {
  margin: 0;
  min-height: 100vh;
  background: var(--room-deep);
  color: var(--light);
  font-family: var(--face);
  font-size: var(--step-0);
}
body.has-chooser {
  overflow: hidden;
}

.session-head {
  display: flex;
  align-items: center;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.session-head__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--dust-dim);
}
.session-head__trail a {
  color: var(--light);
  text-decoration: none;
}
.session-head__trail a:hover {
  text-decoration: underline;
}
.session-head .settings-button {
  margin-inline-start: auto;   /* Settings sits at the head's far end */
}
.session-head__brand {
  font-variation-settings: 'wdth' 100, 'wght' 800;
}
.session-head__trail [aria-current] {
  color: var(--dust);
}

.session {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 0.8rem + 2vw, 2.5rem) var(--gutter) 3rem;
}
.panel:not(.lobby) {
  max-width: 44rem;
  margin-inline: auto;
}
.panel h2 {
  font-size: var(--step-2);
  margin: 0 0 0.75rem;
  font-variation-settings: 'wdth' 104, 'wght' 820;
}
.panel--note {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  padding-top: 2rem;
}
.hint {
  color: var(--dust);
}
.notice {
  padding: 0.6rem 0.8rem;
  border-inline-start: 3px solid var(--attract);
  background: var(--riser);
}
button,
.primary {
  font: inherit;
  color: var(--light);
  background: var(--riser-lit);
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover {
  border-color: var(--dust-dim);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--attract);
  color: var(--attract-ink);
  border-color: transparent;
  font-weight: 700;
}
.primary:hover:not(:disabled) {
  filter: brightness(1.06);
}
.primary--big {
  padding: 0.85rem 1.4rem;
  border-radius: 0.8rem;
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 102, 'wght' 800;
  box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.35);
}
.link {
  background: none;
  border: 0;
  padding: 0.4rem 0;
  color: var(--dust);
  text-decoration: underline;
}
.link:hover {
  color: var(--light);
}
a {
  color: var(--light);
}

/* --- the way in: host, or pick a name ----------------------------------------- */

.intro {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-top: clamp(0.5rem, 0.2rem + 2vw, 2rem);
}
.intro h2 {
  margin: 0;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 112, 'wght' 900;
}
.intro__emblem {
  width: 3.4rem;
  height: 3.4rem;
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--riser);
  border: 1px solid var(--hair-bright);
}
.intro__blurb {
  max-width: 38rem;
  color: var(--dust);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* The game a session opens with. */
.first-pick {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 30rem);
  padding-block: 0.5rem 0.5rem; padding-inline: 0.5rem 1rem;
  border-radius: 0.9rem;
  background:
    radial-gradient(80% 120% at 0% 50%, color-mix(in oklab, var(--g-glow) 28%, transparent), transparent 70%),
    var(--riser);
  border: 1px solid color-mix(in oklab, var(--g-light) 40%, transparent);
  margin: 0.2rem 0 0.4rem;
}
.first-pick__shot {
  flex: none;
  width: 6.4rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.55rem;
}
.first-pick__text {
  display: grid;
  min-width: 0;
}
.first-pick__label {
  color: var(--g-light);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-variation-settings: 'wdth' 105, 'wght' 700;
}
.first-pick__name {
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 100, 'wght' 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.first-pick__meta {
  color: var(--dust);
  font-size: var(--step--1);
}

.join-box {
  display: grid;
  gap: 0.35rem;
  width: min(100%, 26rem);
  margin-top: 0.6rem;
}
.join-box__label {
  color: var(--dust);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-variation-settings: 'wdth' 105, 'wght' 700;
}
.join-box__field {
  display: flex;
  border: 1px solid var(--hair-bright);
  border-radius: 0.7rem;
  background: var(--riser);
  overflow: hidden;
}
.join-box__field:focus-within {
  border-color: var(--light);
}
.join-box__field input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 0;
  background: transparent;
  outline: none;
}
.join-box__field input::placeholder {
  color: var(--dust-dim);
}
.join-box__field button {
  border: 0;
  border-inline-start: 1px solid var(--hair-bright);
  border-radius: 0;
  font-weight: 760;
}
.join-box__note {
  font-size: var(--step--1);
}

.join {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}
.join .hint,
.join .first-pick {
  margin-bottom: 0.4rem;
}
.join__names {
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0;
}
.join__name {
  padding: 1rem;
  border-radius: 0.8rem;
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 100, 'wght' 760;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.join__own {
  display: block;
  margin-top: 0.15rem;
  color: var(--dust);
  font-size: var(--step--1);
  font-variation-settings: 'wdth' 100, 'wght' 500;
}
.join__name:hover,
.join__name:focus-visible {
  border-color: var(--seat);
  box-shadow: inset 0 0 0 1px var(--seat), 0 0 1.4rem color-mix(in oklab, var(--seat) 25%, transparent);
  background: color-mix(in oklab, var(--seat) 10%, var(--riser-lit));
}

.join__more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.6rem;
  margin: 0;
}

/* --- the way in, online: host a session, or join one from an invite ------------- */

.panel.choose,
.panel.styles {
  max-width: 62rem;
}
.choose__ways {
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}
.choose__way {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.55rem;
  padding: 1.3rem 1.4rem 1.45rem;
  border-radius: 1.1rem;
  background: var(--riser);
  border: 1px solid var(--hair-bright);
}
/* Hosting is the way most begin: its tile glows the hub's amber. */
.choose__way--host {
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in oklab, var(--attract) 16%, transparent), transparent 70%),
    var(--riser);
  border-color: color-mix(in oklab, var(--attract) 35%, var(--hair-bright));
}
.choose__title {
  margin: 0;
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 104, 'wght' 820;
}
.choose__text {
  margin: 0;
  color: var(--dust);
  line-height: 1.5;
}
.choose__host {
  margin-top: 0.35rem;
}
.choose__form {
  width: 100%;
  margin-top: 0.35rem;
}
.join-box.is-wrong .join-box__field {
  border-color: #f87171;
}
.choose__how a {
  color: var(--light);
  text-decoration-color: var(--hair-bright);
  text-underline-offset: 0.2em;
}
.choose__how a:hover {
  text-decoration-color: currentColor;
}

/* --- Random Mode on your own: how to play, four big buttons, two by two ------------ */

.styles__list {
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.4rem 0 0.6rem;
}
.styles__pick {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.55rem;
  min-height: 10rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 1.1rem;
  background: var(--riser);
  border: 1px solid var(--hair-bright);
  text-align: start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.styles__pick:hover,
.styles__pick:focus-visible {
  border-color: var(--attract);
  box-shadow: inset 0 0 0 1px var(--attract), 0 0 1.6rem color-mix(in oklab, var(--attract) 22%, transparent);
  transform: translateY(-2px);
}
.styles__mark {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--room-deep);
  color: var(--attract);
}
.styles__name {
  font-size: var(--step-1);
  line-height: 1.15;
  font-variation-settings: 'wdth' 104, 'wght' 820;
}
.styles__text {
  color: var(--dust);
  font-size: var(--step--1);
  line-height: 1.5;
}
html.is-pad .styles__pick:focus,
html.is-pad .choose__host:focus {
  outline: 3px solid var(--pad-ring, #8fb8ff);
  outline-offset: 4px;
  transform: translateY(-3px);
}

@media (max-width: 48rem) {
  .choose__ways,
  .styles__list {
    grid-template-columns: 1fr;
  }
  /* On a phone each way is a row: its mark beside its name, what it does under them. */
  .styles__pick {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.9rem;
    min-height: 0;
  }
  .styles__text {
    grid-column: 1 / -1;
  }
}

/* The account and the other two ways to play sit in the head on the way in, beside Settings; a night in play has only Settings. */
.session-head__account {
  margin-inline-start: auto;
  margin-inline-end: 0.7rem;
  gap: 0.45rem;
}
.session-head__account ~ .settings-button {
  margin-inline-start: 0;
}
body:not([data-phase='choose']):not([data-phase='join']) .session-head__account {
  display: none;
}
body:not([data-phase='choose']):not([data-phase='join']) .session-head__account ~ .settings-button {
  margin-inline-start: auto;
}
/* On a phone the way in's heading says where you are: the head keeps room for the account and the ways to play. */
@media (max-width: 30rem) {
  body:is([data-phase='choose'], [data-phase='join']) .session-head__trail > :not(.session-head__brand) {
    display: none;
  }
}
/* The site's pages at the foot, on the way in only. */
.session-foot {
  margin-top: 2rem;
}
body:not([data-phase='choose']) .session-foot {
  display: none;
}

/* --- the lobby: the table on the left, the host's settings on the right ---------- */

.lobby {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 1fr);
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 1rem + 2vw, 3rem);
}
.lobby > .table {
  grid-column: 1 / -1;
}
.lobby__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 0.9rem;
}
.lobby__head h2 {
  margin: 0;
}
.lobby__count {
  color: var(--dust);
  font-size: var(--step--1);
}
/* The table and the host's settings: two columns as tall as the longer of them, so a controller goes
   between them sideways from anywhere in either (padnav.js: sideways takes only what shares the row):
   right from Start, and left from the foot of the settings when they run on past the table. In the
   settings' column, the panel is as tall as its settings. */
.lobby__main,
.lobby__side {
  align-self: stretch;
}
.lobby__panel {
  display: grid;
  gap: 1.1rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--riser);
  border: 1px solid var(--hair);
}
.lobby__panel > * {
  margin: 0;
}
.lobby__wait {
  margin: 1.2rem 0;
}
/* Random Mode on your own (app.js, solo): no seats to fill or friends to invite, what it does instead. */
.lobby__solo {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--dust);
}
.link + .lobby__leave {
  margin-inline-start: 1rem;
}

.seats {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.seat {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  row-gap: 0.25rem;
  align-items: center;
  min-height: 4.8rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--seat) 10%, var(--room));
  border: 1px solid color-mix(in oklab, var(--seat) 38%, transparent);
  animation: seat-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.seat.is-me {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--seat) 60%, transparent), 0 0 1.6rem color-mix(in oklab, var(--seat) 18%, transparent);
}
.seat__puck {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--seat);
  color: var(--room-deep);
  font-variation-settings: 'wdth' 100, 'wght' 860;
  box-shadow: 0 0 1.4rem color-mix(in oklab, var(--seat) 45%, transparent);
}
.seat__name {
  min-width: 0;
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 100, 'wght' 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat__tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}
.seat__tag {
  font-size: var(--step--2);
  color: var(--light);
  border: 1px solid var(--hair-bright);
  border-radius: 1rem;
  padding: 0.05rem 0.5rem;
}
.seat__tag.is-quiet {
  border: 0;
  padding: 0;
  color: var(--dust-dim);
  font-size: var(--step--1);
}
.seat__tag.is-bad {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.45);
}
.seat__kick {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: var(--step--1);
}
.seat.is-empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--hair-bright);
  animation: none;
}
.seat.is-empty .seat__puck {
  background: transparent;
  color: var(--dust);
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--seat) 70%, transparent);
}
.seat.is-empty .seat__name {
  color: var(--dust);
}
/* The players' colours, in the standings and on the results. */
.seat__dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  flex: none;
}

/* The invite: the link, big enough to read out, and a way to send it. */
.invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--riser);
  border: 1px solid var(--hair-bright);
}
.invite__label {
  grid-column: 1 / -1;
  color: var(--dust);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-variation-settings: 'wdth' 105, 'wght' 700;
}
.invite__link {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--step-0);
  color: var(--light);
  overflow-wrap: anywhere;
}
.invite__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.invite__copy {
  background: var(--light);
  color: var(--room-deep);
  border-color: transparent;
  font-weight: 760;
}
.invite__copy:hover {
  background: #fff;
}
.invite__note {
  grid-column: 1 / -1;
  font-size: var(--step--1);
}
.invite--local {
  display: block;
  color: var(--dust);
}
.invite--local .invite__label {
  display: block;
  margin-bottom: 0.3rem;
}

/* Up next: the host's picks, in order, before the hub deals. */
.upnext {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--riser), transparent);
}
.upnext__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.upnext__head h3 {
  margin: 0;
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 104, 'wght' 800;
}
.upnext__add {
  font-weight: 720;
}
.upnext__list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.upnext__item {
  display: grid;
  grid-template-columns: 1.4rem 4.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding-block: 0.4rem 0.4rem; padding-inline: 0.6rem 0.5rem;
  border-radius: 0.75rem;
  background: var(--room);
  border: 1px solid var(--hair);
}
.upnext__item.is-waiting {
  opacity: 0.6;
}
.upnext__n {
  color: var(--dust);
  text-align: center;
  font-variation-settings: 'wdth' 100, 'wght' 800;
}
.upnext__shot {
  display: block;
  width: 4.4rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.45rem;
  background: var(--g-deep);
}
.upnext__text {
  display: grid;
  min-width: 0;
}
.upnext__name {
  font-variation-settings: 'wdth' 100, 'wght' 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upnext__meta {
  color: var(--dust);
  font-size: var(--step--1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upnext__remove {
  padding: 0.3rem 0.6rem;
}
.upnext__empty,
.upnext__then {
  margin: 0.6rem 0 0;
  font-size: var(--step--1);
}

.lobby__start {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.table caption {
  text-align: start;
  color: var(--dust);
  padding-bottom: 0.4rem;
}
.table th,
.table td {
  text-align: start;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--hair);
}

.history {
  padding-inline-start: 1.2rem;
  color: var(--dust);
}

.finale__out {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

@keyframes seat-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@media (max-width: 56rem) {
  .lobby {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 30rem) {
  /* On a phone the table stays a table: four seats two by two, each its number over its name. */
  .seats {
    gap: 0.55rem;
  }
  .seat {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    justify-items: center;
    row-gap: 0.35rem;
    min-height: 0;
    padding: 0.8rem 0.55rem;
    text-align: center;
  }
  .seat__puck {
    grid-row: auto;
    width: 2.3rem;
    height: 2.3rem;
  }
  .seat__name {
    max-width: 100%;
    font-size: var(--step-0);
  }
  .seat__tags {
    grid-column: auto;
    justify-content: center;
  }
  .seat .seat__kick {
    grid-column: auto;
    grid-row: auto;
    margin-inline-start: 0;
  }
  .invite {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Over the game: the round's line and the host's controls ride in the
   player's corner bar (player.css), in its slot between the 🎲 and the ←, in
   its own see-through dark and type, and fade and fold with it. */
.session-strip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  max-width: calc(100vw - 8rem);
  margin-inline-start: 0.2rem;
  padding-block: 0 0; padding-inline: 0.7rem 0.3rem;
  border-inline-start: 1px solid var(--hair, rgba(243, 238, 247, 0.09));
}
.session-strip > * {
  white-space: nowrap;
}
.session-strip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dust, rgba(243, 238, 247, 0.72));
}
.session-strip > .strip__title {
  color: inherit;
}
.session-strip button {
  padding: 0.3rem 0.6rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.session-strip button:hover {
  background: rgba(243, 238, 247, 0.1);
}

/* Over the game, top right and clear of the corner bar: everyone's progress,
   for games that report it. It folds to one button, and leaves with the bar
   when the bar is folded or taken away. */
.session-board {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  z-index: 5;
  min-width: 11rem;
  max-width: min(18rem, 45vw);
  padding: 0.25rem 0.4rem 0.4rem;
  border-start-start-radius: 0; border-start-end-radius: 0; border-end-end-radius: 0; border-end-start-radius: 6px;
  background: rgba(12, 9, 16, 0.62);
  color: var(--light, #f3eef7);
  font: 600 0.8rem/1.25 Archivo, system-ui, sans-serif;
  opacity: 0.88;
  transition: opacity 0.2s;
}
.session-board:hover {
  opacity: 1;
}
.player.is-folded .session-board,
.player.is-bare .session-board,
.session-board[hidden] {
  display: none;
}

/* Again: over the game, low and centred, once this player's run is over and others still play. */
.session-again {
  position: absolute;
  inset-inline: 0;
  bottom: 1.25rem;
  z-index: 6;
  width: max-content;
  max-width: min(26rem, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.1rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid var(--hair-bright, rgba(243, 238, 247, 0.25));
  background: rgba(12, 9, 16, 0.84);
  color: var(--light, #f3eef7);
  font: 600 0.95rem/1.3 Archivo, system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.45);
  animation: pop 320ms both cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.session-again[hidden] {
  display: none;
}
.again__best {
  margin: 0;
  font-size: 1.05rem;
}
.again__go {
  min-width: 9rem;
  font-size: 1.05rem;
}
.again__hint {
  margin: 0;
  color: var(--dust, rgba(243, 238, 247, 0.72));
  font-weight: 500;
  font-size: 0.82rem;
}
@media (prefers-reduced-motion: reduce) {
  .session-again {
    animation: none;
  }
}
.board__toggle {
  display: block;
  width: 100%;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--dust, rgba(243, 238, 247, 0.72));
  font: inherit;
  text-align: end;
  cursor: pointer;
}
.board__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.board__rows li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.15rem 0.35rem;
  border-inline-start: 3px solid var(--seat);
  border-radius: 3px;
}
.board__rows li.is-me {
  background: rgba(243, 238, 247, 0.1);
}
.board__rows li.is-out {
  opacity: 0.5;
}
/* Their feed dropped a moment ago: still in the round, the row waits, quietly blinking. */
.board__rows li.is-quiet {
  opacity: 0.7;
}
.board__rows li.is-quiet .board__label {
  animation: board-quiet 1.6s ease-in-out infinite;
}
@keyframes board-quiet {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .board__rows li.is-quiet .board__label {
    animation: none;
  }
}
.board__name,
.board__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board__label {
  color: var(--dust, rgba(243, 238, 247, 0.72));
  font-weight: 500;
}
.board__score {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.session-results {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1rem;
  background: rgba(12, 9, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.results__card {
  width: min(40rem, 100%);
  padding: 1.5rem;
  background: var(--room);
  border: 1px solid var(--edge);
  border-radius: 1rem;
}
.results__card h2 {
  margin: 0 0 1rem;
  font-size: var(--step-2);
}
.eyebrow {
  margin: 0;
  color: var(--dust);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--step--1);
}
.results__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.results__rows li {
  display: grid;
  grid-template-columns: 1.5rem auto 1fr auto 3rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: var(--riser);
  border-radius: 0.5rem;
}
.results__place {
  font-weight: 800;
}
.results__score {
  color: var(--dust);
}
.results__points {
  text-align: end;
  font-weight: 800;
  color: var(--attract);
}
.results__next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.session-strip[hidden],
.session-results[hidden] {
  display: none;
}

.seat__kick {
  margin-inline-start: auto;
}

.panel > .primary {
  margin: 0.6rem 0;
}

/* How the session is won, and the relay switch, in the lobby. */
.filters legend {
  margin-bottom: 0.5rem;
  color: var(--dust);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-variation-settings: 'wdth' 105, 'wght' 700;
}
/* The number of rounds: − count +, chosen (amber) unless Endless is. */
.rounds-step {
  display: inline-flex;
  align-items: center;
  background: var(--room);
  border: 1px solid var(--edge);
  border-radius: 1rem;
}
.rounds-step.is-chosen {
  border-color: var(--attract);
  box-shadow: 0 0 0 1px var(--attract) inset;
}
.rounds-step__btn {
  min-width: 2rem;
  padding: 0.3rem 0.6rem;
  background: none;
  border: 0;
  border-radius: 1rem;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.rounds-step__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.rounds-step__btn:focus-visible {
  outline: 2px solid var(--attract);
  outline-offset: 2px;
}
.rounds-step__count {
  min-width: 1.6rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rounds-step:not(.is-chosen) .rounds-step__count {
  color: var(--dust);
}
/* Which games the deal draws from: one row of toggles per group. */
.filters {
  display: grid;
  gap: 0.6rem;
  margin: 0.8rem 0;
  padding: 0;
  border: 0;
}
.filters__group {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.6rem;
  align-items: start;
}
.filters__label {
  padding-top: 0.35rem;
  font-weight: 700;
}
.filters__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--room);
  border: 1px solid var(--edge);
  border-radius: 1rem;
  cursor: pointer;
}
.filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filter.is-chosen {
  border-color: var(--attract);
  box-shadow: 0 0 0 1px var(--attract) inset;
}
.filter.is-empty:not(.is-chosen) {
  opacity: 0.4;
  cursor: not-allowed;
}
.filter:has(input:focus-visible) {
  outline: 2px solid var(--attract);
  outline-offset: 2px;
}
/* With a controller, focus takes the pad's ring, so it is never mistaken for a choice (amber). */
html.is-pad .rounds-step__btn:focus,
html.is-pad .filter:has(input:focus),
html.is-pad .relay-switch:has(input:focus) {
  outline: 3px solid var(--pad-ring, #8fb8ff);
  outline-offset: 3px;
}
.filter__name {
  font-weight: 700;
}
.filter__count {
  color: var(--dust);
  font-size: var(--step--1);
}
.filters__note {
  margin: 0;
  font-size: var(--step--1);
}
/* A shared world's plays, on a line of their own under it (filterPicker). */
.filters__under {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-inline-start: 0.85rem;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid var(--edge);
}
.filters__under .filter {
  padding: 0.2rem 0.6rem;
  font-size: var(--step--1);
}
/* Show all / Show fewer: a long row's own switch, quieter than the values it unfolds. */
.filters__more {
  padding: 0.3rem 0.75rem;
  background: none;
  border: 1px dashed var(--hair-bright);
  border-radius: 1rem;
  color: var(--dust);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}
.filters__more:hover {
  color: var(--light);
  border-color: var(--dust-dim);
}
.filters__more:focus-visible {
  outline: 2px solid var(--attract);
  outline-offset: 2px;
}
html.is-pad .filters__more:focus {
  outline: 3px solid var(--pad-ring, #8fb8ff);
  outline-offset: 3px;
}
/* The host's settings, one section after another: how to win, the card, which games, the relay. */
.lobby__panel > .filters,
.lobby__panel > .relay-switch {
  margin: 0;
}
/* A line under each but the last: under, since a fieldset's legend sits in its top border. */
.lobby__panel > .filters:not(:last-child) {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hair);
}
@media (max-width: 30rem) {
  .filters__group {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .filters__label {
    padding-top: 0;
  }
}
.relay-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.6rem;
  align-items: center;
  margin: 0.8rem 0;
}
.relay-switch .hint {
  grid-column: 2;
  font-size: var(--step--1);
}
.relay-switch__name {
  font-weight: 700;
}
.move {
  font-size: 0.75em;
  font-weight: 800;
}
.move.is-up {
  color: var(--light);
}
.move.is-down {
  color: var(--dust-dim);
}

/* The host's game picker, over the lobby. */
.chooser {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  /* One cell, the size of the screen: the panel's long list must not grow it. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 1rem;
}
.chooser[hidden] {
  display: none;
}
.chooser__scrim {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(6, 4, 9, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: default;
}
.chooser__scrim:hover {
  border: 0;
}
.chooser__panel {
  position: relative;
  width: min(100%, 48rem);
  height: min(100%, 44rem);
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  gap: 0.7rem;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: var(--room);
  border: 1px solid var(--hair-bright);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.6);
  animation: card-in 0.22s ease both;
}
.chooser__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.chooser__head h2 {
  margin: 0;
  font-size: var(--step-2);
  font-variation-settings: 'wdth' 104, 'wght' 820;
}
.chooser__hint,
.chooser__count {
  margin: 0;
  font-size: var(--step--1);
}
.chooser__count {
  color: var(--dust);
}
.chooser__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid var(--hair-bright);
  background: var(--riser);
  color: var(--dust);
}
.chooser__search:focus-within {
  border-color: var(--light);
}
.chooser__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--light);
}
.chooser__ways {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chooser__way {
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: var(--step--1);
  font-weight: 650;
}
.chooser__way[aria-checked='true'] {
  background: var(--light);
  color: var(--room-deep);
  border-color: transparent;
}
.chooser__way-count {
  margin-inline-start: 0.35rem;
  opacity: 0.65;
  font-size: var(--step--2);
}
.chooser__list {
  list-style: none;
  margin: 0;
  padding-block: 0 0.2rem; padding-inline: 0 0.2rem;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  align-content: start;
  gap: 0.5rem;
}
.chooser__game {
  width: 100%;
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) 1.9rem;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.4rem 0.4rem; padding-inline: 0.4rem 0.5rem;
  border-radius: 0.7rem;
  background: var(--riser);
  border: 1px solid var(--hair);
  text-align: start;
}
.chooser__game:hover:not(:disabled) {
  border-color: color-mix(in oklab, var(--g-light) 60%, transparent);
}
.chooser__game.is-on {
  border-color: var(--attract);
  box-shadow: inset 0 0 0 1px var(--attract);
}
.chooser__shot {
  display: block;
  width: 4.6rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.45rem;
  background: var(--g-deep);
}
.chooser__text {
  display: grid;
  min-width: 0;
}
.chooser__name {
  font-variation-settings: 'wdth' 100, 'wght' 740;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chooser__meta {
  color: var(--dust);
  font-size: var(--step--2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chooser__mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--hair-bright);
  color: var(--dust);
  font-weight: 800;
}
.is-on .chooser__mark {
  background: var(--attract);
  color: var(--attract-ink);
  border-color: transparent;
}
.chooser__empty {
  padding: 1rem 0;
}
@media (max-width: 40rem) {
  .chooser {
    padding: 0;
  }
  .chooser__panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
}

/* Between rounds: results that land, then the next game spun up from the deck. */
.results__card {
  animation: card-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.results__headline {
  font-weight: 900;
}
.results__rows li {
  grid-template-columns: 2rem auto 1fr auto 3rem;
  animation: row-in 320ms both cubic-bezier(0.2, 0.9, 0.3, 1.2);
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.results__rows li:first-child {
  background: var(--riser-lit);
  border: 1px solid var(--hair-bright);
}
.results__place {
  font-size: 1.2em;
  text-align: center;
}
.results__who {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.results__name {
  font-weight: 700;
}
.results__awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.award {
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
  background: var(--riser-lit);
  border: 1px solid var(--hair-bright);
  color: var(--light);
  font-size: var(--step--1);
  font-weight: 700;
  animation: pop 400ms both cubic-bezier(0.2, 0.9, 0.3, 1.6);
  animation-delay: calc(var(--i, 0) * 110ms + 500ms);
}
.award small {
  font-weight: 400;
  color: var(--dust);
}
.results__stats,
.results__tries {
  color: var(--dust);
  font-size: var(--step--1);
}
.results__points {
  animation: pop 400ms both cubic-bezier(0.2, 0.9, 0.3, 1.6);
  animation-delay: calc(var(--i, 0) * 110ms + 350ms);
}
.results__card .table {
  margin: 1rem 0;
}

.reel {
  height: 2.6rem;
  overflow: hidden;
  margin: 0.8rem auto 0.2rem;
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  /* Once it lands, the reel folds away: the heading below names the game. */
  animation: reel-out 250ms ease-in 1600ms forwards;
}
.reel__strip {
  display: grid;
  animation: spin 1600ms cubic-bezier(0.15, 0.7, 0.25, 1) both;
}
.reel__strip span {
  height: 2.6rem;
  line-height: 2.6rem;
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--dust);
  white-space: nowrap;
}
.reel__strip .is-it {
  color: var(--light);
}
.next__mode {
  margin: 0 0 0.6rem;
  color: var(--dust);
}
.chip {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 1rem;
  background: var(--riser);
  border: 1px solid var(--edge);
  color: var(--light);
  font-weight: 700;
}

/* The splash's countdown, its two answers and the notes under them. */
.splash__count {
  margin: 0.4rem 0 0.8rem;
  font-size: var(--step-2);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.splash__count.is-paused {
  font-size: var(--step-1);
  color: var(--attract);
}
.splash__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.splash__buttons button {
  padding: 0.7rem 1.2rem;
  font-weight: 800;
}
.splash__buttons small {
  font-weight: 500;
  opacity: 0.7;
}
.splash__more[aria-pressed='true'] {
  outline: 2px solid var(--attract);
}
.splash__note {
  min-height: 1.4em;
  margin: 0.8rem 0 0.4rem;
}

/* The end of a session: a podium, the session's awards, the story. */
.finale h2 {
  font-weight: 900;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0.6rem;
  margin: 1rem 0;
}
.podium__step {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.8rem 0.4rem;
  background: var(--riser);
  border: 1px solid var(--edge);
  border-radius: 0.8rem 0.8rem 0 0;
  animation: rise 600ms both cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.podium__step.is-first {
  min-height: 9rem;
  background: var(--riser-lit);
  border-color: var(--hair-bright);
  animation-delay: 700ms;
}
.podium__step.is-second {
  min-height: 7rem;
  animation-delay: 350ms;
}
.podium__step.is-third {
  min-height: 5.5rem;
}
.podium__step.is-empty {
  visibility: hidden;
}
.podium__medal {
  font-size: 1.8rem;
}
.podium__name {
  font-weight: 800;
  text-align: center;
}
.podium__points {
  color: var(--dust);
  font-size: var(--step--1);
}
.finale__awards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.finale__awards li {
  padding: 0.5rem 0.7rem;
  background: var(--riser);
  border-radius: 0.5rem;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}
@keyframes reel-out {
  to {
    height: 0;
    margin: 0;
    opacity: 0;
  }
}
@keyframes spin {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(var(--n, 0) * -1 * var(--row, 2.6rem)));
  }
}
@media (prefers-reduced-motion: reduce) {
  .results__card,
  .results__rows li,
  .award,
  .results__points,
  .reel__strip,
  .podium__step {
    animation: none;
  }
  .reel {
    display: none;
  }
}

.hint a,
.notice a {
  text-decoration: underline;
  text-decoration-color: var(--hair-bright);
  text-underline-offset: 0.2em;
}
.hint a:hover,
.notice a:hover {
  text-decoration-color: currentColor;
}

/* Rating every game of the night at the end. */
.finale__rate {
  margin-block: 1.4rem 0.2rem;
}
.history li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 1rem;
}
.history__thumbs {
  font-size: 0.9rem;
}
.history__model {
  margin-inline-start: auto;
  color: var(--dust);
  font-size: var(--step--1);
}

/* After a round: the results, the rating, the guess at the AI model, and the
   reveal of how the game was made. Each card glows in the played game's own
   colours (--g-light, --g-glow, set on the card), a bar along its top drains
   as its time runs out, and --attract marks what a player picked. */
.session-results .results__card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -20%, color-mix(in srgb, var(--g-glow) 26%, transparent), transparent 62%),
    var(--room);
  box-shadow: 0 1.6rem 4rem -1.2rem color-mix(in srgb, var(--g-glow) 55%, transparent);
}
.stage-timer {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: color-mix(in srgb, var(--g-light) 14%, transparent);
}
.stage-timer span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--g-glow), var(--g-light));
  transform-origin: left;
  transition: transform 220ms linear;
}
[dir='rtl'] .stage-timer span {
  transform-origin: right;
}

/* The results: the winner crowned, and confetti in their colour (fun.js). */
.results__headline {
  animation: pop 480ms both cubic-bezier(0.2, 0.9, 0.3, 1.5) 80ms;
}
.results__place {
  position: relative;
}
.crown {
  position: absolute;
  inset-inline-start: 50%;
  top: -1.05em;
  font-size: 0.9em;
  transform: translateX(-50%) rotate(-14deg);
  animation: crown-in 700ms both cubic-bezier(0.2, 0.9, 0.3, 1.6) 650ms;
}
.results__rows li.is-winner {
  border-color: color-mix(in srgb, var(--g-light) 55%, transparent);
  animation: row-in 320ms both cubic-bezier(0.2, 0.9, 0.3, 1.2), winner-glow 1.6s ease-in-out 900ms 2;
  animation-delay: 120ms, 900ms;
}

/* The results, told like a countdown (app.js, resultsCard): each place lands
   at its own --d, last place first; the winner lands last, at --climax, when
   the lead line gives way to the headline and this player's badge. */
.results__top {
  display: grid;
}
.results__top > * {
  grid-area: 1 / 1;
}
.results__lead {
  margin: 0 0 1rem;
  color: var(--dust);
  font-size: var(--step-2);
  font-weight: 800;
  animation: lead-pulse 700ms ease-in-out infinite alternate, lead-out 250ms ease-in var(--climax) forwards;
}
.session-results .is-results .results__headline {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  text-shadow: 0 0 1.2rem color-mix(in srgb, var(--g-glow) 70%, transparent);
  animation: headline-in 650ms both cubic-bezier(0.2, 0.9, 0.3, 1.5) var(--climax);
}
.session-results .is-void .results__headline {
  animation: pop 480ms both cubic-bezier(0.2, 0.9, 0.3, 1.5) 80ms, shake 420ms ease-in-out 600ms;
}
.results__you {
  justify-self: start;
  width: fit-content;
  margin: -0.3rem 0 0.9rem;
  padding: 0.25rem 0.85rem;
  border-radius: 2rem;
  background: var(--riser);
  border: 1px solid var(--edge);
  font-weight: 800;
  animation: pop 500ms both cubic-bezier(0.2, 0.9, 0.3, 1.8) calc(var(--climax) + 350ms);
}
.results__you.is-first {
  background: var(--attract);
  color: var(--attract-ink);
  border-color: transparent;
}
.is-results .results__rows li {
  animation: place-in 460ms both cubic-bezier(0.2, 0.9, 0.3, 1.3);
  animation-delay: var(--d, 0ms);
}
.is-results .results__rows li.is-winner {
  padding-block: 0.75rem;
  animation: place-in 520ms both cubic-bezier(0.2, 0.9, 0.3, 1.5), winner-glow 1.6s ease-in-out 2;
  animation-delay: var(--d, 0ms), var(--climax);
}
.is-results .results__rows li.is-winner .results__name {
  font-size: var(--step-1);
}
.is-results .results__score {
  color: var(--light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.is-results .results__points {
  animation-delay: calc(var(--d, 0ms) + 280ms);
}
/* On your own: the score counts up in the headline, and a row is the player and their run, with no place or points. */
.is-solo .results__headline .results__score {
  color: var(--attract);
  font-weight: inherit;
}
.is-solo .results__rows li {
  grid-template-columns: auto 1fr;
}
.is-results .award {
  animation-delay: calc(var(--d, 0ms) + 420ms);
}
.is-results .crown {
  animation-delay: var(--climax);
}
.session-results .is-results .table {
  animation: fade-up 450ms both ease-out calc(var(--climax) + 500ms);
}

/*
 * A controller on the cards between rounds (ui/padnav.js): the choice in focus
 * lifts, as a TV's tiles do, ringed in the controller's blue so it never reads
 * as the choice made (amber).
 */
html.is-pad .rate__choice:focus,
html.is-pad .guess__choice:focus,
html.is-pad .splash__buttons button:focus,
html.is-pad .results__next button:focus {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--pad-ring, #8fb8ff);
  outline-offset: 4px;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.45);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
/* A row of buttons beside its countdown only rises: grown, it would cover the line. */
html.is-pad .splash__buttons button:focus,
html.is-pad .results__next button:focus {
  transform: translateY(-2px);
}
/* While a card is up, the next game loads under it, and the card says which: the player's own loading card
   (player.css) waits until the card lifts, for a game still on its way. */
body:has(.session-results:not([hidden])) .player__loading {
  visibility: hidden;
}
/* While a card is up, the controller's hints along the foot show over it. */
body:has(.session-results:not([hidden])) .pad-hints {
  z-index: 90;
}
html.is-pad .rate__choice.is-locked:focus {
  transform: translateY(-3px) scale(1.08);
}
/* The keys 1 to 6 are the keyboard's: with a controller in hand they go. */
html.is-pad .rate__key,
html.is-pad .guess__key {
  visibility: hidden;
}

/* The hub's sound, on or off, in the corner over every card. */
.sound-toggle {
  position: fixed;
  top: max(0.8rem, env(safe-area-inset-top));
  inset-inline-end: 0.8rem;
  z-index: 85;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  background: var(--riser);
  border: 1px solid var(--edge);
}
.sound-toggle[aria-pressed='false'] {
  opacity: 0.7;
}

/* The rating: its own screen, Netflix's three, big enough to tap on a phone. */
.is-rate,
.is-guess {
  text-align: center;
}
.is-rate:focus,
.is-guess:focus {
  outline: none;
}
.rate__title,
.guess__title {
  font-weight: 900;
  animation: pop 480ms both cubic-bezier(0.2, 0.9, 0.3, 1.5) 60ms;
}
.results__card h2.rate__title,
.results__card h2.guess__title {
  margin-bottom: 0.3rem;
}
.rate__why,
.guess__point {
  margin: 0 0 1.1rem;
  color: var(--dust);
}
.rate__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.rate__choice {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 0.9rem 0.5rem;
  border-radius: 1rem;
  background: var(--riser);
  animation: pop 420ms both cubic-bezier(0.2, 0.9, 0.3, 1.6);
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
  transition: transform 160ms var(--ease), background 160ms var(--ease), opacity 200ms var(--ease), border-color 160ms var(--ease);
}
.rate__choice:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--g-light) 60%, transparent);
}
.rate__choice:disabled {
  opacity: 1;
  cursor: default;
}
.rate__face {
  font-size: 2.6rem;
  line-height: 1;
}
.rate__label {
  font-size: var(--step-1);
  font-weight: 800;
}
.rate__key {
  color: var(--dust);
  font-size: var(--step--1);
}
.rate__choice[aria-pressed='true'] {
  border-color: var(--attract);
  background: color-mix(in srgb, var(--attract) 14%, var(--riser));
}
.rate__choice.is-locked {
  background: var(--attract);
  color: var(--attract-ink);
  border-color: transparent;
  transform: scale(1.05);
  animation: stamp 420ms cubic-bezier(0.2, 0.9, 0.3, 1.6);
}
.rate__choice.is-locked .rate__key {
  color: var(--attract-ink);
}
.rate__choice.is-locked[data-vote='-1'] {
  animation: stamp 420ms cubic-bezier(0.2, 0.9, 0.3, 1.6), shake 420ms ease-in-out 420ms;
}
.rate__choice.is-other {
  opacity: 0.4;
  transform: scale(0.96);
}
.rate__why-not {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  color: var(--dust);
  animation: pop 300ms both ease-out;
}
.rate__why-not[hidden] {
  display: none;
}
.rate__reason {
  padding: 0.3rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--step--1);
}
.rate__reason[aria-pressed='true'] {
  border-color: var(--attract);
  background: color-mix(in srgb, var(--attract) 16%, var(--riser));
}
.rate__skip {
  margin-top: 0.8rem;
  color: var(--dust);
  font-size: var(--step--1);
}
.rate__skip[hidden] {
  display: none;
}
.rate__count,
.guess__count {
  margin: 1rem 0 0.5rem;
  font-size: var(--step-1);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* The guess: six models, one for each face and shoulder button. */
.session-results .results__card.is-guess {
  width: min(52rem, 100%);
}
.guess__bot {
  display: inline-block;
  animation: wobble 2.6s ease-in-out 600ms infinite;
}
.guess__choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.guess__choices li {
  display: grid;
  animation: pop 360ms both cubic-bezier(0.2, 0.9, 0.3, 1.5);
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}
.guess__choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  background: var(--riser);
  text-align: start;
  transition: transform 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}
.guess__choice:not([aria-pressed='true']):hover:not(:disabled) {
  background: var(--riser-lit);
  border-color: color-mix(in srgb, var(--g-light) 60%, transparent);
}
.guess__choice:active:not(:disabled) {
  transform: scale(0.97);
}
.guess__choice:disabled {
  opacity: 1;
  cursor: default;
}
.guess__choice[aria-pressed='true'] {
  background: var(--attract);
  color: var(--attract-ink);
  border-color: transparent;
  animation: stamp 380ms cubic-bezier(0.2, 0.9, 0.3, 1.6);
}
.guess__key {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.8;
}
.guess__model {
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 96, 'wght' 800;
  line-height: 1.25;
}
.guess__lock {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.5rem;
  padding: 0 0.4rem;
  border-radius: 0.3rem;
  background: var(--attract-ink);
  color: var(--attract);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  visibility: hidden;
}
.guess__choice[aria-pressed='true'] .guess__lock {
  visibility: visible;
  animation: pop 300ms both cubic-bezier(0.2, 0.9, 0.3, 1.8) 120ms;
}
.guess__who {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.guess__who li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  background: var(--riser);
  border: 1px solid var(--edge);
  color: var(--dust);
  font-size: var(--step--1);
  transition: color 200ms, border-color 200ms;
}
.guess__who li.is-in {
  color: var(--light);
  border-color: var(--hair-bright);
  animation: pop 320ms cubic-bezier(0.2, 0.9, 0.3, 1.8);
}
.guess__who li.is-gone {
  opacity: 0.45;
  text-decoration: line-through;
}
.guess__tick {
  visibility: hidden;
  font-weight: 800;
}
.guess__who li.is-in .guess__tick {
  visibility: visible;
}
.is-rate .results__next,
.is-guess .results__next {
  justify-content: center;
}

/* The reveal: a drumroll, the model, who guessed it, and how the game was made. */
.session-results .results__card.is-data {
  width: min(62rem, 100%);
}
.reveal {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  margin: 0.6rem 0 1.1rem;
  text-align: center;
}
.reveal__lead {
  color: var(--dust);
  font-size: var(--step-1);
  animation: pop 400ms both ease-out;
}
.reveal__reel {
  --row: 3.2rem;
  width: 100%;
  height: var(--row);
  margin: 0;
  animation: reel-out 250ms ease-in 1.35s forwards;
}
.reveal__reel .reel__strip {
  animation: spin 1.35s cubic-bezier(0.25, 0.6, 0.2, 1) both;
}
.reveal__reel .reel__strip span {
  height: var(--row);
  line-height: var(--row);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  font-weight: 900;
  filter: blur(1px);
}
.reveal__reel .reel__strip .is-it {
  filter: none;
}
.results__card .reveal__model {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 0 1.4rem color-mix(in srgb, var(--g-glow) 80%, transparent);
  animation: model-in 760ms both cubic-bezier(0.2, 0.9, 0.3, 1.35) 1.4s;
}
.reveal__sub {
  color: var(--dust);
  animation: fade-up 400ms both ease-out 1.9s;
}
.reveal__you {
  margin-top: 0.3rem;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-weight: 800;
  animation: pop 500ms both cubic-bezier(0.2, 0.9, 0.3, 1.8) 2.1s;
}
.reveal__you.is-right {
  background: var(--attract);
  color: var(--attract-ink);
}
.reveal__you.is-wrong {
  background: var(--riser);
  border: 1px solid var(--edge);
  color: var(--dust);
}
.data__body {
  display: grid;
  gap: 1.2rem;
}
.data__guess,
.data__how {
  min-width: 0;
  animation: fade-up 420ms both ease-out 2.2s;
}
.data__how {
  animation-delay: 1.9s;
}
.data__verdict {
  margin: 0 0 0.7rem;
  font-size: var(--step-1);
  font-weight: 700;
}
.data__guesses li:not(.is-right) {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--dust);
}
.data__guesses li.is-right {
  background: var(--riser-lit);
  border: 1px solid var(--hair-bright);
}
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.8rem;
  background: var(--riser);
  border: 1px solid var(--edge);
  animation: pop 420ms both cubic-bezier(0.2, 0.9, 0.3, 1.5);
  animation-delay: calc(var(--i, 0) * 80ms + 2s);
}
.stat__icon {
  font-size: 1.3rem;
  line-height: 1;
}
.stat__value {
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label {
  color: var(--dust);
  font-size: var(--step--1);
  line-height: 1.3;
}
.stat.is-cost .stat__value,
.stat.is-minutes .stat__value {
  color: var(--g-light);
}
/*
 * The reveal's three headline figures (made.js, LEAD_STATS: the time, the API cost and the tokens; the owner,
 * 2026-11-28) share the first row, larger and lit in the game's colours, each named over its figure; the other
 * tiles follow four a row as before. A phone gives each its own row, the name beside its figure.
 */
.stats.has-lead {
  container-type: inline-size;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.stats.has-lead > .stat {
  grid-column: span 3;
}
.stats.has-lead > .stat.is-lead {
  grid-column: span var(--lead-span, 4);
  grid-template-columns: auto minmax(0, 1fr);
  /* A name that wraps in a narrow tile keeps the three figures level, along the row's foot. */
  align-content: space-between;
  align-items: center;
  column-gap: 0.45rem;
  row-gap: 0.35rem;
  padding: 0.95rem 1rem 1.05rem;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--g-glow) 30%, transparent), transparent 75%),
    var(--riser-lit);
  border-color: color-mix(in oklab, var(--g-light) 60%, transparent);
  box-shadow: 0 0 1.6rem -0.5rem color-mix(in srgb, var(--g-glow) 75%, transparent);
}
.stat__name {
  color: var(--light);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}
.stat.is-lead .stat__value {
  grid-column: 1 / -1;
  color: var(--g-light);
  /* By the tiles' own width, not the window's: a narrow card (Ranked's, or beside a game night's guesses) keeps "$138.39" in its tile. */
  font-size: clamp(1.25rem, 5.4cqi, 2.5rem);
  line-height: 1.05;
  text-shadow: 0 0 1.1rem color-mix(in srgb, var(--g-glow) 80%, transparent);
}
.data__fun {
  margin: 0.8rem 0 0;
  font-weight: 700;
}
.data__fun::before {
  content: '📚 ';
}
.data__facts {
  margin: 0.4rem 0 0;
  color: var(--dust);
  font-size: var(--step--1);
}
.data__raw {
  margin-top: 0.8rem;
}
.data__raw summary {
  display: inline-block;
  list-style: none;
  color: var(--dust);
  font-size: var(--step--1);
  cursor: pointer;
}
.data__raw summary::-webkit-details-marker {
  display: none;
}
.data__raw summary::before {
  content: '▸ ';
}
[dir='rtl'] .data__raw summary::before {
  content: '◂ ';
}
.data__raw[open] summary::before {
  content: '▾ ';
}
.data__raw summary:hover {
  color: var(--light);
}
.data__raw[open] summary {
  margin-bottom: 0.4rem;
}
.json {
  margin: 0;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  background: var(--room-deep);
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  color: var(--light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--step--1);
  line-height: 1.6;
  text-align: start;
}
.json__key {
  color: var(--dust);
}
.json__number {
  font-weight: 700;
}
.json__line.is-mark {
  border-radius: 0.25rem;
  background: var(--riser-lit);
  box-shadow: 0 0 0 0.2rem var(--riser-lit);
}
.json__line.is-mark .json__string {
  color: var(--attract);
  font-weight: 700;
}

/* The flourishes from fun.js. */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 120;
  pointer-events: none;
}
.float-up {
  position: fixed;
  z-index: 121;
  font-size: 1.7rem;
  pointer-events: none;
}

@keyframes place-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
  }
}
@keyframes lead-pulse {
  to {
    opacity: 0.55;
  }
}
@keyframes lead-out {
  to {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
  }
}
@keyframes headline-in {
  from {
    opacity: 0;
    transform: scale(0.4);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes stamp {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.05);
  }
}
@keyframes shake {
  0%,
  100% {
    translate: 0;
  }
  25% {
    translate: -5px;
  }
  75% {
    translate: 5px;
  }
}
@keyframes wobble {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  80% {
    transform: rotate(-12deg);
  }
  90% {
    transform: rotate(10deg);
  }
}
@keyframes crown-in {
  from {
    opacity: 0;
    transform: translate(-50%, -1.2em) rotate(-40deg) scale(0.4);
  }
}
@keyframes winner-glow {
  50% {
    box-shadow: 0 0 1.4rem -0.2rem color-mix(in srgb, var(--g-light) 60%, transparent);
  }
}
@keyframes model-in {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Wide enough, the guesses sit beside how the game was made, so the card fits a laptop's screen with four players. */
@media (min-width: 60rem) {
  .has-guess .data__body {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}
@media (max-width: 50rem) {
  .guess__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 40rem) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats.has-lead > .stat {
    grid-column: span 6;
  }
  .stats.has-lead > .stat.is-lead {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.65rem;
    padding: 0.75rem 0.95rem;
  }
  .stat.is-lead .stat__value {
    grid-column: auto;
    font-size: clamp(1.45rem, 1.1rem + 1.6vw, 1.9rem);
  }
}
@media (max-width: 30rem) {
  /* On a phone the table over a card keeps place, player, points and wins; its awards and rounds are on the final table. */
  .session-results .table th:nth-child(n + 5),
  .session-results .table td:nth-child(n + 5) {
    display: none;
  }
  .session-results .table td:nth-child(2) {
    white-space: nowrap;
  }
  .guess__choices {
    grid-template-columns: 1fr;
  }
  .guess__choice {
    min-height: 3.4rem;
  }
  .rate__choice {
    min-height: 7.5rem;
  }
  .rate__face {
    font-size: 2.1rem;
  }
  .rate__label {
    font-size: var(--step-0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal__reel,
  .results__lead {
    display: none;
  }
  .session-results .is-results .results__headline,
  .session-results .is-void .results__headline,
  .is-results .results__rows li,
  .is-results .results__rows li.is-winner,
  .results__you,
  .session-results .is-results .table {
    animation: none;
  }
  .results__headline,
  .crown,
  .results__rows li.is-winner,
  .rate__title,
  .guess__title,
  .rate__choice,
  .rate__choice.is-locked,
  .rate__choice.is-locked[data-vote='-1'],
  .rate__why-not,
  .guess__bot,
  .guess__choices li,
  .guess__choice[aria-pressed='true'],
  .guess__choice[aria-pressed='true'] .guess__lock,
  .guess__who li.is-in,
  .reveal__lead,
  .reveal__reel,
  .reveal__reel .reel__strip,
  .results__card .reveal__model,
  .reveal__sub,
  .reveal__you,
  .data__guess,
  .data__how,
  .stat {
    animation: none;
  }
  .stage-timer span {
    transition: none;
  }
}

/* --- moments: over the game in a round of moments ------------------------------------------
   Each moment's cue as it begins (its verb, big, and what clears it), a chip with the verb and
   the time draining while it plays, this player's result once their moment is over, and between
   moments how everyone did. It takes no input: the game keeps the keyboard and the controller. */
.moment {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  pointer-events: none;
  color: var(--light);
  font-family: var(--face);
  text-align: center;
}
.moment[hidden],
.player.is-bare .moment {
  display: none;
}
.moment.is-cue,
.moment.is-flash {
  background: radial-gradient(ellipse at center, rgba(12, 9, 16, 0.82), rgba(12, 9, 16, 0.55));
}
.moment.is-done,
.moment.is-time {
  background: rgba(12, 9, 16, 0.45);
}
.moment__verb {
  margin: 0;
  color: var(--attract);
  font-size: clamp(3rem, 2rem + 9vw, 9rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 0.06em 0 var(--attract-ink), 0 0.3em 1.2em rgba(0, 0, 0, 0.6);
  animation: moment-shout 520ms both cubic-bezier(0.2, 0.9, 0.3, 1.5);
}
.moment__goal {
  margin: 0;
  max-width: 32rem;
  font-size: var(--step-1);
  font-weight: 600;
}
.moment__count {
  margin: 0;
  color: var(--dust);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.moment__verdict {
  margin: 0;
  font-size: clamp(2.2rem, 1.6rem + 5vw, 5rem);
  font-weight: 900;
  font-stretch: 112%;
  text-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.6);
  animation: pop 320ms both cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.moment__verdict.is-cleared {
  color: #7ee787;
}
.moment__verdict.is-missed {
  color: #ff7a6e;
}

/* While it plays: a fuse along the top edge, burning down over the moment; the game's screen stays clear. */
.moment.is-play {
  inset: 0 0 auto;
  display: block;
  padding: 0;
}
.moment__time {
  width: 100%;
  height: 5px;
  background: rgba(243, 238, 247, 0.12);
  overflow: hidden;
}
.moment__time span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff7a3d, var(--attract));
  box-shadow: 0 0 10px rgba(255, 180, 61, 0.7);
  transform-origin: left center;
  animation-name: moment-drain;
  animation-timing-function: linear;
  animation-fill-mode: both;
}
[dir='rtl'] .moment__time span {
  transform-origin: right center;
}

/* The round's moments as pips: how this player did in each, and which is on now. */
.moment__pips {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.moment__pips li {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid rgba(243, 238, 247, 0.35);
  font-size: 0.8rem;
  font-weight: 900;
}
.moment__pips li.is-now {
  border-color: var(--attract);
  background: var(--attract);
  animation: moment-pulse 900ms ease-in-out infinite alternate;
}
.moment__pips li.is-cleared {
  border-color: #2f9e55;
  background: #2f9e55;
}
.moment__pips li.is-missed {
  border-color: #b8463c;
  background: #b8463c;
}

/* Between moments: everyone's result, a row each, in their seat's colour. */
.moment__all {
  display: grid;
  gap: 0.25rem;
  min-width: min(16rem, 80vw);
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-0);
  font-weight: 700;
}
.moment__all li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0.7rem;
  border-inline-start: 4px solid var(--seat);
  border-radius: 4px;
  background: rgba(12, 9, 16, 0.6);
}
.moment__all li.is-cleared span:last-child {
  color: #7ee787;
}
.moment__all li.is-missed span:last-child {
  color: #ff7a6e;
}

@keyframes moment-shout {
  from {
    opacity: 0;
    transform: scale(1.8) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes moment-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@keyframes moment-pulse {
  to {
    box-shadow: 0 0 0 0.3rem rgba(255, 180, 61, 0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .moment__verb,
  .moment__verdict,
  .moment__pips li.is-now {
    animation: none;
  }
}

/* The next game's card, in a round of moments: the moments it plays, each its verb and goal. */
.next__moments {
  display: grid;
  justify-items: start;
  gap: 0.3rem;
  margin: 0.2rem 0 0.4rem;
}
.next__moments .eyebrow {
  margin: 0;
}
.next__moments ol {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-0);
}
.next__moments b {
  color: var(--attract);
  font-weight: 900;
  text-transform: uppercase;
}

/* A round of moments' results: each moment's mark under a player's name. */
.results__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: var(--step--1);
  font-weight: 700;
}
.results__marks .is-cleared {
  color: #7ee787;
}
.results__marks .is-missed {
  color: #ff9a8f;
}

/* --- the card before a round (ui/briefing.js), in every way of playing: the title alone, the objective under it,
   how the round is played and the countdown; the controls on the right, a row each, keys apart from what they do --- */

.results__card.briefing,
.world-card.briefing {
  width: min(62rem, 100%);
  text-align: start;
}
.briefing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 1fr);
  gap: 1.4rem 2.2rem;
  align-items: start;
  margin-top: 0.5rem;
}
.briefing__grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.briefing .briefing__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  font-variation-settings: 'wdth' 106, 'wght' 880;
  overflow-wrap: anywhere;
  animation: pop 420ms both cubic-bezier(0.2, 0.9, 0.3, 1.6);
}
.briefing__label {
  margin: 0 0 0.35rem;
  color: var(--dust);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.briefing__objective {
  margin: 0 0 1.1rem;
}
.briefing__goal {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.35;
}
.briefing .next__mode {
  margin: 0 0 0.6rem;
}
.briefing .splash__note {
  margin: 0.6rem 0 0;
}
.briefing > .results__next {
  margin-top: 1.2rem;
}
.briefing__controls {
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--room-deep) 72%, transparent);
}
/* One grid for every row, so what each control does starts on one line; a long set of keys wraps in its column. */
.controls {
  display: grid;
  grid-template-columns: fit-content(14rem) minmax(0, 1fr);
  gap: 0.6rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.controls__row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
}
.controls__row.is-whole .controls__does {
  grid-column: 1 / -1;
}
.controls__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.controls kbd {
  min-width: 1.9rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--hair-bright);
  border-bottom-width: 3px;
  border-radius: 0.4rem;
  background: var(--riser-lit);
  color: var(--light);
  font: 700 var(--step--1) / 1.45 var(--face);
  text-align: center;
  white-space: nowrap;
}
.controls kbd.is-pointer {
  border-radius: 999px;
  border-bottom-width: 1px;
}
.controls__join {
  align-self: center;
  color: var(--dust);
  font-size: var(--step--1);
}
.controls__does {
  font-weight: 600;
  line-height: 1.3;
}
.controls__plays {
  margin: 0.9rem 0 0;
  color: var(--dust);
  font-size: var(--step--1);
}
@media (max-width: 46rem) {
  .briefing__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .controls {
    grid-template-columns: fit-content(9.5rem) minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .briefing .briefing__title {
    animation: none;
  }
}
