﻿:where(.og-anything-grid) :where(*:not(svg, svg *)) { all: revert; }
/* Anything Grid: paper-and-ink look. No web fonts, no build step. */
.og-anything-grid {
  --bg: #f4eddc;
  --paper: #fffaf0;
  --ink: #1b2236;
  --muted: #566078;
  --line: #d8ccb2;
  --blue: #27407f;
  --row: #1d6f68;
  --col: #a8452f;
  --hl: #ffd447;
  --footnote: #7b4bd6;
  --appendix: #2f78de;
  --chapter: #2c9a5e;
  --headline: #e5b422;
  --cover: #ef8a2c;
  --billboard: #d9453e;
  --blank: #394052;
  --radius: 12px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.og-anything-grid * { box-sizing: border-box; }
.og-anything-grid { -webkit-text-size-adjust: 100%; }
.og-anything-grid { margin: 0; padding: 10px 0 24px; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
.og-anything-grid a { color: var(--blue); }
.og-anything-grid a:hover { color: #0f1f4d; }
.og-anything-grid :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.og-anything-grid .skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.og-anything-grid .skip:focus { left: 8px; top: 8px; }

/* header */
.og-anything-grid .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 980px; margin: 0 auto; padding: 10px 14px; }
.og-anything-grid .logo { display: inline-flex; align-items: center; gap: 9px; font: 700 22px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: 0.2px; }
.og-anything-grid .logo svg { width: 26px; height: 26px; flex: none; }
.og-anything-grid .nav { display: flex; gap: 2px; flex-wrap: wrap; }
.og-anything-grid .nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.og-anything-grid .nav a:hover { background: #ebe1c8; }
.og-anything-grid .nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* game */
.og-anything-grid .wrap { max-width: 980px; margin: 0 auto; padding: 0 14px; }
.og-anything-grid .game { max-width: 560px; margin: 4px auto 0; }
.og-anything-grid h1 { font: 700 clamp(26px, 5vw, 38px)/1.15 var(--serif); margin: 8px 0 6px; }
.og-anything-grid .tagline { margin: 0 0 12px; color: var(--muted); }
.og-anything-grid .game-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 2px; font-size: 14px; color: var(--muted); }
.og-anything-grid .game-head b { color: var(--ink); }
.og-anything-grid .badge { display: inline-block; background: var(--hl); color: #3b2f00; border-radius: 99px; padding: 1px 9px; font-weight: 700; font-size: 12px; margin-left: 6px; }

.og-anything-grid .board { scroll-margin-top: 76px; display: grid; grid-template-columns: minmax(64px, 0.78fr) repeat(3, minmax(0, 1fr)); gap: 6px; }
.og-anything-grid .corner { display: flex; align-items: center; justify-content: center; font: 700 15px var(--serif); color: var(--muted); text-align: center; }
.og-anything-grid .hdr { display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 4px; border-radius: 9px; color: #fff; font-weight: 700; font-size: clamp(11px, 3.2vw, 14px); line-height: 1.2; min-height: 48px; overflow-wrap: anywhere; hyphens: auto; }
.og-anything-grid .hdr.c { background: var(--col); }
.og-anything-grid .hdr.r { background: var(--row); min-height: 0; }
.og-anything-grid .cell { position: relative; aspect-ratio: 1 / 1; min-height: 78px; border: 2px solid var(--line); background: var(--paper); border-radius: 10px; padding: 4px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.og-anything-grid .cell:hover:not(:disabled) { border-color: var(--blue); }
.og-anything-grid .cell[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px #c9d4f3; background: #fff; }
.og-anything-grid .cell .plus { font-size: 26px; color: #a79c80; line-height: 1; }
.og-anything-grid .cell .ans { font: 700 clamp(11px, 3.1vw, 14px)/1.15 var(--serif); overflow-wrap: anywhere; max-height: 3.5em; overflow: hidden; }
.og-anything-grid .cell .pts { font-size: clamp(16px, 5vw, 22px); font-weight: 800; line-height: 1; }
.og-anything-grid .cell .band { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.92; }
.og-anything-grid .cell.done { cursor: default; color: #fff; border-color: transparent; animation: pop 0.35s ease-out; }
.og-anything-grid .cell.b-footnote { background: var(--footnote); }
.og-anything-grid .cell.b-appendix { background: var(--appendix); }
.og-anything-grid .cell.b-chapter { background: var(--chapter); }
.og-anything-grid .cell.b-headline { background: var(--headline); color: #2a2200; }
.og-anything-grid .cell.b-cover { background: var(--cover); color: #2d1600; }
.og-anything-grid .cell.b-billboard { background: var(--billboard); }
.og-anything-grid .cell.b-blank { background: var(--blank); }
@keyframes pop { 0% { transform: scale(0.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* answer form */
.og-anything-grid .answer { margin: 14px 0 0; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; }
.og-anything-grid .answer[hidden],
.og-anything-grid .result[hidden],
.og-anything-grid [hidden] { display: none !important; }
.og-anything-grid .answer .ctx { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.og-anything-grid .answer .ctx b { color: var(--ink); }
.og-anything-grid .answer .ctx .r { color: var(--row); }
.og-anything-grid .answer .ctx .c { color: var(--col); }
.og-anything-grid .row { display: flex; gap: 8px; }
.og-anything-grid .answer input[type="text"] { flex: 1; min-width: 0; font: 18px var(--sans); padding: 11px 12px; border: 2px solid #b9ad92; border-radius: 10px; background: #fff; color: var(--ink); }
.og-anything-grid .btn { font: 700 16px var(--sans); padding: 11px 16px; border-radius: 10px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.og-anything-grid .btn:hover:not(:disabled) { background: #0e1424; color: #fff; }
.og-anything-grid .btn:disabled { opacity: 0.55; cursor: progress; }
.og-anything-grid .btn.ghost { background: transparent; color: var(--ink); }
.og-anything-grid .btn.ghost:hover:not(:disabled) { background: #ebe1c8; color: var(--ink); }
.og-anything-grid .btn.small { font-size: 14px; padding: 7px 11px; }
.og-anything-grid .msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; }
.og-anything-grid .msg.bad { color: #a3261f; font-weight: 600; }
.og-anything-grid .msg.good { color: #1d6b43; font-weight: 600; }
.og-anything-grid .meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.og-anything-grid .linklike { background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px 0; }

.og-anything-grid .legend { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.og-anything-grid .legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* result */
.og-anything-grid .result { scroll-margin-top: 76px; margin: 16px 0 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; }
.og-anything-grid .result h2 { margin: 0; font: 700 26px/1.2 var(--serif); }
.og-anything-grid .result .total { font: 800 54px/1 var(--serif); margin: 6px 0 0; }
.og-anything-grid .result .tier { font-weight: 700; color: var(--blue); }
.og-anything-grid .result .note { margin: 2px 0 10px; color: var(--muted); }
.og-anything-grid .shareblock { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 12px 0; }
.og-anything-grid .sq { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; }
.og-anything-grid .sq i { width: 34px; height: 34px; border-radius: 6px; display: block; }
.og-anything-grid .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.og-anything-grid .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 14px 0 4px; }
.og-anything-grid .stats div { background: #f1e8d0; border-radius: 9px; padding: 8px 2px; }
.og-anything-grid .stats b { display: block; font: 800 22px var(--serif); }
.og-anything-grid .stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.og-anything-grid .reveal { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.og-anything-grid .reveal li { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 14px; }
.og-anything-grid .reveal .q { font-weight: 700; display: block; }
.og-anything-grid .reveal .q .r { color: var(--row); } .og-anything-grid .reveal .q .c { color: var(--col); }
.og-anything-grid .reveal .mine { display: inline-block; font-weight: 700; }
.og-anything-grid .reveal .rare a { white-space: nowrap; }
.og-anything-grid .pill { display: inline-block; min-width: 2em; text-align: center; font-weight: 800; font-size: 12px; color: #fff; border-radius: 99px; padding: 0 7px; margin-right: 4px; }
.og-anything-grid .next { margin: 14px 0 0; text-align: center; color: var(--muted); }
.og-anything-grid .next b { font-variant-numeric: tabular-nums; color: var(--ink); }

/* text sections */
.og-anything-grid .copy { max-width: 760px; margin: 34px auto 0; padding-bottom: 30px; }
.og-anything-grid .copy h2 { font: 700 26px/1.2 var(--serif); margin: 30px 0 8px; }
.og-anything-grid .copy h3 { font: 700 19px var(--serif); margin: 20px 0 4px; }
.og-anything-grid .copy p,
.og-anything-grid .copy li { color: #2c344a; }
.og-anything-grid .copy details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.og-anything-grid .copy summary { cursor: pointer; font-weight: 700; }
.og-anything-grid .copy table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--paper); }
.og-anything-grid .copy th,
.og-anything-grid .copy td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }
.og-anything-grid .copy code { background: #ebe1c8; padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.og-anything-grid .lede { font-size: 18px; color: #2c344a; }
.og-anything-grid .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.og-anything-grid .cards li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.og-anything-grid .cards a { font-weight: 700; }

.og-anything-grid .foot { max-width: 980px; margin: 0 auto; padding: 18px 14px 34px; text-align: center; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.og-anything-grid .foot a { color: var(--muted); }

/* documents and archive */
.og-anything-grid .doc-main { max-width: 760px; margin: 0 auto; padding: 8px 14px 30px; }
.og-anything-grid .doc-main h1 { margin-top: 14px; }
.og-anything-grid .doc-main h2 { font: 700 24px/1.2 var(--serif); margin: 28px 0 6px; }
.og-anything-grid .doc-main h3 { font: 700 18px var(--serif); margin: 18px 0 4px; }
.og-anything-grid .doc-main form .fb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.og-anything-grid .fb-field { flex: 1 1 220px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.og-anything-grid .fb-field label { font-weight: 700; font-size: 14px; }
.og-anything-grid .fb-hint { font-weight: 400; color: var(--muted); }
.og-anything-grid .fb-field input,
.og-anything-grid .fb-field textarea { font: 16px var(--sans); padding: 10px; border: 2px solid #b9ad92; border-radius: 9px; background: #fff; }
.og-anything-grid .fb-field textarea { min-height: 130px; }
.og-anything-grid .daygrid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 12px 0; }
.og-anything-grid .daygrid th,
.og-anything-grid .daygrid td { border-radius: 8px; padding: 8px 6px; vertical-align: top; font-size: 14px; }
.og-anything-grid .daygrid th { color: #fff; text-align: center; font-size: 13px; }
.og-anything-grid .daygrid th.r { background: var(--row); } .og-anything-grid .daygrid th.c { background: var(--col); }
.og-anything-grid .daygrid td { background: var(--paper); border: 1px solid var(--line); }
.og-anything-grid .daygrid td b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--muted); margin: 4px 0 1px; }
.og-anything-grid .daygrid td b:first-child { margin-top: 0; }
.og-anything-grid .daygrid td span { display: block; overflow-wrap: anywhere; }
.og-anything-grid .daylist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.og-anything-grid .daylist a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.og-anything-grid .daylist a:hover { border-color: var(--blue); }
.og-anything-grid .daylist small { display: block; color: var(--muted); }
.og-anything-grid .pager { display: flex; justify-content: space-between; margin: 20px 0; gap: 10px; flex-wrap: wrap; }

@media (max-width: 420px) {
  .og-anything-grid .top { padding: 8px 10px; }
  .og-anything-grid .nav a { padding: 7px 7px; font-size: 14px; }
  .og-anything-grid .board { gap: 4px; }
  .og-anything-grid .cell { min-height: 72px; }
  .og-anything-grid .shareblock { grid-template-columns: 1fr; justify-items: center; }
  .og-anything-grid .stats b { font-size: 18px; }
  .og-anything-grid .daygrid th,
.og-anything-grid .daygrid td { padding: 5px 3px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .og-anything-grid .cell.done { animation: none; }
  .og-anything-grid * { scroll-behavior: auto !important; }
}
.og-anything-grid .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.og-anything-grid .sk { background: #e8dec3 !important; border-color: transparent !important; color: transparent !important; cursor: default; }
.og-anything-grid .sk .plus { display: none; }
.og-anything-grid noscript .msg { padding: 10px; }
.og-anything-grid .copy table:not(.daygrid) { display: block; overflow-x: auto; max-width: 100%; }
.og-anything-grid .copy table th,
.og-anything-grid .copy table td { white-space: normal; }
.og-anything-grid .daygrid th.r,
.og-anything-grid .daygrid tr:first-child td:first-child { width: 15%; }
.og-anything-grid .copy table:not(.daygrid) { background: none; width: max-content; min-width: 55%; }
.og-anything-grid .copy table:not(.daygrid) td,
.og-anything-grid .copy table:not(.daygrid) th { background: var(--paper); }
