/* Required Notice: Copyright 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org) */
/* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 */
/* Tetromina's own chrome: the tall well and its side panels. */
.game-layout {
  display: flex;
  gap: 15px;
  width: 100%;
  align-items: stretch;
  --tetris-height: min(70vh, 900px);
}

.game-layout .canvas-wrapper {
  flex: 1;
  height: var(--tetris-height);
  aspect-ratio: 1 / 2;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100px;
}

.panel-title {
  /* 0.5 alpha over the panel glass measures 5.35:1 (0.4 measured 3.76:1). */
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.side-canvas {
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .game-layout {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    --tetris-height: min(60vh, 500px);
  }

  .side-panel {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    padding: 10px;
  }

  .panel-title {
    margin-bottom: 0;
    margin-right: 10px;
  }

  .side-canvas {
    margin-bottom: 0;
    height: 50px;
    width: 50px;
  }
}
