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

:root {
  --sky-dk:    #0a2a6a;
  --sky-lt:    #1a6aaa;
  --ice:       #c8f0ff;
  --ice-dk:    #a0d8f0;
  --ice-shine: #e8f8ff;
  --water:     #1a5a9a;
  --water-lt:  #4a9acc;
  --snow:      #f0f8ff;
  --white:     #ffffff;
  --penguin:   #1a1a2e;
  --red:       #e84040;
  --orange:    #f5a623;
  --gold:      #ffd700;
  --purple:    #a855f7;
  --green:     #2ecc71;
  --bear:      #d4c4a0;
  --text:      #1a3a5a;
  --text-lt:   #4a7a9a;
  --text-white:#f0f8ff;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 20px rgba(10,50,120,0.2);
  --shadow-lg: 0 8px 40px rgba(10,50,120,0.3);
  --font-title:'Fredoka One', cursive;
  --font-body: 'Nunito', sans-serif;
}

/* Arctic supply wheel */
body.wheel-open { overflow: hidden; }

.ice-wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 23, 55, 0.91);
  backdrop-filter: blur(9px);
  animation: iceWheelIn 0.24s ease-out;
}

.ice-wheel-modal.is-closing { opacity: 0; transition: opacity 0.2s ease; }

.ice-wheel-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px 30px 24px;
  border: 2px solid rgba(200, 240, 255, 0.55);
  border-radius: 8px;
  background: #0b3972;
  box-shadow: 0 24px 80px rgba(0, 8, 30, 0.6);
  color: var(--white);
}

.ice-wheel-header { text-align: center; }
.ice-wheel-header > span { color: var(--gold); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; }
.ice-wheel-header h2 { margin: 3px 0 5px; font-family: var(--font-title); font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0; }
.ice-wheel-header p { max-width: 620px; margin: 0 auto; color: var(--ice-dk); font-size: 0.88rem; }

.ice-wheel-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: center;
  margin-top: 20px;
}

.ice-wheel-stage { position: relative; display: grid; place-items: center; }
.ice-wheel {
  position: relative;
  width: min(340px, 74vw);
  aspect-ratio: 1;
  border: 9px solid #dff7ff;
  border-radius: 50%;
  background: conic-gradient(#ef5d60 0 60deg, #1ba8c7 60deg 120deg, #f6c344 120deg 180deg, #7656b7 180deg 240deg, #2ebc8b 240deg 300deg, #e47e35 300deg 360deg);
  box-shadow: 0 0 0 4px #4a9acc, 0 16px 38px rgba(0, 8, 30, 0.42);
  transition: transform 2.75s cubic-bezier(0.1, 0.62, 0.15, 1);
}

.ice-wheel > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  margin: -16px;
  place-items: center;
  transform: rotate(calc(var(--slot) * 60deg + 30deg)) translateY(-122px) rotate(calc(var(--slot) * -60deg - 30deg));
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #082b5a;
  color: #fff;
  font-weight: 900;
}

.ice-wheel-hub {
  position: absolute;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 6px solid #c8f0ff;
  border-radius: 50%;
  background: #0a2a6a;
  color: #fff;
  font: 900 1.25rem var(--font-title);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
}

.ice-wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -13px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid var(--gold);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.4));
}

.ice-supply-list { display: grid; gap: 8px; }
.ice-supply-list > div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(200, 240, 255, 0.18); }
.ice-supply-list b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 4px; background: var(--ice); color: var(--sky-dk); }
.ice-supply-list strong,
.ice-supply-list small { display: block; }
.ice-supply-list strong { color: #fff; font-size: 0.86rem; }
.ice-supply-list small { margin-top: 2px; color: var(--ice-dk); font-size: 0.7rem; line-height: 1.3; }

.ice-wheel-actions { display: grid; justify-items: center; gap: 10px; margin-top: 18px; text-align: center; }
.ice-wheel-open,
.ice-wheel-continue { min-height: 46px; padding: 10px 24px; border: 0; border-radius: 6px; background: var(--gold); color: #092759; cursor: pointer; font: 900 0.82rem var(--font-body); }
.ice-wheel-open:disabled { cursor: wait; opacity: 0.68; }
.ice-wheel-continue { background: var(--ice); }
.ice-wheel-result { min-height: 55px; }
.ice-wheel-result small,
.ice-wheel-result strong,
.ice-wheel-result span { display: block; }
.ice-wheel-result small { color: var(--ice-dk); font-size: 0.68rem; text-transform: uppercase; }
.ice-wheel-result strong { margin-top: 2px; color: var(--gold); font-size: 1.08rem; }
.ice-wheel-result span { margin-top: 2px; color: #fff; font-size: 0.76rem; }

@keyframes iceWheelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 740px) {
  .ice-wheel-modal { padding: 8px; }
  .ice-wheel-panel { max-height: calc(100vh - 16px); padding: 18px 14px; }
  .ice-wheel-header h2 { font-size: 2rem; }
  .ice-wheel-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 14px; }
  .ice-wheel { width: min(260px, 67vw); border-width: 7px; }
  .ice-wheel > span { transform: rotate(calc(var(--slot) * 60deg + 30deg)) translateY(-91px) rotate(calc(var(--slot) * -60deg - 30deg)); }
  .ice-wheel-hub { width: 68px; height: 68px; border-width: 4px; font-size: 1rem; }
  .ice-supply-list { grid-template-columns: 1fr 1fr; gap: 5px 10px; }
  .ice-supply-list > div { grid-template-columns: 26px 1fr; gap: 6px; padding-bottom: 5px; }
  .ice-supply-list b { width: 24px; height: 24px; }
  .ice-supply-list small { display: none; }
  .ice-supply-list strong { font-size: 0.68rem; }
}

*, *::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;
  display: flex;
  flex-direction: column;
}

/* 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: 1; flex-direction: column; align-items: center; justify-content: 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); }

.home-contact { position:relative; z-index:1; width:100%; max-width:820px; margin:0 auto 34px; padding:0 16px; }
.home-contact h2 { font-family:var(--font-title); font-size:1.25rem; color:var(--white); text-align:center; margin-bottom:12px; text-shadow:0 2px 12px rgba(0,60,120,0.35); }
.home-contact .contact-card { background:rgba(10,42,106,0.62); backdrop-filter:blur(4px); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1; margin-top: auto;
  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); }
}


/* Big Fishing Carnival theme and page layouts */
body.site-carnival {
  --sky-dk: #19394a;
  --sky-lt: #347e85;
  --ice: #e3f5dc;
  --ice-dk: #b7dfc3;
  --ice-shine: #f5fff3;
  --water: #1e7074;
  --water-lt: #58a9a2;
  --snow: #fff4e2;
  --white: #fffdf8;
  --penguin: #202a31;
  --red: #e86154;
  --orange: #f0a34c;
  --gold: #f6ca64;
  --purple: #9b72bd;
  --green: #58b87a;
  --bear: #c9aa83;
  --text: #244450;
  --text-lt: #6b9290;
  --text-white: #f8fff5;
  --font-title: "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Trebuchet MS", system-ui, sans-serif;
}

/* Shared responsive content pages; the original game area keeps its own interaction styling. */
a, a:hover, a:focus { text-decoration: none; }
header { border-bottom: 0; }
footer { border-top: 0; }
.section-heading::after { display: none; }
body.site-page header { border-bottom: 0; }
body.site-page footer { border-top: 0; }
body.site-page .content-section + .content-section { border-top: 0; }
body.site-page .section-heading::after { display: none; }
body.site-page .step-num { display: none; }
.site-page { min-height: 100vh; }
.site-page .page-hero { position: relative; z-index: 1; max-width: 1080px; margin: 26px auto 0; padding: clamp(30px,6vw,68px) clamp(20px,5vw,56px); border: 0; border-radius: var(--radius-lg); background: linear-gradient(135deg,rgba(10,42,106,.92),rgba(26,106,170,.68)); text-align: center; }
.site-page .page-hero h1 { margin: 8px 0 12px; color: var(--white); font: 700 clamp(2rem,5vw,3.25rem)/1.08 var(--font-title); }
.site-page .page-hero p { max-width: 760px; margin: 0 auto; color: var(--ice-dk); font-size: 1.02rem; line-height: 1.7; }
.site-page .page-kicker { color: var(--gold); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.site-page .page-content { position: relative; z-index: 1; width: min(1050px,100%); margin: 0 auto; padding: 34px clamp(18px,4vw,36px) 64px; }
.site-page .section-heading { margin: 0 0 18px; }
.site-page .info-card, .site-page .fish-card, .site-page .contact-card { border: 0; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.site-page .info-card p, .site-page .page-copy { color: var(--ice-dk); line-height: 1.75; }
.site-page .content-section { padding: 28px 18px; }
.site-page .content-section + .content-section { margin-top: 10px; }
.site-page .content-section ul { list-style: none; padding: 0; }
.site-page nav a[aria-current="page"] { color: var(--white); }
.page-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.page-card { padding: clamp(20px,3vw,30px); border-radius: var(--radius-lg); background: rgba(10,42,106,.68); box-shadow: var(--shadow); }
.page-card h2, .page-card h3 { margin: 0 0 10px; color: var(--ice); font-family: var(--font-title); }
.page-card p { margin: 0; color: var(--ice-dk); line-height: 1.75; }
.page-note { margin: 22px 0 0; padding: 18px 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,.09); color: var(--ice-shine); line-height: 1.7; }
.page-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.page-links a, .page-cta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--orange); color: #142d42; font-weight: 900; text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-card { min-width: 0; border-radius: var(--radius-lg); background: rgba(10,42,106,.65); }
.site-page .contact-card p { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.65; word-break: normal; overflow-wrap: anywhere; }
.legal-content { width: min(940px,100%); }
.legal-content h2 { margin-top: 0; }
.extra-hero { text-align: left !important; }
.extra-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap: 20px; align-items: start; }
.extra-card { min-height: 100%; }
body.site-carnival .extra-hero { background: linear-gradient(120deg,rgba(20,88,76,.95),rgba(176,99,54,.78)); border-radius: 38px 18px 38px 18px; }
body.site-carnival .extra-card { border-radius: 34px 18px 34px 18px; background: linear-gradient(145deg,rgba(26,88,75,.78),rgba(138,84,52,.48)); }
body.site-camp .extra-hero { background: linear-gradient(135deg,rgba(38,65,49,.96),rgba(139,91,43,.72)); text-align: center !important; }
body.site-camp .extra-layout { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
body.site-camp .extra-card { background: rgba(48,75,55,.82); border-radius: 22px; }
body.site-lagoon .extra-hero { background: linear-gradient(135deg,rgba(19,72,103,.94),rgba(42,143,143,.74)); border-radius: 22px 52px 22px 52px; }
body.site-lagoon .extra-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.site-lagoon .extra-card:last-child { grid-column: 1 / -1; }
body.site-lagoon .extra-card { background: rgba(18,83,103,.76); border-radius: 26px; }
body.site-power .extra-hero { background: linear-gradient(115deg,rgba(18,43,103,.96),rgba(33,116,186,.74)); }
body.site-power .extra-layout { grid-template-columns: 1fr 1fr; }
body.site-power .extra-card { border-radius: 12px 28px 12px 28px; background: rgba(16,52,117,.8); }
body.site-champions .extra-hero { background: linear-gradient(135deg,rgba(57,42,81,.97),rgba(135,81,93,.78)); border-radius: 24px; }
body.site-champions .extra-card { border-radius: 24px; background: linear-gradient(145deg,rgba(61,48,87,.88),rgba(103,65,79,.72)); box-shadow: 0 16px 34px rgba(0,0,0,.22); }
@media (max-width: 900px) { header { gap: 12px; } nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px; } }
@media (max-width: 650px) { header { flex-direction: column; align-items: center; padding: 12px; } nav { justify-content: center; gap: 10px 14px; } .site-page .page-hero { margin: 16px 12px 0; } .contact-grid, .page-grid, .extra-layout, body.site-lagoon .extra-layout, body.site-power .extra-layout { grid-template-columns: 1fr; } body.site-lagoon .extra-card:last-child { grid-column: auto; } }


/* Reference-style reward words and emojis on the rotating wheel sectors */
.ice-wheel > span,
.casting-wheel > span {
  width: 74px;
  height: 34px;
  margin: -17px -37px;
  padding: 0 4px;
  border-radius: 18px;
  font-size: 0.56rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
@media (max-width: 480px) {
  .ice-wheel > span, .casting-wheel > span { width: 62px; margin-right: -31px; margin-left: -31px; font-size: 0.47rem; }
}
@media (max-width: 360px) {
  .ice-wheel > span {
    width: 50px; margin-right: -25px; margin-left: -25px; font-size: 0.39rem;
    transform: rotate(calc(var(--slot) * 60deg + 30deg)) translateY(-76px) rotate(calc(var(--slot) * -60deg - 30deg));
  }
  .casting-wheel > span {
    width: 50px; margin-right: -25px; margin-left: -25px; font-size: 0.39rem;
    transform: rotate(calc(var(--slot) * 60deg + 30deg)) translateY(-78px) rotate(calc(var(--slot) * -60deg - 30deg));
  }
}
