.block-stack-screen {
  display: grid;
  grid-template-columns: 328px 244px;
  gap: 12px;
}

.board-panel {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 18, 23, 0.98), rgba(5, 7, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.board-panel:focus {
  transform: scale(0.99);
}

#game-board {
  width: 280px;
  height: 504px;
  border-radius: 18px;
  background: #05070a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.overlay {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.64);
  text-align: center;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.overlay p {
  color: var(--warm);
  font-size: 18px;
  font-weight: 900;
}

.hud-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: 112px 86px 198px 1fr;
  gap: 10px;
}

.score-card,
.score-row > div,
.next-card,
.lines-card {
  min-width: 0;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.score-card,
.lines-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
}

.hud-panel span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.hud-panel strong {
  display: block;
  width: 100%;
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.05;
  font-weight: 950;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.score-row strong {
  margin-top: 0;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

.score-card strong {
  color: var(--warm);
  font-size: 30px;
  line-height: 1;
}

.next-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
}

#next-piece {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  background: #05070a;
}

.lines-card strong {
  color: var(--accent-strong);
  font-size: 30px;
  line-height: 1;
}
