/* =====================================================================
   Warden's Vigil - fixed "aged paper" theme.
   Everything pretends to be a duty ledger spread on warm paper: cream vellum
   ground, sepia ink type, parchment duty cards and a brass challenge
   ring. No glass, no center theming. The shared base.css is loaded
   (back chip + resets) but glass.css deliberately is not: this game
   keeps its own chrome (.c-bar, .c-btn, .c-modal and friends).
   ===================================================================== */

:root {
  --night-hi: #f3e9d1;
  --night: #e9dcbc;
  --night-lo: #d7c49a;
  --masonry: rgba(96, 74, 44, .09);
  --stone-edge: #d8c79c;

  --lamp: #c07d16;
  --lamp-deep: #7a5218;
  --moon: #443522;
  --moon-dim: #6e604a;
  --danger: #a83224;
  --teal: #2f8f7d;

  --parch: #f4ecd5;
  --parch-lo: #ddcca4;
  --ink: #2b2417;
  --ink-soft: #6e604a;

  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;

  /* Base scale: width of one duty card in the player's hand. Grows with
     width but height-capped so rival row, board, and your row fit one
     screen with no scrolling. */
  --u: clamp(40px, min(8.5vw, calc((100vh - 280px) / 4.2)), 84px);
}

/* ---------- The gate yard ---------- */
body.wv-page {
  margin: 0;
  min-height: 100vh;
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--night);
  background-image:
    radial-gradient(90% 55% at 50% -12%, rgba(176, 132, 70, .16), transparent 62%),
    radial-gradient(52% 40% at 50% 50%, rgba(255, 191, 107, .12), transparent 70%),
    repeating-linear-gradient(0deg, var(--masonry) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--masonry) 0 1px, transparent 1px 68px),
    radial-gradient(95% 65% at 50% 122%, rgba(120, 92, 52, .08), transparent 74%),
    linear-gradient(180deg, var(--night-hi), var(--night) 55%, var(--night-lo));
  background-attachment: fixed;
}
body.wv-page *,
body.wv-page *::before,
body.wv-page *::after { box-sizing: border-box; }

.wv-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: none;
}

/* ---------- Top bar: a stone lintel with a hanging lamp ---------- */
.c-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px clamp(12px, 3vw, 26px) 11px;
  color: var(--ink);
  background: linear-gradient(180deg, #efe4c9, #e3d3ad 70%, #d6c199);
  border-bottom: 1px solid rgba(122, 82, 24, .34);
  box-shadow: 0 8px 22px rgba(120, 95, 55, .16), inset 0 1px 0 rgba(255, 255, 255, .7);
}
/* The lantern hook glow. */
.c-bar::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe6bd, var(--lamp) 60%, #7a5218);
  box-shadow: 0 0 14px 3px rgba(192, 125, 22, .35);
  pointer-events: none;
}

.c-bar__brand { display: flex; align-items: center; gap: 9px; }
.c-bar__brand svg { display: block; filter: drop-shadow(0 1px 3px rgba(122, 82, 24, .35)); }
.c-bar__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: .01em;
  color: #3a2b1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.c-bar__stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stat {
  font-size: 11.5px;
  letter-spacing: .03em;
  color: rgba(74, 59, 42, .72);
}
.stat b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
}
.c-bar__controls { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* Buttons read as brass duty tags. */
.c-btn {
  appearance: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 6px 12px;
  border-radius: 5px;
  color: #3a2b1a;
  background: linear-gradient(180deg, #eef3fa, #dbe6f2);
  border: 1px solid rgba(122, 82, 24, .4);
  box-shadow: 0 2px 0 rgba(150, 160, 180, .35), 0 5px 14px rgba(92, 70, 44, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .12s ease, filter .12s ease;
}
.c-btn:hover { filter: brightness(1.04); }
.c-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(150, 160, 180, .35); }
.c-btn:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.c-btn[disabled] { opacity: .5; cursor: default; filter: none; transform: none; }
.c-btn--primary {
  color: #241203;
  background: linear-gradient(180deg, #ffcf8a, var(--lamp-deep));
  border-color: #7a5218;
  box-shadow: 0 2px 0 #7a5218, 0 5px 14px rgba(200, 150, 70, .28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}

/* The two decisions, sized up on the board. */
.c-btn--accuse {
  font-size: 14px;
  padding: 9px 16px;
  color: #ffe2dc;
  background: linear-gradient(180deg, #a03629, #7c2418);
  border-color: #7c2418;
  box-shadow: 0 2px 0 #4d150c, 0 6px 16px rgba(212, 72, 58, .3);
}
.c-btn--accuse:not([disabled]) { animation: wvRing 1.6s ease-in-out infinite alternate; }
.c-btn--hold {
  font-size: 14px;
  padding: 9px 16px;
  color: #eaf4ff;
  background: linear-gradient(180deg, #2c5a7c, #1f4462);
  border-color: #1f4462;
  box-shadow: 0 2px 0 #16354b, 0 6px 16px rgba(40, 90, 120, .28);
}
.c-btn__key {
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  width: 1.5em;
  height: 1.5em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .4);
  font-family: var(--font-mono);
  font-size: 10px;
  vertical-align: middle;
}

/* ---------- Yard ---------- */
.wv-yard {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(8px, 1.8vh, 18px);
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(8px, 1.8vh, 18px) clamp(10px, 3vw, 22px) clamp(10px, 2vh, 20px);
  position: relative;
}
/* The low morning sun over the gate arch. */
.wv-yard::before {
  content: "";
  position: absolute;
  top: 6%;
  right: 9%;
  width: min(16vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff6e2, #ffe6bd 62%, #d9b877);
  box-shadow: 0 0 40px 12px rgba(255, 205, 130, .3);
  opacity: .6;
  pointer-events: none;
}

/* ---------- Sides ---------- */
.wv-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(5px, calc(var(--u) * .1));
  width: 100%;
}
.wv-side__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wv-side__tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(74, 59, 42, .6);
}
.wv-side__name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #3a2b1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
/* Challenge token: ready vs spent. */
.wv-token {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #241203;
  background: linear-gradient(180deg, #ffdfaf, var(--lamp));
  border: 1px solid #7a5218;
  box-shadow: 0 0 10px rgba(192, 125, 22, .35);
}
.wv-token.is-spent {
  color: rgba(74, 59, 42, .55);
  background: #e4d9bf;
  border-color: rgba(74, 59, 42, .25);
  box-shadow: none;
  text-decoration: line-through;
}
.wv-token[hidden] { display: none; }
.wv-score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(74, 59, 42, .8);
}

/* Side layout: hand on top, watch line and detained book beneath. */
.wv-row {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "hand hand"
    "line book";
  justify-content: center;
  align-items: center;
  column-gap: clamp(8px, 2.4vw, 22px);
  row-gap: max(4px, calc(var(--u) * .08));
  width: 100%;
}
.wv-hand { grid-area: hand; }
.wv-line { grid-area: line; }
.wv-book { grid-area: book; }
.wv-hand, .wv-line, .wv-book {
  display: flex;
  align-items: center;
  gap: max(3px, calc(var(--u) * .06));
}
.wv-hand { min-height: calc(var(--u) * 1.4); }
.wv-line {
  padding: 4px max(6px, calc(var(--u) * .1));
  border-radius: 10px;
  border: 1px dashed rgba(92, 70, 44, .3);
  background: rgba(92, 70, 44, .1);
  min-width: calc(var(--u) * 2.2);
  min-height: calc(var(--u) * .9);
}
.wv-book { min-width: calc(var(--u) * 1.1); min-height: calc(var(--u) * .9); }

/* ---------- Cards ---------- */
/* A face-up duty card in your hand: clickable until committed. */
.wv-card {
  appearance: none;
  position: relative;
  width: var(--u);
  height: calc(var(--u) * 1.4);
  padding: 0;
  border-radius: max(5px, calc(var(--u) * .09));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(180deg, #f4eede, var(--parch) 58%, var(--parch-lo));
  border: 1px solid #97876a;
  box-shadow: 0 8px 16px rgba(92, 70, 44, .2), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .1s ease, box-shadow .15s ease, filter .15s ease;
  font: inherit;
}
.wv-card:hover, .wv-card:focus-visible {
  transform: translateY(calc(var(--u) * -.08)) rotate(-1.2deg);
  box-shadow: 0 14px 24px rgba(92, 70, 44, .24), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.wv-card:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.wv-card:active { transform: translateY(calc(var(--u) * -.03)); }
.wv-card[disabled] { cursor: default; transform: none; }
.wv-card__n {
  position: absolute;
  top: max(3px, calc(var(--u) * .05));
  left: max(5px, calc(var(--u) * .07));
  font-family: var(--font-mono);
  font-size: max(10px, calc(var(--u) * .16));
  font-weight: 700;
}
.wv-card__art { width: 52%; }
.wv-card__art svg { width: 100%; height: auto; display: block; }
.wv-card__label {
  font-family: var(--font-serif);
  font-size: max(8px, calc(var(--u) * .115));
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wv-card__key {
  position: absolute;
  top: max(3px, calc(var(--u) * .05));
  right: max(5px, calc(var(--u) * .07));
  font-family: var(--font-mono);
  font-size: max(8px, calc(var(--u) * .11));
  color: rgba(98, 105, 126, .7);
}
/* Type tints on the parchment. */
.wv-card.k .wv-card__n { color: #31437a; }
.wv-card.m .wv-card__n { color: #6b3fa0; }
.wv-card.s {
  background: linear-gradient(180deg, #3a3148, #241d30 60%, #1a1426);
  border-color: #5a4a72;
  color: #ffd9d2;
}
.wv-card.s .wv-card__label { color: #e8a99f; }
.wv-card.s:hover, .wv-card.s:focus-visible {
  box-shadow: 0 14px 24px rgba(92, 70, 44, .24), 0 0 16px 3px rgba(178, 58, 44, .35);
}

/* Face-down card (the rival's, or yours mid-commit). */
.wv-back {
  position: relative;
  width: calc(var(--u) * .72);
  height: calc(var(--u) * 1.02);
  border-radius: max(4px, calc(var(--u) * .08));
  background:
    radial-gradient(55% 40% at 50% 38%, rgba(255, 191, 107, .35), transparent 70%),
    linear-gradient(180deg, #6e5836, #4a3a24);
  border: 1px solid rgba(120, 92, 52, .6);
  box-shadow: 0 5px 12px rgba(92, 70, 44, .22), inset 0 0 0 3px rgba(255, 191, 107, .18);
  display: grid;
  place-items: center;
}
.wv-back::after {
  content: "";
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.6px dashed rgba(255, 205, 130, .8);
}
.wv-hand--foe { padding: 2px 0; }

/* Deal/drop motion is opt-in. The hand is rebuilt on every render, so baking
   the animation into the base class replayed it on every card each click. Only
   freshly dealt (is-dealt) or just-played (is-drop) cards animate now. */
.wv-card.is-dealt,
.wv-back.is-dealt { animation: wvDeal .3s ease-out both; }
.wv-mini.is-drop { animation: wvDrop .3s ease-out both; }

/* Committed line cards: yours small and face-up, theirs backs. */
.wv-mini {
  position: relative;
  width: calc(var(--u) * .58);
  height: calc(var(--u) * .82);
  border-radius: max(3px, calc(var(--u) * .06));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: linear-gradient(180deg, #f4eede, var(--parch) 60%, var(--parch-lo));
  border: 1px solid #97876a;
  box-shadow: 0 4px 10px rgba(92, 70, 44, .18);
  font-family: var(--font-mono);
  font-size: max(9px, calc(var(--u) * .16));
  font-weight: 700;
}
.wv-mini svg { width: 46%; height: auto; }
.wv-mini.s { background: linear-gradient(180deg, #3a3148, #201a2e); border-color: #5a4a72; color: #ffd9d2; }
.wv-mini.is-fresh { outline: 2px solid var(--lamp); outline-offset: 2px; box-shadow: 0 0 14px 3px rgba(192, 125, 22, .4); }
.wv-mini.is-held::after {
  content: "\00d72";
  position: absolute;
  top: -7px;
  right: -6px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: max(8px, calc(var(--u) * .12));
  color: #241203;
  background: linear-gradient(180deg, #ffdfaf, var(--lamp));
  border: 1px solid #7a5218;
}
.wv-mini.is-spied { animation: wvSpyFlash .6s ease 2; }

/* A card whose double was stripped by a mage ward: faded, with a purple x1 chip. */
.wv-mini.is-dim { opacity: .78; filter: saturate(.65); }
.wv-mini.is-dim::after {
  content: "\00d71";
  position: absolute;
  top: -7px;
  right: -6px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: max(8px, calc(var(--u) * .12));
  color: #2a1b45;
  background: linear-gradient(180deg, #e4d6f5, #b78fe0);
  border: 1px solid #6b3fa0;
}

/* The rival's newest, as a back with the same fresh ring. */
.wv-back.is-fresh { outline: 2px solid var(--lamp); outline-offset: 2px; box-shadow: 0 0 14px 3px rgba(192, 125, 22, .4); }

/* ---------- The board ---------- */
.wv-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: max(6px, calc(var(--u) * .08)) 14px;
  border-radius: 14px;
  border: 1px solid rgba(92, 70, 44, .22);
  background: linear-gradient(180deg, rgba(240, 228, 200, .6), rgba(228, 214, 182, .5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 24px rgba(92, 70, 44, .16);
}
.wv-trick {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lamp-deep);
}
.wv-verdict {
  margin: 0;
  text-align: center;
  font-size: clamp(12.5px, 2vw, 15px);
  font-weight: 600;
  color: var(--moon);
  min-height: 2.6em;
  max-width: 62ch;
}
.wv-verdict b { color: var(--lamp); }
.wv-verdict .bad { color: var(--danger); }
.wv-verdict .good { color: var(--teal); }
.wv-verdict.is-flash { animation: wvFlash .4s ease; }
.wv-acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Modals ---------- */
.c-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  padding: 18px;
  overflow-y: auto;            /* the overlay scrolls, never the card */
  overscroll-behavior: contain;
}
.c-modal[hidden] { display: none; }
.c-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 46, 30, .42);
  cursor: pointer;
}
.c-modal__panel {
  position: relative;
  z-index: 1;
  margin: auto;                /* centres AND lets a too-tall card scroll */
  width: min(94vw, 520px);
  color: var(--ink);
  background: linear-gradient(180deg, #f4eedd, var(--parch) 62%, #dccfae);
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 0 0 1px rgba(78, 62, 44, .4),
    0 0 26px rgba(192, 125, 22, .14),
    0 24px 56px rgba(50, 62, 34, .3);
  animation: wvSheet .26s ease-out both;
}
/* A brass ring at the top of every sheet. */
.c-modal__panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 26px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 8px 8px 0 0;
  border: 3px solid var(--lamp-deep);
  border-bottom: none;
  pointer-events: none;
}
.wv-rules { width: min(94vw, 600px); }
.c-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(78, 62, 44, .3);
}
.c-modal__head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -.01em;
  color: #2f2718;
}
.c-modal__x {
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid rgba(78, 62, 44, .45);
  background: linear-gradient(180deg, #fbf6e9, #e6dcc2);
  color: #4a3f2c;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.c-modal__x:hover { filter: brightness(1.05); }
/* The author display:grid above would beat the [hidden] attribute on its own. */
.c-modal__x[hidden] { display: none; }
.c-modal__body { padding: 12px 20px 4px; font-size: 13px; line-height: 1.55; color: #3d3324; }
.c-modal__body h3 {
  margin: 14px 0 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(66, 54, 38, .66);
}
.c-modal__body ul { margin: 0 0 8px; padding-left: 16px; }
.c-modal__body li { margin-bottom: 4px; }
.c-modal__body li::marker { color: rgba(179, 120, 31, .8); }
.c-modal__body b { color: #241a12; }
.c-modal__body kbd {
  padding: 0 4px;
  border-radius: 2px;
  border: 1px solid rgba(78, 62, 44, .45);
  background: rgba(255, 255, 255, .6);
  font-family: var(--font-mono);
  font-size: 11px;
}
.c-modal__lead { margin: 0 0 10px; font-size: 13px; }
.c-modal__note {
  margin: 12px 0 2px;
  font-size: 11px;
  color: rgba(66, 54, 38, .72);
}
.c-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 18px 14px;
}

/* ---------- Flow contents ---------- */
.wv-flow-lead { margin: 0 0 12px; font-size: 13px; }
.wv-end { text-align: center; padding: 4px 0 2px; }
.wv-end__big {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #2f2718;
  margin: 0 0 4px;
}
.wv-end__sub { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-soft); }
.wv-end__stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.wv-end__stat {
  min-width: 88px;
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .5);
  border: 1px dashed rgba(78, 62, 44, .4);
}
.wv-end__stat b { display: block; font-family: var(--font-mono); font-size: 17px; line-height: 1.2; color: #241a12; }
.wv-end__stat span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.wv-vs {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  margin: 0 0 12px;
  color: #2f2718;
}
.wv-vs b { color: #a03629; }

/* ---------- Toast ---------- */
.c-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  padding: 8px 16px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(180deg, #f4eedd, #ddceb0);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(78, 62, 44, .5), 0 12px 26px rgba(50, 62, 34, .28);
  animation: wvToast .22s ease-out both;
}
.c-toast[hidden] { display: none; }

/* ---------- Motion ---------- */
@keyframes wvRing {
  from { box-shadow: 0 2px 0 #4d150c, 0 6px 14px rgba(212, 72, 58, .22); }
  to { box-shadow: 0 2px 0 #4d150c, 0 6px 22px rgba(212, 72, 58, .5); }
}
@keyframes wvSheet {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes wvDeal {
  from { opacity: 0; transform: translateY(-14px) rotate(-4deg); }
}
@keyframes wvDrop {
  from { opacity: 0; transform: translateY(-10px) scale(.9); }
}
@keyframes wvFlash {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes wvSpyFlash {
  0%, 100% { box-shadow: 0 4px 10px rgba(92, 70, 44, .18); }
  50% { box-shadow: 0 0 0 3px var(--danger), 0 0 26px 8px rgba(178, 58, 44, .55); }
}
@keyframes wvToast {
  from { opacity: 0; transform: translate(-50%, 10px); }
}

/* ---------- Responsive ---------- */
/* Large screens are handled fluidly by --u; these only shave things down for
   narrow phones. */
@media (max-width: 620px) {
  .c-bar { gap: 8px; padding: 8px 10px 9px; }
  .c-bar__title { font-size: 18px; }
  .c-bar__stats { gap: 9px; }
  .stat { font-size: 10.5px; }
  .c-bar__controls { gap: 4px; }
  .c-btn { padding: 5px 8px; font-size: 11px; }
  .wv-book { display: none; }
  .c-modal__body { padding: 10px 14px 4px; }
  .c-modal__head { padding: 12px 14px 9px; }
  .c-modal__foot { padding: 8px 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-btn--accuse,
  .wv-card.is-dealt,
  .wv-back.is-dealt,
  .wv-mini.is-drop,
  .c-modal__panel,
  .c-toast {
    animation: none;
    transition: none;
  }
  .wv-verdict.is-flash { animation: none; }
}
