:root {
  --the-right-price-gold: #fbbf24;
  --the-right-price-amber: #f59e0b;
  --the-right-price-dark: #0f172a;
  --the-right-price-panel: rgba(15, 23, 42, 0.82);
  --the-right-price-border: rgba(251, 191, 36, 0.28);
  --the-right-price-muted: #cbd5e1;
  --the-right-price-green: #34d399;
  --the-right-price-red: #f87171;
  --the-right-price-bet-slider-thumb-size: 18px;
  --the-right-price-bet-slider-endpoint-inset: 9px;
}

.the-right-price-settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.the-right-price-room-settings-section {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.the-right-price-room-settings-section legend,
.the-right-price-advanced-settings[open] summary {
  margin-bottom: 12px;
}

.the-right-price-room-settings-section legend,
.the-right-price-advanced-settings summary {
  color: var(--the-right-price-gold);
  font-size: 1rem;
  font-weight: 900;
}

.the-right-price-advanced-settings summary {
  width: fit-content;
  cursor: pointer;
  user-select: none;
}

.the-right-price-advanced-settings summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--the-right-price-gold);
  outline-offset: 3px;
}

.the-right-price-room-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.the-right-price-settings-form label,
.the-right-price-bet-form label {
  display: grid;
  gap: 6px;
  color: var(--the-right-price-muted);
  font-weight: 700;
}

.the-right-price-settings-form input,
.the-right-price-settings-form select,
.the-right-price-bet-form input[type='number'] {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 9px;
  color: #f8fafc;
  background: var(--the-right-price-dark);
  font: inherit;
}

.the-right-price-settings-form button {
  grid-column: 1 / -1;
}

.the-right-price-bet-form input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.the-right-price-bet-form input[type='number']::-webkit-inner-spin-button,
.the-right-price-bet-form input[type='number']::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.the-right-price-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.the-right-price-room-main,
.the-right-price-room-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.the-right-price-room-sidebar {
  min-width: 0;
}

.the-right-price-info {
  display: none;
  padding: 14px;
  border: 1px solid var(--the-right-price-border);
  border-radius: 10px;
  background: var(--the-right-price-panel);
}

.the-right-price-info h3,
.the-right-price-info p {
  margin: 0;
}

.the-right-price-info p {
  margin-top: 8px;
  color: var(--the-right-price-muted);
}

.the-right-price-waiting-players {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.the-right-price-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.the-right-price-game[hidden] {
  display: none;
}

.the-right-price-game-row {
  display: grid;
  gap: 16px;
  align-items: start;
}

.the-right-price-game-row-primary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}

.the-right-price-game-row-secondary {
  grid-template-columns: minmax(0, 10fr) minmax(150px, 1fr);
}

.the-right-price-game-header {
  display: grid;
  grid-template-columns: 1fr;
  align-self: start;
  border: 1px solid var(--the-right-price-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--the-right-price-panel);
}

.the-right-price-game-header > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  text-align: center;
}

.the-right-price-game-header > div + div {
  border-top: 1px solid var(--the-right-price-border);
}

.the-right-price-game-header span {
  color: var(--the-right-price-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.the-right-price-game-header strong {
  color: var(--the-right-price-gold);
  font-size: 1.35rem;
}

.the-right-price-money-transfer {
  position: fixed;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 9px;
  border: 1px solid rgba(254, 243, 199, 0.92);
  border-radius: 999px;
  color: #1e293b;
  background: linear-gradient(135deg, #fef3c7, var(--the-right-price-gold));
  box-shadow:
    0 5px 14px rgba(2, 8, 23, 0.48),
    0 0 12px rgba(251, 191, 36, 0.52);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform, opacity;
}

.the-right-price-money-transfer.is-bank-to-prize,
.the-right-price-money-transfer.is-player-to-prize,
.the-right-price-money-transfer.is-prize-to-player,
.the-right-price-money-transfer.is-prize-to-bank {
  border-color: rgba(167, 243, 208, 0.92);
  background: linear-gradient(135deg, #d1fae5, var(--the-right-price-green));
}

.the-right-price-scoreboard,
.the-right-price-auction,
.the-right-price-items {
  padding: 16px;
  border: 1px solid var(--the-right-price-border);
  border-radius: 12px;
  background: var(--the-right-price-panel);
}

.the-right-price-scoreboard h3,
.the-right-price-items h3 {
  margin: 0 0 12px;
}

.the-right-price-capital-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.the-right-price-capital-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.the-right-price-capital-table th,
.the-right-price-capital-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.the-right-price-capital-table thead th {
  color: var(--the-right-price-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.the-right-price-capital-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  background: #111c33;
  text-align: left;
}

.the-right-price-capital-table thead th:first-child {
  z-index: 2;
}

.the-right-price-capital-row.is-you > * {
  background-color: rgba(251, 191, 36, 0.08);
}

.the-right-price-capital-row.is-you .the-right-price-capital-player {
  background: linear-gradient(rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.08)), #111c33;
  box-shadow: inset 3px 0 0 var(--the-right-price-gold);
}

.the-right-price-capital-row.is-eliminated {
  opacity: 0.56;
}

.the-right-price-capital-player > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.the-right-price-capital-player > span {
  display: block;
  margin-top: 4px;
  color: var(--the-right-price-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.the-right-price-capital-row.is-resigned .the-right-price-capital-player > span {
  color: var(--the-right-price-red);
}

.the-right-price-capital-value {
  color: var(--the-right-price-green);
  font-weight: 800;
}

.the-right-price-capital-change.is-negative {
  color: var(--the-right-price-red);
}

.the-right-price-capital-change.is-positive {
  color: var(--the-right-price-green);
}

.the-right-price-capital-change.is-zero {
  color: var(--the-right-price-muted);
}

.the-right-price-auction {
  border-color: rgba(245, 158, 11, 0.58);
}

.the-right-price-auction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.the-right-price-auction-heading h3 {
  margin: 3px 0 0;
}

#bet-countdown {
  min-width: 68px;
  color: var(--the-right-price-gold);
  font-size: 1.35rem;
  text-align: right;
}

.the-right-price-final-results-button {
  box-sizing: border-box;
  display: inline-grid;
  width: 60px;
  height: 60px;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(254, 243, 199, 0.86);
  border-radius: 15px;
  background: #fef3c7;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  animation: the-right-price-final-results-glow 1.45s ease-in-out infinite;
}

.the-right-price-final-results-button:hover,
.the-right-price-final-results-button:focus-visible {
  border-color: var(--the-right-price-gold);
  background: #fde68a;
}

.the-right-price-final-results-button[hidden] {
  display: none;
}

.the-right-price-final-results-button img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

@keyframes the-right-price-final-results-glow {
  0%,
  100% {
    box-shadow:
      0 4px 9px rgba(0, 0, 0, 0.32),
      0 0 0 rgba(251, 191, 36, 0);
    transform: translateY(0) scale(1);
  }

  50% {
    box-shadow:
      0 4px 9px rgba(0, 0, 0, 0.32),
      0 0 18px rgba(251, 191, 36, 0.95);
    transform: translateY(-1px) scale(1.05);
  }
}

.the-right-price-auction-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  margin: 16px 0;
}

.the-right-price-range-card {
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 16px 12px;
  border-radius: 12px;
  color: var(--the-right-price-dark);
  background: linear-gradient(135deg, #fde68a, var(--the-right-price-amber));
  text-align: center;
}

.the-right-price-range-card span {
  font-weight: 800;
  text-transform: uppercase;
}

.the-right-price-range-card strong {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
}

.the-right-price-revealed-bets {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--the-right-price-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.the-right-price-revealed-bets > span {
  color: var(--the-right-price-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.the-right-price-revealed-bets p {
  margin: 0;
  color: var(--the-right-price-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.the-right-price-bet-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
  grid-template-areas:
    'label .'
    'entry submit'
    'slider skip';
  align-items: stretch;
  gap: 6px 10px;
}

.the-right-price-bet-label {
  grid-area: label;
}

.the-right-price-bet-entry {
  display: grid;
  grid-area: entry;
  grid-template-columns: minmax(82px, 0.3fr) minmax(0, 1fr);
  gap: 6px;
}

#submit-bet-button {
  grid-area: submit;
}

#skip-bet-button {
  grid-area: skip;
}

#submit-bet-button,
#skip-bet-button {
  align-self: stretch;
}

.the-right-price-bet-slider {
  display: grid;
  grid-area: slider;
  gap: 6px;
}

.the-right-price-bet-slider-track {
  position: relative;
  height: 24px;
}

.the-right-price-bet-slider-item-markers {
  position: absolute;
  z-index: 0;
  inset: 0 var(--the-right-price-bet-slider-endpoint-inset);
  pointer-events: none;
}

.the-right-price-bet-slider-item-marker {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(2, 8, 23, 0.7);
}

.the-right-price-bet-slider-item-marker.is-minimum {
  background: var(--the-right-price-red);
}

.the-right-price-bet-slider-item-marker.is-maximum {
  background: var(--the-right-price-green);
}

.the-right-price-bet-adjustments {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.the-right-price-bet-adjustments button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.92);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  overflow: visible;
}

.the-right-price-bet-adjustments button:hover:not(:disabled),
.the-right-price-bet-adjustments button:focus-visible {
  border-color: var(--the-right-price-gold);
  color: var(--the-right-price-gold);
}

.the-right-price-bet-adjustments button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.the-right-price-bet-adjustment-feedback {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  color: currentColor;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(2, 8, 23, 0.9);
  white-space: nowrap;
}

.the-right-price-bet-adjustment-feedback.is-decrease {
  color: var(--the-right-price-red);
  animation: the-right-price-bet-adjustment-down 620ms ease-out forwards;
}

.the-right-price-bet-adjustment-feedback.is-increase {
  color: var(--the-right-price-green);
  animation: the-right-price-bet-adjustment-up 620ms ease-out forwards;
}

@keyframes the-right-price-bet-adjustment-down {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 26px) scale(1.04);
  }
}

@keyframes the-right-price-bet-adjustment-up {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -42px) scale(1.04);
  }
}

@keyframes the-right-price-bet-adjustment-fade {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

.the-right-price-bet-slider input[type='range'] {
  --the-right-price-bet-slider-progress: 0%;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 24px;
  min-height: 24px;
  margin: 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: linear-gradient(
    to right,
    var(--the-right-price-amber) 0 var(--the-right-price-bet-slider-progress),
    rgba(148, 163, 184, 0.42) var(--the-right-price-bet-slider-progress) 100%
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: calc(100% - var(--the-right-price-bet-slider-thumb-size)) 6px;
  cursor: pointer;
}

.the-right-price-bet-slider input[type='range']::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.the-right-price-bet-slider input[type='range']::-webkit-slider-thumb {
  width: var(--the-right-price-bet-slider-thumb-size);
  height: var(--the-right-price-bet-slider-thumb-size);
  margin-top: -6px;
  border: 2px solid var(--the-right-price-gold);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--the-right-price-amber);
  box-shadow: 0 1px 4px rgba(2, 8, 23, 0.48);
}

.the-right-price-bet-slider input[type='range']::-moz-range-track,
.the-right-price-bet-slider input[type='range']::-moz-range-progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.the-right-price-bet-slider input[type='range']::-moz-range-thumb {
  width: var(--the-right-price-bet-slider-thumb-size);
  height: var(--the-right-price-bet-slider-thumb-size);
  border: 2px solid var(--the-right-price-gold);
  border-radius: 50%;
  background: var(--the-right-price-amber);
  box-shadow: 0 1px 4px rgba(2, 8, 23, 0.48);
}

.the-right-price-bet-slider input[type='range']:focus-visible {
  outline: 3px solid rgba(147, 197, 253, 0.9);
  outline-offset: 2px;
}

.the-right-price-bet-slider input[type='range']:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.the-right-price-bet-slider-limits {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-inline: var(--the-right-price-bet-slider-endpoint-inset);
  color: var(--the-right-price-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.the-right-price-bet-progress {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--the-right-price-muted);
}

.the-right-price-items-list {
  width: 100%;
  overflow-x: auto;
}

.the-right-price-items-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.the-right-price-items-table th,
.the-right-price-items-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
  vertical-align: middle;
}

.the-right-price-items-table th {
  color: var(--the-right-price-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.the-right-price-items-table th:nth-child(1),
.the-right-price-items-table td:nth-child(1) {
  width: 62px;
  text-align: center;
}

.the-right-price-items-table th:nth-child(2),
.the-right-price-items-table td:nth-child(2) {
  width: 38%;
}

.the-right-price-items-table th:nth-child(2) {
  text-align: center;
}

.the-right-price-items-table th:nth-child(3),
.the-right-price-items-table td:nth-child(3) {
  width: 82px;
}

.the-right-price-items-table th:nth-child(4),
.the-right-price-items-table td:nth-child(4) {
  width: 68px;
  text-align: center;
}

.the-right-price-capital-table th:nth-child(5),
.the-right-price-capital-table td:nth-child(5) {
  border-left: 2px solid rgba(251, 191, 36, 0.42);
}

.the-right-price-items-table th:nth-child(6),
.the-right-price-items-table td:nth-child(6) {
  width: 96px;
  text-align: right;
}

.the-right-price-item-index,
.the-right-price-item-value,
.the-right-price-item-paid,
.the-right-price-item-range-text {
  font-variant-numeric: tabular-nums;
}

.the-right-price-item-range-text {
  color: #f8fafc;
  font-weight: 800;
  white-space: nowrap;
}

.the-right-price-item-range-visual {
  position: relative;
  width: 100%;
}

.the-right-price-round-winning-guide {
  position: absolute;
  z-index: 1;
  top: -9px;
  bottom: -10px;
  left: var(--the-right-price-round-winning-position);
  width: 2px;
  background: #fef08a;
  box-shadow: 0 0 5px rgba(250, 204, 21, 0.9);
  pointer-events: none;
  transform: translateX(-50%);
}

.the-right-price-item-range-track {
  position: relative;
  display: block;
  width: 100%;
  height: 17px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.82);
  overflow: visible;
}

.the-right-price-item-range-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--the-right-price-item-range-start);
  width: var(--the-right-price-item-range-width);
  min-width: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--the-right-price-amber), var(--the-right-price-gold));
}

.the-right-price-item-scale-guide {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: var(--the-right-price-item-scale-guide-position);
  width: 1px;
  background: rgba(248, 250, 252, 0.34);
  pointer-events: none;
  transform: translateX(-50%);
}

.the-right-price-item-scale-guide.is-in-range {
  background: rgba(2, 6, 23, 0.82);
}

.the-right-price-item-value-marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--the-right-price-item-value-position);
  width: 12px;
  height: 12px;
  border: 2px solid #ecfdf5;
  border-radius: 50%;
  background: var(--the-right-price-green);
  box-shadow:
    0 0 0 2px rgba(5, 150, 105, 0.32),
    0 2px 5px rgba(2, 8, 23, 0.7);
  transform: translate(-50%, -50%);
}

.the-right-price-item-value-marker.is-randomizing {
  background: #60a5fa;
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.36),
    0 0 10px rgba(96, 165, 250, 0.9);
  animation: the-right-price-randomization-pulse 160ms ease-in-out infinite alternate;
}

.the-right-price-round-winning-guide.is-randomizing {
  background: #bfdbfe;
  box-shadow: 0 0 7px rgba(96, 165, 250, 0.95);
}

.the-right-price-item-value.is-randomizing {
  color: #bfdbfe;
  font-weight: 900;
}

@keyframes the-right-price-randomization-pulse {
  from {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.84);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.the-right-price-item-owner {
  overflow-wrap: anywhere;
}

.the-right-price-item-value.is-round-winner,
.the-right-price-item-owner.is-round-winner {
  color: #ecfdf5;
  background: rgba(5, 150, 105, 0.2);
  box-shadow: inset 0 0 0 2px var(--the-right-price-green);
  font-weight: 900;
}

.the-right-price-final-dialog {
  width: min(920px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--the-right-price-border);
  border-radius: 14px;
  color: #f8fafc;
  background: #111c33;
}

.the-right-price-final-dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
}

.the-right-price-final-table-wrap {
  margin: 16px 0;
  overflow-x: auto;
}

.the-right-price-final-dialog table {
  width: 100%;
  border-collapse: collapse;
}

.the-right-price-final-dialog th,
.the-right-price-final-dialog td {
  padding: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
  white-space: nowrap;
}

.the-right-price-final-dialog th:nth-child(3),
.the-right-price-final-dialog td:nth-child(3) {
  text-align: right;
}

.the-right-price-final-dialog th:nth-child(1),
.the-right-price-final-dialog td:nth-child(1),
.the-right-price-final-dialog th:nth-child(4),
.the-right-price-final-dialog td:nth-child(4),
.the-right-price-final-dialog th:nth-child(5),
.the-right-price-final-dialog td:nth-child(5),
.the-right-price-final-dialog th:nth-child(6),
.the-right-price-final-dialog td:nth-child(6) {
  text-align: center;
}

.base-game-navbar-room #settings-summary {
  flex: 0 0 auto;
  justify-content: flex-start;
}

.the-right-price-sidebar-toggle {
  width: 38px;
  min-width: 38px;
  padding: 7px;
}

.the-right-price-sidebar-toggle-icon {
  display: grid;
  width: 18px;
  gap: 4px;
}

.the-right-price-sidebar-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.base-game-navbar-room > .the-right-price-sidebar-toggle {
  margin-left: auto;
}

.base-game-room-info-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
}

.base-game-room-settings-dialog {
  width: min(520px, calc(100vw - 32px));
}

.base-game-room-settings-dialog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

body.base-game-game-active .the-right-price-room {
  display: flex;
  width: 100%;
  align-items: start;
  overflow-x: clip;
}

body.base-game-game-active .the-right-price-room-main {
  width: 0;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
}

body.base-game-game-active .the-right-price-game {
  padding: 16px;
}

body.base-game-game-active .the-right-price-room-sidebar {
  position: sticky;
  top: 60px;
  width: 300px;
  height: calc(100vh - 60px);
  flex: 0 0 300px;
  grid-template-rows: auto minmax(120px, 1fr) minmax(240px, 2fr);
  align-content: stretch;
  gap: 0;
  min-width: 0;
  padding-left: 0;
  border-left: 1px solid var(--the-right-price-border);
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition:
    width 260ms ease,
    flex-basis 260ms ease,
    opacity 180ms ease,
    transform 260ms ease,
    visibility 0s linear;
  visibility: visible;
}

body.base-game-game-active .the-right-price-info {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--the-right-price-border);
  border-radius: 0;
}

body.base-game-game-active .base-game-room-chat {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.base-game-game-active .base-game-room-chat .base-game-chat-messages {
  min-height: 0;
  max-height: none;
}

body.base-game-game-active.the-right-price-sidebar-collapsed .the-right-price-room-sidebar {
  width: 0;
  flex-basis: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 820px) {
  .the-right-price-room {
    grid-template-columns: 1fr;
  }

  .the-right-price-room-sidebar {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--the-right-price-border);
    padding-top: 16px;
  }

  body.base-game-game-active .the-right-price-room {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.base-game-game-active .the-right-price-room-main {
    width: 100%;
  }

  body.base-game-game-active .the-right-price-room-sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: 900px;
    flex-basis: auto;
    grid-template-rows: auto auto auto;
    padding-top: 0;
    transition:
      max-height 300ms ease,
      opacity 180ms ease,
      transform 300ms ease,
      visibility 0s linear;
  }

  body.base-game-game-active.the-right-price-sidebar-collapsed .the-right-price-room-sidebar {
    width: 100%;
    flex-basis: auto;
    max-height: 0;
    transform: translateY(-16px);
  }

  .the-right-price-game-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.base-game-game-active .the-right-price-room-sidebar {
    transition: none;
  }

  .the-right-price-final-results-button {
    animation: none;
  }

  .the-right-price-bet-adjustment-feedback.is-decrease,
  .the-right-price-bet-adjustment-feedback.is-increase {
    animation: the-right-price-bet-adjustment-fade 180ms ease-out forwards;
  }
}

@media (max-width: 760px) {
  .the-right-price-settings-form,
  .the-right-price-room-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .the-right-price-bet-form {
    grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
    column-gap: 6px;
  }

  .the-right-price-bet-entry {
    grid-template-columns: minmax(68px, 0.28fr) minmax(0, 1fr);
    gap: 4px;
  }

  .the-right-price-bet-adjustments {
    gap: 2px;
  }

  .the-right-price-bet-adjustments button {
    padding-inline: 2px;
    font-size: 0.78rem;
  }

  .the-right-price-settings-form button {
    grid-column: auto;
  }
}
