/* ============================================================
   FIN DODGER AU — style-tropical.css
   Tropical Coral Reef · Deep Teal & Neon Coral Pink
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --fd-bg: #0A2A30;
  --fd-surface: #113F47;
  --fd-panel: #1A545F;
  --fd-coral: #FF6B6B;
  --fd-coral-glow: rgba(255, 107, 107, 0.4);
  --fd-turquoise: #14B8A6;
  --fd-turquoise-glow: rgba(20, 184, 166, 0.35);
  --fd-green: #10B981;
  --fd-text: #E0F2FE;
  --fd-muted: #94A3B8;
  --fd-border: rgba(20, 184, 166, 0.2);
  --fd-radius: 12px;
  --fd-radius-lg: 24px;
  --fd-font-title: 'Montserrat', sans-serif;
  --fd-font-body: 'Nunito', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--fd-bg);
  color: var(--fd-text);
  font-family: var(--fd-font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* HEADER */
.fd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--fd-surface);
  border-bottom: 2px solid var(--fd-turquoise);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.fd-logo {
  font-family: var(--fd-font-title);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--fd-coral);
  text-shadow: 0 0 12px var(--fd-coral-glow);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fd-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fd-menu a {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--fd-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--fd-radius);
  transition: all 0.2s;
}

.fd-menu a:hover, .fd-menu a.active {
  color: var(--fd-coral);
  background: rgba(255, 107, 107, 0.08);
}

.fd-lang-btn {
  font-family: var(--fd-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  color: var(--fd-turquoise);
  cursor: pointer;
}

.fd-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: var(--fd-surface);
  border: 1px solid var(--fd-turquoise);
  border-radius: var(--fd-radius);
  z-index: 200;
  min-width: 120px;
}

.fd-dropdown.open {
  display: block;
}

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

.fd-opt:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--fd-coral);
}

/* HUD */
#hud {
  display: flex;
  width: 100%;
  max-width: 860px;
  background: var(--fd-surface);
  border: 2px solid var(--fd-border);
  border-radius: var(--fd-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: 10px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.hud-value {
  font-family: var(--fd-font-title);
  font-size: 1.3rem;
  color: var(--fd-turquoise);
  line-height: 1;
}

#lives-display {
  display: flex;
  gap: 2px;
  font-size: 1.1rem;
}

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

.diff-btn {
  font-family: var(--fd-font-body);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--fd-border);
  border-radius: 20px;
  color: var(--fd-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.diff-btn.active, .diff-btn:hover {
  border-color: var(--fd-coral);
  color: var(--fd-coral);
  background: rgba(255, 107, 107, 0.08);
}

#start-btn {
  font-family: var(--fd-font-title);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  background: var(--fd-coral);
  border: none;
  border-radius: var(--fd-radius);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px var(--fd-coral-glow);
}

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

#canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: var(--fd-radius-lg);
  overflow: hidden;
  border: 2px solid var(--fd-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  cursor: none;
}

#game-canvas {
  display: block;
  width: 100%;
  background: #061F24;
}

#depth-counter {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--fd-font-title);
  font-size: 1.1rem;
  color: var(--fd-coral);
  text-shadow: 0 0 8px var(--fd-coral-glow);
  z-index: 12;
}

#score-flash {
  position: absolute;
  left: 50%;
  top: 25%;
  transform: translateX(-50%);
  font-family: var(--fd-font-title);
  font-size: 2.2rem;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  text-shadow: 0 0 15px currentColor;
}

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

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

#shield-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  border: 3px solid var(--fd-green);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.15);
}

#shield-overlay.active {
  opacity: 1;
}

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

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

.overlay-icon {
  font-size: 4.5rem;
  animation: fdFloat 2.5s ease-in-out infinite;
}

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

.overlay-title {
  font-family: var(--fd-font-title);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--fd-coral);
  text-shadow: 0 0 15px var(--fd-coral-glow);
}

.overlay-sub {
  color: var(--fd-muted);
  font-size: 0.9rem;
  text-align: center;
  max-width: 420px;
  line-height: 1.6;
}

.overlay-btn {
  font-family: var(--fd-font-title);
  font-size: 1rem;
  font-weight: 800;
  padding: 10px 36px;
  background: var(--fd-coral);
  border: none;
  border-radius: var(--fd-radius-lg);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px var(--fd-coral-glow);
}

.overlay-btn:hover {
  transform: translateY(-2px);
}

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

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--fd-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* HERO SECTION FOR PAGES */
.page-hero {
  padding: 48px 24px;
  background: linear-gradient(180deg, var(--fd-surface) 0%, var(--fd-bg) 100%);
  border-bottom: 2px solid var(--fd-turquoise);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--fd-font-title);
  font-size: 2.2rem;
  color: var(--fd-coral);
  text-shadow: 0 0 10px var(--fd-coral-glow);
}

.page-hero p {
  font-size: 0.95rem;
  color: var(--fd-muted);
  max-width: 600px;
  margin: 10px auto 0;
}

/* CONTENT CONTAINER */
.info-main {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  position: relative;
  z-index: 10;
}

.content-card {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-lg);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-card h2 {
  font-family: var(--fd-font-title);
  font-size: 1.3rem;
  color: var(--fd-coral);
  margin-bottom: 12px;
}

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

.content-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* CONTACT ROW */
.home-contact {
  padding: 28px 16px;
  max-width: 860px;
  margin: 0 auto;
}

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

.contact-card {
  flex: 1;
  min-width: 240px;
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  padding: 16px;
}

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

.contact-card p, .contact-card a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fd-text);
  text-decoration: none;
}

/* FOOTER */
.fd-footer {
  margin-top: auto;
  background: var(--fd-surface);
  border-top: 2px solid var(--fd-turquoise);
  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(--fd-muted);
}

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

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

.footer-links a:hover {
  color: var(--fd-coral);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .fd-header {
    padding: 12px 16px;
  }
}
