/* The wall is anchored to the player's right, independent of hand size. */
.game-room #wall-panel {
  grid-area: wall;
  align-self: center;
  justify-self: stretch;
  position: relative;
  z-index: 4;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: #f0f0dd;
  background: transparent;
  box-shadow: none;
  text-align: start;
}
#wall-panel:has(.wall-flyout) {
  z-index: 12;
}
#wall-panel .wall-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 4px 9px;
  border: 1px solid #cedac134;
  border-radius: 12px;
  background: #132d23b8;
}
#wall-panel .wall-expand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 38px;
  padding: 2px 3px;
  margin: 0;
  border: 0;
  color: #f1ead3;
  font-size: 14px;
}
#wall-panel .wall-glyph {
  flex: none;
  color: #dccb99;
}
#wall-panel .wall-expand .wall-count {
  font-size: 12px;
  line-height: 1.4;
  color: #cbdace;
}
.wall-count b {
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
#wall-panel .wall-expand .wall-chevron {
  margin-left: auto;
}
#wall-panel .wall-expand[aria-expanded="true"] .wall-chevron {
  transform: rotate(180deg);
}
#wall-panel .wall-picks {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  margin: 0;
  border-top: 1px solid #c3d6b424;
}
#wall-panel .wall-metric {
  font-size: 11px;
  white-space: nowrap;
  color: #cbdace;
}
#wall-panel .wall-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 39px;
  margin: 0;
  padding: 2px 0;
  flex-direction: row;
}
#wall-panel .wall-pick .wall-face {
  width: 20px;
  height: 26px;
}
#wall-panel .wall-value {
  display: inline;
  white-space: nowrap;
  color: #f3f2e1;
  font-size: 12px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
#wall-panel .wall-face,
#wall-panel .wall-face svg {
  display: block;
}
#wall-panel .wall-face svg {
  width: 100%;
  height: 100%;
}
#wall-grid[hidden] {
  display: none;
}
.game-room #wall-grid.wall-flyout {
  position: absolute;
  inset: auto 0 calc(100% + 7px) auto;
  width: min(360px, calc(100vw - 20px));
  max-height: min(560px, 78vh);
  max-height: min(560px, var(--wall-room, 78dvh));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  padding: 0;
  border: 1px solid #7d9684;
  border-radius: 14px;
  background: #17342a;
  color: #f2f1e6;
  box-shadow:
    0 12px 36px #071a15a8,
    0 2px 6px #06140e38;
}
.game-room #wall-grid.wall-flyout[data-below] {
  inset-block: calc(100% + 7px) auto;
}
.wall-pop-head {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 6px 9px 4px 15px;
}
.wall-pop-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.wall-pop-head .wall-close {
  margin-left: auto;
}
.wall-pop-head .wall-back {
  margin-left: -7px;
}
.wall-pop-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  color: #d8e1d5;
  border-radius: 6px;
}
.wall-flyout button:hover:not([disabled]) {
  background-color: #314e40;
}
.wall-page {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #667e6e transparent;
  padding: 0 15px 12px;
}
#wall-panel .odds-tabs {
  border: 1px solid #adc1af41;
  padding: 2px;
  background: #10291f;
  gap: 2px;
  border-radius: 7px;
  display: flex;
}
#wall-panel .odds-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 3px;
  color: #ccdacc;
  border-radius: 5px;
}
#wall-panel .odds-tabs button[aria-pressed="true"] {
  background: #3a5544;
  color: #fff3cf;
  box-shadow: none;
}
#wall-panel .odds-tabs button:disabled {
  color: #97a599;
  text-decoration: line-through;
}
.wall-filter,
.wall-suits {
  display: flex;
  align-items: center;
}
.wall-filter {
  justify-content: space-between;
  margin: 8px 0 3px;
  border-bottom: 1px solid #adc1af35;
  padding-bottom: 3px;
}
.wall-suits {
  gap: 3px;
}
.wall-suits button {
  width: 39px;
  min-height: 34px;
  color: #bfcfc2;
  border-radius: 4px;
  font-size: 14px;
}
.wall-suits button[aria-pressed="true"] {
  color: #ffe6ac;
  background: #31503e;
}
.wall-scale {
  font-size: 11px;
  color: #bdcebf;
  font-variant-numeric: tabular-nums;
}
#wall-suit-list {
  display: grid;
}
.wall-reading {
  display: grid;
  grid-template-columns: 21px 34px minmax(0, 1fr) minmax(49px, auto);
  align-items: center;
  gap: 9px;
  min-height: 37px;
  padding: 3px 4px;
  border-radius: 5px;
  text-align: left;
}
.wall-reading .wall-face {
  width: 19px;
  height: 25px;
}
.wall-rank {
  color: #e3eddf;
  font-size: 13px;
  white-space: nowrap;
}
.wall-reading strong {
  text-align: right;
  font-size: 13px;
  font-weight: 580;
  font-variant-numeric: tabular-nums;
}
.wall-track {
  background: #c0d2bb2c;
  height: 4px;
  border-radius: 3px;
  overflow: hidden;
}
.wall-track i {
  display: block;
  height: 100%;
  background: #decb8f;
  border-radius: inherit;
}
.user-wall .odds-evidence {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#wall-panel .odds-finding header {
  display: flex;
  align-items: center;
  gap: 10px;
}
#wall-panel .odds-finding header .wall-face {
  width: 32px;
  height: 43px;
}
#wall-panel .odds-finding header p {
  margin: 4px 0 0;
}
#wall-panel .odds-finding dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}
.wall-copies {
  border-top: 1px solid #adc1af35;
  padding-top: 11px;
}
#wall-panel .wall-copies h4 {
  font-size: 14px;
  font-weight: 620;
}
.wall-copies p {
  margin: 2px 0;
  color: #c6d4c7;
  font-size: 12px;
}
.wall-copies ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.wall-copies li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
  font-size: 13px;
}
.wall-copies li b {
  font-weight: 560;
  color: #f0e4bf;
}
.odds-grid {
  gap: 4px;
}
.odds-grid .odds-cell {
  min-height: 33px;
  border-radius: 4px;
}
.odds-method {
  opacity: 0.82;
  margin: 8px 0 0;
  line-height: 1.5;
  font-size: 12px;
}
.user-wall :focus-visible,
.seat-section :focus-visible {
  outline: 2px solid #ca9f4a;
  outline-offset: 2px;
}
.odds-evidence header {
  gap: 10px;
}
.odds-evidence h4 {
  font-size: 16px;
  font-weight: 620;
}
.odds-evidence header p {
  font-size: 13px;
}
.odds-evidence header p > span {
  opacity: 0.8;
}
.odds-evidence dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 14px 0 3px;
}
.odds-evidence dl div {
  min-width: 0;
}
.odds-evidence dt {
  font-size: 12px;
}
.odds-evidence dd {
  margin: 1px 0 0;
  font-size: clamp(16px, 1.35vw, 21px);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  font-weight: 580;
}
.odds-evidence table {
  margin: 0;
  font-size: 13px;
}
.odds-evidence caption {
  font-weight: 550;
  padding: 0 0 7px;
}
.odds-evidence tbody tr:last-child > * {
  border-bottom: 0;
}
.odds-ledger > p {
  margin-top: 5px;
}
.seat-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}
.seat-section-head > span,
.odds-known-pattern {
  font-size: 12px;
  color: #5a705f;
  font-weight: 500;
}
.seat-section.seat-hand-section {
  margin-top: 0;
  padding-top: 6px;
  border: 0;
}
.seat-hand-section .odds-hand {
  margin: 4px 0 9px;
}
.seat-section .odds-evidence {
  border-width: 1px 0 0;
  border-radius: 0;
  padding: 12px 0 0;
  background: none;
}
.seat-section .odds-ledger {
  margin: 12px 0 0;
}
.seat-suits-disclosure {
  margin-top: 6px;
}
.seat-suits-disclosure summary {
  width: fit-content;
  color: #4c6354;
  cursor: pointer;
  padding: 7px 0;
  font-size: 13px;
}
.seat-suits-disclosure[open] {
  padding-bottom: 2px;
}
.seat-section .odds-bar-row {
  grid-template-columns: 64px 1fr 45px;
  font-size: 13px;
}
@container (max-width: 1220px) {
  #wall-panel .wall-summary {
    padding: 2px 7px;
  }
  #wall-panel .wall-picks {
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
  }
  #wall-panel .wall-pick {
    flex-direction: column;
    gap: 2px;
    min-height: 47px;
  }
  #wall-panel .wall-pick .wall-face {
    width: 16px;
    height: 21px;
  }
  #wall-panel .wall-value {
    font-size: 11px;
    line-height: 1.2;
  }
  #wall-panel .wall-count {
    font-size: 11px;
  }
}
@media (max-width: 540px) {
  .odds-grid {
    gap: 3px;
  }
  .odds-grid .odds-cell {
    min-height: 35px;
  }
  .odds-evidence dd {
    font-size: 16px;
  }
  .odds-evidence table {
    font-size: 12px;
  }
  .odds-evidence header p,
  .odds-method {
    font-size: 12px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  #wall-panel .wall-summary {
    background: #183529;
  }
}
