/* Ajuda (prefixo hp-) e tutorial guiado (tour-). */

/* ---------- Ajuda ---------- */
.hp { display: flex; flex-direction: column; gap: 12px; max-width: 920px; }
.hp-standalone { margin: 0 auto; padding: 18px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.hp .page-head { margin-bottom: 4px; }
.hp-top { margin-bottom: -4px; }
.hp-tour { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 2px solid var(--accent); }
.hp-tour p { margin: 4px 0 0; font-size: 14px; }
.hp-tour .btn { flex-shrink: 0; }
.hp-sec { padding: 0; }
.hp-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; min-height: 48px; cursor: pointer; list-style: none;
  font-family: var(--font-pixel); font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.hp-sec > summary::-webkit-details-marker { display: none; }
.hp-sec > summary:focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; }
.hp-chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s ease; flex-shrink: 0; }
.hp-sec[open] .hp-chev { transform: rotate(-135deg); }
.hp-body { padding: 0 16px 16px; font-size: 15px; line-height: 1.55; }
.hp-body > p { margin: 0 0 10px; }
.hp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--line); }
.hp-btn { min-width: 84px; padding: 6px 8px; text-align: center; font-family: var(--font-pixel); font-size: 11px; background: var(--panel2); border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--shade); white-space: nowrap; }
.hp-ico { display: inline-flex; width: 24px; height: 24px; }
.hp-screens li { align-items: start; }
.hp-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hp-game { padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.hp-game-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--font-pixel); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.hp-game-ico .pxi { width: 22px; height: 22px; vertical-align: -5px; }
.hp-game p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.hp-k { display: inline-block; min-width: 62px; margin-right: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.hp-tip { color: var(--muted); }
@media (max-width: 760px) {
  .hp-tour { flex-direction: column; align-items: stretch; }
  .hp-tour .btn { width: 100%; }
  .hp-body { font-size: 14px; padding: 0 12px 14px; }
  .hp-sec > summary { padding: 12px; }
  .hp-games { grid-template-columns: 1fr; }
  .hp-k { display: block; margin-bottom: 1px; }
  .hp-btn { min-width: 70px; }
}

/* ---------- tutorial guiado ---------- */
.tour { position: fixed; inset: 0; z-index: 90; }
/* O destaque escurece tudo em volta com uma sombra enorme; a moldura em degrau segue o visual retrô. */
.tour-hole { position: fixed; box-shadow: 0 0 0 200vmax rgba(3, 8, 6, 0.78); outline: 3px solid var(--accent); outline-offset: 0;
  transition: left 0.22s ease, top 0.22s ease, width 0.22s ease, height 0.22s ease; pointer-events: none; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 24px)); padding: 16px 16px 14px; background: var(--panel); border: 2px solid var(--edge);
  box-shadow: 0 5px 0 var(--shade), 0 18px 40px rgba(0, 0, 0, 0.45); color: var(--text); animation: tour-in 0.2s ease-out; }
.tour-card.center { left: 50%; top: 50%; transform: translate(-50%, -50%); animation: none; }
.tour-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.tour-skip { min-height: 36px; padding: 6px 4px 6px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (hover: hover) { .tour-skip:hover { color: var(--text); } }
.tour-title { margin: 0 0 6px; font-size: 18px; color: var(--accent); }
.tour-text { margin: 0; font-size: 15px; line-height: 1.5; }
.tour-dots { display: flex; gap: 4px; margin: 14px 0 12px; }
.tour-dots i { flex: 1; height: 5px; background: var(--panel3); }
.tour-dots i.on { background: var(--accent); }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tour-actions .btn { min-height: 42px; min-width: 104px; justify-content: center; }
.tour-actions .btn[hidden] { display: none; }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .tour-card { left: 12px; right: 12px; width: auto; }
  .tour-card.center { left: 12px; right: 12px; transform: translateY(-50%); }
  .tour-text { font-size: 14px; }
  .tour-actions .btn { flex: 1; }
}
