
#page-game {
  display:         none;          
  flex-direction:  column;
  align-items:     center;
}

#page-game.active { display: flex; }


#page-game header {
  width:           100%;
  max-width:       var(--page-max-w);
  padding:         1.5rem 1.5rem 1rem;
  padding-left:    5rem;           
  display:         flex;
  justify-content: space-between;
  align-items:     flex-end;
  position:        relative;
  z-index:         1;
}

.logo {
  font-family:    var(--font-pixel);
  font-size:      10px;
  color:          var(--yellow);
  line-height:    1.8;
  letter-spacing: 1px;
}

.logo span { color: var(--accent); }

.stats-bar  { display: flex; gap: 1.5rem; align-items: center; }
.stat       { text-align: right; }

.stat-label {
  font-size:      10px;
  color:          var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight:    600;
}

.stat-value {
  font-family: var(--font-pixel);
  font-size:   14px;
  color:       var(--yellow);
  margin-top:  2px;
}


#page-game main {
  width:     100%;
  max-width: var(--page-max-w);
  padding:   0 1.5rem 3rem;
  position:  relative;
  z-index:   1;
}


.game-card {
  background:    var(--card);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       2rem;
  position:      relative;
  overflow:      hidden;
}


.game-card::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(90deg, var(--accent), var(--yellow), var(--blue));
}


.lives { display: flex; gap: 8px; margin-bottom: 1.5rem; }

.heart {
  width:      22px;
  height:     22px;
  transition: transform 0.3s, opacity 0.3s;
}

.heart.lost { opacity: 0.2; transform: scale(0.8); }
.heart svg  { width: 100%; height: 100%; }


.gen-badge {
  display:        inline-block;
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:          var(--blue);
  background:     rgba(76, 201, 240, 0.1);
  border:         1px solid rgba(76, 201, 240, 0.25);
  border-radius:  var(--radius-pill);
  padding:        4px 14px;
  margin-bottom:  1.5rem;
}


.progress-wrap {
  margin-top:  1.5rem;
  display:     flex;
  align-items: center;
  gap:         10px;
}

.progress-bar {
  flex:          1;
  height:        4px;
  background:    var(--border);
  border-radius: 4px;
  overflow:      hidden;
}

.progress-fill {
  height:        100%;
  background:    linear-gradient(90deg, var(--accent), var(--yellow));
  border-radius: 4px;
  transition:    width 0.4s ease;
}

.progress-label {
  font-size:   12px;
  color:       var(--muted);
  min-width:   50px;
  text-align:  right;
  font-weight: 600;
}


.silhouette-area {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  padding:         1.5rem 0;
}

.question-mark {
  font-family:    var(--font-pixel);
  font-size:      9px;
  color:          var(--muted);
  letter-spacing: 3px;
  margin-bottom:  1rem;
}


.pokemon-frame {
  width:           220px;
  height:          220px;
  position:        relative;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.pokemon-frame::before {
  content:       '';
  position:      absolute;
  inset:         -12px;
  border-radius: 50%;
  border:        2px solid var(--border);
  animation:     pulse-ring 2s ease-in-out infinite;
}


#pokemon-img {
  width:            200px;
  height:           200px;
  object-fit:       contain;
  image-rendering:  pixelated;
  transition:       filter 0.6s ease, transform 0.3s ease;
  filter:           brightness(0);          
}

#pokemon-img.revealed   { filter: none; transform: scale(1.05); }
#pokemon-img.wiggle     { animation: wiggle 0.4s ease; }
#pokemon-img.float-anim { animation: float  3s ease-in-out infinite; }


.hint-area {
  margin-top:     1.5rem;
  display:        flex;
  flex-direction: column;
  gap:            8px;
  align-items:    center;
}

.hint-pill {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  font-size:     13px;
  font-weight:   600;
  padding:       5px 16px;
  border-radius: var(--radius-pill);
  border:        1px solid;
  opacity:       0;
  transform:     translateY(8px);
  transition:    opacity 0.4s, transform 0.4s;
}

.hint-pill.show { opacity: 1; transform: translateY(0); }

.hint-dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
}


.input-area { display: flex; gap: 10px; }

#answer-input {
  flex:          1;
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-md);
  padding:       0.8rem 1.2rem;
  font-family:   var(--font-body);
  font-size:     16px;
  font-weight:   600;
  color:         var(--text);
  outline:       none;
  transition:    border-color 0.2s;
  text-transform: capitalize;
}

#answer-input:focus       { border-color: var(--yellow); }
#answer-input::placeholder { color: var(--muted); font-weight: 400; }
#answer-input:disabled    { opacity: 0.5; cursor: not-allowed; }


.feedback {
  text-align:     center;
  padding:        1rem;
  border-radius:  var(--radius-md);
  font-size:      15px;
  font-weight:    600;
  margin-top:     12px;
  opacity:        0;
  transform:      translateY(6px);
  transition:     opacity 0.3s, transform 0.3s;
}

.feedback.show    { opacity: 1; transform: translateY(0); }
.feedback.correct { background: rgba(  6, 214, 160, 0.12); color: var(--green);  border: 1px solid rgba(  6, 214, 160, 0.25); }
.feedback.wrong   { background: rgba(230,  57,  70, 0.12); color: var(--accent); border: 1px solid rgba(230,  57,  70, 0.25); }
.feedback.reveal  { background: rgba( 76, 201, 240, 0.12); color: var(--blue);   border: 1px solid rgba( 76, 201, 240, 0.25); }


.revealed-info {
  margin-top:     1.5rem;
  display:        none;
  flex-direction: column;
  gap:            12px;
}

.revealed-info.show { display: flex; }

.info-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   10px;
}

.info-block {
  background:    var(--surface);
  border-radius: var(--radius-md);
  padding:       0.9rem 1.1rem;
  border:        1px solid var(--border);
}

.info-block-label {
  font-size:      10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color:          var(--muted);
  margin-bottom:  4px;
  font-weight:    600;
}

.info-block-value {
  font-size:      18px;
  font-weight:    700;
  color:          var(--text);
  text-transform: capitalize;
}

.next-btn-wrap { text-align: center; }


#game-over {
  display:    none;
  text-align: center;
  padding:    2rem 0;
}

#game-over.show { display: block; }

.game-over-title {
  font-family: var(--font-pixel);
  font-size:   16px;
  color:       var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.game-over-score {
  font-family: var(--font-pixel);
  font-size:   24px;
  color:       var(--yellow);
  margin:      1.5rem 0;
}

.game-over-sub {
  font-size:     15px;
  color:         var(--muted);
  margin-bottom: 2rem;
}