/* ============================================================
   BIG BESTSELLER BASS — style.css
   Deep Ocean / Midnight Angler · Bold & Immersive
   ============================================================ */

:root {
  --void:        #060d1a; --dark: #0d1b2e; --panel: #112240; --panel-lt: #1a3358;
  --ocean:       #0a3d62; --ocean-lt: #1a5276; --cyan: #00d2ff; --cyan-lt: #7ef9ff;
  --cyan-glow:   rgba(0,210,255,0.35); --purple: #7b2fff; --purple-lt: #b47eff;
  --purple-glow: rgba(123,47,255,0.40); --danger: #ff4757; --danger-glow: rgba(255,71,87,0.45);
  --safe: #2ed573; --safe-glow: rgba(46,213,115,0.42); --bonus: #ffa502; --bonus-glow: rgba(255,165,2,0.42);
  --gold: #ffd700; --white: #ffffff; --text: #e8f4f8; --text-dim: #7fb3c8;
  --jungle:      #060d1a; --leaf: #00d2ff; --leaf-lt: #7ef9ff; --sun: #ffd700;
  --orange:      #ff6b35; --sky: #0a1628; --text-lt: #5a8fa8; --blue-lt: #7ef9ff;
  --radius: 10px; --radius-lg: 18px;
  --shadow: 0 4px 20px rgba(0,0,0,0.75); --shadow-lg: 0 10px 42px rgba(0,0,0,0.86);
  --font-title: 'Audiowide', cursive; --font-body: 'Rubik', sans-serif;
}

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

body {
  background: linear-gradient(180deg, #0a1628 0%, #0d2137 40%, #071520 100%);
  color: var(--text); font-family: var(--font-body); min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 40px, rgba(0,210,255,0.02) 40px, rgba(0,210,255,0.02) 80px);
  pointer-events: none; z-index: 0;
}

/* ── HEADER ─────────────────────────────────────────────────── */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 36px;
  background: linear-gradient(180deg, #060d1a 0%, rgba(6,13,26,0.97) 100%);
  border-bottom: 3px solid var(--cyan);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 24px rgba(0,210,255,0.18);
}
.logo {
  font-family: var(--font-title); font-size: 1.7rem; letter-spacing: 1px;
  color: var(--cyan); text-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 24px rgba(0,210,255,0.4);
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { font-size: 1.4rem; filter: drop-shadow(0 2px 6px rgba(0,210,255,0.5)); }

nav { display: flex; align-items: center; gap: 20px; }
nav a {
  font-family: var(--font-body); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.5px; color: var(--cyan-lt); text-decoration: none; transition: color 0.2s;
}
nav a:hover { color: var(--gold); }

#lang-switcher { position: relative; }
#lang-btn {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; padding: 6px 12px;
  background: rgba(0,210,255,0.12); border: 2px solid rgba(0,210,255,0.4);
  border-radius: var(--radius); color: var(--cyan-lt); cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
#lang-btn:hover { background: rgba(0,210,255,0.22); border-color: var(--cyan-lt); }
#lang-btn .arrow { font-size: 0.6rem; opacity: 0.8; transition: transform 0.2s; }
#lang-btn.open .arrow { transform: rotate(180deg); }
#lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--dark); border: 2px solid var(--cyan);
  border-radius: var(--radius); overflow: hidden; z-index: 200;
  box-shadow: var(--shadow-lg); min-width: 140px;
}
#lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  color: var(--cyan-lt); cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid rgba(0,210,255,0.15);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: rgba(0,210,255,0.15); color: var(--gold); }
.lang-option.active { color: var(--gold); }
.lang-flag { font-size: 1.1rem; line-height: 1; }

/* ── GAME SECTION ───────────────────────────────────────────── */
#game-section {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; padding: 18px 16px 48px; gap: 12px;
}

/* ── HUD ─────────────────────────────────────────────────────── */
#hud {
  display: flex; align-items: stretch; width: 100%; max-width: 820px;
  background: rgba(6,13,26,0.96); border: 3px solid var(--cyan);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 28px rgba(0,210,255,0.2), var(--shadow-lg);
}
.hud-cell {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; padding: 10px 6px;
  border-right: 1px solid rgba(0,210,255,0.2);
}
.hud-cell:last-child { border-right: none; }
.hud-label {
  font-family: var(--font-body); font-size: 0.52rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan-lt);
}
.hud-value {
  font-family: var(--font-title); font-size: 1.4rem; color: var(--gold);
  line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
#lives-display { display: flex; gap: 2px; font-size: 1.1rem; }

/* distance progress bar */
#dist-bar-wrap {
  width: 100%; max-width: 820px; background: rgba(6,13,26,0.8);
  border: 2px solid var(--cyan); border-radius: 10px; overflow: hidden; height: 14px;
}
#dist-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 10px; transition: width 0.2s; position: relative;
}
#dist-bar-fill::after {
  content: '🎣'; position: absolute; right: -10px; top: 50%;
  transform: translateY(-50%); font-size: 12px;
}

#hud-controls {
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border-left: 1px solid rgba(0,210,255,0.15); flex-shrink: 0;
}
.diff-btn {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 800;
  padding: 5px 10px; background: transparent;
  border: 2px solid rgba(0,210,255,0.3); border-radius: 20px;
  color: var(--cyan-lt); cursor: pointer; transition: all 0.2s; touch-action: manipulation;
}
.diff-btn.active, .diff-btn:hover {
  border-color: var(--cyan); color: var(--gold); background: rgba(0,210,255,0.15);
}
#start-btn {
  font-family: var(--font-title); font-size: 1rem; letter-spacing: 0.5px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #7b2fff, #00d2ff);
  border: none; border-radius: var(--radius); color: #fff; cursor: pointer;
  transition: all 0.15s; box-shadow: 0 4px 16px rgba(123,47,255,0.5);
  touch-action: manipulation; white-space: nowrap;
}
#start-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,210,255,0.5); }
#start-btn:active { transform: scale(0.97); }

/* ── CANVAS WRAP ─────────────────────────────────────────────── */
#canvas-wrap {
  position: relative; width: 100%; max-width: 820px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 32px rgba(0,210,255,0.2), var(--shadow-lg);
  cursor: pointer;
}
#game-canvas {
  display: block; width: 100%; height: auto; background: var(--sky);
  touch-action: manipulation; user-select: none;
}

/* phase banner */
#phase-banner {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-title); font-size: 1.2rem; letter-spacing: 1px;
  padding: 6px 24px; border-radius: 20px;
  pointer-events: none; z-index: 15; opacity: 0; transition: opacity 0.3s;
  white-space: nowrap;
}
#phase-banner.visible { opacity: 1; }
#phase-banner.run { background: rgba(123,47,255,0.9); color: #fff; box-shadow: 0 4px 16px rgba(123,47,255,0.5); }
#phase-banner.fish { background: rgba(0,150,200,0.92); color: #fff; box-shadow: 0 4px 16px rgba(0,150,200,0.5); }

/* score flash */
#score-flash {
  position: absolute; left: 50%; top: 28%; transform: translateX(-50%);
  font-family: var(--font-title); font-size: 2.2rem; pointer-events: none;
  opacity: 0; z-index: 20; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#score-flash.show { animation: flash-up 1.2s ease-out forwards; }
@keyframes flash-up {
  0%   { opacity: 1; transform: translateX(-50%) scale(0.8); }
  20%  { opacity: 1; transform: translateX(-50%) scale(1.12); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-36px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-72px) scale(0.9); }
}

/* ── ACTION BUTTONS ───────────────────────────────────────────── */
#action-bar { display: flex; gap: 10px; width: 100%; max-width: 820px; }
.action-btn {
  flex: 1; font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 0.5px;
  padding: 14px; border-radius: var(--radius-lg); border: none; cursor: pointer;
  transition: all 0.12s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#jump-btn { background: linear-gradient(135deg, #7b2fff, #b47eff); color: #fff; }
#jump-btn:active { transform: scale(0.97); }
#duck-btn { background: linear-gradient(135deg, #0a3d62, #00d2ff); color: #fff; }
#duck-btn:active { transform: scale(0.97); }
#strike-btn { background: linear-gradient(135deg, #ff4757, #ff6b81); color: #fff; display: none; }
#strike-btn.visible { display: flex; align-items: center; justify-content: center; }
#strike-btn:active { transform: scale(0.97); }
.action-btn:disabled { background: #1a2a3a; cursor: default; transform: none; box-shadow: none; }

/* ── OVERLAY ─────────────────────────────────────────────────── */
#overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 28px;
  background: rgba(6,13,26,0.94); backdrop-filter: blur(10px);
  transition: opacity 0.35s; z-index: 30;
  border-radius: calc(var(--radius-lg) - 3px);
}
#overlay.hidden { opacity: 0; pointer-events: none; }
.overlay-icon {
  font-size: 5rem; animation: bounce-icon 1.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(0,210,255,0.5));
}
@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
.overlay-title {
  font-family: var(--font-title); font-size: 2.5rem; letter-spacing: 2px;
  color: var(--cyan); text-align: center;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 30px rgba(0,210,255,0.4);
}
.overlay-sub {
  color: var(--cyan-lt); font-size: 1.05rem; font-weight: 700;
  text-align: center; max-width: 420px; line-height: 1.65;
}
.overlay-btn {
  font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 1px;
  padding: 14px 52px;
  background: linear-gradient(135deg, #7b2fff, #00d2ff);
  border: none; border-radius: var(--radius-lg); color: #fff; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 6px 24px rgba(123,47,255,0.45);
  touch-action: manipulation;
}
.overlay-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,210,255,0.5); }
.overlay-btn:active { transform: scale(0.97); }

/* ── ABOUT / LEGAL ───────────────────────────────────────────── */
.page-hero {
  position: relative; z-index: 1; padding: 56px 36px 44px;
  background: linear-gradient(180deg, #060d1a 0%, rgba(6,13,26,0.85) 100%);
  border-bottom: 3px solid var(--cyan);
}
.page-hero h1 {
  font-family: var(--font-title); font-size: 2.6rem; letter-spacing: 1px;
  color: var(--cyan); margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.page-hero .hero-icon {
  font-size: 3.5rem; margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,210,255,0.4));
}
.page-hero p {
  font-size: 1.05rem; font-weight: 600; color: var(--cyan-lt);
  max-width: 640px; line-height: 1.7;
}

.content-section {
  position: relative; z-index: 1; padding: 52px 36px;
  max-width: 960px; margin: 0 auto;
}
.content-section + .content-section { border-top: 2px solid rgba(0,210,255,0.15); }
.section-heading {
  font-family: var(--font-title); font-size: 1.7rem; letter-spacing: 1px;
  color: var(--cyan); margin-bottom: 22px; display: flex; align-items: center;
  gap: 14px; text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.section-heading::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent); border-radius: 1px;
}

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: rgba(10,30,55,0.92); border: 2px solid rgba(0,210,255,0.2);
  border-radius: var(--radius-lg); padding: 22px; border-left: 4px solid var(--cyan);
  transition: all 0.2s; box-shadow: var(--shadow);
}
.info-card:hover { border-color: var(--cyan-lt); transform: translateY(-2px); }
.info-card h3 { font-family: var(--font-title); font-size: 1.05rem; color: var(--cyan); margin-bottom: 10px; }
.info-card p, .info-card li { color: var(--text); font-size: 0.95rem; line-height: 1.75; font-weight: 600; }
.info-card ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.info-card li::before { content: '🌊 '; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 16px; background: rgba(10,30,55,0.88);
  border-radius: var(--radius); padding: 16px; border-left: 4px solid var(--purple);
  box-shadow: var(--shadow);
}
.step-num { font-family: var(--font-title); font-size: 2rem; color: var(--purple); flex-shrink: 0; line-height: 1; }
.step-body h4 { font-family: var(--font-title); font-size: 1rem; color: var(--cyan-lt); margin-bottom: 4px; }
.step-body p { color: var(--text); font-size: 0.95rem; line-height: 1.65; font-weight: 600; }

.controls-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.key {
  background: rgba(0,210,255,0.1); border: 2px solid rgba(0,210,255,0.3);
  border-radius: 8px; padding: 4px 12px; font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 800; color: var(--cyan); white-space: nowrap;
}
.key-desc { color: var(--text); font-size: 0.92rem; font-weight: 600; }

.legal-content { position: relative; z-index: 1; padding: 48px 36px; max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-family: var(--font-title); font-size: 1.15rem; color: var(--cyan); margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--text); font-size: 0.95rem; line-height: 1.8; font-weight: 600; margin-bottom: 10px;
}
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.highlight {
  background: rgba(0,210,255,0.08); border-left: 4px solid var(--cyan);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0;
}
.legal-divider { height: 2px; background: rgba(0,210,255,0.15); margin: 28px 0; border-radius: 1px; }
.last-updated { font-size: 0.82rem; color: var(--text-dim); font-style: italic; margin-bottom: 28px; }

.contact-row { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-card {
  flex: 1; min-width: 180px; background: rgba(10,30,55,0.92);
  border: 2px solid rgba(0,210,255,0.2); border-radius: var(--radius-lg);
  padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
}
.contact-card .label { font-size: 0.62rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); }
.contact-card a, .contact-card p {
  color: var(--cyan); font-size: 0.9rem; font-weight: 700;
  text-decoration: none; transition: color 0.2s; word-break: break-all;
}
.contact-card a:hover { color: var(--gold); }

footer {
  position: relative; z-index: 1; background: #060d1a;
  border-top: 3px solid var(--cyan); padding: 18px 36px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-left { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; color: var(--cyan-lt); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; font-weight: 700; color: var(--cyan-lt); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 10px 16px; }
  .logo { font-size: 1.35rem; }
  nav { gap: 14px; }
  #game-section { padding: 12px 8px 40px; gap: 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .content-section { padding: 40px 16px; }
  .page-hero { padding: 36px 20px 28px; }
  .page-hero h1 { font-size: 2rem; }
  .legal-content { padding: 36px 20px; }
  footer { padding: 14px 20px; }
}
@media (max-width: 480px) {
  header { padding: 8px 12px; }
  .logo { font-size: 1.1rem; }
  nav a { display: none; }
  nav a.always { display: block; }
  #hud { flex-wrap: wrap; }
  .hud-cell { min-width: calc(33% - 2px); padding: 7px 4px; }
  .hud-value { font-size: 1.2rem; }
  #hud-controls { width: 100%; justify-content: center; border-left: none; border-top: 2px solid rgba(0,210,255,0.2); padding: 8px; }
  .overlay-title { font-size: 2rem; }
  .overlay-sub { font-size: 0.88rem; }
  .overlay-btn { padding: 12px 32px; }
  .overlay-icon { font-size: 3.5rem; }
  #lang-dropdown { right: auto; left: 0; }
  footer { flex-direction: column; text-align: center; }
}
@media (hover: none) {
  .info-card:hover, .step:hover { transform: none; }
  .overlay-btn:hover, #start-btn:hover { transform: none; }
  .overlay-btn:active, #start-btn:active { transform: scale(0.97); }
  .action-btn:hover { transform: none; }
}
