/*
 * The front page of paal.net.
 *
 * Two voices. The page's own: Besley for headings, Inter for text, on the trainer's dark ground. And the apps',
 * where the page shows them working (.demo, .panel, .tv): those copy the apps' own stylesheets, so a visitor who
 * signs up arrives at what they were shown.
 */
:root {
  /* The trainer's colours (pokertrainer/frontend/src/styles.css). */
  --night: #0e1014;
  --panel: #161920;
  --panel-2: #1c2029;
  --line: #272c37;
  --ink: #e7e9ee;
  --muted: #8f98a8;
  --gold: #f2c14e;
  --gold-ink: #1a1405;
  --felt-1: #1f7a52;
  --felt-2: #11472f;
  --rail: #2a1d12;
  --pos: #4ade80;
  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
  --suit-s: #111827;
  --suit-h: #d32f2f;
  --suit-d: #1d4ed8;
  --suit-c: #15803d;

  --display: Besley, 'Iowan Old Style', Georgia, serif;
  --text: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* The page's measure and its side margins. */
  --wide: 1240px;
  --side: clamp(20px, 5vw, 56px);
  --gap: clamp(72px, 11vw, 150px);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}
[hidden] {
  display: none !important;
}
main {
  overflow-x: clip;
}

h1,
h2,
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.06;
}
h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.12;
}
h3 {
  font-family: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--side);
  top: 12px;
  z-index: 100;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- the top and the foot ---------- */
.top,
.foot {
  max-width: calc(var(--wide) + 2 * var(--side));
  margin: 0 auto;
  padding: 22px var(--side);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-size: 21px;
  text-decoration: none;
}
.top nav a,
.foot nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.top nav a:hover,
.foot nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 44px;
  flex-wrap: wrap;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

/* ---------- buttons ---------- */
.button {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: #f7cf6c;
}
.button:active {
  transform: translateY(1px);
}
.button-quiet {
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 11px 20px;
  font-size: 16px;
}
.button-quiet:hover {
  background: rgba(0, 0, 0, 0.42);
}

/* ---------- sections ---------- */
main > section {
  margin-top: var(--gap);
}
.section-head {
  max-width: 720px;
}
.section-head p {
  margin-top: 16px;
  color: #b9c0cd;
  max-width: 62ch;
}
.review,
.regulars,
.between,
.closing {
  max-width: calc(var(--wide) + 2 * var(--side));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

/* ---------- the hero ---------- */
main > .hero {
  margin-top: clamp(12px, 3vw, 40px);
  max-width: calc(var(--wide) + 2 * var(--side));
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--side);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.hero-words {
  padding-top: clamp(24px, 6vw, 84px);
}
.lede {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.5;
  color: #c3c9d4;
  max-width: 34ch;
}
.join {
  margin-top: 30px;
}
.join-note,
.price {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}
.hero-table {
  position: relative;
  min-width: 0;
}
/* Lamp light over the table: the one warm thing on the page's ground. */
.hero-table::before {
  content: '';
  position: absolute;
  inset: -12% -18% 8%;
  background: radial-gradient(ellipse 50% 46% at 50% 40%, rgba(242, 193, 78, 0.085), rgba(31, 122, 82, 0.05) 55%, transparent 72%);
  pointer-events: none;
}
@media (max-width: 1080px) {
  main > .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-words {
    padding-top: 12px;
  }
  .lede {
    max-width: 52ch;
  }
}

/* ============================================================================================================
   The trainer's table, copied from its stylesheet: the rail and felt, seats, cards, bets, the action bar and
   the grade that pops up. Class names are the trainer's, under .demo.
   ============================================================================================================ */
.demo {
  position: relative;
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.demo-plain {
  color: var(--muted);
  padding: 40px 0;
}
.demo .table-wrap {
  padding: 50px 70px 80px;
}
.demo .table {
  --seat-w: 150px;
  position: relative;
  aspect-ratio: 1.72 / 1;
  border-radius: 999px;
  background: var(--rail);
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.06);
}
.demo .felt {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--felt-1) 0%, var(--felt-2) 75%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-bottom: 22px;
}
.demo .felt-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 255, 244, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.demo .felt-game-stakes {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(236, 255, 244, 0.7);
}
.demo .board {
  display: flex;
  gap: 6px;
}
.demo .board .card-lg {
  width: 46px;
  height: 65px;
  font-size: 20px;
}
.demo .card-slot {
  background: rgba(0, 0, 0, 0.15);
  box-shadow: none;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.demo .pot strong {
  font-weight: 700;
}
.demo .pot-total {
  opacity: 0.65;
}
.demo .pot {
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #d9f2e4;
}
.demo .seat-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.demo .bet {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 2px 10px 2px 4px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
  animation: demo-in 0.18s ease-out;
}
.demo .bet-from-left {
  transform: translate(0, -50%);
}
.demo .bet-from-right {
  transform: translate(-100%, -50%);
}
.demo .chip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px dashed #fff7;
}
.demo .seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--seat-w);
  position: relative;
}
.demo .seat-cards {
  display: flex;
  gap: 3px;
  height: 58px;
  align-items: flex-end;
  margin-bottom: -10px;
  z-index: 1;
}
.demo .seat-hero .seat-cards {
  height: 76px;
}
.demo .seat-plate {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px 6px;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  min-height: 62px;
}
.demo .seat-bot .seat-plate {
  padding-left: 27px;
  padding-right: 7px;
}
.demo .seat-to-act .seat-plate {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.35), 0 6px 16px rgba(0, 0, 0, 0.35);
}
.demo .seat-folded .seat-plate {
  opacity: 0.55;
}
.demo .seat-avatar {
  position: absolute;
  left: -20px;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.demo .seat-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}
.demo .seat-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.demo .seat-name {
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #2b3140;
  color: #c9d1e0;
  margin-left: 6px;
}
.demo .seat-stack {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.demo .muted {
  color: var(--muted);
}
.demo .last-action {
  font-size: 11px;
  color: var(--gold);
  margin-top: 2px;
  min-height: 16px;
}
.demo .seat-markers {
  position: absolute;
  top: 44px;
  right: -12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.demo .seat-hero .seat-markers {
  top: 62px;
}
.demo .marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}
.demo .marker-button {
  background: #f8fafc;
  color: #111;
  font-size: 11px;
}
.demo .marker-blind {
  background: #334155;
  color: #e2e8f0;
}
.demo .thinking {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 4px 0 2px;
  min-height: 18px;
}
.demo .thinking span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: demo-pulse 1.2s infinite;
}
.demo .thinking span:nth-child(2) {
  animation-delay: 0.2s;
}
.demo .thinking span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes demo-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@keyframes demo-in {
  from {
    opacity: 0;
    scale: 0.9;
  }
}

/* Cards: the trainer's four-colour deck. Used on the table and in the review. */
.card {
  background: #fdfdfb;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--text);
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.card-sm {
  width: 28px;
  height: 40px;
  font-size: 13px;
}
.card-md {
  width: 40px;
  height: 56px;
  font-size: 17px;
}
.card-lg {
  width: 52px;
  height: 74px;
  font-size: 22px;
}
.card-suit {
  font-size: 1.15em;
  margin-top: 2px;
}
.card-back {
  background: repeating-linear-gradient(45deg, #7f1d1d 0 6px, #991b1b 6px 12px);
  border: 3px solid #fdfdfb;
}
.card-dim {
  opacity: 0.55;
}
.suit-s {
  color: var(--suit-s);
}
.suit-h {
  color: var(--suit-h);
}
.suit-d {
  color: var(--suit-d);
}
.suit-c {
  color: var(--suit-c);
}
.card-text {
  display: inline-block;
  background: #fdfdfb;
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 3px;
  font-weight: 700;
  font-size: 0.93em;
  line-height: 1.45;
}
.demo .card-dealt {
  animation: demo-deal 0.22s ease-out;
}
@keyframes demo-deal {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
}

/* Under the table: whose turn it is, the trainer's action bar, and the grade. */
.demo .turn {
  max-width: 560px;
  margin: 0 auto;
}
.demo .turn-say {
  font-size: 15px;
  text-align: center;
  color: #c3c9d4;
  min-height: 24px;
  margin-bottom: 10px;
}
.demo .turn-say strong {
  color: var(--ink);
  font-weight: 600;
}
.demo .action-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  transition: opacity 0.25s;
}
.demo .action-bar[data-waiting] {
  opacity: 0.4;
}
.demo .action-buttons {
  display: flex;
  gap: 10px;
}
.demo .btn {
  flex: 1;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.05s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.demo .btn:active:not(:disabled) {
  transform: translateY(1px);
}
.demo .btn:disabled {
  cursor: default;
}
.demo .btn-fold {
  background: #2a1a1c;
  border-color: #5b2a2f;
}
.demo .btn-fold:hover:not(:disabled) {
  background: #3a2024;
  border-color: #7a3540;
}
.demo .btn-call {
  background: #13283d;
  border-color: #234a70;
}
.demo .btn-call:hover:not(:disabled) {
  background: #18324d;
  border-color: #2d5f8f;
}
.demo .btn-raise {
  background: #1b3322;
  border-color: #2f6b40;
}
.demo .btn-raise:hover:not(:disabled) {
  background: #21402a;
  border-color: #3b8a52;
}
.demo .btn[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--gold);
}

.demo .toast {
  margin-top: 12px;
  background: #1b1f29;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  animation: demo-toast 0.2s ease-out;
}
.demo .toast-good {
  border-left-color: var(--good);
}
.demo .toast-ok {
  border-left-color: var(--muted);
}
.demo .toast-blunder {
  border-left-color: var(--critical);
}
.demo .toast-head {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.demo .toast-head .muted {
  font-size: 12px;
}
.demo .toast-better {
  margin: 2px 0;
}
.demo .toast-tip {
  color: #c8cfdb;
}
.demo .toast-review {
  border-left-color: #6650a3;
}
/* The opponent's cards and what it was thinking, as the trainer shows them when a hand is over. */
.demo .toast-shown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #c8cfdb;
}
.demo .toast-shown strong {
  color: var(--ink);
  font-weight: 600;
}
.demo .toast-after {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.demo .toast-after a {
  color: var(--ink);
  text-underline-offset: 3px;
}
@keyframes demo-toast {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  white-space: nowrap;
}
.verdict > span[aria-hidden] {
  font-size: 10px;
}
.verdict-good {
  border-color: var(--good);
}
.verdict-good > span[aria-hidden] {
  color: var(--good);
}
.verdict-ok > span[aria-hidden] {
  color: var(--muted);
}
.verdict-mistake {
  border-color: var(--warning);
}
.verdict-mistake > span[aria-hidden] {
  color: var(--warning);
}
.verdict-blunder {
  border-color: var(--critical);
}
.verdict-blunder > span[aria-hidden] {
  color: var(--critical);
}
.verdict-score {
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}
.demo .again {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: 0;
  padding: 4px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.demo .again:hover {
  color: var(--ink);
}

/* A narrower column: the table as the trainer draws it on a small laptop. */
@media (max-width: 1280px) {
  .demo .table-wrap {
    padding: 46px 56px 76px;
  }
  .demo .table {
    --seat-w: 124px;
    aspect-ratio: 1.66 / 1;
  }
  .demo .seat-avatar {
    left: -17px;
    top: 9px;
    width: 36px;
    height: 36px;
  }
  .demo .seat-bot .seat-plate {
    padding-left: 22px;
    padding-right: 5px;
  }
  .demo .board .card-lg {
    width: 42px;
    height: 59px;
    font-size: 18px;
  }
}
/* A phone: the table stands tall, as in the trainer, with the side seats further in. */
@media (max-width: 640px) {
  .demo .table-wrap {
    padding: 34px 6px 60px;
  }
  .demo .table {
    --seat-w: 88px;
    aspect-ratio: 1 / 1.12;
    padding: 10px;
  }
  .demo .felt {
    inset: 10px;
    gap: 8px;
  }
  .demo .seat-cards {
    height: 44px;
  }
  .demo .seat-hero .seat-cards {
    height: 58px;
  }
  .demo .seat .card-md {
    width: 28px;
    height: 40px;
    font-size: 13px;
  }
  .demo .seat-hero .card-lg {
    width: 40px;
    height: 56px;
    font-size: 17px;
  }
  .demo .board .card-lg {
    width: 36px;
    height: 50px;
    font-size: 16px;
  }
  .demo .board {
    gap: 4px;
  }
  .demo .felt {
    padding-bottom: 0;
  }
  .demo .seat-plate {
    padding: 10px 4px 4px;
    min-height: 50px;
    font-size: 12px;
  }
  .demo .seat-bot .seat-plate {
    padding-left: 18px;
    padding-right: 3px;
  }
  .demo .seat-avatar {
    left: -11px;
    top: 5px;
    width: 28px;
    height: 28px;
  }
  .demo .badge,
  .demo .seat-stack .muted {
    display: none;
  }
  .demo .seat-stack {
    font-size: 11px;
  }
  .demo .last-action {
    font-size: 10px;
  }
  .demo .seat-markers {
    top: 34px;
    right: -8px;
  }
  .demo .seat-hero .seat-markers {
    top: 48px;
  }
  .demo .marker {
    width: 18px;
    height: 18px;
  }
  .demo .action-buttons {
    gap: 6px;
  }
  .demo .btn {
    padding: 12px 4px;
    font-size: 14px;
  }
}

/* ---------- the review of the hand ---------- */
.review-body {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) {
  .review-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The hand, street by street, beside the words about it. */
.hand-log {
  position: sticky;
  top: 24px;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .hand-log {
    position: static;
  }
}
.hand-log h3 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.street {
  border-top: 1px solid var(--line);
  padding: 12px 0 14px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 12px;
}
.street-name {
  color: var(--muted);
}
.street-cards {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.street-acts {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b9c0cd;
}
.street-acts .you {
  color: var(--ink);
  font-weight: 600;
}
.street-acts .verdict {
  margin-left: 6px;
  vertical-align: 1px;
}
.street-acts li + li {
  margin-top: 3px;
}
.thought {
  display: block;
  margin: 2px 0 6px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.shown {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b9c0cd;
}
.shown li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.shown-cards {
  display: flex;
  gap: 3px;
}
.shown-style {
  color: var(--muted);
  font-size: 13px;
}
/* The analysis, in the trainer's panel. */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 30px) clamp(18px, 3.2vw, 34px);
  font-size: 15px;
  line-height: 1.6;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.panel h2,
.panel h3 {
  font-family: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 24px 0 8px;
}
.panel h2:first-child {
  margin-top: 0;
}
.panel p {
  margin: 0 0 12px;
  color: #d5d9e1;
  max-width: 70ch;
}
.panel ul,
.panel ol {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #d5d9e1;
  max-width: 68ch;
}
.panel li {
  margin-bottom: 6px;
}
.panel strong {
  color: var(--ink);
}
.panel code {
  font-family: var(--mono);
  font-size: 0.92em;
}
.panel-more {
  position: relative;
}
.panel-more[data-closed] {
  max-height: 520px;
  overflow: hidden;
}
.panel-more[data-closed]::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, var(--panel));
}
.panel-open {
  margin-top: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.panel-open:hover {
  border-color: #3a4150;
  background: var(--panel-2);
}

/* ---------- the regulars ---------- */
.cast {
  margin-top: 44px;
}
.cast-faces {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  max-width: 980px;
}
@media (max-width: 760px) {
  .cast-faces {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cast-face {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.cast-face svg {
  display: block;
  width: 100%;
  max-width: 92px;
  height: auto;
  border-radius: 50%;
  transition: transform 0.15s ease-out;
}
.cast-face:hover svg {
  transform: translateY(-3px);
}
.cast-face[aria-pressed='true'] {
  color: var(--ink);
  font-weight: 600;
}
.cast-face[aria-pressed='true'] svg {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--gold);
}
.cast-about {
  margin-top: 34px;
  min-height: 84px;
  max-width: 58ch;
}
.cast-about h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.cast-style {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}
.cast-about p {
  margin-top: 6px;
  color: #b9c0cd;
}
@media (prefers-reduced-motion: reduce) {
  .cast-face svg {
    transition: none;
  }
}

/* ---------- between tournaments: three screens ---------- */
.shots {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 72px) clamp(24px, 3.5vw, 48px);
  align-items: start;
}
/* The quiz's picture is as long as its chart: the frame shows the table, the grade and the chart's first rows. */
.frame-tall {
  position: relative;
  aspect-ratio: 1 / 1.16;
}
.frame-tall img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.frame-tall::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 16%;
  background: linear-gradient(transparent, var(--night));
}
.shot-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}
@media (max-width: 820px) {
  .shots,
  .shot-wide {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* A screen of the trainer: its own dark panel on the page's ground needs an edge to be seen as a screen. */
.frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 18px;
}
.shot-wide figcaption {
  margin-top: 0;
  padding-bottom: 6px;
}
.shot figcaption p {
  margin-top: 6px;
  color: #b9c0cd;
  font-size: 16px;
  max-width: 46ch;
}
.also {
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 68ch;
  color: #b9c0cd;
}

/* ---------- the home game: the clock's and Tournament Admin's felt ---------- */
main > .home-game {
  background: radial-gradient(ellipse 90% 80% at 50% 0%, #1d6f4b 0%, #124a32 55%, #0d3a27 100%);
  border-top: 10px solid var(--rail);
  border-bottom: 10px solid var(--rail);
}
.home-inner {
  max-width: calc(var(--wide) + 2 * var(--side));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--side);
}
.home-game .section-head p {
  color: #cfe6d8;
}
.tool {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.tool-admin {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}
.tool-admin .tool-words {
  order: 2;
}
@media (max-width: 900px) {
  .tool,
  .tool-admin {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-admin .tool-words {
    order: 0;
  }
}
.tool-words h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
}
.tool-words p {
  margin: 10px 0 20px;
  color: #d6eadf;
  max-width: 40ch;
}
.tool-show {
  min-width: 0;
}
.tool-show img {
  display: block;
  width: 100%;
  height: auto;
}

/* The Poker Clock's TV screen, copied from the clock's stylesheet and sized by the screen's own width. */
.tool-clock .tool-show,
.tool-admin .tool-show {
  display: flex;
  align-items: flex-end;
  gap: 3.5%;
}
.tv-set {
  flex: 1;
  min-width: 0;
}
.tv {
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  border: clamp(4px, 0.8vw, 9px) solid #0b0c0d;
  border-radius: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: radial-gradient(at 50% 35%, #164025 0%, #0e2c1d 45%, #07180f 100%);
  color: #ece2c8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tv-stand {
  width: 26%;
  height: clamp(6px, 1vw, 12px);
  margin: 0 auto;
  background: #0b0c0d;
  border-radius: 0 0 6px 6px;
}
.tv-top {
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 1.1cqw 1.2cqw 0.9cqw;
}
.tv-chip {
  width: 3.9cqw;
  height: 3.9cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #b13a45 0 46%, #d8c391 47% 52%, #b13a45 53%);
  border: 0.35cqw dashed #ece2c8aa;
  box-shadow: 0 0.2cqw 0.5cqw rgba(0, 0, 0, 0.5);
}
.tv-title {
  font-size: 2.35cqw;
  font-weight: 700;
  color: #d8c391;
}
.tv-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 59fr 39.5fr;
  gap: 1.25cqw;
  padding: 0 1.2cqw 2.3cqw;
}
.tv-big {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%), #164025;
  border: 1px solid #6f5d36;
  border-radius: 0.9cqw;
  box-shadow: inset 0 0 0 0.225cqw rgba(0, 0, 0, 0.35), inset 0 0 0 0.31cqw #d8c391, inset 0 0 0 0.39cqw rgba(0, 0, 0, 0.35);
}
.tv-level {
  font-size: 1.9cqw;
  color: #93a394;
}
.tv-time {
  font-size: 12.4cqw;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0.3cqw 0.9cqw rgba(0, 0, 0, 0.45);
}
.tv-blinds {
  font-size: 3.95cqw;
  font-weight: 700;
  color: #d8c391;
}
.tv-foot {
  position: absolute;
  inset: auto 1.3cqw 0.9cqw;
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
  font-size: 1.4cqw;
  color: #93a394;
}
.tv-side {
  display: flex;
  flex-direction: column;
  gap: 1.25cqw;
  min-height: 0;
}
.tv-card {
  background: #164025;
  border: 1px solid #6f5d36;
  border-radius: 0.675cqw;
  padding: 1cqw 1.2cqw;
}
.tv-grow {
  flex: 1;
}
.tv-label {
  font-size: 1.35cqw;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8a374;
  margin-bottom: 0.4cqw;
}
.tv-label-small {
  font-size: 1.125cqw;
  font-weight: 400;
  margin-bottom: 0;
}
.tv-next {
  font-size: 2.25cqw;
  color: #d8c391;
}
.tv-row,
.tv-pay {
  display: flex;
  justify-content: space-between;
  font-size: 1.69cqw;
  font-variant-numeric: tabular-nums;
}
.tv-row span:first-child,
.tv-pay span:first-child {
  color: #93a394;
}
.tv-pay {
  font-size: 1.46cqw;
  justify-content: flex-start;
  gap: 1.6cqw;
}
.tv-pay span:first-child {
  width: 2.4cqw;
}
.tv-pay span:last-child {
  margin-left: auto;
}
/* The remote, on a phone standing beside the TV. */
.phone {
  position: relative;
  flex: none;
  width: 21%;
  container-type: inline-size;
  border: clamp(3px, 0.5vw, 6px) solid #0b0c0d;
  border-radius: clamp(12px, 2vw, 26px);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #0e2c1d;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
}
/* The time on the remote's own screen, kept in step with the TV: it lies over the time in the picture. */
.phone-time {
  position: absolute;
  right: 7.6%;
  top: 11.1%;
  padding: 0.5cqw 0.4cqw 0.5cqw 2cqw;
  background: #164025;
  color: #ece2c8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 4.92cqw;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .phone {
    width: 25%;
  }
}

/* Tournament Admin: the invitation as a player opens it on a phone, and the series page. */
.tool-admin .screen {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(216, 195, 145, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* ---------- the closing ---------- */
main > .closing {
  text-align: center;
  padding-top: 0;
  padding-bottom: var(--gap);
}
.closing-how {
  margin: 18px auto 28px;
  max-width: 52ch;
  color: #b9c0cd;
}
