/* One narrow centered column: header, square cover, six guess rows, one input.
   The album art is the only color on the page. */
:root {
  --bg: #F4F4F1; --fg: #151514; --muted: #83837D; --line: #D9D9D3; --soft: #E5E5E0; --raise: #FFFFFF;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121211; --fg: #ECECE7; --muted: #7E7E78; --line: #2C2C29; --soft: #222220; --raise: #1B1B19; color-scheme: dark; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px;
  -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.app { max-width: 440px; margin: 0 auto; padding-block: 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.app[hidden] { display: none; }
.loading { position: fixed; left: 0; right: 0; top: 42%; text-align: center; color: var(--muted); margin: 0; animation: late-in .2s 1s both; }
.loading.err { animation: none; }
@keyframes late-in { from { opacity: 0; } }
/* Hidden until the cover is ready (see reveal() in app.js) */
.app { transition: opacity .25s ease; }
body.booting .app { opacity: 0; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mark { display: flex; align-items: baseline; gap: 10px; }
/* Logo: a 3x3 cover, light to dark like the clue tiles (follows the theme) */
.logo { width: 18px; height: 18px; flex: none; align-self: center; }
.logo .g0 { fill: #E4D6BE; }
.logo .g1 { fill: #C9A97E; }
.logo .g2 { fill: #9C6F45; }
.logo .g3 { fill: #5E3F29; }
.logo .g4 { fill: #2A1C14; }
.word { font-weight: 600; font-size: 19px; letter-spacing: -0.035em; }
.num { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.hright { display: flex; align-items: center; gap: 16px; }
.dots { display: flex; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line); }
.dot.used { background: var(--muted); border-color: var(--muted); }
.dot.now { border-color: var(--fg); }
.dot.win { background: var(--fg); border-color: var(--fg); }
/* Profile square: your latest solved cover as a 3x3, empty until your first solve */
.me { appearance: none; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; display: block; }
.av { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.av i { display: block; }
.av.blank { background: var(--fg); }
/* Profile panel */
.who { display: flex; align-items: flex-start; gap: 22px; }
.bigav { width: 76px; height: 76px; flex: none; }
.avcol { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.linkish { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.linkish:hover { color: var(--fg); }
.linkish:focus { outline: none; }
.linkish:focus-visible { outline: none; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pstats div { display: flex; flex-direction: column; gap: 4px; }
.pstats span, .phead span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pstats b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.phead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: -6px; }
.dropback { position: fixed; inset: 0; z-index: 19; }
.drop { position: fixed; z-index: 20; top: calc(54px + env(safe-area-inset-top, 0px)); right: max(16px, calc((100vw - 440px) / 2)); width: min(340px, calc(100vw - 32px)); max-height: calc(100svh - 74px); overflow: auto; background: var(--bg); border: 0; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(0, 0, 0, .28); padding: 24px; display: flex; flex-direction: column; gap: 18px; outline: none; animation: drop-in .18s ease-out; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.streak { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.streak b { font-size: 60px; font-weight: 600; letter-spacing: -0.05em; line-height: .85; font-variant-numeric: tabular-nums; }
.streak span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drop .nums { grid-template-columns: repeat(3, 1fr); }
.drop .nums b { font-size: 20px; }
.label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.mwrap { max-height: 252px; overflow: auto; }
.mosaic { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mt { appearance: none; padding: 0; border: 0; background: none; aspect-ratio: 1 / 1; cursor: pointer; display: block; }
.mt img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.mt.empty { box-shadow: inset 0 0 0 1px var(--line); }
.mt.today { box-shadow: inset 0 0 0 1px var(--fg); }
.mt.on { outline: 1.5px solid var(--fg); outline-offset: 2px; }
.mt:focus { outline: none; }
.mt.on:focus { outline: 1.5px solid var(--fg); }
.grad { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; }
.grad i { display: block; }
.minfo { font-size: 12px; color: var(--muted); margin-top: -6px; }
.minfo:empty { display: none; }
.iconbtn { appearance: none; border: 0; background: none; color: var(--fg); padding: 6px; margin: -6px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
button:focus-visible, input:focus-visible, a:focus-visible, .tile:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* The cover never takes more than about half the screen height, so the clues and input stay close. */
figure { margin: 0 auto; width: min(100%, 52svh); min-width: min(100%, 260px); display: flex; flex-direction: column; gap: 10px; }
.frame { width: 100%; max-width: 100%; aspect-ratio: 1 / 1; background: var(--soft); position: relative; }
/* Finished: a label on the cover says how it went */
.badge { position: absolute; left: 10px; bottom: 10px; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; animation: badge-in .35s cubic-bezier(.2, .8, .3, 1) both; }
/* Finished: rows that were only skips don't say anything, so they go (the dots still show tries used) */
body.done .row.skiprow, body.done .row.empty { display: none; }
body.done .board:not(:has(.row:not(.skiprow):not(.empty))) { display: none; }
@keyframes badge-in { from { opacity: 0; transform: translateY(6px); } }
#cover { width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; transition: opacity .18s ease; }
#cover.fade { opacity: 0; }
#cover.clear { image-rendering: auto; }
.frame .sharpen { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.soon { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.soon b { font-family: var(--mono); font-weight: 500; font-size: clamp(32px, 11vw, 52px); letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cap { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.board { display: flex; flex-direction: column; gap: 6px; }
.heads, .row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, clamp(54px, 18vw, 68px)); gap: 6px; align-items: center; }
.heads { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.heads span { text-align: center; }
.heads span:first-child { text-align: left; }
.guess { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gt { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idx { font-family: var(--mono); font-size: 11px; color: var(--line); }
.tile { height: 40px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: -0.02em; border: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.tile.skip { border-style: dashed; }
.tile.clue { cursor: pointer; position: relative; }
/* Small corner mark so clue tiles read as tappable */
.tile.clue::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; opacity: .45; }
.tile.clue:hover::after, .tile.clue.on::after { opacity: .9; }
.tile.l0 { background: color-mix(in oklab, var(--fg) 6%, var(--soft)); border-color: transparent; color: var(--fg); }
.tile.l1 { background: color-mix(in oklab, var(--fg) 38%, var(--soft)); border-color: transparent; color: var(--fg); }
.tile.l2 { background: color-mix(in oklab, var(--fg) 68%, var(--soft)); border-color: transparent; color: var(--bg); }
.tile.l3 { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.tile.dash { color: var(--muted); }
.tile.on { outline: 2px solid var(--fg); outline-offset: 2px; }
/* New row: the tile flips; a blank face covers it for the first half, so the color shows mid-flip */
.tile.flip { position: relative; overflow: visible; animation: flip .56s ease-in-out both; }
.tile.flip::before { content: ""; position: absolute; inset: -2px; z-index: 2; background: var(--bg); border: 2px solid var(--bg); box-shadow: inset 0 0 0 1px var(--line); animation: flip-face .56s both; animation-delay: inherit; }
.tile.flip.bounce { animation-name: flip, bounce; animation-duration: .56s, .42s; animation-timing-function: ease-in-out, cubic-bezier(.3, 1.6, .5, 1); }
@keyframes flip { 0% { transform: perspective(400px) rotateX(0); } 50% { transform: perspective(400px) rotateX(90deg); } 100% { transform: perspective(400px) rotateX(0); } }
@keyframes flip-face { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: none; } 45% { transform: translateY(-7px); } }
.guess.pop { animation: pop-in .35s ease-out both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } }
.detail { min-height: 16px; font-size: 12px; color: var(--fg); text-align: right; }

/* The guess input stays docked at the bottom of the screen while playing. */
#bottom.dock { position: sticky; bottom: 0; z-index: 4; background: var(--bg); margin-inline: -4px; padding: 10px 4px calc(8px + env(safe-area-inset-bottom, 0px)); }
.entry { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; align-items: center; gap: 14px; border-bottom: 1.5px solid var(--fg); }
#q { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 16px; padding: 10px 0; outline: none; }
#q::placeholder { color: var(--muted); }
.chev { appearance: none; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 4px; display: grid; place-items: center; }
.chev:hover { color: var(--fg); }
.textbtn { appearance: none; background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; padding: 6px 0; }
.textbtn:hover { color: var(--fg); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.45; }
.hint.warn { color: var(--fg); }
.list { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--raise); border: 1px solid var(--line); list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow: auto; box-shadow: 0 14px 34px rgba(0, 0, 0, .10); z-index: 5; }
.opt { padding: 9px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; cursor: pointer; }
.opt span:first-child { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt span:last-child { font-size: 12px; color: var(--muted); white-space: nowrap; }
.opt[aria-selected="true"] { background: var(--soft); }

.result { display: flex; flex-direction: column; gap: 18px; }
.answer.nothumb { grid-template-columns: minmax(0, 1fr); }
.donebar { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--fg); padding: 9px 0 10px; animation: pop-in .35s ease-out both; }
.donebar b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.donebar span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.answer { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.answer img { width: 88px; height: 88px; display: block; }
.verdict { font-size: 24px; font-weight: 600; letter-spacing: -0.035em; }
.atitle { font-weight: 500; margin-top: 4px; }
.ameta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.crowd { font-size: 13px; color: var(--fg); min-height: 0; }
.crowd:empty { display: none; }
.listen { font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.listen a { color: var(--fg); text-underline-offset: 3px; }
.actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
/* Actions are plain clickable text, no buttons */
.btn { appearance: none; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--fg); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn.ghost { font-weight: 400; color: var(--muted); }
.btn:hover, .btn.ghost:hover { color: var(--fg); }
.next { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
pre.share { margin: 0; font-family: var(--mono); font-size: 12px; background: var(--soft); padding: 10px 12px; white-space: pre-wrap; user-select: all; }

footer { display: flex; justify-content: center; align-items: center; gap: 18px; }
footer .textbtn { font-size: 12px; }
.social { color: var(--muted); display: grid; place-items: center; padding: 4px; margin: -4px; }
.social:hover { color: var(--fg); }

.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); display: grid; place-items: center; z-index: 20; padding: 16px; }
.panel { background: var(--bg); width: 100%; max-width: 380px; padding: 24px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); max-height: 90vh; overflow: auto; }
.panel p { margin: 0; line-height: 1.5; color: var(--fg); }
.panel p.small { font-size: 12px; color: var(--muted); }
/* How to play */
.sheet { animation: fade-in .18s ease-out; }
.sheet .panel { animation: rise-in .22s cubic-bezier(.2, .8, .3, 1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.howpanel { gap: 0; padding: 26px 24px 22px; max-width: 400px; }
.howpanel .ph { margin-bottom: 8px; }
.howpanel .ph h2 { font-size: 20px; letter-spacing: -0.035em; }
.hstep { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.hstep:first-of-type { border-top: 0; }
.hno { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; padding-top: 2px; }
.hbody { display: flex; flex-direction: column; gap: 12px; }
.hbody p { line-height: 1.45; }
.hsharp { display: flex; align-items: center; gap: 10px; }
.hpix { width: 52px; height: 52px; display: grid; }
.hpix i { display: block; }
.harrow { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.howto { gap: 6px; }
.howto .row { grid-template-columns: minmax(0, 1fr) repeat(3, 52px); }
.howto .heads { grid-template-columns: minmax(0, 1fr) repeat(3, 52px); }
.howto .tile { height: 34px; }
.hscale { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hscale i.tile { width: 18px; height: 10px; border: 0; }
.hscale span:first-child { margin-right: 4px; }
.hscale span:last-child { margin-left: 4px; }
.hfoot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.hfoot span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.archive { display: flex; flex-direction: column; }
.arow { appearance: none; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--fg); display: flex; justify-content: space-between; padding: 12px 0; cursor: pointer; text-align: left; }
.arow:disabled { cursor: default; color: var(--muted); }
.arow .astate { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.arow:not(:disabled):hover .astate { color: var(--fg); }
.ph { display: flex; justify-content: space-between; align-items: center; }
.ph h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nums div { display: flex; flex-direction: column; gap: 2px; }
.nums b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.nums span { font-size: 11px; color: var(--muted); }
.dist { display: flex; flex-direction: column; gap: 5px; }
.bar { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bar div { height: 18px; background: var(--soft); display: flex; justify-content: flex-end; align-items: center; padding-right: 6px; color: var(--fg); min-width: 22px; font-variant-numeric: tabular-nums; }
.bar div.hi { background: var(--fg); color: var(--bg); }

/* Just solved: a card that pops up for a moment */
.winpop { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: color-mix(in oklab, var(--bg) 40%, transparent); animation: fade-in .2s ease-out both; cursor: pointer; }
.winpop.out { opacity: 0; transition: opacity .25s ease; }
.wincard { background: var(--fg); color: var(--bg); padding: 22px 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: win-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.wincard b { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; }
.winlabel, .winsub { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
@keyframes win-in { from { opacity: 0; transform: scale(.85); } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); font-size: 13px; padding: 8px 14px; border-radius: 999px; z-index: 30; }

/* Phones: a smaller cover, and smaller still while typing so it stays in view above the album list */
@media (max-width: 600px), (pointer: coarse) {
  figure { width: min(100%, 44svh); transition: width .2s ease; }
  body.typing figure { width: min(100%, 150px) !important; min-width: 0 !important; }
  body.typing .cap { display: none; }
}
/* Phones: everything on one screen. The rows, input and result are compact; the cover takes what's left (see fitScreen). */
@media (max-width: 600px), (pointer: coarse), (max-height: 900px) {
  .app { gap: 12px; padding-block: 12px 10px; min-height: 0; }
  .cap { display: none; }
  .board { gap: 4px; }
  .heads, .row { gap: 4px; }
  .tile { height: 34px; font-size: 10px; }
  .guess { gap: 0; line-height: 1.2; }
  .guess .gt { font-size: 13px; }
  .guess .ga { font-size: 11px; }
  body.done .row.empty { display: none; }
  #bottom.dock { padding-top: 4px; }
  .entry { gap: 6px; }
  #q { padding: 8px 0; }
  .result { gap: 10px; }
  .answer { gap: 14px; }
  .verdict { font-size: 20px; }
  .atitle { margin-top: 2px; }
  .listen, .crowd { font-size: 12.5px; }
  .actions { gap: 16px; }
  footer { gap: 16px; }
  .answer { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .answer img { width: 64px; height: 64px; }
}
/* Very short screens: the footer waits until the game is over */
@media (max-height: 600px) {
  body:not(.done) footer { display: none; }
  .answer { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .answer img { width: 44px; height: 44px; }
  .result { gap: 8px; }
  .donebar { padding: 6px 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .drop, .sheet, .sheet .panel, .badge, .winpop, .wincard { animation: none; }
  .tile.flip, .tile.flip::before, .guess.pop { animation: none; }
  #cover { transition: none; }
}
@media (max-height: 700px) {
  .howpanel { padding: 20px 20px 16px; }
  .hstep { padding: 10px 0; }
  .hbody { gap: 8px; }
  .hpix { width: 40px; height: 40px; }
  .howto .tile { height: 30px; }
  .hfoot { padding-top: 12px; }
}

/* fine art: the movement timeline */
.tline { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-bottom: 2px; }
.tseg { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; transition: opacity .3s; }
.tseg i { display: block; width: 100%; height: 8px; background: color-mix(in oklab, var(--fg) 55%, var(--soft)); position: relative; }
.tseg i b { position: absolute; left: 50%; top: -5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px var(--fg); }
.tseg span { font-size: 8.5px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tseg small { font-family: var(--mono); font-size: 7.5px; color: var(--muted); }
.tseg.out { opacity: .28; }
.tseg.hit i { background: var(--fg); }
.tile { font-size: 9.5px; }

footer a.sib { text-decoration: none; color: var(--muted); font-size: 12px; }
footer a.sib:hover { color: var(--fg); }

/* fine art: self-portrait gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.gframe { appearance: none; border: 0; padding: 3px; background: #E9DFCC; box-shadow: inset 0 0 0 1px #C9A97E; aspect-ratio: 1 / 1; position: relative; cursor: pointer; display: grid; place-items: center; }
.gframe img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.gframe.empty { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.gq { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.gcount { position: absolute; right: -4px; bottom: -4px; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 9px; padding: 1px 4px; }
