/* ============================================================================
   tap-surge.css — game-specific styles (pure-canvas rhythm tapper)
   ----------------------------------------------------------------------------
   This game predates the shared shell and used generic class names (.btn,
   .overlay) + its own #game-wrap / top bar / push bar. To drop it into the
   shared shell without CSS collisions, its colliding selectors are namespaced:
     .btn     -> .tsbtn
     .overlay -> .tsov
   and its private #game-wrap / #top-ad-bar / #push-bar rules are removed so the
   shared layout (fixed game-wrap below header+banner, shared push bar) applies.
   ============================================================================ */

body.sg-game { background: #0a0a0f; }
#game-wrap   { background: #0a0a0f; }

/* This game draws smooth vector rings — NOT pixel art — so override the shared
   pixelated canvas rule. */
#game-wrap canvas { image-rendering: auto !important; display: block; }

/* ── Game overlays (namespaced from .overlay) ── */
.tsov {
  display: none; position: fixed; inset: 0;
  background: rgba(10,10,15,0.97); z-index: 800;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 24px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;   /* tall death screen scrolls */
}
.tsov.show { display: flex; }
/* When content is taller than the screen, center via margin so the top stays reachable. */
.tsov > * { margin-top: auto; margin-bottom: auto; }

/* ── Ad placeholder box (in-overlay) ── */
.ad-box {
  width: 300px; height: 250px; max-width: 100%; background: #111827;
  border: 2px dashed #e94560; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-bottom: 14px; gap: 5px;
}
.ad-box .ad-label { font-size: 10px; color: #444; letter-spacing: 2px; text-transform: uppercase; }
.ad-box .ad-title { font-size: 17px; font-weight: 700; color: #e94560; }
.ad-box .ad-sub   { font-size: 11px; color: #555; }

/* ── Progress bar (rewarded / interstitial countdowns) ── */
.progress-wrap { width: 260px; height: 6px; background: #1a1a2e; border-radius: 50px; overflow: hidden; margin-bottom: 10px; }
.progress-bar  { height: 100%; width: 0%; background: #e94560; border-radius: 50px; transition: width 0.1s linear; }

/* ── Buttons (namespaced from .btn) ── */
.tsbtn {
  background: #e94560; color: #fff; border: none; border-radius: 50px;
  padding: 13px 44px; font-size: 16px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: opacity 0.2s, transform 0.1s;
  font-family: var(--fn);
}
.tsbtn:active { transform: scale(0.96); }
.tsbtn.locked { opacity: 0.35; pointer-events: none; }
.tsbtn.outline { background: transparent; border: 2px solid #e94560; color: #e94560; padding: 10px 32px; font-size: 14px; }

/* ── Instruction cards ── */
.inst-card {
  background: #111827; border: 1px solid #1e2d45; border-radius: 12px;
  padding: 12px 18px; margin-bottom: 9px; width: 300px; max-width: 100%;
  display: flex; align-items: center; gap: 12px; text-align: left;
}
.inst-icon { font-size: 24px; flex-shrink: 0; }
.inst-card h3 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.inst-card p  { font-size: 11px; color: #666; line-height: 1.4; }

/* ── Tier toast (mid-game, sits just below the 50px header + 52px banner) ── */
#tier-toast {
  position: fixed; top: 102px; left: 0; right: 0;
  background: #111827; border-bottom: 2px solid #cd7f32;
  z-index: 80; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  height: 0; overflow: hidden; transition: height 0.3s ease;
}
#tier-toast.show { height: 44px; padding: 0 16px; }
#tier-toast-icon { font-size: 20px; flex-shrink: 0; }
#tier-toast-text { font-size: 12px; color: #ddd; flex: 1; text-align: left; line-height: 1.3; }
#tier-toast-text strong { color: #fff; }

/* ── Share overlay (id, no collision) ── */
#share-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,10,15,0.97); z-index: 850;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 24px;
}
#share-overlay.show { display: flex; }
.share-btn {
  width: 280px; max-width: 100%; display: flex; align-items: center; gap: 14px;
  background: #111827; border: 1px solid #1e2d45; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 10px; cursor: pointer;
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: var(--fn); transition: border-color 0.15s;
}
.share-btn:hover { border-color: #e94560; }
.share-icon { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
