/* ============================================================
   LURE LEGEND AU — app.css
   ============================================================ */

:root {
  --ll-void: #12131A;
  --ll-surface: #1E202B;
  --ll-panel: #262938;
  --ll-neon: #39FF14;
  --ll-neon-glow: rgba(57, 255, 20, 0.25);
  --ll-text: #F3F4F6;
  --ll-muted: #9CA3AF;
  --ll-dim: #4B5563;
  --ll-red: #EF4444;
  --ll-orange: #F59E0B;
  --ll-radius-sm: 4px;
  --ll-radius-lg: 8px;
  --ll-font-title: 'Outfit', sans-serif;
  --ll-font-code: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--ll-void);
  color: var(--ll-text);
  font-family: var(--ll-font-title);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* NAVBAR */
.ll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--ll-surface);
  border-bottom: 2px solid var(--ll-neon);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ll-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ll-neon);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ll-nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ll-nav-link {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ll-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--ll-radius-sm);
  transition: all 0.15s;
}

.ll-nav-link:hover, .ll-nav-link.active {
  color: var(--ll-neon);
  background: rgba(57, 255, 20, 0.08);
}

.ll-lang-wrap {
  position: relative;
}

.ll-lang-btn {
  font-family: var(--ll-font-title);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: var(--ll-radius-sm);
  color: var(--ll-neon);
  cursor: pointer;
}

.ll-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: var(--ll-surface);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: var(--ll-radius-sm);
  z-index: 200;
  min-width: 130px;
}

.ll-lang-dropdown.open {
  display: block;
}

.ll-lang-opt {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--ll-muted);
  cursor: pointer;
}

.ll-lang-opt:hover {
  background: rgba(57, 255, 20, 0.08);
  color: var(--ll-neon);
}

.ll-lang-opt.selected {
  color: var(--ll-neon);
  font-weight: 700;
}

/* HUD PANEL */
#hud {
  display: flex;
  width: 100%;
  max-width: 820px;
  background: var(--ll-surface);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--ll-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hud-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

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

.hud-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ll-dim);
}

.hud-value {
  font-family: var(--ll-font-code);
  font-size: 1.15rem;
  color: var(--ll-neon);
  font-weight: 700;
}

#hud-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.diff-btn {
  font-family: var(--ll-font-title);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 4px;
  color: var(--ll-muted);
  cursor: pointer;
}

.diff-btn.active, .diff-btn:hover {
  border-color: var(--ll-neon);
  color: var(--ll-neon);
  background: rgba(57, 255, 20, 0.05);
}

#start-btn {
  font-family: var(--ll-font-title);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
  background: var(--ll-neon);
  border: none;
  border-radius: var(--ll-radius-sm);
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 10px var(--ll-neon-glow);
}

#start-btn:hover {
  filter: brightness(1.1);
}

/* GAME CANVAS SECTION */
#game-section {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 10px;
}

#canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  border-radius: var(--ll-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
}

#game-canvas {
  display: block;
  width: 100%;
  background: #090a0f;
}

#phase-label {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--ll-radius-sm);
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(18, 19, 26, 0.9);
  border: 1px solid var(--ll-neon);
  color: var(--ll-neon);
}

#phase-label.visible {
  opacity: 1;
}

#phase-label.bite {
  background: var(--ll-red);
  border-color: #FF6666;
  color: #FFF;
  animation: llBitePulse 0.4s ease infinite alternate;
}

@keyframes llBitePulse {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-50%) scale(1.04); }
}

#score-flash {
  position: absolute;
  left: 50%; top: 25%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
}

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

@keyframes llFlash {
  0% { opacity: 1; transform: translateX(-50%) scale(0.9); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-50px); }
}

/* TENSION METER */
#tension-wrap {
  width: 100%;
  max-width: 820px;
  background: rgba(18, 19, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  height: 10px;
  display: none;
}

#tension-wrap.visible {
  display: block;
}

#tension-fill {
  height: 100%;
  width: 0;
  transition: width 0.08s linear;
}

#tension-fill.ok {
  background: var(--ll-neon);
}

#tension-fill.warn {
  background: var(--ll-orange);
}

#tension-fill.snap {
  background: var(--ll-red);
}

/* CAUGHT GRID */
#catch-display {
  width: 100%;
  max-width: 820px;
  background: var(--ll-surface);
  border: 1px solid rgba(57, 255, 20, 0.1);
  border-radius: var(--ll-radius-lg);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.catch-label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ll-dim);
}

#caught-fish {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fish-icon {
  font-size: 1.2rem;
}

/* OVERLAY SCREEN */
#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(18, 19, 26, 0.95);
  z-index: 30;
  border-radius: var(--ll-radius-lg);
  transition: opacity 0.25s;
}

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

.overlay-icon {
  font-size: 3.5rem;
  animation: llFloat 3s ease-in-out infinite;
}

@keyframes llFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.overlay-title {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--ll-neon);
}

.overlay-sub {
  color: var(--ll-muted);
  font-size: 0.85rem;
  text-align: center;
  max-width: 440px;
  line-height: 1.5;
}

.fish-showcase {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.fish-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  color: var(--ll-dim);
}

.overlay-btn {
  font-family: var(--ll-font-title);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 32px;
  background: var(--ll-neon);
  border: none;
  border-radius: var(--ll-radius-sm);
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 10px var(--ll-neon-glow);
}

/* DETAILS & POLICY CARDS */
.info-main {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  position: relative;
  z-index: 10;
}

.content-card {
  background: var(--ll-surface);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--ll-radius-lg);
  padding: 24px;
}

.content-card h1 {
  font-size: 1.6rem;
  color: var(--ll-neon);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.content-card h2 {
  font-size: 1.1rem;
  color: var(--ll-neon);
  margin: 20px 0 8px;
}

.content-card p, .content-card li {
  font-size: 0.85rem;
  color: var(--ll-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.content-card ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.contact-card.wide {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--ll-radius-sm);
  padding: 12px;
  margin-top: 20px;
}

.contact-card.wide span {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ll-dim);
  text-transform: uppercase;
  display: block;
}

.contact-card.wide p {
  margin: 0;
  color: var(--ll-neon);
}

.contact-card a {
  color: var(--ll-neon);
  text-decoration: none;
}

/* FOOTER */
.ll-footer {
  margin-top: auto;
  background: var(--ll-surface);
  border-top: 1.5px solid rgba(57, 255, 20, 0.2);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 10;
}

.footer-left {
  font-size: 0.75rem;
  color: var(--ll-dim);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--ll-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ll-neon);
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .ll-header { padding: 12px 16px; }
  .info-main { padding: 16px 12px; }
}

@media(max-width: 480px) {
  .ll-nav-link { display: none; }
  .ll-nav-link.always { display: block; }
  #hud { flex-wrap: wrap; }
  .hud-cell { min-width: 33%; padding: 6px 2px; }
  #hud-controls { width: 100%; justify-content: center; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 8px; }
}
