/* deck.css — Dhelmise's own touches on top of /css/guide.css: the anchor that drops on the first load
 * of a session (click to replay) and the anchor mark on card backs. */
[data-deck="dhelmise"] {
  --deck-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='9' r='5.5'/%3E%3Cpath d='M32 14.5V70M19 26h26M8 52c1 13 12 20 24 20s23-7 24-20M3 57l5-9 7 8M61 57l-5-9-7 8'/%3E%3C/svg%3E");
}


/* the anchor: drops in on the first load of a session, click to replay */
.anchor {
  position: relative;
  flex: none;
  width: 0.6em;
  height: 0.78em;
  margin: 0 0 0.04em 0.14em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  cursor: pointer;
}
.anchor:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; border-radius: 6px; }
.anchor__svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transform-origin: 50% 100%; }
.anchor__chain {
  position: absolute;
  left: 50%;
  bottom: 96%;
  width: 6px;
  height: 140vh;
  margin-left: -3px;
  border-radius: 3px;
  background: repeating-linear-gradient(to top, currentColor 0 9px, transparent 9px 15px);
  opacity: 0;
  pointer-events: none;
}
.anchor__ripple {
  position: absolute;
  left: 50%;
  bottom: -0.02em;
  width: 1.7em;
  height: 0.34em;
  margin-left: -0.85em;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
html.anchor-drop .anchor { animation: anchor-fall 1.1s cubic-bezier(0.6, 0.05, 0.9, 0.5) 0.3s backwards; }
html.anchor-drop .anchor__svg { animation: anchor-impact 0.55s var(--ease-out) 1.4s backwards; }
html.anchor-drop .anchor__chain { animation: chain-show 2.8s linear 0.3s backwards; }
html.anchor-drop .anchor__ripple { animation: ripple 1.5s var(--ease-out) 1.4s backwards; }
html.anchor-drop .anchor__ripple--2 { animation-delay: 1.65s; }
@keyframes anchor-fall   { from { transform: translateY(-115vh); } }
@keyframes anchor-impact { 0% { transform: scale(1, 1); } 25% { transform: scale(1.08, 0.9); } 55% { transform: scale(0.97, 1.04); } 100% { transform: scale(1, 1); } }
@keyframes chain-show    { 0%, 52% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes ripple        { 0% { opacity: 0.8; transform: scale(0.15); } 100% { opacity: 0; transform: scale(1.5); } }

@media (prefers-reduced-motion: reduce) {
  html.anchor-drop .anchor, html.anchor-drop .anchor__svg, html.anchor-drop .anchor__chain, html.anchor-drop .anchor__ripple { animation: none; }
}
