/* Angry Larry: Smash the X - Neo-Pop Bright Sticker Game Styles */

.larry-game-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.larry-game-head h1 {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.larry-game-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.larry-hud-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}

.larry-hud-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.larry-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.larry-hud-pill strong {
  color: var(--sky);
}

.larry-hud-pill.warn {
  background: var(--yellow);
}

.larry-hud-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.larry-stage-card {
  position: relative;
  background: #0f172a;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#angryLarryCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  cursor: grab;
  touch-action: none;
}

#angryLarryCanvas.dragging {
  cursor: grabbing;
}

.larry-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(15, 23, 42, 0.78);
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.larry-overlay.show {
  display: flex;
}

.larry-modal {
  background: #ffffff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 24px;
  text-align: center;
  max-width: 390px;
  width: 100%;
}

.larry-modal-stars {
  font-size: 2rem;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  line-height: 1;
}

.larry-modal h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
}

.larry-modal-score {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sky);
  margin: 4px 0 8px;
}

.larry-modal p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.larry-modal-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.larry-controls-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.larry-tip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.level-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.lvl-btn {
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 2px solid var(--ink);
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.1s ease, background 0.12s ease;
}

.lvl-btn:hover {
  transform: translate(-1px, -1px);
  background: var(--bg);
}

.lvl-btn.active {
  background: var(--sky);
  color: #ffffff;
}

.lvl-btn.cleared {
  background: var(--yellow);
  color: var(--ink);
}

.lvl-btn.active.cleared {
  background: var(--sky);
  color: #ffffff;
}

/* Homepage Mini-Game Promo Card (matches Neo-Pop sticker aesthetic) */
.larry-game-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.larry-game-promo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

@media (max-width: 720px) {
  .larry-hud-bar {
    padding: 10px;
  }
  .larry-hud-stats {
    gap: 6px;
    font-size: 0.74rem;
  }
  .larry-modal {
    padding: 16px;
  }
}
