/* SharpLab HQ — Who's That Pokémon? page.
   Builds on hqstyle.css (shared vars/header/nav/.btn/.card). Only page-specific styling here. */

/* ── Page intro ── */
.poke-head { margin: 4px 0 20px; text-align: center; }
.poke-head h1 { font-size: 26px; margin: 0 0 4px; }
.poke-head p { color: var(--muted); margin: 0; font-size: 14px; }

.balancechip {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  font-size: 13px; font-weight: 700; color: var(--gold);
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px 11px; vertical-align: middle;
}

/* ── Game card ── */
.poke-wrap { max-width: 460px; margin: 0 auto; }
.pcard { display: flex; flex-direction: column; gap: var(--s-4); align-items: center; text-align: center; }

.phint {
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent2);
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px 12px; font-weight: 700;
}

/* ── Silhouette / sprite stage ── */
.pstage {
  width: 260px; max-width: 100%; height: 260px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 68%);
  border-radius: var(--r-lg); position: relative;
}
.psprite {
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0) contrast(1.4);
  transition: filter .8s ease;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.psprite.revealed { filter: none; }
.pstage.loading::after {
  content: "…"; position: absolute; font-size: 28px; color: var(--muted);
}

/* ── Reveal panel (name + types + reward) ── */
.preveal { min-height: 46px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pname { font-size: 24px; font-weight: 800; letter-spacing: .5px; text-transform: capitalize; }
.pname .legmark { margin-left: 6px; }
.ptypes { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ptype {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 11px; border-radius: var(--r-pill); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.preward { font-size: 15px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.pdexline { font-size: 12px; color: var(--muted); }
.pdexline b { color: var(--fg); }

/* ── Guess input ── */
.pguessrow { display: flex; gap: 8px; width: 100%; }
.pguess {
  flex: 1; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--fg);
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 14px; text-align: center;
}
.pguess:focus { outline: none; border-color: var(--accent); }
.pguess:disabled { opacity: .5; }
.pguess.shake { animation: p-shake .4s ease; border-color: var(--red); }
@keyframes p-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}

/* ── Buttons ── */
.pbtns { display: flex; gap: 8px; width: 100%; justify-content: center; flex-wrap: wrap; }
.pbtns .btn { flex: 1; min-width: 120px; text-align: center; }
.btn.big { font-size: 16px; padding: 12px 18px; }

.phintmsg { font-size: 13px; min-height: 18px; font-weight: 600; }
.phintmsg.wrong { color: var(--red); }
.phintmsg.idle { color: var(--muted); font-weight: 400; }

.pcounter { font-size: 12px; color: var(--muted); }
.pcounter b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* ── Signed-out state ── */
.signedout { text-align: center; padding: 40px 20px; color: var(--muted); }
.signedout .big { font-size: 40px; margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  .psprite { transition: none; }
  .pguess.shake { animation: none; }
}

/* ── Mode toggle (practice ⇄ sprint) ── */
.poke-modetoggle { display: flex; gap: 8px; justify-content: center; margin: 0 0 14px; }

/* ── Sprint mode (120s batch run) — copied verbatim from zetamac.css so pokemon.html
   doesn't need to load a second stylesheet. "zm" prefix kept for a 1:1 mirror. ── */
.zmbig { font-size: 46px; font-weight: 800; letter-spacing: .5px; }

.zmtimebar {
  width: 100%; height: 10px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--r-pill); overflow: hidden;
}
.zmtimefill {
  height: 100%; width: 100%; transform-origin: left center; transform: scaleX(1);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
@media (prefers-reduced-motion: no-preference) {
  .zmtimefill { transition: transform .12s linear; }
}
.zmtimefill.hot { background: linear-gradient(90deg, var(--gold), var(--red)); }

.zmmeta {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.zmsecs { font-weight: 800; color: var(--accent2); font-size: 15px; }
.zmsecs.hot { color: var(--red); }
.zmsolved b { color: var(--fg); }

.zmresult .zmbig { font-size: 36px; }
.zmreward { font-size: 22px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.zmbest { font-size: 14px; color: var(--muted); }
.zmbest b { color: var(--fg); font-variant-numeric: tabular-nums; }
.zmrank { font-size: 13px; color: var(--accent2); font-weight: 700; }
.zmnewbest { font-size: 15px; font-weight: 800; color: var(--gold); }
@keyframes zm-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.zmnewbest.pop, .zmreward.pop { animation: zm-pop .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .zmnewbest.pop, .zmreward.pop { animation: none; }
}

/* ── Sprint leaderboard ── */
.zmleaderboard { max-width: 460px; margin: 22px auto 0; }
.zmlbhead {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--accent2); text-align: center; margin-bottom: 12px;
}
.zmlbempty { text-align: center; color: var(--muted); font-size: 13px; }
.zmlblist { display: flex; flex-direction: column; gap: 6px; }
.zmlbrow {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px 12px; font-size: 14px;
}
.zmlbrow.me { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.zmlbrank { font-size: 12px; color: var(--muted); width: 32px; font-variant-numeric: tabular-nums; }
.zmlbname { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zmlbruns { font-size: 12px; color: var(--muted); }
.zmlbscore { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════════════
   Copied verbatim from cards.css so the coins hub + toasts are styled on this
   page too (cards.css is only loaded on the Cards page).
   ═══════════════════════════════════════════════════════════════════════════ */
.coinschip { font-weight: 700; color: var(--gold); background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; white-space: nowrap; cursor: pointer; transition: border-color .15s, transform .15s; }
.coinschip:hover { border-color: var(--gold); transform: translateY(-1px); }

/* Coins hub modal */
.hubov { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: rgba(5,7,11,.6); backdrop-filter: blur(3px); animation: cd-scrim-in .18s ease both; }
@keyframes cd-scrim-in { from { opacity: 0; } to { opacity: 1; } }
.hubcard { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; box-shadow: 0 24px 60px -20px #000; }
.hubhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hubhead h3 { margin: 0; font-size: 17px; }
.hubx { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.hubx:hover { color: var(--fg); background: var(--panel2); }
.hubrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.hubrow:first-of-type { border-top: 0; }
.hubicon { font-size: 20px; width: 30px; text-align: center; flex: 0 0 auto; }
.hubt { font-weight: 700; font-size: 14px; }
.hubd { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.hubfoot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: right; }
.hubfoot b { color: var(--gold); }

.cardtoast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300;
  background: var(--panel2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
