/* Quest Forge: the look shared by every page */
  /* fonts are served from this site (no Google Fonts requests, so no visitor data leaves for Google) */
  @font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url(/fonts/pixelify-sans-latin-400-normal.woff2) format("woff2"); }
  @font-face { font-family: "Pixelify Sans"; font-weight: 500; font-display: swap; src: url(/fonts/pixelify-sans-latin-500-normal.woff2) format("woff2"); }
  @font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url(/fonts/pixelify-sans-latin-700-normal.woff2) format("woff2"); }
  @font-face { font-family: "Spectral"; font-weight: 400; font-display: swap; src: url(/fonts/spectral-latin-400-normal.woff2) format("woff2"); }
  @font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/spectral-latin-400-italic.woff2) format("woff2"); }
  @font-face { font-family: "Spectral"; font-weight: 600; font-display: swap; src: url(/fonts/spectral-latin-600-normal.woff2) format("woff2"); }
  /* One look: a 1988 PC on a DOS-blue desk. Sierra's own white windows carry the interface. */
  :root {
    --dos: #0000aa;        /* EGA 1: the page */
    --dos-deep: #000080;   /* lower bands */
    --paper: #ffffff;      /* Sierra windows */
    --ink: #000000;
    --red: #aa0000;        /* EGA 4: primary actions, logo depth */
    --yellow: #ffff55;     /* EGA 14: what matters on blue */
    --grey: #aaaaaa;       /* EGA 7: quiet text on blue */
    --dim: #555555;        /* EGA 8: quiet text on white */
    --beige: #cfc6ad;      /* the monitor's plastic */
    --beige-dark: #a39a80;
    --pixel: "Pixelify Sans", "Courier New", monospace;
    --book: "Spectral", Georgia, serif;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { background: var(--dos); }
  body { margin: 0; background: var(--dos); color: var(--paper); font: 18px/1.6 var(--book); }
  a { color: var(--yellow); text-underline-offset: 3px; }
  img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
  :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---- the menu bar: Sierra's white strip across the top ---- */
  .bar { position: sticky; top: 0; z-index: 20; background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--ink); }
  .bar-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 4px; min-height: 40px; font: 500 17px var(--pixel); }
  .bar a, .bar button { color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; padding: 6px 12px; cursor: pointer; }
  .bar a:hover, .bar button:hover, .bar a[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .bar .home { font-weight: 700; padding-left: 4px; }
  .bar .home::before { content: "\2666"; margin-right: 8px; color: var(--red); }
  .bar .spacer { flex: 1; }
  .who { display: flex; align-items: center; gap: 8px; }
  .who img { width: 26px; height: 26px; border: 2px solid var(--ink); image-rendering: auto; }
  @media (max-width: 640px) { .bar .nav-extra { display: none; } }

  /* ---- hero ---- */
  /* The title card spans the top; below it the monitor and the forge window share one row,
     so their tops and bottoms line up; what is playing sits under the monitor. */
  .hero { max-width: 1240px; margin: 0 auto; padding: 28px 16px 48px; display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    grid-template-areas: "title title" "screen forge" "under .";
    gap: 22px 40px; }
  .title { grid-area: title; text-align: center; padding-bottom: 6px; }
  .screen { grid-area: screen; min-width: 0; }
  .under { grid-area: under; min-width: 0; }
  .forge-col { grid-area: forge; display: flex; min-width: 0; }
  .forge-col .win { flex: 1; display: flex; flex-direction: column; }
  .forge-col textarea { flex: 1; }
  .forge-col .foot { margin-top: auto; padding-top: 12px; }
  @media (max-width: 980px) {
    .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "screen" "under" "forge"; gap: 18px; padding-top: 18px; }
  }

  /* the monitor: beige plastic, dark glass, a power light */
  .monitor { background: linear-gradient(var(--beige), var(--beige-dark)); border-radius: 18px 18px 10px 10px; padding: 22px 22px 14px; box-shadow: 0 2px 0 #fff8 inset, 0 -3px 0 #0003 inset, 10px 12px 0 #00005a; }
  .glass { background: #000; border-radius: 10px; padding: 14px; box-shadow: 0 0 0 3px #7d755f, inset 0 0 24px #000; position: relative; }
  /* 320 x 200 shown at 4:3, as on a 1988 monitor: each pixel a little taller than wide, exactly as the artists drew for */
  .holder { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #000; }
  .holder canvas.screen { width: 100%; height: 100%; display: block; cursor: none; outline: none; }
  .chin { display: flex; align-items: center; gap: 12px; padding-top: 10px; color: #4a4434; font: 500 14px var(--pixel); }
  .chin .badge { letter-spacing: .08em; }
  .chin .led { width: 9px; height: 9px; border-radius: 50%; background: #3f3; box-shadow: 0 0 6px #3f3; flex: none; }
  /* the monitor's own buttons: beige plastic that presses in */
  .knobs { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .hw { font: 500 13px var(--pixel); color: #3d382a; background: linear-gradient(#e2dac3, #b9b097); border: 1px solid #7d755f; border-radius: 3px; padding: 2px 9px; cursor: pointer; box-shadow: inset 0 1px 0 #fff9, 0 1px 0 #6d6550; }
  .hw:hover { background: linear-gradient(#ebe4cf, #c4bba2); }
  .hw:active, .hw[aria-pressed="true"] { background: linear-gradient(#b9b097, #cfc6ad); box-shadow: inset 0 1px 3px #0006; transform: translateY(1px); }
  @media (max-width: 560px) { .chin .badge, .chin .grille, #b-pop, #b-big { display: none; } }

  /* Big screen: the monitor takes the full width, as large as fits the window's height */
  .big .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "screen" "under" "forge" "title"; }
  .big .screen, .big .under { width: min(100%, calc((100vh - 130px) * 1.3333 + 44px)); justify-self: center; }
  .big .forge-col { width: min(100%, 680px); justify-self: center; margin-top: 18px; }
  .big .title { padding-top: 24px; }

  /* the title screen shown before each game: the box on the left, the name and "press any key" on the right */
  .titlecard { position: absolute; inset: 0; display: flex; gap: 4%; align-items: center; background: #000; padding: 3% 5%; cursor: pointer; }
  .titlecard .tbox { position: relative; height: 92%; aspect-ratio: 4 / 5; flex: none; min-width: 0; overflow: hidden; box-shadow: 6px 6px 0 #222; }
  .titlecard .tbox img, .titlecard .tbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
  .titlecard .tbox.qfz-click { cursor: inherit; }   /* a click on the box begins the game; its magnifier (zoom.js) opens the art */
  .titlecard .twords { color: #fff; min-width: 0; }
  .titlecard h3 { font: 700 clamp(18px, 3.4vw, 40px)/1.05 var(--pixel); color: var(--yellow); margin: 0 0 8px; }
  .titlecard .tby { color: var(--grey); margin: 0 0 14px; font-style: italic; }
  .titlecard .ttag { font: italic clamp(14px, 1.6vw, 20px)/1.4 var(--book); margin: 0 0 22px; }
  .titlecard .tgo { font: 500 clamp(14px, 1.6vw, 20px) var(--pixel); color: #fff; margin: 0 0 10px; animation: blink 1.1s steps(2, start) infinite; }
  .titlecard .thelp { font-size: 14px; color: var(--grey); margin: 0; }
  @keyframes blink { to { visibility: hidden; } }
  @media (max-width: 560px) { .titlecard .tbox { display: none; } }

  /* when the browser refuses real full screen, the monitor fills the window instead */
  /* Full screen (real, or the monitor filling the window when the browser refuses): the picture as large as fits */
  .fakefull body { overflow: hidden; }
  .fakefull .monitor { position: fixed; inset: 0; z-index: 50; }
  .monitor:fullscreen, .fakefull .monitor { border-radius: 0; padding: 10px 10px 8px; display: flex; flex-direction: column; box-shadow: none; }
  .monitor:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; padding: 10px 10px 8px; display: flex; flex-direction: column; box-shadow: none; }
  .monitor:fullscreen .glass, .monitor:-webkit-full-screen .glass, .fakefull .glass { flex: 1; display: grid; place-items: center; padding: 0; border-radius: 4px; }
  .monitor:fullscreen .holder, .monitor:-webkit-full-screen .holder, .fakefull .holder { width: min(100%, calc((100vh - 70px) * 1.3333)); }

  /* New window: the page shrinks to only the game */
  .popout body { background: #000; }
  .popout .bar, .popout .title, .popout .under, .popout .forge-col, .popout .band, .popout footer, .popout .chin { display: none; }
  .popout .hero { display: block; padding: 0; max-width: none; }
  .popout .monitor { padding: 0; border-radius: 0; background: #000; box-shadow: none; }
  .popout .glass { height: 100vh; padding: 0; border-radius: 0; box-shadow: none; display: grid; place-items: center; }
  .popout .holder { width: min(100vw, 133.33vh); }
  .chin .grille { width: 60px; height: 8px; background: repeating-linear-gradient(90deg, #7d755f 0 3px, transparent 3px 6px); }

  /* the strip under the monitor: what is playing, and save / restore / share */
  .playing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .playing h2 { margin: 0; font: 700 22px/1.2 var(--pixel); color: var(--paper); }
  .playing .by { color: var(--grey); font-style: italic; }
  .playing .acts { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
  .hint { color: var(--grey); font-size: 15px; margin: 10px 0 0; }
  kbd { white-space: nowrap; font: 14px var(--pixel); background: var(--paper); color: var(--ink); padding: 0 5px; border: 1px solid var(--ink); }
  .cmd { display: none; margin-top: 12px; gap: 8px; }
  .cmd input { flex: 1; min-width: 0; font: 18px var(--pixel); padding: 8px 10px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
  @media (pointer: coarse) { .cmd { display: flex; } .hint.keys { display: none; } }

  /* the logo is painted from Sierra's own system font, see drawLogo() */
  .logo { display: block; width: min(100%, 600px); height: auto; margin: 0 auto 10px; }
  .lede { font-size: 21px; line-height: 1.45; margin: 0 auto; max-width: 46ch; color: #e6e6f4; text-wrap: balance; }

  /* ---- Sierra windows ---- */
  .win { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink), 8px 8px 0 #00005a; padding: 18px 20px 20px; }
  .win h3 { margin: -18px -20px 14px; padding: 4px 12px; background: var(--ink); color: var(--paper); font: 500 17px var(--pixel); text-align: center; }
  .win label { display: block; font: 600 17px var(--book); margin-bottom: 8px; }
  .win textarea { width: 100%; min-height: 104px; resize: vertical; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 10px 12px; font: 18px/1.45 var(--pixel); }
  .win textarea::placeholder { color: #777; }
  .ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
  .idea { font: 15px var(--book); background: none; color: var(--ink); border: 1px dashed var(--dim); padding: 2px 10px; cursor: pointer; }
  .idea:hover { border-style: solid; border-color: var(--ink); }
  .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .note { font-size: 15px; color: var(--dim); margin: 12px 0 0; }
  .note strong { color: var(--ink); }
  .status { font: 15px/1.45 var(--pixel); margin-top: 12px; min-height: 1.4em; color: var(--ink); }
  .status.err { color: var(--red); }

  /* Sierra dialog buttons: a black frame; the chosen one is inverted */
  .btn { font: 500 17px var(--pixel); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); padding: 5px 14px; cursor: pointer; }
  .btn:hover { background: var(--ink); color: var(--paper); }
  .btn.go { background: var(--red); color: var(--paper); border-color: var(--ink); }
  .btn.go:hover { background: var(--ink); }
  .btn[disabled] { opacity: .45; cursor: default; }
  .btn.on-blue { background: transparent; color: var(--paper); border-color: var(--paper); }
  .btn.on-blue:hover { background: var(--paper); color: var(--ink); }
  .btn.small { font-size: 15px; padding: 2px 10px; }

  /* save / restore window over the game */
  .over { position: absolute; inset: 0; display: grid; place-items: center; background: #0008; z-index: 5; padding: 8px; }
  .over[hidden] { display: none; }
  .over .win { width: min(440px, 100%); max-height: 100%; overflow: auto; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink); }
  .slots { list-style: none; margin: 0 0 12px; padding: 0; border: 2px solid var(--ink); max-height: 150px; overflow: auto; }
  .slots button { display: flex; width: 100%; gap: 10px; text-align: left; background: none; border: 0; padding: 3px 10px; font: 16px var(--pixel); color: var(--ink); cursor: pointer; }
  .slots button[aria-pressed="true"], .slots button:hover { background: var(--ink); color: var(--paper); }
  .slots .n { width: 1.4em; color: inherit; opacity: .6; }
  .slots .when { margin-left: auto; opacity: .7; }
  .over input[type=text] { width: 100%; font: 17px var(--pixel); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 5px 8px; margin-bottom: 12px; }

  /* ---- lower bands ---- */
  .band { background: var(--dos-deep); border-top: 2px solid #000; }
  .band.alt { background: var(--dos); }
  .band-in { max-width: 1240px; margin: 0 auto; padding: 44px 16px 52px; }
  .band h2 { font: 700 30px/1.1 var(--pixel); margin: 0 0 6px; color: var(--yellow); }
  .band .sub { color: var(--grey); margin: 0 0 24px; max-width: 60ch; }

  /* game cards: a screenshot in a Sierra frame */
  .games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 26px; }
  .card { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 #000040; display: flex; flex-direction: column; }
  /* each game is shown as its box: the cover art, or the first room for older games */
  .card .shot { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; background: #000; border-bottom: 2px solid var(--ink); cursor: pointer; padding: 0; border-left: 0; border-right: 0; border-top: 0; }
  .card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
  .card .shot:hover img { filter: brightness(1.12); }
  .card .body { padding: 10px 12px 12px; display: grid; gap: 6px; }
  .card h4 { margin: 0; font: 700 18px/1.2 var(--pixel); }
  .card .meta { font-size: 14px; color: var(--dim); margin: 0; }
  .card .theme { font-size: 15px; margin: 0; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .row { gap: 6px; margin-top: 4px; }
  .card label.chk { font: 14px var(--book); display: flex; align-items: center; gap: 6px; cursor: pointer; }
  .empty { color: var(--grey); font-style: italic; }

  /* the box covers (site.js showBox): the stored JPEG, or the engine's box painted in the page while the server paints.
     A new box fades in over the one before; "Painting the box…" sits just above the tagline (y 600-630 of 750, where the
     box keeps bodies and ground but no face, prop or text) until the last one is in */
  .card .shot img.cv, .titlecard .tbox img.cv, .coverbar .cb-box img.cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  img.cv.fade { opacity: 0; transition: opacity .4s ease; }
  img.cv.fade.on { opacity: 1; }
  .cv-label { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); z-index: 1; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
    font: 500 13px/1.3 var(--pixel); color: var(--paper); background: #000000d0; border: 1px solid #ffffff80; padding: 2px 9px; white-space: nowrap; pointer-events: none; }
  .cv-label::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; background: var(--yellow); animation: blink 1.1s steps(2, start) infinite; }
  .titlecard .cv-label { font-size: clamp(11px, 1.3vw, 15px); }
  /* the box row under the screen, for the game's maker and admins: the box, what is happening, the button above */
  .coverbar { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px 12px 8px 8px; border: 1px dashed #ffffff70; }
  .coverbar[hidden] { display: none; }
  .coverbar .cb-box { position: relative; overflow: hidden; flex: none; width: 52px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--paper); background: #000; cursor: pointer; }
  .coverbar .cb-box:hover img { filter: brightness(1.12); }
  .coverbar .cb-text { margin: 0; color: #dcdcf0; font-size: 15px; line-height: 1.4; }
  .coverbar.err .cb-text { color: var(--yellow); }
  /* the Admin page's box list (covers-admin.js) */
  #boxes table a { color: var(--ink); }

  .sorts { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 24px; }
  .sorts .btn[aria-pressed="true"], #b-like[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
  @media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
  .steps li { border-left: 4px solid var(--yellow); padding: 2px 0 2px 16px; }
  .steps h3 { margin: 0 0 6px; font: 700 21px var(--pixel); color: var(--paper); }
  .steps p { margin: 0; color: #dcdcf0; max-width: 40ch; }

  /* feedback window and the owner's inbox */
  .fbwin { width: min(520px, calc(100vw - 32px)); margin: auto; }
  .fbwin::backdrop { background: #00005acc; }
  .fbwin textarea { min-height: 120px; margin-bottom: 14px; }
  .fbwin input { width: 100%; font: 17px var(--pixel); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 6px 8px; margin-bottom: 14px; }
  .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
  .note-card { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 12px 14px; }
  .note-card p { margin: 0 0 8px; white-space: pre-wrap; }
  .note-card .meta { color: var(--dim); font-size: 14px; }
  .band-in .wish-h { margin-top: 44px; }
  .wish-tools { margin: 0 0 14px; display: flex; gap: 10px; flex-wrap: wrap; }
  .wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 760px; }
  .wish { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 6px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .wish .n { font-family: var(--pixel); color: var(--dim); }
  .wish .eg { grid-column: 1 / -1; color: var(--dim); font-size: 14px; overflow-wrap: anywhere; }
  .wish.tool { grid-template-columns: auto 1fr auto; align-items: center; }
  .wish.tool .eg { grid-column: 2 / 3; }
  .wish.tool canvas { grid-row: 1 / span 2; width: 80px; height: 78px; image-rendering: pixelated; border: 1px solid var(--ink); background: #000; }
  .wish.tool .acts { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 6px; }
  .wish.tool .twin-note { grid-column: 2 / 3; color: #aa0000; font-size: 14px; font-weight: 600; }
  .wish.tool.twin canvas { grid-row: 1 / span 3; }
  .wish.tool.twin .acts { grid-row: 1 / span 3; }
  /* a wished detail: on its own, close up, and beside it the object the game laid it on */
  .wish.tool .thumbs { grid-row: 1 / span 3; display: flex; align-items: flex-end; gap: 4px; }
  .wish.tool .thumbs canvas.used { width: 48px; height: 47px; }
  .wish.tool .sat { grid-column: 2 / 3; color: var(--dim); font-size: 13px; font-style: italic; }
  .ws-zoom-box { margin: 8px 0 0; }
  .ws-row[hidden] { display: none; }
  .ws-zoom-box canvas { width: 100%; max-width: 384px; aspect-ratio: 192 / 221; image-rendering: pixelated; background: #000; border: 2px solid var(--ink); display: block; }
  .ws-zoom-box figcaption, .ws-sat { font-size: 14px; color: var(--dim); margin: 2px 0 8px; }
  .wsdlg { width: min(980px, calc(100vw - 32px)); margin: auto; }
  .wsdlg::backdrop { background: #00005acc; }
  .ws-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 20px; }
  .ws-view { width: 100%; aspect-ratio: 160 / 156; image-rendering: pixelated; background: #000; border: 2px solid var(--ink); display: block; }
  .ws-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
  .ws-ways canvas { width: 100%; aspect-ratio: 160 / 156; image-rendering: pixelated; background: #000; border: 1px solid var(--ink); }
  .ws-drafts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .ws-drafts button[aria-pressed="true"] { background: var(--yellow); }
  .ws-note { min-height: 1.4em; margin: 10px 0 0; }
  .ws-right label { display: block; margin-bottom: 10px; }
  .ws-right input, .ws-right select, .ws-right textarea { width: 100%; font: 17px var(--pixel); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 5px 8px; margin-top: 3px; box-sizing: border-box; }
  .ws-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ws-right label.check { display: flex; align-items: center; gap: 8px; }
  .ws-right label.check input { width: auto; margin: 0; flex: none; }
  .ws-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
  @media (max-width: 760px) { .ws-grid { grid-template-columns: 1fr; } }
  footer { background: #000; color: var(--grey); font-size: 15px; }
  footer .band-in { padding: 28px 16px; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }
  footer p { margin: 0; max-width: 70ch; }
  footer .engine-tag { flex-basis: 100%; font-size: 11px; color: #555555; letter-spacing: 0.03em; }

  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

  /* the pixel font's fi/fl ligatures come out as one wrong letter */
  *, *::before, *::after { font-variant-ligatures: none !important; }
  .lib-card.still canvas { aspect-ratio: 120 / 84; }

  /* ---------- the Assets page ---------- */
  .page-h { font: 700 38px/1.1 var(--pixel); margin: 0 0 8px; color: var(--yellow); }
  .assets-page main > .status { max-width: 1240px; margin: 0 auto; padding: 0 16px 30px; color: var(--yellow); }
  .sub-h { font: 700 22px var(--pixel); color: var(--yellow); margin: 40px 0 12px; }
  .lib-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
  .lib-tools input, .lib-tools select { font: 17px var(--pixel); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 5px 8px; }
  .lib-tools input { flex: 1 1 220px; max-width: 360px; }
  .lib-count { color: var(--grey); font: 15px var(--pixel); }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
  .chip { font: 15px var(--pixel); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 2px 10px; cursor: pointer; }
  .chip[aria-pressed="true"] { background: var(--yellow); }
  .lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .lib-card { width: 100%; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 5px 5px 0 #000040; padding: 0 0 8px; display: grid; gap: 2px; text-align: left; cursor: pointer; font: inherit; }
  .lib-card.still { cursor: pointer; }
  .lib-card canvas { width: 100%; aspect-ratio: 160 / 156; image-rendering: pixelated; background: #000; border-bottom: 2px solid var(--ink); display: block; }
  .lib-card b { font: 600 15px/1.2 var(--pixel); padding: 4px 8px 0; }
  .lib-card .meta { font-size: 13px; color: var(--dim); padding: 0 8px; overflow-wrap: anywhere; }
  button.lib-card:hover canvas, .env-card:hover canvas { filter: brightness(1.15); }
  .env-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .env-card { width: 100%; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 5px 5px 0 #000040; padding: 0 0 6px; display: grid; gap: 4px; cursor: pointer; font: inherit; text-align: left; }
  .env-card canvas { width: 100%; aspect-ratio: 4 / 3; image-rendering: pixelated; background: #000; border-bottom: 2px solid var(--ink); display: block; }
  .env-card b { font: 600 15px var(--pixel); padding: 2px 8px; }
  .env-card .meta { font-size: 13px; color: var(--dim); padding: 0 8px; }
  .env-card .old-style { font: 12px var(--pixel); color: var(--red); padding: 0 8px; }
  .vd-grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .vd-view { width: 100%; aspect-ratio: 4 / 3; image-rendering: pixelated; background: #000; border: 2px solid var(--ink); display: block; }
  .vd-view.characters { aspect-ratio: 120 / 84; max-width: 480px; }
  @media (max-width: 760px) { .vd-grid { grid-template-columns: 1fr; } }
  .builder { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 20px; align-items: start; }
  .env-view { width: 100%; aspect-ratio: 4 / 3; image-rendering: pixelated; background: #000; border: 2px solid var(--ink); display: block; }
  .env-json { margin: 10px 0 0; padding: 8px 10px; background: #000; color: var(--grey); font: 13px/1.4 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
  .env-form { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .env-form label { font: 600 14px var(--book); display: grid; gap: 2px; }
  .env-form label.check { display: flex; align-items: center; gap: 6px; }
  .env-form select { font: 15px var(--pixel); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 2px 4px; width: 100%; }
  .ws-ways.six { grid-template-columns: repeat(3, 1fr); }
  .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; }
  .facts dt { font: 600 15px var(--book); }
  .facts dd { margin: 0; overflow-wrap: anywhere; }
  @media (max-width: 760px) { .builder { grid-template-columns: 1fr; } .env-form { grid-template-columns: 1fr; } }
  .lib-card .old-style { font: 12px var(--pixel); color: var(--red); padding: 0 8px; }
  /* the Admin page: users */
  .table-wrap { overflow-x: auto; background: var(--paper); border: 2px solid var(--ink); box-shadow: 5px 5px 0 #000040; }
  table.users { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 15px; }
  table.users th { font: 14px var(--pixel); text-align: left; background: var(--ink); color: var(--paper); padding: 6px 8px; white-space: nowrap; }
  table.users td { padding: 6px 8px; border-top: 1px solid #ccc; vertical-align: middle; white-space: nowrap; }
  table.users td.who { white-space: normal; min-width: 200px; }
  table.users .who img { width: 24px; height: 24px; border: 1px solid var(--ink); vertical-align: middle; margin-right: 6px; image-rendering: auto; }
  table.users .who small { display: block; color: var(--dim); }
  table.users tr.blocked td { color: #888; text-decoration: line-through; }
  table.users input[type=number] { width: 4.5em; font: 15px var(--pixel); border: 2px solid var(--ink); padding: 1px 4px; background: var(--paper); color: var(--ink); }
  table.users input[type=number]:disabled { background: #ddd; }
  table.users input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
  table.users .tag { font: 12px var(--pixel); background: var(--yellow); padding: 0 4px; margin-left: 4px; }
  .add-admin { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; color: var(--grey); }
  .add-admin label { display: grid; gap: 4px; flex: 1 1 280px; max-width: 420px; }
  .add-admin input { font: 16px var(--pixel); border: 2px solid var(--ink); padding: 4px 6px; background: var(--paper); color: var(--ink); }
  .ver-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font: 600 15px var(--book); }
  .ver-pick select { font: 14px var(--pixel); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 2px 4px; max-width: 100%; }
  .ver-pick small { color: var(--dim); font-weight: 400; }
  .wish-done { color: var(--grey); font: 15px var(--book); display: inline-flex; align-items: center; gap: 6px; }

  /* ---------- the asset studio (studio-ui.js): the workshop's job panel, and the Admin page's band ---------- */
  .ws-hint { font-size: 14px; line-height: 1.4; color: var(--dim); margin: -2px 0 10px; }
  .ws-drafts .btn.studio { font-variant-numeric: tabular-nums; }
  .st { border-top: 2px solid var(--ink); margin-top: 18px; padding-top: 12px; }
  .st[hidden], .st-detail[hidden], .st-notes[hidden] { display: none; }
  .st-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .st-line { flex: 1 1 320px; margin: 0; font: 500 17px/1.4 var(--pixel); }
  .st-line.running::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; vertical-align: 1px; background: var(--red); animation: blink 1.1s steps(2, start) infinite; }
  .st-line.bad { color: var(--red); }
  .st-notes { font-size: 14px; color: var(--dim); font-style: italic; margin: 4px 0 0; overflow-wrap: anywhere; }
  .st-rounds { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .st-chip { display: inline-grid; grid-template-columns: repeat(3, auto); justify-content: start; align-items: center; gap: 2px 6px; font: 15px var(--pixel); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 3px 8px; cursor: pointer; text-align: left; }
  .st-chip small { grid-column: 1 / -1; font: 12px/1.3 var(--pixel); color: var(--dim); white-space: nowrap; }
  button.st-chip:hover { background: #eee; }
  .st-chip[aria-pressed="true"] { background: var(--yellow); }
  .st-chip.passed { box-shadow: inset 0 -3px 0 #00aa00; }
  .st-chip.now { border-style: dashed; cursor: default; }
  .st-more { font-size: 12px; color: var(--dim); }
  .st-dot { width: 8px; height: 8px; background: var(--red); animation: blink 1.1s steps(2, start) infinite; }
  .st-score { display: inline-block; min-width: 2.3em; text-align: center; font: 600 15px/1.35 var(--pixel); padding: 0 5px; border: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
  .st-score.pass { background: #00aa00; color: #fff; }
  .st-score.near { background: #aa5500; color: #fff; }
  .st-score.low { background: var(--red); color: #fff; }
  .st-score.none { background: #dddddd; color: var(--dim); }
  .st-end { font-size: 14px; color: var(--dim); margin: 8px 0 0; }
  .st-end:empty { display: none; }
  .st-finals { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
  .st-card { border: 2px solid var(--ink); background: var(--paper); display: grid; grid-template-rows: auto; align-content: start; gap: 4px; padding: 0 0 8px; }
  .st-card.open { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px var(--ink); }
  .st-pic { display: grid; place-items: center; min-height: 246px; padding: 8px; background: #202020; border: 0; border-bottom: 2px solid var(--ink); cursor: pointer; }
  .st-pic:hover .st-img { filter: brightness(1.12); }
  .st-img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
  .st-nopic { color: #bbbbbb; font: 14px var(--pixel); padding: 20px; text-align: center; }
  .st-meta { display: flex; align-items: center; gap: 8px; padding: 2px 10px 0; font: 17px var(--pixel); }
  .st-tag { font: 12px var(--pixel); background: var(--yellow); border: 1px solid var(--ink); padding: 0 5px; }
  .st-card.picked .st-meta::after { content: "in use"; font: 12px var(--pixel); background: var(--ink); color: var(--paper); padding: 0 5px; }
  .st-by, .st-verdict { margin: 0; padding: 0 10px; font-size: 14px; line-height: 1.35; color: var(--dim); }
  .st-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 0; }
  .st-detail { margin-top: 14px; border: 2px solid var(--ink); padding: 10px 12px 12px; }
  .st-dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; }
  .st-dhead b { font: 600 18px var(--pixel); }
  .st-dhead .spacer { flex: 1; }
  .st-figs { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 10px; }
  .st-fig { margin: 0; padding: 6px; background: #202020; max-width: 100%; box-sizing: border-box; }
  .st-fig figcaption { font: 12px/1.35 var(--book); color: #cccccc; margin-top: 4px; max-width: 46ch; }
  .st-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 12px; }
  .st-judge + .st-judge { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--dim); }
  .st-judge h5, .st-checks h5 { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font: 600 16px var(--pixel); margin: 0 0 4px; }
  .st-scores { font: 13px var(--pixel); color: var(--dim); margin: 0 0 4px; }
  .st-list h6 { font: 600 14px var(--book); margin: 8px 0 2px; }
  .st-list p { margin: 0; font-size: 14px; }
  .st-list ul, .st-list ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.4; }
  .st-block li, .st-fail li { color: var(--red); }
  .st-auto li { color: #006600; }
  .st-done, .st-ok { font-size: 14px; color: #006600; margin: 6px 0 0; }
  .st-checks .st-warn { font-size: 14px; color: #aa5500; }
  .st-cost { white-space: pre-line; font: 15px/1.5 var(--pixel); margin: 12px 0 0; }
  .st-empty { color: var(--dim); font-style: italic; margin: 0; }
  @media (max-width: 760px) { .st-cols { grid-template-columns: 1fr; } .st-pic { min-height: 0; } }
  /* the Admin page's band */
  .st-spend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
  .st-tile { display: grid; min-width: 150px; padding: 8px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 5px 5px 0 #000040; }
  .st-tile span { font: 14px var(--book); color: var(--dim); }
  .st-tile b { font: 700 26px/1.2 var(--pixel); }
  .st-tile small { font-size: 13px; color: var(--dim); }
  .st-spend .st-warnline { flex-basis: 100%; margin: 0; color: var(--yellow); }
  table.users tr.st-failed td { color: var(--red); }
  table.st-jobs .st-score { font-size: 13px; }
  .st-set { display: grid; gap: 12px; max-width: 980px; padding: 12px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 5px 5px 0 #000040; }
  .st-fs { border: 1px solid var(--ink); margin: 0; padding: 6px 12px 12px; min-width: 0; }
  .st-fs legend { font: 600 16px var(--pixel); padding: 0 6px; }
  .st-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
  .st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; }
  .st-field { display: grid; gap: 2px; font: 600 14px var(--book); }
  .st-field small { font-weight: 400; font-size: 12px; color: var(--dim); }
  .st-field select, .st-field input, .st-prices input { width: 100%; box-sizing: border-box; font: 15px var(--pixel); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 2px 4px; }
  .st-set .table-wrap { box-shadow: none; }
  .st-prices input { min-width: 5.5em; }
  .st-prices td { white-space: nowrap; }
  .st-prices tr.st-long td { background: #f2f2f2; font-size: 13px; }
  .st-prices tr.st-long td:first-child input { width: 7em; }
  .st-set .st-warnline { color: var(--red); margin: 0 0 8px; font-size: 15px; }
  .st-okline { color: #006600; margin: 0 0 8px; font-size: 15px; }
  /* the critic's calibration (Admin page): the latest run's line and its cases */
  .st-cal > .st-okline, .st-cal > .st-warnline, .st-cal > .st-cal-line { margin: 4px 0 8px; font-size: 15px; max-width: 90ch; }
  .st-cal > .st-okline { color: #55ff55; }          /* EGA 10 on the blue band */
  .st-cal > .st-warnline { color: var(--yellow); }
  .st-cal > .st-cal-line { color: var(--grey); }
  .st-cal-pic { display: block; max-height: 48px; max-width: 72px; image-rendering: pixelated; }
  .st-cal-table td { vertical-align: middle; }
  table.users.st-cal-table td.who { display: table-cell; min-width: 140px; }
  .st-cal-note { font-size: 13px; color: var(--dim); max-width: 360px; }
  .st-cal-bad td.who { color: var(--red); }
  .st-admin-note { font: 15px var(--pixel); color: var(--yellow); min-height: 1.4em; margin: 10px 0 0; }
  .st-admin-note.bad { color: #ff5555; }

  /* the Game Studio offer (1.36.0): a Sierra window over the page */
  /* the Game Studio's pill in the top bar: red, readable on the white bar, kept on phones (shorter there) */
  .bar .nav-pill { background: var(--red); color: var(--paper); border: 2px solid var(--ink); padding: 2px 10px; margin: 0 4px; white-space: nowrap; }
  .bar .nav-pill:hover { background: var(--ink); color: var(--paper); }
  .bar .nav-pill[hidden] { display: none; }
  .bar a, .bar button { white-space: nowrap; }
  .studio-offer a.btn { text-decoration: none; display: inline-block; }
  @media (max-width: 640px) { .bar .nav-pill .long { display: none; } .who span { display: none; } .bar a, .bar button { padding: 6px 7px; } .bar .home::before { margin-right: 4px; } .bar-in { padding: 0 8px; } }
  @media (max-width: 360px) { .bar .home { font-size: 0; } .bar .home::before { font-size: 17px; } }
  .studio-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
  .studio-offer { width: min(460px, 100%); background: var(--paper); color: var(--ink); border: 4px double var(--ink); padding: 18px 20px; font: 17px var(--pixel); box-shadow: 8px 8px 0 rgba(0, 0, 0, .5); }
  .studio-offer h2 { font: 22px var(--pixel); margin: 0 0 8px; color: var(--red); }
  .studio-offer ul { margin: 8px 0 12px 18px; padding: 0; } .studio-offer li { margin: 2px 0; }
  .studio-test { font-size: 15px; opacity: .75; }
  .studio-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
  .studio-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; padding: 8px 12px; border: 2px solid var(--ink); background: #ffffaa; }
  .studio-price b, .sb-price b { font: 700 30px/1 var(--book); font-variant-numeric: tabular-nums; }
  .studio-price span { font: 15px/1.3 var(--book); }
  .studio-msg { color: var(--red); min-height: 0; margin: 6px 0 0; }
  .studio-fine { font: 13px var(--book); color: var(--dim); margin: 8px 0 0; text-align: right; } .studio-fine a { color: var(--ink); }
  .studio-offer p { margin: 6px 0; }
  .studio-offer .small { font-size: 15px; }
  /* the Game Studio band on the play page: three pictures of the editor, the price and one button */
  .studio-band { background: linear-gradient(#000060, var(--dos-deep)); border-top: 4px solid var(--red); }
  .sb-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 0 28px; }
  .sb-shots figure { margin: 0; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(0, 0, 0, .45); display: flex; flex-direction: column; }
  .sb-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; image-rendering: auto; border-bottom: 2px solid var(--ink); background: #141a33; }
  .sb-shots figcaption { padding: 10px 12px 12px; font-size: 16px; line-height: 1.4; }
  .sb-shots figcaption b { display: block; font: 700 19px var(--pixel); color: var(--red); margin-bottom: 2px; }
  /* what the studio adds (1.80, the sales pitch: the forge makes 3 rooms, the studio up to 20 and everything else) */
  .sb-feats { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; }
  .sb-feats li { color: #dcdcf0; font-size: 16px; line-height: 1.4; padding-left: 14px; border-left: 3px solid var(--yellow); }
  .sb-feats b { display: block; font: 700 19px var(--pixel); color: var(--yellow); margin-bottom: 2px; }
  @media (max-width: 860px) { .sb-feats { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; } }
  .sb-buy { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; text-align: left; }
  .sb-price { display: flex; align-items: center; gap: 12px; color: var(--paper); }
  .sb-price b { font-size: 44px; color: var(--yellow); }
  .sb-price span { color: #dcdcf0; font-size: 15px; line-height: 1.35; }
  .sb-go .btn { font-size: 21px; padding: 9px 22px; }
  .sb-go .note { color: var(--grey); margin-top: 6px; }
  @media (max-width: 860px) { .sb-shots { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; } .sb-buy { gap: 16px; } }
  .studio-offer { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
