:root {
  --bg: #FFF8F3;
  --primary: #FF6B9D;
  --primary-light: #FF8FB3;
  --primary-dark: #E85585;
  --accent: #FFD93D;
  --card: #FFFFFF;
  --text: #2D3142;
  --text-light: #6C7293;
  --border: #F0E6DD;
  --shadow: 0 8px 24px rgba(45, 49, 66, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-canvas {
  display: block;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 100%;
  max-height: 100%;
  touch-action: none;
}

#ui-overlay {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 5;
}
.ui-row { display: flex; gap: 8px; pointer-events: auto; }
.ui-pill {
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(45,49,66,0.08);
  font-size: 0.9rem;
}
.ui-label { font-weight: 600; color: var(--text-light); margin-right: 4px; font-size: 0.8rem; }

#pause-btn,
#mute-btn {
  pointer-events: auto;
  background: rgba(255,255,255,0.92);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45,49,66,0.08);
}

.modal {
  position: absolute;
  inset: 0;
  background: rgba(45, 49, 66, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal__inner {
  background: var(--card);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal__inner h2 { margin: 0 0 8px; font-size: 1.6rem; }
.modal__inner p { margin: 0 0 16px; color: var(--text-light); }
.big-score { font-size: 1.4rem !important; color: var(--text) !important; font-weight: 800; margin: 4px 0 !important; }
.sub-score { font-size: 0.95rem; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.ad-slot {
  margin-top: 16px;
  min-height: 100px;
  /* Empty during AdSense review; will be populated post-approval. */
}
