/* Analytics consent banner (see consent.js), in the dungeon's palette: a dark
   stone card with a pink spray edge, pinned to the bottom corner on wide
   screens and full-width on phones. Both choices carry equal weight. */
.consent {
  position: fixed; z-index: 100;
  right: 24px; bottom: 24px; left: auto;
  max-width: 400px;
  padding: 20px 20px 18px;
  background: #1c1310; color: #f1e6cf;
  border: 1px solid #4a3328; border-radius: 8px;
  background-image: linear-gradient(90deg, #ff4fa3, #ff4fa3);
  background-size: 100% 4px; background-repeat: no-repeat;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8);
  font: 600 16px/1.45 "Barlow SC", system-ui, sans-serif;
  text-align: left;
  animation: consent-in 180ms ease-out;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; color: #cdbfa6; }
.consent a { color: #ff7fbd; white-space: nowrap; text-underline-offset: 3px; }
.consent a:hover { color: #f1e6cf; }
.consent-actions { display: flex; gap: 10px; margin-top: 14px; }
.consent button {
  flex: 1 1 0; min-height: 44px; padding: 0 16px;
  font: inherit;
  color: #f1e6cf; background: #0b0807;
  border: 1px solid #4a3328; border-radius: 6px;
  cursor: pointer;
}
.consent button:hover { border-color: #ff4fa3; }
.consent button:focus-visible, .consent a:focus-visible {
  outline: 2px solid #ff4fa3; outline-offset: 3px;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
}
@media (max-width: 599px) {
  .consent { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* Footer control that reopens the banner, styled like the footer's links. */
.consent-open {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.consent-open:hover { color: #ff7fbd; }
.consent-open:focus-visible, footer a:focus-visible {
  outline: 2px solid #ff4fa3; outline-offset: 4px; border-radius: 3px;
}
