/* Roll the Line: a prototype on the designer's desk.
   Cutting mat underneath, printed card and a tear-off pad on top,
   handwriting for anything a player writes, one red line that moves. */

:root {
  --felt: #24503f;
  --felt-deep: #173629;
  --felt-edge: #102a1f;
  --felt-light: #c9dccb;
  --paper: #fcfcf9;
  --card: #f6f7f2;
  --ink: #1d2733;
  --pencil: #6a737d;
  --rule: #d6dbe0;
  --red: #e0382b;
  --tape: rgb(238 226 178 / .88);
  --silver: #c3c9cf;

  --yellow: #f4c21b;
  --green: #5cbf3f;
  --orange: #f47c20;
  --purple: #7d4cc2;
  --blue: #2a7de1;
  --pink: #ee5fa7;

  --print: 'Archivo', system-ui, sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --shadow-paper: 0 1px 0 rgb(0 0 0 / .08), 0 10px 24px -12px rgb(0 0 0 / .55);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--felt-edge); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--print); font-size: 15px; line-height: 1.45;
  font-variation-settings: 'wdth' 100;
  /* A felt game table, lit from above. */
  background: radial-gradient(ellipse 120% 80% at 50% 0%, var(--felt) 0%, var(--felt-deep) 70%, var(--felt-edge) 100%) fixed;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */

.desk-top {
  max-width: 1320px; margin: 0 auto; padding: 22px 24px 8px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo nav" "tag nav";
  align-items: center; column-gap: 20px; row-gap: 8px;
}
.desk-top > .logo { grid-area: logo; justify-self: start; }
/* The wordmark: the board's red deadline stands between "Roll the" and "Line". */
.logo {
  display: inline-flex; align-items: center; text-decoration: none; color: var(--paper);
  font-weight: 850; font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -.005em; line-height: 1;
  font-variation-settings: 'wdth' 72;
}
.logo { flex: none; }
.brand { display: contents; }
.brand .logo { grid-area: logo; justify-self: start; }
.tagline { grid-area: tag; color: rgb(252 252 249 / .75); font-size: 15px; max-width: 70ch; }
.logo-word { white-space: nowrap; }
.logo-bar {
  width: .13em; height: 1.18em; margin: 0 .2em; border-radius: 3px; background: var(--red);
  box-shadow: 0 0 0 .04em rgb(0 0 0 / .18);
}
.logo:focus-visible { outline-offset: 6px; border-radius: 4px; }
.desk-nav { grid-area: nav; display: flex; gap: 10px; }
/* On the beta rules only: a tag beside the wordmark. */
.channel-badge {
  display: inline-block; margin-left: 12px; padding: 3px 9px; border-radius: 3px; background: var(--tape); color: var(--ink);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3;
  font-variation-settings: normal; white-space: nowrap; transform: rotate(-2deg);
}
.channel-badge[hidden] { display: none; }

.ghost-button, .stamp-button, .chit-button {
  border: 0; border-radius: 6px; padding: 9px 16px; font-weight: 700; font-size: 14px;
  font-variation-settings: 'wdth' 110; transition: transform .12s, box-shadow .12s, background .12s;
}
.ghost-button { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.desk-top .ghost-button { color: var(--paper); }
.stamp-button { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 #0b1118; }
.stamp-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 0 #0b1118; }
.stamp-button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0b1118; }
.stamp-button:disabled { opacity: .4; }
.stamp-button.big { width: 100%; padding: 13px 18px; font-size: 16px; margin-top: 14px; }
.desk-top .stamp-button { background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 #10261d; }

/* ---------------------------------------------------------------- layout */

.mat { max-width: 1320px; margin: 0 auto; padding: 10px 24px 40px; display: grid; gap: 22px; }
.table { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1040px) { .table { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .mat, .desk-top { padding-left: 12px; padding-right: 12px; }
  /* One row on phones: wordmark left, both buttons right. */
  .desk-top { grid-template-areas: "logo nav" "tag tag"; column-gap: 10px; padding-top: 14px; }
  .logo { font-size: 26px; }
  .tagline { font-size: 13px; }
  .channel-badge { margin-left: 8px; padding: 2px 6px; font-size: 10px; }
  .badge-more { display: none; }
  .desk-nav { gap: 6px; }
  .desk-top .ghost-button, .desk-top .stamp-button { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .logo { font-size: 22px; }
  .desk-top .ghost-button, .desk-top .stamp-button { padding: 6px 8px; font-size: 12px; }
}

/* ---------------------------------------------------------------- seats */

.seats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--paper); min-height: 40px; }
.round-tag, .seat-note { font-weight: 700; font-size: 15px; font-variation-settings: 'wdth' 90; color: rgb(252 252 249 / .8); }
.seat-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seat {
  position: relative; display: flex; align-items: baseline; gap: 8px; padding: 6px 12px 5px; border-radius: 20px;
  background: rgb(0 0 0 / .18); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); font-weight: 600; font-size: 14px;
  transition: transform .2s, background .2s;
}
.seat.you { box-shadow: inset 0 0 0 2px var(--yellow); }
.seat.done { opacity: .55; }
.seat.now { background: var(--paper); color: var(--ink); transform: translateY(-3px); box-shadow: 0 4px 0 rgb(0 0 0 / .25); }
.seat-score { font-family: var(--hand); font-weight: 400; }
.seat-first { position: absolute; top: -9px; right: -6px; background: var(--red); color: white; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 8px; }
.final-flag { margin-left: auto; background: var(--red); color: white; font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 4px; }

/* ---------------------------------------------------------------- board */

.board-sheet {
  position: relative; background: var(--card); border-radius: 4px; padding: 18px 18px 14px; box-shadow: var(--shadow-paper);
}
.board-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.labels { display: grid; grid-template-rows: 26px repeat(6, var(--cell)); align-items: center; gap: 4px; }
.row-label { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; font-variation-settings: 'wdth' 90; }
@media (max-width: 640px) { .row-label { font-size: 11px; gap: 5px; } .row-label .swatch { width: 11px; height: 11px; } }
.field {
  --cell: clamp(30px, 5.2vw, 58px);
  position: relative; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: 26px repeat(6, var(--cell)); gap: 4px;
}
.board-grid { --cell: clamp(30px, 5.2vw, 58px); }
.col-head { text-align: center; font-weight: 800; font-size: 15px; color: var(--pencil); align-self: end; line-height: 1; }
.col-head small { display: block; font-size: 9px; font-weight: 600; }
.cell { position: relative; z-index: 1; border-radius: 6px; background: rgb(29 39 51 / .045); display: grid; place-items: center; }
.cell.silver { background: transparent; }
.silver-zone {
  position: absolute; z-index: 0; left: -4px; top: 26px; bottom: -4px; border-radius: 8px;
  width: calc(var(--cut) * (100% + 4px) / 10 + 2px);
  background: repeating-linear-gradient(-45deg, #d9dde1 0 6px, #cbd1d6 6px 12px);
  transition: width calc(.7s / var(--speed, 1)) cubic-bezier(.3, .7, .2, 1);
}
.the-line {
  position: absolute; z-index: 3; top: -6px; bottom: -10px; width: 7px; margin-left: -5px;
  left: calc(var(--cut) * (100% + 4px) / 10 - 2px);
  background: var(--red); border-radius: 4px; transform: rotate(.6deg);
  box-shadow: 0 0 0 1px rgb(150 20 10 / .25);
  transition: left calc(.7s / var(--speed, 1)) cubic-bezier(.3, .7, .2, 1);
  pointer-events: none;
}
.the-line span {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  font-family: var(--hand); color: var(--red); font-size: 16px; white-space: nowrap;
}
.the-line.resting { opacity: .35; }
.the-line.resting span { display: none; }
.board-caption { margin-top: 12px; color: var(--pencil); font-size: 13px; }

/* d10 dice */
.d10 { width: 100%; height: 100%; max-width: 54px; display: block; overflow: visible; filter: drop-shadow(0 2px 1.5px rgb(0 0 0 / .3)); }
.d10-body { fill: var(--die); }
.d10-face { fill: var(--die-face); }
.d10-edge { stroke: rgb(0 0 0 / .18); stroke-width: 2; fill: none; }
.d10-num { font-family: var(--print); font-weight: 900; font-size: 34px; text-anchor: middle; dominant-baseline: central; fill: var(--die-ink); font-variation-settings: 'wdth' 100; }
.d10-mark { stroke: var(--die-ink); stroke-width: 4; stroke-linecap: round; }
.d10.white { --die: #e4e6e8; --die-face: #ffffff; --die-ink: var(--ink); }
.d10.yellow { --die: #d9a90c; --die-face: var(--yellow); --die-ink: #2b2208; }
.d10.green { --die: #46a02c; --die-face: var(--green); --die-ink: #0f2a08; }
.d10.orange { --die: #d9650f; --die-face: var(--orange); --die-ink: #fff; }
.d10.purple { --die: #63379f; --die-face: var(--purple); --die-ink: #fff; }
.d10.blue { --die: #1c63bb; --die-face: var(--blue); --die-ink: #fff; }
.d10.pink { --die: #d4428c; --die-face: var(--pink); --die-ink: #2e0a1c; }
.d10.big { max-width: 96px; width: 96px; height: 96px; }
.d10.mini { width: 30px; height: 30px; }
.d10.dim { opacity: .35; }

.die-btn, .die-slot { position: relative; width: 100%; height: 100%; padding: 3px; border: 0; background: none; display: grid; place-items: center; border-radius: 8px; }
.die-btn:disabled { opacity: 1; }
.die-btn.takeable:hover .d10, .die-btn.burnable:hover .d10, .die-btn.tool-target:hover .d10 { transform: translateY(-3px) rotate(-4deg); }
.die-btn .d10 { transition: transform .15s; }
.die-btn.takeable::after, .die-btn.burnable::after, .die-btn.tool-target::after {
  content: ''; position: absolute; inset: 0; border-radius: 9px; border: 2px dashed var(--ink); opacity: .45;
}
.die-btn.burnable::after { border-color: var(--red); opacity: .8; }
.die-btn.picked::after { content: ''; position: absolute; inset: -2px; border-radius: 10px; border: 3px solid var(--ink); }
.nudge { position: absolute; z-index: 4; bottom: -14px; display: flex; gap: 4px; }
.nudge button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-weight: 900; line-height: 1; }


/* ---------------------------------------------------------------- action card */

.card {
  position: relative; background: var(--paper); padding: 22px 22px 18px; border-radius: 3px; box-shadow: var(--shadow-paper);
  /* Index card: the red rule across the top. */
  border-top: 3px solid var(--red);
}
.card h2 { font-size: 22px; font-weight: 800; font-variation-settings: 'wdth' 115; line-height: 1.15; margin-bottom: 8px; }
.card > p { margin-bottom: 10px; }
.style-line { font-family: var(--hand); font-size: 18px; color: var(--pencil); }
.hint { font-size: 13px; color: var(--pencil); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 10px; }

.my-roll { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; }
.my-roll p { margin-bottom: 8px; }
.chit-button { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); border-radius: 30px; padding: 7px 14px; font-size: 13px; }
.chit-button.on { background: var(--ink); color: var(--paper); }
.chit-button:disabled { opacity: .35; }

.color-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-pick {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
  padding: 8px 10px; border: 2px solid var(--rule); background: white; border-radius: 8px;
}
.color-pick .swatch { grid-row: span 2; }
.pick-name { font-weight: 800; font-size: 14px; }
.pick-fit { font-size: 12px; color: var(--pencil); }
.color-pick.on { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }

.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; flex: none; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.swatch.yellow { --c: var(--yellow); } .swatch.green { --c: var(--green); } .swatch.orange { --c: var(--orange); }
.swatch.purple { --c: var(--purple); } .swatch.blue { --c: var(--blue); } .swatch.pink { --c: var(--pink); }

.platter { display: grid; gap: 10px; padding: 12px; background: repeating-linear-gradient(-45deg, #e2e5e8 0 6px, #d6dbdf 6px 12px); border-radius: 8px; margin: 6px 0 10px; }
.platter-dice { display: flex; flex-wrap: wrap; gap: 4px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.recolor { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; }
.rescues { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.recolor button { display: flex; align-items: center; gap: 5px; border: 1px solid var(--rule); background: white; border-radius: 20px; padding: 4px 10px; font-size: 13px; }
.pending { display: flex; gap: 8px; margin: 8px 0 10px; }
.pending .die-btn { width: 64px; height: 64px; }

.table-talk { margin-top: 16px; border-top: 1px dashed var(--rule); padding-top: 10px; }
.table-talk summary { font-weight: 700; font-size: 13px; cursor: pointer; }
.table-talk ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #3c4652; }
.table-talk li:first-child { color: var(--ink); font-weight: 600; }

.table-scroll { overflow-x: auto; }
table.final { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
table.final th, table.final td { padding: 5px 3px; text-align: right; border-bottom: 1px solid var(--rule); }
table.final th[scope='row'] { text-align: left; font-weight: 700; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.final .fox { width: 14px; height: 14px; vertical-align: middle; }
table.final .total { font-family: var(--hand); font-size: 17px; }
table.final tr.won { background: #fff6cc; }

/* ---------------------------------------------------------------- score pad */

.pad-sheet {
  position: relative; background: var(--paper); border-radius: 2px; padding: 26px 24px 24px; box-shadow: var(--shadow-paper);
}
/* Perforated tear-off edge. */
.pad-sheet::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 6px 0, var(--felt-deep) 3px, transparent 3.5px) 0 0 / 14px 10px repeat-x;
}
.pad-head { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: 'title chits total' 'foxes foxes total'; align-items: center; column-gap: 20px; row-gap: 4px; margin-bottom: 18px; }
.pad-head h2 { grid-area: title; font-size: 24px; font-weight: 900; font-variation-settings: 'wdth' 122; }
.chits { grid-area: chits; display: flex; gap: 6px; }
.chit {
  width: 70px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; line-height: 1.1; text-align: center; padding: 0 8px;
  background: #f1d06a; box-shadow: inset 0 0 0 3px #c9a336, 0 2px 0 rgb(0 0 0 / .2);
}
.chit:nth-child(2) { background: #f08a80; box-shadow: inset 0 0 0 3px #c7473c, 0 2px 0 rgb(0 0 0 / .2); }
.chit:nth-child(3) { background: #9fc4ee; box-shadow: inset 0 0 0 3px #4f86c4, 0 2px 0 rgb(0 0 0 / .2); }
.chit.used { background: transparent; box-shadow: inset 0 0 0 2px var(--rule); color: var(--rule); border: 2px dashed var(--rule); }
.foxes { grid-area: foxes; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pencil); }
.fox { width: 18px; height: 18px; fill: var(--orange); }
.fox circle { fill: var(--ink); }
.pad-total { grid-area: total; font-family: var(--hand); font-size: 46px; line-height: 1; padding: 6px 16px; border: 3px solid var(--ink); border-radius: 50% 46% 52% 44%; transform: rotate(-3deg); }

.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1040px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .areas { grid-template-columns: 1fr; } .pad-head { grid-template-columns: 1fr auto; grid-template-areas: 'title total' 'chits total' 'foxes foxes'; } }

.area { --c: var(--ink); position: relative; padding: 12px 12px 14px; border: 2px solid var(--rule); border-radius: 6px; background: white; }
.area.yellow { --c: var(--yellow); } .area.green { --c: var(--green); } .area.orange { --c: var(--orange); }
.area.purple { --c: var(--purple); } .area.blue { --c: var(--blue); } .area.pink { --c: var(--pink); }
.area.live { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.area-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.area-head h3 {
  font-size: 17px; font-weight: 900; font-variation-settings: 'wdth' 118; padding: 0 6px;
  /* Highlighter stroke in the area's color. */
  background: linear-gradient(transparent 45%, color-mix(in srgb, var(--c) 55%, transparent) 45% 92%, transparent 92%);
}
.area-score { font-family: var(--hand); font-size: 24px; line-height: 1; }
.area-rule { font-size: 12.5px; color: var(--pencil); margin-bottom: 10px; line-height: 1.35; }
.done-stamp {
  position: absolute; right: 10px; bottom: 8px; font-family: var(--hand); color: var(--red); font-size: 15px;
  border: 2px solid var(--red); padding: 0 8px; transform: rotate(-6deg); background: rgb(255 255 255 / .8);
}

.box {
  width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1.5px solid #9aa3ad; border-radius: 4px; background: white;
  font-family: var(--hand); font-size: 18px; color: var(--ink); padding: 0; flex: none;
}
.box b { font-weight: 400; }
.box em { font-style: normal; color: #c6ccd2; font-family: var(--print); font-size: 13px; font-weight: 700; }
.box.struck { background: linear-gradient(to top right, transparent calc(50% - 1px), #9aa3ad 50%, transparent calc(50% + 1px)); }
.box.target { border: 2px solid var(--ink); background: color-mix(in srgb, var(--c) 30%, white); animation: beckon 1.4s ease-in-out infinite; }
.box.target:hover { background: color-mix(in srgb, var(--c) 60%, white); }
@media (prefers-reduced-motion: reduce) { .box.target { animation: none; } }
@keyframes beckon { 50% { transform: translateY(-2px); } }

.mult-rows { display: grid; gap: 6px; }
.mult-row { display: flex; align-items: center; gap: 4px; }
.mult-row .op { font-weight: 800; color: var(--pencil); width: 12px; text-align: center; }
.row-pts { margin-left: auto; font-family: var(--hand); font-size: 15px; color: #b5bcc3; min-width: 32px; text-align: right; }
.row-pts.scored { color: var(--ink); }
.mult-row.complete .box { border-color: var(--c); }

.track { display: flex; flex-wrap: wrap; gap: 4px 3px; }
.track-cell { display: grid; justify-items: center; gap: 2px; }
.track-pts { font-size: 10px; font-weight: 700; color: var(--pencil); line-height: 1; }
/* Portions crossed out on the 6+ player pad. */
.track-cell.crossed, .mult-row.crossed, .hand.crossed { opacity: .4; position: relative; }
.track-cell.crossed .box, .mult-row.crossed .box, .hand.crossed .box {
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--pencil) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}
.crossed-text { text-decoration: line-through; opacity: .5; }
.pad-note { font-size: 12px; color: var(--pencil); font-weight: 600; }
.track-pts.got { color: var(--ink); }
.track.zig .track-cell:nth-child(even) { transform: translateY(8px); }
.track.zig { padding-bottom: 8px; }

.hands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.hand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.box.card-box { width: 30px; height: 42px; border-radius: 5px; }
.hand.complete .card-box { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.hand-label { font-family: var(--hand); font-size: 13px; width: 100%; color: var(--ink); min-height: 16px; }

/* ---------------------------------------------------------------- department looks
   Each department dresses its card like the thing it is. */

/* Finance: an accounting ledger with a cloth spine and ruled green paper. */
.area.yellow {
  padding-left: 24px; border-radius: 3px 6px 6px 3px;
  background: repeating-linear-gradient(#fdfbf0 0 29px, #bcd6c4 29px 30px);
}
.area.yellow::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; border-radius: 2px 0 0 2px;
  background: repeating-linear-gradient(0deg, transparent 0 12px, rgb(255 255 255 / .22) 12px 13px), #7b2d26;
  box-shadow: inset -3px 0 4px rgb(0 0 0 / .3);
}
.area.yellow .area-head h3 { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-variation-settings: normal; }
.ledger-head {
  display: flex; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #2f6b4a;
  border-bottom: 3px double #b8433a; padding-bottom: 2px; margin-bottom: 6px; background: #fdfbf0;
}
.ledger-head span:nth-child(1) { flex: 0 0 34px; text-align: center; }
.ledger-head span:nth-child(2) { flex: 0 0 34px; margin-left: 20px; text-align: center; }
.ledger-head span:nth-child(3) { flex: 0 0 72px; margin-left: 20px; text-align: center; }
.ledger-head span:nth-child(4) { margin-left: auto; min-width: 32px; text-align: right; }
.area.yellow .box { border-color: #6f9a80; border-radius: 2px; }
.area.yellow .box.target { border-color: var(--ink); }
.area.yellow .mult-row.complete .box { border-color: #2f6b4a; background: #eef7ee; }

/* Logistics: each truck's cargo bed fills from the left up to its weight limit. */
.trucks { display: grid; gap: 14px; padding-top: 2px; }
.truck-wrap { display: flex; align-items: center; gap: 6px; }
.truck { position: relative; flex: 1; height: 44px; display: block; padding: 0; border: 0; background: none; }
.cargo {
  position: absolute; left: 0; right: 36px; top: 0; bottom: 9px; overflow: hidden;
  border: 2px solid #7d8791; border-radius: 3px 2px 2px 3px;
  background: repeating-linear-gradient(90deg, #fff 0 13px, #eef0f2 13px 14px);
}
.cargo-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--fill) * 100%); background: color-mix(in srgb, var(--c) 72%, white); transition: width calc(.6s / var(--speed, 1)) cubic-bezier(.3, .7, .2, 1); }
.truck-target { position: absolute; top: 2px; right: 6px; z-index: 1; font-weight: 800; font-size: 11px; color: var(--pencil); }
.truck-sum { position: absolute; left: 10px; top: 0; bottom: 0; z-index: 1; display: grid; align-items: center; font-family: var(--hand); font-size: 22px; }
.cab {
  position: absolute; right: 0; bottom: 9px; width: 32px; height: 25px; background: #6f7e8c; border: 2px solid #46515d;
  border-radius: 2px 12px 2px 2px;
}
.cab::after { content: ''; position: absolute; top: 3px; right: 3px; width: 13px; height: 9px; background: #cfe6f7; border-radius: 2px 8px 0 0; }
.wheel { position: absolute; bottom: 0; width: 15px; height: 15px; border-radius: 50%; background: #2b3138; border: 3px solid #aeb6bf; z-index: 2; }
.wheel.w1 { left: 8px; } .wheel.w2 { left: 28px; } .wheel.w3 { right: 6px; }
.truck.target .cargo { border-color: var(--ink); }
.truck.target { animation: beckon 1.4s ease-in-out infinite; }
.truck.target:hover .cargo-fill { background: color-mix(in srgb, var(--c) 90%, white); }
.truck.full .cargo { border-color: var(--c); }
.truck.full .cab { background: color-mix(in srgb, var(--c) 70%, #46515d); }
@media (prefers-reduced-motion: reduce) { .truck.target { animation: none; } }

/* IT: each system is a 1U server in a rack with status LEDs and drive bays. */
.rack {
  position: relative; grid-template-columns: 1fr; gap: 6px; padding: 8px 20px; border-radius: 4px;
  background: #1b1f27; box-shadow: inset 0 0 0 2px #2f3541;
}
.rack::before, .rack::after {
  content: ''; position: absolute; top: 6px; bottom: 6px; width: 8px;
  background: radial-gradient(circle, #07090c 2px, transparent 2.6px) 0 0 / 8px 14px repeat-y;
}
.rack::before { left: 5px; } .rack::after { right: 5px; }
.rack .hand {
  flex-wrap: nowrap; gap: 6px; padding: 6px 8px; border: 1px solid #596275; border-radius: 3px;
  background: linear-gradient(#3b4252, #2a303c); position: relative;
}
.rack .hand::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f0a020; box-shadow: 0 0 6px #f0a020; }
.rack .hand.complete::before { background: #3ddc84; box-shadow: 0 0 7px #3ddc84; }
.rack .box.card-box {
  width: 30px; height: 34px; border: 1px solid #5a6578; border-radius: 2px; background-color: #0f141b;
  color: #7cffb2; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px;
}
.rack .box.card-box.target { background-color: color-mix(in srgb, var(--c) 55%, #0f141b); border-color: #e3d4ff; }
.rack .hand.complete .card-box { border-color: #3ddc84; background-color: #0f141b; }
.rack .hand-label {
  width: auto; margin-left: auto; min-height: 0; color: #7cffb2; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
}

/* Marketing: the growth chart, every box a data point on graph paper. */
.track.zig {
  padding: 10px 8px 22px 10px; border-left: 2px solid #aab2bb; border-bottom: 2px solid #aab2bb;
  background:
    repeating-linear-gradient(0deg, transparent 0 15px, #eceff2 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, #eceff2 15px 16px);
}
.track.zig .box { border-radius: 50%; border-color: var(--orange); }

/* Manufacturing: crates riding a conveyor belt. */
.track.thread {
  padding: 8px 8px 10px; border-radius: 6px; border-bottom: 5px solid #1f2630;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .08) 0 2px, transparent 2px 14px), linear-gradient(#4b5666, #39424f);
}
.track.thread .box { border-radius: 3px; border: 2px solid #b98a3e; background-color: #f1d9a6; }
.track.thread .box.target { background-color: color-mix(in srgb, var(--blue) 40%, #f1d9a6); border-color: var(--ink); }
.track.thread .track-pts { color: #cdd6e0; } .track.thread .track-pts.got { color: #fff; }

/* HR: morale on sticky notes from the wall by the vulture table. */
.track.morale-notes .box { border: 0; border-radius: 1px 1px 7px 1px; background-color: #ffe0ee; box-shadow: 0 2px 3px rgb(0 0 0 / .25); }
.track.morale-notes .track-cell:nth-child(odd) .box { transform: rotate(-2deg); }
.track.morale-notes .track-cell:nth-child(even) .box { transform: rotate(1.5deg); }
.track.morale-notes .box.target { background-color: color-mix(in srgb, var(--pink) 45%, white); }
.hint.morale .mood { font-size: 18px; line-height: 1; vertical-align: -2px; }

/* ---------------------------------------------------------------- other players */

.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mini-pad {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; border: 0; padding: 12px 14px; border-radius: 2px;
  background: var(--paper); box-shadow: var(--shadow-paper); transform: rotate(var(--tilt, 0deg)); transition: transform .15s;
}
.mini-pad:nth-child(3n + 1) { --tilt: -.6deg; } .mini-pad:nth-child(3n + 2) { --tilt: .5deg; }
.mini-pad:hover { transform: translateY(-3px) rotate(var(--tilt, 0deg)); }
.mini-pad.acting { outline: 3px solid var(--yellow); }
.mini-name { font-weight: 800; font-size: 15px; }
.mini-style { grid-column: 1; font-size: 12px; color: var(--pencil); }
.mini-total { grid-column: 2; grid-row: 1 / 3; font-family: var(--hand); font-size: 30px; line-height: 1; align-self: center; }
.mini-bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.mini-bar { --c: var(--ink); position: relative; height: 34px; background: #eef0f2; border-radius: 3px; overflow: hidden; display: grid; place-items: end center; }
.mini-bar.yellow { --c: var(--yellow); } .mini-bar.green { --c: var(--green); } .mini-bar.orange { --c: var(--orange); }
.mini-bar.purple { --c: var(--purple); } .mini-bar.blue { --c: var(--blue); } .mini-bar.pink { --c: var(--pink); }
.mini-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--f) * 100%); background: var(--c); opacity: .75; transition: height calc(.6s / var(--speed, 1)) cubic-bezier(.3, .7, .2, 1); }
.mini-bar b { position: relative; font-size: 10px; font-weight: 800; padding-bottom: 1px; }

.mat-foot { color: var(--felt-light); font-size: 12px; text-align: center; opacity: .8; }

/* ---------------------------------------------------------------- dialogs */

.sheet-dialog {
  border: 0; border-radius: 3px; padding: 26px 28px; max-width: min(560px, calc(100vw - 24px)); width: 100%;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); border-top: 3px solid var(--red);
}
.sheet-dialog::backdrop { background: rgb(20 40 32 / .65); }
.sheet-dialog h2 { font-size: 24px; font-weight: 900; font-variation-settings: 'wdth' 118; margin-bottom: 8px; }
.sheet-dialog form { display: grid; gap: 8px; }
.sheet-dialog label { font-weight: 700; font-size: 14px; margin-top: 6px; }
.sheet-dialog input[type='number'] { font: inherit; padding: 9px 10px; border: 2px solid var(--rule); border-radius: 6px; width: 120px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 10px; }
.sheet-dialog.rules { max-width: min(720px, calc(100vw - 24px)); }
.sheet-dialog.peek { max-width: min(1100px, calc(100vw - 24px)); }
.feedback .rating { border: 0; margin: 6px 0 0; padding: 0; min-width: 0; }
.feedback .rating legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.rating-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 340px; }
.feedback .rating-row label { margin: 0; position: relative; cursor: pointer; }
.rating-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rating-row span {
  display: grid; place-items: center; height: 44px; border: 2px solid var(--rule); border-radius: 6px; background: white;
  font-family: var(--hand); font-size: 22px; transition: background .12s, border-color .12s, transform .12s;
}
.rating-row label:hover span { border-color: var(--ink); }
.rating-row input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.rating-row input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.rating-ends { display: flex; justify-content: space-between; max-width: 340px; font-size: 12px; color: #5b6570; margin-top: 4px; }
.feedback textarea {
  font: inherit; padding: 9px 10px; border: 2px solid var(--rule); border-radius: 6px; background: white; color: var(--ink);
  width: 100%; resize: vertical; min-height: 90px;
}
.feedback .optional { font-weight: 400; color: #5b6570; }
.card [data-feedback] { margin-top: 10px; }
.peek .pad-sheet { box-shadow: none; padding: 0; }
.peek .pad-sheet::before { display: none; }
.rules section { margin-top: 16px; }
.rules h3 { font-size: 17px; font-weight: 800; font-variation-settings: 'wdth' 112; margin-bottom: 6px; }
.rules ol, .rules ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.rules dl { margin: 0; display: grid; gap: 10px; }
.rules dt { font-weight: 800; display: flex; align-items: center; gap: 7px; }
.rules dd { margin: 2px 0 0 21px; font-size: 14px; color: #3c4652; }

/* ---------------------------------------------------------- online tables */

.setup-part { display: grid; gap: 6px; padding: 12px 0 4px; border-top: 2px dashed var(--rule); }
.setup-part:first-of-type { border-top: 0; padding-top: 0; }
.setup-part h3 { font-size: 16px; font-weight: 800; }
.channel-switch { display: inline-flex; justify-self: start; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; }
.channel-option { padding: 7px 18px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.channel-option[aria-current] { background: var(--ink); color: var(--paper); }
.channel-option:not([aria-current]):hover { background: var(--card); }
.setup-part .dialog-actions { justify-content: flex-start; margin-top: 6px; }
.sheet-dialog input[type='text'], .card input[type='number'], .share-row input {
  font: inherit; padding: 9px 10px; border: 2px solid var(--rule); border-radius: 6px; min-width: 0; background: white; color: var(--ink);
}
.sheet-dialog input[type='text'] { width: min(100%, 280px); }
#join-code { text-transform: uppercase; letter-spacing: .12em; width: 130px; }
.hint.error { color: var(--red); font-weight: 600; }
.card label { display: block; font-weight: 700; font-size: 14px; margin-top: 14px; }
.card input[type='number'] { width: 110px; margin-top: 6px; }
.card .stamp-button.big { margin-top: 14px; }
.share { margin: 12px 0 4px; }
.table-code { font-family: var(--hand); font-size: 24px; letter-spacing: .08em; }
.share-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.share-row input { flex: 1; font-size: 13px; }
.seat.away { opacity: .6; }
.seat.choosing { box-shadow: inset 0 0 0 2px var(--felt-light); }
.seat.you.choosing { box-shadow: inset 0 0 0 2px var(--yellow); }
.seat small { font-weight: 500; opacity: .8; }
.net-status, .flash {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20; margin: 0; max-width: calc(100vw - 32px);
  padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-paper);
}
.net-status { top: 12px; background: var(--tape); color: var(--ink); }
.flash { bottom: 16px; background: var(--ink); color: var(--paper); }
.net-status[hidden], .flash[hidden] { display: none; }

/* ---------------------------------------------------------- bonus symbols in their boxes
   Printed faintly in the box that earns them, like a paper roll-and-write.
   Once the box is written in they tuck into the corner; once earned, they're
   circled in red. */

.box { position: relative; }
.bonus-in {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--print); font-size: 13px; font-weight: 800; line-height: 1; color: #aab2bb;
  transition: inset .2s, font-size .2s;
}
.bonus-in .fox { width: 17px; height: 17px; opacity: .55; }
.bonus-in.corner {
  inset: -7px -7px auto auto; width: 16px; height: 16px; border-radius: 50%; font-size: 9px;
  background: var(--paper); box-shadow: 0 0 0 1px #c9cfd5; color: var(--pencil);
}
.bonus-in.corner .fox { width: 11px; height: 11px; opacity: 1; }
.bonus-in.got { color: var(--ink); box-shadow: 0 0 0 1.5px var(--red); }
.box.target .bonus-in:not(.corner) { color: var(--ink); opacity: .5; }
.rack .bonus-in:not(.corner) { color: #6b7790; }
.rack .bonus-in.corner { background: #2a303c; box-shadow: 0 0 0 1px #596275; color: #cbd5e1; }
.track.thread .bonus-in:not(.corner) { color: #a5814a; }
.cargo .bonus-in { inset: auto 6px 3px auto; width: auto; height: auto; place-items: end; font-size: 12px; z-index: 1; }
.cargo .bonus-in.corner { inset: auto 4px 2px auto; width: 16px; height: 16px; place-items: center; }

/* ---------------------------------------------------------- the table in motion */

.seat { align-items: center; }
.seat-die:empty { display: none; }
.seat-die { display: grid; place-items: center; width: 28px; height: 28px; margin: -6px 0 -6px -6px; }
.seat-die .d10 { width: 28px; height: 28px; }
.seat.low { background: var(--paper); color: var(--ink); }
.seat.out { opacity: .4; }
.seat.winner { box-shadow: 0 0 0 3px var(--red), 0 4px 0 rgb(0 0 0 / .25); transform: translateY(-3px); }
.scene-note { font-family: var(--hand); font-size: 19px; color: var(--pencil); }
.mat.playing .card button { pointer-events: none; }
.die-btn.taken::after, .die-slot.taken::after { content: ''; position: absolute; inset: -2px; border-radius: 10px; border: 3px solid var(--red); }

.flyers { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.flyer { position: absolute; left: 0; top: 0; will-change: transform; }
.flyer .d10 { width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 8px 6px rgb(0 0 0 / .35)); }

@media (prefers-reduced-motion: no-preference) {
  .land { animation: land calc(.35s / var(--speed, 1)) cubic-bezier(.2, 1.5, .4, 1); }
  @keyframes land { from { transform: scale(1.35) rotate(-10deg); } }
  .merge { animation: merge calc(.5s / var(--speed, 1)) ease-out; }
  @keyframes merge { 40% { transform: scale(1.3); filter: drop-shadow(0 0 8px var(--yellow)); } }
  .ink b { display: inline-block; animation: ink calc(.45s / var(--speed, 1)) cubic-bezier(.2, 1.3, .4, 1); }
  @keyframes ink { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } }
  .stamp { animation: stamp calc(.5s / var(--speed, 1)) cubic-bezier(.2, 1.4, .4, 1); }
  @keyframes stamp { from { transform: scale(2.4) rotate(-14deg); opacity: 0; } }
  .pop, .bump { animation: pop calc(.4s / var(--speed, 1)) ease-out; }
  @keyframes pop { 40% { transform: scale(1.15); } }
  .mini-pad.bump { animation-name: lift; }
  @keyframes lift { 40% { transform: translateY(-6px) rotate(var(--tilt, 0deg)); box-shadow: 0 0 0 3px var(--yellow), var(--shadow-paper); } }
  .seat.now.pop { animation-name: nudge; }
  @keyframes nudge { 40% { transform: translateY(-7px) scale(1.06); } }
  .your-turn { animation: your-turn calc(.6s / var(--speed, 1)) cubic-bezier(.2, 1.3, .4, 1); }
  @keyframes your-turn { from { transform: translateX(-14px); opacity: 0; color: var(--red); } }
  .table-talk li.fresh { animation: talk calc(.35s / var(--speed, 1)) ease-out both; animation-delay: calc(var(--i, 0) * 80ms); }
  @keyframes talk { from { transform: translateY(-6px); opacity: 0; } }
  table.final.deal-in tbody tr { animation: deal calc(.45s / var(--speed, 1)) ease-out both; animation-delay: calc(var(--i, 0) * 260ms); }
  @keyframes deal { from { transform: translateX(16px); opacity: 0; } }
  .final-flag.stamp { animation-name: stamp; }
}

/* ---------------------------------------------------------- rules (dialog and page) */

.dialog-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dialog-head-actions a { text-decoration: none; }
.rules p { margin: 0 0 8px; }
.rules ul ul { margin-top: 5px; }
.rules .callout { background: var(--tape); padding: 8px 12px; border-radius: 4px; font-size: 14px; }
.rules ol.steps > li::marker { font-weight: 800; }
.rules code { font-family: var(--print); font-weight: 700; background: rgb(0 0 0 / .05); padding: 0 4px; border-radius: 3px; }
.dept-list { display: grid; gap: 12px; }
.dept { border-left: 5px solid var(--c, var(--rule)); background: rgb(0 0 0 / .025); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.dept.yellow { --c: var(--yellow); } .dept.green { --c: var(--green); } .dept.orange { --c: var(--orange); }
.dept.purple { --c: var(--purple); } .dept.blue { --c: var(--blue); } .dept.pink { --c: var(--pink); }
.dept h4 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 7px; margin: 0 0 4px; }
.dept .flavor { font-style: italic; color: var(--pencil); font-size: 14px; }
.dept ul { font-size: 14px; }
.bonus-box { margin-top: 8px; padding: 8px 10px; background: var(--paper); border: 1px dashed var(--rule); border-radius: 6px; }
.bonus-box h5 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.bonus-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bonus-box .spot { font-weight: 700; }
.bonus-box .spot::after { content: ' →'; color: var(--pencil); font-weight: 400; }
.track-table, .token-table { border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.track-table th, .track-table td, .token-table th, .token-table td { border: 1px solid var(--rule); padding: 3px 8px; text-align: left; vertical-align: top; }
.track-table td { text-align: center; min-width: 26px; }
.token-table { width: 100%; }
.token-table thead th { background: rgb(0 0 0 / .04); }
.mat-foot .foot-links a { color: var(--paper); font-weight: 700; }

/* the standalone rules page */
.rules-page .desk-nav a { text-decoration: none; }
.rules-sheet { max-width: 780px; margin: 18px auto 40px; background: var(--paper); padding: 28px 32px 32px; border-radius: 3px; box-shadow: var(--shadow-paper); }
.rules-sheet h1 { font-size: 30px; font-weight: 900; font-variation-settings: 'wdth' 118; margin: 0; }
.rules-sub { color: var(--pencil); margin-top: 4px; }
.legal h2 { font-size: 20px; font-weight: 900; font-variation-settings: 'wdth' 115; margin: 0 0 8px; }
.legal section { margin-top: 24px; }
.legal h3 { margin-top: 14px; }
.legal ul { margin-bottom: 8px; }
.legal a { color: var(--ink); font-weight: 600; }
.legal code { font-size: 13px; background: #eef0f2; padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.legal-summary { background: #f3f1e6; border-left: 4px solid var(--red); padding: 14px 18px; }
.legal-summary ul { margin: 0; }
.player-id-box { border: 2px dashed var(--rule); border-radius: 6px; padding: 14px 16px; margin-top: 12px; }
.player-id-box .ghost-button { margin-top: 4px; }
.legal-foot { margin-top: 28px; padding-top: 14px; border-top: 2px dashed var(--rule); font-size: 14px; }
.rules .rules-version { font-size: 13px; color: var(--pencil); margin: 4px 0 0; }
.rules .rules-version a { color: inherit; font-weight: 700; }
.rules .changes article { margin-top: 10px; }
.rules .changes h4 { margin: 0 0 4px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.rules .changes .when { font-weight: 400; font-size: 13px; color: var(--pencil); }
.rules .changes .current { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--tape); padding: 1px 6px; border-radius: 3px; }
.rules .changes .beta-only { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; box-shadow: inset 0 0 0 1.5px currentColor; padding: 1px 6px; border-radius: 3px; }
@media (max-width: 640px) {
  .rules-sheet { margin: 12px 16px 28px; padding: 20px 16px 24px; }
  .token-table, .token-table tbody, .token-table tr, .token-table th, .token-table td { display: block; width: auto; }
  .token-table thead { display: none; }
  .token-table tr { margin-bottom: 8px; border: 1px solid var(--rule); border-radius: 6px; }
  .token-table th, .token-table td { border: 0; }
}
@media print {
  html, body.rules-page { background: white; }
  .rules-page .desk-top, .rules-page .legal-foot { display: none; }
  .rules-sheet { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  .dept, .bonus-box, .token-table tr { break-inside: avoid; }
}

/* Take back a turn, until anyone else moves. */
.ghost-button.restart { display: block; margin: 14px 0 4px; padding: 6px 12px; font-size: 13px; color: var(--pencil); }

/* The how-to-play tour: a caption bar over the table, an outline on what it's
   about, and a pulse on what "You" are about to click. */
body.touring { padding-bottom: 170px; }
html:has(body.touring) { scroll-padding-bottom: 170px; scroll-padding-top: 12px; }
.tour-caption {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50;
  width: min(980px, calc(100vw - 32px)); display: flex; gap: 18px; align-items: center;
  background: var(--paper); color: var(--ink); padding: 14px 18px 14px 22px; border-radius: 4px;
  border-left: 8px solid var(--red); box-shadow: 0 14px 34px -10px rgb(0 0 0 / .6);
}
.tour-caption[hidden] { display: none; }
.tour-copy { flex: 1; min-width: 0; }
.tour-kicker { margin: 0; font-size: 13px; color: var(--pencil); }
.tour-caption h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 900; font-variation-settings: 'wdth' 112; line-height: 1.15; }
.tour-caption p#tour-text { margin: 0; font-size: 17px; line-height: 1.4; }
.tour-actions { display: flex; flex-direction: column; gap: 8px; }
.tour-actions button { white-space: nowrap; }
.tour-caption.end-card { border-left-color: var(--yellow); }
body.recording .tour-actions { display: none; }
body.recording, body.recording * { cursor: none !important; }
.tour-focus { outline: 4px solid var(--red); outline-offset: 5px; border-radius: 6px; transition: outline-color .3s; }
.tour-point { position: relative; z-index: 2; animation: tour-point 1s ease-in-out infinite; border-radius: 10px; }
@keyframes tour-point {
  0%, 100% { box-shadow: 0 0 0 0 rgb(224 56 43 / .0); }
  50% { box-shadow: 0 0 0 7px rgb(224 56 43 / .55); }
}
@media (max-width: 640px) {
  body.touring { padding-bottom: 230px; }
  html:has(body.touring) { scroll-padding-bottom: 230px; }
  .tour-caption { flex-direction: column; align-items: stretch; gap: 10px; bottom: 8px; padding: 12px 14px; }
  .tour-caption h2 { font-size: 18px; }
  .tour-caption p#tour-text { font-size: 15px; }
  .tour-actions { flex-direction: row; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .tour-point { animation: none; box-shadow: 0 0 0 5px rgb(224 56 43 / .55); } }

/* The how-to-play video, at the top of the How to play dialog. */
.rules-video { margin: 0 0 18px; }
.rules-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 6px; box-shadow: var(--shadow-paper); }
.rules-video figcaption { margin-top: 6px; font-size: 13px; color: var(--pencil); }
.rules-video figcaption a { color: inherit; font-weight: 700; }
