/* In-game feedback card (pulse.js): a file card above the bottom bar, the partner's face on its left, like the clue toast. */
.pl { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: var(--pb, 80px); z-index: 22;
  max-width: 460px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 34px 12px 12px;
  background: var(--file); color: var(--file-ink); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.55);
  transform: translateY(16px) rotate(-.6deg); opacity: 0; transition: transform .25s, opacity .25s; }
.pl.show { transform: rotate(-.6deg); opacity: 1; }
.pl .pa-face { width: 44px; height: 44px; border-width: 2px; box-shadow: none; }
.pl-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.pl-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--file-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.pl-k { margin: 0; font-family: var(--f-type); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--file-muted); }
.pl-q { margin: 0; font-family: var(--f-type); font-size: 15px; line-height: 1.35; }
.pl-k + .pl-q { margin-top: -4px; }

.pl-stars { display: flex; gap: 2px; }
.pl-star { flex: 1; max-width: 52px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pl-star svg { width: 32px; height: 32px; fill: none; stroke: var(--file-ink); transition: transform .12s, fill .12s; }
.pl-star.on svg { fill: #c9932b; stroke: #7a5410; transform: scale(1.08); }
.pl-star:focus-visible { outline: 2px solid var(--file-ink); outline-offset: -2px; border-radius: 8px; }
.pl-ends { display: flex; justify-content: space-between; max-width: 260px; font-size: 12px; color: var(--file-muted); margin-top: -4px; }

.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--file-ink); background: transparent; color: var(--file-ink); font: 600 13px var(--f-body); cursor: pointer; }
.pl-chip[aria-pressed="true"] { background: var(--file-ink); color: var(--file); }
.pl-text, .pl-email { width: 100%; box-sizing: border-box; min-height: 42px; padding: 9px 10px; border-radius: 8px; border: 1.5px solid rgba(43,33,21,.4);
  background: rgba(255,255,255,.55); color: var(--file-ink); font: 16px var(--f-body); resize: vertical; }   /* 16px: iOS doesn't zoom in */
.pl-text:focus, .pl-email:focus { outline: none; border-color: var(--file-ink); }
.pl-send { justify-self: start; }

.pl-form { display: grid; gap: 6px; }
.pl-row { display: flex; gap: 8px; }
.pl-row .pl-email { flex: 1; min-width: 0; }
.pl-row .fbtn { flex: none; min-height: 42px; }
.pl-fine { margin: 0; font-size: 12px; line-height: 1.35; color: var(--file-muted); }
.pl-err { margin: 0; font-size: 13px; color: #a3291b; }
.pl-no { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--file-muted); font: 13px var(--f-body); text-decoration: underline; cursor: pointer; }
.pl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* the same offer inside the result card's feedback box */
.fb .pl-form { margin-top: 4px; }

@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .pl { left: 16px; right: 376px; } }
@media (prefers-reduced-motion: reduce) { .pl, .pl-star svg { transition: none; } }

[data-theme="cozy"] .pl { border-radius: 18px; box-shadow: 0 10px 28px rgba(75,58,42,.28); transform: translateY(16px); }
[data-theme="cozy"] .pl.show { transform: none; }
[data-theme="cozy"] .pl-star.on svg { fill: var(--ember); stroke: #c4573a; }
[data-theme="cozy"] .pl-chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; }
[data-theme="cozy"] .pl-text, [data-theme="cozy"] .pl-email { border-radius: 14px; background: #fff; }
.pl-form .fbtn.solid, .pl-send { font-size: 16px; padding: 0 14px; min-height: 42px; }
