/* ===== SMASH BOTTLE ===== */
/* File: /games/smash-bottle/styles-smash-bottle.css */

/* ---------- Base ---------- */
#game-smash-bottle {
  width: 100%;
  height: 100%;
  background: #0a0c14;
  overflow: hidden;
}

.smash-bottle-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 520px;
  background: radial-gradient(ellipse at 50% 0%, #1a1f3a 0%, #0a0c14 70%);
  font-family: 'Space Mono', 'Courier New', monospace;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  padding: 0 0 20px 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
}

/* ---------- Header ---------- */
.smash-bottle-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  box-sizing: border-box;
}

.smash-bottle-title {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 700;
  color: #e8a13d;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.smash-bottle-score-display {
  font-size: 14px;
  font-weight: 700;
  color: #e0e8f0;
  background: rgba(255, 168, 69, 0.1);
  border: 1.5px solid #e8a13d;
  border-radius: 8px;
  padding: 6px 12px;
}

.smash-bottle-lives-display {
  font-size: 16px;
  letter-spacing: 4px;
}

/* ---------- 2D Play Field ---------- */
/* Flat top-down field: tangerines fall straight down from spawn
   points anchored across the top-left and top-right of the canvas,
   the player-controlled stick figure moves along the bottom edge. */
.smash-bottle-field-area {
  width: 100%;
  max-width: 440px;
  padding: 12px 16px 0;
  box-sizing: border-box;
  position: relative;
  touch-action: none;
}

.smash-bottle-canvas {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: linear-gradient(to bottom, #87ceeb 0%, #b0e0f0 100%);
  transition: filter 0.08s;
}

.smash-bottle-canvas-hit-flash {
  filter: brightness(1.6) saturate(1.4);
}

.smash-bottle-toast {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(232, 161, 61, 0.95);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Space Mono', monospace;
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.smash-bottle-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.smash-bottle-toast-hidden {
  opacity: 0;
}

/* ---------- Overlays (positioned relative to wrapper, never fixed) ---------- */
.smash-bottle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 12, 20, 0.92);
  border-radius: 12px;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  z-index: 5;
}

.smash-bottle-overlay-hidden {
  display: none;
}

.smash-bottle-overlay-heading {
  font-size: 22px;
  font-weight: 700;
  color: #e8a13d;
  margin: 0;
}

.smash-bottle-overlay-text {
  font-size: 13px;
  color: #c8ccd8;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

.smash-bottle-overlay-score {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
}

/* ---------- Buttons ---------- */
.smash-bottle-primary-button {
  background: rgba(255, 168, 69, 0.1);
  border: 1.5px solid #e8a13d;
  border-radius: 10px;
  color: #e8a13d;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  padding: 10px 24px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.smash-bottle-primary-button:active {
  background: rgba(255, 168, 69, 0.28);
}

/* ---------- Controls hint ---------- */
.smash-bottle-controls-hint {
  font-size: 11px;
  color: #7a7f96;
  text-align: center;
  padding: 8px 16px 0;
  letter-spacing: 0.04em;
}


