/* ==========================================================================
   ARCADE — Build with it (Design Completion Campaign, 2026-09-29).
   More screens of the room's machine: the same cyan border and magenta
   ring, pixel headings in yellow, Space Mono for reading, scan lines over
   the whole board, and a HUD of real counts pinned across the top. Faces
   are the room's own ("PressStart2PX", "SpaceMonoX", declared in
   x-arcade.css). Every class is gac- or scoped to .gm--arcade. Motion is
   steps() only, and stops under reduced motion.
   ========================================================================== */
.gm--arcade {
  --gm-tag-inverse: var(--gm-color-black);
  --gac-navy: #101018; --gac-rule: #2a2a36; --gac-dim: #8a8a9c;
  position: relative; isolation: isolate;
  max-width: 1100px; margin: clamp(70px, 10vw, 120px) auto 0; padding: 0 clamp(14px, 4vw, 40px);
  background: transparent; color: var(--gm-color-white);
  font: 400 17px/1.65 var(--gm-font-text); font-synthesis: weight style;
}
.gm--arcade::before { content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0 2px, transparent 2px 4px); }
.gm--arcade .gm__head { display: block; max-width: 760px; }
.gm--arcade .gm__title { margin: 0 0 20px; font: 400 clamp(22px, 4.2vw, 40px)/1.4 var(--gm-font); color: var(--gm-color-yellow); text-shadow: 0.1em 0.1em 0 var(--gm-color-red); }
.gm--arcade .gm__lede { margin: 0 0 12px; font-size: 18px; }
.gm--arcade .gm__key, .gm--arcade .gm__get { font-size: 15px; color: #c6c6d4; }
.gm--arcade a { color: var(--gm-color-cyan); }
.gm--arcade a:hover { color: var(--gm-color-yellow); }
.gm--arcade :focus-visible { outline: 4px solid var(--gm-color-yellow); outline-offset: 3px; }
.gm--arcade .gm-t { font-family: var(--gm-font-text); }
.gm--arcade .gm-t[data-g="record"] { background: var(--gm-color-cyan); color: var(--gm-color-black); border-color: var(--gm-color-cyan); }
.gm--arcade .gm-t[data-g="translation"] { color: var(--gm-color-magenta); }
.gm--arcade .gm-t[data-g="not_recorded"] { color: #c6c6d4; }
.gm--arcade .gm-more summary { color: var(--gm-color-cyan); }
.gm--arcade .gm-ls li { border-top-color: var(--gac-rule); }
.gac-cap { margin: 0.8rem 0 0; font-size: 14px; line-height: 1.5; color: #c6c6d4; }

/* ---- the HUD: real counts, pinned ------------------------------------ */
.gac-hud { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 36px 0 0; padding: 10px 14px; background: var(--gm-color-black); border-bottom: 4px solid var(--gac-navy); font: 400 14px/1.5 var(--gm-font); }
.gac-hud b { font-weight: 400; color: var(--gm-color-white); }
.gac-hud__r { color: var(--gm-color-cyan); }
.gac-hud__t { color: var(--gm-color-magenta); }
.gac-hud__n { color: var(--gm-color-yellow); }

/* ---- the screens ------------------------------------------------------ */
.gac-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.gac-f { padding: clamp(18px, 3vw, 28px); background: var(--gac-navy); border: 4px solid var(--gm-color-cyan); box-shadow: 0 0 0 4px var(--gm-color-black), 0 0 0 8px var(--gm-color-magenta); }
.gac-f--wide { grid-column: 1 / -1; }
.gac-f .gm-f__head { margin-bottom: 16px; }
.gac-f .gm-f__n { font: 400 14px/1.5 var(--gm-font); color: var(--gm-color-magenta); white-space: nowrap; }
.gac-f .gm-f__n::before { content: "▶ "; }
.gac-f .gm-f__name { font: 400 clamp(15px, 2vw, 18px)/1.5 var(--gm-font); color: var(--gm-color-yellow); }

/* 1 colour */
.gac-pal { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; font-size: 12px; }
.gac-pal li { display: grid; gap: 2px; }
.gac-pal span { display: block; height: 40px; border: 2px solid var(--gac-rule); }
.gac-pal b { font-weight: 700; }
.gac-pal code { font-size: 11px; color: var(--gac-dim); }

/* 2 type */
.gac-title { margin: 0; font: 400 clamp(30px, 5vw, 48px)/1.2 var(--gm-font); color: var(--gm-color-yellow); text-transform: uppercase; text-shadow: 0.08em 0.08em 0 var(--gm-color-red), 0.16em 0.16em 0 var(--gm-color-magenta); }
.gac-hudtype { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 14px 0 10px; font: 400 14px/1.5 var(--gm-font); }
.gac-hudtype span:first-child { color: var(--gm-color-yellow); }
.gac-hudtype span:last-child { color: var(--gm-color-red); }
.gac-text { margin: 0; font-size: 15px; }

/* 3 layout: a screen with its furniture on the edges */
.gac-scr { position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 168px; padding: 8px; background: var(--gm-color-black); border: 4px solid var(--gac-rule); }
.gac-scr__top { display: flex; justify-content: space-between; font: 400 10px/1 var(--gm-font); color: var(--gm-color-yellow); }
.gac-scr__top i { font-style: normal; }
.gac-scr__mid { display: grid; place-items: center; }
.gac-scr__mid i { display: block; width: 32px; height: 24px; background: var(--gm-color-magenta); }
.gac-scr__bot { display: flex; gap: 8px; }
.gac-scr__bot i { display: block; width: 16px; height: 8px; background: var(--gm-color-cyan); }

/* 4 shape: one sprite at whole-number scales */
.gac-px { display: flex; align-items: flex-end; gap: 24px; }
.gac-hrt { display: block; width: 21px; height: 18px; image-rendering: pixelated; }
.gac-hrt--2 { width: 42px; height: 36px; }
.gac-hrt--4 { width: 84px; height: 72px; }

/* 5 imagery: sprite over background */
.gac-layer { position: relative; height: 120px; border: 4px solid var(--gac-rule); overflow: hidden; }
.gac-layer__bg { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--gac-navy) 0 16px, var(--gm-color-black) 16px 32px); }
.gac-layer .gac-hrt--sprite { position: absolute; left: calc(50% - 24px); top: 32px; width: 56px; height: 48px; }

/* 6 components */
.gac-nav { display: flex; flex-wrap: wrap; gap: 0 32px; padding: 0 0 8px; border-bottom: 2px dashed var(--gac-rule); }
.gac-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-left: 22px; color: var(--gm-color-white); text-decoration: none; font: 400 13px/1.5 var(--gm-font); text-transform: uppercase; }
.gac-nav a:hover, .gac-nav a[aria-current] { color: var(--gm-color-yellow); }
.gac-nav a:hover::before, .gac-nav a[aria-current]::before { content: "▶"; position: absolute; left: 0; color: var(--gm-color-magenta); }
.gac-nav a[aria-current]::before { animation: gac-blink 1s steps(1) infinite; }
.gac-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 26px; align-items: start; }
.gac-card { display: block; padding: 20px; background: var(--gac-navy); border: 4px solid var(--gm-color-cyan); box-shadow: 0 0 0 4px var(--gm-color-black), 0 0 0 8px var(--gm-color-magenta); color: var(--gm-color-white); text-decoration: none; margin: 8px; }
.gm--arcade .gac-card { color: var(--gm-color-white); }
.gm--arcade .gac-card:hover { border-color: var(--gm-color-yellow); color: var(--gm-color-white); }
.gac-card b { display: block; margin-bottom: 10px; font: 400 16px/1.5 var(--gm-font); color: var(--gm-color-yellow); text-transform: uppercase; }
.gac-form label { display: block; margin-bottom: 8px; font: 400 12px/1.5 var(--gm-font); color: var(--gm-color-cyan); text-transform: uppercase; }
.gac-form input { display: block; width: 100%; height: 2.75rem; padding: 0 12px; border: 4px solid var(--gm-color-cyan); border-radius: 0; background: var(--gm-color-black); color: var(--gm-color-white); caret-color: var(--gm-color-yellow); }
.gac-form input:focus { border-color: var(--gm-color-yellow); }
.gac-err { margin: 8px 0 0; color: var(--gm-color-red); font-weight: 700; font-size: 15px; }
.gac-btn { margin-top: 20px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 0; background: var(--gm-color-yellow); color: var(--gm-color-black); cursor: pointer; font: 400 16px/1.5 var(--gm-font); text-transform: uppercase; box-shadow: 8px 8px 0 var(--gm-color-red); }
.gac-btn:hover { background: var(--gm-color-white); }
.gac-btn:active { transform: translate(8px, 8px); box-shadow: none; }

/* 7 motion */
.gac-mo { position: relative; height: 40px; border-bottom: 4px solid var(--gac-rule); overflow: hidden; }
.gac-mo__walk { position: absolute; bottom: 4px; left: 0; animation: gac-walk 6s steps(24) infinite; }
.gac-mo__walk .gac-hrt { width: 28px; height: 24px; }
.gac-blink { margin: 16px 0 0; font: 400 14px/1.5 var(--gm-font); color: var(--gm-color-white); animation: gac-blink 1s steps(1) infinite; }
@keyframes gac-blink { 50% { opacity: 0; } }
@keyframes gac-walk { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 28px)); } }
.gac-mo { container-type: inline-size; }

/* 8 furniture */
.gac-furn { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 12px; background: var(--gm-color-black); border: 4px solid var(--gac-rule); font: 400 12px/1.5 var(--gm-font); }
.gac-furn b { font-weight: 400; color: var(--gm-color-white); }
.gac-furn__hi { color: var(--gm-color-yellow); }
.gac-furn__cr { color: var(--gm-color-cyan); }
.gac-furn__lives { display: flex; gap: 6px; }
.gac-furn__lives .gac-hrt { width: 21px; height: 18px; }

@media (max-width: 760px) {
  .gac-screens, .gac-ui { grid-template-columns: minmax(0, 1fr); }
  .gac-px { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm--arcade *, .gm--arcade *::before { animation: none !important; transition: none !important; }
}
