html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img,
video,
iframe,
svg {
  max-width: 100%;
}
img,
video {
  height: auto;
}
.wiki-main img { max-width: 100%; }
table { max-width: 100%; }
pre, code { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1.1rem 0;
  }
  .header-left,
  .header-right {
    flex: unset;
    margin: 0;
    padding-left: 0;
  }
  .header-left { flex: 1 1 auto; }
  .header-right {
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 0.6rem;
  }
  .header-toolbar-cluster {
    flex: 0 1 auto;
    flex-wrap: nowrap;
  }
  .nav-toggle {
    display: flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(18, 18, 20, 0.96);
    background-image: linear-gradient(var(--texture-tint), var(--texture-tint)), var(--texture-header-footer);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
    gap: 1.1rem;
    z-index: 40;
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-top {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.15rem;
  }
  .nav-dropdown-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-dropdown {
    display: block;
    position: static;
    transform: none;
    left: auto;
    min-width: 0;
    max-width: none;
    margin-top: 0.35rem;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-dropdown.wmx-on {
    width: auto;
    max-height: none;
    overflow: visible;
  }
  .header-auth__user { display: none; }
}

html, body { overflow-x: clip; }

@media (hover: none) {
  a, button, [role="button"], summary, label, select, input[type="checkbox"], input[type="radio"] {
    -webkit-tap-highlight-color: rgba(34, 211, 238, 0.18);
  }
  .nav-dropdown-wrap:hover .nav-dropdown { display: none; }
  .nav-dropdown { display: block; }
}

@media (max-width: 720px) {
  :root { --max: 100%; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { padding: 0.55rem 0; gap: 0.4rem 0.6rem; flex-wrap: wrap; }
  .logo img { height: 42px; width: auto; }
  .header-left { flex: 0 0 auto; }
  .header-right {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
  }
  .header-auth { gap: 0.35rem; }
  .header-auth__btn { min-height: 2.5rem; padding-inline: 0.7rem; font-size: 0.78rem; }

  .header-toolbar-cluster {
    display: none;
    order: 5;
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0 0.25rem;
  }
  .header-inner:has(.site-nav.is-open) .header-toolbar-cluster { display: flex; }
  .header-right { position: static; }
  .header-youtube, .header-instagram, .header-x, .header-discord, .header-bluesky {
    width: 2.75rem;
    height: 2.75rem;
  }

  h1 { overflow-wrap: anywhere; }
  .section, .hero { padding-left: 0; padding-right: 0; }

  .wiki-layout { display: block; }
  aside.wiki-infobox {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 0 0 1.25rem !important;
    min-height: 0 !important;
  }
  .wiki-main { width: 100% !important; max-width: 100% !important; }
  .wiki-page-title { font-size: clamp(2rem, 9vw, 2.8rem); height: auto !important; width: auto !important; }

  .wmx-top { flex-wrap: wrap; }
  .wmx-all { display: none; }
  .wmx-body { grid-template-columns: 1fr; height: auto; }
  .wmx-tabs { flex-direction: row; flex-wrap: wrap; }
  .wmx-tab { width: auto; gap: 0.6rem; min-height: 2.75rem; }
  .wmx-card { display: none; }
  .wmx-grid { max-height: 16rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
  .wmx-chip { min-height: 2.75rem; }

  .wiki-main table { display: block; overflow-x: auto; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

html[data-device="iphone"] {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
html[data-device="iphone"] body {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}
html[data-device="iphone"] .site-header { padding-top: var(--safe-top); }

html[data-device="iphone"] input,
html[data-device="iphone"] textarea,
html[data-device="iphone"] select { font-size: 16px !important; }
html[data-device="iphone"][data-size="xs"] .logo img,
html[data-device="iphone"][data-size="sm"] .logo img { height: 38px; }
html[data-device="iphone"][data-size="md"] .wrap { width: calc(100% - 2.5rem); }
html[data-device="iphone"] { scroll-padding-top: 5rem; }

html[data-device="android"] input,
html[data-device="android"] textarea,
html[data-device="android"] select { font-size: 16px !important; }
html[data-device="android"] { scroll-padding-top: 5rem; }

html[data-device="ipad"],
html[data-device="android-tablet"] {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  scroll-padding-top: 6rem;
}
html[data-device="ipad"] body,
html[data-device="android-tablet"] body { padding-bottom: var(--safe-bottom); }
html[data-device="ipad"] .wrap,
html[data-device="android-tablet"] .wrap { width: min(100% - 3rem, 1040px); }
html[data-device="ipad"] input, html[data-device="ipad"] textarea, html[data-device="ipad"] select,
html[data-device="android-tablet"] input, html[data-device="android-tablet"] textarea, html[data-device="android-tablet"] select { font-size: 16px !important; }

@media (min-width: 721px) and (max-width: 1100px) {
  .wiki-layout { grid-template-columns: minmax(0, 1fr); }
  aside.wiki-infobox { width: min(100%, 34rem) !important; margin-inline: auto !important; transform: none !important; }
  .wmx-body { grid-template-columns: 9rem minmax(0, 1fr); }
  .wmx-card { display: none; }
  .wmx-grid { max-height: 18rem; }
  .nav-dropdown.wmx-on .wmx-body { height: auto; }
}

html[data-device="tv"] {
  font-size: 125%;
  cursor: none;
  scroll-behavior: smooth;
}
@media (min-width: 2200px) { html[data-device="tv"] { font-size: 150%; } }

html[data-device="tv"] body { padding: 0 3vw; }
html[data-device="tv"] .wrap { width: min(100% - 4vw, 1500px); }

html[data-device="tv"] :focus { outline: none; }
html[data-device="tv"] a:focus-visible,
html[data-device="tv"] button:focus-visible,
html[data-device="tv"] input:focus-visible,
html[data-device="tv"] select:focus-visible,
html[data-device="tv"] textarea:focus-visible,
html[data-device="tv"] [tabindex]:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 6px;
  border-radius: 10px;
  box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.18), 0 0 40px rgba(34, 211, 238, 0.45);
  transform: scale(1.04);
  z-index: 5;
  position: relative;
}
html[data-device="tv"] .site-nav .nav-top { font-size: 1.5rem; padding: 0.6rem 1.2rem; }
html[data-device="tv"] .header-youtube, html[data-device="tv"] .header-instagram,
html[data-device="tv"] .header-x, html[data-device="tv"] .header-discord { width: 3.2rem; height: 3.2rem; }
html[data-device="tv"] a, html[data-device="tv"] button { min-height: 3rem; }

html[data-device="tv"] .nav-dropdown-wrap:focus-within .nav-dropdown { display: block; }
html[data-device="tv"] .wmx-grid { max-height: 26rem; }
html[data-device="tv"] .wmx-chip { min-height: 3.2rem; font-size: 1rem; }

html[data-device="tv"] * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-device="tv"] .hz-grain, html[data-device="tv"] .hz-scan,
html[data-device="tv"] .hz-hero-fx, html[data-device="tv"] .fx-stars, html[data-device="tv"] .dc-stars { display: none !important; }
html[data-device="tv"] .app-hero__backdrop img, html[data-device="tv"] .hz-tool__stage::before { filter: none; }
html[data-device="tv"] .dc-orb, html[data-device="tv"] .fx-orb { animation: none; filter: blur(40px); }

html[data-device="tv"] .wiki-edit-toolbar,
html[data-device="tv"] .wiki-draft-banner,
html[data-device="tv"] .gallery-add-panel,
html[data-device="tv"] .header-auth { display: none !important; }

@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: static; }
  .header-inner { padding: 0.4rem 0; }
  .site-nav { max-height: calc(100vh - 3.5rem); }
}

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

html[data-input="touch"] .wmx-az,
html[data-input="remote"] .wmx-az { display: none; }
html[data-input="touch"] .wmx-az button { min-height: 0; }

html[data-device="tv"] .header-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1.5rem;
}
html[data-device="tv"] .header-left,
html[data-device="tv"] .header-right { margin: 0; flex: 0 0 auto; }
html[data-device="tv"] .site-nav { margin: 0.4rem auto 0; }

@media (min-width: 721px) and (max-width: 1100px) {
  .hz-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important; gap: 2rem !important; align-items: center; }
  .hz-feature__title { font-size: clamp(2.6rem, 6.4vw, 4.2rem) !important; }
}
@media (max-width: 720px) {
  .hz-feature { grid-template-columns: minmax(0, 1fr) !important; gap: 1.75rem !important; }
  .hz-feature__title { font-size: clamp(2.6rem, 14vw, 4.4rem) !important; }
  .hz-feature__credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-feature__actions { flex-wrap: wrap; }
  .hz-feature__actions .hz-btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .hz-feature__logline { max-width: none; }
}

@media (max-width: 1100px) {
  .hero-fastlane-wrap { --fastlane-nudge: 16.7vw; }
  .hero-fastlane-logo {
    width: 72vw;
    max-width: none;
    max-height: none;
  }
  .hero-video-overlay {
    --irene-rest-x: 6vw;
    width: 77vw;
    max-width: none;
    height: 80%;
    max-height: none;
  }
}

@media (max-width: 480px) { html { font-size: 93.75%; } }
@media (max-width: 360px) { html { font-size: 90%; } }

@media (max-width: 720px) {
  .hz-btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; min-height: 2.75rem; }
  .btn, .auth-btn { padding: 0.65rem 1rem; font-size: 0.9rem; }
  .btn-app, .app-btn { padding: 0.7rem 1.15rem; font-size: 0.9rem; }

  .hz-section { padding: 2.5rem 0; }
  .hz-head { margin-bottom: 1.25rem; gap: 0.75rem; }
  .hz-h2 { font-size: clamp(1.9rem, 9.5vw, 2.6rem) !important; }
  .hz-head__lede { font-size: 0.95rem !important; max-width: none !important; }
  .hz-rail, .hz-rail-tight { width: calc(100% - 2rem); }

  .hz-slate { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem !important; }
  .hz-slate > .hz-card:first-child { grid-column: 1 / -1; }
  .hz-card { padding: 0.45rem; border-radius: 16px; }
  .hz-card__name { font-size: 0.95rem; }
  .hz-card__meta { font-size: 0.6rem; flex-wrap: wrap; }
  .hz-slate > .hz-card:not(:first-child) .hz-card__blurb { display: none; }
  .hz-card__body { padding: 0.6rem 0.35rem 0.35rem; gap: 0.35rem; }

  .hz-feature__credits { padding: 1rem; gap: 0.9rem; }
  .hz-feature__actions { gap: 0.6rem; }
  .hz-feature__actions .hz-btn { flex: 1 1 100%; }

  .hz-stat { padding: 1rem 0.5rem; }
  .hz-stat__num { font-size: clamp(1.8rem, 9vw, 2.4rem); }

  .hz-signal__actions, .hz-signal .hz-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
  .hz-signal__actions .hz-btn { flex: 0 1 auto; }

  .hz-clip__title { font-size: 0.85rem; line-height: 1.3; }

  .site-footer { padding: 1.5rem 0; }
}

.channel-videos-grid { padding: 0; margin-left: 0; margin-right: 0; }

@media (max-width: 720px) {
  .vid-feature { display: flex; flex-direction: column; }
  .vid-feature__art { position: relative; }
  .vid-feature__scrim { display: none; }
  .vid-feature__body { position: static; padding: 0.85rem 0.95rem 1rem; background: #0a0b0e; }
  .vid-feature__name { font-size: 1.05rem; }
  .channel-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.7rem !important; }
  .video-tile-yt { display: none; }

  .gw-grid--covers { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.6rem !important; }
  .gw-grid--char { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.6rem !important; }
  .gw-search, .gw-search input { width: 100% !important; }
  .gw-bar { flex-direction: column; align-items: stretch; }
  .gw-filters { overflow-x: auto; flex-wrap: nowrap; }

  .app-hero__inner { padding: 2.25rem 0 2.5rem !important; gap: 1.5rem !important; }
  .app-hero__art { width: min(62%, 260px); }
  .app-hero__actions { gap: 0.5rem; }
  .app-hero__actions .btn, .app-hero__actions a { flex: 1 1 100%; }
  .app-meta { gap: 0.4rem 0.9rem; font-size: 0.85rem; }

  .dc-invite { flex-wrap: wrap; justify-content: center; border-radius: 18px; padding: 0.6rem; gap: 0.4rem 0.8rem; }
  .dc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .dc-card { padding: 1rem 0.9rem; }
  .dc-card p { font-size: 0.85rem; }
}

@media (max-width: 720px) {
  .auth-page.auth-fx { min-height: 0; align-items: start; padding: 3.25rem 0 2.5rem; }
  .auth-fx .auth-card { padding: 2.4rem 1.25rem 1.25rem; }
  .auth-fx .auth-title { font-size: 1.9rem; }
}

@media (min-width: 1101px) and (max-width: 1919px) {
  .site-header .header-inner { width: min(100% - 2rem, 1800px); }
  .header-left { margin-left: 0 !important; }
  .header-right { margin-right: 0 !important; padding-left: 0.5rem; gap: 0.5rem; }
  .site-nav { gap: clamp(0.8rem, 1.5vw, 1.8rem); }
  .site-nav .nav-top { font-size: clamp(0.95rem, 1.02vw, 1.15rem); }
  .header-youtube, .header-instagram, .header-x, .header-discord, .header-bluesky { width: 2rem; height: 2rem; }
  .header-toolbar-cluster { gap: 0.35rem; }
  .header-auth__btn { padding-inline: 0.65rem; font-size: 0.72rem; }

  .hero-fastlane-wrap { --fastlane-nudge: min(15vw, 20rem); }
  .hero-fastlane-logo { width: min(64vw, 1100px); max-width: none; }
}

@media (min-width: 1101px) and (max-width: 1919px) {
  html { font-size: clamp(13.5px, 0.4vw + 8.5px, 16px); }
}

@media (max-width: 1100px) {
  .site-header .header-inner {
    flex-wrap: nowrap;
    min-height: 3.5rem;
    padding: 0.35rem 0;
    gap: 0.75rem;
  }
  .site-header .logo img { height: 36px; width: auto; }
  .site-header .header-left { flex: 0 0 auto; }
  .site-header .header-right {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin: 0 0 0 auto !important;
    padding: 0;
    gap: 0.5rem;
  }
  .site-header .header-toolbar-cluster,
  .header-inner:has(.site-nav.is-open) .header-toolbar-cluster,
  .site-header .header-right > .header-auth { display: none !important; }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }
  .nav-toggle[aria-expanded="true"] { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--mnav-top, 3.5rem);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0.5rem max(1.25rem, env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #08080a;
    background-image: none;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
  }
  .site-nav.is-open { display: flex; animation: mnav-in 0.2s ease-out; }

  .site-nav .nav-top,
  .site-nav > a.nav-top,
  .site-nav .nav-dropdown-wrap > a.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.25rem;
    padding: 0 0.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-align: left;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transform: none !important;
    touch-action: manipulation;
  }
  .site-nav .nav-top::after {
    content: "";
    position: static;
    flex: none;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.35rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    background: none;
    opacity: 0.35;
    transform: rotate(-45deg) !important;
    transition: none;
  }
  .site-nav .nav-top:hover { color: #fff; }
  .site-nav .nav-top[aria-current="page"] { color: var(--accent); }
  .site-nav .nav-top[aria-current="page"]::after { opacity: 0.8; }

  .site-nav .nav-dropdown-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    position: relative;
  }
  .site-nav .nav-dropdown-wrap > a.nav-top::after { display: none; }
  .mnav-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    min-height: 3.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
  }
  .mnav-expand::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-top: -0.25rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform 0.2s ease, margin 0.2s ease;
  }
  .nav-dropdown-wrap.is-expanded > .mnav-expand { color: var(--accent); }
  .nav-dropdown-wrap.is-expanded > .mnav-expand::before { transform: rotate(-135deg); margin-top: 0.25rem; }

  .site-nav .nav-dropdown,
  .nav-dropdown-wrap:hover .nav-dropdown,
  .nav-dropdown-wrap:focus-within .nav-dropdown { display: none !important; }
  .site-nav .nav-dropdown-wrap.is-expanded > .nav-dropdown {
    display: block !important;
    grid-column: 1 / -1;
    position: static;
    transform: none;
    left: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0.6rem 0 0.4rem;
    overflow: visible;
    background: rgba(255, 255, 255, 0.03);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    box-shadow: none;
  }

  .site-nav .wmx { padding: 0.75rem; }
  .site-nav .wmx-top { flex-wrap: nowrap; gap: 0.6rem; margin-bottom: 0.65rem; }
  .site-nav .wmx-search { height: 2.6rem; padding: 0 0.85rem; }
  .site-nav .wmx-q { font-size: 16px; }
  .site-nav .wmx-all { display: inline-flex; align-items: center; min-height: 2.6rem; font-size: 0.66rem; letter-spacing: 0.12em; }
  .site-nav .wmx-body { display: block; height: auto; }
  .site-nav .wmx-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0 -0.75rem 0.6rem;
    padding: 0 0.75rem 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav .wmx-tabs::-webkit-scrollbar { display: none; }
  .site-nav .wmx-tab {
    flex: none;
    width: auto;
    min-height: 2.25rem;
    gap: 0.45rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    touch-action: manipulation;
  }
  .site-nav .wmx-tab.on { border-color: rgba(34, 211, 238, 0.5); }
  .site-nav .wmx-az,
  .site-nav .wmx-card { display: none; }
  .site-nav .wmx-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: min(46vh, 22rem);
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav .wmx-chip {
    flex: none;
    min-height: 2.75rem;
    gap: 0.7rem;
    padding: 0.3rem 0.35rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    background: transparent;
    font-size: 0.92rem;
    transform: none !important;
    touch-action: manipulation;
  }
  .site-nav .wmx-chip:last-child { border-bottom: 0; }
  .site-nav a.wmx-chip:hover,
  .site-nav a.wmx-chip:focus-visible { background: rgba(34, 211, 238, 0.08); }
  .site-nav .wmx-av { width: 2rem; height: 2rem; font-size: 0.66rem; }
  .site-nav .wip-note--menu { margin: 0.65rem 0 0; font-size: 0.72rem; }

  .mnav-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.75rem;
  }
  .mnav-social { display: flex; justify-content: center; gap: 0.65rem; }
  .mnav-social > a {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: none !important;
  }

  html.mnav-open,
  html.mnav-open body { overflow: hidden; }
}

@media (min-width: 1101px) {
  .mnav-expand,
  .mnav-foot { display: none !important; }
}

@keyframes mnav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav.is-open { animation: none; }
  .nav-toggle span { transition: none; }
}

@media (max-width: 720px) {
  .wx-chips { flex-wrap: wrap; overflow: visible; gap: 0.45rem; }
  .wx-chip { flex: 1 1 auto; max-width: 100%; }

  aside.wiki-infobox .wx-block { padding: 0.15rem 1rem 0.85rem; }
  aside.wiki-infobox .wx-blocklabel { padding-top: 0.8rem; }
  aside.wiki-infobox .wx-rels,
  aside.wiki-infobox .wx-rels--grid {
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0 -1rem;
    padding: 0.1rem 1rem 0.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  aside.wiki-infobox .wx-rels::-webkit-scrollbar { display: none; }
  aside.wiki-infobox .wx-rel {
    flex: none;
    max-width: 78vw;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    font-size: 0.8rem;
    scroll-snap-align: start;
  }
  aside.wiki-infobox .wx-rel .wx-ava { width: 24px; height: 24px; }
  aside.wiki-infobox .wx-posters {
    display: flex;
    gap: 0.5rem;
    margin: 0 -1rem;
    padding: 0.1rem 1rem 0.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  aside.wiki-infobox .wx-posters::-webkit-scrollbar { display: none; }
  aside.wiki-infobox .wx-poster { flex: 0 0 6.5rem; scroll-snap-align: start; font-size: 0.72rem; }

  .hub-stats,
  .vid-stats {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: 100%;
  }
  .hub-stat,
  .vid-stat {
    min-width: 0;
    padding: 0.55rem 0.4rem;
    text-align: center;
    border-bottom: 0 !important;
    grid-column: auto !important;
  }
  .hub-stat,
  .hub-stat:nth-child(odd),
  .hub-stat:nth-child(even) { border-right: 1px solid var(--hub-line); }
  .vid-stat,
  .vid-stat:nth-child(odd),
  .vid-stat:nth-child(even) { border-right: 1px solid var(--vid-line); }
  .hub-stat:last-child,
  .vid-stat:last-child { border-right: 0 !important; }
  .hub-stat dt,
  .vid-stat dt { font-size: 0.56rem; margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hub-stat dd,
  .vid-stat dd { font-size: 1.1rem; white-space: nowrap; }

  .video-tile-caption {
    font-size: 0.78rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  .hub-stats { margin-top: 0.75rem; }
  .wiki-hub .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .wiki-hub .hub-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .wiki-hub .hub-card { border-radius: 10px; }
  .wiki-hub .hub-card__body { padding: 0.45rem 0.5rem 0.5rem; gap: 0.15rem; }
  .wiki-hub .hub-card__blurb,
  .wiki-hub .hub-grid:not(.hub-grid--wide) .hub-card__kicker,
  .wiki-hub .hub-grid:not(.hub-grid--wide) .hub-card__badge { display: none; }
  .wiki-hub .hub-card__name { font-size: 0.74rem; line-height: 1.15; letter-spacing: 0.01em; }
  .wiki-hub .hub-grid--wide .hub-card__name { font-size: 0.86rem; }
  .wiki-hub .hub-card__badge { font-size: 0.6rem; }
}

@media (max-width: 620px) {
  .hub-deck,
  .vid-deck { position: relative; top: auto; }
  .hub-deck.is-stuck,
  .vid-deck.is-stuck { box-shadow: none; }
}

@media (max-width: 720px) {
  aside.wiki-infobox .wiki-infobox-row:not(.wiki-infobox-row--section):not(.wx-row-voice) {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    column-gap: 0.75rem;
    padding: 0.55rem 1rem;
  }
  aside.wiki-infobox .wiki-infobox-row:not(.wiki-infobox-row--section) dd { font-size: 0.9rem; }
}

@media (max-width: 720px) {
  aside.wiki-infobox[aria-label="Production facts"] .wx-rels,
  aside.wiki-infobox[aria-label="Production facts"] .wx-rels--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  aside.wiki-infobox[aria-label="Production facts"] .wx-rel {
    max-width: none;
    min-width: 0;
    border-radius: 12px;
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
  }
  aside.wiki-infobox[aria-label="Production facts"] .wx-rel__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  aside.wiki-infobox[aria-label="Production facts"] .wx-rel__n,
  aside.wiki-infobox[aria-label="Production facts"] .wx-rel em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  aside.wiki-infobox[aria-label="Production facts"] .wx-rel em { font-size: 0.7rem; }
}

@media (min-width: 621px) and (max-width: 1100px) {
  .site-nav > * { width: 100%; max-width: 34rem; margin-left: auto; margin-right: auto; }
}
