/* aigamecritic — black & white, honey accents, pixel everything */

/* Karmatic Arcade lacks "&", dashes and accents: limit it to basic Latin (without &), the rest falls back to Press Start 2P */
@font-face { font-family: "Karmatic Arcade"; src: url("../fonts/karmatic-arcade.woff2") format("woff2"); font-display: swap; unicode-range: U+0020-0025, U+0027-007E; }
@font-face { font-family: "Press Start 2P"; src: url("../fonts/press-start-2p-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("../fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("../fonts/pixelify-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/readex-pro-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/readex-pro-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/readex-pro-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --grey-1: #f3f3f1;
  --grey-2: #dcdcd8;
  --grey-3: #8a8a86;
  --honey: #f5b301;
  --honey-soft: #fff4cc;
  --danger: #d6331f;
  --ok: #1f8a4c;
  --px: 4px;
  --font-head: "Karmatic Arcade", "Press Start 2P", ui-monospace, monospace;
  --font-label: "Press Start 2P", ui-monospace, monospace;   /* small headings: Karmatic is hard to read below ~16px */
  --font-body: "Pixelify Sans", ui-monospace, monospace;
  --font-fine: "Readex Pro", system-ui, sans-serif;
  --wrap: 1120px;      /* header, footer, game grid, admin */
  --content: 860px;    /* every other page: game, build, forms, account, about, legal */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* sticky footer: footer sits at the bottom of the screen even when the page is short */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.5 var(--font-body);
  -webkit-font-smoothing: none;
  font-smooth: never;
  /* Pixelify Sans' "fi" ligature is missing from the web font subset and shows up as "A" ("Angerprint") */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}
button, input, select, textarea { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.3; font-weight: 400; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a:hover { background: var(--honey-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--honey); outline-offset: 3px;
}

/* the marker highlight */
mark {
  color: inherit;
  padding: .05em .3em;
  margin: 0 -.1em;
  background:
    linear-gradient(100deg, rgba(245,179,1,0) .9%, rgba(245,179,1,.85) 2.4%, rgba(245,179,1,.55) 5.8%, rgba(245,179,1,.35) 93%, rgba(245,179,1,.75) 96%, rgba(245,179,1,0) 98%),
    linear-gradient(183deg, rgba(245,179,1,0) 0%, rgba(245,179,1,.3) 7.9%, rgba(245,179,1,0) 15%);
  border-radius: .6em .3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.icon { width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: currentColor; flex: none; shape-rendering: crispEdges; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--honey); padding: 8px 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
/* Two page widths only: wide lists, and one centred content column. Login & messages sit narrower inside it. */
.wrap-content { max-width: calc(var(--content) + 32px); }
.narrow { max-width: 560px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--grey-3); }
.fine, .fineprint, .small { font-family: var(--font-fine); font-size: 13px; line-height: 1.5; font-weight: 300; }
.fine { color: #555; }
.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack > * + * { margin-top: 14px; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 2px dotted var(--grey-2); }

/* ---------- typography scale ---------- */
.h-big { font-family: var(--font-head); font-size: clamp(22px, 4vw, 34px); letter-spacing: .02em; line-height: 1.35; }
.h-mid { font-family: var(--font-head); font-size: clamp(16px, 2.4vw, 20px); line-height: 1.5; }
.h-small { font-family: var(--font-label); font-size: 14px; line-height: 1.6; text-transform: lowercase; letter-spacing: .04em; }
.h-tiny { font-size: 18px; font-weight: 600; margin-top: 1.2em; }

/* ---------- pixel frame (notched corners like 8-bit UI) ---------- */
.px {
  box-shadow: 0 calc(-1 * var(--px)) 0 0 var(--ink), 0 var(--px) 0 0 var(--ink), calc(-1 * var(--px)) 0 0 0 var(--ink), var(--px) 0 0 0 var(--ink);
}

/* ---------- header / footer ---------- */
.site-header { border-bottom: var(--px) solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 16px; text-decoration: none; letter-spacing: .02em; }
.logo-coin { width: 48px; height: 48px; image-rendering: pixelated; flex: none; transition: transform .25s steps(4); }
.logo:hover .logo-coin { transform: rotateY(180deg); }
.logo:hover { background: none; }
.logo:hover span { background: var(--honey); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 17px; }
.nav a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; background: none; }

main.wrap { padding-top: 40px; padding-bottom: 64px; flex: 1 0 auto; width: 100%; }   /* main.wrap: .wrap alone would reset the padding */

.site-footer { background: var(--ink); color: var(--paper); padding: 32px 0 24px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { background: none; color: var(--honey); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo-small { font-family: var(--font-label); font-size: 13px; font-weight: 400; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .fineprint { color: #aaa; margin-top: 24px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; margin: var(--px);
  background: var(--paper); color: var(--ink);
  border: 0; cursor: pointer; text-decoration: none; font-size: 17px; line-height: 1.2;
  box-shadow: 0 calc(-1 * var(--px)) 0 0 var(--ink), 0 var(--px) 0 0 var(--ink), calc(-1 * var(--px)) 0 0 0 var(--ink), var(--px) 0 0 0 var(--ink), inset 0 calc(-1 * var(--px)) 0 0 var(--grey-2);
  transition: transform .05s steps(1);
}
.btn:hover { background: var(--grey-1); }
.btn:active { transform: translateY(2px); box-shadow: 0 calc(-1 * var(--px)) 0 0 var(--ink), 0 var(--px) 0 0 var(--ink), calc(-1 * var(--px)) 0 0 0 var(--ink), var(--px) 0 0 0 var(--ink); }
.btn-primary { background: var(--honey); box-shadow: 0 calc(-1 * var(--px)) 0 0 var(--ink), 0 var(--px) 0 0 var(--ink), calc(-1 * var(--px)) 0 0 0 var(--ink), var(--px) 0 0 0 var(--ink), inset 0 calc(-1 * var(--px)) 0 0 #c98f00; }
.btn-primary:hover { background: #ffc52a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { box-shadow: none; background: none; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; }
.btn-big { font-size: 20px; padding: 12px 22px; }
.btn-small { font-size: 15px; padding: 4px 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; text-underline-offset: 4px; font-size: 16px; display: inline-flex; gap: 6px; align-items: center; }

label { display: block; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 0;
  font-size: 18px;
}
textarea { resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: #9a9a96; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 18px; height: 18px; vertical-align: -3px; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
label.check input { margin-top: 4px; flex: none; }
.field-error { color: var(--danger); font-family: var(--font-fine); font-size: 14px; margin: 6px 0 12px; }
.hint { background: var(--honey-soft); padding: 10px 12px; font-size: 16px; }
.hint.ok { background: #e3f6ea; }

.panel { border: 3px solid var(--ink); padding: 20px; margin: 0 0 24px; background: var(--paper); }
.panel legend { font-family: var(--font-label); font-size: 13px; padding: 0 8px; text-transform: lowercase; letter-spacing: .04em; }
.panel > label + label, .panel > .cols + label, .panel > label + .cols, .panel > .cols + .cols { margin-top: 14px; }
.cols > label { margin: 0; }
fieldset.panel { min-width: 0; }
.panel-import { border-style: dashed; background: var(--grey-1); }
.panel-final { border-width: 4px; }
.panel.danger { border-color: var(--danger); }
.panel.danger summary { cursor: pointer; color: var(--danger); }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.checks { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin: 14px 0; }
.checks .label { width: 100%; font-weight: 600; }
.checks label.check { margin: 4px 0; }
.ext-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.ext-row input { flex: 1 1 240px; margin-top: 0 !important; }
.prefix-input { display: flex; align-items: stretch; margin-top: 6px; }
.prefix-input > span { border: 3px solid var(--ink); border-right: 0; padding: 10px; background: var(--grey-1); }
.prefix-input input { margin-top: 0 !important; }
input.num { width: 70px !important; display: inline-block !important; padding: 4px !important; }
.file span { display: block; margin-bottom: 8px; }
input[type=file] { max-width: 100%; }   /* the native file picker does not shrink by itself on phones */

/* pill radios */
.pill { display: inline-block; margin: 3px 2px; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 5px 10px; border: 2px solid var(--ink); font-size: 15px; cursor: pointer; background: var(--paper); }
.pill input:checked + span { background: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }

/* char counter */
.counter { font-family: var(--font-fine); font-size: 13px; color: #555; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); font-weight: 600; }
textarea.over { border-color: var(--danger); background: #fff5f3; }
.count-line { display: flex; justify-content: flex-end; margin-top: 4px; }

/* flash */
.flash { padding: 12px 16px; margin: 0 0 24px; border: 3px solid var(--ink); background: var(--paper); }
.flash-success { background: var(--honey-soft); }
.flash-error { background: #fff0ed; border-color: var(--danger); }
.flash-info { background: var(--grey-1); }

/* badges & status */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 2px 8px; border: 2px solid var(--ink); background: var(--paper); line-height: 1.4; white-space: nowrap; font-family: var(--font-body); }
.badge-hand { background: var(--paper); }
.badge-verified { background: var(--honey); }
.badge-dev { background: var(--ink); color: var(--paper); }
.status { display: inline-block; font-size: 13px; padding: 1px 8px; border: 2px solid var(--ink); font-family: var(--font-fine); }
.status-published, .status-approved { background: var(--honey); }
.status-pending, .status-unconfirmed { background: var(--grey-1); border-style: dashed; }
.status-rejected, .status-hidden { background: #fff0ed; border-color: var(--danger); }

/* ---------- home ---------- */
.hero { padding: 24px 0 32px; text-align: center; }
.hero-title { font-family: var(--font-head); font-size: clamp(26px, 7vw, 64px); margin: 0 0 16px; letter-spacing: .02em; line-height: 1.1; }
.hero-sub { font-size: clamp(18px, 2.5vw, 22px); max-width: 640px; margin: 0 auto; }

.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0 0 28px; padding: 12px 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.filters .search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; }
.filters .search input { margin: 0; border-width: 0 0 3px; padding: 6px 4px; }
.filters .select select { margin: 0; padding: 6px 8px; width: auto; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { width: 44px; height: 24px; border: 3px solid var(--ink); position: relative; background: var(--paper); flex: none; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--ink); transition: left .1s steps(3); }
.toggle input:checked + .toggle-ui { background: var(--honey); }
.toggle input:checked + .toggle-ui::after { left: 23px; }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid var(--honey); outline-offset: 2px; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; }
.card-link { text-decoration: none; display: block; }
.card-link:hover { background: none; }
.card-img { position: relative; border: 3px solid var(--ink); aspect-ratio: 460 / 215; overflow: hidden; background: var(--grey-1); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s steps(4); }
.card-link:hover .card-img img { transform: scale(1.04); }
.card-img .badge { position: absolute; left: 8px; top: 8px; }
.card-noimg { display: grid; place-items: center; height: 100%; min-height: 160px; background: var(--grey-1); }
.card-noimg .icon { width: 64px; height: 64px; color: var(--grey-2); }
.card-title { font-family: var(--font-head); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; }
.card-scores { display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.card-scores .ed { font-weight: 600; }

/* fingerprint mini (cards) */
.fp-mini { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.fp-mini li { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); }
.fp-mini .icon { width: 16px; height: 16px; }

/* fingerprint levels — used in mini + full */
.fp-none { background: var(--paper); }
.fp-assisted { background: repeating-linear-gradient(135deg, var(--honey) 0 4px, var(--paper) 4px 8px); }
.fp-generated { background: var(--honey); }
.fp-unknown { background: var(--grey-1); border-style: dashed !important; color: var(--grey-3); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a { padding: 6px 12px; border: 3px solid var(--ink); text-decoration: none; }
.pager a[aria-current] { background: var(--ink); color: var(--paper); }
.empty { text-align: center; padding: 48px 0; }
.empty .icon { width: 64px; height: 64px; }

/* ---------- game page ---------- */
.game > section { margin-top: 40px; }
.game-title { font-family: var(--font-head); font-size: clamp(22px, 5vw, 40px); line-height: 1.3; margin-bottom: 6px; letter-spacing: .02em; overflow-wrap: anywhere; }
.game-by { margin: 0 0 16px; color: #444; }
.shot { margin: 0; border: var(--px) solid var(--ink); background: var(--ink); }
.shot img { width: 100%; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 4px; }
.thumb { border: 3px solid var(--grey-2); padding: 0; background: none; cursor: pointer; flex: 0 0 96px; aspect-ratio: 16/9; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--honey); }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 16px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.meta { display: inline-flex; gap: 8px; align-items: center; }
.meta-actions { margin-left: auto; display: flex; gap: 4px 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .meta-actions { margin-left: 0; width: 100%; } .meta-actions .btn { flex: 1 1 auto; } }

.fingerprint { border: 3px solid var(--ink); padding: 18px; }
.fp-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.fp-head h2 { margin: 0; }
.fp-grid { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.fp-item { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; border: 2px solid var(--ink); padding: 8px 10px; }
.fp-item .icon { grid-row: span 2; width: 26px; height: 26px; }
.fp-label { font-weight: 600; font-size: 16px; }
.fp-level { font-size: 14px; }
.fp-summary { font-size: 18px; margin-bottom: 6px; }

/* what/why boxes */
.takes { display: flex; flex-direction: column; gap: 16px; }
.take { padding: 16px 18px; border: 3px solid var(--ink); }
.take p { margin: 0 0 8px; }
.take-q { display: block; font-family: var(--font-label); font-size: 11px; letter-spacing: .04em; margin-bottom: 4px; text-transform: lowercase; }
.take-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.take-who { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; flex-wrap: wrap; }
.take-score { font-family: var(--font-label); font-size: 14px; background: var(--honey); color: var(--ink); padding: 4px 8px; }
.take-developer { background: var(--honey-soft); border-left-width: 12px; }
.take-editor { background: var(--ink); color: var(--paper); }
.take-editor .take-q { color: var(--honey); }
.take-editor a { color: var(--paper); }
.take-community { border-style: dashed; }
.take-community .fine { margin: 6px 0 0; }
.take-form > label + label { margin-top: 12px; }
.take-form .btn { margin-top: 12px; }
.add-take summary { list-style: none; cursor: pointer; display: inline-flex; }
.add-take summary::-webkit-details-marker { display: none; }
.add-take[open] summary { margin-bottom: 12px; }

/* says */
.says { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.say { border: 3px solid var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.say-who { font-size: 16px; }
.say-num { font-family: var(--font-head); font-size: 26px; line-height: 1.3; }
.say-n { font-family: var(--font-fine); font-size: 12px; color: #555; }
.say-ed { background: var(--ink); color: var(--paper); }
.say-ed .say-n { color: #bbb; }
.say-ed .say-num { color: var(--honey); }

/* ---------- the rating game ---------- */
.rate { text-align: center; border: 3px solid var(--ink); padding: 24px 16px; overflow: hidden; position: relative; }
.rate-hint { margin: 0 0 8px; color: #555; }
.rate-stage { position: relative; height: 240px; display: grid; place-items: center; }
.rate-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.rate-btn {
  --size: 104px;
  position: relative; z-index: 1;
  width: var(--size); height: var(--size);
  border: 0; cursor: pointer; padding: 0;
  background: #c9c9c5; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow:
    0 -6px 0 0 var(--ink), 0 6px 0 0 var(--ink), -6px 0 0 0 var(--ink), 6px 0 0 0 var(--ink),
    inset -6px -6px 0 0 rgba(0,0,0,.18), inset 6px 6px 0 0 rgba(255,255,255,.35);
  transition: width .18s steps(4), height .18s steps(4), background-color .18s steps(3);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.rate-btn .rate-face .icon { width: 44%; height: 44%; min-width: 36px; min-height: 36px; }
.rate-face { display: grid; place-items: center; width: 100%; }
.rate-label { font-family: var(--font-label); font-size: 12px; color: var(--ink); text-shadow: none; }
.rate-btn[data-level="0"] { background: #c9c9c5; }
.rate-btn[data-level="0"] .rate-label { color: #555; }
.rate-btn[data-level="1"] { --size: 116px; background: #9e9e9a; }
.rate-btn[data-level="2"] { --size: 132px; background: #4f8fd6; }
.rate-btn[data-level="3"] { --size: 150px; background: #2fbf71; }
.rate-btn[data-level="4"] { --size: 170px; background: var(--honey); }
.rate-btn[data-level="5"] {
  --size: 196px;
  background: linear-gradient(90deg, #ff004d, #ff8a00, #ffe600, #00e436, #29adff, #83769c, #ff77a8, #ff004d);
  background-size: 800% 100%;
  animation: rainbow 1.6s steps(16) infinite;
}
.rate-btn[data-level="5"]::after {
  /* chunky dither overlay for the pixel look */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-conic-gradient(rgba(255,255,255,.18) 0 25%, transparent 0 50%);
  background-size: 12px 12px;
}
.rate-btn[data-level="5"] .rate-label { color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.rate-btn.pop { animation: pop .22s steps(4); }
.rate-btn[data-level="5"].pop { animation: pop .22s steps(4), rainbow 1.6s steps(16) infinite; }
.rate-btn:active { transform: translateY(3px); }
@keyframes rainbow { to { background-position: 100% 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.14) rotate(-3deg); } 70% { transform: scale(.96) rotate(2deg); } 100% { transform: scale(1); } }
.shake { animation: shake .35s steps(6); }
@keyframes shake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-6px,3px); } 40% { transform: translate(5px,-4px); } 60% { transform: translate(-4px,-2px); } 80% { transform: translate(4px,3px); } }
.combo { position: absolute; z-index: 2; font-family: var(--font-head); font-size: 14px; pointer-events: none; animation: floatup .9s steps(9) forwards; color: var(--ink); text-shadow: 2px 2px 0 var(--honey); white-space: nowrap; }
@keyframes floatup { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -70px); opacity: 0; } }
.rate-bar { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.rate-bar span { width: 28px; height: 12px; border: 3px solid var(--ink); background: var(--paper); }
.rate-bar span.on { background: var(--ink); }
.rate-bar.full span.on { background: var(--honey); }
.rate-status { min-height: 1.5em; margin: 0; font-size: 17px; }
.rate-tools { display: flex; gap: 20px; justify-content: center; margin-top: 8px; }

/* behind the scenes */
.bts { border-top: var(--px) solid var(--ink); padding-top: 28px; }
.bts-kind { font-family: var(--font-label); font-size: 11px; text-transform: lowercase; display: flex; gap: 8px; align-items: center; letter-spacing: .04em; }
.bts-body { font-size: 19px; }
.bts-body p:first-child::first-letter { font-family: var(--font-head); font-size: 2.2em; float: left; line-height: 1; padding: 6px 10px 0 0; }
.bts-author { font-style: italic; color: #444; }

/* comments */
.comment-form { border: 3px solid var(--ink); padding: 16px; margin-bottom: 24px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.ext { margin-top: 10px; font-size: 16px; }
.ext summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ext[open] summary { margin-bottom: 10px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list > li { padding: 16px 0; border-bottom: 2px dotted var(--grey-2); }
.comment header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.comment time { font-family: var(--font-fine); font-size: 13px; color: #777; }
.comment-body { margin: 0 0 4px; overflow-wrap: anywhere; }
.comment footer { color: #777; }
.src-ext { font-size: 15px; white-space: nowrap; }
.reply { margin: 12px 0 0 20px; padding-left: 14px; border-left: 4px solid var(--honey); }
.reply-form { margin: 8px 0 0 20px; }
.reply-form form { margin-top: 8px; }
.reply-form .btn { margin-top: 8px; }
.login-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.claim { text-align: center; padding: 24px; border: 3px dashed var(--ink); font-size: 20px; }

/* dialog */
.leave-dialog { border: var(--px) solid var(--ink); padding: 24px; max-width: min(460px, calc(100vw - 32px)); }
.leave-dialog::backdrop { background: rgba(11,11,11,.6); }
.leave-dialog h2 { font-family: var(--font-label); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.leave-url { font-family: var(--font-fine); font-size: 13px; overflow-wrap: anywhere; background: var(--grey-1); padding: 8px; }

/* message pages */
.message { padding: 32px 0; }
.message-icon .icon { width: 72px; height: 72px; margin: 0 auto 16px; display: block; }
.error-code { font-family: var(--font-head); font-size: 64px; margin: 0; color: var(--honey); text-shadow: 4px 4px 0 var(--ink); }

/* prose / legal */
.prose h2 { margin-top: 2em; display: flex; gap: 10px; align-items: center; }
.prose .lead { font-size: 22px; }
.legal { font-family: var(--font-fine); font-size: 16px; line-height: 1.65; }
.legal h2 { font-size: 13px; }
.fp-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; }
.levels { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: center; }
.levels dt { border: 2px solid var(--ink); padding: 2px 10px; font-size: 16px; }
.levels dd { margin: 0; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 2px solid var(--grey-2); vertical-align: top; }
.table th { border-bottom: 3px solid var(--ink); font-weight: 600; }
@media (max-width: 640px) { .table { display: block; overflow-x: auto; } }

/* forms page */
.page-head { margin-bottom: 28px; }
.fp-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 0; border-bottom: 2px dotted var(--grey-2); }
.fp-form-label { width: 130px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.img-manage { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.img-manage figure { margin: 0; width: 160px; font-size: 14px; }
.img-manage img { border: 2px solid var(--ink); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.import-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.import-grid label { width: 140px; font-size: 13px; margin: 0; }
.import-grid img { width: 100%; background: var(--grey-1); }
.import-grid img { border: 2px solid var(--ink); aspect-ratio: 16/9; object-fit: cover; }

/* ads */
.ad { grid-column: 1 / -1; border-top: 2px dotted var(--grey-2); border-bottom: 2px dotted var(--grey-2); padding: 12px 0; margin: 24px 0; min-height: 100px; }
.ad-label { display: block; font-family: var(--font-fine); font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }

/* admin */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-nav a { border: 3px solid var(--ink); padding: 6px 12px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.admin-nav a:hover { background: var(--honey); }
.dropin { background: var(--honey-soft); border-width: 4px; }
.dropin input { font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stats div { border: 3px solid var(--ink); padding: 12px; }
.stats strong { font-family: var(--font-head); font-size: 20px; display: block; }
.mod-item { padding: 12px 0; border-bottom: 2px dotted var(--grey-2); }
.mod-item p { margin: 0 0 6px; }
.mod input { display: inline-block !important; width: auto !important; margin: 0 6px 0 0 !important; padding: 4px 8px !important; font-size: 15px !important; }
.admin-head { margin-bottom: 20px; }
.panel.pending { background: var(--honey-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-toggle-target][hidden] { display: none; }
.shot figcaption { font-family: var(--font-fine); font-size: 12px; color: #ddd; background: var(--ink); padding: 4px 8px; }
/* fingerprint form groups + behind-the-scenes panels */
.fp-form-group + .fp-form-group { margin-top: 18px; }
.fp-form-group-head { margin: 0 0 4px; }
[data-bts-panel] > label + label, [data-bts-panel] > label + .check { margin-top: 14px; }
[data-bts-panel][hidden] { display: none; }
/* craft label, human touch, hidden gem */
.badge-craft { background: var(--paper); }
.badge-craft.craft-handcrafted, .badge-craft.craft-tools { background: var(--honey-soft); }
.badge-sub { font-family: var(--font-fine); font-size: 11px; }
.badge-gem { background: var(--honey); }
.card-craft { position: absolute; left: 8px; top: 8px; }
.card-gem { position: absolute; right: 8px; top: 8px; }
.card-img .card-craft .badge { position: static; }
.card-fp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.touch { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.touch-label { font-family: var(--font-fine); font-size: 12px; }
.touch-meter { display: inline-flex; gap: 2px; }
.touch-meter span { width: 9px; height: 12px; border: 2px solid var(--ink); background: var(--paper); }
.touch-meter span.on { background: var(--honey); }
.touch-num { font-family: var(--font-fine); font-size: 12px; font-variant-numeric: tabular-nums; }
.fp-touch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fp-touch .touch-label { font-size: 14px; font-weight: 600; font-family: var(--font-body); }
.fp-touch .touch-meter span { width: 16px; height: 18px; border-width: 3px; }
.fp-group + .fp-group { margin-top: 10px; }
.fp-group-head { margin: 0 0 6px; }
.fp-group-production .fp-item { padding: 5px 8px; }
.fp-group-production .fp-item .icon { width: 20px; height: 20px; }
.fp-why { margin: 14px 0 10px; padding: 12px 16px; border-left: 6px solid var(--honey); background: var(--grey-1); }
.fp-why p { margin: 0 0 4px; }
.fp-why-q { font-family: var(--font-label); font-size: 11px; text-transform: lowercase; letter-spacing: .04em; }
.gem-line { margin: -8px 0 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.interview dt { font-family: var(--font-label); font-size: 12px; line-height: 1.6; margin-top: 18px; text-transform: lowercase; }
.interview dd { margin: 6px 0 0; font-size: 19px; }
.interview dd p { margin: 0 0 8px; }
/* hand-sign picker in text boxes */
.rx-field { position: relative; margin-top: 6px; }
.rx-field textarea { margin-top: 0 !important; padding-right: 48px; }
.rx-field-btn { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; padding: 3px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.rx-field-btn:hover, .rx-field-btn[aria-expanded="true"] { background: var(--honey-soft); }
.rx-field-btn .icon { width: 26px; height: 26px; }
.rx-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 3px solid var(--ink); background: var(--paper); margin-top: 6px; }
.rx-bar[hidden] { display: none; }
.rx-pick { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--ink); line-height: 0; }
.rx-pick:hover, .rx-pick:focus-visible { background: var(--honey); }
.rx-pick .icon { width: 26px; height: 26px; }
/* inline signs in texts */
.rx-inline .icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; }
/* reactions under comments */
.rx-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.rx-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rx-chips { gap: 10px; }
.rx-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--ink); background: var(--paper); padding: 0; cursor: pointer; color: var(--ink); }
.rx-chip .icon { width: 22px; height: 22px; }
/* how often: black round badge on the top right of the icon */
.rx-count { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: var(--paper); font-family: var(--font-fine); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.rx-chip.is-mine { background: var(--honey); }
.rx-toggle { border: 0; background: none; padding: 2px; cursor: pointer; color: #777; line-height: 0; }
.rx-toggle:hover, .rx-toggle[aria-expanded="true"] { color: var(--ink); background: var(--honey-soft); }
.rx-toggle .icon { width: 20px; height: 20px; }
.rx-row .rx-bar { flex-basis: 100%; margin-top: 2px; }
[data-proof][hidden] { display: none; }

/* ---------- Insert Coin ---------- */
.coin-hero { text-align: center; padding: 16px 0 32px; }
.coin-hero .hero-sub { margin-bottom: 24px; }
.coin-kicker { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.coin-kicker a { text-decoration: none; }
.coin-steps { list-style: none; padding: 0; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 860px; text-align: left; }
.coin-steps li { border: 3px solid var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.coin-steps li:first-child { background: var(--honey-soft); }
.coin-steps strong { font-family: var(--font-label); font-size: 12px; }
.coin-steps span { font-family: var(--font-fine); font-size: 14px; }
.coin-ask { margin: 8px 0 4px; }
.coin-meta { margin: 0; }
.coin-play { margin: 20px 0 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.coin-play .fine { max-width: 720px; }
.badge-bug { background: #fff0ed; border-color: var(--danger); }
.fp-compact { padding: 14px; margin: 24px 0 16px; }
.fp-compact .fp-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.leave-build-note { border-left: var(--px) solid var(--danger); padding-left: 10px; }
.versions li { padding: 6px 0; border-bottom: 2px dashed var(--grey-2); }
.versions li:last-child { border-bottom: 0; }
.status-live { background: var(--honey); }
.status-graduated { background: var(--ink); color: var(--paper); }
.coin-card .card-img .card-gem { left: auto; }

/* ---------- share box ---------- */
.share { border: 3px dashed var(--ink); background: var(--honey-soft); padding: 18px; margin: 28px 0; }
.share h2 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.share-sub { margin: 0 0 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.share-link { display: flex; flex: 1 1 320px; min-width: 0; }
.share-link input { flex: 1 1 auto; min-width: 0; font-family: var(--font-fine); font-size: 14px; border: 3px solid var(--ink); border-right: 0; padding: 8px 10px; background: var(--paper); }
.share-link .btn { white-space: nowrap; }
.share-to { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }

/* site info (admin) + missing legal details */
.field-hint { display: block; margin-top: 4px; color: #555; }
mark.todo { background: var(--honey); outline: 2px dashed var(--ink); padding: 0 4px; font-family: var(--font-fine); }

/* ---------- system requirements (collapsed) ---------- */
.sysreq { margin-top: 12px; }
.sysreq summary { cursor: pointer; list-style: none; font-family: var(--font-fine); font-size: 13px; font-weight: 600; display: inline-block; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sysreq summary::-webkit-details-marker { display: none; }
.sysreq .sysreq-hide, .sysreq[open] .sysreq-show { display: none; }
.sysreq[open] .sysreq-hide { display: inline; }
.sysreq-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; margin-top: 12px; font-family: var(--font-fine); font-size: 13px; line-height: 1.5; font-weight: 300; }
.sysreq-col h3 { font-family: var(--font-fine); font-size: 13px; font-weight: 600; margin: 0 0 4px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.sysreq-level { margin: 8px 0 2px; font-weight: 600; color: #555; }
.sysreq-col ul { margin: 0; padding-left: 16px; }
.sysreq-col li { margin: 2px 0; overflow-wrap: anywhere; }
.sysreq-col strong { font-weight: 600; }
.sysreq-src { font-family: var(--font-fine); font-size: 11px; color: #777; margin: 10px 0 0; }
.rx-toggle[hidden] { display: none; }
.rx-chip.is-mine { cursor: pointer; }
.rx-pick.is-mine { background: var(--honey); outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Insert Coin feedback: badges, sent state, bug reports ---------- */
.badge-fb { margin: 0 2px; vertical-align: 2px; }
.badge-fb.fb-level-1 { background: var(--honey-soft); }
.badge-fb.fb-level-2 { background: var(--honey); }
.badge-fb.fb-level-3 { background: var(--ink); color: var(--paper); }
.fb-count { white-space: nowrap; }
.fb-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.fb-sent-btn { background: #e3f6ea; color: var(--ink); cursor: default; }
.fb-more > summary { cursor: pointer; font-family: var(--font-fine); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; margin-bottom: 10px; }
.bug-fields { border-left: var(--px) solid var(--danger); padding-left: 12px; }
.fb-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-shots img { width: 160px; height: 90px; object-fit: cover; border: 2px solid var(--ink); }
[data-feedback-form] button[disabled] { opacity: .7; cursor: progress; }

/* public "What was fun?" quotes under the "What is it?" box — no box of their own */
.game > .fun-quotes { margin-top: 18px; }
.fun-quote { margin: 0 0 14px; padding-left: 4px; }
.fun-quote blockquote { margin: 0; font-size: 19px; line-height: 1.5; }
.fun-quote figcaption { margin-top: 2px; color: #555; }
.fq-more { font-family: var(--font-fine); font-size: 13px; white-space: nowrap; }
