/* ============================================
   Chicken Road 2.0 — Demo Game Styles
   ============================================ */

.demo-section {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.demo-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.demo-header h3 {
  margin-top: 0;
  margin-bottom: 0.3em;
}
.demo-header .demo-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-road);
  padding: 0.2em 0.8em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.demo-disclaimer {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Game Area */
.game-area {
  position: relative;
  background: var(--color-road);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  min-height: 300px;
}

.game-road {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
}

.road-lane {
  flex: 1;
  position: relative;
  border-bottom: 2px dashed rgba(255, 204, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.road-lane:last-child {
  border-bottom: none;
}
.road-lane.safe {
  background: rgba(53, 199, 89, 0.08);
}
.road-lane.danger {
  background: rgba(255, 59, 48, 0.15);
}
.road-lane .lane-label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

/* Chicken character */
.chicken {
  font-size: 2rem;
  transition: transform 0.3s ease;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.chicken.step {
  animation: chickenHop 0.3s ease;
}
@keyframes chickenHop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

/* Multiplier display */
.multiplier-display {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: var(--color-accent);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  z-index: 3;
}

/* Game controls */
.game-controls {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.game-controls .btn {
  min-width: 140px;
}

/* Game info bar */
.game-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}
.game-info .info-item {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.game-info .info-label {
  color: var(--color-muted);
  font-size: 0.8rem;
}
.game-info .info-value {
  font-weight: 700;
  color: var(--color-road);
}

/* Game result overlay */
.game-result {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.game-result.show {
  opacity: 1;
  pointer-events: auto;
}
.game-result .result-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3em;
}
.game-result .result-multiplier {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5em;
}
.game-result .result-msg {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* Difficulty selector in demo */
.demo-difficulty {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.demo-difficulty button {
  padding: 0.4em 1em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  transition: all 0.2s;
  min-height: 36px;
}
.demo-difficulty button.active,
.demo-difficulty button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 106, 0, 0.06);
}

/* Responsive */
@media (max-width: 600px) {
  .demo-section {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
  .game-road {
    height: 250px;
  }
  .game-controls .btn {
    min-width: 120px;
    font-size: 0.9rem;
  }
  .multiplier-display {
    font-size: 1rem;
  }
}
