/* Page guides: one character explains the page on a gamer's first visit. Graffiti speech bubble. */
.page-guide { opacity: 1; position: fixed; z-index: 9990; left: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 12px;
  width: min(560px, calc(100vw - 32px)); font-family: system-ui, sans-serif; color: #111; }
.page-guide-face { flex: 0 0 auto; margin: 0 0 -4px; display: grid; justify-items: center; gap: 2px; }
.page-guide-face img { display: block; width: auto; height: 170px; max-width: 150px; object-fit: contain; object-position: bottom;
  filter: drop-shadow(4px 4px 0 #ff2ca8) drop-shadow(0 0 10px rgba(0,0,0,.6)); }
.page-guide-face figcaption { padding: 2px 8px; background: #ffd400; color: #111; font: 900 .75rem/1.2 system-ui, sans-serif;
  letter-spacing: .06em; text-transform: uppercase; transform: rotate(-2deg); box-shadow: 3px 3px 0 #111; white-space: nowrap; }
.page-guide-bubble { position: relative; flex: 1 1 auto; min-width: 0; padding: 14px 16px 12px; background: #fff; border: 3px solid #111;
  border-radius: 18px; box-shadow: 7px 7px 0 #16dcff; }
.page-guide-bubble::before { content: ""; position: absolute; left: -16px; bottom: 26px; border: 9px solid transparent;
  border-right: 14px solid #111; }
.page-guide-text { margin: 0 0 10px; font: 700 1rem/1.4 system-ui, sans-serif; }
.page-guide-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-guide-count { margin-right: auto; font: 800 .72rem/1 system-ui, sans-serif; letter-spacing: .1em; color: #555; }
.page-guide-actions button { min-height: 40px; padding: 0 14px; border: 2px solid #111; background: #fff; color: #111;
  font: 900 .8rem/1 system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.page-guide-actions .page-guide-next { background: #ffd400; box-shadow: 3px 3px 0 #ff2ca8; }
.page-guide-actions button[hidden] { display: none; }
.page-guide-actions button:focus-visible { outline: 3px solid #16dcff; outline-offset: 2px; }
.page-guide-spot { outline: 4px solid #ffd400 !important; outline-offset: 4px; animation: page-guide-pulse 1.2s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes page-guide-pulse { 50% { outline-color: #ff2ca8; } }
@media (max-width: 600px) {
  .page-guide { left: 8px; right: 8px; bottom: 8px; width: auto; gap: 8px; }
  .page-guide-face img { height: 120px; max-width: 96px; }
  .page-guide-text { font-size: .92rem; }
}
@media (max-height: 500px) {
  .page-guide { bottom: 8px; width: min(620px, calc(100vw - 16px)); left: 8px; }
  .page-guide-face img { height: 96px; max-width: 84px; }
  .page-guide-bubble { padding: 8px 12px; }
  .page-guide-text { margin-bottom: 6px; font-size: .88rem; }
  .page-guide-actions button { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .page-guide, .page-guide-spot { animation: none; } }

/* Browsers block sound until the first tap: say so on the bubble, and the tap plays the line. */
.page-guide-tap{display:block;margin:0 0 8px;padding:6px 12px;border:2px solid #111;border-radius:999px;background:#ffd400;color:#111;
  font:900 .78rem/1 system-ui,sans-serif;letter-spacing:.08em;cursor:pointer;animation:page-guide-tap-pulse 1.1s ease-in-out infinite}
@keyframes page-guide-tap-pulse{50%{transform:scale(1.06);box-shadow:0 0 0 6px #ffd40055}}
@media (prefers-reduced-motion: reduce){.page-guide-tap{animation:none}}

/* Docked guide (owner, 2026-11-24): on the log-in page Madam Nice talks under the REP YOUR TAG headline. */
.page-guide.page-guide-docked { position: static; left: auto; bottom: auto; width: 100%; max-width: 560px; margin: 4px 0 24px; }
.page-guide-replay { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin: 4px 0 24px; padding: 6px 16px 6px 8px;
  background: #111116e6; color: #fff; border: 2px solid #ffd400; box-shadow: 4px 4px 0 #ff2ca8; font: 900 .8rem/1.2 system-ui, sans-serif;
  letter-spacing: .06em; cursor: pointer; }
.page-guide-replay img { width: 40px; height: 48px; object-fit: contain; object-position: bottom; }
.page-guide-replay:hover { background: #ffd400; color: #111; }
.page-guide-replay:focus-visible { outline: 3px solid #16dcff; outline-offset: 3px; }
.page-guide-dock-auto { display: block; margin: 16px 0 0; }
.page-guide-dock-auto .page-guide-replay { margin: 0 0 8px; }
.setup-heading .page-guide-replay { margin: 14px 0 4px; }
