/* Make my game. Pixeldex world map style. CC0. */
:root {
  --sky: #8fd3ff;
  --grass: #6cc96f;
  --grass-dark: #3f9c48;
  --ink: #21324a;
  --ink-soft: #3d5170;
  --yellow: #ffcf3f;
  --red: #ff5a5f;
  --red-soft: #ffd9da;
  --sea: #3fa6e8;
  --white: #ffffff;
  --cream: #fff8e1;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--sky);
  color: var(--ink);
  font: 18px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
  font-variant-ligatures: none;
  overflow-x: hidden;
}
button, input, select { font: inherit; font-variant-ligatures: none; color: inherit; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img, svg, canvas { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 8px var(--yellow);
  border-radius: 6px;
}

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 16px; padding-bottom: 6px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 28px/1 "Pixelify Sans", system-ui, sans-serif; color: var(--white);
  text-shadow: 3px 3px 0 var(--ink); min-height: 44px;
}
.logo svg { display: block; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.top nav a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.top nav a:hover { text-decoration: underline; }

/* No AI needed banner */
.aifree {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink); padding: 10px 14px; margin: 12px 0 8px;
}
.aifree p { margin: 0; flex: 1 1 300px; }
.aifree-badge {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--grass); border: 3px solid var(--ink); border-radius: 6px;
  padding: 4px 12px 4px 8px; font-weight: 700;
}
.aifree-badge svg { display: block; }

/* Title row */
.hero-row { display: grid; gap: 10px 28px; align-items: center; margin: 14px 0 6px; }
@media (min-width: 900px) { .hero-row { grid-template-columns: 1fr 1fr; } }
h1 {
  font: 700 44px/1 "Pixelify Sans", system-ui, sans-serif; margin: 6px 0 10px; font-variant-ligatures: none;
}
h1 span { color: var(--white); text-shadow: 3px 3px 0 var(--ink); }
@media (min-width: 700px) { h1 { font-size: 60px; } }
.sub { font-size: 20px; margin: 0; max-width: 34em; }

/* Pixelbot */
.guide { display: flex; align-items: flex-start; gap: 12px; }
.guide-bot { flex: 0 0 auto; padding-top: 6px; }
.guide-bot svg { display: block; }
.guide-bot.hop { animation: hop .5s ease-out; }
@keyframes hop { 40% { transform: translateY(-8px); } }
.guide-talk { flex: 1; min-width: 0; }
.bubble {
  position: relative; margin: 0; background: var(--white); border: 3px solid var(--ink);
  border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); padding: 12px 16px; font-size: 19px; font-weight: 700;
  min-height: 3.2em;
}
.bubble::before {
  content: ""; position: absolute; left: -15px; top: 18px;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 13px solid var(--ink);
}
.bubble::after {
  content: ""; position: absolute; left: -9px; top: 21px;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 9px solid var(--white);
}
.guide-note { margin: 8px 0 0; font-size: 16px; color: var(--ink); }

/* Step nav */
.steps ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 16px; }
.steps button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 8px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink); font-weight: 700; cursor: pointer;
}
.steps button b {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sky); border: 2px solid var(--ink); font-size: 16px;
}
.steps button[aria-current="step"] { background: var(--yellow); }
.steps button[aria-current="step"] b { background: var(--white); }
.steps button.done b { background: var(--grass); }

/* Panels */
.panel {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink); padding: 18px 16px 20px; margin-bottom: 28px;
}
@media (min-width: 700px) { .panel { padding: 22px 26px 26px; } }
.panel h2 {
  font: 700 32px/1.1 "Pixelify Sans", system-ui, sans-serif; margin: 0 0 16px; font-variant-ligatures: none;
}
.panel h2:focus { outline: none; }
.panel h2:focus-visible { outline: 4px solid var(--ink); }
.panel h3 { font-size: 21px; margin: 0 0 6px; }
.panel-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 8px 18px; cursor: pointer;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink); font-weight: 700; font-size: 18px; text-decoration: none;
}
.btn.go { background: var(--yellow); font-size: 19px; }
.btn.warn { background: var(--red-soft); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }

/* Radio picture tiles */
.types { display: grid; gap: 18px; }
@media (min-width: 760px) { .types { grid-template-columns: 1fr 1fr; } }
.type-card, .tile { position: relative; display: block; cursor: pointer; }
.type-card input, .tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.face {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink); padding: 10px;
}
.type-card .face { padding: 12px; }
.type-art { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: 6px; image-rendering: pixelated; }
.type-name { font-size: 24px; font-weight: 700; margin: 10px 0 2px; }
.type-desc { font-size: 18px; }
input:checked + .face { background: var(--yellow); }
input:checked + .face::after {
  content: "Picked"; position: absolute; top: -12px; right: 10px;
  background: var(--grass); border: 3px solid var(--ink); border-radius: 6px; padding: 0 8px;
  font-weight: 700; font-size: 15px;
}
input:focus-visible + .face { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 8px var(--yellow); }
.face:hover { background: var(--cream); }
input:checked + .face:hover { background: var(--yellow); }

fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-size: 21px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.tile .face { align-items: center; justify-content: center; text-align: center; min-height: 128px; gap: 6px; }
.tiles.small .tile .face { min-height: 100px; }
.tile .art { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.tile .art svg { display: block; }
.tile .nm { font-weight: 700; font-size: 18px; line-height: 1.2; }
.world-art { display: flex; border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; }

/* Sliders */
.sliders { display: grid; gap: 18px; margin: 4px 0 20px; }
@media (min-width: 760px) { .sliders { grid-template-columns: 1fr 1fr; } }
.slider label { font-size: 21px; font-weight: 700; display: block; margin-bottom: 6px; }
.slider-row {
  display: flex; align-items: center; gap: 12px; background: var(--cream);
  border: 3px solid var(--ink); border-radius: var(--radius); padding: 8px 12px;
}
.slider-row .end { flex: 0 0 auto; display: flex; }
.slider-row input { flex: 1; min-width: 0; }
.slider-val { margin: 6px 0 0; font-weight: 700; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 12px; background: var(--sky); border: 3px solid var(--ink); border-radius: 8px; }
input[type="range"]::-moz-range-track { height: 6px; background: var(--sky); border: 3px solid var(--ink); border-radius: 8px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 36px; height: 36px; margin-top: -15px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
input[type="range"]:focus-visible { box-shadow: none; outline-offset: 2px; }

/* Switch */
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; max-width: 560px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui {
  flex: 0 0 auto; position: relative; width: 72px; height: 44px; border-radius: 24px;
  background: #e3e8ef; border: 3px solid var(--ink);
}
.switch-ui::after {
  content: ""; position: absolute; left: 4px; top: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink); transition: left .15s;
}
.switch input:checked + .switch-ui { background: var(--grass); }
.switch input:checked + .switch-ui::after { left: 32px; background: var(--yellow); }
.switch input:focus-visible + .switch-ui { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 8px var(--yellow); }

/* Level editor */
.editor { display: grid; gap: 16px; }
@media (min-width: 980px) { .editor { grid-template-columns: 200px minmax(0, 1fr); align-items: start; } }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
@media (min-width: 980px) { .palette { display: flex; flex-direction: column; } }
@media (max-width: 599px) { .tool kbd { display: none; } .tool { min-height: 52px; font-size: 17px; } }
.tool {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px 6px 8px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink); font-weight: 700; cursor: grab; text-align: left;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.tool .art { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tool .art svg { display: block; max-height: 40px; width: auto; }
.tool kbd {
  margin-left: auto; font: 700 14px "Atkinson Hyperlegible", system-ui, sans-serif; background: var(--cream);
  border: 2px solid var(--ink); border-radius: 4px; padding: 0 6px;
}
.tool[aria-pressed="true"] { background: var(--yellow); }
.tool.bin { background: var(--red-soft); }
.tool.bin[aria-pressed="true"] { background: #ff8a8d; }
.tool.bin.over { background: #ff8a8d; transform: scale(1.04); }
.palette-sep { flex-basis: 100%; height: 0; }

.board-col { min-width: 0; }
.board-scroll { overflow-x: auto; overflow-y: hidden; padding: 2px 8px 10px 2px; -webkit-overflow-scrolling: touch; }
#board {
  display: block; border: 4px solid var(--ink); border-radius: 6px; box-shadow: 5px 5px 0 var(--ink);
  image-rendering: pixelated; touch-action: none; cursor: pointer; max-width: none;
}
#board.pan { touch-action: pan-x pan-y; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.howto { font-size: 17px; margin: 12px 0 0; }

.ghost {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  transform: translate(-50%, -50%) scale(1.15); filter: drop-shadow(3px 3px 0 rgba(33, 50, 74, .6));
}
.ghost svg { display: block; }

/* Player */
.player { max-width: 900px; }

/* Save and share */
.name-row label { display: block; font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.name-row input, .link-box input {
  width: 100%; max-width: 520px; min-height: 52px; padding: 8px 14px; font-size: 20px;
  border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream);
}
.share-grid { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 900px) { .share-grid { grid-template-columns: repeat(3, 1fr); } }
.share-card {
  border: 3px solid var(--ink); border-radius: var(--radius); background: #eef8ff;
  box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px;
}
.share-card p { margin: 0 0 12px; }
.link-box { margin-top: 14px; }
.link-box label { font-weight: 700; display: block; margin-bottom: 4px; }
.link-box input { font-size: 16px; margin-bottom: 10px; }
.saved-h { margin-top: 8px !important; }
.saved { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.saved li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  border: 3px solid var(--ink); border-radius: var(--radius); padding: 8px 10px; background: var(--white);
}
.saved .sv-art { display: flex; }
.saved .sv-name { font-weight: 700; flex: 1 1 160px; }
.saved .sv-name small { display: block; font-weight: 400; font-size: 16px; }
.none { margin: 8px 0 0; }

/* Dialog */
dialog {
  border: 3px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 22px; max-width: min(460px, calc(100vw - 32px)); color: var(--ink);
}
dialog::backdrop { background: rgba(33, 50, 74, .5); }
dialog h2 { font: 700 28px/1.1 "Pixelify Sans", system-ui, sans-serif; margin: 0 0 8px; }
dialog p { margin: 0 0 16px; }
.ask-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Footer */
.foot { background: var(--grass); border-top: 4px solid var(--ink); padding: 18px 0 24px; margin-top: 10px; }
.foot p { margin: 4px 0; }
.foot a { font-weight: 700; display: inline-block; padding: 8px 0; }

/* Peek at the code */
.peek-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 16px; }
.peek-btn { background: #c7b5ff; }
.peek-btn[aria-expanded="true"] { background: var(--white); }
.peek-btn-art { display: flex; }
.peek-btn-art svg { display: block; }
.peek-hint { font-weight: 700; }
.work-main { min-width: 0; }
@media (min-width: 1200px) {
  .work.side { display: grid; grid-template-columns: minmax(0, 1fr) 530px; gap: 24px; align-items: start; }
  .work.side .peek { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .work.side .editor { grid-template-columns: minmax(0, 1fr); }
  .work.side .peek { padding-left: 20px; padding-right: 20px; }
  .work.side .code, .work.side .code-edit { font-size: 17px; }
  .work.side .palette { display: grid; flex-direction: row; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.peek { padding-top: 16px; }
.peek-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.peek-head h2 { margin: 0; }
.peek-guide { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 12px 0; }
.peek-bot { flex: 0 0 auto; padding-top: 4px; }
.peek-bot svg { display: block; }
.peek-bot.hop { animation: hop .5s ease-out; }
.peek-say { flex: 1; min-width: 0; font-size: 18px; min-height: 0; }
.peek-intro { margin: 0 0 12px; }
.code {
  background: #1b2740; color: #f2f4f8; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink); padding: 10px 0 6px; overflow-x: auto; max-width: 100%;
  font: 18px/1.7 "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-variant-ligatures: none; -webkit-overflow-scrolling: touch;
}
@media (max-width: 599px) { .code { font-size: 17px; } }
.code:focus-visible { outline-offset: 2px; }
.code-sec + .code-sec { margin-top: 2px; }
.code-lines { width: max-content; min-width: 100%; }
.cl { display: flex; align-items: center; white-space: pre; padding-right: 16px; border-left: 5px solid transparent; }
.cl code { font: inherit; }
.ln {
  flex: 0 0 auto; width: 3.2ch; margin-right: 1.4ch; text-align: right; color: #9aabc4;
  user-select: none; -webkit-user-select: none;
}
.tok-c { color: #9ee59a; }
.tok-k { color: #ff9ed2; font-weight: 700; }
.tok-s { color: #ffd77a; }
.tok-n { color: #7fd4ff; }
.tok-f { color: #c7b5ff; }
.tok-p { color: #f2f4f8; }
.cl.flash { animation: codeflash 1.6s ease-out; }
@keyframes codeflash {
  0%, 35% { background: #2e3f63; border-left-color: var(--yellow); }
  100% { background: transparent; border-left-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .cl.flash { animation: none !important; background: #2e3f63; border-left-color: var(--yellow); }
}
.code-edit {
  font: 700 18px/1.2 "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;
  background: var(--yellow); color: var(--ink); border: 2px solid #ffffff; border-radius: 5px;
  padding: 2px 4px; margin: 2px 0; min-height: 36px; vertical-align: middle;
}
.code-num { width: 3.6ch; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.code-num::-webkit-outer-spin-button, .code-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.code-colour { cursor: pointer; padding-right: 2px; }
.code-edit[aria-invalid="true"] { background: var(--red-soft); border-color: var(--red); }
.code-edit:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--red); border-radius: 5px; }
.code-extra { position: sticky; left: 0; width: 100%; max-width: 100%; padding: 2px 14px 10px; box-sizing: border-box; }
.code .mean-btn {
  font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; color: #1b2740; background: #c7b5ff;
  border: 2px solid #ffffff; border-radius: 6px; padding: 6px 12px; min-height: 40px; cursor: pointer;
}
.code .mean-btn[aria-expanded="true"] { background: #ffffff; }
.code .mean-btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--red); }
.mean-txt {
  font: 17px/1.5 "Atkinson Hyperlegible", system-ui, sans-serif; white-space: normal;
  background: var(--cream); color: var(--ink); border-radius: 6px; padding: 8px 12px; margin: 8px 0 2px;
}
.legend {
  list-style: none; padding: 0; margin: 2px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 8px;
  font: 16px/1.3 "Atkinson Hyperlegible", system-ui, sans-serif; white-space: normal;
}
.legend li { display: inline-flex; align-items: center; gap: 6px; background: #2e3f63; border-radius: 6px; padding: 3px 8px 3px 5px; }
.lg-art { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.lg-art svg { display: block; max-width: 24px; max-height: 24px; width: auto; height: auto; }
.lg-k { font-family: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace; color: #ffd77a; }
.lg-empty { display: block; width: 18px; height: 18px; border: 2px dashed #9aabc4; border-radius: 3px; }
.try { margin-top: 18px; }
.try h3 { margin: 0 0 8px; }
.try-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.try-list li {
  display: flex; align-items: flex-start; gap: 10px; background: #eef8ff;
  border: 3px solid var(--ink); border-radius: var(--radius); padding: 8px 12px;
}
.try-box { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; border: 3px solid var(--ink); border-radius: 5px; background: var(--white); }
.try-list li.done { background: #dff5df; }
.try-list li.done .try-box { background: var(--grass); box-shadow: inset 0 0 0 3px var(--white); }
.try-t { flex: 1; min-width: 0; }
.try-done { flex: 0 0 auto; background: var(--grass); border: 2px solid var(--ink); border-radius: 6px; padding: 0 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- "Make a game, no AI needed" sparkly nav pill (links to /make/) ---------- */
.nav a.nav-noai, .top nav a.nav-noai {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 6px 16px;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-weight: 700;
  color: #21324a;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(110deg, #ffcf3f 38%, #fff3c4 50%, #ffcf3f 62%);
  background-size: 300% 100%;
  background-position: 100% 0;
  border: 3px solid #21324a;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #21324a;
  animation: px-shimmer 4.5s ease-in-out infinite;
}
.nav a.nav-noai:hover, .top nav a.nav-noai:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #21324a; text-decoration: none; }
.nav a.nav-noai:focus-visible, .top nav a.nav-noai:focus-visible { outline: 3px solid #21324a; outline-offset: 3px; }
.nav-noai .spark {
  position: absolute;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'><rect x='2' y='0' width='1' height='1' fill='%2321324a'/><rect x='1' y='1' width='1' height='1' fill='%2321324a'/><rect x='3' y='1' width='1' height='1' fill='%2321324a'/><rect x='0' y='2' width='1' height='1' fill='%2321324a'/><rect x='4' y='2' width='1' height='1' fill='%2321324a'/><rect x='1' y='3' width='1' height='1' fill='%2321324a'/><rect x='3' y='3' width='1' height='1' fill='%2321324a'/><rect x='2' y='4' width='1' height='1' fill='%2321324a'/><rect x='2' y='1' width='1' height='1' fill='%23ffffff'/><rect x='1' y='2' width='1' height='1' fill='%23ffffff'/><rect x='2' y='2' width='1' height='1' fill='%23ffffff'/><rect x='3' y='2' width='1' height='1' fill='%23ffffff'/><rect x='2' y='3' width='1' height='1' fill='%23ffffff'/></svg>") center / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  animation: px-twinkle 2.2s steps(2, jump-none) infinite;
}
.nav-noai .s1 { top: -9px; right: 12px; }
.nav-noai .s2 { bottom: -8px; left: 10px; width: 10px; height: 10px; animation-delay: .7s; }
.nav-noai .s3 { top: -7px; left: 34%; width: 10px; height: 10px; animation-delay: 1.4s; }
@keyframes px-shimmer { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes px-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .nav a.nav-noai, .top nav a.nav-noai { animation: none; background: #ffcf3f; }
  .nav-noai .spark { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 1080px) {
  .nav a.nav-noai { margin: 6px 0 8px; font-size: 19px; }
}
