/* web/hud/requests.css
   A request waiting on you (web/hud/requests.js), each in its panel's colour, --tc: its
   card at the top of the panel, pulsing once; the panel's edge and title glowing while
   anything waits; and the pop-up at the top right of the game window. */

.rq-card {
  margin: .2em 0 .7em; padding: .55em .65em; border-radius: 7px;
  background: color-mix(in srgb, var(--tc) 9%, #12141b);
  border: 1px solid color-mix(in srgb, var(--tc) 45%, #2c3140);
  color: var(--pn-text);
}
.rq-words b { color: var(--ink); font-weight: 700; }
.rq-sub { margin-top: .2em; font-size: .9em; color: var(--pn-label); }
.rq-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin-top: .5em; }
.rq-pulse { animation: rq-pulse 1.4s ease-out 1; }
@keyframes rq-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc) 55%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

/* The glow sits inside the panel's edge, since the column clips anything outside it. */
.dkpanel[data-calling] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 55%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--tc) 18%, transparent);
}
.dkpanel[data-calling] .dkname { text-shadow: 0 0 8px color-mix(in srgb, var(--tc) 70%, transparent); }

/* The pop-ups stack down from the game window's top right, placed by the script. */
#rq-pops {
  position: absolute; z-index: 30; display: grid; gap: 8px;
  width: min(22em, calc(100% - 20px)); pointer-events: none;
  font-family: var(--mono); font-size: var(--panel-base, var(--mono-size));
}
.rq-pop {
  --tc: var(--pn-text);
  pointer-events: auto; padding: .6em .7em .7em; border-radius: 8px;
  background: color-mix(in srgb, var(--panel), #000 25%); color: var(--pn-text);
  border: 1px solid var(--cell-edge); border-left: 3px solid var(--tc);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6);
  animation: rq-in .25s ease-out; transition: opacity .4s;
}
.rq-pop.rq-going { opacity: 0; }
.rq-x {
  margin-left: auto; padding: 0 .3em; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 1.2em; line-height: 1; color: var(--pn-label);
}
.rq-x:hover { color: var(--ink); }
.rq-pop .pn-btn:focus-visible, .rq-card .pn-btn:focus-visible, .rq-x:focus-visible {
  outline: 2px solid #8fd3ff; outline-offset: 1px;
}
@keyframes rq-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .rq-pulse, .rq-pop { animation: none; }
  .rq-pop { transition: none; }
}
:root[data-motion="off"] .rq-pulse, :root[data-motion="off"] .rq-pop { animation: none; transition: none; }
