/* =====================================================================
   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).
   ===================================================================== */
/* RESTYLED to the Made In look (madein-designer, 2026-10-14): white card, 1px #141414 rule, square corners,
   Landour kicker, Archivo text, square letter tiles that invert on hover. The tokens below are the whole palette. */
.ag-card {
  --paper: #fff; --paper-2: #fff; --tile: #fff;
  --ink: #141414; --ink-soft: #5f5f5f; --crimson: #141414; --gold: #141414;
  --line: #141414; --shadow: rgba(20, 20, 20, .35);
  --display: Archivo, Arial, sans-serif; --ui: Archivo, Arial, sans-serif;
}
.mi-pullquote.ag-card {
  padding: 18px 20px; border: 1px solid #141414; border-radius: 0; background: var(--tile); color: var(--ink);
  font-family: var(--ui); 
}
.ag-card .feed-type { font-family: Landour, Arial, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #141414; }
.ag-card .ag-kicker { color: var(--crimson); }
.ag-h { font-family: var(--display); font-weight: 500; 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 #141414; 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: #141414; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.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: 0; display: grid; place-items: center;
  border: 1px dashed #141414; background: #fff; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink); text-transform: uppercase; }
.ag-slot.filled { border-style: solid; border-color: #141414; cursor: pointer; transition: .12s ease; }
.ag-slot.filled:hover, .ag-slot.filled:focus-visible { outline: none;
  background: #141414; color: #fff; text-decoration: line-through;
  text-decoration-thickness: 2px; }
.ag-rack { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.ag-tile { width: 40px; height: 46px; border-radius: 0; cursor: pointer; font: inherit; font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase;
  border: 1px solid #141414; background: #fff; color: #141414; box-shadow: none; transition: background .15s ease, color .15s ease; padding: 0; }
.ag-tile:hover:not(:disabled), .ag-tile:focus-visible { background: #141414; color: #fff; }
.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: 0;
  padding: 7px 16px; border: 1px solid #141414; color: #141414; background: transparent; transition: .15s ease; }
.ag-btn:hover { background: #141414; color: #fff; }
.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 #141414; 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 { transition: 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; } }
