/* =====================================================================
   16-BIT theme (preview, Nov 2026): SNES-era pixel look.
   16-bit = data-theme="dark" plus html.zx-16bit (saved as zx-theme = "16bit"), the same way Twilight works,
   so every dark-theme fix (light boxes, checklists, code cards) already applies underneath.
   Every rule is scoped to :root.zx-16bit; loaded right after modern.css so equal selectors win.
   Preview: ?theme=16bit turns it on, ?theme=off turns it off (styles.php).
   ===================================================================== */

@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://www.zeldaxtreme.com/fonts/press-start-2p-latin-v16.woff2) format("woff2"); }
@font-face { font-family: "VT323"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://www.zeldaxtreme.com/fonts/vt323-latin-v18.woff2) format("woff2"); }

:root.zx-16bit {
  --zx-bg: #0b0e2a;
  --zx-card: #141a5c;
  --zx-ink: #f4f4f4;
  --zx-text: #e3e7ff;
  --zx-muted: #a9b6ff;
  --zx-line: #5b6bd6;
  --zx-head: #ffe46b;          /* titles: menu gold */
  --zx-green: #2fd14a;         /* rupee green */
  --zx-green-dark: #7dff8f;
  --zx-green-tint: rgba(47, 209, 74, .16);
  --zx-gold: #ffe46b;
  --zx-gold-tint: rgba(255, 228, 107, .14);
  --zx-link: #8fd8ff;
  --zx-glass: rgba(11, 14, 42, .97);
  --zx-radius: 4px;
  --zx-shadow: 6px 6px 0 #05061a;
  --zx16-px: "Press Start 2P", "Courier New", monospace;
  --zx16-body: "VT323", "Courier New", monospace;
}

/* ---- the screen: navy checkerboard ---- */
:root.zx-16bit body, :root.zx-16bit .site_wrap {
  background-color: #0b0e2a !important;
  background-image: linear-gradient(45deg, #0f1338 25%, transparent 25%, transparent 75%, #0f1338 75%),
                    linear-gradient(45deg, #0f1338 25%, transparent 25%, transparent 75%, #0f1338 75%) !important;
  background-size: 16px 16px !important; background-position: 0 0, 8px 8px !important; background-attachment: fixed !important; }

/* ---- type: VT323 for reading, Press Start 2P for titles and labels.
   font-size-adjust keeps both at a readable size without touching every font-size on the site.
   Cheat codes, <code> and the radio keep their own fonts (0/O and 1/l must stay clear). ---- */
:root.zx-16bit body, :root.zx-16bit .site_wrap :where(p, li, td, th, dd, dt, span, a, label, small, div, input, select, textarea, button, b, strong, em, blockquote):not(:where(code, kbd, pre, samp, .zx-code, .zx-code *, .zx-codes *, [class^="icon-"], [class*=" icon-"], .zx-radio *, .zx-gb *, #jp_container *)) {
  font-family: var(--zx16-body) !important; font-size-adjust: .58; letter-spacing: .01em; }
:root.zx-16bit .site_wrap :where(h1, h2, h3, h4, .zx-h, .mainnewsheaderposth2, .hp-h h2, .zq-hero-t, .zx-info-h),
:root.zx-16bit .site_wrap :where(h1, h2, h3, h4) * {
  font-family: var(--zx16-px) !important; font-size-adjust: .44; line-height: 1.55 !important; letter-spacing: .02em; font-weight: 400 !important;
  color: var(--zx-head); text-shadow: 3px 3px 0 #9c2a1a; }
:root.zx-16bit #sub_content h1 { font-family: var(--zx16-px) !important; font-size-adjust: .44; font-weight: 400 !important; color: #ffe46b !important; text-shadow: 4px 4px 0 #9c2a1a, 0 0 18px rgba(0, 0, 0, .7) !important; }

/* ---- dialogue boxes: white frame, blue outer ring, hard drop shadow ---- */
:root.zx-16bit .post, :root.zx-16bit #sidebar .widget, :root.zx-16bit .site_wrap .col-md-9:not(:has(> .post)), :root.zx-16bit #sidebar .game_info,
:root.zx-16bit .hp-new, :root.zx-16bit .hp-tile, :root.zx-16bit .zq-card, :root.zx-16bit .zq-panel, :root.zx-16bit .zx-progress, :root.zx-16bit .zx-quick,
:root.zx-16bit .zx-infopanel, :root.zx-16bit .zx-factrow .zx-facts, :root.zx-16bit .zq-hero, :root.zx-16bit .zq-mode {
  background: #141a5c !important; border: 3px solid #f4f4f4 !important; border-radius: 6px !important;
  box-shadow: 0 0 0 3px #5b6bd6, 7px 7px 0 3px #05061a !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:root.zx-16bit .hp-new:hover, :root.zx-16bit .hp-new:focus-visible { transform: translate(-2px, -2px); border-color: #ffe46b !important; box-shadow: 0 0 0 3px #ffe46b, 9px 9px 0 3px #05061a !important; }
:root.zx-16bit .hp-new .hp-pic { border-bottom: 3px solid #f4f4f4 !important; }
:root.zx-16bit .post > img, :root.zx-16bit .post > a > img, :root.zx-16bit img.zx-shot { border: 3px solid #05061a; border-radius: 2px; }

/* small labels in the pixel font */
:root.zx-16bit .hp-tag, :root.zx-16bit .hp-k, :root.zx-16bit .post_info .post-right, :root.zx-16bit .zx-chip, :root.zx-16bit .zq-chip {
  font-family: var(--zx16-px) !important; font-size: 9px !important; font-size-adjust: none; letter-spacing: .04em; text-transform: uppercase; }
:root.zx-16bit .post_info .post-right { background: #ffe46b !important; color: #05061a !important; border-radius: 0 !important; }

/* ---- buttons: chunky gold with a hard shadow; push down on click ---- */
:root.zx-16bit .hp-btn, :root.zx-16bit .site_wrap .btn-primary, :root.zx-16bit .site_wrap .btn-success, :root.zx-16bit .zxs-form button, :root.zx-16bit #ezp_submit_vote,
:root.zx-16bit .zq-go, :root.zx-16bit .zq-next, :root.zx-16bit .hp-more, :root.zx-16bit .hp-play {
  font-family: var(--zx16-px) !important; font-size: 10px !important; font-size-adjust: none; letter-spacing: .04em; text-transform: uppercase;
  background: #ffe46b !important; color: #05061a !important; border: 3px solid #05061a !important; border-radius: 0 !important;
  box-shadow: 4px 4px 0 #05061a !important; }
:root.zx-16bit .hp-btn:active, :root.zx-16bit .site_wrap .btn-primary:active, :root.zx-16bit .zq-go:active, :root.zx-16bit .zq-next:active, :root.zx-16bit #ezp_submit_vote:active {
  transform: translate(3px, 3px); box-shadow: 1px 1px 0 #05061a !important; }

/* ---- answer lists: a ▶ cursor on the option you point at (quiz page and the homepage question) ---- */
:root.zx-16bit .zq-opt, :root.zx-16bit .hp-opts button, :root.zx-16bit .zq-dopts button {
  background: #0e1446 !important; border: 3px solid #5b6bd6 !important; border-radius: 0 !important; color: #f4f4f4 !important; position: relative; }
:root.zx-16bit .zq-opt:hover, :root.zx-16bit .zq-opt:focus-visible, :root.zx-16bit .hp-opts button:hover, :root.zx-16bit .hp-opts button:focus-visible,
:root.zx-16bit .zq-dopts button:hover, :root.zx-16bit .zq-dopts button:focus-visible { border-color: #ffe46b !important; color: #ffe46b !important; }
:root.zx-16bit .zq-opt:hover::before, :root.zx-16bit .zq-opt:focus-visible::before, :root.zx-16bit .hp-opts button:hover::before, :root.zx-16bit .hp-opts button:focus-visible::before,
:root.zx-16bit .zq-dopts button:hover::before, :root.zx-16bit .zq-dopts button:focus-visible::before {
  content: "\25B6"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); font: 12px var(--zx16-px); color: #ffe46b; }

/* ---- homepage banner ---- */
:root.zx-16bit .hp-hero { border: 3px solid #f4f4f4; border-radius: 6px !important; box-shadow: 0 0 0 3px #5b6bd6, 7px 7px 0 3px #05061a; }
:root.zx-16bit .hp-hero-in b { font-family: var(--zx16-px) !important; font-size-adjust: .44; font-weight: 400 !important; text-transform: uppercase; line-height: 1.5 !important; color: #ffe46b; text-shadow: 3px 3px 0 #9c2a1a, 0 2px 14px rgba(0, 0, 0, .8) !important; }
:root.zx-16bit .hp-hero-in .hp-tag { background: #05061a !important; color: #ffe46b !important; border: 2px solid #f4f4f4; border-radius: 0 !important; box-shadow: none !important; }

/* ---- header: scanlines over the art, pixel menu, hearts on the breadcrumb strip ---- */
:root.zx-16bit #short { position: relative; }
:root.zx-16bit #short::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(5, 6, 26, .28) 0 2px, rgba(5, 6, 26, 0) 2px 4px), linear-gradient(180deg, rgba(20, 26, 92, .35), rgba(5, 6, 26, .55)); }
:root.zx-16bit .main-menu > ul > li > a { font-family: var(--zx16-px) !important; font-size: 10px !important; font-size-adjust: none; letter-spacing: .04em; text-transform: uppercase; }
:root.zx-16bit .main-menu > ul > li > a:hover, :root.zx-16bit .main-menu > ul > li.open > a { color: #ffe46b !important; }
:root.zx-16bit .main-menu > ul > li.submenu > ul, :root.zx-16bit .main-menu .menu-wrapper {
  background: #141a5c !important; border: 3px solid #f4f4f4 !important; border-radius: 4px !important; box-shadow: 0 0 0 3px #5b6bd6, 6px 6px 0 3px #05061a !important; }
:root.zx-16bit .main-menu > ul > li.submenu > ul a:hover::before { content: "\25B6\00a0"; color: #ffe46b; font: 9px var(--zx16-px); }
:root.zx-16bit header.sticky::before { background: rgba(5, 6, 26, .97) !important; box-shadow: inset 0 -3px 0 #5b6bd6; }
:root.zx-16bit .main-menu > ul > li > a.sidemenu { background: #2fd14a !important; border-color: #05061a !important; color: #05061a !important; border-radius: 0 !important; box-shadow: 3px 3px 0 #05061a; }
:root.zx-16bit #position { background: #05061a !important; box-shadow: inset 0 -3px 0 #5b6bd6 !important; position: relative; z-index: 2; }   /* above the scanline overlay on #short, which was dimming the links */
:root.zx-16bit #position ul li, :root.zx-16bit #position ul li a { font-family: var(--zx16-px) !important; font-size: 9px !important; font-size-adjust: none; text-transform: uppercase; color: #f4f4f4 !important; opacity: 1 !important; text-shadow: 2px 2px 0 #000 !important; }
:root.zx-16bit #position ul li, :root.zx-16bit #position ul li a { font-size: 10px !important; }
:root.zx-16bit #position ul li a { color: #a8e4ff !important; text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; padding: 3px 4px; margin: 0 -4px; }
:root.zx-16bit #position ul li a:hover, :root.zx-16bit #position ul li a:focus-visible { color: #05061a !important; background: #ffe46b; text-decoration: none !important; text-shadow: none !important; }
:root.zx-16bit #position .container_nav { position: relative; }
:root.zx-16bit #position .container_nav::before { content: "- LIFE -"; position: absolute; right: 168px; top: 21px; transform: translateY(-50%); font: 9px var(--zx16-px); color: #ff8a7a; letter-spacing: .06em; pointer-events: none; }
:root.zx-16bit #position .container_nav::after { content: ""; position: absolute; right: 48px; top: 21px; transform: translateY(-50%); width: 104px; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8312a' d='M1 0h2v1h1V0h2v1h1v3H6v1H5v1H4v1H3V6H2V5H1V4H0V1h1z'/%3E%3Cpath fill='%23ffb3a8' d='M1 1h1v1H1z'/%3E%3C/svg%3E") repeat-x 0 0 / 21px 18px; }
@media (max-width: 991px) { :root.zx-16bit #position .container_nav::before, :root.zx-16bit #position .container_nav::after { display: none; } }
@media (max-width: 991px) { :root.zx-16bit .main-menu, :root.zx-16bit .gamemenu { background: #0b0e2a !important; } }

/* ---- guides kit: progress bar in blocks, checklists, cards, jump bar ---- */
:root.zx-16bit .zx-progress .zx-bar { background: #05061a !important; border: 2px solid #f4f4f4; border-radius: 0 !important; }
:root.zx-16bit .zx-progress .zx-fill { border-radius: 0 !important;
  background: repeating-linear-gradient(90deg, #2fd14a 0 10px, #1f9a35 10px 12px) !important; }
:root.zx-16bit ol.zx-tracked input[type="checkbox"], :root.zx-16bit table.zx-track input[type="checkbox"], :root.zx-16bit #poll input { accent-color: #2fd14a; }
:root.zx-16bit .zx-cards > li { background: #0e1446 !important; border: 3px solid #5b6bd6 !important; border-radius: 4px !important; box-shadow: 4px 4px 0 #05061a !important; }
:root.zx-16bit .zx-toc a, :root.zx-16bit .zx-toc span { background: #0e1446 !important; border: 2px solid #5b6bd6 !important; border-radius: 0 !important; color: #ffe46b !important; }
:root.zx-16bit .zx-toc a:hover { border-color: #ffe46b !important; }

/* ---- footer: PRESS START ---- */
:root.zx-16bit footer { background: #05061a !important; box-shadow: inset 0 3px 0 #5b6bd6 !important; }
:root.zx-16bit #social_footer::before { content: "PRESS START"; display: block; margin-bottom: 18px; font: 12px var(--zx16-px); color: #ffe46b; letter-spacing: .08em; }
:root.zx-16bit #social_footer ul li a { background: #141a5c !important; border: 2px solid #f4f4f4; border-radius: 0 !important; }
:root.zx-16bit #social_footer p, :root.zx-16bit #social_footer p a { color: #a9b6ff !important; }

/* motion: no lift on cards for people who ask for less */
@media (prefers-reduced-motion: reduce) { :root.zx-16bit .hp-new:hover { transform: none; } }

/* smaller boxes: inner frame only (they sit close together) */
:root.zx-16bit .zx-hub-card, :root.zx-16bit .zq-games button, :root.zx-16bit .zq-tile {
  background: #0e1446 !important; border: 3px solid #5b6bd6 !important; border-radius: 4px !important; box-shadow: 4px 4px 0 #05061a !important; }
:root.zx-16bit .zx-hub-card:hover, :root.zx-16bit .zq-games button:hover, :root.zx-16bit .zq-games button:focus-visible { border-color: #ffe46b !important; }
:root.zx-16bit .zx-changes { background: #0e1446 !important; border-radius: 0 !important; }
:root.zx-16bit .zq-hero-t b { font-family: var(--zx16-px) !important; font-size-adjust: .44; font-weight: 400 !important; color: #ffe46b !important; text-shadow: 3px 3px 0 #9c2a1a; line-height: 1.5; }
:root.zx-16bit .zq-mode .zq-play, :root.zx-16bit .zq-mode button { border-radius: 0 !important; border: 3px solid #05061a !important; box-shadow: 4px 4px 0 #05061a !important;
  font-family: var(--zx16-px) !important; font-size: 10px !important; font-size-adjust: none; text-transform: uppercase; }

/* ---- desktop header: the top menu as a row of item boxes with pixel icons (like the mockup).
   Same markup as every other theme; each item is found by a link it holds, not by its position. ---- */
@media (min-width: 992px) {
  :root.zx-16bit .main-menu > ul > li { vertical-align: top; margin: 0 3px; }
  :root.zx-16bit .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu), :root.zx-16bit .main-menu > ul > li.zx-menu-link > a {
    display: inline-flex !important; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px;
    min-width: 76px; height: 62px; box-sizing: border-box; padding: 8px 8px 7px !important; margin: 0 !important; line-height: 1 !important;
    background: #0e1446 !important; border: 3px solid #5b6bd6 !important; border-radius: 4px !important; box-shadow: 3px 3px 0 #05061a !important;
    color: #f4f4f4 !important; font: 9px/1 var(--zx16-px) !important; letter-spacing: .04em; text-transform: uppercase; vertical-align: top; }
  :root.zx-16bit .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega)::after { display: none !important; }   /* no chevron: the box is the button */
  :root.zx-16bit .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu)::before, :root.zx-16bit .main-menu > ul > li.zx-menu-link > a::before {
    content: "" !important; display: block !important; width: 26px !important; height: 26px !important; margin: 0 !important; flex: none; filter: none !important;
    background: no-repeat center / contain !important; image-rendering: pixelated; }
  :root.zx-16bit .main-menu > ul > li:hover > a:is(.show-submenu, .show-submenu-mega, .sidemenu), :root.zx-16bit .main-menu > ul > li > a:focus-visible,
  :root.zx-16bit .main-menu > ul > li.zx-menu-link > a:hover, :root.zx-16bit .main-menu > ul > li > a.zx-current {
    border-color: #ffe46b !important; color: #ffe46b !important; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #05061a !important; }
  :root.zx-16bit .main-menu > ul > li > a.sidemenu { background: #1d7a31 !important; }
  :root.zx-16bit .main-menu > ul > li > a.sidemenu .header_dropdown_menu { font: inherit !important; color: inherit !important; }
  /* the icons: Guides (scroll), Games (controller), Cheats (key), Fun (heart), Media (note), Downloads (arrow), Forums (speech bubble) */
  :root.zx-16bit .main-menu > ul > li.submenu:has(a[href*="/zelda-timeline/"]) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23c98a3a' d='M1 1h6v6H1z'/%3E%3Cpath fill='%23f4e2b8' d='M2 2h4v1H2zM2 4h4v1H2z'/%3E%3C/svg%3E") !important; }
  :root.zx-16bit .main-menu > ul > li > a.show-submenu-mega::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23b8c0d8' d='M1 2h6v4H1z'/%3E%3Cpath fill='%232b2f45' d='M2 3h1v1h1v1H3v1H2V5H1V4h1zM5 3h1v1H5zM6 4h1v1H6z'/%3E%3C/svg%3E") !important; }
  :root.zx-16bit .main-menu > ul > li.zx-menu-link > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffe46b' d='M2 0h3v1h1v3H5v4H3V7h1V6H3V4H2V3H1V1h1z'/%3E%3Cpath fill='%230e1446' d='M3 1h1v2H3z'/%3E%3C/svg%3E") !important; }
  :root.zx-16bit .main-menu > ul > li.submenu:has(a[href*="/zelda-quiz/"]) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8312a' d='M1 0h2v1h2V0h2v1h1v3H7v1H6v1H5v1H3V6H2V5H1V4H0V1h1z'/%3E%3Cpath fill='%23ffb3a8' d='M1 1h1v1H1z'/%3E%3C/svg%3E") !important; }
  :root.zx-16bit .main-menu > ul > li.submenu:has(a[href*="/radio/"]) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%235bc0ff' d='M4 0h3v2H5v4H4zM1 5h4v3H1z'/%3E%3C/svg%3E") !important; }
  :root.zx-16bit .main-menu > ul > li.submenu:has(a[href*="/wallpapers/"]) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%232fd14a' d='M3 0h2v3h2v1H6v1H5v1H3V5H2V4H1V3h2zM0 7h8v1H0z'/%3E%3C/svg%3E") !important; }
  :root.zx-16bit .main-menu > ul > li > a.sidemenu::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23f4f4f4' d='M0 1h8v5H3v1H2v1H1V6H0z'/%3E%3Cpath fill='%231d7a31' d='M2 3h1v1H2zM4 3h1v1H4zM6 3h1v1H6z'/%3E%3C/svg%3E") !important; }
  /* page titles sit under the box row instead of behind it, a little smaller so two-line titles fit */
  :root.zx-16bit #subheader { display: flex !important; flex-direction: column; justify-content: flex-end; }
  :root.zx-16bit #sub_content { padding: 80px 64px 60px !important; }
  :root.zx-16bit #sub_content h1 { font-size: 26px !important; font-size-adjust: none !important; line-height: 1.45 !important; }
  /* dropdown items in the reading font */
  :root.zx-16bit .main-menu > ul > li.submenu > ul a, :root.zx-16bit .main-menu .menu-wrapper a { font-family: var(--zx16-body) !important; font-size-adjust: .58; font-size: 15px !important; }
  /* theme button: a small box to match */
  :root.zx-16bit .main-menu > ul > li.zx-theme-li { margin-top: 15px; }
  :root.zx-16bit .zx-theme-toggle { border-radius: 4px !important; border: 3px solid #5b6bd6 !important; background: #0e1446 !important; color: #ffe46b !important; box-shadow: 3px 3px 0 #05061a; }

  /* floating header after scrolling: the same boxes, icon beside the label so they fit the 58px bar */
  :root.zx-16bit header.sticky .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu), :root.zx-16bit header.sticky .main-menu > ul > li.zx-menu-link > a {
    flex-direction: row; justify-content: center; gap: 6px; height: 36px; min-width: 0; padding: 0 9px !important; margin-top: 2px !important; color: #f4f4f4 !important; }
  :root.zx-16bit header.sticky .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu)::before, :root.zx-16bit header.sticky .main-menu > ul > li.zx-menu-link > a::before { width: 16px !important; height: 16px !important; }
  :root.zx-16bit header.sticky .main-menu > ul > li.zx-theme-li { margin-top: 0; }
  :root.zx-16bit header.sticky { border-radius: 4px !important; border: 3px solid #f4f4f4 !important; box-shadow: 0 0 0 3px #5b6bd6, 6px 6px 0 3px #05061a !important; }
}
/* one row, always: tighter boxes on smaller desktops, and in the floating bar */
@media (min-width: 992px) {
  :root.zx-16bit .main-menu > ul { white-space: nowrap; }
  :root.zx-16bit header.sticky .main-menu > ul > li { margin: 0 2px; }
  :root.zx-16bit header.sticky .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu), :root.zx-16bit header.sticky .main-menu > ul > li.zx-menu-link > a { padding: 0 7px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  :root.zx-16bit .main-menu > ul > li { margin: 0 2px; }
  :root.zx-16bit .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu), :root.zx-16bit .main-menu > ul > li.zx-menu-link > a {
    min-width: 0; padding: 8px 6px 7px !important; font-size: 8px !important; letter-spacing: 0; }
  :root.zx-16bit header.sticky .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu)::before, :root.zx-16bit header.sticky .main-menu > ul > li.zx-menu-link > a::before { display: none !important; }
}

/* ---- floating bar: boxes centred (they sat 9px low) ---- */
@media (min-width: 992px) {
  :root.zx-16bit header.sticky .main-menu > ul > li > a:is(.show-submenu, .show-submenu-mega, .sidemenu), :root.zx-16bit header.sticky .main-menu > ul > li.zx-menu-link > a { margin-top: -7px !important; }
  :root.zx-16bit header.sticky .zx-theme-toggle { top: -4px !important; }
}

/* ---- search box: square pixel box, pixel font ---- */
:root.zx-16bit .sb-search { border-radius: 0 !important; background: #0e1446 !important; border: 3px solid #5b6bd6; box-shadow: 3px 3px 0 #05061a; }
:root.zx-16bit .sb-search:hover, :root.zx-16bit .sb-search.sb-search-open { border-color: #ffe46b; }
:root.zx-16bit .sb-search-input { background: #0e1446 !important; color: #ffe46b !important; font: 20px var(--zx16-body) !important; border-radius: 0 !important; }
:root.zx-16bit .sb-search-input::placeholder { color: #a9b6ff !important; }
:root.zx-16bit .sb-icon-search, :root.zx-16bit .sb-icon-search span { color: #ffe46b !important; background: transparent !important; }

/* ---- radio: pixel Triforce button that hops instead of twisting ---- */
:root.zx-16bit .zgb-fab { animation: none !important; filter: drop-shadow(3px 3px 0 #05061a) !important; }
:root.zx-16bit .zgb-tri { animation: zx16hop 1.6s steps(2) infinite !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20' shape-rendering='crispEdges'%3E%3Cpath fill='%233a2400' d='M8 1h2v1H8zM4 10h10v1H4zM7 2h4v1H7zM7 3h4v1H7zM6 4h6v1H6zM6 5h6v1H6zM5 6h8v1H5zM5 7h8v1H5zM4 8h10v1H4zM4 9h10v1H4z'/%3E%3Cpath fill='%23ffc93c' d='M8 2h2v1H8zM8 3h2v1H8zM7 4h4v1H7zM7 5h4v1H7zM6 6h6v1H6zM6 7h6v1H6zM5 8h8v1H5zM5 9h8v1H5z'/%3E%3Cpath fill='%23fff3b0' d='M8 2h1v1H8zM8 3h1v1H8zM7 4h1v1H7zM7 5h1v1H7zM6 6h1v1H6zM6 7h1v1H6zM5 8h1v1H5zM5 9h1v1H5z'/%3E%3Cpath fill='%23d98c1a' d='M9 2h1v1H9zM9 3h1v1H9zM10 4h1v1H10zM10 5h1v1H10zM11 6h1v1H11zM11 7h1v1H11zM12 8h1v1H12zM12 9h1v1H12z'/%3E%3Cpath fill='%233a2400' d='M4 10h2v1H4zM0 19h10v1H0zM3 11h4v1H3zM3 12h4v1H3zM2 13h6v1H2zM2 14h6v1H2zM1 15h8v1H1zM1 16h8v1H1zM0 17h10v1H0zM0 18h10v1H0z'/%3E%3Cpath fill='%23ffc93c' d='M4 11h2v1H4zM4 12h2v1H4zM3 13h4v1H3zM3 14h4v1H3zM2 15h6v1H2zM2 16h6v1H2zM1 17h8v1H1zM1 18h8v1H1z'/%3E%3Cpath fill='%23fff3b0' d='M4 11h1v1H4zM4 12h1v1H4zM3 13h1v1H3zM3 14h1v1H3zM2 15h1v1H2zM2 16h1v1H2zM1 17h1v1H1zM1 18h1v1H1z'/%3E%3Cpath fill='%23d98c1a' d='M5 11h1v1H5zM5 12h1v1H5zM6 13h1v1H6zM6 14h1v1H6zM7 15h1v1H7zM7 16h1v1H7zM8 17h1v1H8zM8 18h1v1H8z'/%3E%3Cpath fill='%233a2400' d='M12 10h2v1H12zM8 19h10v1H8zM11 11h4v1H11zM11 12h4v1H11zM10 13h6v1H10zM10 14h6v1H10zM9 15h8v1H9zM9 16h8v1H9zM8 17h10v1H8zM8 18h10v1H8z'/%3E%3Cpath fill='%23ffc93c' d='M12 11h2v1H12zM12 12h2v1H12zM11 13h4v1H11zM11 14h4v1H11zM10 15h6v1H10zM10 16h6v1H10zM9 17h8v1H9zM9 18h8v1H9z'/%3E%3Cpath fill='%23fff3b0' d='M12 11h1v1H12zM12 12h1v1H12zM11 13h1v1H11zM11 14h1v1H11zM10 15h1v1H10zM10 16h1v1H10zM9 17h1v1H9zM9 18h1v1H9z'/%3E%3Cpath fill='%23d98c1a' d='M13 11h1v1H13zM13 12h1v1H13zM14 13h1v1H14zM14 14h1v1H14zM15 15h1v1H15zM15 16h1v1H15zM16 17h1v1H16zM16 18h1v1H16z'/%3E%3C/svg%3E") no-repeat center / contain; image-rendering: pixelated; }
:root.zx-16bit .zgb-tri svg { display: none !important; }
:root.zx-16bit .zgb-root.zgb-play .zgb-tri { animation-duration: .8s !important; }
:root.zx-16bit .zgb-fab .zgb-note { border-radius: 0 !important; background: #2fd14a !important; color: #05061a !important; font: 9px/18px var(--zx16-px) !important; box-shadow: 2px 2px 0 #05061a !important; }
@keyframes zx16hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---- radio: the ZX micro as a flat pixel handheld with a pea-green screen ---- */
:root.zx-16bit .zgb-trim { display: none; }
:root.zx-16bit .zgb-scr { background: #9bbc0f !important; color: #0f380f !important; border-radius: 0 !important; }
:root.zx-16bit .zgb.zgb-alt .zgb-scr { background: #0f380f !important; color: #9bbc0f !important; }
:root.zx-16bit .zgb-logo { font: 8px/1 var(--zx16-px) !important; }
:root.zx-16bit .zgb-dpad { filter: drop-shadow(2px 2px 0 #000) !important; }
:root.zx-16bit .zgb-dpad button { border-radius: 0 !important; }
:root.zx-16bit .zgb-ss span { font: 6px var(--zx16-px) !important; }
:root.zx-16bit .zgb-grill i { border-radius: 0 !important; }
:root.zx-16bit .zgb-tip { border-radius: 0 !important; background: #05061a !important; border: 2px solid #f4f4f4; color: #ffe46b !important; font: 6px/1.5 var(--zx16-px) !important; letter-spacing: 0; padding: 4px 3px !important; }
@media (prefers-reduced-motion: reduce) { :root.zx-16bit .zgb-tri { animation: none !important; } }

/* ---- 8-bit corners everywhere in the content: a slight curve, never a big round one ---- */
:root.zx-16bit .site_wrap :is(div, section, article, aside, nav, table, thead, tbody, tr, td, th, ul, ol, li, a, button, span, input, select, textarea, img, figure, details, summary, blockquote, pre, code, label, iframe, video, audio, b, strong) { border-radius: 4px !important; }
:root.zx-16bit .site_wrap :is(input[type="radio"], input[type="checkbox"]) { border-radius: revert !important; }

/* stepped "pixel round" corners: the badge on the Triforce and the player's A and B buttons */
:root.zx-16bit .zgb-fab .zgb-note { box-shadow: none !important;
  clip-path: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px)); }

/* ---- the ZX micro in classic NES colors: light gray body, black face, red buttons ---- */
:root.zx-16bit .zgb-root { --gb-pad: #3d3d3d; --gb-pad-arrow: #c9c9c9; --gb-ss: #2b2b2b; --gb-ss-text: #c8102e; --gb-grill: #6f6f6f; --gb-label: #1b1b1b; --gb-logo: #c8102e; --gb-bezel: #1b1b1b; }
:root.zx-16bit .zgb { background: #c9c9c9 !important; border: 3px solid #1b1b1b !important; border-radius: 4px !important; box-shadow: inset 0 3px 0 #e6e6e6, inset 0 -3px 0 #9a9a9a, 6px 6px 0 #05061a !important; }
:root.zx-16bit .zgb::before { content: ""; position: absolute; left: 10px; right: 10px; top: 30px; height: 74px; background: #1b1b1b; border-radius: 3px; box-shadow: inset 0 0 0 2px #3a3a3a; }
:root.zx-16bit .zgb-bezel { border-radius: 3px 3px 18px 3px !important; border: 3px solid #9a9a9a !important; background: #1b1b1b !important; height: 104px !important; box-sizing: border-box; }
:root.zx-16bit .zgb-scr { left: 15px !important; top: 6px !important; }
:root.zx-16bit .zgb-led { left: 5px !important; top: 45px !important; }
:root.zx-16bit .zgb-logo { bottom: 2px !important; color: #9a9a9a !important; }
:root.zx-16bit .zgb-logo b { color: #ff3b4e !important; }
:root.zx-16bit .zgb-ss { bottom: 8px !important; right: 12px !important; }
:root.zx-16bit .zgb-ss button { border: 2px solid #000 !important; box-shadow: 2px 2px 0 #6f6f6f !important; }
:root.zx-16bit .zgb-ss span { color: #c8102e !important; }
:root.zx-16bit .zgb-ab { filter: drop-shadow(3px 3px 0 #000); }
:root.zx-16bit .zgb-ab button { background: #c8102e !important; border: 0 !important; box-shadow: inset -3px -3px 0 #8a0a1f, inset 3px 3px 0 #f0475d !important; color: #fff !important;
  clip-path: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px)); }
:root.zx-16bit .zgb-ab button:active { transform: translate(2px, 2px); box-shadow: inset 3px 3px 0 #8a0a1f !important; }
:root.zx-16bit .zgb-dpad { filter: drop-shadow(2px 2px 0 #000) !important; }

/* recent songs on the little screen: the readable pixel font, bigger */
:root.zx-16bit .zgb-list li { font: 14px/1.05 var(--zx16-body) !important; margin-bottom: 2px !important; }
/* small print inside headings (e.g. "plays counted this month") in the readable font */
:root.zx-16bit .site_wrap :where(h1, h2, h3, h4) small { font-family: var(--zx16-body) !important; font-size: 17px !important; font-size-adjust: .58; text-shadow: none !important; color: #e3e7ff !important; letter-spacing: .01em; text-transform: none; }

/* ---- the theme picker now has four choices: on phones its segmented control wraps into a 2x2 grid (applies in every theme) ---- */
@media (max-width: 991px) {
  .zx-theme-seg { flex-wrap: wrap; }
  .zx-theme-seg button { flex: 1 1 calc(50% - 4px); }
}
:root.zx-16bit .zx-theme-menu { background: #141a5c !important; border: 3px solid #f4f4f4 !important; border-radius: 4px !important; box-shadow: 0 0 0 3px #5b6bd6, 6px 6px 0 3px #05061a !important; }
:root.zx-16bit .zx-theme-menu button, :root.zx-16bit .zx-theme-seg button { font-family: var(--zx16-body) !important; font-size: 19px !important; border-radius: 2px !important; }
:root.zx-16bit .zx-theme-menu button svg, :root.zx-16bit .zx-theme-seg button svg { color: #ffe46b; }
