/* ============================================================
   SUNSET CAST AU — style-sunset.css
   ============================================================ */

:root {
  --sc-bg: #2B1E22;
  --sc-card: #3D2C31;
  --sc-panel: #4E393F;
  --sc-coral: #FF7E67;
  --sc-gold: #FFAA00;
  --sc-text: #FFF5F7;
  --sc-muted: #D1C5C7;
  --sc-dim: #9C898C;
  --sc-radius: 24px;
  --sc-radius-sm: 12px;
  --sc-font-playful: 'Fredoka', cursive, sans-serif;
  --sc-font-body: 'Quicksand', sans-serif;
}

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

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

/* NAVBAR */
.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: var(--sc-card);
  border-bottom: 3px solid var(--sc-coral);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.sc-logo {
  font-family: var(--sc-font-playful);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sc-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-logo span {
  color: var(--sc-coral);
}

.sc-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sc-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sc-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--sc-radius);
  transition: all 0.2s;
}

.sc-link:hover, .sc-link.active {
  color: var(--sc-bg);
  background: var(--sc-gold);
}

.sc-lang {
  position: relative;
}

.sc-lang-btn {
  font-family: var(--sc-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(255, 126, 103, 0.15);
  border: 1px solid var(--sc-coral);
  border-radius: var(--sc-radius);
  color: var(--sc-coral);
  cursor: pointer;
}

.sc-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--sc-card);
  border: 1px solid var(--sc-coral);
  border-radius: var(--sc-radius-sm);
  z-index: 200;
  min-width: 130px;
  overflow: hidden;
}

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

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

.sc-opt:hover {
  background: rgba(255, 170, 0, 0.15);
  color: var(--sc-gold);
}

.sc-opt.selected {
  color: var(--sc-gold);
  font-weight: 700;
}

/* HUD */
#hud {
  display: flex;
  width: 100%;
  max-width: 820px;
  background: var(--sc-card);
  border: 2px solid var(--sc-coral);
  border-radius: var(--sc-radius);
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hud-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 126, 103, 0.1);
}

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

.hud-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sc-dim);
}

.hud-value {
  font-family: var(--sc-font-playful);
  font-size: 1.3rem;
  color: var(--sc-gold);
}

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

.diff-btn {
  font-family: var(--sc-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--sc-dim);
  border-radius: var(--sc-radius);
  color: var(--sc-muted);
  cursor: pointer;
}

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

#start-btn {
  font-family: var(--sc-font-playful);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--sc-coral), #FF5E4D);
  border: none;
  border-radius: var(--sc-radius);
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 126, 103, 0.3);
}

/* GAME STAGE */
#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: 820px;
  border-radius: var(--sc-radius);
  overflow: hidden;
  border: 2px solid var(--sc-coral);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

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

#phase-label {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--sc-font-playful);
  font-size: 1rem;
  padding: 6px 20px;
  border-radius: var(--sc-radius);
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.25s;
  background: var(--sc-card);
  border: 2px solid var(--sc-gold);
  color: var(--sc-gold);
}

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

#phase-label.bite {
  background: var(--sc-coral);
  border-color: #FFB3A6;
  color: #FFF;
  animation: scBitePulse 0.4s ease infinite alternate;
}

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

#score-flash {
  position: absolute;
  left: 50%; top: 25%;
  transform: translateX(-50%);
  font-family: var(--sc-font-playful);
  font-size: 2rem;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
}

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

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

/* TENSION */
#tension-wrap {
  width: 100%;
  max-width: 820px;
  background: rgba(43, 30, 34, 0.8);
  border: 1px solid var(--sc-dim);
  border-radius: var(--sc-radius-sm);
  overflow: hidden;
  height: 12px;
  display: none;
}

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

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

#tension-fill.ok {
  background: var(--sc-gold);
}

#tension-fill.warn {
  background: var(--sc-coral);
}

#tension-fill.snap {
  background: #FF3333;
}

/* CATCH LIST */
#catch-display {
  width: 100%;
  max-width: 820px;
  background: var(--sc-card);
  border: 1px solid rgba(255, 126, 103, 0.2);
  border-radius: var(--sc-radius);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

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

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

/* OVERLAY SCREEN */
#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(43, 30, 34, 0.96);
  z-index: 30;
  border-radius: var(--sc-radius);
  transition: opacity 0.3s;
}

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

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

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

.overlay-title {
  font-family: var(--sc-font-playful);
  font-size: 2.2rem;
  color: var(--sc-gold);
}

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

.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.7rem;
  color: var(--sc-dim);
}

.overlay-btn {
  font-family: var(--sc-font-playful);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 38px;
  background: linear-gradient(135deg, var(--sc-coral), #FF5E4D);
  border: none;
  border-radius: var(--sc-radius);
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 126, 103, 0.3);
}

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

.content-card {
  background: var(--sc-card);
  border: 1px solid rgba(255, 126, 103, 0.2);
  border-radius: var(--sc-radius);
  padding: 28px;
}

.content-card h1 {
  font-family: var(--sc-font-playful);
  font-size: 1.8rem;
  color: var(--sc-gold);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.content-card h2 {
  font-family: var(--sc-font-playful);
  font-size: 1.2rem;
  color: var(--sc-coral);
  margin: 24px 0 8px;
}

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

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

.contact-card.wide {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--sc-coral);
  border-radius: var(--sc-radius-sm);
  padding: 16px;
  margin-top: 24px;
}

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

.contact-card.wide p {
  margin: 0;
  color: var(--sc-gold);
  font-family: var(--sc-font-playful);
}

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

/* FOOTER */
.sc-footer {
  margin-top: auto;
  background: var(--sc-card);
  border-top: 3px solid var(--sc-coral);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 10;
}

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

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

.footer-links a {
  font-size: 0.8rem;
  color: var(--sc-muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--sc-gold);
}

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

@media(max-width: 480px) {
  .sc-link { display: none; }
  .sc-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, 126, 103, 0.1); padding: 8px; }
}
