@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #151816;
  --panel: #202720;
  --line: #394438;
  --ink: #edeae0;
  --muted: #9aa695;
  --accent: #cdb78a;
  --felt: #1d4031;
  --glow: #738868;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --app-height: 100svh;
  --head: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  height: var(--app-height);
}
body[data-act="2"] {
  --felt: #253b43;
  --glow: #688895;
  --accent: #b6c7cd;
}
body[data-act="3"] {
  --felt: #472e35;
  --glow: #a37b7d;
  --accent: #d8b7a0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 44px;
  touch-action: manipulation;
}
input,
select {
  font-size: 16px;
  background: #172018;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  min-height: 44px;
  min-width: 0;
}
button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button:not(:disabled):active {
  transform: scale(0.98);
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  transition:
    background 120ms var(--ease),
    transform 120ms var(--ease);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--accent);
  color: #172117;
  padding: 12px;
}
.skip-link:focus {
  transform: none;
}
p,
h1,
h2,
h3 {
  margin-top: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--accent);
  margin: 0 0 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.run-header {
  height: calc(var(--head) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(24px, env(safe-area-inset-right)) 0
    max(24px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.run-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font:
    24px/1 Georgia,
    serif;
  white-space: nowrap;
}
.run-brand small {
  display: block;
  font:
    8px/1.2 ui-monospace,
    monospace;
  letter-spacing: 2px;
  margin-top: 8px;
  color: var(--accent);
}
.run-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.run-identity {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.run-identity strong {
  color: var(--ink);
}
#connection {
  font-size: 10px;
  color: #abc49d;
}
#connection.offline {
  color: #d9b18b;
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 23px;
}
.icon-button:hover {
  border-color: var(--line);
}
.text-button {
  color: var(--accent);
  font-size: 12px;
  padding: 0 12px;
}
.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 7px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.primary-button {
  background: var(--accent);
  color: #1a241b;
  font-weight: 600;
}
.secondary-button {
  border: 1px solid #57624c;
  color: var(--accent);
}
main {
  height: calc(var(--app-height) - var(--head) - env(safe-area-inset-top, 0px));
  min-height: 0;
}
main:focus {
  outline: 0;
}
.home-scene {
  height: 100%;
  min-height: 0;
  max-width: 1320px;
  margin: auto;
  padding: 52px 50px;
  display: grid;
  grid-template-columns: 1fr 510px;
  gap: 100px;
  overflow: auto;
}
.home-intro {
  position: relative;
}
.home-intro h1 {
  font:
    clamp(58px, 6.5vw, 96px) / 0.98 Georgia,
    serif;
  letter-spacing: -4px;
  margin: 35px 0 25px;
}
.home-intro h1 em {
  color: var(--accent);
  font-weight: normal;
}
.home-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.night-seal {
  width: 210px;
  height: 180px;
  position: relative;
  margin: 26px 0 20px;
  border: 1px solid #77846955;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #62704a33, transparent 70%);
  transform: rotate(-12deg);
}
.night-seal > span {
  font:
    120px/1 Georgia,
    serif;
  color: var(--accent);
}
.night-seal > i {
  position: absolute;
  right: 30px;
  top: 12px;
  font:
    38px Georgia,
    serif;
}
.night-seal small {
  position: absolute;
  bottom: 20px;
  left: 22px;
  font:
    8px/1.3 ui-monospace,
    monospace;
  letter-spacing: 2px;
}
.intro-foot {
  font-size: 11px !important;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-heading h2 {
  font:
    29px/1.1 Georgia,
    serif;
  margin: 0;
}
.section-heading h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}
.character-list {
  display: grid;
  gap: 10px;
}
.character-card {
  text-align: left;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #1d231d;
  min-height: 104px;
  position: relative;
}
.character-card[aria-pressed="true"] {
  background: linear-gradient(100deg, #354032, #252c23);
  border-color: var(--accent);
}
.character-mark {
  font:
    33px Georgia,
    serif;
  color: var(--accent);
  align-self: center;
}
.character-card h3 {
  font:
    21px Georgia,
    serif;
  margin: 0 0 3px;
}
.character-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.character-card small {
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-top: 7px;
}
.home-choice > .primary-button {
  width: 100%;
  margin-top: 15px;
}
.home-choice > .small {
  text-align: center;
  margin: 9px 0 22px;
}
.saved-runs {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  min-height: 0;
}
.saved-runs .section-heading > span {
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
}
#saved-list {
  max-height: 230px;
  overflow: auto;
  overscroll-behavior: contain;
}
.saved-row {
  display: flex;
  border-top: 1px solid #30382d;
  align-items: center;
  gap: 8px;
}
.saved-row > button:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 12px 0;
}
.saved-row strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.saved-row small {
  font-size: 10px;
  color: var(--muted);
}
.saved-row .delete-run {
  color: #b58f80;
  font-size: 18px;
  width: 44px;
}
.scene {
  height: 100%;
  min-height: 0;
}
.journey-scene {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 38px 44px;
  max-width: 1240px;
  margin: auto;
}
.scene-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 28px;
}
.scene-heading h1 {
  font:
    48px/1.05 Georgia,
    serif;
  letter-spacing: -1.2px;
  margin: 0 0 12px;
}
.scene-heading p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  margin: 0;
}
.resources {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
}
.resource {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.resource small {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.resource strong {
  font:
    24px Georgia,
    serif;
  color: var(--accent);
}
.act-map {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.act-step {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #303a30;
}
.act-step.active {
  background: var(--accent);
}
.route-grid,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.route-card,
.item-card,
.camp-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(150deg, #2a3228, #1a211b);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.route-card h2,
.item-card h3,
.camp-card h2 {
  font:
    27px/1.1 Georgia,
    serif;
  margin: 14px 0;
}
.route-card p,
.item-card p,
.camp-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.route-card .route-mark {
  font:
    58px Georgia,
    serif;
  color: var(--accent);
  margin: 14px 0;
}
.route-card .primary-button,
.item-card button,
.camp-card button {
  margin-top: auto;
}
.route-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 22px;
}
.route-facts small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.route-facts strong {
  font-size: 13px;
  font-weight: 500;
}
.boss-preview {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding: 20px 0;
  display: flex;
  gap: 25px;
  align-items: center;
}
.boss-preview > span {
  font:
    40px Georgia,
    serif;
  color: var(--accent);
}
.boss-preview h3 {
  font:
    20px Georgia,
    serif;
  margin: 0 0 5px;
}
.boss-preview p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.scene-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.item-card .item-icon {
  font:
    42px Georgia,
    serif;
  color: var(--accent);
}
.item-meta {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.item-card h3 {
  font-size: 23px;
}
.item-card p {
  flex: 1;
}
.empty-card {
  border: 1px dashed #596147;
  border-radius: 8px;
  min-height: 100px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}
.camp-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.camp-card {
  padding: 20px;
}
.camp-card h2 {
  font-size: 24px;
}
.camp-detail {
  margin-top: 22px;
}
.camp-detail .choice-grid {
  grid-template-columns: repeat(3, 1fr);
}
.owned-gear {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.owned-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.owned-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  gap: 12px;
  font-size: 12px;
}
.owned-item button {
  color: #c2a88e;
  padding: 0 8px;
}
.score-banner {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 20%, #48573a44, transparent), #20281f;
  text-align: center;
  margin-bottom: 25px;
}
.score-banner .big-score {
  font:
    80px/1 Georgia,
    serif;
  color: var(--accent);
  margin: 15px 0;
}
.score-banner p {
  color: var(--muted);
}
.run-record {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  margin: 22px auto;
  max-width: 680px;
}
.run-record strong {
  display: block;
  font:
    30px Georgia,
    serif;
  color: var(--accent);
}
.run-record small {
  color: var(--muted);
  font-size: 11px;
}
.table-scene {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: 60px minmax(0, 1fr) 140px;
  padding-bottom: var(--safe-bottom);
}
.gear-bar {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.gear-slot {
  height: 44px;
  width: 44px;
  border: 1px solid #4b5943;
  border-radius: 6px;
  color: var(--accent);
  font:
    24px Georgia,
    serif;
  flex-shrink: 0;
}
.gear-slot.empty {
  opacity: 0.35;
  border-style: dashed;
}
.gear-info {
  font-size: 11px;
  color: var(--muted);
  margin-left: 10px;
  white-space: nowrap;
}
.tactic-trigger {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 7px 13px;
  color: var(--accent);
  font-size: 12px;
  height: 44px;
}
.tactic-trigger b {
  font:
    18px Georgia,
    serif;
}
.run-table {
  position: relative;
  min-width: 0;
  min-height: 0;
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template-rows: minmax(112px, 1fr) 180px minmax(84px, 1fr);
  gap: 10px;
  padding: 16px 32px 14px;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
}
.run-felt {
  position: absolute;
  inset: 16px 22px 18px;
  border: 1px solid #73816a66;
  border-radius: 100px;
  background: radial-gradient(
    ellipse at 50% 5%,
    color-mix(in srgb, var(--felt), #899c71 20%),
    var(--felt) 70%
  );
  box-shadow:
    inset 0 0 0 7px #ffffff07,
    inset 0 0 0 9px #ffffff0c;
  pointer-events: none;
}
.run-opponents {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: start;
  min-width: 0;
}
.run-seat {
  text-align: center;
  min-width: 0;
  padding: 0 8px;
}
.run-seat-info {
  border: 1px solid #72856566;
  background: #222c22eb;
  border-radius: 7px;
  padding: 7px 8px;
  min-height: 60px;
}
.run-seat.turn .run-seat-info {
  border-color: var(--accent);
  background: #384531;
}
.run-seat.folded {
  opacity: 0.48;
}
.seat-name {
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-stack {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.seat-state {
  font-size: 10px;
  color: var(--muted);
  height: 15px;
}
.seat-bet {
  font-size: 10px;
  color: var(--accent);
  height: 16px;
}
.seat-cards {
  height: 37px;
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: -4px;
}
.card {
  width: 47px;
  height: 65px;
  background: #ecebdf;
  color: #26362b;
  border: 1px solid #cbcdbb;
  border-radius: 5px;
  padding: 5px 6px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  font:
    22px/1 Georgia,
    serif;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 6px #07120b22;
}
.card .suit {
  align-self: flex-end;
}
.card.red {
  color: #a44e41;
}
.card.back {
  background: repeating-linear-gradient(
    45deg,
    #526346 0,
    #526346 2px,
    #374b36 2px,
    #374b36 5px
  );
  border: 2px solid #bec5a6;
  color: #c6cfb5;
}
.card.back:after {
  content: "♠";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.card.empty {
  background: #162c1c30;
  border: 1px solid #a4bb8a22;
  box-shadow: none;
}
.seat-cards .card {
  width: 25px;
  height: 35px;
  font-size: 13px;
  padding: 3px;
}
.seat-cards .card.back:after {
  font-size: 14px;
}
.run-board {
  position: relative;
  z-index: 1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 180px;
}
.pot-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #b1c6a1;
  height: 14px;
}
.pot-amount {
  font:
    33px/38px Georgia,
    serif;
  height: 38px;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.community-cards {
  display: flex;
  gap: 6px;
  height: 65px;
}
.board-meta {
  font-size: 10px;
  color: #b3c6a1;
  height: 16px;
  line-height: 16px;
  margin-top: 7px;
}
.board-feedback {
  font-size: 11px;
  height: 24px;
  line-height: 12px;
  max-width: 330px;
  text-align: center;
  color: var(--accent);
  overflow: hidden;
  margin-top: 5px;
}
.run-hero {
  position: relative;
  z-index: 1;
  grid-row: 3;
  align-self: end;
  display: flex;
  justify-content: center;
  gap: 13px;
  align-items: center;
  height: 84px;
}
.hero-cards {
  display: flex;
  gap: 5px;
}
.hero-info {
  width: 135px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: #293227;
  padding: 6px 12px;
}
.hero-name {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1px;
  height: 14px;
}
.hero-stack {
  font:
    24px/28px Georgia,
    serif;
  height: 28px;
}
.hero-status {
  color: var(--muted);
  font-size: 10px;
  height: 14px;
  line-height: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.run-dock {
  grid-row: 3;
  grid-column: 1;
  display: grid;
  grid-template-rows: 36px 48px 16px;
  gap: 6px;
  padding: 14px 26px 10px;
  background: #20291f;
  border-top: 1px solid #59664b;
  min-height: 0;
}
.decision {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.decision h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  line-height: 18px;
  max-height: 36px;
  overflow: hidden;
}
.decision small {
  color: var(--accent);
  font-size: 11px;
  text-align: right;
}
.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}
.action-buttons button {
  border: 1px solid #5f6c4e;
  border-radius: 6px;
  font-size: 13px;
  height: 48px;
  padding: 4px;
}
.action-buttons button.call {
  background: #96b38b;
  color: #192c1c;
}
.action-buttons button.raise {
  background: #3a3526;
  color: #d6bf8b;
}
.action-buttons button strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.action-buttons button small {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  opacity: 0.8;
}
.dock-status {
  height: 16px;
  font-size: 10px;
  line-height: 16px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.table-aside {
  grid-column: 2;
  grid-row: 1/4;
  border-left: 1px solid var(--line);
  padding: 24px 20px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.table-aside h2 {
  font:
    25px Georgia,
    serif;
  margin-bottom: 16px;
}
.target-meter {
  height: 4px;
  background: #34412e;
  border-radius: 4px;
  margin: 14px 0;
}
.target-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  max-width: 100%;
  min-width: 0;
}
.target-figures {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.target-figures strong {
  color: var(--ink);
}
.aside-rule {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 16px 0;
}
.history-list {
  min-height: 50px;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}
.history-row {
  font-size: 11px;
  padding: 10px 0 10px 12px;
  border-left: 1px solid #596c47;
  color: #c2cbb4;
  margin: 6px 0;
}
.table-aside > .secondary-button {
  width: 100%;
  justify-content: center;
  margin-top: 15px;
}
.paused-cover {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: #111911df;
  display: grid;
  place-items: center;
  text-align: center;
}
.paused-cover h2 {
  font:
    35px Georgia,
    serif;
  margin-bottom: 8px;
}
.paused-cover p {
  color: var(--muted);
}
.notice {
  position: fixed;
  left: 50%;
  top: calc(var(--head) + 8px);
  transform: translateX(-50%);
  z-index: 60;
  width: min(720px, calc(100% - 24px));
  padding: 16px 18px;
  background: #403429;
  border: 1px solid #a48259;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 40px #0005;
}
.notice > div {
  flex: 1;
  min-width: 0;
}
.notice strong {
  font-size: 13px;
}
.notice p {
  font-size: 12px;
  margin: 4px 0 0;
  color: #d3c3aa;
}
.notice button {
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.toast {
  position: fixed;
  bottom: calc(22px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: #353f2e;
  border: 1px solid #738264;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 12px;
  max-width: calc(100% - 24px);
}
dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(var(--overlay-height, 100svh) - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #242d23;
  color: var(--ink);
  border: 1px solid #667353;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 22px 100px #0005;
}
dialog::backdrop {
  background: #091009c9;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head .eyebrow {
  margin: 0;
}
dialog h2 {
  font:
    34px/1.1 Georgia,
    serif;
  margin: 15px 0 20px;
}
#dialog-body p {
  color: #bac5af;
  font-size: 13px;
  line-height: 1.8;
}
#dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
#dialog-actions:empty {
  margin: 0;
}
.dialog-choice {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 8px 0;
}
.dialog-choice:has(input:checked) {
  border-color: var(--accent);
}
.dialog-choice input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
}
.dialog-choice strong {
  font-size: 13px;
}
.dialog-choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
  font-size: 12px;
  color: #c8d1be;
}
.raise-presets {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.raise-presets button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.dialog-cards {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.dialog-cards button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.dialog-cards button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #53604644;
}
.audio-level {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}
.audio-level span {
  width: 80px;
  color: var(--muted);
  font-size: 12px;
}
.audio-level input {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
}
.audio-level output {
  width: 30px;
  font-size: 11px;
}
.legal-note {
  font-size: 11px;
  color: var(--muted);
}
.progress-badge {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 15px;
  font-size: 12px;
  color: var(--accent);
}
.run-table-scene {
  position: relative;
}
.mini-board {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 10px 0;
}
.mini-board .card {
  width: 32px;
  height: 44px;
  font-size: 16px;
  padding: 3px;
}
.scene-empty {
  padding: 60px 25px;
  text-align: center;
}
.scene-empty h1 {
  font:
    42px Georgia,
    serif;
}
.presentation-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}
.presentation-card,
.presentation-chip {
  position: fixed;
  pointer-events: none;
  will-change: transform, opacity;
}
.presentation-chip {
  height: 14px;
  width: 14px;
  border: 2px dashed #d8c393;
  border-radius: 50%;
  background: #9b7443;
  box-shadow: 0 2px 0 #573d26;
}
@media (max-width: 1100px) {
  .home-scene {
    gap: 45px;
    padding: 36px;
  }
  .home-scene {
    grid-template-columns: 1fr 450px;
  }
  .table-aside {
    display: none;
  }
  .table-scene {
    grid-template-columns: 1fr;
  }
  .route-grid,
  .choice-grid {
    gap: 12px;
  }
  .journey-scene {
    padding: 28px;
  }
  .camp-options {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --head: 56px;
  }
  .run-header {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    gap: 10px;
  }
  .run-brand {
    font-size: 20px;
    gap: 8px;
  }
  .run-brand img {
    width: 25px;
    height: 25px;
  }
  .run-brand small {
    font-size: 6px;
    letter-spacing: 1.4px;
    margin-top: 5px;
  }
  .run-header nav {
    gap: 1px;
  }
  .run-header #connection {
    display: none;
  }
  .run-header .text-button {
    padding: 0 7px;
    font-size: 11px;
  }
  .run-identity {
    display: none;
  }
  .home-scene {
    display: block;
    padding: 24px 18px;
    max-width: 520px;
  }
  .home-intro {
    padding-bottom: 24px;
  }
  .home-intro h1 {
    font-size: 57px;
    letter-spacing: -2px;
    margin: 14px 0;
  }
  .home-intro h1 br {
    display: none;
  }
  .home-intro > .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
    max-width: 270px;
  }
  .home-intro > p:not(.eyebrow) {
    font-size: 13px;
    margin-bottom: 0;
  }
  .night-seal,
  .intro-foot {
    display: none;
  }
  .home-intro h1 em {
    white-space: nowrap;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .character-card {
    padding: 13px 16px;
    min-height: 94px;
  }
  .character-card h3 {
    font-size: 20px;
  }
  .character-card p {
    font-size: 12px;
  }
  .character-card small {
    font-size: 10px;
  }
  .home-choice > .small {
    font-size: 11px;
  }
  .journey-scene {
    padding: 23px 18px;
  }
  .scene-heading {
    margin-bottom: 22px;
    gap: 14px;
  }
  .scene-heading h1 {
    font-size: 35px;
    letter-spacing: -0.8px;
  }
  .scene-heading p:not(.eyebrow) {
    font-size: 12px;
  }
  .resources {
    gap: 14px;
  }
  .resource strong {
    font-size: 20px;
  }
  .resource small {
    font-size: 8px;
  }
  .route-grid,
  .choice-grid,
  .camp-detail .choice-grid {
    grid-template-columns: 1fr;
  }
  .route-card {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .route-card .eyebrow,
  .route-card h2,
  .route-card > p {
    grid-column: 1/-1;
  }
  .route-card .route-mark {
    display: none;
  }
  .route-card h2 {
    font-size: 25px;
    margin: 5px 0 10px;
  }
  .route-card > p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .route-facts {
    margin: 5px 0 12px;
    gap: 8px;
  }
  .route-card .primary-button {
    align-self: end;
    margin-bottom: 12px;
    font-size: 12px;
    padding: 10px 14px;
  }
  .item-card {
    padding: 21px;
  }
  .item-card .item-icon {
    font-size: 32px;
  }
  .item-card h3 {
    margin: 8px 0;
  }
  .item-card p {
    font-size: 12px;
  }
  .boss-preview {
    gap: 15px;
  }
  .boss-preview p {
    font-size: 11px;
  }
  .scene-footer {
    flex-wrap: wrap;
  }
  .scene-footer button {
    flex: 1;
    justify-content: center;
  }
  .camp-card {
    padding: 16px;
  }
  .camp-card h2 {
    font-size: 23px;
  }
  .camp-card p {
    font-size: 12px;
  }
  .camp-card button {
    font-size: 12px;
    padding: 10px;
  }
  .score-banner {
    padding: 24px 18px;
  }
  .score-banner .big-score {
    font-size: 64px;
  }
  .run-record {
    gap: 8px;
  }
  .run-record strong {
    font-size: 23px;
  }
  .run-record small {
    font-size: 10px;
  }
  .table-scene {
    grid-template-rows: 54px minmax(0, 1fr) 128px;
  }
  .gear-bar {
    padding: 5px 14px;
    gap: 5px;
  }
  .gear-slot {
    width: 44px;
    min-width: 44px;
    font-size: 21px;
    border-color: transparent;
  }
  .gear-slot.empty {
    border-color: #46513e44;
  }
  .gear-info {
    display: none;
  }
  .tactic-trigger {
    font-size: 11px;
    padding: 6px 9px;
    gap: 7px;
    min-width: 0;
  }
  .tactic-trigger > span {
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .run-table {
    padding: 10px 14px 8px;
    grid-template-rows: minmax(91px, 1fr) 156px minmax(70px, 1fr);
    gap: 6px;
  }
  .run-felt {
    inset: 8px 8px 15px;
    border-radius: 50px;
  }
  .run-opponents {
    gap: 8px;
  }
  .run-seat {
    padding: 0;
  }
  .run-seat-info {
    padding: 5px;
    min-height: 52px;
  }
  .seat-name {
    font-size: 10px;
    height: 15px;
  }
  .seat-stack {
    font-size: 12px;
    height: 16px;
  }
  .seat-state {
    font-size: 9px;
    height: 13px;
  }
  .seat-bet {
    font-size: 9px;
    height: 14px;
  }
  .seat-cards {
    height: 28px;
  }
  .seat-cards .card {
    width: 21px;
    height: 28px;
    font-size: 11px;
    padding: 2px;
  }
  .run-board {
    height: 156px;
  }
  .pot-amount {
    font-size: 27px;
    height: 32px;
    line-height: 32px;
    margin-bottom: 5px;
  }
  .card {
    width: 40px;
    height: 55px;
    font-size: 19px;
    padding: 4px 5px;
  }
  .community-cards {
    height: 55px;
    gap: 5px;
  }
  .board-meta {
    margin-top: 5px;
    height: 14px;
    font-size: 9px;
    line-height: 14px;
  }
  .board-feedback {
    font-size: 10px;
    max-width: 275px;
    height: 24px;
  }
  .run-hero {
    height: 70px;
    gap: 10px;
  }
  .hero-info {
    width: 123px;
    padding: 5px 10px;
  }
  .hero-stack {
    font-size: 22px;
    line-height: 25px;
    height: 25px;
  }
  .run-dock {
    grid-template-rows: 30px 46px 16px;
    padding: 10px 14px 8px;
    gap: 6px;
  }
  .decision h2 {
    font-size: 12px;
    max-height: 30px;
    line-height: 15px;
  }
  .decision small {
    font-size: 10px;
  }
  .action-buttons {
    gap: 6px;
  }
  .action-buttons button {
    height: 46px;
    font-size: 12px;
  }
  .action-buttons button strong {
    font-size: 12px;
  }
  .action-buttons button small {
    font-size: 9px;
  }
  .dock-status {
    font-size: 9px;
  }
  .notice {
    padding: 13px;
    gap: 10px;
    align-items: flex-start;
  }
  .notice p {
    font-size: 11px;
  }
  .notice button {
    font-size: 11px;
    max-width: 95px;
  }
  .dialog {
    padding: 20px;
  }
  .run-record {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  .run-brand {
    font-size: 18px;
  }
  .run-brand small {
    font-size: 5px;
  }
  .run-header .text-button {
    font-size: 10px;
  }
  .run-header .icon-button {
    width: 44px;
  }
  .home-intro h1 {
    font-size: 50px;
  }
  .gear-bar {
    padding-left: 8px;
    padding-right: 8px;
    gap: 2px;
  }
  .gear-slot {
    width: 44px;
    min-width: 44px;
  }
  .tactic-trigger {
    padding: 6px;
    font-size: 10px;
  }
  .run-table {
    padding-left: 10px;
    padding-right: 10px;
  }
  .run-dock {
    padding-left: 10px;
    padding-right: 10px;
  }
  .resources {
    gap: 9px;
  }
  .resource strong {
    font-size: 19px;
  }
}
html[data-run-density="short"] .table-scene {
  grid-template-rows: 48px minmax(0, 1fr) 114px;
}
html[data-run-density="short"] .run-table {
  grid-template-rows: minmax(82px, 1fr) 127px 56px;
  gap: 4px;
  padding-top: 5px;
  padding-bottom: 5px;
}
html[data-run-density="short"] .run-board {
  height: 127px;
}
html[data-run-density="short"] .pot-label {
  height: 11px;
  font-size: 8px;
}
html[data-run-density="short"] .pot-amount {
  height: 25px;
  line-height: 25px;
  font-size: 23px;
  margin-bottom: 3px;
}
html[data-run-density="short"] .community-cards {
  height: 45px;
}
html[data-run-density="short"] .run-board .card {
  width: 33px;
  height: 45px;
  font-size: 16px;
  padding: 3px;
}
html[data-run-density="short"] .board-meta {
  height: 12px;
  line-height: 12px;
  margin-top: 4px;
}
html[data-run-density="short"] .board-feedback {
  height: 22px;
  line-height: 11px;
  margin-top: 3px;
}
html[data-run-density="short"] .run-hero {
  height: 56px;
}
html[data-run-density="short"] .hero-cards .card {
  width: 35px;
  height: 48px;
  font-size: 17px;
}
html[data-run-density="short"] .hero-info {
  padding: 2px 9px;
}
html[data-run-density="short"] .hero-stack {
  font-size: 18px;
  height: 22px;
  line-height: 22px;
}
html[data-run-density="short"] .hero-name {
  height: 12px;
  font-size: 8px;
}
html[data-run-density="short"] .hero-status {
  height: 12px;
  font-size: 9px;
  line-height: 12px;
}
html[data-run-density="short"] .run-dock {
  grid-template-rows: 26px 44px 14px;
  padding: 8px 12px;
  gap: 6px;
}
html[data-run-density="short"] .action-buttons button {
  height: 44px;
}
html[data-run-density="short"] .dock-status {
  height: 14px;
  line-height: 14px;
}
html[data-run-density="short"][data-run-tiny="true"] .run-table {
  grid-template-rows: minmax(92px, 1fr) 127px 56px;
}
@media (min-width: 761px) and (max-height: 650px) {
  :root {
    --head: 48px;
  }
  .table-scene {
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-rows: 48px minmax(0, 1fr) !important;
  }
  .gear-bar {
    grid-column: 1;
    grid-row: 1;
  }
  .run-table {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 110px;
    grid-template-rows: minmax(100px, 1fr) 137px !important;
    gap: 6px 10px;
    padding: 8px 18px;
  }
  .run-opponents {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .run-board {
    grid-column: 1;
    grid-row: 2;
    height: 137px !important;
  }
  .run-hero {
    grid-column: 2;
    grid-row: 2;
    height: 128px !important;
    flex-direction: column;
    gap: 5px;
  }
  .hero-info {
    width: 108px;
    text-align: center;
  }
  .run-hero .card {
    width: 31px;
    height: 43px;
    font-size: 15px;
  }
  .run-dock {
    grid-column: 2;
    grid-row: 1/3;
    grid-template-rows: 56px 100px 30px !important;
    gap: 14px !important;
    align-content: center;
    padding: 15px !important;
    border-left: 1px solid var(--line);
    border-top: 0;
  }
  .action-buttons {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 46px 46px;
    gap: 8px;
  }
  .decision {
    display: block;
  }
  .decision h2 {
    font-size: 13px;
  }
  .decision small {
    display: block;
    text-align: left;
    margin-top: 5px;
  }
  .dock-status {
    white-space: normal;
    height: 30px !important;
  }
  .table-aside {
    display: none;
  }
  .home-scene {
    padding: 20px;
    gap: 25px;
  }
  .home-intro h1 {
    font-size: 60px;
  }
  .night-seal {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  button:active {
    transform: none !important;
  }
}
.keyboard-mode button {
  transition: none;
}
.keyboard-mode button:active {
  transform: none;
}

.public-card:after {
  content: "PUBLIC";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  padding: 2px 4px;
  background: #d7d990;
  color: #19211b;
  font: 600 8px/10px system-ui;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.peeked-card:after {
  content: "PEEKED";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  padding: 2px 3px;
  background: #c3d5e3;
  color: #17232e;
  font: 600 8px/10px system-ui;
  white-space: nowrap;
  pointer-events: none;
}
html[lang="zh-CN"] .peeked-card:after { content: "仅你可见"; }
.run-opponents .peeked-card { outline: 2px solid #97bfdc; outline-offset: 1px; }
.run-opponents .public-card { outline: 2px solid #d7d990; outline-offset: 1px; }
.run-opponents .peeked-card:after, .run-opponents .seat-cards .public-card:after { content: none; }
.run-seat:has(.peeked-card) .seat-state { color: #bad8ef; }
.peek-target[aria-pressed="true"] { border-color: var(--accent); background: #d0b88118; }
.run-seat:only-child {
  width: min(220px, 100%);
  justify-self: center;
}
.dock-status {
  font-size: 11px !important;
  font-variant-numeric: tabular-nums;
}

/* Shared explicit language choice keeps existing control budgets. */
.language-button {
  font:
    600 12px/1.2 system-ui,
    sans-serif !important;
  min-width: 44px;
  width: 44px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.dialog-language {
  margin-left: auto;
  margin-right: 4px;
}
html[lang="zh-CN"] .eyebrow,
html[lang="zh-CN"] .brand small,
html[lang="zh-CN"] .run-brand small {
  letter-spacing: 1px;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  letter-spacing: 0;
  line-height: 1.2;
}

.run-difficulty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin: 14px 0;
}
.run-difficulty select {
  min-width: 0;
  flex: 1 1 130px;
}
.run-difficulty label { flex: 1 1 95px; }
.run-difficulty #difficulty-compare { flex: 0 0 44px; min-height: 44px; }
.contract-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
  gap: 8px 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin: 12px 0 20px;
}
.contract-picker > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contract-picker small {
  font-size: 12px;
  color: var(--muted);
}
.contract-detail {
  grid-column: 1/-1;
}
.camp-visits,
.contract-result {
  color: var(--accent);
  font-size: 13px;
}
.normal-mode-label {
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .run-brand small {
    display: none;
  }
  .run-brand {
    font-size: 20px;
  }
  .run-header {
    gap: 4px;
  }
  .run-header nav {
    gap: 0;
  }
  .run-header .text-button {
    padding: 0 5px;
  }
  .contract-picker {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .contract-picker select {
    width: 100%;
  }
  .character-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .character-card {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
    min-height: 122px;
  }
  .character-mark {
    font-size: 20px;
  }
  .character-card p {
    display: none;
  }
  .character-card h3 {
    font-size: 17px;
  }
  .character-card small {
    font-size: 11px;
    line-height: 16px;
    display: block;
  }
  .home-choice {
    min-width: 0;
  }
  .home-scene {
    padding-top: 20px;
  }
}
@media (max-width: 360px) {
  .run-brand img {
    display: none;
  }
  .run-brand {
    font-size: 18px;
  }
  .run-header {
    padding-left: 10px;
    padding-right: 8px;
  }
}

html[lang="zh-CN"] .public-card:after {
  content: "公开";
}
@media (max-width: 760px) {
  .run-table[data-opponents="4"] .run-opponents {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px 12px;
  }
  .run-table[data-opponents="4"] {
    grid-template-rows: minmax(178px, 1fr) 156px minmax(70px, 1fr);
  }
}
@media (max-width: 760px) {
  html[data-run-density="short"] .run-table[data-opponents="4"] {
    grid-template-rows: minmax(158px, 1fr) 127px 56px;
    gap: 4px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .run-seat-info {
    min-height: 44px;
    padding: 3px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .seat-cards {
    height: 24px;
  }
  html[data-run-density="short"]
    .run-table[data-opponents="4"]
    .seat-cards
    .card {
    height: 24px;
    width: 18px;
    font-size: 10px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .seat-state {
    height: 11px;
    font-size: 9px;
    line-height: 11px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .seat-bet {
    height: 11px;
    font-size: 9px;
    line-height: 11px;
  }
}

.route-card .contract-picker {
  grid-template-columns: 1fr;
  margin: 8px 0 12px;
  padding: 10px;
  gap: 6px;
}
.route-card .contract-picker select {
  width: 100%;
  font-size: 16px;
}
.route-card .contract-picker > span > small {
  display: none;
}
@media (max-width: 760px) {
  html[data-run-density="short"] .run-table[data-opponents="4"] {
    grid-template-rows: minmax(154px, 1fr) 122px 56px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .run-board {
    height: 122px;
  }
}

.contract-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  html[data-run-density="short"]
    .table-scene:has(.run-table[data-opponents="4"]) {
    grid-template-rows: 48px minmax(0, 1fr) 102px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] {
    grid-template-rows: minmax(166px, 1fr) 122px 56px;
  }
  html[data-run-density="short"]
    .table-scene:has(.run-table[data-opponents="4"])
    .run-dock {
    grid-template-rows: 20px 44px 14px;
    padding: 6px 12px;
    gap: 4px;
  }
}

.entry-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
}
.entry-preview h3 {
  margin: 0 0 10px;
}
.entry-preview .route-facts {
  margin: 0;
}
.entry-preview .legal-note {
  margin-bottom: 0;
}
/* The night is a sequence of views, with no wheel required. */
.home-scene {
  overflow: visible;
  padding: 24px 32px;
  gap: 44px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}
.home-choice {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}
.tab-content {
  min-height: 0;
  min-width: 0;
}
.new-run-panel {
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr) 48px 48px 42px;
  gap: 8px;
  min-height: 0;
}
.new-run-panel .section-heading {
  margin: 0;
  align-items: center;
}
.new-run-panel .section-heading .eyebrow {
  display: none;
}
.new-run-panel .section-heading h2 {
  font-size: 26px;
  margin: 0;
}
.new-run-panel .run-difficulty {
  margin: 0;
}
.new-run-panel #difficulty-description {
  margin: 0;
  line-height: 18px;
  font-size: 12px;
}
.saved-runs {
  margin: 0;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  gap: 8px;
}
.saved-runs .section-heading {
  margin: 0;
}
.saved-runs #saved-list {
  min-height: 0;
}
.character-list {
  height: 100%;
  min-height: 0;
}
.character-card {
  padding: 16px;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}
.character-card h3 {
  font-size: 24px;
  margin: 0 0 6px;
}
.character-card p {
  display: block;
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 8px;
}
.character-card small {
  font-size: 12px;
  line-height: 18px;
}
.character-mark {
  font-size: 28px;
}
.character-mark svg {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--accent, #d3b984);
}
.character-card[data-swipe-card] {
  touch-action: pan-y pinch-zoom;
}
.home-reference-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-reference-actions .icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
.target-explainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}
.target-explainer strong {
  white-space: nowrap;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.target-explainer.total {
  background: var(--panel);
}
@media (max-width: 760px) {
  .run-header:has(#gear-button:not([hidden])) #audio-button {
    display: none;
  }
  .run-header:has(#gear-button:not([hidden])) #runs-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }
  .run-header:has(#gear-button:not([hidden])) #runs-button:before {
    content: "⌂";
    font-size: 23px;
  }
  #run-account {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 11px;
  }
  .home-reference-actions {
    gap: 2px;
  }
  .home-reference-actions #how-button {
    font-size: 11px;
    padding: 4px;
  }
  .new-run-panel .section-heading h2 {
    font-size: 21px;
  }
  .character-mark svg {
    width: 32px;
    height: 40px;
  }
}
.home-intro h1 {
  font-size: clamp(55px, 6vw, 90px);
  margin: 24px 0;
}
.night-seal {
  width: 140px;
  height: 140px;
}
.intro-foot {
  display: none;
}
.scene {
  height: 100%;
  overflow: visible;
}
.journey-scene.choice-scene {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 24px 32px;
}
.choice-scene .scene-heading {
  margin: 0;
}
.choice-scene .scene-heading h1 {
  font-size: 36px;
  margin: 0 0 5px;
}
.choice-scene .scene-heading p:not(.eyebrow) {
  margin: 0;
  font-size: 13px;
}
.choice-scene .route-grid {
  min-height: 0;
  margin: 0;
}
.route-card {
  position: relative;
  min-height: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route-card h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}
.route-card .eyebrow {
  margin: 0;
}
.route-card .route-mark {
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 26px;
  opacity: 0.5;
  margin: 0;
}
.route-card .route-teaser {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.route-card .route-facts {
  margin: auto 0 0;
  gap: 8px;
}
.route-card > .primary-button {
  width: 100%;
  margin-top: 2px;
  min-height: 44px;
  padding: 10px 14px;
}
.room-overview .route-facts {
  margin: 0 0 12px;
}
.room-overview p {
  font-size: 14px;
  line-height: 21px;
  margin: 10px 0;
}
.house-favor {
  background: #273224;
  border: 1px solid #78826366;
  border-radius: 10px;
  padding: 16px;
}
.favor-opt-in {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.favor-opt-in input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin: 2px 0;
}
.favor-opt-in span {
  display: grid;
  gap: 4px;
}
.favor-opt-in small {
  color: var(--muted);
  font-size: 12px;
}
.house-favor h3 {
  font:
    22px/1.2 Georgia,
    serif;
  margin: 16px 0 8px;
}
.house-favor p {
  font-size: 14px;
  margin: 8px 0;
}
.favor-payoff {
  color: var(--accent);
}
.favor-choice {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.favor-choice h3 {
  font-size: 21px;
  margin: 0 0 8px;
}
.favor-choice p {
  font-size: 14px;
  line-height: 20px;
}
.favor-choice button {
  width: 100%;
}
#dialog[open] {
  display: grid;
  grid-template-rows: 44px auto minmax(0, 1fr) auto;
  gap: 10px;
  height: min(610px, calc(var(--app-height) - 28px));
  max-height: calc(var(--app-height) - 28px);
  overflow: visible;
  padding: 20px;
  width: min(640px, calc(100vw - 28px));
}
#dialog .dialog-head {
  margin: 0;
  height: 44px;
}
#dialog-title {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}
#dialog-body {
  overflow: visible;
  min-height: 0;
  padding: 0;
}
#dialog-actions {
  display: flex;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}
#dialog-actions button {
  min-height: 44px;
  padding: 10px 14px;
  flex: 1;
}
#dialog-body > .page-window {
  padding: 0;
}
#dialog .view-sheet {
  padding: 2px 4px;
}
@media (max-width: 760px) {
  .home-intro {
    display: none;
  }
  .home-scene {
    display: block;
    padding: 12px;
    height: 100%;
  }
  .home-choice {
    height: 100%;
    gap: 6px;
    grid-template-rows: 44px minmax(0, 1fr);
  }
  .new-run-panel {
    grid-template-rows: 42px minmax(0, 1fr) 46px 44px 40px;
    gap: 6px;
  }
  .new-run-panel .section-heading h2 {
    font-size: 24px;
  }
  .character-card {
    padding: 12px;
    gap: 8px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-content: center;
  }
  .character-card h3 {
    font-size: 23px;
  }
  .character-card p {
    font-size: 14px;
    line-height: 19px;
  }
  .character-card small {
    font-size: 12px;
  }
  .character-mark {
    font-size: 26px;
  }
  .journey-scene.choice-scene {
    padding: 12px;
    gap: 10px;
  }
  .choice-scene .scene-heading h1 {
    font-size: 27px;
  }
  .choice-scene .scene-heading p:not(.eyebrow) {
    display: none;
  }
  .choice-scene .scene-heading .resources {
    display: none;
  }
  .route-card {
    padding: 16px;
    gap: 10px;
  }
  .route-card h2 {
    font-size: 26px;
  }
  .route-card .route-teaser {
    line-height: 19px;
  }
  .route-card .route-facts {
    gap: 8px;
  }
  .route-card .route-facts strong {
    font-size: 17px;
  }
  #dialog[open] {
    padding: 12px;
    gap: 7px;
    grid-template-rows: 44px auto minmax(0, 1fr) auto;
  }
  #dialog-title {
    font-size: 25px;
  }
  .house-favor {
    padding: 12px;
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .home-intro {
    display: none;
  }
  .home-scene {
    display: block;
    padding: 12px 20px;
  }
  .home-choice {
    height: 100%;
    grid-template-rows: 44px minmax(0, 1fr);
    gap: 4px;
  }
  .new-run-panel {
    grid-template-columns: minmax(0, 1fr) 250px;
    grid-template-rows: 40px minmax(0, 1fr) 48px;
    gap: 6px 20px;
  }
  .new-run-panel > .section-heading {
    grid-column: 1/-1;
  }
  .new-run-panel > #characters {
    grid-column: 1;
    grid-row: 2/4;
  }
  .new-run-panel > .run-difficulty {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
  .new-run-panel > #difficulty-description {
    display: none;
  }
  .new-run-panel > #start-run {
    grid-column: 2;
    grid-row: 3;
  }
  .character-card {
    padding: 12px;
  }
  .character-card h3 {
    font-size: 22px;
  }
  .character-card p {
    font-size: 13px;
    line-height: 18px;
  }
  .character-mark {
    display: none;
  }
  .journey-scene.choice-scene {
    padding: 10px 20px;
    gap: 8px;
  }
  .choice-scene .scene-heading h1 {
    font-size: 26px;
  }
  .choice-scene .scene-heading p:not(.eyebrow) {
    display: none;
  }
  .route-card {
    padding: 12px;
    gap: 7px;
  }
  .route-card h2 {
    font-size: 22px;
  }
  .route-card .route-teaser {
    display: none;
  }
  .route-card .route-facts {
    gap: 5px;
  }
  .route-card .route-facts strong {
    font-size: 16px;
  }
  #dialog[open] {
    grid-template-columns: minmax(0, 1fr) 210px;
    grid-template-rows: 44px minmax(0, 1fr);
    height: calc(var(--app-height) - 20px);
    padding: 12px;
    gap: 10px 18px;
  }
  #dialog .dialog-head {
    grid-column: 1/-1;
  }
  #dialog-title {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 25px;
  }
  #dialog-body {
    grid-column: 1;
    grid-row: 2;
  }
  #dialog-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    flex-direction: column;
  }
  #dialog-actions button {
    width: 100%;
  }
}
/* The room is a stable stage; each shelf is reached with buttons. */
.journey-scene.reward-scene,
.journey-scene.camp-scene {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.camp-tabs {
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}
.shop-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 44px;
  gap: 8px;
}
.technique-view {
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  gap: 6px;
}
.technique-view > p {
  margin: 0;
}
.camp-card,
.item-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.camp-card > button,
.item-card > button {
  margin-top: auto;
  min-height: 44px;
  flex-shrink: 0;
}
.camp-card h2,
.item-card h3 {
  margin: 0;
  font-size: 26px;
}
.camp-card p,
.item-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.camp-card .item-icon {
  font-size: 28px;
}
.camp-card .unavailable-reason {
  font-size: 12px;
  line-height: 1.4;
}
.scene-footer {
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.scene-footer button {
  min-height: 44px;
  flex-shrink: 0;
}
.scene-footer .small {
  max-width: 52%;
  font-size: 12px;
}
.rest-view {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 14px;
}
.rest-mark {
  font: 72px Georgia;
  color: var(--gold);
}
.journey-scene.result-scene,
.journey-scene.end-scene {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  gap: 18px;
  padding: 24px 32px;
}
.result-scene > .contract-result {
  position: absolute;
  right: 40px;
  top: 135px;
}
.result-scene .score-banner,
.end-scene .score-banner {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.result-scene .big-score,
.end-scene .big-score {
  font-size: clamp(48px, 8vh, 86px);
  line-height: 1.05;
}
.end-scene .run-record {
  margin-top: 14px;
}
#dialog-body .item-card {
  height: auto;
  min-height: 0;
}
#dialog-body .page-navigation {
  border-top: 1px solid var(--line);
}
.favor-opt-in {
  min-height: 54px;
  padding: 8px 0;
  cursor: pointer;
}
.house-favor h3 {
  margin: 12px 0 8px;
}
.house-favor p {
  font-size: 14px;
  line-height: 1.5;
}
.presentation-ring {
  position: fixed;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid #d7b97a;
  border-radius: 16px;
  will-change: transform, opacity;
}
.presentation-ring.is-tactic {
  border-color: #9ccbbf;
}
.presentation-chip.is-payout {
  background: #c6a15d;
  border-color: #fff0bd;
}
@media (max-width: 760px) {
  .camp-card,
  .item-card {
    padding: 16px;
    gap: 10px;
  }
  .camp-card h2,
  .item-card h3 {
    font-size: 25px;
  }
  .camp-tabs .view-tabs {
    gap: 4px;
  }
  .view-tabs button {
    padding: 0 9px;
    font-size: 13px;
  }
  .scene-footer {
    gap: 6px;
  }
  .scene-footer button {
    font-size: 13px;
    padding: 0 10px;
  }
  .scene-footer .small {
    font-size: 11px;
    line-height: 1.4;
  }
  .journey-scene.result-scene,
  .journey-scene.end-scene {
    padding: 12px;
    gap: 10px;
  }
  .result-scene .scene-heading h1,
  .end-scene .scene-heading h1 {
    font-size: 28px;
  }
  .result-scene .scene-heading p:not(.eyebrow),
  .end-scene .scene-heading p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.45;
  }
  .result-scene > .contract-result {
    position: static;
    font-size: 12px;
    grid-row: 2;
    align-self: end;
    z-index: 1;
  }
  .result-scene:has(> .contract-result) > .score-banner {
    grid-row: 2;
    grid-column: 1;
  }
  .result-scene:has(> .contract-result) > .scene-footer {
    grid-row: 3;
  }
  .result-scene .scene-footer,
  .end-scene .scene-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .result-scene .scene-footer > span {
    grid-column: 1/-1;
    max-width: none;
  }
  .end-scene .scene-footer > button:last-child {
    grid-column: 1/-1;
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .journey-scene.camp-scene,
  .journey-scene.reward-scene {
    padding: 10px 20px;
    gap: 6px;
  }
  .camp-scene .scene-heading h1,
  .reward-scene .scene-heading h1 {
    font-size: 25px;
  }
  .camp-scene .scene-heading p:not(.eyebrow),
  .reward-scene .scene-heading p:not(.eyebrow) {
    display: none;
  }
  .camp-card,
  .item-card {
    padding: 10px 12px;
    gap: 5px;
  }
  .camp-card h2,
  .item-card h3 {
    font-size: 20px;
  }
  .camp-card p,
  .item-card p {
    font-size: 13px;
    line-height: 1.35;
  }
  .camp-card .item-icon,
  .item-card .item-icon {
    display: none;
  }
  .camp-tabs {
    grid-template-rows: 44px minmax(0, 1fr);
    gap: 4px;
  }
  .shop-view {
    grid-template-rows: minmax(0, 1fr) 44px;
    gap: 4px;
  }
  .journey-scene.result-scene,
  .journey-scene.end-scene {
    padding: 12px 24px;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 48px;
  }
  .result-scene .scene-heading,
  .end-scene .scene-heading {
    align-self: center;
  }
  .result-scene .scene-heading h1,
  .end-scene .scene-heading h1 {
    font-size: 30px;
  }
  .result-scene .score-banner,
  .end-scene .score-banner {
    grid-column: 2;
    grid-row: 1;
  }
  .result-scene .scene-footer,
  .end-scene .scene-footer {
    grid-column: 1/-1;
  }
  .result-scene .big-score,
  .end-scene .big-score {
    font-size: 50px;
  }
  .result-scene > .contract-result {
    top: 12px;
    right: 24px;
    font-size: 12px;
  }
}
/* Banter has its own quiet line, outside card and betting hit areas. */
.presentation-deck {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 22px;
  height: 30px;
  border: 1px solid #627362;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #283e34 0 3px, #31493d 3px 5px);
  color: #b9bc9b;
  font: 15px Georgia;
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 #27352d;
  pointer-events: none;
  opacity: 0.6;
}
.run-table {
  grid-template-rows: minmax(112px, 1fr) 180px minmax(84px, 1fr) 48px;
}
.talk-reserve {
  grid-row: 4;
  grid-column: 1/-1;
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.talk-reserve > div {
  width: min(100%, 450px);
  font-size: 12px;
  line-height: 16px;
  min-height: 0;
  max-height: 48px;
}
#talk-button {
  font-size: 27px;
}
@media (max-width: 760px) {
  .run-header:has(#talk-button:not([hidden])) .run-brand > span {
    display: none;
  }
  .run-header:has(#talk-button:not([hidden])) nav {
    gap: 2px;
  }
  .run-header:has(#talk-button:not([hidden])) {
    padding-left: 8px;
    padding-right: 6px;
  }
  .run-header:has(#talk-button:not([hidden])) .run-brand {
    gap: 0;
  }
  .run-table,
  .run-table[data-opponents="4"] {
    grid-template-rows: minmax(100px, 1fr) 156px minmax(70px, 1fr) 48px;
  }
  .run-table[data-opponents="4"] .run-opponents {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px;
  }
  .run-table[data-opponents="4"] .seat-name {
    font-size: 10px;
    line-height: 12px;
    min-height: 24px;
    white-space: normal;
    overflow: visible;
  }
  .run-table[data-opponents="4"] .seat-stack {
    font-size: 13px;
  }
  .run-table[data-opponents="4"] .run-seat-info {
    padding: 3px 2px;
  }
  .run-table[data-opponents="4"] .seat-cards {
    height: 34px;
  }
  .run-table[data-opponents="4"] .seat-cards .card {
    height: 34px;
    width: 24px;
    font-size: 12px;
  }
  html[data-run-density="short"] .run-table,
  html[data-run-density="short"] .run-table[data-opponents="4"] {
    grid-template-rows: minmax(91px, 1fr) 122px 56px 48px;
    gap: 4px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .run-seat-info {
    min-height: 44px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .seat-cards {
    height: 28px;
  }
  html[data-run-density="short"]
    .run-table[data-opponents="4"]
    .seat-cards
    .card {
    width: 20px;
    height: 28px;
  }
  html[data-run-density="short"] .run-table[data-opponents="4"] .seat-state {
    font-size: 9px;
  }
  .presentation-deck {
    right: 5px;
    top: 130px;
    width: 16px;
    height: 22px;
    font-size: 11px;
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .run-table {
    grid-template-rows: minmax(90px, 1fr) 137px !important;
    padding-bottom: 8px;
  }
  .talk-reserve {
    position: absolute;
    right: -204px;
    bottom: 14px;
    width: 178px;
    height: 48px;
    z-index: 2;
  }
  .presentation-deck {
    right: 8px;
    top: 8px;
  }
  .run-dock {
    padding-bottom: 68px !important;
    gap: 8px !important;
  }
}
@media (max-height: 499px) and (max-width: 760px) {
  html[data-run-density="short"][data-run-tiny="true"] .run-table {
    grid-template-rows: 91px 122px 56px 48px;
    overflow: auto;
  }
}
@media (min-width: 761px) and (min-height: 651px) {
  .run-table {
    grid-template-rows: minmax(98px, 1fr) 156px minmax(70px, 1fr) 48px;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .run-board {
    height: 156px;
  }
  .run-hero {
    height: 70px;
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .talk-reserve {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 165px;
  }
}
.character-card {
  box-sizing: border-box;
}
.shop-view {
  display: block;
  height: 100%;
}
.item-description {
  font: 14px/1.5 inherit;
  text-align: left;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--muted);
  border: 0;
  background: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 1;
  max-height: 63px;
}
.item-description:hover {
  color: var(--ink);
}
.item-description:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.item-card > button.item-description {
  margin-top: 0;
}
.item-card > .unavailable-reason {
  font-size: 11px;
  line-height: 1.3;
}
@container (height < 310px) {
  .item-card .item-icon {
    display: none;
  }
  .item-card {
    padding: 12px;
    gap: 6px;
  }
  .item-card h3 {
    font-size: 23px;
    line-height: 1.1;
  }
  .item-card .item-description {
    -webkit-line-clamp: 2;
    max-height: 44px;
    line-height: 1.4;
  }
  .item-card .item-meta {
    font-size: 10px;
  }
  .item-card > .unavailable-reason {
    display: none;
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .shop-view {
    display: block;
  }
  .camp-scene .scene-footer > button {
    font-size: 12px;
  }
  .item-card {
    padding: 10px;
    gap: 5px;
  }
  .item-card h3 {
    font-size: 21px;
  }
  .item-card .item-description {
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    max-height: 44px;
  }
  .item-card .item-meta {
    font-size: 10px;
  }
  .route-card {
    gap: 7px;
  }
  .route-facts {
    gap: 6px;
  }
  .route-card h2 {
    margin: 0;
  }
  .route-card .route-mark {
    display: none;
  }
}
@container (height < 180px) {
  .item-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: 44px minmax(0, 1fr);
    padding: 8px;
    gap: 7px;
  }
  .item-card h3 {
    grid-column: 1;
    grid-row: 1;
    font-size: 20px;
    line-height: 1.1;
  }
  .item-card .item-meta {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .item-card .item-description {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
  }
  .item-card > button:not(.item-description) {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin: 0;
    padding: 7px;
    font-size: 12px;
  }
}
.technique-view .camp-card {
  padding: 8px;
  gap: 6px;
}
.technique-info {
  min-height: 44px;
  font: 22px/1.1 Georgia;
  text-align: left;
  padding: 0;
  color: var(--accent);
}
@media (min-width: 761px) and (max-height: 650px) {
  .rest-view {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .rest-mark {
    display: none;
  }
  .rest-view h2 {
    font-size: 25px;
    margin: 0;
  }
  .rest-view p {
    flex-basis: 100%;
    font-size: 13px;
    margin: 0;
  }
  .technique-view {
    grid-template-rows: 20px minmax(0, 1fr);
    gap: 4px;
  }
  .technique-view .camp-card {
    padding: 5px;
    gap: 4px;
  }
  .technique-info {
    font-size: 21px;
  }
}
.run-board > * {
  flex-shrink: 0;
}

/* Version-four progress changes copy, not the table's geometric budget. */
.momentum-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.momentum-wins {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.momentum-wins i {
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 1px solid #c4ad78;
  border-radius: 50%;
  font: 9px/1 system-ui;
  font-style: normal;
}
.momentum-wins i.earned {
  color: #172016;
  background: #d7be87;
}
.momentum-detail-figures {
  font:
    24px/1.5 Georgia,
    serif;
  margin: 12px 0;
  flex-wrap: wrap;
}
.momentum-detail-figures .momentum-wins i {
  width: 20px;
  height: 20px;
  font-size: 13px;
}
.momentum-overview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.momentum-overview button {
  min-height: 44px;
}
.momentum-hand,
.momentum-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.momentum-hand h3 {
  font:
    20px Georgia,
    serif;
  margin: 0 0 10px;
}
.result-momentum {
  margin: 12px 0;
  font-size: 14px;
}
.resource-supplies {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #263020;
  cursor: pointer;
  color: inherit;
  padding: 6px 10px;
}
.resource-supplies small {
  display: block;
}
.camp-scene .scene-heading .resources:has(.resource-supplies) {
  display: flex;
  flex-shrink: 0;
}
@media (max-width: 760px), (max-height: 650px) {
  .camp-scene .scene-heading .resources > .resource:not(.resource-supplies) {
    display: none;
  }
  .camp-scene .resource-supplies {
    min-width: 78px;
  }
}
.service-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.service-card > svg {
  float: right;
  margin-left: 10px;
}
.service-card h3 {
  margin: 0 0 10px;
  padding-right: 36px;
  font:
    22px/1.15 Georgia,
    serif;
}
.service-card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
}
.service-card > button {
  min-height: 44px;
  width: 100%;
}
.service-card .eyebrow {
  margin-top: 0;
  font-size: 11px;
}
.supplies-balance,
.replacement-quote {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.gear-loadout {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 180px;
  min-width: 0;
  height: 44px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
  background: transparent;
}
.gear-loadout-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  flex: 1;
  min-width: 0;
}
.gear-loadout-cell {
  width: 23px;
  height: 28px;
  display: grid;
  place-items: center;
}
.gear-loadout-cell svg {
  width: 23px;
  height: 28px;
  stroke-width: 2.2;
}
.gear-loadout small {
  max-width: 30px;
  font-size: 10px;
  line-height: 1.25;
}
[data-item-status="spent"] .poker-item-icon {
  opacity: 0.35;
}
[data-item-status="incompatible"] .poker-item-icon { opacity: .5; }
.item-compatibility { color: #d5bc95; font-size: 11px; line-height: 1.45; }
.gear-slot[data-item-status="incompatible"]::after { content: "!"; position: absolute; right: 1px; bottom: 0; font: 13px system-ui; color: #e3c48e; }
.v7-dealer-choice { min-height: 64px; white-space: normal; overflow-wrap: anywhere; }
.v7-dealer-choice small { display: block; padding-top: 4px; font-size: 12px; }
.v7-dealer-choice[aria-pressed="true"] { border-color: #d8bd85; background: #3a3f2e; }
.dealer-choice-cost { color: #e1c896; }
[data-item-status="spent"] .item-usage {
  color: #dbc09a;
}
.gear-slot[data-item-status="spent"] {
  position: relative;
}
.gear-slot[data-item-status="spent"]::after {
  content: "–";
  position: absolute;
  right: 1px;
  bottom: 0;
  font: 13px system-ui;
  color: #d8bc83;
}
.presentation-item-consumed {
  position: fixed;
  width: 54px;
  height: 54px;
  color: #e1c38b;
  pointer-events: none;
  will-change: transform, opacity;
}
@media (max-width: 360px) {
  .gear-loadout {
    width: 178px;
  }
  .momentum-line {
    gap: 5px;
  }
}
@media (min-width: 761px) and (min-height: 651px) {
  .run-table {
    grid-template-rows: minmax(98px, 1fr) 180px minmax(70px, 1fr) 48px;
  }
  .run-board {
    height: 180px;
  }
}
@media (max-width: 760px) {
  .run-table,
  .run-table[data-opponents="4"] {
    grid-template-rows: minmax(100px, 1fr) 180px minmax(70px, 1fr) 48px;
  }
  .run-board {
    height: 180px;
  }
  html[data-run-density="short"] .run-table,
  html[data-run-density="short"] .run-table[data-opponents="4"] {
    grid-template-rows: minmax(91px, 1fr) 127px 56px 48px;
  }
  html[data-run-density="short"] .run-table .run-board {
    height: 127px;
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .house-favor {
    padding: 9px;
  }
  .house-favor h3 {
    margin: 5px 0;
  }
  .house-favor p {
    margin: 6px 0;
  }
  .favor-opt-in {
    padding: 3px 0;
  }
  .technique-view {
    grid-template-rows: 28px minmax(0, 1fr);
  }
  .technique-view .camp-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 7px;
  }
  .technique-view .camp-card > button {
    margin: 0;
  }
  .technique-info {
    font-size: 20px;
  }
  .route-card {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 5px;
  }
  .route-card .route-facts {
    gap: 4px;
  }
}
@media (min-width: 761px) and (min-height: 651px) {
  .run-table {
    grid-template-rows: minmax(112px, 1fr) 180px minmax(70px, 1fr) 48px;
  }
}
@media (max-height: 499px) and (max-width: 760px) {
  html[data-run-density="short"][data-run-tiny="true"] .run-table {
    grid-template-rows: 112px 127px 56px 48px;
    overflow: auto;
  }
}
.talk-reserve > div {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
}
.item-description {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #7d8d7070;
  text-underline-offset: 3px;
}
/* Long cosmetic aliases stay in their seat; Talk exposes the full identity. */
.run-seat .seat-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 14px;
  max-height: 28px;
}
@media (max-width: 760px) {
  .run-table .run-seat .seat-name {
    line-height: 12px;
    max-height: 24px;
    overflow: hidden;
  }
}

#run-account {
  position: relative;
  font-size: 0;
  padding: 0;
}
#run-account::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 16px;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
#run-account::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 11px;
  width: 20px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

/* A small illustrated calling card at short sizes; a full emblem on tall phones. */
#characters .view-sheet {
  container-type: size;
}
#characters .character-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(ellipse at 25% 30%, #3e483133, transparent 70%),
    var(--panel);
}
#characters .character-mark {
  display: block;
  width: 84px;
  height: 84px;
  font-size: 0;
}
#characters .character-mark svg {
  width: 100%;
  height: 100%;
}
#characters .character-card h3 {
  font:
    26px/1.15 Georgia,
    serif;
  letter-spacing: -0.025em;
}
#characters .character-card p {
  max-width: 29ch;
}
@container (min-height:300px) {
  #characters .character-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 1fr) auto;
    align-content: stretch;
    align-items: center;
    gap: 12px;
    padding: 24px 28px 30px;
  }
  #characters .character-mark {
    width: min(55cqw, 220px);
    height: min(55cqw, 220px);
    justify-self: center;
  }
  #characters .character-card h3 {
    font-size: 32px;
  }
  #characters .character-card p {
    max-width: 30ch;
    margin-bottom: 14px;
  }
}
@media (max-width: 350px), (min-width: 761px) and (max-height: 650px) {
  #characters .character-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  #characters .character-mark {
    width: 64px;
    height: 64px;
  }
  #characters .character-card h3 {
    font-size: 23px;
  }
}

/* One symbol per instance; the connected width and numeral show its slot cost. */
.gear-bar {
  --gear-gap: 8px;
}
.gear-slot {
  position: relative;
  width: calc(
    44px * var(--item-slots, 1) + var(--gear-gap) * (var(--item-slots, 1) - 1)
  );
}
.gear-loadout-cell {
  position: relative;
  width: auto;
  min-width: 0;
}
.gear-loadout-cell[data-slot-cost="2"] {
  border: 1px solid #c0a36755;
  border-radius: 5px;
}
.item-slot-count {
  position: absolute;
  right: 2px;
  top: 0;
  font: 10px/1.3 system-ui;
  color: var(--accent);
}
@media (max-width: 760px) {
  .gear-bar {
    --gear-gap: 5px;
  }
}

/* Fifth edition: fixed geometry, explicit progress and paged build receipts. */
.v5-progress-line {
  flex-direction: column;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  white-space: normal;
}
.v5-progress-line > small {
  font: 12px/1.25 var(--font-body, system-ui);
  color: var(--muted);
}
.board-feedback.v5-progress-line {
  height: 26px;
  gap: 0;
  font: 12px/13px system-ui;
}
.board-feedback.v5-progress-line > small {
  font: 10px/12px system-ui;
}
html[data-run-density="short"] .board-feedback.v5-progress-line {
  height: 26px;
  line-height: 13px;
}
#dialog-body.v5-tabbed-detail {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  gap: 8px;
}
.v5-tabbed-detail .tab-content,
.v5-detail-panel {
  min-height: 0;
  height: 100%;
}
.v5-tabbed-detail .view-tabs {
  display: flex;
  gap: 6px;
}
.v5-tabbed-detail .view-tabs button {
  flex: 1;
  min-width: 44px;
  min-height: 44px;
}
.v5-detail-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #222922, #181e1a);
  min-width: 0;
  overflow-wrap: anywhere;
}
.v5-detail-card h3 {
  margin: 0 0 12px;
  font:
    24px/1.2 Georgia,
    serif;
  color: var(--text);
}
.v5-detail-card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
}
.v5-detail-card .eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.v5-equipment-cover {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}
.v5-equipment-cover > svg {
  width: 84px;
  height: 84px;
  color: var(--accent);
}
.v5-result-pages {
  min-height: 0;
}
.v5-result-pages .v5-detail-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v5-result-scene .scene-heading h2,
.v5-reward-scene .scene-heading h2 {
  margin: 4px 0;
  font:
    clamp(24px, 3.2vw, 38px) / 1.15 Georgia,
    serif;
}
.v5-resource-mark {
  color: var(--accent);
  font:
    22px/1.2 Georgia,
    serif;
  align-self: center;
}
.v5-resource-reward > p {
  overflow: visible;
  white-space: normal;
  -webkit-line-clamp: unset;
}
@media (max-width: 760px), (max-height: 650px) {
  .v5-detail-card {
    padding: 11px;
  }
  .v5-detail-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .v5-detail-card p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.4;
  }
  .v5-detail-card .momentum-detail-figures {
    font-size: 21px;
    margin: 8px 0;
  }
}
/* V6 keeps the same table budget; active items open a guarded detail view. */
.v6-active-trigger {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}
.run-seat[data-shared-vision="true"] .run-seat-info {
  border-color: #af93b0;
  box-shadow: inset 0 2px 0 #af93b0;
}
.run-seat[data-shared-vision="true"] .seat-state {
  color: #e3bbdf;
}
.v6-active-trigger[data-ready="true"] {
  border-color: var(--accent);
  background: #c7a76d12;
}
.v6-active-card > svg {
  color: var(--accent);
  width: 32px;
  height: 32px;
  position: absolute;
  right: 12px;
  top: 12px;
}
.v6-active-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.v6-active-card h3 {
  padding-right: 38px;
}
.v6-story-icons > svg,
.v6-effect-receipt > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.v6-story-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--accent);
}
.v6-story-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
/* Quiet engravings belong only to the invitation and secret result cards.
   Everything is out of flow: pagination, reading order and anchors stay put. */
.v6-secret-panel {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 86% 35%, #c1a16a0c, transparent 65%),
    linear-gradient(145deg, #202620, #151c18);
  border-color: #a78d603b;
  box-shadow: inset 0 0 0 5px #10161255, inset 0 0 60px #0a0f1045;
}
.v6-secret-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #bd9b5f12;
  border-radius: 5px;
  pointer-events: none;
  z-index: -1;
}
.v6-secret-art,
.v6-secret-marks {
  position: absolute;
  pointer-events: none;
  user-select: none;
  color: #d5b477;
  z-index: -1;
}
.v6-secret-art {
  width: min(43%, 440px);
  max-height: 88%;
  aspect-ratio: 11 / 8;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  opacity: 0.29;
}
.v6-secret-art > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.v6-secret-link {
  stroke: #e6d2a6;
  stroke-width: 1.8;
}
.v6-secret-marks {
  display: flex;
  gap: 14px;
  left: 28px;
  bottom: 25px;
  opacity: 0.36;
}
.v6-secret-marks > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.v6-secret-panel[data-secret-finish="won"] {
  border-color: #c6a26465;
}
.v6-secret-panel[data-secret-finish="won"] .v6-secret-art {
  opacity: 0.42;
}
.v6-secret-panel[data-secret-finish="ended"] .v6-secret-art {
  opacity: 0.2;
}
@media (max-width: 760px) and (min-height: 600px) {
  .v6-secret-art {
    width: min(76%, 270px);
    max-height: 38%;
    left: 50%;
    right: auto;
    top: 23%;
    transform: translate(-50%, -50%);
    opacity: 0.39;
  }
  .v6-secret-marks {
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    gap: 15px;
  }
}
.v6-effect-receipt > svg {
  color: var(--accent);
}
.v6-effect-receipt[data-effect-kind="cost"] {
  border-color: #986b5550;
}
.v6-active-loadout .gear-loadout {
  flex: 1 1 150px;
  max-width: 180px;
}
@media (max-width: 760px) {
  .v6-active-loadout .gear-loadout {
    width: 100px;
    min-width: 76px;
  }
  .v6-active-loadout .gear-loadout small {
    display: none;
  }
  .v6-active-loadout .gear-loadout-cell svg {
    width: 16px;
    height: 20px;
  }
  .v6-active-loadout .tactic-trigger {
    flex: 0 1 100px;
  }
}

/* More capacity keeps the existing HUD width and touch target. Zero-cost objects remain visible. */
.gear-loadout-cell { width: auto; min-width: 0; }
.gear-loadout-cell svg { max-width: 100%; }
.gear-loadout-icons[data-capacity="9"] svg,
.gear-loadout-icons[data-capacity="10"] svg { width: 16px; stroke-width: 2.5; }
.gear-loadout-cell.zero-slot { border-inline-start: 1px solid var(--line); }
.card.river-obscured { border-style: dashed; background: repeating-linear-gradient(130deg,#1b2824 0 4px,#26312c 4px 5px); color: #b6bea9; }
.card.river-obscured .rank { font-size: 11px; }
.card.river-obscured .suit { font-size: 20px; }

/* V10 controls stay within the established single-row equipment and action anchors. */
.v10-memory-trigger { min-height:44px; border:1px solid var(--line); border-radius:10px; padding:5px 9px; font:inherit; font-size:11px; color:var(--text); background:#142720; flex:0 1 112px; }
.v10-memory-trigger[data-ready="true"] { border-color:#ad9964; color:#e9dba4; }
.v11-active-trigger { position:relative; flex:0 0 54px; min-width:44px; min-height:44px; padding:4px 3px; display:grid; grid-template-columns:16px 1fr; align-content:center; align-items:center; gap:2px; border:1px solid var(--line); border-radius:8px; background:#142720; color:var(--accent); font:inherit; font-size:10px; line-height:1.2; }
.v11-active-trigger svg { width:16px; height:16px; }
.v11-active-trigger span { font-size:10px; }
.v11-active-trigger small { grid-column:1 / -1; font-size:9px; color:var(--muted); }
.v11-active-trigger[data-ready="true"] { border-color:var(--accent); background:#c7a76d12; }
.v11-active-trigger[data-used="true"] { border-style:dashed; }
.v11-active-loadout .gear-loadout { flex:1 1 68px; min-width:44px; }
.v11-active-loadout .tactic-trigger { flex:0 1 100px; min-width:62px; }
.v11-active-loadout .gear-info { display:none; }
.v11-active-loadout .v10-memory-trigger { flex:0 1 70px; min-width:52px; }
.run-hero[data-hole-card-count="3"] { gap:10px; }
.run-hero[data-hole-card-count="3"] .hero-info { width:118px; }
.v11-story-scene .scene-heading h2 { font-size:clamp(23px,3vw,36px); }
.v11-story-scene .scene-heading { display:block; margin:0; }
.v11-story-scene .scene-heading .eyebrow { margin:0 0 6px; }
.v11-story-scene .scene-heading h2 { margin:0; }
.v11-story-scene > .scene-footer { justify-content:flex-end; }
.v11-story-scene > .scene-footer > button { grid-column:2; }
.v11-story-page { position:relative; overflow:hidden; justify-content:flex-start !important; padding:28px; }
.v11-story-pages { height:100%; }
.v11-story-pages > .v11-story-page { height:100%; box-sizing:border-box; }
.v11-story-reading { position:relative; z-index:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.v11-story-prose + .v11-story-prose { margin-top:16px !important; }
.v11-story-prose { position:relative; z-index:1; max-width:44ch; font:20px/1.7 Georgia,serif !important; margin:0 !important; }
.v11-story-motifs { position:absolute; right:22px; bottom:22px; display:flex; gap:15px; color:var(--accent); opacity:.32; pointer-events:none; }
.v11-story-motifs > svg { width:24px; height:24px; }
.v11-story-art .story-object > svg { width:64px; height:64px; }
.v11-story-page .route-interlude-art { opacity:.42; }
.v11-story-art { position:absolute; pointer-events:none; width:min(100%,520px); height:52%; right:0; bottom:15px; color:var(--accent); opacity:.24; }
.v11-action-rank { grid-column:1 / -1; }
@media (max-width:600px) {
  .v11-active-loadout { gap:4px; }
  .v11-active-loadout .gear-loadout small { font-size:8px; }
  .v11-active-loadout .gear-loadout { max-width:90px; }
  .v11-active-loadout .v11-active-trigger { flex-basis:48px; }
  .v11-active-loadout .tactic-trigger { padding:4px; }
  .v11-active-loadout .tactic-trigger span { font-size:10px; }
  .v11-active-loadout .v10-memory-trigger { font-size:9px; padding:4px; }
  .run-hero[data-hole-card-count="3"] { gap:8px; }
  .run-hero[data-hole-card-count="3"] .hero-info { width:106px; padding-inline:8px; }
}
@media (max-width:600px), (max-height:650px) {
  .v11-story-page { padding:14px; }
  .v11-story-prose { font-size:16px !important; line-height:1.65 !important; }
  .v11-story-motifs { right:14px; bottom:14px; gap:10px; }
}
@media (max-height:650px) {
  .v11-story-prose { font-size:14px !important; line-height:1.6 !important; }
  .v11-story-prose + .v11-story-prose { margin-top:10px !important; }
  .v11-story-art { opacity:.10; height:60%; }
  .v11-story-motifs { opacity:.15; bottom:8px; }
}
.v10-memory-loadout .gear-loadout { min-width:60px; flex:1 1 95px; }
.v10-memory-loadout .tactic-trigger { min-width:58px; flex:0 1 112px; }
.v10-blind-choice > svg, .v10-memory-summary > svg { width:40px; height:40px; flex:none; display:block; margin-bottom:12px; color:var(--accent); }
.card.death-blind-card { border-color:#a18f61; color:#d5c69b; background:repeating-linear-gradient(125deg,#15221f 0 6px,#29322a 6px 7px); box-shadow:inset 0 0 0 4px #13201b; }
.card.death-blind-card .rank { font-size:11px; letter-spacing:.04em; z-index:1; background:#14251e; padding:2px; }
.card.death-blind-card .suit { font-size:26px; color:#b2a16b; }
.card.blind-private-card { outline:1px dashed #b7ab79; outline-offset:2px; }
@media(max-width:760px) {
  .v10-memory-loadout { gap:5px; }
  .v10-memory-loadout .v6-active-trigger { min-width:42px; padding:5px; flex:0 0 42px; }
  .v10-memory-loadout .v10-memory-trigger { max-width:85px; padding:5px; font-size:10px; }
  .v10-memory-loadout .tactic-trigger { padding:5px; }
  .v10-memory-loadout .tactic-trigger > span { font-size:10px; }
  .v10-memory-loadout .gear-loadout { max-width:110px; }
}

@media(max-width:360px) { .v10-progress-summary .momentum-detail-figures { font-size:17px; } }

@media(max-width:360px) { .v10-detail-panel .v5-detail-card h3 { font-size:18px; line-height:1.15; } .v10-detail-panel .v5-detail-card p { font-size:13px; line-height:1.35; } }

/* V12 public stage and Boss receipts: one reserved strip, never over the cards. */
.v12-live-strip{grid-column:1;grid-row:1;align-self:end;display:flex;gap:7px;min-width:0;height:36px;padding:0 16px 3px;overflow:hidden;}
.v12-live-strip>button{min-height:32px;min-width:0;flex:1;padding:2px 9px;text-align:left;border:1px solid #7e7754;background:#263526;border-radius:3px;font-size:11px;line-height:1.2;overflow:hidden;}
.v12-live-strip>button>small{display:block;font-size:10px;color:#b8c7ae;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.table-scene.v12-has-status{grid-template-rows:96px minmax(0,1fr) 140px;}
.table-scene.v12-has-status>.gear-bar{align-self:start;height:60px;}
html[data-run-density="short"] .table-scene.v12-has-status{grid-template-rows:84px minmax(0,1fr) 114px;}
html[data-run-density="short"] .table-scene.v12-has-status>.gear-bar{height:48px;}
.v12-stage-trigger{font-variant-numeric:tabular-nums;}.v12-stage-trigger>small{display:block;}
.scene-heading>.v12-stage-trigger{border:1px solid var(--line);border-radius:4px;font-size:12px;padding:5px 12px;}
.v12-boss-discards{display:flex;gap:7px;}.v12-boss-discards .card{width:42px;height:60px;font-size:17px;}
@media(max-width:760px){.table-scene.v12-has-status{grid-template-rows:90px minmax(0,1fr) 128px;}.table-scene.v12-has-status>.gear-bar{height:54px;}.v12-live-strip{padding:0 10px 3px;gap:5px;}.v12-live-strip>button{padding:2px 6px;font-size:10px;}.v12-live-strip>button>small{font-size:9px;}}
@media(min-width:761px) and (max-height:650px){.table-scene.v12-has-status{grid-template-rows:84px minmax(0,1fr)!important;}.table-scene.v12-has-status>.gear-bar{height:48px;}}
