.qt-table {
  --qt-ink: #fff9e9;
  --qt-dim: #c4d8cb;
  --qt-gold: #f2d399;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  color: var(--qt-ink);
  font-variant-numeric: tabular-nums;
}
.qt-table *,
.qt-table *::before,
.qt-table *::after {
  box-sizing: border-box;
}
.qt-table button {
  font-family: inherit;
}
.qt-table button:focus-visible {
  outline: 2px solid #ffdc83;
  outline-offset: 3px;
}
.qt-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 80px);
  padding: 0 clamp(12px, 3.3%, 48px) 14px;
}
.qt-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
}
.qt-bar,
.qt-round,
.qt-river-link,
.qt-identity,
.qt-guess-title,
.qt-type,
.qt-impact,
.qt-button,
.qt-hero-data {
  display: flex;
  align-items: center;
}
.qt-bar {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  pointer-events: none;
}
.qt-bar > * {
  pointer-events: auto;
}
.qt-round {
  gap: 6px;
  color: #f0ead3;
  font-size: 12px;
  line-height: 1;
  padding: 0 2px;
  letter-spacing: 0.035em;
}
.qt-round > span {
  height: 11px;
  border-left: 1px solid #d9d0a356;
  margin: 0 3px;
}
.qt-round b {
  font-size: 15px;
}
.qt-rules {
  min-height: 36px;
  padding: 0;
  border: 0;
  text-decoration: underline dotted #c8c4a180;
  text-underline-offset: 4px;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.qt-rules:hover {
  color: #ffeba8;
}
.qt-river-link {
  gap: 5px;
  color: #e0e7d6;
  border: 0;
  background: none;
  padding: 6px;
  border-radius: 6px;
  font-size: 12px;
}
.qt-river-link:hover {
  color: white;
  background: #06281e3b;
}
.qt-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 1.03fr) minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1.08fr) minmax(min-content, .92fr);
  flex: 1 0 auto;
  width: 100%;
  gap: 2px clamp(15px, 3.8%, 65px);
  max-width: 1420px;
  margin: 0 auto 2px;
  align-items: center;
  justify-items: center;
}
.qt-player {
  min-width: 0;
  width: 100%;
  max-width: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.qt-seat-2 {
  grid-area: 1 / 2;
}
.qt-seat-3 {
  grid-area: 1 / 1 / 3 / 2;
  margin-top: 52px;
}
.qt-seat-1 {
  grid-area: 1 / 3 / 3 / 4;
  margin-top: 52px;
}
.qt-person-line {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.qt-identity {
  gap: 9px;
  text-align: left;
  color: var(--qt-ink);
}
.qt-portrait {
  width: 42px;
  height: 42px;
  position: relative;
  display: inline-grid;
  flex: none;
  padding: 2px;
  border: 1px solid #b5a37c;
  border-radius: 50%;
  background: #213a31;
  box-shadow:
    0 2px 4px #071a158c,
    inset 0 0 2px #e8c792;
}
.qt-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.qt-portrait i {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #203d32;
  border: 1px solid #b4a780;
  color: #f4e4bb;
  font:
    600 10px/1 "Songti SC",
    "STSong",
    serif;
  box-shadow: 0 1px 1px #09261f;
}
.qt-active .qt-portrait {
  border-color: #ffda88;
  box-shadow:
    0 0 0 2px #f3c56f75,
    0 0 11px #f5c66f55,
    0 3px 4px #08271b6b;
}
.qt-person {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.qt-person > strong {
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: 0.04em;
}
.qt-person > span {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
  line-height: 1.38;
  font-size: 11px;
  color: #dee7d9;
}
.qt-person > span {
  flex-wrap: wrap;
  gap: 2px 5px;
}
.qt-seat-tag {
  color: #d5e4cd;
  font-size: 10px;
}
.qt-won-tag {
  color: #ffdc8a;
  font-weight: 650;
}
.qt-back-rack {
  --qt-back-w: 15px;
  isolation: isolate;
  position: relative;
  width: fit-content;
  max-width: 94%;
  display: flex;
  gap: 1px;
  margin: 6px auto 8px;
  padding: 0 3px 3px;
  transform-origin: center bottom;
  filter: drop-shadow(1px 4px 2px #092a2090);
}
.qt-back-rack::after {
  content: "";
  z-index: -1;
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0;
  height: 5px;
  border-top: 1px solid #d0b187;
  border-radius: 1px 1px 3px 3px;
  background: linear-gradient(#775a42, #443528);
  box-shadow: 0 1px 0 #26271e;
}
.qt-back-tile {
  position: relative;
  width: var(--qt-back-w);
  min-width: 0;
  height: 24px;
  flex: 1 1 var(--qt-back-w);
  border: 1px solid #c4ddbf;
  border-bottom: 3px solid #e9e4c7;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(145deg, #93c597, #5b9b79 55%, #417d62);
  box-shadow:
    inset 1px 1px 0 #dbeac465,
    inset -1px -1px 0 #437956,
    0 1px 0 #5a6450;
}
.qt-back-tile::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid #cbdfaa83;
  border-radius: 1px;
}
.qt-back-tile::after {
  content: "";
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid #c8e1af8f;
}
.qt-seat-3 .qt-back-rack {
  transform: perspective(320px) rotateY(12deg) rotateZ(2.5deg);
}
.qt-seat-1 .qt-back-rack {
  transform: perspective(320px) rotateY(-12deg) rotateZ(-2.5deg);
}
.qt-analysis {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 3px 10px 0;
  text-align: left;
  border: 0;
  border-radius: 0 0 5px 5px;
  background: transparent;
  color: var(--qt-ink);
  cursor: pointer;
  line-height: 1.25;
}
.qt-analysis:hover {
  background: #08291f28;
}
.qt-equity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-width: 0;
}
.qt-equity-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--qt-ink);
  white-space: nowrap;
}
.qt-equity-number small,
.qt-type small,
.qt-guess-title {
  color: var(--qt-dim);
  font-size: 11px;
  font-weight: 450;
}
.qt-equity-number b {
  color: #fff4ce;
  font:
    600 19px/1.25 "DM Sans",
    Arial,
    sans-serif;
  letter-spacing: -0.045em;
}
.qt-trace {
  display: block;
  flex: 1;
  min-width: 0;
}
.qt-trace .qt-sparkline {
  display: block;
  width: 100%;
  height: 28px;
  max-width: 100%;
  color: #d6eac8;
}
.qt-remaining {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--qt-dim);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 450;
}
.qt-remaining small { font: inherit; }
.qt-remaining strong {
  color: var(--qt-ink);
  font: 600 14px/1.25 "DM Sans", Arial, sans-serif;
}
.qt-type {
  column-gap: 6px;
  min-height: 20px;
  white-space: nowrap;
}
.qt-type strong {
  font-size: 13px;
  font-weight: 600;
}
.qt-type b {
  color: #f9e5bc;
  font-size: 12px;
}
.qt-guess-title {
  justify-content: space-between;
  margin: 4px 0 3px;
}
.qt-guess-title .qt-icon {
  width: 13px;
  height: 13px;
  color: #c5d4b6;
}
.qt-guess-tiles {
  display: grid;
  grid-template-columns: repeat(var(--qt-hand-size, 13), minmax(0, 1fr));
  gap: 2px;
}
.qt-mini-tile,
.qt-river-tile {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--mj-rim);
  border-radius: 2px;
  background: var(--mj-surface);
  box-shadow:
    inset 1px 1px 0 #fff,
    0 1px 0 var(--mj-edge-color),
    0 2px 1px #082c2290;
}
.qt-mini-tile {
  width: 100%;
  aspect-ratio: 0.76;
}
.qt-mini-tile.qt-added {
  z-index: 1;
  outline: 2px solid #ffcb53;
  outline-offset: 0;
  transform: translateY(-2px);
  background: #fff1ba;
  box-shadow:
    0 2px 0 #805b1c;
}
.qt-mini-tile.qt-added::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, transparent 45%, #b97913 46%);
  pointer-events: none;
}
.qt-change {
  display: block;
  min-height: 15px;
  padding-top: 3px;
  font-size: 10px;
  line-height: 1.18;
  color: #ccdecf;
  overflow-wrap: anywhere;
}
.qt-change b {
  color: #ffdc86;
  font-weight: 650;
}
.qt-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.qt-melds {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  width: 100%;
  min-width: 0;
  padding: 1px 2px 5px;
}
.qt-meld-group small {
  color: #e7d4a5;
  font-size: 11px;
  align-self: center;
  margin-right: 3px;
}
.qt-meld-group {
  display: inline-flex;
  align-items: end;
  gap: 1px;
}
.qt-meld-group .qt-mini-tile,
.qt-meld-group .qt-back-tile {
  width: 15px;
  height: 20px;
  flex: none;
}
.qt-hero-hand .qt-meld-group .qt-mini-tile,
.qt-hero-hand .qt-meld-group .qt-back-tile {
  width: 19px;
  height: 25px;
}
.qt-kong-options {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 4px 0 8px;
  padding: 5px;
}
.qt-kong-options > span {
  color: #f2e5c7;
  font-size: 12px;
}
.qt-kong-options .qt-kong-button {
  gap: 7px;
  min-height: 42px;
  color: #31260c;
  background: linear-gradient(145deg, #fff2bd, #edc774);
  border: 1px solid #fbdfa3;
  box-shadow:
    inset 0 1px #fff6d1,
    0 2px 0 #745f35;
}
.qt-kong-face {
  display: inline-flex;
  width: 17px;
  height: 23px;
  background: var(--mj-surface);
  border: 1px solid var(--mj-rim);
  border-radius: 2px;
}
.qt-kong-button small {
  font-weight: 500;
  font-size: 11px;
}
.qt-kong-options .qt-neutral {
  min-width: 44px;
  min-height: 42px;
}

.qt-center {
  grid-area: 2 / 2;
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
}
.qt-infield {
  width: min(100%, 264px);
  height: 140px;
  position: relative;
}
.qt-wall-side {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1px;
  transform-origin: center;
  filter: drop-shadow(0 2px 1px #123a2c9c);
}
.qt-wall-side-0 {
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.qt-wall-side-2 {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.qt-wall-side-1 {
  top: 50%;
  left: 96%;
  transform: translate(-50%, -50%) rotate(90deg);
}
.qt-wall-side-3 {
  top: 50%;
  left: 4%;
  transform: translate(-50%, -50%) rotate(-90deg);
}
.qt-stack {
  width: 12px;
  height: 9px;
  background: linear-gradient(145deg, #b4d5a6, #6aa581);
  border-radius: 2px 2px 1px 1px;
  border: 1px solid #c1d5af;
  box-shadow:
    inset 1px 1px 0 #deebbd65,
    0 2px 0 #dedbbf,
    0 3px 0 #488268,
    0 4px 0 #bfcaaf;
}
.qt-layer-1 {
  box-shadow:
    inset 1px 1px 0 #deebbd65,
    0 2px 0 #dedbbf;
}
.qt-compass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  aspect-ratio: 1;
  display: grid;
  padding: 4px;
  border: 1px solid #c7b58d;
  border-radius: 11px;
  background: linear-gradient(
    145deg,
    #d7c6a0,
    #706b52 40%,
    #a59573 60%,
    #6d6950
  );
  box-shadow:
    inset 0 1px #e1d6b176,
    0 3px 0 #1f3429,
    1px 4px 5px #10291f96;
}
.qt-compass-ring {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid #192d24;
  background: radial-gradient(ellipse at 40% 30%, #38513f, #1b3026);
  box-shadow: inset 0 1px 3px #101e17;
}
.qt-compass-ring b {
  display: grid;
  place-items: center;
  border: 1px solid #bea97985;
  border-radius: 50%;
  width: 53%;
  height: 53%;
  font:
    600 14px/1 "Songti SC",
    "STSong",
    serif;
  color: #f4dd99;
}
.qt-compass-ring i {
  position: absolute;
  color: #cad1b7;
  font:
    500 8px/1 "Songti SC",
    "STSong",
    serif;
}
.qt-wind-n {
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
}
.qt-wind-s {
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
}
.qt-wind-e {
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
}
.qt-wind-w {
  top: 50%;
  left: 1px;
  transform: translateY(-50%);
}
.qt-river {
  --qt-river-size: 15px;
  position: absolute;
  display: grid;
  grid-auto-flow: column;
  gap: 2px;
  align-items: end;
  border: 0;
  padding: 0;
  background: transparent;
}
.qt-river-2 {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
}
.qt-river-0 {
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
}
.qt-river-3,
.qt-river-1 {
  top: 50%;
  transform: translateY(-50%);
  grid-auto-flow: row;
  grid-template-columns: repeat(3, var(--qt-river-size));
}
.qt-river-3 {
  left: 12%;
}
.qt-river-1 {
  right: 12%;
}
.qt-river-tile {
  width: var(--qt-river-size);
  aspect-ratio: 0.8;
}
.qt-river-tile.qt-last-discard {
  outline: 1.5px solid #f6c066;
  z-index: 1;
}
.qt-impact {
  justify-content: center;
  min-height: 19px;
  margin: 2px 0 6px;
  color: #e4e9d7;
  font-size: 11px;
  line-height: 1.45;
}
.qt-tools {
  display: flex;
  align-items: center;
  gap: 3px;
}
.qt-button {
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  min-height: 38px;
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--qt-ink);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.qt-neutral {
  background: transparent;
  color: var(--qt-dim);
}
.qt-tools .qt-button,
.qt-tools .qt-river-link {
  min-height: 36px;
  gap: 5px;
  border: 0;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #d2e0d2;
  background: transparent;
}
.qt-tools .qt-icon {
  width: 14px;
  height: 14px;
}
.qt-tools button:enabled:hover,
.qt-hero-data:hover {
  color: var(--qt-ink);
  background: #082c264a;
}
.qt-button:disabled { opacity: .42; }
.qt-kong-options {
  gap: 6px;
  margin: 0 0 9px;
  padding: 0;
}
.qt-kong-options .qt-neutral {
  border: 1px solid #c4d1b25c;
  background: #123c30;
}
.qt-own {
  display: grid;
  grid-template-columns: clamp(100px, 9cqw, 142px) minmax(0, 1fr) clamp(202px, 19cqw, 250px);
  grid-template-areas: "person hand wall" "trend trial wall";
  align-items: end;
  gap: 1px clamp(12px, 1.5cqw, 24px);
  min-width: 0;
  width: 100%;
  padding: 0 max(0px, calc((100% - 1300px) / 2));
}
.qt-hero-person {
  grid-area: person;
  align-self: end;
  padding: 0 0 6px 2px;
}
.qt-hero-data {
  grid-area: trend;
  justify-content: start;
  min-width: 0;
  width: 100%;
  gap: 5px;
  padding: 0 2px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--qt-dim);
  cursor: pointer;
}
.qt-hero-data .qt-equity {
  gap: 5px;
  flex: 1;
}
.qt-hero-data .qt-equity-number { gap: 4px; }
.qt-hero-data .qt-equity-number b { font-size: 16px; }
.qt-hero-data .qt-trace .qt-sparkline { height: 23px; }
.qt-hero-data > .qt-icon {
  width: 13px;
  height: 13px;
}
.qt-hero-hand {
  grid-area: hand;
  min-width: 0;
}
.qt-hero-hand .qt-melds {
  padding: 4px 0 0;
}
.qt-hero-hand .qt-melds,
.qt-hero-hand .qt-kong-options {
  justify-content: flex-start;
}
.qt-rack {
  display: flex;
  justify-content: flex-start;
  align-items: end;
  gap: clamp(2px, .33cqw, 5px);
  padding: 35px 0 6px;
}
.qt-hand-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 0;
  width: clamp(38px, 5.4cqw, 64px);
  flex-shrink: 1;
  aspect-ratio: .75;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.qt-rack:not(:has(.qt-hand-tile:enabled)) { padding-top: 7px; }
.qt-tap-cue {
  display: none;
  position: absolute;
  z-index: 2;
  inset-inline-start: 50%;
  inset-block-end: calc(100% + 13px);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  padding: 2px 7px 3px;
  border: 1px solid #dfcc9a;
  border-radius: 5px;
  background: #faebc0;
  box-shadow: 0 2px 6px #10281e4a;
  color: #443a24;
  font-size: 11px;
  font-weight: 650;
  line-height: 15px;
  letter-spacing: 0;
}
.qt-tap-cue::after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  bottom: -3px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: #faebc0;
}
.qt-hand-tile[aria-pressed="true"]:enabled .qt-tap-cue { display: block; }
.qt-hand-tile:disabled { cursor: default; }
.qt-hand-tile.qt-blocked { opacity: .55; }
.qt-hand-tile.qt-drawn { margin-left: clamp(4px, .6cqw, 9px); }
.qt-tile-face.mj-tile {
  position: absolute;
  inset: 0;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  --mj-edge: 4px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 120ms ease-out;
}
@media (hover: hover) {
  .qt-hand-tile:enabled:hover .qt-tile-face { transform: translateY(-2px); }
}
.qt-rack .qt-hand-tile.selected .qt-tile-face {
  transform: translateY(-6px);
  border-color: #b38946;
  outline: 2px solid #f1c66c;
  outline-offset: 1px;
}
.qt-trial {
  grid-area: trial;
  align-self: center;
  text-align: start;
  min-width: 0;
  min-height: 22px;
  color: #d3e0d2;
  font-size: 12px;
  line-height: 22px;
  text-wrap: pretty;
}
.qt-own:has(.qt-hand-tile.selected) .qt-trial {
  color: #fae5ad;
  font-weight: 600;
}

@container (max-width: 1000px) {
  .qt-surface { padding-inline: 18px; }
  .qt-field { column-gap: 18px; }
}
@container (max-width: 820px) {
  .qt-field {
    grid-template-columns: minmax(0, 1fr) minmax(172px, 1.02fr) minmax(0, 1fr);
    column-gap: 12px;
  }
  .qt-surface { padding-inline: 14px; }
  .qt-analysis { padding-inline: 5px; }
  .qt-guess-tiles { gap: 1px; }
  .qt-river { --qt-river-size: 13px; gap: 1px; }
  .qt-river-3 { left: 10%; }
  .qt-river-1 { right: 10%; }

}
@container (min-width: 901px) {
  .qt-hero-data { position: relative; }
  .qt-hero-data .qt-equity { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qt-hero-data .qt-trace .qt-sparkline { height: 15px; }
  .qt-hero-data > .qt-icon { position: absolute; right: 3px; top: 3px; }
}
@container (min-width: 641px) and (max-width: 900px) {
  .qt-own {
    grid-template-columns: minmax(0, 1fr) 175px;
    grid-template-areas: "person trend" "hand wall" "trial wall";
  }
  .qt-hero-person { padding-bottom: 0; }
  .qt-hero-data { width: 145px; justify-self: end; }
}
@container (max-width: 640px) {
  .qt-surface { min-height: 0; padding: 6px 4px 12px; }
  .qt-round { font-size: 11px; gap: 3px; padding: 0; }
  .qt-round b { font-size: 14px; }
  .qt-tools { gap: 0; }
  .qt-tools .qt-button, .qt-tools .qt-river-link { font-size: 11px; padding-inline: 5px; }
  .qt-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    margin: 0 auto;
    gap: 2px 10px;
  }
  .qt-seat-2 { grid-area: 1 / 1 / 2 / 3; max-width: 215px; }
  .qt-seat-3 { grid-area: 2 / 1; margin: 0; }
  .qt-seat-1 { grid-area: 2 / 2; margin: 0; }
  .qt-center { grid-area: 3 / 1 / 4 / 3; }
  .qt-player { align-self: start; }
  .qt-portrait { width: 32px; height: 32px; padding: 1px; }
  .qt-portrait i { width: 13px; height: 13px; font-size: 9px; }
  .qt-person > strong { font-size: 14px; }
  .qt-person > span { font-size: 10px; }
  .qt-back-rack { --qt-back-w: 11px; margin: 4px auto 6px; padding: 0 1px 2px; }
  .qt-back-rack::after { height: 4px; }
  .qt-back-tile { height: 16px; border-radius: 2px; border-bottom-width: 2px; }
  .qt-back-tile::before { inset: 1px; }
  .qt-analysis { padding: 1px 3px 0; }
  .qt-equity, .qt-equity-number, .qt-type { gap: 4px; }
  .qt-equity-number b { font-size: 16px; }
  .qt-equity-number small, .qt-type small, .qt-guess-title { font-size: 10px; }
  .qt-trace .qt-sparkline { height: 20px; }
  .qt-type { min-height: 16px; }
  .qt-type strong { font-size: 12px; }
  .qt-type b { font-size: 11px; }
  .qt-guess-title { margin: 2px 0; }
  .qt-guess-title .qt-icon { width: 12px; height: 12px; }
  .qt-change { min-height: 12px; font-size: 9px; }
  .qt-infield { width: 192px; height: 94px; }
  .qt-river { --qt-river-size: 11px; }
  .qt-stack { width: 9px; height: 5px; }
  .qt-compass { width: 36px; padding: 2px; border-radius: 7px; }
  .qt-compass-ring { border-radius: 4px; }
  .qt-compass-ring b { font-size: 10px; }
  .qt-compass-ring i { font-size: 6px; }
  .qt-impact { min-height: 16px; margin: 1px 0 4px; font-size: 10px; }
  .qt-own {
    grid-template-columns: minmax(0, 1fr) clamp(155px, 43cqw, 190px);
    grid-template-areas: "person wall" "trend wall" "hand hand" "trial trial";
    align-items: center;
    gap: 2px 8px;
    padding: 8px 0 0;
  }
  .qt-hero-person { padding: 0; }
  .qt-hero-data { min-height: 30px; max-width: 150px; }
  .qt-hero-data .qt-trace .qt-sparkline { height: 21px; }
  .qt-rack { padding: 31px 1px 5px; gap: 2px; }
  .qt-tap-cue { inset-block-end: calc(100% + 10px); padding: 1px 4px; line-height: 14px; }
  .qt-hand-tile { width: calc((100% - 34px) / 14); }
  .qt-tile-face.mj-tile { --mj-edge: 3px; }
  .qt-trial { min-height: 34px; font-size: 11px; line-height: 17px; }
  .qt-kong-options { margin: 5px 0 3px; }
  .qt-meld-group .qt-mini-tile, .qt-meld-group .qt-back-tile { width: 12px; height: 16px; }
}
@container (max-width: 520px) {
  .qt-rack {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 48px));
    justify-content: start;
    row-gap: 32px;
    column-gap: 3px;
  }
  .qt-rack .qt-hand-tile {
    width: 100%;
    min-height: 42px;
    aspect-ratio: .92;
  }
  .qt-hand-tile.qt-drawn { margin-left: 0; }
  .qt-hand-tile.qt-drawn .qt-tile-face { border-color: #cebb83; }
}
@container (max-width: 435px) {
  .qt-field { gap: 3px 9px; }
  .qt-seat-3 .qt-guess-tiles, .qt-seat-1 .qt-guess-tiles {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px 2px;
  }
  .qt-seat-3 .qt-mini-tile, .qt-seat-1 .qt-mini-tile {
    max-width: 23px;
    aspect-ratio: .86;
  }
}
@media (min-width: 1000px) and (min-height: 760px) {
  .qt-surface { padding-block: 5px 16px; }
  .qt-field { column-gap: 2.6%; }
  .qt-player { max-width: clamp(296px, 24cqw, 354px); }
  .qt-portrait { width: 46px; height: 46px; }
  .qt-person > strong { font-size: 17px; }
  .qt-back-rack { --qt-back-w: 17px; margin: 7px auto 9px; }
  .qt-back-tile { height: 26px; }
  .qt-trace .qt-sparkline { height: 30px; }
  .qt-infield { width: min(100%, 310px); height: 154px; }
  .qt-river { --qt-river-size: 18px; }
  .qt-stack { width: 14px; height: 9px; }
  .qt-compass { width: 60px; }
  .qt-compass-ring b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .qt-tile-face.mj-tile { transition: none; }
}

/* Narrow seats keep the two measurements side by side above the sparkline. */
.qt-hero-data .qt-equity.qt-continuation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "rate remaining" "trace trace";
  gap: 0 5px;
}
.qt-hero-data .qt-continuation .qt-equity-number,
.qt-hero-data .qt-continuation .qt-remaining {
  display: grid;
  gap: 0;
  text-align: left;
}
.qt-hero-data .qt-continuation .qt-remaining { justify-self: end; }
.qt-hero-data:has(.qt-continuation) { position: relative; }
.qt-hero-data:has(.qt-continuation) > .qt-icon {
  position: absolute;
  inset: auto 2px 2px auto;
}
.qt-hero-data .qt-continuation .qt-trace { margin-right: 16px; }
.qt-continuation .qt-equity-number { grid-area: rate; }
.qt-continuation .qt-remaining { grid-area: remaining; }
.qt-continuation .qt-trace { grid-area: trace; }
@container (max-width: 1000px) {
  .qt-player .qt-equity.qt-continuation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "rate remaining" "trace trace";
    gap: 0 4px;
  }
  .qt-player .qt-continuation .qt-equity-number,
  .qt-player .qt-continuation .qt-remaining {
    display: grid;
    gap: 0;
    text-align: left;
  }
  .qt-player .qt-continuation .qt-remaining { justify-self: end; }
  .qt-remaining small { font-size: 10px; }
}

.odds-grid .odds-axis-focus {
  font-weight: 750;
  border-bottom: 2px solid #c49d4e;
}
.odds-grid button.odds-zero {
  background: #e6e8e5;
  color: #51605c;
}
.odds-evidence {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid #78927c6b;
  border-radius: 8px;
  background: #82997e0b;
}
.odds-evidence header {
  display: flex;
  align-items: center;
  gap: 9px;
}
.odds-evidence h4 {
  margin: 0;
  font-size: 16px;
}
.odds-evidence p,
.odds-evidence header p {
  margin: 4px 0 0;
  line-height: 1.5;
  font-size: 12px;
  color: inherit;
}
.odds-evidence table {
  margin-top: 10px;
  border-collapse: collapse;
  width: 100%;
  max-width: 44rem;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.odds-evidence caption {
  text-align: start;
  padding: 3px 0 4px;
  font-weight: 600;
}
.odds-evidence th,
.odds-evidence td {
  padding: 3px 6px;
  border-bottom: 1px solid #81957e44;
}
.odds-evidence th {
  font-weight: 520;
}
.odds-evidence th:first-child {
  text-align: start;
  padding-left: 0;
}
.odds-evidence dl {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin: 10px 0 6px;
}
.odds-evidence dt {
  font-size: 12px;
}
.odds-evidence dd {
  margin: 2px 0;
  font-weight: 650;
  font-size: 14px;
}
.odds-evidence .odds-verdict {
  font-weight: 650;
}
@media (max-width: 650px) {
  .odds-evidence {
    padding: 9px;
  }
  .odds-evidence dl {
    gap: 7px 12px;
  }
  .odds-evidence th,
  .odds-evidence td {
    padding-block: 4px;
  }
}
.odds-grid .odds-unsampled {
  border: 1px dashed #93a58f;
  background: #f1f2ea;
  color: #52634f;
}
.odds-method {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
