/* games.css — the games (games.js). Every class starts with "gm-". */
.gm-top { text-align: center; }
.gm-cross { font-size: 26px; color: var(--rubric); }
.gm-list { list-style: none; margin: 18px 0 0; padding: 0; }
.gm-list li + li { border-top: 1px solid var(--border); }
.gm-list a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; color: var(--ink); text-decoration: none; }
.gm-list a:hover b { color: var(--rubric); }
.gm-li { flex: none; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--gold); line-height: 0; }
.gm-lm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gm-lm b { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.gm-lm span { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.gm-lb { flex: none; font: 700 13px var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.gm-fine { font: 12.5px/1.5 var(--sans); color: var(--muted); margin: 14px 0 0; text-align: center; }

.gm-title { font-family: var(--display); font-weight: 600; font-size: 38px; line-height: 1.15; margin: 6px 0 0; }
.gm-sub { margin: 6px 0 10px; color: var(--ink-2); font-size: 17px; }
.gm-scopes { margin: 4px 0 14px; }
.gm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 6px 0 12px; }
.gm-dots { list-style: none; display: flex; gap: 5px; margin: 0; padding: 0; }
.gm-dots li { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--border-2); }
.gm-dots li.is-cur { border-color: var(--gold-2); }
.gm-dots li.is-ok { background: var(--gold-2); border-color: var(--gold-2); }
.gm-dots li.is-no { background: var(--surface-3); border-color: var(--muted); }
.gm-score { font: 600 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.gm-score b { color: var(--rubric); font-weight: 600; }
.gm-prompt { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); }
.gm-verse { margin: 0; font-size: calc(var(--fs) + 1px); line-height: 1.55; color: var(--ink); }
.gm-verse cite { font: normal 13px var(--sans); color: var(--muted); white-space: nowrap; }
.gm-la { font-style: italic; }
.gm-hint { margin: 8px 0 0; font: 12.5px var(--sans); color: var(--muted); }
.gm-gap { display: inline-block; min-width: 3.5em; border-bottom: 2px solid var(--gold-2); color: transparent; line-height: 1; }
.gm-q { margin: 0; font-size: 19px; line-height: 1.45; }
.gm-ql { font-weight: 700; color: var(--rubric); }
.gm-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.gm-choices.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gm-choice { display: flex; align-items: center; text-align: left; width: 100%; min-height: 46px; padding: 9px 14px; border: 1px solid var(--border-2); border-radius: var(--r-2);
  background: var(--surface); color: var(--ink); font: 17px/1.4 var(--serif); cursor: pointer; }
.gm-choice > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.gm-choice small { font: 12.5px var(--sans); color: var(--muted); }
.gm-choice:hover:not(:disabled) { border-color: var(--gold-2); background: var(--surface-2); }
.gm-choice:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.gm-choice:disabled { cursor: default; opacity: .7; }
.gm-choice.is-ok { opacity: 1; border-color: var(--gold-2); background: var(--surface-2); box-shadow: inset 4px 0 0 var(--gold-2); }
.gm-choice.is-no { opacity: 1; border-color: var(--rubric); box-shadow: inset 4px 0 0 var(--rubric); }
.gm-ans { font-size: 16px; }
.gm-choice.is-shake { animation: gm-shake .35s; }
@keyframes gm-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .gm-choice.is-shake { animation: none; } }
.gm-placed { margin: 12px 0 0; padding-left: 1.4em; color: var(--ink-2); font-size: 16px; }
.gm-fb { margin-top: 12px; }
.gm-fb p { margin: 4px 0 8px; color: var(--ink-2); line-height: 1.5; }
.gm-fb a { color: var(--link); }
.gm-verdict { font: 700 15px var(--sans); }
.gm-verdict.is-ok { color: var(--gold); }
.gm-verdict.is-no { color: var(--rubric); }
.gm-end { text-align: center; padding: 18px 4px 6px; }
.gm-big { font-family: var(--display); font-size: 46px; font-weight: 600; margin: 6px 0 0; }
.gm-endt { margin: 2px 0 0; color: var(--ink-2); font-size: 18px; }
.gm-endb { justify-content: center; margin-top: 14px; }
@media (max-width: 520px) { .gm-title { font-size: 31px; } }
