/* Pointer effects complement the action labels, focus outlines and touch controls. */
.brand:is(:hover, :focus-visible)::before { box-shadow: inset 0 0 0 1px var(--gold-bright); }
.brand:is(:hover, :focus-visible) img { filter: drop-shadow(0 0 5px #e7b86c5c); }
.nav a:focus-visible { color: #f1d19a; background: #6d492520; }
.journal:focus-visible::before { box-shadow: inset 0 0 0 2px var(--gold-bright); }
.button:focus-visible { border-color: var(--gold-bright); }
.button > svg, .inline-link > svg, .tile-arrow, .clue-item > svg:last-child, .panel-status > svg {
  transition: transform .18s ease, color .18s ease;
}
.button:is(:hover, :focus-visible) > svg:last-child,
.inline-link:is(:hover, :focus-visible) > svg:last-child,
.clue-item:is(:hover, :focus-visible) > svg:last-child,
.panel-chapter:is(:hover, :focus-visible) .panel-status > svg { transform: translateX(3px); }
.panel-chapter:is(:hover, :focus-visible) { background: #ad734615; }
.clue-item:is(:hover, :focus-visible) { background: var(--surface-hover); }
.hotspot { z-index: 2; }
.hotspot:is(:hover, :focus-visible) {
  z-index: 5; border-color: #f6dfaa; box-shadow: 0 0 0 4px #c99c613d, 0 8px 24px #100904b3;
}
.references a:is(:hover, :focus-visible) { color: var(--gold-bright); }
.record-list a:focus-visible { text-decoration: underline; }
.chapter-tile:is(:hover, :focus-visible) .tile-arrow { transform: translateX(-3px); color: #ffdf9d; }

.tile-preview {
  position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; padding: 9px 12px;
  background: linear-gradient(90deg, #221609ed, #25170ce2);
  border-top: 1px solid #b685525c; color: #f6dbb2; font-size: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.chapter-tile:is(:hover, :focus-visible) .tile-preview { opacity: 1; transform: translateY(0); }
.map-preview {
  position: absolute; display: inline-flex; align-items: center; gap: 5px;
  left: 0; top: calc(100% + 4px); padding: 5px 8px; color: #ffe4ba;
  border: 1px solid #9b6f46; border-radius: 4px; background: #26180ff5; white-space: nowrap;
  font-size: 10px; opacity: 0; transform: translateY(-3px);
  transition: transform .16s ease, opacity .16s ease; pointer-events: none;
}
.map-node.paper .map-preview { left: auto; right: 0; }
.map-node:is(:hover, :focus-visible) .map-preview { opacity: 1; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-pointer-light]::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(180px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #f5b35624, transparent 90%);
    opacity: 0; transition: opacity .24s ease;
  }
  [data-pointer-light]:hover::before { opacity: 1; }
  .hero[data-pointer-light]::before { z-index: -1; }
}

.clue-game-note {
  display: flex; gap: 8px; align-items: start; margin-top: 12px; padding: 10px 11px;
  background: #322416; border-inline-start: 2px solid #b3814d;
}
.clue-game-note svg { margin-top: 2px; color: var(--gold); }

.challenge-board { display: grid; gap: 13px; }

.challenge-hint {
  border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 12px;
  padding-top: 7px;
}
.challenge-hint summary { width: fit-content; min-height: 29px; cursor: pointer; color: var(--gold-bright); }
.challenge-hint summary:is(:hover, :focus-visible) { color: #ffe2a6; text-decoration: underline; }
.challenge-hint p { padding: 6px 8px; margin-top: 3px; background: #281d15; border-radius: 5px; }
.challenge-feedback:empty { display: none; }
.challenge-feedback { padding: 8px 10px; border-inline-start: 2px solid #d37f62; color: #ffbfab; background: #382019; font-size: 12px; }
.challenge-note { color: #bca88e; font-size: 11px; }
.challenge-success { display: grid; justify-items: start; gap: 12px; padding: 12px; border: 1px solid #65815d; border-radius: 7px; background: #222a1e; }
.challenge-success p { display: flex; align-items: center; gap: 6px; color: #c6e3b8; font-size: 13px; }


@media (max-width: 610px) {
  .map-node .map-preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-preview, .map-preview, .button > svg, .inline-link > svg, .tile-arrow,
  .clue-item > svg:last-child, .panel-status > svg { transition: none; }
}
