/* Fill the Shelf. Game-only styles. Tokens come from /style.css. */
.fg { width: 100%; max-width: 480px; margin: var(--s4) auto 0; }
.fg-hud { display: flex; align-items: center; gap: var(--s4); padding: var(--s2) 0; min-height: 52px; }
.fg-stat { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.fg-k { font-size: .8rem; font-weight: 700; color: var(--mute); margin-bottom: 2px; }
.fg-stat b { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: .01em; }
.fg-lives { display: flex; gap: 6px; margin-left: auto; }
.fg-lives i { position: relative; display: block; width: 22px; height: 18px; border: 2px solid var(--kraft-ink); border-radius: 3px;
  background: var(--kraft); box-shadow: inset 0 -4px 0 var(--kraft-shade); }
.fg-lives i::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: 0; width: 6px; margin-left: -3px; background: var(--kraft-lit);
  opacity: .8; }
.fg-lives i.lost { background: transparent; border-style: dashed; border-color: #b9aea5; box-shadow: none; }
.fg-lives i.lost::after { display: none; }
.fg-pause { min-width: 76px; }

.fg-stage { position: relative; margin: 0 auto; border-radius: 10px; overflow: hidden; background: var(--floor);
  box-shadow: 0 0 0 2px var(--ink), 0 5px 0 var(--ink); -webkit-user-select: none; user-select: none; }
.fg-stage canvas { display: block; width: 100%; height: auto; touch-action: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }

.fg-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--s3);
  background: rgba(230, 237, 241, .86); overflow-y: auto; }
.fg-overlay[hidden] { display: none; }
.fg-card { width: 100%; max-width: 340px; max-height: 100%; overflow-y: auto; margin: auto; text-align: center;
  border-top: 6px solid var(--ink); padding: var(--s4) var(--s4) var(--s5); }
.fg-title { margin: 0 0 var(--s3); font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 9vw, 2.9rem); line-height: .95;
  letter-spacing: .01em; }
.fg-rules { margin: 0 0 var(--s4); padding: 0; list-style: none; text-align: left; font-size: .95rem; line-height: 1.4; }
.fg-rules li { position: relative; padding: 0 0 var(--s2) 28px; }
.fg-rules li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 14px; border-radius: 2px; background: var(--kraft);
  box-shadow: inset 0 -4px 0 var(--kraft-shade); }
.fg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s3); }
.fg-actions .btn { min-width: 132px; }
.fg-line { margin: var(--s3) 0 var(--s2); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.fg-scores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s1) var(--s4); margin: 0 0 var(--s2);
  font-weight: 600; color: var(--mute); }
.fg-scores b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.fg-scores .stamp { font-size: .9rem; }
.fg-pitch { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 2px dashed #cfc6bd; font-size: .86rem; line-height: 1.4; color: var(--mute); text-align: left; }
.fg-pitch a { font-weight: 700; }

.fg-how { margin-top: var(--s6); }
.fg-how h2 { margin-top: 0; }

@media (max-width: 380px) {
  .fg-hud { gap: var(--s3); }
  .fg-stat b { font-size: 1.6rem; }
  .fg-pause { min-width: 64px; padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .fg-overlay, .fg-stage, .fg-card { transition: none; animation: none; }
}
