/* =====================================================================
   ANAGRAM QUOTE — the look of bossfeed's Anagram Ladder card.

   MIRRORS the .ag-* rules and the .feed-card / .feed-type base of
   the bossfeed repo finalboss-games-site feed/feed.css at commit 172274ac2e46, with
   bossfeed's LIGHT brand tokens re-declared scoped to .ag-card (bossfeed
   keeps them on its page root). Ours, not bossfeed's: the card sits in the
   quotes grid (it fills its cell), focus rings for keyboard players, the
   source line, and the no-JS fallback.
   Loaded only on a page with a ladder card (src/blocks.ts).
   ===================================================================== */
.ag-card {
  --paper: #f3ead6; --paper-2: #ece0c4; --tile: #f7f0df;
  --ink: #211c17; --ink-soft: #6a6253; --crimson: #8e1d1d; --gold: #a9802f;
  --line: rgba(33, 28, 23, .16); --shadow: rgba(33, 28, 23, .35);
  --display: "EB Garamond", Georgia, serif; --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.mi-pullquote.ag-card {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--tile); color: var(--ink);
  font-family: var(--ui); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mi-pullquote.ag-card:hover { box-shadow: 0 16px 34px -22px var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--crimson) 35%, var(--line)); }
.ag-card .feed-type { font-family: var(--ui); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); }
.ag-card .ag-kicker { color: var(--crimson); }
.ag-h { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; margin: 2px 0 10px; color: var(--ink); }
.ag-verse { font-family: var(--display); font-size: 20px; line-height: 1.5; margin: 0; color: var(--ink); border-left: 3px solid var(--gold); padding: 2px 0 2px 14px; }
.ag-word { font-style: normal; }
.ag-word.blank { letter-spacing: .12em; color: var(--ink-soft); }
.ag-word.blank.cur { color: var(--crimson); font-weight: 600; }
.ag-word.done { color: var(--gold); font-weight: 600; }
.ag-author { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; text-align: right; }
.ag-source { font-size: 12px; color: var(--ink-soft); margin: 2px 0 0; text-align: right; }
.ag-source .mi-source { color: var(--ink-soft); }
.ag-play { margin: 16px 0 0; }
.ag-progress { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.ag-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; min-height: 42px; }
.ag-slot { width: 38px; height: 42px; border-radius: 9px; display: grid; place-items: center;
  border: 2px dashed var(--line); background: var(--paper-2); font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink); text-transform: uppercase; }
.ag-slot.filled { border-style: solid; border-color: var(--crimson); cursor: pointer; transition: .12s ease; }
.ag-slot.filled:hover, .ag-slot.filled:focus-visible { outline: none;
  background: color-mix(in srgb, var(--crimson) 14%, var(--paper-2)); text-decoration: line-through;
  text-decoration-thickness: 2px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--crimson) 45%, transparent); }
.ag-rack { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.ag-tile { width: 40px; height: 46px; border-radius: 10px; cursor: pointer; font: inherit; font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--tile); color: var(--ink); box-shadow: 0 2px 0 var(--line); transition: transform .1s ease, background .12s ease; padding: 0; }
.ag-tile:hover { border-color: var(--crimson); color: var(--crimson); }
.ag-tile:active { transform: translateY(2px); box-shadow: none; }
.ag-tile.used { opacity: .28; cursor: default; box-shadow: none; }
.ag-actions, .ag-end { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-btn { font: inherit; font-family: var(--ui); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 999px;
  padding: 7px 16px; border: 1px solid var(--line); color: var(--ink-soft); background: transparent; transition: .15s ease; }
.ag-btn:hover { color: var(--crimson); border-color: var(--crimson); }
.ag-msg { margin: 10px 0 0; font-size: 13.5px; font-weight: 500; }
.ag-msg.ok { color: var(--gold); }
.ag-msg.warn { color: var(--crimson); }
.ag-done { font-family: var(--display); font-size: 17px; line-height: 1.45; margin: 6px 0 12px; color: var(--ink); }
.ag-again { padding: 8px 18px; border-color: var(--crimson); color: var(--crimson); }
.ag-again:hover { background: var(--crimson); color: #fff; }
.ag-card :focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.ag-plain { border: 0; padding: 0; margin: .6em 0; font-family: var(--display); font-size: 20px; line-height: 1.5; }
/* without JavaScript the plain quote (noscript) stands in for the puzzle */
html:not(.js) .ag-card .ag-h, html:not(.js) .ag-card .ag-verse, html:not(.js) .ag-card .ag-play { display: none; }
@media (prefers-reduced-motion: reduce) { .ag-tile, .mi-pullquote.ag-card { transition: none; } .mi-pullquote.ag-card:hover { transform: none; } }
@media (max-width: 480px) {
  .ag-slots { gap: 4px; justify-content: center; }
  .ag-slot { width: 34px; height: 40px; font-size: 20px; }
  .ag-rack { gap: 4px; justify-content: center; }
  .ag-tile { width: 36px; height: 44px; font-size: 20px; }
}
@media print { .ag-actions, .ag-end, .ag-msg { display: none; } }
