/* demo/style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0a1a;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Screens */
.screen { display: none; flex-direction: column; min-height: 100vh; }
.screen.active { display: flex; }

/* Intro Screen */
.intro-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #0a0a1a, #0d1b2a);
}
.intro-screen h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.intro-screen h1 span { color: #0ff; }
.intro-screen .tagline { color: #8af; font-size: 16px; margin-bottom: 32px; line-height: 1.4; }
.intro-screen .instructions { color: #668; font-size: 13px; line-height: 1.8; margin-bottom: 32px; max-width: 320px; }

/* Buttons */
.btn-primary {
  padding: 16px 40px;
  background: linear-gradient(135deg, #0ff, #00a);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.1s;
}
.btn-primary:active { transform: scale(0.96); }
.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  border: 2px solid #0ff;
  border-radius: 12px;
  color: #0ff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Game Screen */
.game-screen { padding: 0; }

/* TV Frame */
.tv-frame {
  margin: 8px 12px 0;
  border: 3px solid #333;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.3);
}
.tv-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  color: #444;
  z-index: 1;
  letter-spacing: 1px;
}

/* Top bar */
.game-header {
  background: #16213e;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.game-header .brand { font-weight: bold; color: #0ff; }
.game-header .round-info { color: #aaa; }

/* Fish display area */
.fish-display {
  background: #0d1b2a;
  padding: 24px 16px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.fish-image-container {
  width: 160px;
  height: 160px;
  margin: 0 auto 8px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1520;
}
.fish-name { font-size: 22px; color: #0ff; font-weight: bold; margin-bottom: 4px; }
.fish-scientific { font-size: 12px; color: #556; font-style: italic; margin-bottom: 8px; }
.fish-fact { font-size: 13px; color: #aaa; line-height: 1.4; max-width: 300px; }
.fish-hidden-name { font-size: 22px; color: #445; margin-bottom: 4px; }

/* Timer bar */
.timer-bar {
  height: 3px;
  background: #234;
  width: 100%;
}
.timer-bar-fill {
  height: 100%;
  background: #0ff;
  transition: width linear;
  width: 100%;
}

/* Bingo card */
.card-area { padding: 16px; flex: 1; }
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 320px;
  margin: 0 auto;
}
.bingo-cell {
  background: #1a2a4a;
  border: 2px solid #234;
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bingo-cell:active { transform: scale(0.95); }
.bingo-cell.marked {
  border-color: #0ff;
  color: #0ff;
  background: rgba(0, 255, 255, 0.08);
}
.bingo-cell.free {
  background: #0ff;
  color: #0a0a1a;
  font-weight: 800;
  border-color: #0ff;
}
.bingo-cell.correct {
  border-color: #4f4;
  background: rgba(68, 255, 68, 0.15);
  color: #4f4;
}
.bingo-cell.incorrect {
  border-color: #f44;
  background: rgba(255, 68, 68, 0.15);
  color: #f44;
}

/* Bingo button */
.bingo-btn-area { padding: 0 16px 12px; }
.bingo-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0ff, #00f);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}
.bingo-btn:active { transform: scale(0.97); }
.bingo-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Status bar */
.status-bar {
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  color: #556;
}

/* Verification overlay */
.verification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.verification-overlay.active { display: flex; }
.verification-title { font-size: 24px; font-weight: 800; color: #0ff; margin-bottom: 24px; }
.verification-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 280px;
  margin-bottom: 24px;
}
.verification-cell {
  padding: 14px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid #234;
  background: #1a2a4a;
  transition: all 0.4s;
}
.verification-result { font-size: 18px; margin-top: 16px; font-weight: 700; }

/* Winner screen */
.winner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  text-align: center;
}
.winner-overlay.active { display: flex; }
.winner-emoji { font-size: 64px; margin-bottom: 16px; }
.winner-text { font-size: 28px; font-weight: 800; color: #0ff; margin-bottom: 8px; }
.winner-sub { font-size: 14px; color: #aaa; margin-bottom: 24px; }

/* End screen */
.end-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #0a0a1a, #0d1b2a);
}
.end-screen h2 { font-size: 28px; color: #fff; margin-bottom: 12px; }
.end-screen .pitch { font-size: 16px; color: #0ff; margin-bottom: 8px; line-height: 1.4; max-width: 340px; }
.end-screen .sub { font-size: 14px; color: #668; margin-bottom: 32px; line-height: 1.5; max-width: 340px; }
.end-screen .cta-group { display: flex; flex-direction: column; gap: 12px; }

/* Animations */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes celebrate { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pulse { animation: pulse 1s infinite; }
.celebrate { animation: celebrate 0.5s ease-out; }

/* Round transition */
.round-transition {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 150;
  text-align: center;
  padding: 24px;
}
.round-transition.active { display: flex; }
.round-transition h2 { font-size: 32px; color: #0ff; margin-bottom: 8px; }
.round-transition p { font-size: 14px; color: #aaa; margin-bottom: 24px; }
