/* ============================================================
   DEPTH STRIKE — Harpoon Arcade Game
   style.css  |  Retro Arcade Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Inter:wght@400;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --void: #171321;
  --abyss: #211a31;
  --deep: #2d2544;
  --mid: #47385f;
  --surface: #675184;
  --neon: #c084fc;
  --neon-dim: #8b5bc7;
  --neon-glow: rgba(192,132,252,0.36);
  --lime: #34d399;
  --amber: #f59e0b;
  --danger: #fb7185;
  --danger-glow: rgba(251,113,133,0.40);
  --gold: #facc15;
  --cream: #f7efff;
  --text: #f4eaff;
  --text-dim: #b49bcf;
  --sand: #b08968;
  --radius: 12px;
  --font-hud: 'Black Ops One', cursive;
  --font-body: 'Inter', sans-serif;

  /* scanline overlay opacity */
  --scanline-opacity: 0.03;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* scanline effect on whole page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,var(--scanline-opacity)) 2px,
    rgba(0,0,0,var(--scanline-opacity)) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ── HEADER ─────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: linear-gradient(180deg, rgba(4,8,15,0.98) 0%, rgba(7,14,28,0.7) 100%);
  border-bottom: 1px solid var(--neon-dim);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0,229,255,0.08);
}

.logo {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow), 0 0 40px rgba(0,229,255,0.2);
  text-transform: uppercase;
}

.logo span { color: var(--amber); text-shadow: 0 0 20px rgba(255,140,0,0.5); }

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-family: var(--font-hud);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}

nav a:hover {
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-glow);
}

/* lang switcher */
#lang-btn {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--neon-dim);
  border-radius: var(--radius);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

#lang-btn:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 12px var(--neon-glow);
}

/* ── GAME SECTION ───────────────────────────────────────────── */
#game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 56px;
  gap: 18px;
  position: relative;
}

/* ── HUD ─────────────────────────────────────────────────────── */
#hud {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: 820px;
  background: var(--abyss);
  border: 1px solid var(--neon-dim);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,229,255,0.1), inset 0 0 30px rgba(0,0,0,0.5);
}

.hud-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  border-right: 1px solid rgba(0,229,255,0.1);
  background: linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(4,8,15,0.8) 100%);
}

.hud-cell:last-child { border-right: none; }

.hud-label {
  font-family: var(--font-hud);
  font-size: 0.52rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hud-value {
  font-family: var(--font-hud);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-glow);
  line-height: 1;
}

#lives-value { color: var(--danger); text-shadow: 0 0 10px var(--danger-glow); }
#level-value { color: var(--gold);   text-shadow: 0 0 10px rgba(255,215,0,0.4); }

#fire-btn {
  flex: 2;
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0d3a5c, #1a5a8c);
  border: none;
  border-left: 1px solid var(--neon-dim);
  color: var(--neon);
  cursor: pointer;
  transition: all 0.1s;
  text-shadow: 0 0 10px var(--neon-glow);
  box-shadow: inset 0 0 20px rgba(0,229,255,0.1);
  padding: 0 24px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

#fire-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.1s;
}

#fire-btn:hover::before { opacity: 1; }

#fire-btn:active {
  background: linear-gradient(135deg, #1a5a8c, #2a7ab0);
  transform: scaleY(0.97);
  box-shadow: inset 0 0 30px rgba(0,229,255,0.3);
}

#fire-btn.fired {
  background: linear-gradient(135deg, #1a5a8c, #2a7ab0);
  color: var(--lime);
  text-shadow: 0 0 10px rgba(57,255,20,0.6);
}

/* ── CANVAS WRAP ────────────────────────────────────────────── */
#canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--neon-dim);
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.08),
    0 0 40px rgba(0,229,255,0.12),
    0 20px 60px rgba(0,0,0,0.8);
}

#game-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--deep);
  cursor: crosshair;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* corner decorations */
#canvas-wrap::before,
#canvas-wrap::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--neon);
  border-style: solid;
  z-index: 5;
  opacity: 0.6;
}
#canvas-wrap::before { top:6px; left:6px;   border-width: 2px 0 0 2px; }
#canvas-wrap::after  { bottom:6px; right:6px; border-width: 0 2px 2px 0; }

/* ── OVERLAY ─────────────────────────────────────────────────── */
#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(4,8,15,0.92);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s;
  z-index: 20;
}

#overlay.hidden { opacity:0; pointer-events:none; }

.overlay-icon {
  font-size: 4.5rem;
  filter: drop-shadow(0 0 20px var(--neon-glow));
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

.overlay-title {
  font-family: var(--font-hud);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 30px var(--neon-glow), 0 0 60px rgba(0,229,255,0.15);
  text-align: center;
}

.overlay-sub {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  max-width: 360px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.overlay-btn {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 44px;
  background: transparent;
  border: 2px solid var(--neon);
  border-radius: var(--radius);
  color: var(--neon);
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 0 0 10px var(--neon-glow);
  box-shadow: 0 0 20px rgba(0,229,255,0.15), inset 0 0 20px rgba(0,229,255,0.05);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.overlay-btn:hover {
  background: rgba(0,229,255,0.1);
  box-shadow: 0 0 40px rgba(0,229,255,0.3), inset 0 0 30px rgba(0,229,255,0.1);
  transform: translateY(-2px);
}

.overlay-btn:active { transform: scale(0.97); }

/* legend */
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* score flash */
#score-flash {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-hud);
  font-size: 2rem;
  font-weight: 900;
  pointer-events: none;
  opacity: 0;
  z-index: 15;
  text-shadow: 0 0 20px currentColor;
  transition: none;
  white-space: nowrap;
}

#score-flash.show {
  animation: flash-up 1.2s ease-out forwards;
}

@keyframes flash-up {
  0%   { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
  60%  { opacity:1; transform: translateX(-50%) translateY(-40px) scale(1.1); }
  100% { opacity:0; transform: translateX(-50%) translateY(-70px) scale(0.9); }
}

/* swing indicator bar */
#swing-bar-wrap {
  width: 100%;
  max-width: 820px;
  height: 10px;
  background: rgba(0,229,255,0.08);
  border: 1px solid var(--neon-dim);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

#swing-bar {
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background: var(--neon);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--neon-glow);
  transition: left 0.016s linear;
  left: 50%;
}

/* ── ABOUT SECTION ──────────────────────────────────────────── */
#about-section {
  padding: 70px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 15px var(--neon-glow);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-dim), transparent);
  box-shadow: 0 0 8px var(--neon-dim);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  background: linear-gradient(135deg, rgba(10,22,40,0.7), rgba(4,8,15,0.9));
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-dim), transparent);
  opacity: 0.5;
}

.about-card h3 {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255,140,0,0.4);
  margin-bottom: 12px;
}

.about-card p, .about-card li {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
}

.about-card ul {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.about-card li::before {
  content: '▸ ';
  color: var(--neon);
  font-size: 0.8rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
}

.key {
  background: rgba(0,229,255,0.08);
  border: 1px solid var(--neon-dim);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  color: var(--neon);
  white-space: nowrap;
  letter-spacing: 1px;
  text-shadow: 0 0 6px var(--neon-glow);
}

.key-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
#contact-section {
  border-top: 1px solid rgba(0,229,255,0.1);
  padding: 48px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 180px;
  background: rgba(7,14,28,0.7);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card .label {
  font-family: var(--font-hud);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-dim);
}

.contact-card a, .contact-card p {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}

.contact-card a:hover { color: var(--neon); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 20px 16px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 1px;
  border-top: 1px solid rgba(0,229,255,0.08);
  font-family: var(--font-hud);
  opacity: 0.6;
}

footer a { color: var(--text-dim); }

/* ── Ambient bg ─────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0,37,70,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(0,229,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#game-section, #about-section, #contact-section, header, footer {
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 10px 16px; }
  .logo { font-size: 1.15rem; letter-spacing: 2px; }
  nav { gap: 16px; }
  nav a { font-size: 0.62rem; }
  #game-section { padding: 16px 10px 40px; gap: 12px; }
  .about-grid { grid-template-columns: 1fr; }
  #about-section { padding: 48px 16px; }
  #contact-section { padding: 36px 16px; }
  .overlay-title { font-size: 1.8rem; letter-spacing: 2px; }
}

@media (max-width: 480px) {
  header { padding: 8px 12px; flex-wrap: wrap; gap: 6px; }
  .logo { font-size: 1rem; }
  nav { gap: 10px; }
  nav a { display: none; }
  nav a.always { display: block; }
  #lang-btn { font-size: 0.58rem; padding: 5px 10px; }

  #hud { flex-wrap: wrap; }
  .hud-cell { min-width: calc(33% - 2px); padding: 8px 4px; }
  .hud-value { font-size: 1.1rem; }
  .hud-label { font-size: 0.48rem; }
  #fire-btn { width: 100%; border-left: none; border-top: 1px solid var(--neon-dim); padding: 14px; font-size: 1.1rem; }

  .overlay-title { font-size: 1.5rem; }
  .overlay-sub   { font-size: 0.88rem; }
  .overlay-btn   { padding: 12px 30px; font-size: 0.8rem; }
  .overlay-icon  { font-size: 3.5rem; }
  .legend { gap: 10px; }
  .legend-item { font-size: 0.78rem; }

  #about-section { padding: 36px 12px; }
  .about-card { padding: 18px 14px; }
  .section-heading { font-size: 1.1rem; }
  .controls-grid { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 360px) {
  .logo { font-size: 0.9rem; }
  .hud-value { font-size: 1rem; }
  .overlay-title { font-size: 1.3rem; }
}

@media (hover: none) {
  #fire-btn:hover, .overlay-btn:hover, nav a:hover { transform: none; box-shadow: none; }
  #fire-btn:active  { transform: scaleY(0.97); }
  .overlay-btn:active { transform: scale(0.97); }
}


/* ===== Bait Bass Rush / shopblackmgm.com unique skin ===== */
header {
  padding: 15px 42px;
  border-bottom-width: 3px;
}
.logo {
  letter-spacing: .04em;
}
.logo::before {
  content: '🐟';
  margin-right: 10px;
}
.logo span {
  color: var(--gold);
}
nav {
  gap: 24px;
}
#game-section {
  padding: 38px 22px 76px;
}
#hud {
  padding: 15px 18px 20px;
  gap: 13px;
  border-radius: calc(var(--radius) + 10px);
}
#canvas-wrap,
.card,
.info-card,
.contact-card,
section,
.panel,
#game-container {
  border-radius: calc(var(--radius) + 10px);
}
button,
#fire-btn,
#start-btn,
.diff-btn {
  border-radius: 999px;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 42% at 50% 0%, var(--neon-glow) 0%, transparent 66%),
    radial-gradient(ellipse 42% 28% at 18% 84%, rgba(246,196,83,.13) 0%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}
footer {
  padding: 22px 30px;
}
.domain-line {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: .9rem;
}
