body .app.app--wide {
  max-width: 1280px;
}
.trPlay {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .trPlay {
    grid-template-columns: 1fr;
  }
}
.trMainBoard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.trPieceHud {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trPieceHud__box {
  min-width: 56px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}
.trPieceHud__label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.trPieceHud__val {
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
}
.trControls__list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.65;
}
.trControls--compact .trControls__list {
  margin-top: 6px;
  font-size: 12px;
}
.trBoardWrap {
  position: relative;
  padding: 8px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.4);
}
.trCanvas {
  display: block;
  image-rendering: pixelated;
}
.trNext {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.trSide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.trMiniGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
}
.trMini {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  cursor: default;
}
.trMini--me {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(106, 167, 255, 0.35);
}
.trMini--out {
  opacity: 0.45;
  filter: grayscale(0.8);
}
.trMini__name {
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trMini canvas {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.trHud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.trHud__alive {
  color: var(--ok);
}
.trLog {
  font-size: 12px;
  line-height: 1.45;
  max-height: 120px;
  overflow-y: auto;
}
.trSeats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 640px) {
  .trSeats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.trSeat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}
.trSeat--open {
  border-color: rgba(106, 167, 255, 0.45);
}
.trSeat--cpu {
  border-color: rgba(251, 191, 36, 0.45);
}
.trSeat--occupied {
  border-color: rgba(56, 211, 159, 0.45);
}
.trSeat__title {
  font-weight: 800;
  margin-bottom: 4px;
}
.trOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.trOverlay__card {
  text-align: center;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  max-width: 360px;
}
.trOverlay__title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
}
.trKeys {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
