.on-room .on-wrap {
  min-height: 100%;
  background: radial-gradient(ellipse at 76% 0%, #243922 0%, transparent 52%), #0b130e;
}
.on-room main {
  max-width: 1000px;
  margin: auto;
  padding: clamp(16px, 4vw, 48px);
  display: grid;
  gap: 14px;
}
.on-room .ph-header {
  justify-content: space-between;
}
.on-room main > button {
  justify-self: start;
}
.on-room form,
.on-room .on-seats,
.on-room .on-felt {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--ph-line);
  border-radius: 14px;
  background: #142019;
}
.on-room form label {
  display: grid;
  gap: 5px;
}
.on-room input,
.on-room select {
  min-height: 44px;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #0c170f;
  color: var(--ph-text);
  padding: 6px 12px;
}
.on-room .on-felt {
  display: block;
  background: radial-gradient(ellipse at center, #24503b, #12291e);
  text-align: center;
}
.on-room .on-choices,
.on-room .on-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.on-room .on-hand button {
  padding: 4px;
  border-radius: 8px;
}
.on-live-controls {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.on-connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #ffd494;
}
.on-connection::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.on-connection[data-live='live'] {
  color: var(--ph-lime);
}
.on-room [aria-pressed='true'] {
  outline: 2px solid var(--ph-lime);
  outline-offset: 1px;
}
.on-room .on-card {
  display: inline-grid;
  place-items: center;
  min-width: 35px;
  height: 48px;
  border-radius: 5px;
  background: #fff7e6;
  color: #16251d;
  font-weight: 800;
  padding: 3px;
  margin: 2px;
}
.on-room .on-card.red {
  color: #a92635;
}
.on-room .tichu-card {
  width: 45px;
  height: 66px;
  vertical-align: middle;
  position: relative;
  display: inline-block;
}
.on-room .on-chess {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(100%, 60dvh, 520px);
  aspect-ratio: 1;
}
.on-room .on-chess button {
  background: #ccdbac;
  border: 0;
  position: relative;
  min-width: 0;
  padding: 0;
}
.on-room .on-chess button.dark {
  background: #526b48;
}
.on-room .on-chess button small {
  position: absolute;
  bottom: 0;
  right: 2px;
  color: #203829;
  font-size: 9px;
}
.on-room .on-chess img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
  margin: auto;
}
.on-room [role='alert'] {
  color: #ffd494;
}
@media (max-width: 560px) {
  .on-room .ph-header {
    padding: 8px;
    height: 58px;
    gap: 8px;
  }
  .on-room main {
    padding: 12px;
  }
  .on-room .on-chess {
    width: min(92vw, 520px);
  }
}
