/*!
 * Peep Runner v2 — game-specific styles, ported from the MASTER game's own
 * inline <style> (digipeeps.com.au wp-game.mjs `css` template string), minus
 * the `.dp` WP-theme scoping (our ids are already page-unique) and minus the
 * email-marketing / manage-emails widget (dropped for v1 — see peep-runner.js).
 * Loads after peep-arcade.css, which supplies the outer .pa-root/.pa-shell/
 * .pa-attract/.pa-hud fullscreen-card shell reused here.
 */

/* the stage can be taller than the viewport once the leaderboard is showing
   (esp. in fullscreen) — let it scroll rather than clip. */
.pa-stage { overflow-y: auto; }

#dpgame {
  width: min(1240px, calc(100vw - 36px));
  max-width: 1240px;
  margin: 56px auto 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(16, 40, 60, .55);
  border: 1px solid #e8f1f6;
  background: #0b1020;
  aspect-ratio: 900 / 340;
}
#dpgame canvas { display: block; width: 100%; height: 100%; }
#dpgame .gover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background: linear-gradient(rgba(11, 16, 32, .32), rgba(11, 16, 32, .68));
  padding: 20px; gap: 11px;
}
#dpgame .gover[hidden] { display: none; }
#dpgame .gover h3 {
  font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 28px; margin: 0;
  color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}
#dpgame .gover p { margin: 0; max-width: 440px; font-size: 15px; opacity: .92; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
#dpgame .gbtn {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px;
  padding: 11px 26px; border-radius: 24px; border: none; cursor: pointer;
  background: linear-gradient(120deg, #3ee3b0, #06b6d4 55%, #4d8bd4); color: #fff; margin-top: 4px;
}
#dpgame .gbtn.alt { background: #fff; color: #0e7490; }
#dpgame .ghint { font-size: 12.5px; opacity: .8; }

.dpboard {
  max-width: 560px; margin: 22px auto 34px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 20px; padding: 20px 22px 22px;
  box-shadow: 0 12px 34px -22px rgba(16, 40, 60, .5);
}
.dpboard-head { text-align: center; margin-bottom: 12px; }
.dpboard-head h3 { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 22px; margin: 7px 0 0; color: #12202c; }
.dpboard-list { list-style: none; margin: 0; padding: 0; }
.dpboard-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 16px; }
.dpboard-list li:nth-child(odd) { background: rgba(6, 182, 212, .06); }
.dpboard-list li.me { background: linear-gradient(100deg, rgba(62, 227, 176, .24), rgba(6, 182, 212, .16)); font-weight: 800; }
.dpboard-list .rk { width: 24px; text-align: center; font-weight: 900; color: #0b6076; font-family: "Montserrat", sans-serif; }
.dpboard-list li:nth-child(1) .rk { color: #d99400; }
.dpboard-list .nm { flex: 1; color: #22303c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpboard-list .sc { font-weight: 900; color: #0b6076; font-variant-numeric: tabular-nums; }
.dpboard-empty { justify-content: center; color: #6b7a86; font-style: italic; }
.dpboard-best { margin: 6px 0 0; font-size: 14px; color: #0b6076; font-weight: 700; min-height: 19px; }
.dpboard-submit { margin-top: 16px; border-top: 1px dashed #d7e2ea; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.dpboard-you { margin: 0; text-align: center; font-size: 16px; color: #22303c; }
.dpboard-you b { color: #0b6076; }
.dpboard-submit input[type=text] {
  border: 1px solid #d9e3ec; border-radius: 12px; background: #fff; padding: 12px 14px;
  font-size: 16px; font-family: inherit; color: #16212e; width: 100%; box-sizing: border-box;
}
.dpboard-msg { font-size: 13.5px; color: #0a7349; min-height: 18px; text-align: center; }
.dpboard button {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px;
  padding: 12px 28px; border-radius: 24px; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(120deg, #3ee3b0, #06b6d4 55%, #4d8bd4); align-self: center;
}
.dpboard button[disabled] { opacity: .6; cursor: default; }

@media (max-width: 640px) {
  #dpgame { margin-top: 44px; }
  #dpgame .gover h3 { font-size: 22px; }
}
