/* ==========================================================================
   Interactive demos: Utility overlay replica, Mode Explorer, OLED, sims
   ========================================================================== */

/* ---------- Utility overlay replica (matches the real PactoTech Utility banner) ---------- */
.ovl {
  position: absolute; z-index: 5; pointer-events: none;
  left: 50%; top: 50%; width: min(420px, 78%); transform: translate(-50%, -50%) scale(1);
  padding: 22px 26px 16px; border-radius: 26px; text-align: center; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 0%, rgba(59, 191, 232, 0.25), transparent 65%), rgba(28, 34, 41, 0.95);
  border: 1px solid rgba(59, 191, 232, 0.35);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.85), 0 0 60px -20px rgba(59, 191, 232, 0.6);
  color: #e8eef2; transition: transform 0.7s var(--ease), left 0.7s var(--ease), top 0.7s var(--ease), width 0.7s var(--ease), opacity 0.5s;
  transform-origin: 100% 100%;
}
.ovl.pop { animation: ovlPop 0.55s var(--ease); }
@keyframes ovlPop { 0% { opacity: 0; transform: translate(-50%, -46%) scale(0.86); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.ovl.is-corner { left: auto; top: auto; right: 14px; bottom: 14px; width: 210px; transform: none; padding: 12px 14px 10px; border-radius: 16px; animation: none; }
.ovl.is-corner .ovl__icon { height: 30px; margin-bottom: 4px; }
.ovl.is-corner .ovl__title { font-size: 1.15rem; }
.ovl.is-corner .ovl__rule, .ovl.is-corner .ovl__sub { display: none; }
.ovl.is-corner .ovl__chips { font-size: 0.66rem; gap: 8px; margin-top: 6px; }
.ovl.is-corner .ovl__chips svg { height: 12px; }
.ovl.is-corner .ovl__logo { display: none; }
.ovl__icon { height: 64px; display: flex; justify-content: center; margin-bottom: 8px; color: #3bbfe8; filter: drop-shadow(0 0 14px rgba(59, 191, 232, 0.65)); transition: height 0.5s var(--ease); }
.ovl__icon svg { height: 100%; width: auto; }
.ovl .people .on { fill: #3bbfe8; }
.ovl .people .off { fill: #3c5b63; }
.ovl .people text { font: 800 15px var(--font-display); }
.ovl .people .on text { fill: #3bbfe8; }
.ovl .people .off text { fill: #3c5b63; }
.ovl__title { font: 800 clamp(1.6rem, 1rem + 2.6vw, 2.6rem)/1 var(--font-display); letter-spacing: 0.04em; color: #f2f6f8; text-shadow: 0 0 18px rgba(59, 191, 232, 0.9), 0 0 2px #fff; transition: font-size 0.5s var(--ease); }
.ovl__rule { height: 3px; margin: 14px auto 10px; width: 80%; border-radius: 3px; background: linear-gradient(90deg, rgba(59, 191, 232, 0.8), rgba(59, 191, 232, 0.15)); }
.ovl__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; font: 500 0.85rem/1.2 var(--font-body); color: #d6e2e7; letter-spacing: 0.02em; }
.ovl__chips span { display: inline-flex; align-items: center; gap: 6px; }
.ovl__chips svg { height: 16px; width: auto; color: #3bbfe8; }
.ovl__chips .people { height: 14px; }
.ovl__sub { margin-top: 8px; font: 500 0.75rem var(--font-mono); color: #8fb8c4; letter-spacing: 0.08em; }
.ovl__logo { margin: 12px auto 0; height: 16px; width: auto; opacity: 0.9; }

/* ---------- Mode explorer ---------- */
.mx__ovl:not(.is-corner) { width: min(340px, 64%); top: 54%; }
.mx__ovl:not(.is-corner) .ovl__icon { height: 48px; }
.mx__ovl:not(.is-corner) .ovl__title { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem); }
.mx__bar { gap: 10px 22px; }
.mx__group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mx__stage { position: relative; padding: 14px clamp(8px, 2vw, 22px) 6px; }
.mx__svg { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; touch-action: none; }
.mx__lbl { font: 600 15px var(--font-body); fill: var(--text-2); paint-order: stroke; stroke: var(--bg-2); stroke-width: 7px; stroke-linejoin: round; }
.mx__seatbg { fill: rgba(255, 255, 255, 0.025); stroke: color-mix(in srgb, var(--seat) 55%, transparent); stroke-width: 1.5; transition: stroke 0.4s, fill 0.4s; }
.mx__seat { --seat: var(--p1); transition: opacity 0.4s; }
.mx__seat.is-ignored { opacity: 0.35; }
.mx__seat.flash-x .mx__seatbg { animation: flashX 0.6s; }
@keyframes flashX { 0%, 100% { fill: rgba(255, 255, 255, 0.025); } 30% { fill: rgba(248, 113, 113, 0.18); } }
.mx__badge { fill: color-mix(in srgb, var(--seat) 12%, transparent); stroke: var(--seat); transition: all 0.4s; }
.mx__badgetxt { font: 600 12px var(--font-mono); fill: var(--seat); }
.mx__seatname { font: 500 13px var(--font-mono); letter-spacing: 0.04em; fill: var(--text-2); }
.mx__joy { cursor: grab; outline: none; }
.mx__joy:active { cursor: grabbing; }
.mx__joybase { fill: #0a0f13; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
.mx__joy:focus-visible .mx__joybase { stroke: var(--cyan); }
.mx__joyshaft { fill: #2b3640; }
.mx__ball { fill: var(--seat); transition: cx 0.08s, cy 0.08s, fill 0.4s; }
.mx__btn { cursor: pointer; outline: none; }
.mx__btn circle, .mx__btn rect { fill: #121a20; stroke: color-mix(in srgb, var(--seat) 60%, transparent); stroke-width: 1.6; transition: fill 0.12s, stroke 0.4s; }
.mx__btn text { font: 700 9.5px var(--font-mono); fill: var(--text-2); pointer-events: none; }
.mx__btn--small text { font-size: 9px; }
.mx__btn.is-down circle, .mx__btn.is-down rect { fill: var(--seat); }
.mx__btn.is-down text { fill: #00141c; }
.mx__btn:focus-visible circle, .mx__btn:focus-visible rect { stroke: #fff; stroke-width: 2.4; }
.mx__btn.is-shift circle { stroke: var(--amber); stroke-dasharray: 3 2; }
.mx__btn.is-key text { font-size: 7.5px; fill: var(--cyan-hi); }
.mx__wire { stroke-width: 2.4; stroke-linecap: round; transition: stroke 0.4s; }
.mx__slot { --slot: var(--p1); transition: opacity 0.4s; }
.mx__slotbg { fill: rgba(255, 255, 255, 0.02); stroke: color-mix(in srgb, var(--slot) 50%, transparent); stroke-width: 1.5; }
.mx__slot.is-idle { opacity: 0.38; }
.mx__slot.is-idle .mx__slotbg { stroke-dasharray: 6 5; }
.mx__slottitle { font: 600 13px var(--font-mono); letter-spacing: 0.04em; fill: var(--slot); }
.mx__slotstatus { font: 500 11px var(--font-body); fill: var(--muted); }
.mx__pad { fill: #1b232c; stroke: var(--slot); stroke-opacity: 0.55; stroke-width: 3; }
.mx__o { fill: #243039; stroke: #0d1116; stroke-width: 2.5; transition: fill 0.06s; }
.mx__o.is-on { fill: var(--slot); filter: drop-shadow(0 0 6px var(--slot)); }
.mx__stickwell { fill: #243039; }
.mx__stickdot { fill: color-mix(in srgb, var(--slot) 45%, #243039); transition: fill 0.1s; }
.mx__stickdot.is-on { fill: var(--slot); filter: drop-shadow(0 0 6px var(--slot)); }
.mx__pct { font: 700 10px var(--font-mono); fill: var(--slot); }
.mx__kb { transition: opacity 0.5s; pointer-events: none; }
.mx__kbbg { fill: rgba(59, 198, 243, 0.05); stroke: rgba(59, 198, 243, 0.35); stroke-dasharray: 8 6; }
.mx__kbtitle { font: 600 15px var(--font-body); fill: var(--text); }
.mx__kbsub { font: 400 13px var(--font-body); fill: var(--muted); }
.mx__keycap rect { fill: #182129; stroke: rgba(143, 224, 255, 0.5); stroke-width: 1.5; }
.mx__keycap text { font: 700 15px var(--font-mono); fill: #eaf4f7; }
.mx__keycap .mx__kbseat { font: 500 10px var(--font-mono); fill: var(--muted); }
.mx__svg.is-kb .mx__slot { opacity: 0.05; }
.mx__hint { position: absolute; right: 22px; top: 18px; display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--text-2); pointer-events: none; transition: opacity 0.5s; white-space: nowrap; }
.mx__hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: blink 1.4s infinite; }
.mx__hint.is-hidden { opacity: 0; }
@keyframes blink { 50% { opacity: 0.25; } }
.mx__foot { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.mx__oled { margin: 0; }
.mx__oled canvas, .oled-canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; display: block; background: #01050a; border-radius: var(--r); border: 1px solid #12303d; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 0 6px #0b0f13, 0 0 0 7px rgba(255, 255, 255, 0.06); image-rendering: pixelated; }
.mx__oled figcaption { margin-top: 12px; font: 500 var(--fs-xs) var(--font-body); color: var(--muted); text-align: center; }
.mx__caption p { color: var(--text-2); margin-bottom: 12px; }
.mx__caption strong { color: var(--text); }
.mx__how .label { font: 500 var(--fs-xs)/1 var(--font-body); color: var(--muted); }
.mx__how ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.mx__how li { position: relative; padding-left: 18px; font-size: 0.9rem; color: var(--text-2); }
.mx__how li::before { content: '›'; position: absolute; left: 2px; color: var(--cyan); font-weight: 700; }
.mx__how kbd { font-size: 0.78em; }
@media (max-width: 760px) {
  .mx__foot { grid-template-columns: 1fr; }
  .mx__oled { max-width: 280px; margin: 0 auto; }
  .mx__hint { position: static; margin: 10px; justify-content: center; white-space: normal; text-align: center; }
  .ovl { width: 86%; padding: 14px; }
  .ovl.is-corner { width: 150px; right: 8px; bottom: 8px; }
  .ovl.is-corner .ovl__chips { display: none; }
  .ovl__icon { height: 44px; }
}

/* ---------- Generic sim widgets (stick gauges, pulse trains, button grids) ---------- */
.sim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-card { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sim-card h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-size: 1rem; }
.sim-card .meter { position: relative; height: 12px; border-radius: var(--r-sm); background: #0a1015; border: 1px solid var(--line-2); overflow: hidden; }
.sim-card .meter > i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cyan); }
.big-joy { width: 150px; height: 150px; margin: 6px auto 0; position: relative; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #121a20 0 60%, #0a0f13 61%); border: 2px solid rgba(255, 255, 255, 0.08); touch-action: none; cursor: grab; }
.big-joy .ball { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a8a, #e11d2a 55%, #8b0a12); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); transition: transform 0.08s; }
.pad-out { width: 120px; height: 120px; margin: 0 auto; position: relative; border-radius: 50%; background: #0a0f13; border: 2px solid rgba(255, 255, 255, 0.1); }
.pad-out .dot { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--cyan); }
.dpad-out { width: 120px; height: 120px; margin: 0 auto; position: relative; }
.dpad-out i { position: absolute; width: 38px; height: 38px; background: #1c262e; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--r); transition: background 0.05s; }
.dpad-out i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dpad-out .u { left: 41px; top: 2px; } .dpad-out .d { left: 41px; bottom: 2px; } .dpad-out .l { left: 2px; top: 41px; } .dpad-out .r { right: 2px; top: 41px; } .dpad-out .c { left: 41px; top: 41px; background: #141c22; }
.trace { width: 100%; height: 90px; display: block; }
.btn-grid { display: grid; grid-template-columns: repeat(4, 54px); gap: 10px 12px; justify-content: center; }
.btn-grid .ab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 0.85rem var(--font-mono); background: #121a20; border: 2px solid rgba(255, 255, 255, 0.12); color: var(--text-2); cursor: pointer; transition: all 0.35s var(--ease); position: relative; }
.btn-grid .ab:nth-child(n + 5) { transform: translateX(-10px); }
.btn-grid .ab.on, .btn-grid .ab[aria-pressed='true'] { background: var(--cyan); color: #00141c; border-color: var(--cyan); box-shadow: 0 0 8px rgba(59, 198, 243, 0.7); }
.btn-grid .ab.moved { border-color: var(--amber); color: var(--amber); }
.btn-grid .ab small { position: absolute; bottom: -17px; font: 500 0.6rem var(--font-mono); color: var(--amber); white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.btn-grid .ab.moved small { opacity: 1; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255, 255, 255, 0.06) 0); display: grid; place-items: center; margin: 0 auto; transition: background 0.05s; }
.ring::before { content: ''; width: 98px; height: 98px; border-radius: 50%; background: var(--surface); grid-area: 1 / 1; }
.ring span { grid-area: 1 / 1; z-index: 1; font: 700 1.3rem var(--font-display); }
.slots-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot-tile { position: relative; padding: 12px 10px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); text-align: center; min-height: 96px; transition: border-color 0.3s, background-color 0.3s, opacity 0.3s; }
.slot-tile .n { font: 500 var(--fs-xs) var(--font-mono); color: var(--muted); }
.slot-tile .who { margin-top: 8px; font: 600 0.9rem var(--font-display); }
.slot-tile .ico { width: 28px; height: 28px; margin: 6px auto 0; }
.slot-tile.arcade { border-color: rgba(59, 198, 243, 0.5); background: rgba(59, 198, 243, 0.08); }
.slot-tile.arcade .who, .slot-tile.arcade .ico { color: var(--cyan); }
.slot-tile.pad { border-color: rgba(166, 230, 74, 0.5); background: rgba(166, 230, 74, 0.07); }
.slot-tile.pad .who, .slot-tile.pad .ico { color: var(--lime); }
.slot-tile.empty { opacity: 0.45; border-style: dashed; }

/* ---------- Stick sim layout ---------- */
.ss-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
@media (max-width: 860px) { .ss-wrap { grid-template-columns: 1fr; } }
.ss-trace { height: 120px; margin-top: 22px; border-radius: var(--r); background: #070b0e; border: 1px solid var(--line); }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: middle; }
.pad-out .dot { transition: transform 0.03s linear; }

/* ---------- DongleMaster timeline ---------- */
.dg { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .dg { grid-template-columns: 1fr; } }
.dg > * { min-width: 0; }
@media (max-width: 520px) { .dg .slots-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dg__hw { display: grid; gap: 12px; }
.dg__dev { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.dg__dev strong { font: 600 0.95rem var(--font-display); display: flex; align-items: center; gap: 8px; }
.led { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #1d2a22; border: 1px solid rgba(255, 255, 255, 0.15); transition: all 0.3s; }
.led.on { background: #4ade80; box-shadow: 0 0 12px #4ade80, 0 0 2px #fff inset; }
.dg__kb { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--dim); font-size: 0.9rem; transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.dg__kb.on { color: var(--cyan); border-color: rgba(59, 198, 243, 0.5); background: rgba(59, 198, 243, 0.06); }
.dg__cd { margin-top: 12px; opacity: 0.7; transition: opacity 0.3s; }
.dg__cd.on { opacity: 1; }
.dg__bar { height: 8px; border-radius: var(--r-sm); background: #0a1015; border: 1px solid var(--line-2); overflow: hidden; }
.dg__bar i { display: block; height: 100%; width: 0; background: var(--cyan); }
.dg__cd span { display: block; margin-top: 8px; font: 500 var(--fs-xs) var(--font-mono); color: var(--text-2); }
.e26-grid .ab span { transition: opacity 0.3s; }
.btn.is-on { background: var(--cyan); color: #00141c; border-color: var(--cyan); }

/* ---------- Animated hand (PactoHand) ---------- */
.p-hand { position: absolute; left: 0; top: 0; z-index: 20; width: 40px; height: 51px; margin: -3px 0 0 -18px; pointer-events: none; opacity: 0; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.p-hand.on { opacity: 1; }
.p-hand svg { width: 100%; height: 100%; transform-origin: 45% 5%; transition: transform 0.14s var(--ease); }
.p-hand.down svg { transform: scale(0.88) translateY(3px); }
.p-hand__ring { position: absolute; left: 18px; top: 3px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; }
.p-hand.down .p-hand__ring { animation: handRing 0.6s var(--ease); }
@keyframes handRing { 0% { opacity: 1; transform: scale(0.5); } 100% { opacity: 0; transform: scale(4); } }

/* ---------- Arcade panel buttons (real buttons the visitor or the hand presses) ---------- */
.dg-body { position: relative; }
.dg__panel { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.dg__btns { display: flex; gap: 18px; justify-content: center; margin-top: 12px; }
.arc-btn { display: grid; justify-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 0; color: var(--text-2); }
.arc-cap { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #cfe9f5 40%, #7fb6cc 75%); box-shadow: 0 0 0 5px #0a0f13, 0 0 0 7px rgba(255, 255, 255, 0.15), 0 10px 18px rgba(0, 0, 0, 0.6); transition: transform 0.1s, box-shadow 0.2s; }
.arc-btn--kb .arc-cap { background: radial-gradient(circle at 35% 30%, #d9ffb3, #a6e64a 45%, #5b8a1f 85%); }
.arc-btn:hover .arc-cap { box-shadow: 0 0 0 5px #0a0f13, 0 0 0 7px var(--cyan), 0 6px 12px rgba(0, 0, 0, 0.5); }
.arc-btn.hit .arc-cap { animation: arcHit 0.35s var(--ease); }
@keyframes arcHit { 40% { transform: scale(0.88); box-shadow: 0 0 0 5px #0a0f13, 0 0 0 7px var(--cyan), 0 0 12px var(--cyan); } }
.arc-lbl { font: 500 0.75rem var(--font-mono); text-align: center; max-width: 120px; line-height: 1.3; }
.arc-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: var(--r); }

/* Banner label: where this banner appears (PC screen via the PactoTech Utility) */
.ovl__tag { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 var(--fs-xs) var(--font-body); color: var(--text-2); }
.ovl:has(.ovl__tag):not(.is-corner) { padding-top: 34px; }
.ovl.is-corner .ovl__tag { position: static; transform: none; display: block; margin: -2px 0 6px; font-size: 0.625rem; white-space: normal; }
.mx__note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 0.86rem; color: var(--text-2); }
.mx__note .ico { color: var(--cyan); margin-top: 2px; }

/* 8-to-6: labels slide between physical buttons */
.e26-wrap { position: relative; width: max-content; margin: 0 auto; }
.e26-grid .ab { cursor: default; color: transparent; }
.e26-tag { position: absolute; left: 0; top: 0; font: 700 0.8rem var(--font-mono); color: var(--text, #e8f4f8); transition: transform 1.4s var(--ease), color .4s, opacity .4s; pointer-events: none; }
.e26-tag.moved { color: var(--amber); }
.e26-tag.extra { opacity: .5; }
.e26-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.e26-arrows path { fill: none; stroke: #ffb547; stroke-width: 2; stroke-dasharray: 4 4; opacity: 0; animation: e26in .6s 1s forwards; }
@keyframes e26in { to { opacity: .9; } }
.e26-wrap.is-on .ab[data-b="RB"], .e26-wrap.is-on .ab[data-b="RT"], .e26-wrap.is-on .ab[data-b="LB"], .e26-wrap.is-on .ab[data-b="LT"] { border-color: rgba(255,181,71,.55); }
.btn-grid .ab small { pointer-events: none; }
.e26-grid, .demo--sm .e26-grid { grid-template-columns: repeat(4, 48px); gap: 30px 30px; padding: 6px 0; }
.e26-grid .ab, .demo--sm .e26-grid .ab { width: 48px; height: 48px; }
.e26-arrows path { stroke-width: 2.5; stroke-dasharray: none; }

/* Mode explorer: little PC monitor running a genre mini game, with the Utility overlay on it */
.mx__foot { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.mx__screens { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; align-items: end; }
.mx__mon { margin: 0; }
.mx__bezel { padding: 10px 10px 14px; border-radius: var(--r-lg); background: #161c22; border: 1px solid var(--line-2); }
.mx__scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-sm); background: #000; }
.mx__game { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.mx__neck { width: 70px; height: 18px; margin: 0 auto; background: #161c22; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.mx__mon figcaption { margin-top: 10px; font: 500 var(--fs-xs) var(--font-body); color: var(--muted); text-align: center; }
.mx__scr .ovl { zoom: 0.6; }
@media (max-width: 900px) { .mx__foot { grid-template-columns: 1fr; } .mx__screens { grid-template-columns: 1fr; } .mx__screens .mx__oled { max-width: 240px; margin: 0 auto; } }
/* foot: screens row on top, explanation below */
.mx__foot { grid-template-columns: 1fr; }
.mx__screens { grid-template-columns: minmax(0, 600px) 230px; justify-content: center; gap: 28px; }
.mx__caption { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 28px; align-items: start; }
.mx__caption > p[data-cap] { grid-row: span 2; }
@media (max-width: 900px) { .mx__screens { grid-template-columns: 1fr; } .mx__caption { grid-template-columns: 1fr; } .mx__caption > p[data-cap] { grid-row: auto; } }

/* Mode explorer on a wide screen: the monitor, SpecVision and explanation sit in a column beside the seats, so the whole
   model fits in a maximised 1080p window (Lee, 2026-11-14). Narrower screens keep the stacked layout above. */
@media (min-width: 1100px) {
  .mx { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto 1fr; }
  .mx > .mx__bar { grid-column: 1 / -1; }
  .mx > .mx__stage { grid-column: 1; grid-row: 2; align-self: center; padding-top: 10px; }
  .mx > .mx__foot { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: 16px 18px; border-top: 0; border-left: 1px solid var(--line); }
  .mx .mx__screens { grid-template-columns: minmax(0, 1fr); gap: 12px; justify-content: stretch; }
  .mx .mx__mon figcaption { margin-top: 6px; }
  .mx .mx__oled { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; max-width: none; margin: 0; }
  .mx .mx__oled figcaption { margin: 0; text-align: left; line-height: 1.35; }
  .mx .mx__oled canvas { box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 0 4px #0b0f13, 0 0 0 5px rgba(255, 255, 255, 0.06); }
  .mx .mx__neck { height: 10px; }
  .mx .mx__bezel { padding: 6px 6px 9px; }
  .mx .mx__scr .ovl { zoom: 0.32; }
  .mx .mx__caption { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mx .mx__caption > p[data-cap] { grid-row: auto; margin: 0; font-size: 0.9rem; }
  .mx .mx__how li { font-size: 0.84rem; }
  .mx .mx__note { margin: 0; font-size: 0.8rem; }
  .mx .mx__hint { top: 12px; right: 14px; }
}
/* 8-to-6: arrows from each shifted button to the button it now sends */
.mx__e26 { opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.mx__e26.is-on { opacity: 1; }
.mx__e26 path { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; }
.mx__e26head { fill: var(--amber); stroke: none; }

