/* stacking blocks game Styles */
.main-text {
  margin-top: 100px;
}

/* minimal ptb-style game over overlay (from pop-the-balloon) */
.ptb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 14, 22, 0.68);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.ptb-overlay-card {
  width: min(440px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 22px 22px 20px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

.ptb-overlay-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0d1020;
  letter-spacing: 0.01em;
}

.ptb-score-label {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 16, 32, 0.55);
}

.ptb-score-label-tight { margin-top: 12px; }

.ptb-score {
  margin-top: 6px;
  font-size: 4.1rem;
  font-weight: 900;
  line-height: 1;
  color: #0d1020;
}

.ptb-score-small { font-size: 2.4rem; opacity: 0.9; }

.ptb-overlay-btn {
  margin-top: 18px;
  padding: 12px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #111 0%, #2a2f4a 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.stack-section {
  max-width: 780px;
  margin: 60px auto 0 auto;
  padding: 0;
  /* background: #fff; */
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.185);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stack-section .odd-hud {
  margin-bottom: 16px;
}

.canvas-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0);
  position: relative;
  z-index: 0;
}

#stack-canvas {
  width: 100%;
  height: 440px;
  display: block;
  touch-action: none;
}

.stack-controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.stack-controls button {
  font-size: 1.1rem;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  background: #ff0000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.stack-controls button:hover {
  background: #000000;
}

.stack-hint {
  margin-top: 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
}

.stacked-now {
  color: #ff0000;
  font-size: 1.35em;
  font-weight: 900;
}

.status-display {
  text-align: center;
  line-height: 1.2;
}

.status-display .difficulty-tag {
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  margin-top: 0;
}

/* Difficulty colors (matching find the ball game) */
/* .status-display.diff-easy .difficulty-tag {
  background: rgba(0, 137, 123, 0.14);
  color: #00897b;
}

.status-display.diff-medium .difficulty-tag {
  background: rgba(255, 152, 0, 0.18);
  color: #ff9800;
}

.status-display.diff-hard .difficulty-tag {
  background: rgba(255, 3, 3, 0.14);
  color: #ff0000;
}

.status-display.diff-insanity .difficulty-tag {
  background: rgba(208, 2, 27, 0.14);
  color: #d0021b;
}

.status-display.diff-impossible .difficulty-tag {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
} */

@media (max-width: 600px) {
  .main-text {
      margin-top: 60px;
  }
  .stack-section {
      max-width: 90%;
      margin: 20px auto 0 auto;
      padding: 12px 14px;
  }
  #stack-canvas {
    height: 480px;
  }
}
