  :root {
    --black: #0a0a0f;
    --deep: #0d0d1a;
    --cyan: #00f5ff;
    --yellow: #ffe600;
    --red: #ff2442;
    --white: #f0f0f0;
    --purple: #7b2fff;
    --grid: rgba(0, 245, 255, 0.025);
  }

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

  html { scroll-behavior: smooth; scroll-padding-top: 80px; }

  body {
    background: var(--black);
    color: var(--white);
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
  }

  /* CUSTOM CURSOR */
  .cursor {
    display: none;
    width: 16px; height: 16px;
    background: var(--yellow);
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 60%, 60% 100%, 0 100%);
    transition: transform 0.1s;
  }

  /* SCANLINES OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.045) 2px,
      rgba(0,0,0,0.045) 4px
    );
    pointer-events: none;
    z-index: 1000;
  }

  /* GRID BACKGROUND */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* COMPACT MASTHEAD */
  .site-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 0 22px;
    padding: 22px 20px 18px;
    border-bottom: 2px solid rgba(240, 240, 240, 0.7);
  }

  .site-brand { flex-shrink: 0; color: var(--yellow); text-decoration: none; }
  .nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(30px, 4.4vw, 60px);
    line-height: 1.1;
    letter-spacing: 5px;
    white-space: nowrap;
    text-shadow: 3px 4px 0 var(--red);
  }
  .brand-title {
    margin-top: 8px;
    font-size: clamp(12px, 1.7vw, 22px);
    font-weight: 700;
    letter-spacing: 4px;
    white-space: nowrap;
  }
  .nav-links { display: flex; gap: 48px; list-style: none; }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
  }
  .nav-links a:hover { color: var(--white); }

  /* SCORE BAR */
  .score-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 500;
    height: 36px;
    background: var(--red);
    border-top: 3px solid var(--yellow);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 40px;
    overflow: hidden;
  }

  .score-bar-inner {
    display: flex;
    gap: 60px;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
  }

  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .score-item {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--yellow);
  }

  .score-credit {
    border: 2px solid var(--yellow);
    padding: 2px 8px;
    background: rgba(10, 10, 15, 0.35);
    text-shadow: 0 0 8px var(--yellow);
  }

  .score-item-button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    cursor: pointer;
  }

  .score-item-button:hover,
  .score-item-button:focus-visible {
    color: var(--white);
    text-shadow: 0 0 10px var(--white);
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  /* SECTION HEADER */
  .section-header {
    position: relative;
    z-index: 1;
    padding: 24px 60px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .section-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--red);
    background: var(--red);
    color: var(--black);
    padding: 4px 12px;
    text-transform: uppercase;
  }

  .section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--white);
    text-transform: uppercase;
  }

  .section-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
  }

  /* FILM MOSAIC: one feature, two paired rows, four compact cards. */
  .work-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 22px;
    padding: 12px 0;
    color: var(--yellow);
  }
  .work-header h2, .work-header-label {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 2px;
  }
  .work-header span[aria-hidden] { color: var(--red); }
  .work-header span[aria-hidden] { margin-left: 8px; font-size: 16px; }
  .work-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 22px 48px;
  }
  .work-item {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    cursor: pointer;
    background: #000;
    border: 1px solid rgba(240, 240, 240, 0.75);
  }
  .work-item:nth-child(n+2):nth-child(-n+5) {
    grid-column: span 2;
    aspect-ratio: 3 / 1;
  }
  .work-item.featured { grid-column: 1 / -1; aspect-ratio: 2.4 / 1; }
  .work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Keep the talent's heads in view while the featured image fills its frame. */
  .work-item.featured img { object-fit: cover; object-position: center top; }
  .work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.12) 50%, transparent 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
  }
  .work-number {
    position: absolute;
    top: 16px;
    left: 18px;
    color: var(--red);
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 6px #000;
  }
  .work-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(16px, 1.7vw, 24px);
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px #000;
    line-height: 1.3;
  }
  .work-subtitle {
    display: block;
    margin-top: 2px;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 400;
    letter-spacing: 1.5px;
  }
  .featured .work-overlay { padding: 24px; }
  .featured .work-name { font-size: clamp(24px, 2.5vw, 36px); letter-spacing: 3px; }
  .featured .work-number { left: 24px; }
  .work-select {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border: 1px solid var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0,0,0,0.4);
  }
  .work-select svg { width: 14px; height: 14px; fill: var(--yellow); }
  .work-item:hover .work-select { opacity: 1; }
  .work-item:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

  .work-directory {
    position: relative;
    z-index: 1;
    margin: 0 60px 28px;
    padding: 18px;
    border: 2px solid rgba(0, 245, 255, 0.35);
    background: rgba(10, 10, 15, 0.72);
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.08);
  }

  .work-directory-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .work-directory-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 230, 0, 0.45);
    background: rgba(255, 230, 0, 0.06);
    color: var(--yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.18s, border-color 0.18s, background 0.18s;
  }

  .work-directory-links a:hover,
  .work-directory-links a:focus-visible {
    transform: translateY(-2px);
    border-color: var(--cyan);
    background: rgba(0, 245, 255, 0.12);
    outline: none;
  }

  /* VIDEO MODAL */
  .video-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .video-modal.is-open {
    display: flex;
  }

  .video-modal.is-open,
  .video-modal.is-open * {
    cursor: auto !important;
  }

  .video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
  }

  .video-modal-content {
    position: relative;
    width: min(96vw, 980px);
    background: var(--deep);
    border: 3px solid var(--cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.35);
    padding: 56px 16px 20px;
    z-index: 1;
    overflow: visible;
  }

  .video-modal-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border: 2px solid rgba(0, 245, 255, 0.45);
  }

  .video-modal-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .video-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border: 2px solid var(--yellow);
    background: rgba(10, 10, 15, 0.95);
    color: var(--yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    pointer-events: auto;
  }

  .video-modal-close:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }

  .video-modal-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    align-items: center;
  }

  .video-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--yellow);
    text-transform: uppercase;
  }

  /* PIXEL DIVIDER */
  .pixel-divider {
    position: relative;
    z-index: 1;
    height: 6px;
    background: repeating-linear-gradient(
      90deg,
      var(--cyan) 0px, var(--cyan) 8px,
      var(--red) 8px, var(--red) 16px,
      var(--yellow) 16px, var(--yellow) 24px,
      var(--black) 24px, var(--black) 32px
    );
    margin: 0 60px 60px;
    opacity: 0.6;
  }

  /* ABOUT SECTION */
  .about-section {
    position: relative;
    z-index: 1;
    padding: 0 60px 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 60px;
    align-items: start;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(240,240,240,0.88);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }

  .about-card {
    border: 3px solid var(--yellow);
    padding: 40px;
    background: rgba(255,230,0,0.03);
    position: relative;
  }

  .about-card::before {
    content: 'PLR 1';
    position: absolute;
    top: -13px; left: 20px;
    background: var(--yellow);
    color: var(--black);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 2px 10px;
  }

  .about-card-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--yellow);
    text-shadow: 3px 3px 0 var(--red);
    margin-bottom: 8px;
  }

  .about-card-role {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--cyan);
    margin-bottom: 32px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--cyan);
  }

  .attr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,245,255,0.15);
    padding: 10px 0;
  }

  .attr-name {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(240,240,240,0.5);
    text-transform: uppercase;
  }

  .attr-bar {
    display: flex;
    gap: 3px;
  }

  .attr-pip {
    width: 14px;
    height: 14px;
    background: var(--purple);
    transition: background 0.2s;
  }

  .attr-pip.lit { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
  .attr-pip.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }

  /* FOOTER */
  footer {
    position: relative;
    z-index: 1;
    border-top: 3px solid var(--cyan);
    background: var(--deep);
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 40px rgba(0,245,255,0.1);
    margin-bottom: 36px;
  }

  .footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--yellow);
    text-shadow: 2px 2px 0 var(--red);
  }

  .footer-copy {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(240,240,240,0.7);
  }

  .footer-insert {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--cyan);
    animation: blink 1.5s step-end infinite;
  }

  .footer-insert-button {
    border: 2px solid var(--cyan);
    background: rgba(0, 245, 255, 0.06);
    padding: 8px 12px;
    min-width: 168px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    animation: none;
  }

  .footer-insert-button:hover,
  .footer-insert-button:focus-visible {
    color: var(--yellow);
    border-color: var(--yellow);
    text-shadow: 0 0 10px var(--yellow);
  }

  .coin-unlock {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 2800;
    border: 2px solid var(--yellow);
    background: rgba(10, 10, 15, 0.94);
    color: var(--yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    padding: 10px 14px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .coin-unlock.is-visible {
    animation: unlock-toast 1.8s ease forwards;
  }

  @keyframes unlock-toast {
    0% { opacity: 0; transform: translateY(-8px); }
    12% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-6px); }
  }

  .crt-flash {
    position: fixed;
    inset: 0;
    z-index: 3500;
    opacity: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.04)),
      repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.2) 0px,
        rgba(255, 255, 255, 0.2) 1px,
        transparent 1px,
        transparent 3px
      );
  }

  .crt-flash.is-active {
    animation: crt-flash 320ms ease-out;
  }

  @keyframes crt-flash {
    0% { opacity: 0; }
    18% { opacity: 1; }
    100% { opacity: 0; }
  }

  .start-overlay {
    position: fixed;
    inset: 0;
    z-index: 2900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .start-overlay.is-open {
    display: flex;
  }

  .start-overlay.is-open,
  .start-overlay.is-open * {
    cursor: auto !important;
  }

  .start-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.92);
  }

  .start-overlay-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 560px);
    border: 3px solid var(--yellow);
    background:
      linear-gradient(180deg, rgba(255, 36, 66, 0.12), rgba(0, 245, 255, 0.08)),
      var(--deep);
    box-shadow: 0 0 28px rgba(255, 230, 0, 0.35);
    padding: 24px;
    text-align: center;
  }

  .start-overlay-credit {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 10px;
  }

  .start-overlay-setting {
    margin: 0 auto 18px;
    width: min(100%, 420px);
    padding: 10px 12px;
    border: 2px solid rgba(0, 245, 255, 0.36);
    background: rgba(4, 8, 20, 0.72);
    text-align: left;
  }

  .start-overlay-setting-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .start-overlay-setting-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(235, 244, 255, 0.84);
    text-transform: uppercase;
  }

  .start-overlay-setting-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--yellow);
    text-transform: uppercase;
  }

  .start-overlay-net-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 2px;
  }

  .start-overlay-net-option {
    border: 1px solid rgba(0, 245, 255, 0.44);
    background: rgba(0, 245, 255, 0.08);
    color: rgba(216, 242, 250, 0.84);
    padding: 8px 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .start-overlay-net-option.is-selected {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(255, 230, 0, 0.14);
    box-shadow: 0 0 8px rgba(255, 230, 0, 0.34);
  }

  .start-overlay-net-option:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
  }

  .start-overlay-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .start-overlay-button {
    border: 2px solid var(--cyan);
    background: rgba(0, 245, 255, 0.08);
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 14px;
    min-width: 170px;
    cursor: pointer;
  }

  .start-overlay-button:hover,
  .start-overlay-button:focus-visible {
    color: var(--yellow);
    border-color: var(--yellow);
    box-shadow: 0 0 12px rgba(255, 230, 0, 0.45);
  }

  .start-overlay-tutorial {
    margin-top: 12px;
    border: 2px solid rgba(0, 245, 255, 0.36);
    background: rgba(6, 10, 24, 0.88);
    padding: 12px;
    text-align: left;
    display: none;
  }

  .start-overlay-tutorial.is-visible {
    display: block;
  }

  .start-overlay-tutorial-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 8px;
    text-transform: uppercase;
  }

  .start-overlay-tutorial-copy {
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.5;
    color: rgba(228, 238, 252, 0.9);
  }

  .start-overlay-tutorial-copy + .start-overlay-tutorial-copy {
    margin-top: 7px;
  }

  .start-overlay-tutorial-close {
    margin-top: 10px;
    min-width: 0;
    padding: 8px 10px;
    font-size: 10px;
  }

  .game-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .game-modal.is-open {
    display: flex;
  }

  .game-modal.is-open,
  .game-modal.is-open * {
    cursor: auto !important;
  }

  .game-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.94);
  }

  .game-modal-content {
    position: relative;
    z-index: 1;
    width: min(94vw, 760px);
    border: 3px solid var(--cyan);
    background:
      radial-gradient(circle at top, rgba(0, 245, 255, 0.1), transparent 55%),
      var(--deep);
    box-shadow: 0 0 28px rgba(0, 245, 255, 0.35);
    padding: 20px 20px 18px;
  }

  .game-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--yellow);
    background: rgba(10, 10, 15, 0.95);
    color: var(--yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    line-height: 1;
  }

  .game-modal-close:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }

  .game-hud {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .game-hud-item {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--yellow);
    border: 2px solid rgba(255, 230, 0, 0.55);
    padding: 4px 8px;
    background: rgba(255, 230, 0, 0.06);
    min-width: 138px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  #gameModalTitle {
    flex: 0 0 188px;
  }

  #gameScore {
    flex: 0 0 194px;
  }

  #gameRound {
    flex: 0 0 116px;
  }

  #gameStatus {
    flex: 1 1 224px;
    min-width: 178px;
    white-space: normal;
    line-height: 1.2;
    letter-spacing: 1px;
  }

  .game-canvas {
    width: 100%;
    height: auto;
    border: 2px solid rgba(0, 245, 255, 0.6);
    background: #061023;
    display: block;
    image-rendering: pixelated;
  }

  .game-help {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(240, 240, 240, 0.75);
    text-transform: uppercase;
  }

  .game-mobile-controls {
    margin-top: 10px;
    display: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
  }

  .game-mobile-stick-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
  }

  .game-mobile-stick {
    --stick-x: 0px;
    --stick-y: 0px;
    position: relative;
    width: min(36vw, 148px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(0, 245, 255, 0.8);
    background:
      radial-gradient(circle at center, rgba(0, 245, 255, 0.08) 0, rgba(0, 245, 255, 0.08) 34%, transparent 35%, transparent 100%),
      linear-gradient(180deg, rgba(6, 16, 35, 0.95), rgba(5, 15, 28, 0.82));
    box-shadow:
      inset 0 0 0 1px rgba(0, 245, 255, 0.14),
      0 0 24px rgba(0, 245, 255, 0.18);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }

  .game-mobile-stick::before,
  .game-mobile-stick::after {
    content: '';
    position: absolute;
    inset: 50%;
    background: rgba(0, 245, 255, 0.2);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .game-mobile-stick::before {
    width: calc(100% - 34px);
    height: 1px;
  }

  .game-mobile-stick::after {
    width: 1px;
    height: calc(100% - 34px);
  }

  .game-mobile-stick.is-active {
    border-color: var(--yellow);
    box-shadow:
      inset 0 0 0 1px rgba(255, 230, 0, 0.18),
      0 0 28px rgba(255, 230, 0, 0.22);
  }

  .game-mobile-stick-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(0, 245, 255, 0.92);
    background:
      radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.34), rgba(0, 245, 255, 0.26) 32%, rgba(0, 245, 255, 0.08) 70%),
      rgba(6, 16, 35, 0.95);
    box-shadow:
      0 0 18px rgba(0, 245, 255, 0.24),
      inset 0 0 12px rgba(255, 255, 255, 0.12);
    transform: translate(calc(-50% + var(--stick-x)), calc(-50% + var(--stick-y)));
    transition: transform 90ms ease, border-color 120ms ease, box-shadow 120ms ease;
    pointer-events: none;
  }

  .game-mobile-stick.is-active .game-mobile-stick-knob {
    border-color: var(--yellow);
    box-shadow:
      0 0 22px rgba(255, 230, 0, 0.28),
      inset 0 0 12px rgba(255, 255, 255, 0.14);
  }

  .game-mobile-stick-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(240, 240, 240, 0.72);
  }

  .game-control-button {
    min-width: 0;
    border: 2px solid var(--cyan);
    background: rgba(0, 245, 255, 0.1);
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 8px;
    text-transform: uppercase;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
  }

  .game-shoot-button {
    flex: 1 1 0;
    min-height: 74px;
    font-size: clamp(20px, 5vw, 26px);
    letter-spacing: 2px;
    padding: 12px 10px;
  }

  .game-control-button:active,
  .game-control-button.is-active {
    color: var(--yellow);
    border-color: var(--yellow);
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.45);
  }

  .game-end-overlay {
    position: absolute;
    inset: 62px 20px 58px;
    z-index: 2;
    border: 2px solid var(--yellow);
    background: rgba(10, 10, 15, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .game-end-overlay.is-visible {
    display: flex;
  }

  .game-end-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--yellow);
    text-shadow: 3px 3px 0 var(--red);
    margin-bottom: 8px;
  }

  .game-end-copy {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(240, 240, 240, 0.85);
    margin-bottom: 12px;
    text-transform: uppercase;
  }

  .game-end-button {
    border: 2px solid var(--cyan);
    background: rgba(0, 245, 255, 0.08);
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 10px 14px;
    text-transform: uppercase;
  }

  .game-end-button:hover,
  .game-end-button:focus-visible {
    color: var(--yellow);
    border-color: var(--yellow);
  }

  .game-intermission {
    position: absolute;
    inset: 56px 18px 52px;
    z-index: 4;
    border: 2px solid var(--cyan);
    background: rgba(6, 10, 22, 0.94);
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .game-intermission.is-visible {
    display: flex;
  }

  .game-intermission-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--yellow);
    text-transform: uppercase;
  }

  .game-intermission-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid rgba(0, 245, 255, 0.56);
    background: #000;
    overflow: hidden;
  }

  .game-intermission-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  .game-intermission-bumper {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(5, 12, 34, 0.88) 0%, rgba(6, 10, 22, 0.8) 100%),
      repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 2px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0) 4px
      );
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 560ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
  }

  .game-intermission-bumper.is-visible {
    opacity: 1;
    transform: scale(1);
  }

  .game-intermission-bumper.is-fading {
    opacity: 0;
    transform: scale(1.015);
  }

  .game-intermission-bumper-main {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(13px, 2.4vw, 19px);
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--yellow);
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 230, 0, 0.45);
    max-width: 48ch;
  }

  .game-intermission-bumper-credit {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(10px, 1.8vw, 13px);
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(226, 241, 255, 0.92);
  }

  .game-intermission-copy {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(240, 240, 240, 0.82);
    text-transform: uppercase;
  }

  .game-intermission-button {
    align-self: flex-end;
    border: 2px solid var(--cyan);
    background: rgba(0, 245, 255, 0.08);
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 12px;
  }

  .game-intermission-button:hover,
  .game-intermission-button:focus-visible {
    color: var(--yellow);
    border-color: var(--yellow);
  }

  .game-modal.is-siren .game-modal-content {
    animation: siren-lights 620ms step-end infinite;
  }

  @keyframes siren-lights {
    0% {
      border-color: var(--red);
      box-shadow: 0 0 28px rgba(255, 36, 66, 0.45);
      background:
        radial-gradient(circle at top, rgba(255, 36, 66, 0.22), transparent 55%),
        var(--deep);
    }
    50% {
      border-color: var(--yellow);
      box-shadow: 0 0 28px rgba(255, 230, 0, 0.45);
      background:
        radial-gradient(circle at top, rgba(255, 230, 0, 0.2), transparent 55%),
        var(--deep);
    }
    100% {
      border-color: var(--cyan);
      box-shadow: 0 0 28px rgba(0, 245, 255, 0.35);
      background:
        radial-gradient(circle at top, rgba(0, 245, 255, 0.15), transparent 55%),
        var(--deep);
    }
  }

  @media (max-width: 900px) {
    .section-header,
    .about-section,
    footer {
      padding-left: 24px;
      padding-right: 24px;
    }

    .about-section {
      grid-template-columns: 1fr;
      gap: 28px;
      align-items: start;
      padding-bottom: 80px;
    }

    .about-text p {
      font-size: 15px;
      line-height: 1.75;
      margin-bottom: 18px;
      letter-spacing: 0.2px;
    }

    .about-card {
      padding: 28px 24px;
    }

    .pixel-divider {
      margin-left: 24px;
      margin-right: 24px;
    }

    .work-directory {
      margin-left: 24px;
      margin-right: 24px;
    }
  }

  @media (max-width: 640px) {
    .work-directory {
      margin-bottom: 20px;
      padding: 16px;
    }

    .work-directory-links a {
      width: 100%;
      justify-content: center;
      text-align: center;
    }

    .video-modal {
      padding: 12px;
    }

    .video-modal-content {
      padding: 56px 12px 16px;
    }

    .video-modal-close {
      top: 8px;
      right: 8px;
      width: 38px;
      height: 38px;
    }

    .about-text p {
      font-size: 14px;
      line-height: 1.8;
    }

    .coin-unlock {
      right: 12px;
      top: 64px;
      font-size: 9px;
      padding: 8px 10px;
    }

    .start-overlay-panel {
      padding: 20px 14px;
    }

    .start-overlay-button {
      min-width: 100%;
    }

    .game-modal-content {
      padding: 14px 12px 14px;
    }

    .game-modal-close {
      top: -14px;
      right: -14px;
      width: 32px;
      height: 32px;
    }

    .game-hud {
      gap: 8px;
    }

    .game-hud-item {
      font-size: 9px;
      letter-spacing: 1px;
      padding: 4px 6px;
      min-width: 92px;
    }

    .game-end-overlay {
      inset: 54px 12px 52px;
      padding: 12px;
    }

    .game-intermission {
      inset: 50px 10px 50px;
      padding: 10px;
    }
  }

  @media (hover: none), (pointer: coarse) {
    body {
      cursor: auto;
    }

    .cursor {
      display: none !important;
    }

    .work-item,
    .score-item-button,
    .footer-insert-button,
    .start-overlay-button,
    .game-control-button,
    .game-intermission-button {
      cursor: pointer !important;
    }

    .game-mobile-controls {
      display: flex;
    }
  }


/* Keyboard access and stable controls. */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 12px 18px; color: var(--black); background: var(--yellow); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
body.cursor-ready, body.cursor-ready a, body.cursor-ready button { cursor: none; }
body.cursor-ready .cursor { display: block; }
.work-item:focus-visible .work-select { opacity: 1; }
.video-modal, .start-overlay, .game-modal { overflow-y: auto; }
.video-modal-content, .start-overlay-panel, .game-modal-content { max-height: calc(100dvh - 48px); overflow-y: auto; }
.video-modal-footer { flex-wrap: wrap; justify-content: space-between; }
.video-modal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.video-modal-links a { color: var(--cyan); font-size: 13px; padding: 10px 0; }
.start-overlay-panel { padding-top: 58px; }
.start-overlay-close { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border: 2px solid var(--yellow); color: var(--yellow); background: var(--deep); font-size: 24px; cursor: pointer; }
.score-bar { padding-left: 0; gap: 20px; }
.score-bar-inner { flex: 0 0 auto; }
.score-bar:hover .score-bar-inner, .score-bar:focus-within .score-bar-inner { animation-play-state: paused; }
.motion-toggle { position: relative; z-index: 1; flex: 0 0 auto; align-self: stretch; padding: 0 14px; border: 0; border-right: 2px solid var(--yellow); background: var(--deep); color: var(--yellow); font: inherit; font-size: 12px; cursor: pointer; }
body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation: none !important; transition: none !important; }
body.motion-paused .score-bar-inner { overflow-x: auto; flex: 1; scrollbar-width: none; }
body.motion-paused .crt-flash { display: none; }
body.motion-paused .coin-unlock.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body:not(.motion-enabled) *, body:not(.motion-enabled) *::before, body:not(.motion-enabled) *::after { animation: none !important; transition: none !important; }
  body:not(.motion-enabled) .crt-flash { display: none; }
  body:not(.motion-enabled) .score-bar-inner { overflow-x: auto; flex: 1; scrollbar-width: none; }
}
@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a { letter-spacing: 1px; display: inline-flex; align-items: center; min-height: 44px; }
  .section-header { flex-wrap: wrap; gap: 12px; }
  .section-title { font-size: 24px; letter-spacing: 2px; }
  .about-text p { font-size: 16px; line-height: 1.8; }
  .about-card { padding: 28px 18px; }
  .attr-name { letter-spacing: 1px; }
  .attr-row { gap: 12px; }
  .attr-bar { flex-shrink: 0; }
  .attr-pip { width: 10px; height: 12px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .start-overlay-panel { padding-top: 58px; }
  .game-modal-close { top: 4px; right: 4px; }
  .game-modal-content { padding-top: 44px; }
}


.game-modal-close { top: 4px; right: 4px; }
.game-modal-content { padding-top: 44px; }

/* Keep film titles readable as the mosaic collapses. */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-item:nth-child(n+2):nth-child(-n+5) { grid-column: auto; aspect-ratio: 16 / 9; }
  .work-item { aspect-ratio: 16 / 9; }
  .work-item.featured { aspect-ratio: 2.4 / 1; }
}
@media (max-width: 640px) {
  .site-header { margin: 0 14px; padding: 20px 0 8px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-logo { font-size: clamp(26px, 7.2vw, 38px); letter-spacing: 1.5px; text-shadow: 2px 3px 0 var(--red); }
  .brand-title { margin-top: 7px; font-size: clamp(12.5px, 3.5vw, 20px); letter-spacing: 3px; }
  .site-header nav { width: 100%; }
  .nav-links { justify-content: space-between; gap: 28px; }
  .work-header { margin: 0 14px; }
  .work-header h2, .work-header-label { font-size: 16px; letter-spacing: 1px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); padding: 0 14px 32px; }
  .work-item.featured, .work-item:nth-child(n+2):nth-child(-n+5), .work-item { grid-column: auto; aspect-ratio: 16 / 10; }
  .work-item.featured { aspect-ratio: 1280 / 719; }
  .work-overlay, .featured .work-overlay { padding: 16px; }
  .work-name, .featured .work-name { font-size: 21px; letter-spacing: 1px; }
  .work-subtitle { font-size: 16px; }
  .work-number, .featured .work-number { top: 14px; left: 16px; }
}
