/* Stuck-player nudge (js/nudge.js). The highlight is a steady gold outline
   plus a pulse, so it still shows if another animation lands on the cell.
   The bubble itself reuses the game's .cell-tether look. */
#grid .cell.nudge-target {
  outline: 3px solid rgba(240,214,133,0.95); outline-offset: 1px; z-index: 3;
  animation: nudge-pulse 1.2s ease-in-out infinite;
}
@keyframes nudge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,214,133,0.6), 0 0 14px 3px rgba(240,214,133,0.45); }
  50%      { box-shadow: 0 0 0 3px rgba(240,214,133,0.9), 0 0 26px 8px rgba(240,214,133,0.65); }
}
@media (prefers-reduced-motion: reduce) { #grid .cell.nudge-target { animation: none; } }

/* Levels 1-3: the line that comes with the (?) button's idle glow
   (js/game.js armIdleNudge). Tappable -- opens the rules screen. */
.rules-glow-tip {
  position: fixed; z-index: 30; max-width: 240px;
  background: rgba(48,38,14,0.98); border: 1.5px solid rgba(200,168,78,0.8); border-radius: 9px;
  padding: 8px 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.6); cursor: pointer;
  font-family: 'Georgia', serif; font-style: italic; font-size: 14px; color: #e3dcc3; text-align: left;
}
.rules-glow-tip::before {
  content: ''; position: absolute; top: -7px; right: 14px; width: 11px; height: 11px;
  background: rgba(48,38,14,0.98); transform: rotate(45deg);
  border-left: 1.5px solid rgba(200,168,78,0.8); border-top: 1.5px solid rgba(200,168,78,0.8);
}

/* "Rules ›" link inside a level-1 wrong-press message (js/game.js
   RULES_LINK). The message bubble itself is the game's .cell-tether. */
.cell-tether .tether-rules-link {
  background: none; border: none; padding: 0 0 0 4px; margin: 0; cursor: pointer;
  font: inherit; font-style: normal; font-weight: 700; color: #e8c76a; text-decoration: underline;
  pointer-events: auto;
}
