/* Paw Hunter's live demo and its side panel, in the game's own UI:
   night-navy cards (#1a1d3b / #252a50), cream text, butter (#ffd166) buttons with a deeper bottom edge,
   round prey portraits in navy discs, Fredoka for Latin text and digits. */
.ph-play {
  display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 470px); justify-content: center;
  gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(32px, 4vw, 56px);
}
.ph-demo {
  --demo-bg: #0d0f22; --demo-fg: #f7f0e3; --demo-soft: rgba(247, 240, 227, 0.75);
  --demo-accent: #ffd166; --demo-accent-fg: #2b1f00; --demo-line: rgba(43, 33, 24, 0.12); --demo-radius: 34px;
  justify-self: center; font-family: "Fredoka", var(--font);
}
.ph-demo .demo-pill { box-shadow: inset 0 -4px 0 #d9a22f, 0 12px 26px -10px rgba(0, 0, 0, 0.55); font-weight: 600; font-size: 1.05rem; }
.ph-demo .demo-badge { background: rgba(14, 16, 34, 0.6); color: #f7f0e3; font-weight: 600; }
.ph-demo .demo-end { background: rgba(13, 15, 34, 0.78); }
.ph-demo .demo-end-title { color: #aeaccb; font-weight: 600; font-size: 1.6rem; }
.ph-demo .demo-end-score { color: #aeaccb; font-weight: 600; }
.ph-demo .demo-end-score b { color: #f7f0e3; font-size: 2.6em; font-weight: 600; }
.ph-demo .demo-end-note { color: #aeaccb; }
.ph-demo .demo-again { min-height: 54px; padding: 0 34px; border-radius: 20px; font-weight: 600; font-size: 1.1rem; box-shadow: inset 0 -5px 0 #d9a22f; }
.ph-demo .demo-watch { color: #f7f0e3; font-weight: 600; text-decoration: none; min-height: 44px; padding: 0 22px; border-radius: 16px; background: #252a50; }

/* the panel is the game's menu and result card side by side in one navy card */
.ph-panel { --ph-night: #1a1d3b; --ph-night-3: #252a50; --ph-cream: #f7f0e3; --ph-muted: #aeaccb; --ph-butter: #ffd166; --ph-butter-deep: #d9a22f;
  font-family: "Fredoka", var(--font); color: var(--ph-cream); }
html[lang="zh-TW"] .ph-panel { font-family: "Fredoka", "Huninn", var(--font); }
html[lang="ja"] .ph-panel { font-family: "Fredoka", "Zen Maru Gothic", var(--font); }
html[lang="ko"] .ph-panel { font-family: "Fredoka", "Jua", var(--font); }
.ph-card { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: 34px; background: var(--ph-night);
  box-shadow: 0 30px 60px -34px rgba(13, 15, 34, 0.75); }

.ph-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ph-prey { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ph-muted); font: inherit; cursor: pointer; }
.ph-disc { position: relative; display: block; width: min(76px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--ph-night-3);
  box-shadow: inset 0 0 0 4px #3a3f66; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.ph-disc canvas { display: block; width: 100%; height: 100%; border-radius: 50%; filter: grayscale(1) brightness(0.75); opacity: 0.75; transition: filter 0.35s ease, opacity 0.35s ease; }
.ph-prey[data-kind="laser"] .ph-disc { background: #141833; }
.ph-prey.is-caught .ph-disc canvas { filter: none; opacity: 1; }
.ph-prey[aria-pressed="true"] { color: var(--ph-cream); }
.ph-prey[aria-pressed="true"] .ph-disc { box-shadow: inset 0 0 0 4px var(--ph-butter), 0 0 0 3px rgba(255, 209, 102, 0.18); }
.ph-prey:hover .ph-disc { transform: translateY(-2px); }
.ph-prey:focus-visible { outline: none; }
.ph-prey:focus-visible .ph-disc { outline: 3px solid var(--ph-cream); outline-offset: 3px; }
/* the count sits where the game puts its lock badge */
.ph-n { position: absolute; right: -4px; bottom: -2px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  display: grid; place-items: center; background: #3a3f66; color: var(--ph-muted); font-size: 0.85rem; font-weight: 600; line-height: 1;
  box-shadow: 0 0 0 3px var(--ph-night); font-variant-numeric: tabular-nums; }
.ph-prey.is-caught .ph-n { background: var(--ph-butter); color: #2b1f00; }
.ph-name { font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-align: center; }
.ph-prey.is-pop .ph-disc { animation: ph-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ph-pop { 40% { transform: scale(1.12); } }

.ph-title { margin: 4px 0 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 600; text-align: center; line-height: 1.1; }
.ph-desc { margin: -8px 0 0; min-height: 3.2em; color: var(--ph-muted); font-size: 1rem; line-height: 1.6; text-align: center; text-wrap: balance; }

.ph-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; text-align: center; }
.ph-stats dt { color: var(--ph-muted); font-size: 0.95rem; font-weight: 600; }
.ph-stats dd { margin: 4px 0 0; font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }

.ph-go { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 20px 4px; border: 0; border-radius: 22px;
  background: var(--ph-butter); color: #2b1f00; font: inherit; font-size: 1.3rem; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 -6px 0 var(--ph-butter-deep); transition: transform 0.15s ease; }
.ph-go svg { width: 26px; height: 26px; fill: currentColor; }
.ph-go:hover { transform: translateY(-1px); }
.ph-go:active { transform: translateY(2px); box-shadow: inset 0 -3px 0 var(--ph-butter-deep); }
.ph-go:focus-visible { outline: 3px solid var(--ph-cream); outline-offset: 3px; }
.ph-go.is-quiet { background: var(--ph-night-3); color: var(--ph-cream); box-shadow: none; font-size: 1.05rem; min-height: 52px; padding-bottom: 0; }
.ph-go.is-quiet svg { display: none; }
.ph-note { margin: -4px 0 0; color: var(--ph-muted); font-size: 0.9rem; line-height: 1.55; text-align: center; text-wrap: pretty; }

@media (max-width: 860px) {
  .ph-play { grid-template-columns: minmax(0, 1fr); }
  .ph-demo { max-width: 360px; }
  .ph-panel { width: 100%; max-width: 470px; justify-self: center; }
}
@media (max-width: 420px) {
  .ph-card { gap: 14px; padding: 20px 16px; border-radius: 28px; }
  .ph-name { font-size: 0.85rem; }
  .ph-stats dd { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-prey.is-pop .ph-disc { animation: none; }
  .ph-disc, .ph-disc canvas, .ph-go { transition: none; }
}
html[lang="ja"] .ph-desc, html[lang="ja"] .ph-note { word-break: auto-phrase; }
