  /* ===========================================================
     VN Flare — Antigravity-Grade B&W Design System
     =========================================================== */

  /* ---- §1 Design tokens ---- */
  :root {
    /* ---- absolute palette ---- */
    --bw-0: #000000;
    --bw-1000: #ffffff;
    --bw-0-rgb: 0, 0, 0;
    --bw-1000-rgb: 255, 255, 255;

    /* ---- semantic surfaces (dark default) ---- */
    --surface: #000000;
    --surface-container: rgba(255, 255, 255, .03);
    --surface-container-high: rgba(255, 255, 255, .06);
    --surface-container-highest: rgba(255, 255, 255, .10);
    --on-surface: #ffffff;
    --on-surface-variant: rgba(255, 255, 255, .62);
    --on-surface-faint: rgba(255, 255, 255, .38);

    /* ---- primary = inverted surface ---- */
    --primary: #ffffff;
    --on-primary: #000000;

    /* ---- outlines ---- */
    --outline: rgba(255, 255, 255, .14);
    --outline-variant: rgba(255, 255, 255, .07);
    --outline-strong: rgba(255, 255, 255, .32);

    /* ---- overlays ---- */
    --state-hover: rgba(255, 255, 255, .08);
    --state-press: rgba(255, 255, 255, .14);
    --scrim: rgba(0, 0, 0, .72);

    /* ---- shape ---- */
    --shape-rounded: 999px;
    --shape-lg: 20px;
    --shape-md: 14px;
    --shape-sm: 8px;

    /* ---- motion ---- */
    --ease-out: cubic-bezier(.2, 0, 0, 1);
    --ease-emph: cubic-bezier(.2, .9, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur-micro: .15s;
    --dur-short: .24s;
    --dur-med: .36s;
    --dur-long: .6s;

    /* ---- elevation ---- */
    --elev-1: 0 1px 2px rgba(0, 0, 0, .6);
    --elev-2: 0 4px 12px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
    --elev-3: 0 12px 32px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .45);
    --ring: 0 0 0 1px rgba(255, 255, 255, .14);

    /* ---- type ---- */
    --cta-size: 17.5px;
    --cta-line-height: 25.38px;
    --cta-letter-spacing: .18px;
    --cta-sm-size: 14.5px;
    --cta-sm-line-height: 21.02px;
    --cta-sm-letter-spacing: .16px;
    --font-cta: "Google Sans Flex", "Google Sans", "Space Grotesk", -apple-system, sans-serif;
    --weight-cta: 450;

    /* ---- legacy aliases ---- */
    --bg: var(--surface);
    --text: var(--on-surface);
    --text-muted: var(--on-surface-variant);
    --accent: var(--primary);
    --accent-2: var(--on-surface-variant);
    --warning: rgba(255, 255, 255, .73);
    --danger: rgba(255, 255, 255, .53);
    --glow: var(--state-hover);
    --game: #ffffff;
    --glass: var(--surface-container);
    --hair: var(--outline);
    --surface-2: var(--surface-container-high);
    --r-card: var(--shape-md);
    --r-btn: var(--shape-rounded);
    --r-chip: var(--shape-rounded);
    --ease: var(--ease-emph);
    --font-display: "Google Sans", "Space Grotesk", "Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Inter", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  html[data-theme="light"] {
    --surface: #ffffff;
    --surface-container: rgba(0, 0, 0, .03);
    --surface-container-high: rgba(0, 0, 0, .06);
    --surface-container-highest: rgba(0, 0, 0, .10);
    --on-surface: #000000;
    --on-surface-variant: rgba(0, 0, 0, .64);
    --on-surface-faint: rgba(0, 0, 0, .40);
    --primary: #000000;
    --on-primary: #ffffff;
    --outline: rgba(0, 0, 0, .14);
    --outline-variant: rgba(0, 0, 0, .07);
    --outline-strong: rgba(0, 0, 0, .32);
    --state-hover: rgba(0, 0, 0, .06);
    --state-press: rgba(0, 0, 0, .12);
    --elev-1: 0 1px 2px rgba(0, 0, 0, .08);
    --elev-2: 0 4px 12px rgba(0, 0, 0, .10), 0 1px 2px rgba(0, 0, 0, .06);
    --elev-3: 0 12px 32px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .08);
    /* legacy light */
    --bg: #ffffff;
    --text: #000000;
    --text-muted: rgba(0, 0, 0, .64);
    --accent: #000000;
    --accent-2: #333333;
    --warning: #555555;
    --danger: #777777;
    --glass: rgba(0, 0, 0, .03);
    --hair: rgba(0, 0, 0, .14);
    --game: #000000;
    --glow: rgba(0, 0, 0, .06);
    --surface-2: rgba(0, 0, 0, .06);
  }

  /* ---- Reset ---- */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0
  }

  html,
  body {
    height: 100%
  }

  html {
    scroll-behavior: smooth
  }

  body {
    background: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .4s var(--ease-out), color .4s var(--ease-out);
  }

  a {
    color: inherit;
    text-decoration: none
  }

  button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer
  }

  ::selection {
    background: var(--on-surface);
    color: var(--surface)
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.1
  }

  .mono {
    font-family: ui-monospace, "Roboto Mono", SFMono-Regular, Menlo, monospace;
    font-variant-numeric: tabular-nums
  }

  /* ---- film grain + vignette ---- */
  #fx-grain,
  #fx-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60
  }

  #fx-vignette {
    box-shadow: inset 0 0 20vw 4vw rgba(0, 0, 0, .3)
  }

  #fx-grain {
    opacity: .02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(3) infinite
  }

  @keyframes grain {
    0% {
      transform: translate(0, 0)
    }

    33% {
      transform: translate(-3%, 2%)
    }

    66% {
      transform: translate(2%, -3%)
    }

    100% {
      transform: translate(0, 0)
    }
  }

  html[data-theme="light"] #fx-vignette {
    box-shadow: inset 0 0 18vw 4vw rgba(0, 0, 0, .06)
  }

  /* ---- CRT ---- */
  body.crt {
    filter: saturate(0) contrast(1.2)
  }

  body.crt::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 65;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px);
    mix-blend-mode: multiply
  }

  body.crt::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 66;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .75) 100%)
  }

  body.crt main {
    text-shadow: .5px 0 rgba(255, 255, 255, .3)
  }

  /* ---- custom cursor ---- */


  /* ==========================================================
     §2 BUTTONS — Antigravity pill system
     ========================================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    min-block-size: 40px;
    border-radius: 999px;
    border: 1px solid var(--outline);
    font-family: var(--font-cta);
    font-size: 13px;
    line-height: var(--cta-sm-line-height);
    font-weight: 400;
    letter-spacing: var(--cta-sm-letter-spacing);
    background: transparent;
    color: var(--on-surface-variant);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--dur-micro) ease-out,
      opacity var(--dur-micro) ease-out,
      background-color var(--dur-micro) ease-out,
      border-color var(--dur-micro) ease-out,
      box-shadow var(--dur-short) ease-out;
    user-select: none;
    white-space: nowrap;
    align-self: flex-start;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  /* state layer */
  .btn:hover {
    color: var(--on-surface);
    border-color: var(--outline-strong);
    background: var(--state-hover)
  }

  .btn:active {
    transform: scale(.97);
    transition-duration: .08s
  }

  /* -- primary (filled) -- */
  .btn--primary,
  .btn.primary {
    background: #fff !important;
    color: #000 !important;
    border-color: transparent !important;
    font-weight: 500;
  }

  .btn--primary:hover,
  .btn.primary:hover {
    opacity: .88;
    box-shadow: var(--elev-2);
  }

  .btn--primary:active,
  .btn.primary:active {
    transform: scale(.97);
    opacity: 1;
    transition-duration: .08s;
  }

  /* -- secondary (tonal) -- */
  .btn--secondary {
    background: var(--surface-container-high);
    color: var(--on-surface);
    border-color: transparent;
  }

  .btn--secondary:hover {
    background: var(--surface-container-highest);
  }

  .btn--secondary:active {
    transform: scale(.97)
  }

  /* -- outline -- */
  .btn--outline {
    border-color: var(--outline);
    background: transparent;
    color: var(--on-surface);
  }

  .btn--outline:hover {
    border-color: var(--outline-strong);
    background: var(--state-hover);
  }

  .btn--outline:active {
    transform: scale(.97);
    background: var(--state-press);
  }

  /* -- text (nav links, tertiary) -- */
  .btn--text {
    background: transparent;
    border-color: transparent;
    color: var(--on-surface-variant);
    padding: 8px 14px;
  }

  .btn--text:hover {
    color: var(--on-surface);
    background: var(--state-hover)
  }

  .btn--text:active {
    background: var(--state-press)
  }

  /* -- compact -- */
  .btn--compact {
    min-block-size: 36px;
    padding: 6px 16px;
    font-size: var(--cta-sm-size)
  }

  /* -- large -- */
  .btn--large {
    padding: 14px 32px;
    font-size: var(--cta-size);
    line-height: var(--cta-line-height);
    letter-spacing: var(--cta-letter-spacing)
  }

  /* -- icon only -- */
  .btn--icon {
    width: 40px;
    height: 40px;
    min-block-size: 40px;
    padding: 0;
    border-radius: var(--shape-rounded);
    justify-content: center;
  }

  /* -- icon glyph inside buttons -- */
  .btn__icon {
    font-size: 20px;
    line-height: 1;
    margin-block: -2px;
    transition: transform var(--dur-micro) ease-out;
  }

  /* -- states shared -- */
  .btn:focus-visible {
    outline: 2px solid var(--on-surface);
    outline-offset: 3px;
  }

  .btn[disabled],
  .btn[aria-busy="true"] {
    opacity: .38;
    transform: none !important;
    cursor: not-allowed;
    pointer-events: none;
  }

  /* loading spinner */
  .btn[aria-busy="true"]>span {
    opacity: 0
  }

  .btn[aria-busy="true"]::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin .9s linear infinite;
  }

  @keyframes btn-spin {
    to {
      transform: rotate(360deg)
    }
  }

  /* legacy compat: .btn without variant = outline */
  .btn:not(.btn--primary):not(.btn--secondary):not(.btn--outline):not(.btn--text):not(.btn--icon):not(.primary):not(.dropdown-trigger) {
    border-color: var(--outline);
  }

  .btn:not(.btn--primary):not(.btn--secondary):not(.btn--outline):not(.btn--text):not(.btn--icon):not(.primary):not(.dropdown-trigger):hover {
    border-color: var(--outline-strong);
    background: var(--state-hover);
  }


  /* ==========================================================
     NAV
     ========================================================== */
  header.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px clamp(16px, 4vw, 40px);
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(20px) saturate(0);
    -webkit-backdrop-filter: blur(20px) saturate(0);
    border-bottom: 1px solid var(--outline);
    transition: background .4s var(--ease-out);
  }

  html[data-theme="light"] header.nav {
    background: rgba(255, 255, 255, .85)
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -.02em;
    margin-right: auto
  }

  .brand-bot-icon {
    width: 22px;
    height: 22px;
    color: var(--on-surface);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle
  }

  .brand-bot-icon .bot-eye {
    transform-origin: 50% 50%;
    animation: bot-eye-blink 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  @keyframes bot-eye-blink {

    0%,
    42%,
    58%,
    100% {
      transform: scaleY(1);
      opacity: 1;
    }

    50% {
      transform: scaleY(0.15);
      opacity: 0.5;
    }
  }

  .brand-bot-icon .bot-antenna {
    transform-origin: 8px 8px;
    animation: bot-antenna-pulse 3.5s ease-in-out infinite;
  }

  @keyframes bot-antenna-pulse {

    0%,
    82%,
    100% {
      transform: rotate(0deg);
    }

    86% {
      transform: rotate(-8deg);
    }

    92% {
      transform: rotate(8deg);
    }

    96% {
      transform: rotate(0deg);
    }
  }

  nav.nav-menu {
    position: fixed;
    top: 14px;
    right: clamp(16px, 4vw, 40px);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .navlink {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-family: var(--font-cta);
    font-weight: 400;
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--on-surface-variant);
    transition: all var(--dur-micro) ease-out;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .navlink:hover {
    color: var(--on-surface);
    border-color: var(--outline-strong);
    background: var(--state-hover)
  }

  .navlink.active {
    color: #000 !important;
    background: #fff !important;
    border-color: transparent !important;
    font-weight: 500
  }

  .navlink:focus-visible {
    outline: 2px solid var(--on-surface);
    outline-offset: 3px
  }

  .navlink-icon {
    display: none
  }

  .navlink-text {
    display: inline
  }

  .nav-indicator {
    display: none
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--shape-rounded);
    display: grid;
    place-items: center;
    color: var(--on-surface-variant);
    border: 1px solid transparent;
    transition: all var(--dur-micro) ease-out
  }

  .icon-btn:hover {
    color: var(--on-surface);
    background: var(--state-hover)
  }

  .icon-btn.on {
    color: var(--on-surface)
  }

  .icon-btn:focus-visible {
    outline: 2px solid var(--on-surface);
    outline-offset: 3px
  }


  /* ==========================================================
     §3 DROPDOWN MENU
     ========================================================== */
  .nav-item {
    position: relative;
    display: inline-flex
  }

  .dropdown-trigger {
    color: var(--on-surface-variant);
    background: transparent;
    border: 1px solid var(--outline);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    font-family: var(--font-cta);
    transition: all var(--dur-micro) ease-out;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .dropdown-trigger:hover {
    color: var(--on-surface);
    background: var(--state-hover)
  }

  .dropdown-trigger[aria-expanded="true"] {
    color: var(--on-surface);
    background: var(--surface-container-high);
  }

  .dropdown-icon {
    font-size: 12px;
    line-height: 1;
    display: inline-block;
    transition: transform var(--dur-short) var(--ease-out);
  }

  .dropdown-trigger[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
  }

  .dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 160px;
    padding: 6px;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(0);
    -webkit-backdrop-filter: blur(20px) saturate(0);
    border: 1px solid var(--outline);
    border-radius: var(--shape-lg);
    box-shadow: var(--elev-3), inset 0 1px 0 rgba(255, 255, 255, .06);
    z-index: 60;
    /* closed state */
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .12s ease-in, transform .12s ease-in;
  }

  .dropdown-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity .18s var(--ease-out), transform .28s var(--ease-spring);
  }

  .dropdown-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: var(--on-surface);
    transition: background var(--dur-micro) ease-out;
    /* stagger */
    opacity: 0;
    transform: translateY(6px);
    transition: background var(--dur-micro) ease-out,
      opacity .18s var(--ease-out),
      transform .18s var(--ease-out);
  }

  .dropdown-panel.is-open .dropdown-item {
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown-panel.is-open .dropdown-item:nth-child(1) {
    transition-delay: 0ms
  }

  .dropdown-panel.is-open .dropdown-item:nth-child(2) {
    transition-delay: 22ms
  }

  .dropdown-panel.is-open .dropdown-item:nth-child(3) {
    transition-delay: 44ms
  }

  .dropdown-panel.is-open .dropdown-item:nth-child(4) {
    transition-delay: 66ms
  }

  .dropdown-panel.is-open .dropdown-item:nth-child(5) {
    transition-delay: 88ms
  }

  .dropdown-panel.is-open .dropdown-item:nth-child(6) {
    transition-delay: 110ms
  }

  .dropdown-item:hover {
    background: var(--state-hover)
  }

  .dropdown-item:active {
    background: var(--state-press)
  }

  .dropdown-item:focus-visible {
    outline: 2px solid var(--on-surface);
    outline-offset: -2px;
    border-radius: 12px
  }

  .dropdown-item[aria-current="page"] {
    background: var(--surface-container-high);
    position: relative;
  }

  .dropdown-item[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--on-surface);
  }

  .dropdown-item__icon {
    font-size: 20px;
    line-height: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    align-self: center;
    transition: transform var(--dur-micro) ease-out;
  }

  .dropdown-item__title {
    font-size: var(--cta-sm-size);
    font-weight: var(--weight-cta);
    line-height: 1.3;
    color: var(--on-surface);
    display: block;
  }

  .dropdown-item__desc {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--on-surface-faint);
    display: block;
    margin-top: 1px;
  }

  .dropdown-sep {
    height: 1px;
    background: var(--outline-variant);
    margin: 4px -0px;
  }


  /* ==========================================================
     CHIPS / BADGES
     ========================================================== */
  .chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 400;
    font-family: var(--font-cta);
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--on-surface-variant);
    transition: all var(--dur-micro) ease-out;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent
  }

  .chip:hover {
    color: var(--on-surface);
    border-color: var(--outline-strong);
    background: var(--state-hover)
  }

  .chip.on {
    background: #fff !important;
    color: #000 !important;
    border-color: transparent !important;
    font-weight: 500
  }

  .chip:active {
    transform: scale(.97)
  }

  .chip:focus-visible {
    outline: 2px solid var(--on-surface);
    outline-offset: 3px
  }

  .plat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    color: var(--on-surface-variant);
    transition: color var(--dur-micro) ease-out
  }

  .stable tr:hover .plat-icon,
  .plat-icon:hover {
    color: var(--on-surface)
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: var(--shape-rounded);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--outline)
  }

  .badge .dot {
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: currentColor
  }

  .badge[data-s="completed"] {
    color: var(--on-surface)
  }

  .badge[data-s="playing"] {
    color: var(--on-surface);
    border-color: var(--on-surface)
  }

  .badge[data-s="replaying"] {
    color: var(--on-surface-variant)
  }

  .badge[data-s="dropped"] {
    color: var(--on-surface-variant);
    opacity: .6
  }

  .badge[data-s="backlog"] {
    color: var(--on-surface-faint);
    opacity: .5
  }


  /* ==========================================================
     LAYOUT
     ========================================================== */
  main {
    position: relative;
    z-index: 2;
    min-height: 100vh
  }

  .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 40px)
  }

  .section {
    padding-block: clamp(56px, 9vh, 110px)
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: .05em;
    color: var(--on-surface-variant);
    font-weight: 500;
    margin-bottom: 14px
  }

  .lead {
    color: var(--on-surface-variant);
    font-size: 16px;
    line-height: 1.7;
    max-width: 60ch
  }

  /* scroll reveal */
  .rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--ease-emph), transform .6s var(--ease-emph)
  }

  .rv.in {
    opacity: 1;
    transform: none
  }

  .rv[data-d="1"] {
    transition-delay: .04s
  }

  .rv[data-d="2"] {
    transition-delay: .08s
  }

  .rv[data-d="3"] {
    transition-delay: .12s
  }

  .rv[data-d="4"] {
    transition-delay: .16s
  }

  /* clean panels */
  .glass {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: var(--shape-md)
  }


  /* ==========================================================
     §4 CARDS — polished
     ========================================================== */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
    margin-top: 30px;
  }

  .gcard {
    position: relative;
    border-radius: var(--shape-md);
    cursor: pointer;
    display: block;
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    overflow: visible;
    transition: box-shadow .4s var(--ease-out),
      border-color .4s var(--ease-out);
  }

  /* .gcard and .rv both declare `transition`, and a shorthand collision at
     equal specificity means whichever comes later in the cascade wins the
     whole property list — silently dropping the other's opacity/transform
     entrance transition. Merge both here so the reveal actually animates. */
  .gcard.rv {
    transition: box-shadow .4s var(--ease-out),
      border-color .4s var(--ease-out),
      opacity .6s var(--ease-emph),
      transform .6s var(--ease-emph);
  }

  .gcard:focus-visible {
    outline: 2px solid var(--on-surface);
    outline-offset: 3px
  }

  /* media wrapper */
  .gcard .art {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--shape-md) var(--shape-md) 0 0;
    overflow: hidden;
    border-bottom: 1px solid var(--outline-variant);
  }

  .gcard .art canvas,
  .gcard .art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter .4s var(--ease-out);
  }

  /* hover: subtle glow + border shift */
  .gcard:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .28), 0 0 0 1px var(--outline-strong);
    border-color: var(--outline-strong);
  }

  .gcard:hover .art canvas,
  .gcard:hover .art img {
    filter: brightness(1.06);
  }

  /* press & focus */
  .gcard:active {
    transition-duration: .1s
  }

  /* sheen sweep */
  .gcard .shine {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    background: linear-gradient(-20deg, transparent 30%, rgba(255, 255, 255, .08) 48%, transparent 62%);
    background-size: 120% 100%;
    background-position: -120% 0;
    transition: opacity .3s var(--ease-out);
  }

  .gcard:hover .shine {
    opacity: 1;
    animation: sheen-sweep .7s var(--ease-out) forwards;
  }

  @keyframes sheen-sweep {
    from {
      background-position: -120% 0
    }

    to {
      background-position: 120% 0
    }
  }

  /* card glow (replaced old ::after) */
  .gcard::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--shape-md);
    z-index: -1;
    background: transparent;
    pointer-events: none
  }

  .gcard .meta {
    padding: 14px 12px 10px
  }

  .gcard .t {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35
  }

  .gcard .s {
    font-size: 11.5px;
    color: var(--on-surface-faint);
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
    letter-spacing: .01em
  }

  .gcard .rt {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: var(--shape-sm);
    font-size: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, .7);
    border: 1px solid var(--outline);
    font-variant-numeric: tabular-nums;
    color: #fff;
    backdrop-filter: blur(6px)
  }

  .gcard .stbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--on-surface);
    opacity: .3
  }

  .empty {
    padding: 70px 0;
    text-align: center;
    color: var(--on-surface-variant)
  }

  /* skeleton shimmer */
  .gcard--skeleton .art {
    background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
  }

  @keyframes skeleton-shimmer {
    0% {
      background-position: 200% 0
    }

    100% {
      background-position: -200% 0
    }
  }

  /* card grid entrance — handled by .rv with stagger */
  /* content-visibility for long lists */
  .grid .gcard:nth-child(n+13) {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }


  /* ==========================================================
     HERO
     ========================================================== */
  #hero-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none
  }

  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 70px
  }

  .hero h1 {
    font-size: clamp(32px, 6.5vw, 90px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.04em
  }

  .hero h1 .ln {
    display: block;
    overflow: hidden;
    padding-bottom: .08em
  }

  .hero h1 .ch {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0
  }

  .hero h1 em {
    font-style: normal;
    color: var(--on-surface-variant)
  }

  .hero-sub {
    margin-top: 28px;
    max-width: 52ch
  }

  .hero-cta {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 64px
  }

  .stat {
    padding: 22px 24px;
    border-radius: var(--shape-md);
    background: var(--surface-container);
    border: 1px solid var(--outline-variant)
  }

  .stat .v {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1
  }

  .stat .k {
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    margin-top: 8px
  }

  .scroll-ind {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--on-surface-variant)
  }

  .scroll-ind .bar {
    width: 1px;
    height: 44px;
    background: linear-gradient(var(--on-surface-variant), transparent);
    animation: sdown 2s var(--ease-out) infinite
  }

  @keyframes sdown {
    0% {
      transform: scaleY(0);
      transform-origin: top
    }

    50% {
      transform: scaleY(1);
      transform-origin: top
    }

    51% {
      transform: scaleY(1);
      transform-origin: bottom
    }

    100% {
      transform: scaleY(0);
      transform-origin: bottom
    }
  }

  /* flythrough — multi-section scroll journey */
  .fly {
    height: 600vh;
    position: relative
  }

  .fly-copy {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 3
  }

  .fly-copy h2 {
    font-size: clamp(26px, 4.6vw, 60px);
    max-width: 20ch;
    font-weight: 300
  }

  .fly-sections {
    position: relative;
    z-index: 3
  }

  .fly-section {
    height: 120vh;
    display: flex;
    align-items: center;
    pointer-events: none
  }

  .fly-section .fly-inner {
    max-width: 440px;
    padding: 0 clamp(20px, 4vw, 48px)
  }

  .fly-section .fly-eyebrow {
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    font-weight: 600;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
    transition: opacity .6s var(--ease-emph), transform .6s var(--ease-emph), filter .6s var(--ease-emph)
  }

  .fly-section .fly-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: 1.12;
    opacity: 0;
    transform: translateY(28px) scale(.97);
    filter: blur(6px);
    transition: opacity .8s var(--ease-emph) .1s, transform .8s var(--ease-emph) .1s, filter .7s var(--ease-emph) .1s
  }

  .fly-section .fly-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin-top: 18px;
    max-width: 38ch;
    opacity: 0;
    transform: translateY(18px);
    filter: blur(3px);
    transition: opacity .8s var(--ease-emph) .22s, transform .8s var(--ease-emph) .22s, filter .6s var(--ease-emph) .22s
  }

  .fly-section.in .fly-eyebrow,
  .fly-section.in .fly-title,
  .fly-section.in .fly-desc {
    opacity: 1;
    transform: none;
    filter: blur(0)
  }

  /* Odd sections (1,3,5): text LEFT — cards are on the RIGHT side of the 3D scene */
  .fly-section:nth-child(odd) .fly-inner {
    margin-right: auto;
    margin-left: clamp(20px, 6vw, 80px)
  }

  /* Even sections (2,4): text RIGHT — cards are on the LEFT side of the 3D scene */
  .fly-section:nth-child(even) .fly-inner {
    margin-left: auto;
    margin-right: clamp(20px, 6vw, 80px)
  }

  /* ==========================================================
     MOBILE — Hero & flythrough (≤1023px)
     The desktop experience shares one fixed full-bleed WebGL canvas across
     the hero and every fly-section, with text floating on top of whatever
     the camera happens to be flying past. Below 1024px that canvas is
     switched off entirely (see mountHeroScene in app.js) and replaced with
     bounded, normal-flow sections plus static 2D card art, so text is never
     competing with 3D content for the same pixels.
     ========================================================== */
  .hero__visual,
  .fly-visual,
  .mobile-cards {
    display: none
  }

  @media (max-width:1023px) {
    #hero-canvas {
      display: none !important
    }

    .fly {
      height: auto
    }

    /* no scroll runway needed without the camera flythrough */

    /* Static stand-in for the WebGL scene's fog/star atmosphere, since the
       canvas (and everything it was rendering) is switched off below this
       width. Colors are pulled directly from scene.js's hero(): the fog's
       base/warm/cool tints (createAtmosphere's color/warmTint/coolTint) and
       the exact 4-color star palette its Points material uses, so mobile
       and desktop are the same world, not an approximation of it. */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(ellipse 55% 32% at 15% 10%, rgba(42, 31, 24, .55), transparent 65%),
        /* warmTint 0x2a1f18 */
        radial-gradient(ellipse 60% 36% at 85% 28%, rgba(18, 26, 44, .6), transparent 65%),
        /* coolTint 0x121a2c */
        radial-gradient(ellipse 70% 45% at 50% 88%, rgba(18, 26, 44, .55), transparent 70%),
        #0a0a0f;
      /* fog base 0x0a0a0f */
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: .85;
      background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
        radial-gradient(1px 1px at 34% 65%, rgba(125, 92, 255, .9), transparent),
        /* star palette: violet */
        radial-gradient(2px 2px at 58% 12%, #fff, transparent),
        radial-gradient(1px 1px at 76% 48%, rgba(0, 230, 176, .85), transparent),
        /* star palette: emerald */
        radial-gradient(1.5px 1.5px at 21% 82%, rgba(255, 176, 33, .9), transparent),
        /* star palette: amber */
        radial-gradient(1px 1px at 49% 38%, rgba(255, 255, 255, .6), transparent),
        radial-gradient(2px 2px at 88% 28%, rgba(125, 92, 255, .8), transparent),
        /* star palette: violet */
        radial-gradient(1px 1px at 5% 50%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.5px 1.5px at 66% 90%, rgba(0, 230, 176, .75), transparent),
        /* star palette: emerald */
        radial-gradient(1px 1px at 95% 65%, rgba(255, 176, 33, .7), transparent);
      /* star palette: amber */
      background-repeat: repeat;
      background-size: 260px 260px;
      transition: opacity .6s ease-out;
    }

    /* When the live canvas atmosphere is active, hide the static CSS stars
       so they don't double up. The canvas handles everything. */
    body:has(#mobile-atmo)::after {
      opacity: 0 !important
    }

    @media (prefers-reduced-motion:no-preference) {
      body::before {
        animation: gvAtmoBreathe 10s ease-in-out infinite
      }

      body::after {
        animation: gvStarDrift 90s linear infinite
      }
    }

    @keyframes gvAtmoBreathe {

      0%,
      100% {
        opacity: .85;
        transform: scale(1)
      }

      50% {
        opacity: 1;
        transform: scale(1.06)
      }
    }

    @keyframes gvStarDrift {
      0% {
        background-position: 0 0
      }

      100% {
        background-position: -260px -260px
      }
    }

    /* ---- HERO — vertical card + text stacking ---- */
    .hero {
      display: grid;
      grid-template-areas: "visual" "text";
      align-content: start;
      justify-items: center;
      min-height: 0;
      padding-top: clamp(2rem, 5vh, 3.5rem);
      padding-bottom: clamp(2.5rem, 7vh, 4rem);
      text-align: center;
    }

    .hero__visual {
      display: flex;
      position: relative;
      grid-area: visual;
      width: 100%;
      height: clamp(280px, 44vh, 440px);
      max-width: 100%;
      overflow: visible;
    }

    /* Mirrors scene.js's heroBloom — a soft floor-glow under the hero card
       in the actual accent color of games[0], instead of the 3D scene's
       PointLight + additive-blended glow plane. */
    .hero__visual::before {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 4%;
      width: 70%;
      height: 44%;
      transform: translateX(-50%);
      background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--hero-accent, #7c5cff), transparent 72%);
      opacity: .32;
      filter: blur(10px);
      pointer-events: none;
    }

    .hero__visual.rv {
      transform: translateY(24px) scale(.92)
    }

    .hero__visual.rv.in {
      transform: none
    }

    .hero__text {
      grid-area: text;
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 52ch
    }

    .hero .eyebrow,
    .hero .hero-sub {
      margin-inline: auto
    }

    .hero-cta {
      justify-content: center
    }

    .hero-cta .btn {
      min-height: 44px;
      display: inline-flex;
      align-items: center
    }

    .scroll-ind {
      display: none
    }

    /* ---- FLY SECTIONS — vertical card-above-text, centered ---- */
    .fly-sections {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .fly-section {
      display: grid;
      grid-template-areas: "visual" "text";
      height: auto;
      padding-block: clamp(2.5rem, 7vh, 4.5rem);
      text-align: center;
      justify-items: center;
    }

    /* Subtle top separator between sections */
    .fly-section+.fly-section {
      border-top: 1px solid rgba(255, 255, 255, .04);
    }

    .fly-visual {
      display: flex;
      position: relative;
      grid-area: visual;
      width: 100%;
      height: clamp(240px, 34vh, 380px);
      margin-bottom: 28px;
      opacity: 0;
      transform: translateY(32px) scale(.93);
      filter: blur(5px);
      transition: opacity .8s var(--ease-emph), transform .8s var(--ease-emph), filter .7s var(--ease-emph);
    }

    /* Accent glow behind every fly-section card cluster — gives depth and
       mirrors the hero's floor glow so each section feels immersive. */
    .fly-visual::before {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 6%;
      width: 60%;
      height: 40%;
      transform: translateX(-50%);
      background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--hero-accent, #7c5cff), transparent 70%);
      opacity: .2;
      filter: blur(12px);
      pointer-events: none;
      transition: opacity .8s var(--ease-emph);
    }

    .fly-section.in .fly-visual::before {
      opacity: .25
    }

    .fly-section.in .fly-visual {
      opacity: 1;
      transform: none;
      filter: blur(0)
    }

    .fly-section .fly-inner {
      grid-area: text;
      max-width: 44ch;
      padding: 0 clamp(20px, 6vw, 32px);
    }

    .fly-section:nth-child(odd) .fly-inner,
    .fly-section:nth-child(even) .fly-inner {
      margin: 0 auto;
      max-width: 44ch;
      padding: 0 clamp(20px, 6vw, 32px);
    }

    /* ---- MOBILE CARDS — shared base (larger, deeper shadows) ---- */
    .mobile-cards {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 100%;
      height: 100%;
    }

    .mobile-cards canvas {
      width: clamp(130px, 28vw, 170px);
      height: auto;
      border-radius: 12px;
      box-shadow:
        0 12px 40px rgba(0, 0, 0, .55),
        0 2px 8px rgba(0, 0, 0, .3);
      position: absolute;
      top: 50%;
      left: 50%;
      will-change: transform;
      transition: box-shadow .4s var(--ease-out);
    }

    /* Hero cards — 3-card cinematic fan (center-biased) */
    .hero__visual .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(-7deg) translateX(-68px) translateY(6px);
      z-index: 2;
    }

    .hero__visual .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(3deg) translateX(10px) translateY(-6px);
      z-index: 3;
    }

    .hero__visual .mobile-cards canvas:nth-child(3) {
      transform: translate(-50%, -50%) rotate(-2deg) translateX(80px) translateY(12px) scale(.92);
      z-index: 1;
      opacity: .85;
    }

    /* Fly-section cards — alternating fan direction per section for variety.
       Odd sections (1,3,5): cards fan to the right
       Even sections (2,4): cards fan to the left
       This prevents every section looking identical. */
    /* -- Odd fly-sections: slight right-lean fan -- */
    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(-6deg) translateX(-50px) translateY(4px);
      z-index: 2;
    }

    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(5deg) translateX(50px) translateY(-2px);
      z-index: 3;
    }

    /* -- Even fly-sections: mirror fan (slight left-lean) -- */
    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(6deg) translateX(50px) translateY(4px);
      z-index: 2;
    }

    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(-5deg) translateX(-50px) translateY(-2px);
      z-index: 3;
    }
  }

  @media (max-width:1023px) and (min-width:360px) {
    .hero-cta {
      flex-wrap: nowrap
    }
  }

  @media (max-width:359px) {
    .hero-cta {
      flex-direction: column;
      gap: .75rem
    }

    .hero-cta .btn {
      width: 100%;
      justify-content: center
    }
  }

  /* Idle float — animates `transform` only (GPU-compositable) rather than
     margin/top, which forces a layout reflow every frame and is what was
     causing the stutter. Each card gets its own duration, rotation wobble
     and scale breathing (not just a shared Y-bob) so the cluster feels
     organic/desynced rather than three things bobbing in lockstep. */
  @media (max-width:1023px) and (prefers-reduced-motion:no-preference) {

    /* Hero card floats */
    .hero__visual .mobile-cards canvas:nth-child(1) {
      animation: mcHFloat1 5.5s ease-in-out infinite
    }

    .hero__visual .mobile-cards canvas:nth-child(2) {
      animation: mcHFloat2 7s ease-in-out infinite;
      animation-delay: -2.3s
    }

    .hero__visual .mobile-cards canvas:nth-child(3) {
      animation: mcHFloat3 6.2s ease-in-out infinite;
      animation-delay: -4.1s
    }

    /* Fly-section odd card floats */
    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(1) {
      animation: mcFlyOdd1 6s ease-in-out infinite
    }

    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(2) {
      animation: mcFlyOdd2 7.5s ease-in-out infinite;
      animation-delay: -2s
    }

    /* Fly-section even card floats */
    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(1) {
      animation: mcFlyEven1 6.5s ease-in-out infinite;
      animation-delay: -1s
    }

    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(2) {
      animation: mcFlyEven2 7s ease-in-out infinite;
      animation-delay: -3s
    }
  }

  /* Hero float keyframes — 3 cards */
  @keyframes mcHFloat1 {

    0%,
    100% {
      transform: translate(-50%, -50%) rotate(-7deg) translateX(-68px) translateY(6px) scale(1)
    }

    50% {
      transform: translate(-50%, -50%) rotate(-8.5deg) translateX(-71px) translateY(-8px) scale(1.02)
    }
  }

  @keyframes mcHFloat2 {

    0%,
    100% {
      transform: translate(-50%, -50%) rotate(3deg) translateX(10px) translateY(-6px) scale(1)
    }

    50% {
      transform: translate(-50%, -50%) rotate(4.5deg) translateX(13px) translateY(-20px) scale(1.03)
    }
  }

  @keyframes mcHFloat3 {

    0%,
    100% {
      transform: translate(-50%, -50%) rotate(-2deg) translateX(80px) translateY(12px) scale(.92)
    }

    50% {
      transform: translate(-50%, -50%) rotate(-3.5deg) translateX(77px) translateY(0px) scale(.94)
    }
  }

  /* Fly odd section float keyframes */
  @keyframes mcFlyOdd1 {

    0%,
    100% {
      transform: translate(-50%, -50%) rotate(-6deg) translateX(-50px) translateY(4px) scale(1)
    }

    50% {
      transform: translate(-50%, -50%) rotate(-7.5deg) translateX(-53px) translateY(-10px) scale(1.02)
    }
  }

  @keyframes mcFlyOdd2 {

    0%,
    100% {
      transform: translate(-50%, -50%) rotate(5deg) translateX(50px) translateY(-2px) scale(1)
    }

    50% {
      transform: translate(-50%, -50%) rotate(6.5deg) translateX(53px) translateY(-16px) scale(1.03)
    }
  }

  /* Fly even section float keyframes (mirrored direction) */
  @keyframes mcFlyEven1 {

    0%,
    100% {
      transform: translate(-50%, -50%) rotate(6deg) translateX(50px) translateY(4px) scale(1)
    }

    50% {
      transform: translate(-50%, -50%) rotate(7.5deg) translateX(53px) translateY(-10px) scale(1.02)
    }
  }

  @keyframes mcFlyEven2 {

    0%,
    100% {
      transform: translate(-50%, -50%) rotate(-5deg) translateX(-50px) translateY(-2px) scale(1)
    }

    50% {
      transform: translate(-50%, -50%) rotate(-6.5deg) translateX(-53px) translateY(-16px) scale(1.03)
    }
  }



  /* ==========================================================
     3D SHELF
     ========================================================== */
  #shelf-wrap {
    position: relative;
    height: min(66vh, 560px);
    margin-top: 26px;
    border-radius: var(--shape-lg);
    overflow: hidden;
    background: var(--surface-container);
    border: 1px solid var(--outline-variant)
  }

  #shelf-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab
  }

  #shelf-canvas:active {
    cursor: grabbing
  }

  .shelf-hud {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    pointer-events: none
  }

  .shelf-hud .st {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500
  }

  .shelf-hud .ss {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 5px
  }

  .shelf-hint {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    pointer-events: none
  }

  .shelf-open {
    position: absolute;
    bottom: 14px;
    right: 16px;
    pointer-events: auto
  }


  /* ==========================================================
     GAME DETAIL
     ========================================================== */
  .g-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 44px;
    padding-top: 120px;
    overflow: hidden
  }

  .g-hero .lightA,
  .g-hero .lightB {
    position: absolute;
    border-radius: 50%;
    pointer-events: none
  }

  .g-hero .lightA {
    width: 52vw;
    height: 52vw;
    background: rgba(255, 255, 255, .03);
    top: -16vw;
    right: -10vw
  }

  .g-hero .lightB {
    width: 38vw;
    height: 38vw;
    background: rgba(255, 255, 255, .02);
    bottom: -14vw;
    left: -8vw
  }

  .g-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 60px);
    align-items: end;
    width: 100%;
    position: relative
  }

  .cover3d {
    perspective: 1100px
  }

  .cover3d .inner {
    position: relative;
    border-radius: 12px;
    transform-style: preserve-3d;
    transition: transform .4s var(--ease-emph);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7)
  }

  .cover3d canvas {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--outline)
  }

  .cover3d .floor {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 60%;
    border-radius: 12px;
    transform: rotateX(180deg) translateZ(-1px);
    transform-origin: top;
    opacity: .1;
    mask-image: linear-gradient(#000, transparent 72%);
    -webkit-mask-image: linear-gradient(#000, transparent 72%)
  }

  .g-title {
    font-size: clamp(34px, 6.6vw, 86px);
    margin: 12px 0;
    font-weight: 400;
    letter-spacing: -.03em
  }

  .g-tag {
    color: var(--on-surface-variant);
    font-size: 16px;
    font-style: normal
  }

  .g-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px
  }

  .g-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--outline);
    padding-top: 26px
  }

  .cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px
  }

  .kv {
    padding: 20px 22px;
    border-radius: var(--shape-md);
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    transition: border-color var(--dur-micro) ease-out
  }

  .kv:hover {
    border-color: var(--outline-strong)
  }

  .kv .k {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--on-surface-variant)
  }

  .kv .v {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-top: 9px
  }

  .meter {
    height: 4px;
    border-radius: 99px;
    background: var(--surface-container-high);
    overflow: hidden;
    margin-top: 12px
  }

  .meter i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: var(--on-surface);
    transition: width 1.3s var(--ease-emph)
  }

  .stars {
    display: flex;
    gap: 3px;
    margin-top: 10px
  }

  .stars svg {
    width: 15px;
    height: 15px
  }

  .prose {
    max-width: 70ch;
    font-size: 16px;
    line-height: 1.8;
    color: var(--on-surface-variant)
  }

  html[data-theme="light"] .prose {
    color: #333
  }

  .prose p {
    margin-bottom: 1.15em
  }

  .prose strong {
    color: var(--on-surface);
    font-weight: 500
  }

  .prose blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 2px solid var(--on-surface);
    background: var(--surface-container);
    border-radius: 0 var(--shape-md) var(--shape-md) 0;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.5;
    color: var(--on-surface);
    font-weight: 300
  }

  .mem-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 8px
  }

  .mem-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: var(--shape-md);
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    font-size: 14px;
    line-height: 1.6;
    transition: border-color var(--dur-micro) ease-out
  }

  .mem-list li:hover {
    border-color: var(--outline-strong)
  }

  .mem-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--on-surface);
    margin-top: 7px;
    flex: none;
    opacity: .5
  }


  /* ==========================================================
     SAVE CARDS
     ========================================================== */
  .saves-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px
  }

  .save-card {
    border-radius: var(--shape-md);
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    overflow: hidden;
    transition: border-color var(--dur-micro) ease-out, transform .3s var(--ease-emph)
  }

  .save-card:hover {
    border-color: var(--outline-strong);
  }

  .save-card:focus-visible {
    outline: 2px solid var(--on-surface);
    outline-offset: 3px
  }

  .save-head {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    flex-wrap: wrap
  }

  .save-ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 500
  }

  .save-t {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px
  }

  .save-f {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 4px
  }

  .save-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center
  }

  .dl {
    position: relative;
    overflow: hidden
  }

  .dl .fill {
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform .9s var(--ease-emph)
  }

  .dl.go .fill {
    transform: translateX(0)
  }

  .dl span {
    position: relative;
    z-index: 2
  }

  .save-note {
    padding: 0 20px 18px;
    font-size: 13px;
    color: var(--on-surface-variant);
    line-height: 1.7
  }

  .disc {
    border-top: 1px solid var(--outline-variant)
  }

  .disc summary {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--on-surface-variant);
    transition: color var(--dur-micro)
  }

  .disc summary:hover {
    color: var(--on-surface)
  }

  .disc summary::-webkit-details-marker {
    display: none
  }

  .disc summary::before {
    content: "+";
    font-size: 16px;
    color: var(--on-surface);
    width: 14px
  }

  .disc[open] summary::before {
    content: "−"
  }

  .disc .body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    padding: 0 20px 18px;
    overflow: hidden;
  }

  .disc .body code {
    background: var(--surface-container-high);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
    font-size: 12px;
    color: var(--on-surface);
    word-break: break-all
  }

  .vhist {
    display: grid;
    gap: 8px
  }

  .vrow {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--shape-sm);
    background: var(--surface-container-high);
    transition: background var(--dur-micro) ease-out
  }

  .vrow:hover {
    background: var(--surface-container)
  }

  .vtag {
    font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600
  }


  /* ==========================================================
     TOOLBAR / SEARCH / FILTERS
     ========================================================== */
  .toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 22px 0 8px
  }

  .search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--shape-rounded);
    background: var(--surface-container);
    border: 1px solid var(--outline);
    min-width: 230px;
    flex: 1;
    max-width: 340px;
    transition: border-color var(--dur-micro) ease-out
  }

  .search:focus-within {
    border-color: var(--outline-strong)
  }

  .search input {
    background: none;
    border: none;
    outline: none;
    color: var(--on-surface);
    font-size: 13px;
    width: 100%;
    font-family: inherit
  }

  .search input::placeholder {
    color: var(--on-surface-faint)
  }

  select.sel {
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 36px 12px 18px;
    border-radius: var(--shape-rounded);
    background: var(--surface-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--on-surface);
    border: 1px solid var(--outline);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all var(--dur-micro) ease-out
  }

  select.sel:hover {
    background-color: var(--surface-container-high);
    border-color: var(--outline-strong)
  }

  select.sel:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary)
  }

  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 4px
  }

  .frow {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center
  }

  .frow .lbl {
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    margin-right: 4px;
    min-width: 62px
  }


  /* ==========================================================
     MASONRY / LIGHTBOX / STRIPS
     ========================================================== */
  .masonry {
    columns: 3 200px;
    column-gap: 14px;
    margin-top: 22px
  }

  .masonry figure {
    margin: 0 0 14px;
    break-inside: avoid;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--outline-variant);
    position: relative;
    transition: transform .5s var(--ease-emph)
  }

  .masonry canvas {
    width: 100%;
    display: block;
    transition: transform .6s var(--ease-emph)
  }

  .masonry figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 13px 10px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    opacity: 0;
    transition: opacity .4s
  }

  .masonry figure:hover figcaption {
    opacity: 1
  }

  #lightbox {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, .95);
    display: none;
    place-items: center;
    padding: 5vh 5vw;
    cursor: zoom-out
  }

  #lightbox.on {
    display: grid
  }

  #lightbox canvas {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 10px;
    border: 1px solid var(--outline);
    box-shadow: 0 50px 120px -40px #000
  }

  #lightbox .cap {
    position: absolute;
    bottom: 5vh;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: var(--on-surface-variant)
  }

  .strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin
  }

  .strip::-webkit-scrollbar {
    height: 4px
  }

  .strip::-webkit-scrollbar-thumb {
    background: var(--surface-container-high);
    border-radius: 9px
  }

  .strip>* {
    flex: 0 0 168px;
    scroll-snap-align: start
  }


  /* ==========================================================
     MEDIA GALLERY — cinematic video + images
     ========================================================== */
  .media-gallery {
    margin-top: 0
  }

  /* Video container */
  .media-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--outline-variant);
    background: #000;
    aspect-ratio: 16/9;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
    transition: box-shadow .4s var(--ease-emph);
  }

  .media-video:hover {
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8)
  }

  .media-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
  }

  /* Shaka Player — Transparent Glass Pills Overlay */
  .media-video .shaka-controls-container {
    border-radius: 14px;
  }

  .media-video .shaka-bottom-controls {
    background: transparent !important;
    padding: 0 24px 24px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    z-index: 10 !important;
    /* Ensure control bar is strictly above play overlay */
  }

  /* Force Seek bar ABOVE controls */
  .media-video .shaka-seek-bar-container {
    order: -1 !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }

  .media-video .shaka-seek-bar-container input[type=range] {
    cursor: pointer;
    height: 4px !important;
    border-radius: 4px !important;
    transition: height 0.1s ease !important;
  }

  .media-video .shaka-seek-bar-container:hover input[type=range] {
    height: 6px !important;
  }

  /* Remove dot balls completely */
  .media-video .shaka-seek-bar-container input[type=range]::-webkit-slider-thumb {
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  /* Transparent container, pills applied to children */
  .media-video .shaka-controls-button-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
  }

  /* Spacer to push fullscreen right */
  .media-video .shaka-spacer {
    flex: 1 !important;
    display: block !important;
  }

  /* Base pill style for individual controls (Mute button is handled separately by custom-vol-pill) */
  .media-video .shaka-small-play-button,
  .media-video .shaka-fullscreen-button,
  .media-video .shaka-time-and-duration {
    background: rgba(20, 20, 20, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: opacity .2s, transform .2s, background .2s !important;
    pointer-events: auto !important;
  }

  /* Standardize standalone pill buttons (Play, Fullscreen) */
  .media-video .shaka-small-play-button,
  .media-video .shaka-fullscreen-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    opacity: .85;
    cursor: pointer !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 50% !important;
  }

  .media-video .shaka-small-play-button:hover,
  .media-video .shaka-fullscreen-button:hover {
    opacity: 1;
    background: rgba(30, 30, 30, 0.65) !important;
  }

  /* Standardize inner mute button (inside the custom volume pill) */
  .media-video .shaka-mute-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    opacity: .85;
    cursor: pointer !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
  }

  .media-video .shaka-mute-button:hover {
    opacity: 1;
  }

  /* Hide native icon text securely */
  .media-video .shaka-small-play-button,
  .media-video .shaka-mute-button,
  .media-video .shaka-fullscreen-button,
  .media-video .shaka-play-button {
    font-size: 0 !important;
    color: transparent !important;
  }

  /* Hide advanced chrome */
  .media-video .shaka-overflow-menu-button,
  .media-video .shaka-pip-button,
  .media-video .shaka-cast-button,
  .media-video .shaka-overflow-menu,
  .media-video .shaka-settings-menu,
  .media-video .shaka-back-to-overflow-button {
    display: none !important
  }

  /* Combined Custom Volume Pill */
  .media-video .shaka-volume-bar-container {
    display: none !important;
  }

  .custom-vol-pill {
    background: rgba(20, 20, 20, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    width: 42px;
    opacity: 0.85;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity .2s, background .2s;
    overflow: hidden;
    pointer-events: auto !important;
  }

  .custom-vol-pill:hover {
    width: 110px;
    opacity: 1;
    background: rgba(30, 30, 30, 0.65) !important;
  }

  .custom-vol-slider-wrap {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease;
    display: flex;
    align-items: center;
  }

  .custom-vol-pill:hover .custom-vol-slider-wrap {
    width: 60px;
    opacity: 1;
    padding-right: 14px;
    padding-left: 2px;
  }

  .custom-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right, #fff 100%, rgba(255, 255, 255, 0.2) 100%);
  }

  .custom-vol-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
  }

  .custom-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    margin-top: -4px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  /* Big center play overlay — Status Overlay */
  .media-video .shaka-play-button-container {
    z-index: 5;
    display: grid !important;
    place-items: center !important;
  }

  .media-video .shaka-play-button {
    background: rgba(20, 20, 20, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none !important;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform: scale(0.85) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
  }

  .media-video.shaka-paused .shaka-play-button {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
  }

  .media-video.shaka-paused .shaka-play-button:hover {
    background: rgba(30, 30, 30, 0.65) !important;
    transform: scale(1.05) !important;
  }

  /* Time display */
  .media-video .shaka-current-time {
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    color: #fff !important;
    letter-spacing: .02em;
    padding: 0 16px !important;
    margin: 0 !important;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
    line-height: 1 !important;
    height: 100% !important;
  }

  /* Image gallery — horizontal scroll strip with custom arrows */
  .media-carousel-wrap {
    position: relative;
    max-width: 1000px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .media-carousel-wrap .nav-btn {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--outline-variant);
    color: var(--on-surface);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .3s var(--ease-emph);
    backdrop-filter: blur(8px);
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .media-carousel-wrap .nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
    border-color: var(--outline-strong);
  }

  .media-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    flex: 1;
    min-width: 0;
  }

  .media-images::-webkit-scrollbar {
    display: none
  }

  /* Hide scrollbar Webkit */

  .media-img {
    flex: 0 0 auto;
    width: clamp(220px, 28vw, 340px);
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-container-high);
    border: 1px solid var(--outline-variant);
    cursor: zoom-in;
    position: relative;
    scroll-snap-align: start;
    transition: transform .5s var(--ease-emph), box-shadow .5s var(--ease-emph);
  }

  .media-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .5);
  }

  .media-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .5s cubic-bezier(0.2, 0, 0, 1), transform .6s var(--ease-emph);
  }

  .media-img img.loaded {
    opacity: 1;
  }

  .media-img:hover img {
    transform: scale(1.06)
  }

  /* Stagger reveal */
  .media-img.rv {
    opacity: 0;
    transform: translateY(14px)
  }

  .media-img.rv.in {
    opacity: 1;
    transform: translateY(0)
  }

  /* Lightbox image support */
  #lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    border: 1px solid var(--outline);
    box-shadow: 0 50px 120px -40px #000;
    object-fit: contain;
  }


  /* ==========================================================
     SAVES VAULT TABLE
     ========================================================== */
  .stable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 20px
  }

  .stable th {
    text-align: left;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    padding: 0 16px 6px;
    font-weight: 500
  }

  .stable td {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    font-size: 13px;
    vertical-align: middle;
    border: none;
    transition: all var(--dur-micro) ease-out
  }

  .stable tr:hover td {
    background: rgba(255, 255, 255, 0.1)
  }

  .stable tr td:first-child {
    border-radius: 12px 0 0 12px
  }

  .stable tr td:last-child {
    border-radius: 0 12px 12px 0;
    text-align: right
  }

  .stable tbody tr {
    transition: transform .3s var(--ease-emph)
  }

  /* Same fix as .gcard.rv above — .stable tbody tr declares its own
     `transition` for the hover lift, which would otherwise collide with and
     silence .rv's opacity/transform entrance transition at equal-or-higher
     specificity. Merge for the entrance; drop back to the snappier
     transform-only hover transition once a row has finished revealing. */
  .stable tbody tr.rv {
    transition: opacity .6s var(--ease-emph), transform .6s var(--ease-emph)
  }

  .stable tbody tr.rv.in {
    transition: transform .3s var(--ease-emph)
  }

  .thumb-mini {
    width: 34px;
    height: 45px;
    border-radius: var(--shape-sm);
    overflow: hidden;
    flex: none;
    border: 1px solid var(--outline-variant)
  }

  .thumb-mini canvas {
    width: 100%;
    height: 100%;
    display: block
  }

  /* dropzone */
  .dz {
    margin-top: 26px;
    border-radius: var(--shape-lg);
    padding: 44px 24px;
    text-align: center;
    cursor: pointer;
    background: var(--surface-container);
    position: relative;
    transition: background .3s var(--ease-out)
  }

  .dz::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--shape-lg);
    padding: 2px;
    background: repeating-linear-gradient(90deg, var(--on-surface-variant) 0 14px, transparent 14px 28px);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .3;
    animation: march 1.4s linear infinite;
    background-size: 28px 100%
  }

  @keyframes march {
    to {
      background-position: 28px 0
    }
  }

  .dz.hot {
    background: rgba(255, 255, 255, .08)
  }

  .dz.hot::before {
    opacity: .6
  }

  .ring {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    position: relative
  }

  .ring svg {
    transform: rotate(-90deg)
  }

  .ring circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round
  }

  .ring .bgc {
    stroke: var(--surface-container-high)
  }

  .ring .fgc {
    stroke: var(--on-surface);
    transition: stroke-dashoffset .3s linear
  }

  .ring .pct {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 500
  }


  /* ==========================================================
     STATS
     ========================================================== */
  .chart-card {
    padding: 26px;
    border-radius: var(--shape-lg);
    background: var(--surface-container);
    border: 1px solid var(--outline-variant)
  }

  .bars {
    display: flex;
    align-items: flex-end;
    gap: clamp(6px, 1.4vw, 18px);
    height: 230px;
    margin-top: 26px
  }

  .bars .b {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    height: 100%
  }

  .bars .b i {
    display: block;
    width: 100%;
    border-radius: 6px 6px 2px 2px;
    height: 0;
    background: linear-gradient(180deg, var(--on-surface), rgba(255, 255, 255, .15));
    transition: height 1.2s var(--ease-emph);
    position: relative
  }

  html[data-theme="light"] .bars .b i {
    background: linear-gradient(180deg, var(--on-surface), rgba(0, 0, 0, .15))
  }

  .bars .b i::after {
    content: attr(data-v);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--on-surface-variant);
    white-space: nowrap
  }

  .bars .b b {
    font-size: 11px;
    color: var(--on-surface-variant);
    font-weight: 400
  }

  .donut-row {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px
  }

  .donut {
    flex: none
  }

  .donut path {
    transition: transform .3s var(--ease-emph), opacity .3s;
    transform-origin: center;
    cursor: pointer
  }

  .legend {
    display: grid;
    gap: 9px;
    font-size: 13px;
    flex: 1;
    min-width: 180px
  }

  .legend div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    transition: opacity .3s
  }

  .legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex: none
  }

  .legend .n {
    margin-left: auto;
    color: var(--on-surface-variant);
    font-variant-numeric: tabular-nums
  }

  .plat-row {
    display: grid;
    gap: 12px;
    margin-top: 22px
  }

  .plat {
    display: flex;
    align-items: center;
    gap: 14px
  }

  .plat .nm {
    width: 70px;
    font-size: 13px;
    color: var(--on-surface-variant)
  }

  .plat .tr {
    flex: 1;
    height: 24px;
    border-radius: 6px;
    background: var(--surface-container-high);
    overflow: hidden
  }

  .plat .tr i {
    display: block;
    height: 100%;
    width: 0;
    transition: width 1.2s var(--ease-emph);
    border-radius: 6px
  }

  .plat .vv {
    width: 56px;
    text-align: right;
    font-size: 13px;
    font-variant-numeric: tabular-nums
  }

  .tl {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 44px 0 24px;
    margin-top: 14px;
    position: relative
  }

  .tl::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    height: 1px;
    background: var(--outline)
  }

  .tl .node {
    flex: 0 0 220px;
    position: relative;
    padding-right: 22px
  }

  .tl .node .dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--on-surface);
    position: relative;
    top: -5px
  }

  .tl .node .yr {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 26px
  }

  .tl .node .ti {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    margin-top: 18px
  }

  .tl .node .tn {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 6px;
    line-height: 1.5
  }

  #trophy-canvas {
    width: 100%;
    height: 320px;
    display: block;
    border-radius: var(--shape-md);
    cursor: grab
  }


  /* ==========================================================
     ABOUT
     ========================================================== */
  .vtl {
    position: relative;
    padding-left: 34px;
    margin-top: 26px
  }

  .vtl::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(var(--on-surface-variant), transparent)
  }

  .vtl .it {
    position: relative;
    padding-bottom: 30px
  }

  .vtl .it::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--surface);
    border: 2px solid var(--on-surface)
  }

  .vtl .yr {
    font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
    font-size: 12px;
    color: var(--on-surface-variant);
    letter-spacing: .08em
  }

  .vtl .lb {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin-top: 5px
  }

  .vtl .nt {
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.7
  }

  .spec {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--outline-variant);
    font-size: 14px
  }

  .spec:last-child {
    border: none
  }

  .spec b {
    color: var(--on-surface-variant);
    font-weight: 400
  }


  /* ==========================================================
     PAGE WIPE / TOAST / FOOTER
     ========================================================== */
  #wipe {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    transform: translateY(100%);
    background: var(--surface);
    display: grid;
    place-items: center
  }

  #wipe .logo {
    opacity: 0;
    display: grid;
    place-items: center;
    color: var(--on-surface);
  }

  #toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 200%);
    z-index: 130;
    padding: 14px 24px;
    border-radius: var(--shape-rounded);
    background: var(--surface-container);
    border: 1px solid var(--outline);
    font-size: 13px;
    font-weight: 500;
    transition: transform .5s var(--ease-emph), opacity .3s ease, visibility .3s ease;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  #toast.on {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  footer {
    padding: 52px 0 34px;
    border-top: 1px solid var(--outline);
    margin-top: 60px;
    color: var(--on-surface-variant);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
  }


  /* ==========================================================
     §5–6 MOTION & ACCESSIBILITY
     ========================================================== */
  @media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      scroll-behavior: auto !important;
    }

    .gcard .shine,
    .gcard {
      transform: none !important
    }

    #fx-grain {
      display: none
    }

    .rv {
      opacity: 1;
      transform: none
    }
  }

  body.rm .fly {
    height: auto
  }

  body.rm #hero-canvas,
  body.rm #fx-grain {
    display: none
  }

  body.rm .rv {
    opacity: 1;
    transform: none
  }

  @media (prefers-contrast:more) {
    :root {
      --outline: rgba(255, 255, 255, .32);
      --outline-variant: rgba(255, 255, 255, .22);
      --on-surface-variant: rgba(255, 255, 255, .82);
      --on-surface-faint: rgba(255, 255, 255, .62);
      --state-hover: rgba(255, 255, 255, .14);
      --state-press: rgba(255, 255, 255, .22);
    }
  }

  /* ==========================================================
     §7 MOBILE — Tablet (≤900px)
     ========================================================== */
  @media (max-width:900px) {
    .hero h1 {
      font-size: clamp(28px, 5.5vw, 52px)
    }

    .stats-row {
      grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .bars {
      height: 180px
    }

    .donut-row {
      flex-direction: column;
      align-items: flex-start
    }

    .masonry {
      columns: 2 160px
    }

    #shelf-wrap {
      height: min(50vh, 400px)
    }

    .g-hero-in {
      grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
      gap: 24px
    }

    .g-title {
      font-size: clamp(28px, 5vw, 48px)
    }

    .media-carousel-wrap .nav-btn {
      flex: 0 0 36px;
      height: 36px
    }

    .media-carousel-wrap .nav-btn svg {
      width: 18px;
      height: 18px
    }
  }

  /* ==========================================================
     §7 MOBILE — Phone (≤760px)
     ========================================================== */
  @media (max-width:760px) {

    /* ---- NAV TOP HEADER & BOTTOM TAB BAR ---- */
    header.nav {
      padding: 12px 16px;
      gap: 4px;
      justify-content: space-between;
    }

    .brand span {
      display: inline-block
    }

    .icon-btn {
      width: 36px;
      height: 36px
    }

    /* ---- MOBILE FLOATING BOTTOM TAB MENU BAR ---- */
    nav.nav-menu {
      position: fixed !important;
      top: auto !important;
      right: auto !important;
      bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      z-index: 100 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-around !important;
      width: calc(100% - 32px) !important;
      max-width: 380px !important;
      height: 58px !important;
      padding: 0 8px !important;
      background: rgba(0, 0, 0, 0.42) !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-radius: 999px !important;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
      backdrop-filter: blur(10px) !important;
      -webkit-backdrop-filter: blur(10px) !important;
      transition: background 0.3s ease, border-color 0.3s ease !important;
    }

    html[data-theme="light"] nav.nav-menu {
      background: rgba(0, 0, 0, 0.55) !important;
      border-color: rgba(255, 255, 255, 0.18) !important;
    }

    /* Stable Animated White Sliding Dot Indicator */
    .nav-indicator {
      display: block !important;
      position: absolute !important;
      bottom: 7px !important;
      top: auto !important;
      left: 0 !important;
      width: 5px !important;
      height: 5px !important;
      border-radius: 50% !important;
      background: #ffffff !important;
      box-shadow: none !important;
      will-change: transform;
      transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
      pointer-events: none !important;
      z-index: 3 !important;
      opacity: 0;
    }

    .navlink {
      flex: 1;
      height: 46px;
      padding: 0 !important;
      border-radius: 999px !important;
      border: none !important;
      background: transparent !important;
      color: rgba(255, 255, 255, 0.42) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      position: relative;
      z-index: 2;
      transition: color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      -webkit-tap-highlight-color: transparent;
    }

    .navlink:hover {
      color: rgba(255, 255, 255, 0.85) !important;
      background: transparent !important;
    }

    .navlink:active {
      transform: scale(0.92) !important;
    }

    .navlink-text {
      display: none !important
    }

    .navlink-icon {
      display: flex !important;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navlink.active {
      color: #ffffff !important;
      background: transparent !important;
      font-weight: 500;
    }

    .navlink.active .navlink-icon {
      transform: translateY(-2px) scale(1.08) !important;
      filter: none !important;
    }

    /* ---- LAYOUT & BOTTOM SPACING ---- */
    body,
    #app {
      padding-bottom: 0 !important;
    }

    .wrap {
      padding-inline: 14px
    }

    .section {
      padding-block: clamp(36px, 6vh, 60px)
    }

    .section:last-child,
    .section:last-of-type,
    main#app>section:last-child {
      padding-bottom: max(82px, calc(70px + env(safe-area-inset-bottom, 16px))) !important;
    }

    /* ---- HERO ---- */
    .hero h1 {
      font-size: clamp(24px, 8vw, 38px)
    }

    .hero-sub {
      font-size: 14px
    }

    .hero-cta {
      gap: 8px
    }

    .hero-cta .btn {
      padding: 10px 18px;
      font-size: 12.5px
    }

    .stats-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 36px
    }

    .stat {
      padding: 16px 14px
    }

    .stat .v {
      font-size: clamp(22px, 5vw, 28px)
    }

    .stat .k {
      font-size: 9px
    }

    .scroll-ind {
      display: none
    }

    /* ---- FLYTHROUGH ---- */
    .fly-copy h2 {
      font-size: clamp(20px, 5.5vw, 32px)
    }

    .fly-section .fly-title {
      font-size: clamp(22px, 6.5vw, 34px)
    }

    .fly-section .fly-desc {
      font-size: 13.5px;
      max-width: 38ch;
      margin-inline: auto
    }

    .fly-section .fly-eyebrow {
      font-size: 9px;
      letter-spacing: .22em
    }

    .fly-visual {
      height: clamp(220px, 32vh, 340px);
      margin-bottom: 22px
    }

    .hero__visual {
      height: clamp(260px, 40vh, 400px)
    }

    /* Tighter card fans on phones to prevent edge clipping */
    .hero__visual .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(-7deg) translateX(-58px) translateY(6px);
    }

    .hero__visual .mobile-cards canvas:nth-child(3) {
      transform: translate(-50%, -50%) rotate(-2deg) translateX(68px) translateY(12px) scale(.92);
    }

    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(-6deg) translateX(-42px) translateY(4px);
    }

    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(5deg) translateX(42px) translateY(-2px);
    }

    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(6deg) translateX(42px) translateY(4px);
    }

    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(-5deg) translateX(-42px) translateY(-2px);
    }

    /* ---- CARD GRID ---- */
    .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 20px;
    }

    .gcard .meta {
      padding: 10px 10px 8px
    }

    .gcard .t {
      font-size: 13px
    }

    .gcard .s {
      font-size: 10px;
      margin-top: 4px
    }

    .gcard .rt {
      font-size: 10px;
      padding: 3px 7px;
      top: 6px;
      right: 6px
    }

    /* ---- 3D SHELF ---- */
    #shelf-wrap {
      height: min(42vh, 320px);
      margin-top: 16px
    }

    .shelf-hud .st {
      font-size: 17px
    }

    .shelf-hud .ss {
      font-size: 11px
    }

    .shelf-hint {
      font-size: 9px
    }

    /* ---- GAME DETAIL ---- */
    .g-hero {
      min-height: auto;
      padding-top: 80px;
      padding-bottom: 28px
    }

    .g-hero-in {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .cover3d {
      max-width: 180px;
      margin: 0 auto
    }

    .g-title {
      font-size: clamp(24px, 7vw, 36px)
    }

    .g-tag {
      font-size: 14px
    }

    .g-meta {
      justify-content: center
    }

    .g-nav {
      flex-direction: column;
      gap: 8px;
      align-items: stretch;
    }

    .g-nav .btn {
      justify-content: center;
      width: 100%
    }

    .cols {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px
    }

    .kv {
      padding: 14px 14px
    }

    .kv .v {
      font-size: 20px
    }

    .prose {
      font-size: 14.5px;
      line-height: 1.75
    }

    .prose blockquote {
      padding: 12px 16px;
      font-size: 15px
    }

    .mem-list li {
      padding: 12px 14px;
      font-size: 13px
    }

    /* ---- MEDIA GALLERY (Video + Images) ---- */
    .media-video {
      border-radius: 10px
    }

    .media-video video {
      border-radius: 10px
    }

    .media-video .shaka-controls-container {
      border-radius: 10px
    }

    .media-video .shaka-bottom-controls {
      padding: 0 10px 10px 10px !important
    }

    .media-video .shaka-small-play-button,
    .media-video .shaka-fullscreen-button,
    .media-video .shaka-time-and-duration {
      height: 34px !important;
    }

    .media-video .shaka-small-play-button,
    .media-video .shaka-fullscreen-button {
      width: 34px !important;
      min-width: 34px !important;
    }

    .media-video .shaka-current-time {
      font-size: 11px !important;
      padding: 0 10px !important
    }

    .media-video .shaka-play-button {
      width: 56px !important;
      height: 56px !important;
    }

    .custom-vol-pill {
      height: 34px;
      width: 34px
    }

    .custom-vol-pill:hover {
      width: 90px
    }

    .media-video .shaka-mute-button {
      width: 34px !important;
      height: 34px !important;
      min-width: 34px !important;
    }

    .media-carousel-wrap {
      gap: 8px;
      margin-top: 14px
    }

    .media-carousel-wrap .nav-btn {
      flex: 0 0 32px;
      height: 32px
    }

    .media-carousel-wrap .nav-btn svg {
      width: 16px;
      height: 16px
    }

    .media-img {
      width: clamp(180px, 60vw, 280px);
      border-radius: 10px
    }

    /* ---- SAVE CARDS ---- */
    .save-head {
      padding: 14px 14px;
      gap: 12px
    }

    .save-ic {
      width: 34px;
      height: 34px;
      border-radius: 8px
    }

    .save-t {
      font-size: 14px
    }

    .save-actions {
      margin-left: 0;
      width: 100%;
      justify-content: flex-end
    }

    .save-note {
      padding: 0 14px 14px;
      font-size: 12px
    }

    .disc summary {
      padding: 10px 14px;
      font-size: 12px
    }

    .disc .body {
      padding: 0 14px 14px;
      font-size: 12px
    }

    /* ---- SAVES VAULT TABLE ----
       The desktop table (Game / Save / Platform / Size / Archived / ⬇)
       previously just had `display:block` forced on every <td>, which
       stacked all six cells as separate unlabeled full-width rows — no
       grouping, no context for a lone icon or a bare number. Rebuilt as an
       actual card per row: game + save info stacked at top, platform/size/
       date/download pulled into one compact line via named grid areas. */
    .stable thead {
      display: none
    }

    .stable tbody tr {
      display: grid;
      grid-template-columns: auto auto 1fr auto;
      grid-template-areas:
        "game game game game"
        "save save save save"
        "plat size date dl";
      column-gap: 10px;
      row-gap: 8px;
      background: rgba(255, 255, 255, .05);
      border-radius: 14px;
      padding: 14px 16px 13px;
      margin-bottom: 10px;
    }

    .stable td {
      display: block;
      border: none !important;
      background: transparent !important;
      border-radius: 0 !important;
      padding: 0;
      font-size: 12px;
    }

    .stable td:nth-child(1) {
      grid-area: game
    }

    .stable td:nth-child(2) {
      grid-area: save
    }

    .stable td:nth-child(3) {
      grid-area: plat;
      align-self: center
    }

    .stable td:nth-child(4) {
      grid-area: size;
      align-self: center;
      color: var(--text-muted)
    }

    .stable td:nth-child(5) {
      grid-area: date;
      align-self: center;
      justify-self: end;
      text-align: right
    }

    .stable td:nth-child(6) {
      grid-area: dl;
      align-self: center
    }

    .thumb-mini {
      width: 40px;
      height: 53px
    }

    .plat-icon {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: auto;
      height: auto
    }

    .plat-icon::after {
      content: attr(title);
      font-size: 11px;
      color: var(--text-muted)
    }

    /* ---- TOOLBAR / FILTERS ---- */
    .toolbar {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px
    }

    .search {
      flex: 1 1 100%;
      max-width: 100%;
      min-width: 0
    }

    select.sel {
      width: 100%
    }

    .filters {
      gap: 6px
    }

    .frow .lbl {
      min-width: auto;
      font-size: 8px
    }

    .chip {
      padding: 5px 10px;
      font-size: 10.5px
    }

    /* ---- STATS ---- */
    .chart-card {
      padding: 16px
    }

    .bars {
      height: 160px;
      gap: 4px;
      margin-top: 18px
    }

    .bars .b i::after {
      font-size: 9px;
      top: -18px
    }

    .bars .b b {
      font-size: 9px
    }

    .donut-row {
      flex-direction: column;
      align-items: center;
      gap: 18px
    }

    .legend {
      font-size: 12px
    }

    .plat .nm {
      width: 50px;
      font-size: 11px
    }

    .plat .vv {
      font-size: 11px
    }

    .tl {
      padding: 30px 0 18px
    }

    .tl .node {
      flex: 0 0 170px;
      padding-right: 14px
    }

    .tl .node .ti {
      font-size: 13px
    }

    .tl .node .tn {
      font-size: 11px
    }

    /* ---- ABOUT ---- */
    .vtl {
      padding-left: 28px
    }

    .vtl .lb {
      font-size: 16px
    }

    .vtl .nt {
      font-size: 13px
    }

    .spec {
      font-size: 13px;
      gap: 10px;
      padding: 12px 0
    }

    /* ---- MASONRY ---- */
    .masonry {
      columns: 2 140px;
      column-gap: 10px
    }

    /* ---- LIGHTBOX ---- */
    #lightbox {
      padding: 3vh 3vw
    }

    #lightbox img {
      max-height: 75vh
    }

    /* ---- DROPDOWN ---- */
    .dropdown-panel {
      min-width: 180px;
    }

    /* ---- FOOTER ---- */
    footer {
      padding: 32px 0 24px;
      margin-top: 36px;
      font-size: 12px;
      flex-direction: column;
      gap: 10px;
      text-align: center
    }

    /* ---- TOAST ---- */
    #toast {
      left: 14px;
      right: 14px;
      bottom: max(84px, calc(76px + env(safe-area-inset-bottom, 16px)));
      transform: translateY(200%);
      font-size: 12px;
      padding: 12px 18px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    #toast.on {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
  }

  /* ==========================================================
     §7 MOBILE — Small phones (≤400px)
     ========================================================== */
  @media (max-width:400px) {
    .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px
    }

    .gcard .meta {
      padding: 8px 8px 6px
    }

    .gcard .t {
      font-size: 12px
    }

    .hero h1 {
      font-size: 22px
    }

    .cols {
      grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .stats-row {
      grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .g-title {
      font-size: 22px
    }

    .cover3d {
      max-width: 150px
    }

    .media-img {
      width: 160px
    }

    .navlink {
      padding: 6px 8px;
      font-size: 10.5px
    }

    /* Compact card fans for small phones */
    .mobile-cards canvas {
      width: clamp(110px, 30vw, 130px) !important
    }

    .hero__visual {
      height: clamp(220px, 36vh, 320px)
    }

    .fly-visual {
      height: clamp(200px, 30vh, 280px)
    }

    .hero__visual .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(-7deg) translateX(-48px) translateY(6px) !important;
    }

    .hero__visual .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(3deg) translateX(8px) translateY(-4px) !important;
    }

    .hero__visual .mobile-cards canvas:nth-child(3) {
      transform: translate(-50%, -50%) rotate(-2deg) translateX(56px) translateY(10px) scale(.9) !important;
    }

    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(-6deg) translateX(-34px) translateY(4px) !important;
    }

    .fly-section:nth-child(odd) .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(5deg) translateX(34px) translateY(-2px) !important;
    }

    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(1) {
      transform: translate(-50%, -50%) rotate(6deg) translateX(34px) translateY(4px) !important;
    }

    .fly-section:nth-child(even) .mobile-cards canvas:nth-child(2) {
      transform: translate(-50%, -50%) rotate(-5deg) translateX(-34px) translateY(-2px) !important;
    }

    .fly-section .fly-title {
      font-size: clamp(20px, 6vw, 28px)
    }

    .fly-section .fly-desc {
      font-size: 12.5px
    }
  }

  .bot-eye {
    transform-origin: 50% 14px;
    animation: bot-blink 4s infinite;
  }

  @keyframes bot-blink {

    0%,
    94%,
    100% {
      transform: scaleY(1);
    }

    97% {
      transform: scaleY(0.1);
    }
  }

  .g-hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mask-image: 
      linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
      linear-gradient(to bottom, black 25%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: 
      linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
      linear-gradient(to bottom, black 25%, transparent 100%);
    -webkit-mask-composite: source-in;
  }

  .g-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1);
    display: block;
  }

  .g-banner-img.loaded {
    opacity: 0.55;
  }

  /* Custom Stream Buffering / Seeking Spinner */
  .shaka-spinner-container,
  .shaka-spinner {
    display: none !important;
  }

  .online-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: transparent !important;
    backdrop-filter: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .online-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .spinner {
    width: 64px;
    height: 64px;
    animation: rotate 2.33s linear infinite;
  }

  .path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3.5;
    stroke-linecap: round;
    animation: dash 1.87s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }

  @keyframes dash {
    0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
    }

    50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35px;
    }

    100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124px;
    }
  }