/* Le Chonk Chomp page styles. Loaded after style.css; only the Chomp page links this file. */

/* keep the hero short, so the picture sits high on phones */
.chomp-page .chomp-hero { padding-block: clamp(14px, 3vw, 40px) 12px; }
.chomp-page .chomp-hero h1 { font-size: clamp(34px, 6vw, 72px); }
.chomp-page .chomp-hero p { font-size: clamp(15px, 1.5vw, 18px); margin-top: 8px; }
@media (max-width: 640px) {
  .chomp-page .chomp-hero p { font-size: 15px; }
  .chomp-page .back-link { margin-bottom: 4px; }
}

/* HUD: chips wrap onto new rows instead of overlapping; every button is a 44px touch target */
.chomp-page .game-hud { gap: 8px 8px; }
.chomp-page .game-hud .btn { min-height: 44px; padding: 0 16px; }
.chomp-page .hud-chip { min-height: 36px; }
.chomp-page .hud-chip.is-hot {
  border-color: rgba(255, 46, 158, 0.7);
  color: var(--cream);
  background: rgba(255, 46, 158, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 46, 158, 0.12);
}
.chomp-page .hud-chip.is-hot b { color: var(--pink); }
.chomp-page .hud-chip b { min-width: 2ch; }
.chomp-page .hud-combo b { color: var(--orange-hi); }
@media (max-width: 640px) {
  .chomp-page .game-hud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chomp-page .game-hud .hud-chip { justify-content: space-between; font-size: 12px; padding: 6px 10px; }
  .chomp-page .game-hud .hud-chip b { font-size: 14px; }
  .chomp-page .hud-spacer { display: none; }
  .chomp-page .game-hud .btn { width: 100%; }
}

/* cards: the start card, the game-over stats and the power-up legend */
.chomp-page .overlay-card { width: min(480px, 100%); }
.chomp-page .overlay-card .card-kicker { font-size: 13px; }
.how-list {
  width: 100%;
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.how-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 14.5px;
  line-height: 1.4;
}
.how-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: var(--orange-ink);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 900;
  font-size: 14px;
}
.start-card .field { margin-top: 2px; }
.chomp-page .overlay-card .hint-line { text-align: center; }

.over-stats {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.over-stats > div {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  min-width: 0;
}
.over-stats dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.over-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 900;
  font-size: 22px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.over-stats > div:last-child dd { font-size: 17px; line-height: 1.2; }

.pw-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.pw-list li { color: var(--muted); font-size: 15px; line-height: 1.45; }
.pw-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--orange-ink);
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.pw-magnet { background: var(--pink); color: #14000a; }
.pw-shield { background: var(--lime); color: #04180b; }
.pw-rush { background: var(--orange-hi); color: var(--orange-ink); }
.phase-line { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* the mobile frame: the picture is 16:9 and the cards sit under it. Keep the cards narrow. */
@media (max-width: 1099px) {
  .chomp-page .game-overlay { padding-top: 14px; }
  .chomp-page .overlay-card { padding: 18px; gap: 12px; }
  .chomp-page .overlay-card h2 { font-size: clamp(28px, 7vw, 40px); }
  .chomp-page .how-list li { font-size: 14px; }
}
@media (max-width: 380px) {
  .chomp-page .overlay-card { padding: 14px; }
  .chomp-page .how-list li { grid-template-columns: 24px minmax(0, 1fr); padding: 9px 10px; }
  .how-n { width: 24px; height: 24px; font-size: 12px; }
  .over-stats dd { font-size: 19px; }
}

/* desktop: the cards sit on top of the 16:9 picture, so they must fit inside it without scrolling */
@media (min-width: 1100px) {
  .chomp-page .start-card { gap: 9px; padding: 18px 22px; }
  .chomp-page .start-card .card-kicker,
  .chomp-page .start-card .hint-line { display: none; }
  .chomp-page .start-card h2 { font-size: clamp(30px, 3.4vw, 40px); }
  .chomp-page .how-list { gap: 6px; }
  .chomp-page .how-list li { padding: 7px 11px; font-size: 14px; line-height: 1.35; }
  .chomp-page .start-card .field label { font-size: 12.5px; }
  .chomp-page .start-card .field input { min-height: 40px; padding: 8px 12px; }
  .chomp-page .over-card { gap: 9px; padding: 18px 22px; }
  .chomp-page .over-card h2 { font-size: clamp(30px, 3.4vw, 40px); }
  .chomp-page .over-stats > div { padding: 8px 12px; }
  .chomp-page .over-stats dd { font-size: 20px; }
}

/* buttons on the cards and the board links are 44px touch targets */
.chomp-page .btn-row .btn,
.chomp-page .overlay-card > .btn { min-height: 48px; }
.chomp-page .overlay-card a.hint-line { display: inline-block; min-height: 44px; line-height: 44px; }
.chomp-page .game-info .info-card h2 { font-size: 22px; }
.chomp-page .game-info .info-card ul { padding-left: 18px; }
