/* ============================================================
   Tetris Prototype — Styles
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e;
  color: #eee;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

#app {
  max-width: 760px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #00d4ff;
  letter-spacing: 2px;
}

/* ---------- Setup Panel ---------- */
#setup-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

#setup-panel label {
  font-size: 16px;
}

#bet-input {
  width: 100px;
  padding: 8px 12px;
  border: 2px solid #00d4ff;
  border-radius: 6px;
  background: #16213e;
  color: #fff;
  font-size: 16px;
  text-align: center;
  outline: none;
}

#bet-input:focus {
  border-color: #0ff;
}

/* ---------- Buttons ---------- */
button {
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

#start-btn {
  background: #00d4ff;
  color: #1a1a2e;
}
#start-btn:hover {
  background: #00b8d9;
}

#pause-btn {
  background: #e94560;
  color: #fff;
  width: 100%;
}
#pause-btn:hover:not(:disabled) {
  background: #c7354d;
}
#pause-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

#restart-btn {
  background: #00d4ff;
  color: #1a1a2e;
  width: 100%;
  margin-top: 8px;
}

/* ---------- Game Area ---------- */
#game-area {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

#board-wrapper {
  border: 3px solid #00d4ff;
  border-radius: 4px;
  line-height: 0;
}

#board-canvas {
  display: block;
  background: #0f3460;
}

/* ---------- Info Panel ---------- */
#info-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 200px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #16213e;
  border-radius: 6px;
}

.info-row .label {
  font-size: 13px;
  color: #aaa;
}

.info-row .value {
  font-size: 16px;
  font-weight: 700;
  color: #00d4ff;
}

.payout-row .value {
  color: #0f0;
  font-size: 18px;
}

/* ---------- Next Block Preview ---------- */
#next-block-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#next-block-wrapper .label {
  font-size: 13px;
  color: #aaa;
}

#next-canvas {
  background: #16213e;
  border-radius: 6px;
  border: 2px solid #333;
}

/* ---------- Controls ---------- */
#controls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Game Over Overlay ---------- */
#game-over {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#game-over-box {
  background: #16213e;
  padding: 36px 48px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #00d4ff;
}

#game-over-box h2 {
  font-size: 28px;
  color: #e94560;
  margin-bottom: 12px;
}

#game-over-box p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

#game-over-btn {
  background: #00d4ff;
  color: #1a1a2e;
}

/* ---------- Utility ---------- */
.hidden {
  display: none !important;
}
