/* ============================================================
   ICE FISHING FRENZY
   style.css | Bright Winter / Cartoon Arctic Aesthetic
   ============================================================ */

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

:root {
  --sky-dk:    #1f2c24;
  --sky-lt:    #4f775b;
  --ice:       #eefce9;
  --ice-dk:    #c8dfc0;
  --ice-shine: #fbfff9;
  --water:     #365d4a;
  --water-lt:  #83b693;
  --snow:      #f9fff7;
  --white:     #ffffff;
  --penguin:   #233127;
  --red:       #d96b5f;
  --orange:    #ffb967;
  --gold:      #ffe07a;
  --purple:    #a2a8ff;
  --green:     #80d977;
  --bear:      #d8c9ad;
  --text:      #243b2d;
  --text-lt:   #6f8a78;
  --text-white:#f9fff7;
  --radius:    18px;
  --radius-lg: 28px;
  --shadow:    0 4px 20px rgba(10,50,120,0.2);
  --shadow-lg: 0 8px 40px rgba(10,50,120,0.3);
  --font-title:'Baloo 2', cursive;
  --font-body: 'Montserrat', sans-serif;
}

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

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

/* snowflake background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,106,170,0.3) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── HEADER ─────────────────────────────────────────────────── */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 36px;
  background: linear-gradient(180deg, rgba(10,42,106,0.98) 0%, rgba(26,106,170,0.9) 100%);
  border-bottom: 3px solid var(--ice-dk);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 20px rgba(10,42,106,0.6);
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem; letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 20px rgba(200,240,255,0.3);
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { font-size: 1.4rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

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

/* ── LANG SWITCHER ───────────────────────────────────────────── */
#lang-switcher { position: relative; display: flex; align-items: center; }

#lang-btn {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  padding: 6px 12px; background: rgba(200,240,255,0.15);
  border: 2px solid rgba(200,240,255,0.35); border-radius: var(--radius);
  color: var(--white); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
#lang-btn:hover { background: rgba(200,240,255,0.28); border-color: var(--ice); }
#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(--sky-dk); border: 2px solid var(--ice-dk);
  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(--ice-dk); cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid rgba(200,240,255,0.1);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover  { background: rgba(200,240,255,0.15); color: var(--white); }
.lang-option.active { color: var(--white); background: rgba(200,240,255,0.12); }
.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: 20px 16px 48px; gap: 14px;
}

/* ── HUD ─────────────────────────────────────────────────────── */
#hud {
  display: flex; align-items: stretch;
  width: 100%; max-width: 820px;
  background: rgba(10,42,106,0.9);
  border: 2px solid var(--ice-dk);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hud-cell {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; padding: 10px 8px;
  border-right: 1px solid rgba(200,240,255,0.15);
}
.hud-cell:last-child { border-right: none; }
.hud-label { font-family: var(--font-body); font-size: 0.55rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ice-dk); }
.hud-value { font-family: var(--font-title); font-size: 1.4rem; color: var(--white); line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

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

/* action bar */
#action-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border-left: 1px solid rgba(200,240,255,0.15);
}
.diff-btn {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.5px; padding: 5px 12px;
  background: rgba(200,240,255,0.1); border: 2px solid rgba(200,240,255,0.25);
  border-radius: 20px; color: var(--ice-dk); cursor: pointer; transition: all 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.diff-btn.active, .diff-btn:hover { background: rgba(200,240,255,0.25); color: var(--white); border-color: var(--ice); }

#start-btn {
  font-family: var(--font-title); font-size: 0.9rem; letter-spacing: 0.5px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #e84040, #ff6b6b);
  border: none; border-radius: var(--radius);
  color: var(--white); cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(232,64,64,0.4);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
#start-btn:hover { background: linear-gradient(135deg, #ff4444, #ff8888); transform: translateY(-1px); }
#start-btn:active { transform: scale(0.97); }

/* STRIKE button */
#strike-btn {
  font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 1px;
  width: 100%; max-width: 820px;
  padding: 14px;
  background: linear-gradient(135deg, #1a7aff, #4a9aff);
  border: 3px solid var(--ice);
  border-radius: var(--radius-lg);
  color: var(--white); cursor: pointer; transition: all 0.12s;
  box-shadow: 0 6px 20px rgba(26,122,255,0.4);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
#strike-btn:hover   { background: linear-gradient(135deg, #2288ff, #66aaff); transform: translateY(-2px); }
#strike-btn:active  { transform: scale(0.98); }
#strike-btn.reeling { background: linear-gradient(135deg, #888, #aaa); cursor: default; transform: none; }
#strike-btn.hidden-btn { display: none; }

/* ── CANVAS WRAP ─────────────────────────────────────────────── */
#canvas-wrap {
  position: relative; width: 100%; max-width: 820px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 3px solid var(--ice-dk);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(200,240,255,0.2);
}
#game-canvas {
  display: block; width: 100%; height: auto;
  background: var(--sky-dk); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

/* warning banner */
#warning-banner {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(232,64,64,0.92); color: var(--white);
  font-family: var(--font-title); font-size: 1rem; letter-spacing: 1px;
  padding: 6px 20px; border-radius: 20px;
  box-shadow: 0 4px 16px rgba(232,64,64,0.5);
  pointer-events: none; z-index: 15;
  opacity: 0; transition: opacity 0.3s;
}
#warning-banner.visible { opacity: 1; }

/* score flash */
#score-flash {
  position: absolute; left: 50%; top: 35%; transform: translateX(-50%);
  font-family: var(--font-title); font-size: 2rem;
  pointer-events: none; opacity: 0; z-index: 15; white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
#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.08); }
  100% { opacity:0; transform:translateX(-50%) translateY(-70px) scale(0.9); }
}

/* ── OVERLAY ─────────────────────────────────────────────────── */
#overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 28px;
  background: rgba(10,42,106,0.92); backdrop-filter: blur(8px);
  transition: opacity 0.35s; z-index: 20; border-radius: calc(var(--radius-lg) - 3px);
}
#overlay.hidden { opacity:0; pointer-events:none; }

.overlay-icon { font-size: 5rem; animation: bounce-icon 2s ease-in-out infinite; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
@keyframes bounce-icon { 0%,100%{transform:translateY(0);}50%{transform:translateY(-16px);} }

.overlay-title {
  font-family: var(--font-title); font-size: 2.2rem; letter-spacing: 2px;
  color: var(--white); text-align: center;
  text-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 30px rgba(200,240,255,0.3);
}
.overlay-sub { color: var(--ice-dk); font-size: 1rem; font-weight: 600; text-align: center; max-width: 400px; line-height: 1.65; }

.overlay-btn {
  font-family: var(--font-title); font-size: 1rem; letter-spacing: 1px;
  padding: 14px 48px; background: linear-gradient(135deg, #e84040, #ff6b6b);
  border: none; border-radius: var(--radius-lg);
  color: var(--white); cursor: pointer; transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(232,64,64,0.4);
  touch-action: manipulation;
}
.overlay-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,64,64,0.55); }
.overlay-btn:active { transform: scale(0.97); }

.legend { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.legend-item { display:flex; align-items:center; gap:6px; font-size:0.82rem; font-weight:700; color:var(--ice-dk); }
.legend-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }

/* ── ABOUT PAGE (about.html) ────────────────────────────────── */
#about-hero {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(10,42,106,0.95) 0%, rgba(26,90,160,0.8) 100%);
  padding: 60px 32px 48px;
  text-align: center;
  border-bottom: 3px solid var(--ice-dk);
}
#about-hero .hero-icon { font-size: 5rem; margin-bottom: 16px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4)); }
#about-hero h1 { font-family: var(--font-title); font-size: 2.8rem; color: var(--white); letter-spacing: 2px; margin-bottom: 12px; text-shadow: 0 4px 16px rgba(0,0,0,0.4); }
#about-hero p  { font-size: 1.1rem; color: var(--ice-dk); max-width: 600px; margin: 0 auto; line-height: 1.7; font-weight: 600; }

/* ── CONTENT SECTIONS ─────────────────────────────────────────── */
.content-section { position: relative; z-index: 1; padding: 60px 32px; max-width: 960px; margin: 0 auto; }
.content-section + .content-section { border-top: 2px solid rgba(200,240,255,0.12); }

.section-heading {
  font-family: var(--font-title); font-size: 1.8rem; color: var(--ice);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.section-heading::after { content:''; flex:1; height:2px; background:linear-gradient(90deg, var(--ice-dk), transparent); border-radius:1px; }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.info-card {
  background: rgba(10,42,106,0.7); border: 2px solid rgba(200,240,255,0.2);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover { border-color: var(--ice-dk); transform: translateY(-2px); }
.info-card h3 { font-family: var(--font-title); font-size: 1.1rem; color: var(--ice); margin-bottom: 12px; }
.info-card p, .info-card li { color: var(--ice-dk); 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: 6px; }
.info-card li::before { content: '❄ '; color: var(--ice); }

/* gameplay steps */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: rgba(10,42,106,0.5); border-radius: var(--radius); padding: 16px; border-left: 4px solid var(--ice-dk); }
.step-num { font-family: var(--font-title); font-size: 1.8rem; color: var(--ice); flex-shrink: 0; line-height: 1; }
.step-body h4 { font-family: var(--font-title); font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.step-body p  { color: var(--ice-dk); font-size: 0.92rem; line-height: 1.65; font-weight: 600; }

/* fish showcase */
.fish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fish-card {
  background: rgba(10,42,106,0.7); border: 2px solid rgba(200,240,255,0.15);
  border-radius: var(--radius-lg); padding: 16px; text-align: center;
  transition: all 0.2s;
}
.fish-card:hover { border-color: var(--ice-dk); transform: translateY(-3px); }
.fish-card .fish-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.fish-card h4 { font-family: var(--font-title); font-size: 0.9rem; color: var(--ice); margin-bottom: 4px; }
.fish-card .pts { font-family: var(--font-title); font-size: 1.2rem; color: var(--gold); }
.fish-card p { font-size: 0.78rem; color: var(--text-lt); margin-top: 4px; }

/* controls table */
.controls-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; }
.key { background: rgba(200,240,255,0.12); border: 2px solid rgba(200,240,255,0.25); border-radius: 8px; padding: 5px 12px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 800; color: var(--ice); white-space: nowrap; }
.key-desc { color: var(--ice-dk); font-size: 0.92rem; font-weight: 600; }

/* ── LEGAL PAGES ─────────────────────────────────────────────── */
.legal-hero {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(10,42,106,0.95) 0%, rgba(26,90,160,0.8) 100%);
  padding: 48px 32px 36px;
  border-bottom: 3px solid var(--ice-dk);
}
.legal-hero h1 { font-family: var(--font-title); font-size: 2.2rem; color: var(--white); letter-spacing: 2px; margin-bottom: 8px; }
.legal-hero p  { font-size: 0.9rem; color: var(--ice-dk); font-weight: 600; }

.legal-content { position: relative; z-index: 1; padding: 48px 32px; max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-family: var(--font-title); font-size: 1.3rem; color: var(--ice); margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ice-dk); font-size: 0.95rem; line-height: 1.8; font-weight: 600; margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 6px; }
.legal-content .last-updated { font-size: 0.82rem; color: var(--text-lt); font-style: italic; margin-bottom: 32px; }
.legal-divider { height: 2px; background: linear-gradient(90deg, var(--ice-dk), transparent); border-radius: 1px; margin: 28px 0; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-row { display:flex; gap:14px; flex-wrap:wrap; }
.contact-card { flex:1; min-width:180px; background:rgba(10,42,106,0.7); border:2px solid rgba(200,240,255,0.15); border-radius:var(--radius-lg); padding:18px 22px; display:flex; flex-direction:column; gap:6px; }
.contact-card .label { font-size:0.62rem; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:var(--ice-dk); }
.contact-card a, .contact-card p { color:var(--ice); font-size:0.9rem; font-weight:700; text-decoration:none; transition:color 0.2s; word-break:break-all; }
.contact-card a:hover { color:var(--white); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  background: rgba(10,42,106,0.9); border-top: 2px solid rgba(200,240,255,0.15);
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-left  { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; color: var(--ice-dk); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; font-weight: 700; color: var(--ice-dk); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  header { padding:10px 16px; } .logo { font-size:1.15rem; } nav { gap:14px; }
  #game-section { padding:12px 8px 40px; gap:10px; }
  .card-grid { grid-template-columns:1fr; }
  .fish-grid { grid-template-columns:repeat(2,1fr); }
  .content-section { padding:40px 16px; }
  #about-hero { padding:40px 20px 32px; } #about-hero h1 { font-size:2.2rem; }
  .legal-hero { padding:32px 20px 24px; } .legal-content { padding:32px 20px; }
  footer { padding:16px 20px; }
}
@media (max-width: 480px) {
  header { padding:8px 12px; } .logo { font-size:0.95rem; }
  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.15rem; }
  #action-bar { width:100%; justify-content:center; border-left:none; border-top:1px solid rgba(200,240,255,0.1); padding:8px; }
  .overlay-title { font-size:1.7rem; } .overlay-sub { font-size:0.88rem; }
  .overlay-btn { padding:12px 28px; } .overlay-icon { font-size:3.5rem; }
  .fish-grid { grid-template-columns:repeat(2,1fr); }
  .controls-grid { grid-template-columns:1fr; gap:5px; }
  #lang-dropdown { right:auto; left:0; }
  footer { flex-direction:column; text-align:center; }
}
@media (hover:none) {
  nav a:hover, .info-card:hover { transform:none; color:inherit; }
  .overlay-btn:hover { transform:none; }
  .overlay-btn:active { transform:scale(0.97); }
  #strike-btn:hover { transform:none; }
  #strike-btn:active { transform:scale(0.98); }
}

header{padding:18px 36px;} nav{gap:22px;} #hud{padding:13px;} .logo{letter-spacing:1.3px;}