.breakout-surface {
  display: flex;
  justify-content: center;
}

.breakout-stage {
  width: min(100%, 30rem);
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(16, 24, 42, 0.95), rgba(10, 17, 30, 0.96));
}

.breakout-game-area {
  position: relative;
  width: 100%;
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background:
    radial-gradient(circle at top, rgba(116, 215, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #10182a 0%, #0c1322 100%);
  touch-action: none;
}

.bricks-layer {
  position: absolute;
  inset: 1rem 1rem auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
}

.brick {
  height: 1rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.16);
}

.brick.row-0 { background: linear-gradient(180deg, #ff9b9b, #d15d65); }
.brick.row-1 { background: linear-gradient(180deg, #ffcf7d, #dd9d42); }
.brick.row-2 { background: linear-gradient(180deg, #7ce6aa, #43bf7d); }
.brick.row-3 { background: linear-gradient(180deg, #7ee7e7, #45b5d4); }
.brick.row-4 { background: linear-gradient(180deg, #9e8cff, #6f62d9); }

.ball,
.paddle {
  position: absolute;
}

.ball {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff8f0 0%, #ffcf7d 40%, #ff9d5f 100%);
  box-shadow: 0 0 14px rgba(255, 207, 125, 0.28);
}

.paddle {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9f0ff, #7ecfff);
  box-shadow: 0 8px 16px rgba(0,0,0,0.24);
}

.breakout-touch-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 18rem);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .breakout-stage {
    padding: 0.85rem;
  }

  .brick {
    height: 0.85rem;
  }

  .ball {
    width: 12px;
    height: 12px;
  }
}
