/* ============================================================
   GAMES HYBRID LAYOUT — Paper Dossier + CRT Monitor
   ============================================================
   Desktop: Desk surface > manila folder > paper + CRT monitor
            Sticky notes on left = category nav
            CRT inset = existing games content (no header/footer inside)
            Tape-on-paper footer at bottom

   Mobile:  Wooden header bar
            Paper torso with porthole-style buttons
            CRT body (games content — ONLY scrolling element)
            Tape-on-paper footer

   Imports alongside: crt.css, themes.css, dossier-page.css, games.css
   ============================================================ */


/* ---- 1. WOODEN HEADER — large, legible, single row ---- */

.games-v2-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: linear-gradient(180deg, #2e2820 0%, #221e16 50%, #1a160e 100%);
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #3a3220, #7a6c48 30%, #5a5038 50%, #7a6c48 70%, #3a3220) 1;
  box-shadow:
    inset 0 1px 0 rgba(180, 160, 100, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.5);
  flex-wrap: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.games-v2-nav-brand {
  font-size: 18px;
  font-weight: bold;
  color: rgba(220, 200, 140, 0.95);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(60, 50, 25, 0.8),
    0 0 12px rgba(180, 160, 80, 0.15);
  font-family: var(--theme-font-display, Georgia, serif);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.games-v2-nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  flex-shrink: 1;
  overflow: hidden;
}

.games-v2-nav-link {
  font-size: 13px;
  color: rgba(180, 160, 100, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  font-family: var(--theme-font-display, Georgia, serif);
}
.games-v2-nav-link:hover { color: rgba(220, 200, 140, 0.9); }
.games-v2-nav-link.active { color: var(--theme-primary, #33ff33); text-shadow: 0 0 6px var(--theme-primary-glow, rgba(51,255,51,0.15)); }


/* ---- 2. DESKTOP LAYOUT: Paper + Monitor grid ---- */

@media (min-width: 769px) {

  /* Desktop also uses viewport-locked flex column */
  body {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .dossier-desk.games-v2-desk {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
    min-height: 0 !important; /* Override dossier-page.css min-height: 100dvh */
  }

  .games-v2-folder {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
  }

  .games-v2-paper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    padding: 16px 16px 16px 12px;
    flex: 1;
    overflow: hidden;
  }

  /* Sticky note nav — left column */
  .games-v2-postit-nav {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 16px;
    z-index: 5;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: none;
  }
  .games-v2-postit-nav::-webkit-scrollbar { display: none; }

  .games-v2-postit-nav .postit {
    padding: 14px 12px 16px;
    cursor: default;
  }

  .games-v2-postit-nav .postit-label {
    font-family: var(--theme-font-display, Georgia, serif);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper-heading, #1a1610);
    margin-bottom: 8px;
    opacity: 0.6;
  }

  .games-v2-nav-item {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--paper-text, #2a2418);
    text-decoration: none;
    padding: 3px 0;
    cursor: pointer;
    transition: color 0.15s;
    border-left: 2px solid transparent;
    padding-left: 6px;
  }
  .games-v2-nav-item:hover { color: var(--paper-heading, #1a1610); }
  .games-v2-nav-item.active {
    color: var(--paper-heading, #1a1610);
    border-left-color: var(--theme-primary, #33ff33);
    font-weight: bold;
  }

  .games-v2-nav-stat {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--paper-text-dim, #5a5040);
    padding: 2px 0;
  }

  .games-v2-nav-designer {
    margin-top: 6px;
    font-size: 10px;
    color: var(--paper-text-dim, #5a5040);
    text-decoration: none;
  }
  .games-v2-nav-designer:hover { color: var(--paper-heading, #1a1610); }

  /* Tool link buttons — louder, more tappable */
  .games-v2-nav-link-btn {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    color: var(--paper-text, #2a2418);
    text-decoration: none;
    padding: 5px 8px;
    margin: 2px -4px;
    border-radius: 3px;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s, text-shadow 0.15s;
  }
  .games-v2-nav-link-btn:hover {
    color: var(--paper-heading, #1a1610);
    background: rgba(0, 0, 0, 0.06);
    border-left-color: var(--theme-primary, #33ff33);
  }

  /* CRT Monitor frame */
  .games-v2-monitor {
    position: relative;
    z-index: 2;
    background:
      linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #111 100%);
    border-radius: 14px;
    padding: 10px;
    box-shadow:
      0 6px 24px rgba(0,0,0,0.5),
      0 2px 8px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.04),
      inset 0 -1px 0 rgba(0,0,0,0.4);
    transform: perspective(1200px) rotateX(1deg);
    /* Fill remaining space, scroll internally */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-monitor #crt-screen {
    position: relative !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1;
    border-radius: 8px;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .games-v2-monitor #mok-header { display: none; }
  .games-v2-monitor .games-footer-strip { display: none; }

  .games-v2-monitor #crt-frame {
    flex: 1;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-monitor #monitor-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-monitor .games-log-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Only .games-content scrolls on desktop too */
  .games-v2-monitor .games-content {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Full nav text on desktop */
  .games-v2-nav-link .nav-full { display: inline; }
  .games-v2-nav-link .nav-abbr { display: none; }

  /* Mobile torso hidden on desktop */
  .games-v2-torso { display: none; }
}


/* ---- 3. MOBILE LAYOUT: Header + Torso + CRT + Footer ---- */

@media (max-width: 768px) {
  body {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .games-v2-nav { flex-shrink: 0; padding: 8px 14px; }
  .games-v2-nav-brand { font-size: 14px; letter-spacing: 0.15em; }
  .games-v2-nav-links { gap: 8px; }
  .games-v2-nav-link { font-size: 10px; }

  /* Abbreviate nav links on mobile — hide full text, show data-abbr */
  .games-v2-nav-link .nav-full { display: none; }
  .games-v2-nav-link .nav-abbr { display: inline; }

  .dossier-desk.games-v2-desk {
    background: var(--bg, #0a0a0a) !important;
    padding: 0 !important;
    min-height: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-folder {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .dossier-folder-tab { display: none !important; }

  .games-v2-paper {
    display: flex !important;
    flex-direction: column !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: inherit !important;
    flex: 1;
    overflow: hidden;
  }

  .games-v2-postit-nav { display: none; }

  .games-v2-monitor {
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-monitor #crt-screen {
    position: relative !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .games-v2-monitor #crt-frame {
    flex: 1;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-monitor #monitor-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-monitor .games-log-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .games-v2-monitor .games-content {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .games-v2-monitor #mok-header { display: none; }
  .games-v2-monitor .games-footer-strip { display: none; }

  /* ---- Paper torso: porthole-style buttons on paper strip ---- */
  .games-v2-paper > .games-v2-torso {
    position: relative;
    z-index: 20;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px 8px;
    padding: 12px 10px;
    background: var(--postit-bg, rgba(255, 248, 200, 0.92));
    border-bottom: 2px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    flex-shrink: 0;
    /* Allow star burst to escape grid cells */
    overflow: visible;
  }

  /* Torso buttons: porthole-style with subtle glow + starfield on tap */
  .games-v2-torso-btn {
    position: relative;
    padding: 8px 4px;
    font-family: var(--theme-font-data, 'Courier New', monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper-heading, #1a1610);
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    background: color-mix(in srgb, var(--theme-primary, #33ff33) 12%, rgba(212, 200, 160, 0.9));
    border: 1.5px solid color-mix(in srgb, var(--theme-primary, #33ff33) 60%, rgba(100, 90, 60, 0.5));
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-overflow: clip;
    /* CRITICAL: overflow visible so stars can burst outside button bounds */
    overflow: visible;
    /* Subtle shadow with thin glow ring — not overpowering */
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.15),
      0 0 3px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.2));
    animation: torso-glow-breathe 4s ease-in-out infinite;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  @keyframes torso-glow-breathe {
    0%, 100% {
      box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 0 3px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.2));
    }
    50% {
      box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 0 6px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.3));
    }
  }

  /* Porthole mode: on tap, background dissolves, starfield visible */
  .games-v2-torso-btn:active,
  .games-v2-torso-btn.porthole-open {
    background: transparent;
    color: #fff;
    text-shadow:
      0 0 6px var(--theme-primary-glow, rgba(51, 255, 51, 0.4)),
      0 1px 2px rgba(0, 0, 0, 0.8);
    border-color: var(--theme-primary, #33ff33);
    animation: none;
    box-shadow:
      0 0 0 1px var(--theme-primary, #33ff33),
      inset 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.97);
    transition-duration: 0.08s;
  }

  /* Starfield canvas: clipped to button shape (doesn't overflow) */
  .games-v2-torso-btn .torso-starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: #060808;
    /* Clip starfield to button bounds — stars burst OUTSIDE via overflow:visible on parent */
    clip-path: inset(0 round 4px);
  }

  .games-v2-torso-btn:active .torso-starfield,
  .games-v2-torso-btn.porthole-open .torso-starfield {
    opacity: 1;
  }

  /* Button label above starfield */
  .games-v2-torso-btn .torso-label {
    position: relative;
    z-index: 2;
    pointer-events: none;
  }

  .games-v2-torso-btn.active {
    background: color-mix(in srgb, var(--theme-primary, #33ff33) 18%, rgba(212, 200, 160, 0.95));
    font-weight: 900;
    border-color: var(--theme-primary, #33ff33);
  }

  /* ---- Mobile: hide doc-card IDs, wrap titles naturally ---- */
  .doc-card-id { display: none !important; }

  /* Kill the abbreviator entirely on mobile — let titles wrap */
  .doc-card-name,
  .doc-card-name[data-abbr] {
    font-size: 0.65em !important;
    line-height: 1.25 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word;
    max-height: 3.75em; /* ~3 lines */
  }

  /* Disable the abbreviator ::after pseudo — show original text */
  .doc-card-name[data-abbr]::after {
    content: none !important;
  }
}


/* ---- 4. PAPER FOOTER with post-it buttons ---- */

.games-v2-footer {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  padding: 14px 32px;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
  background:
    /* Horizontal ruled lines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      var(--paper-line, rgba(51, 255, 51, 0.08)) 27px,
      var(--paper-line, rgba(51, 255, 51, 0.08)) 28px
    ),
    /* Left margin line (matches dossier-paper) */
    linear-gradient(
      90deg,
      transparent 48px,
      var(--paper-margin, rgba(220, 80, 80, 0.15)) 48px,
      var(--paper-margin, rgba(220, 80, 80, 0.15)) 49px,
      transparent 49px
    ),
    var(--paper-bg, #f5f0e6);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 240, 200, 0.3);
}

.games-v2-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.games-v2-footer-brand {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  font-size: 9px;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  color: var(--paper-text-dim, #5a5040);
}

.games-v2-footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.games-v2-footer-clock { display: none; }

/* Mobile footer: compact, no brand text, centered buttons */
@media (max-width: 768px) {
  .games-v2-footer {
    padding: 4px 6px;
  }
  .games-v2-footer-content {
    justify-content: center;
    gap: 4px;
  }
  .games-v2-footer-brand {
    display: none; /* Remove "EYES ONLY // CNTCT" on mobile */
  }
  .games-v2-footer-links {
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap; /* single row — designer button is icon-only to fit */
  }
  .games-v2-tape-btn {
    padding: 4px 8px;
    font-size: 9px;
  }
  /* Designer button: crosshairs icon only, no text label */
  .games-v2-tape-btn[href*="designer"] {
    font-size: 0;       /* hide text */
    padding: 4px 8px;
    line-height: 0;
  }
  .games-v2-tape-btn[href*="designer"]::before {
    content: "\2316";   /* ⌖ crosshairs / position indicator */
    font-size: 14px;
    line-height: 1;
  }
  .games-v2-tape-btn[href*="designer"] .tape-tooltip {
    /* tooltip still works normally on hover/long-press */
  }
  /* Straighten buttons on mobile — rotation wastes space */
  .games-v2-tape-btn:nth-child(1),
  .games-v2-tape-btn:nth-child(2),
  .games-v2-tape-btn:nth-child(3),
  .games-v2-tape-btn:nth-child(4) {
    transform: none;
  }
  /* Clock: slightly smaller */
  .games-v2-footer-clock {
    font-size: 0.7em;
  }
}

/* Post-it note style buttons */
.games-v2-tape-btn {
  position: relative;
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  color: var(--paper-text, #2a2418);
  text-decoration: none;
  background: var(--postit-bg, rgba(255, 248, 200, 0.92));
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.games-v2-tape-btn:nth-child(1) { transform: rotate(-0.5deg); }
.games-v2-tape-btn:nth-child(2) { transform: rotate(0.3deg); }
.games-v2-tape-btn:nth-child(3) { transform: rotate(-0.8deg); }

.games-v2-tape-btn:hover {
  background: rgba(255, 252, 220, 1);
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: rotate(0deg) translateY(-2px) !important;
  color: var(--paper-heading, #1a1610);
}

/* Tooltip for footer buttons */
.games-v2-tape-btn .tape-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  padding: 4px 10px;
  background: var(--paper-bg, #f5f0e6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 10px;
  color: var(--paper-text, #2a2418);
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

.games-v2-tape-btn:hover .tape-tooltip {
  display: block;
}


/* ---- 5. Contain CRT effects inside the monitor ---- */

.games-v2-monitor #crt-screen::before,
.games-v2-monitor #crt-screen::after {
  display: none !important;
}

.games-v2-monitor #vignette,
.games-v2-monitor #phosphor-glow,
.games-v2-monitor #scanlines {
  position: absolute !important;
  border-radius: 8px;
}


/* ---- 6. Abbreviator: no ellipsis, no padding ---- */

.games-v2-nav-link,
.games-v2-torso-btn,
.games-v2-tape-btn {
  text-overflow: clip;
}


/* ---- 7. Theme integration ---- */

body[data-theme] .games-v2-footer {
  background: var(--paper-bg, #f5f0e6);
}

body[data-theme] .games-v2-torso-btn {
  background: color-mix(in srgb, var(--theme-primary, #33ff33) 14%, rgba(212, 200, 160, 0.9));
  border-color: var(--theme-primary, #33ff33);
}


/* ============================================================
   8. SVG STAR EXPLOSION — Torso porthole burst
   Stars positioned inside button, burst outward on tap.
   Mirrors the .porthole-btn .sparkle system from dossier-page.css.
   ============================================================ */

.torso-star {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.05, 0.83, 0.43, 0.96);
  will-change: transform, opacity;
}

.torso-star svg {
  width: 100%;
  height: 100%;
  fill: var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.9));
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 0.8s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

/* Idle positions (inside button bounds) */
.torso-star-1 { top: 15%; left: 10%;  width: 14px; height: 14px; }
.torso-star-2 { top: 5%;  left: 50%;  width: 8px;  height: 8px; }
.torso-star-3 { top: 40%; right: 5%;  width: 16px; height: 16px; }
.torso-star-4 { bottom: 5%; left: 30%; width: 6px; height: 6px; }
.torso-star-5 { top: 5%;  right: 15%; width: 10px; height: 10px; }
.torso-star-6 { bottom: 10%; left: 5%; width: 5px; height: 5px; }

/* Burst positions (outside button — 4th wall breaking) */
.games-v2-torso-btn:active .torso-star,
.games-v2-torso-btn.porthole-open .torso-star {
  opacity: 1;
}

.games-v2-torso-btn:active .torso-star svg,
.games-v2-torso-btn.porthole-open .torso-star svg {
  filter: drop-shadow(0 0 6px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.8)));
}

.games-v2-torso-btn:active .torso-star-1,
.games-v2-torso-btn.porthole-open .torso-star-1 { top: -40%; left: -20%; transform: scale(1.3) rotate(20deg); }
.games-v2-torso-btn:active .torso-star-2,
.games-v2-torso-btn.porthole-open .torso-star-2 { top: -50%; left: 45%; transform: scale(1.1) rotate(-15deg); }
.games-v2-torso-btn:active .torso-star-3,
.games-v2-torso-btn.porthole-open .torso-star-3 { top: 30%; right: -30%; transform: scale(1.4) rotate(10deg); }
.games-v2-torso-btn:active .torso-star-4,
.games-v2-torso-btn.porthole-open .torso-star-4 { bottom: -45%; left: 20%; transform: scale(0.9) rotate(35deg); }
.games-v2-torso-btn:active .torso-star-5,
.games-v2-torso-btn.porthole-open .torso-star-5 { top: -45%; right: -15%; transform: scale(1.2) rotate(-25deg); }
.games-v2-torso-btn:active .torso-star-6,
.games-v2-torso-btn.porthole-open .torso-star-6 { bottom: -15%; left: -25%; transform: scale(0.8) rotate(45deg); }

/* Staggered burst timing */
.torso-star-1 { transition-delay: 0s; }
.torso-star-2 { transition-delay: 0.04s; }
.torso-star-3 { transition-delay: 0.08s; }
.torso-star-4 { transition-delay: 0.06s; }
.torso-star-5 { transition-delay: 0.02s; }
.torso-star-6 { transition-delay: 0.1s; }


/* ============================================================
   9. DESKTOP POST-IT NAV — Starfield blowthrough on hover
   Post-it background dissolves, starfield visible underneath.
   ============================================================ */

@media (min-width: 769px) {
  .games-v2-nav-postit {
    position: relative;
    overflow: visible !important; /* Stars must burst outside post-it bounds */
  }

  .games-v2-nav-postit .postit-starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: #060808;
  }

  .games-v2-nav-postit:hover .postit-starfield {
    opacity: 1;
  }

  /* On hover: dissolve paper, show space, invert text */
  .games-v2-nav-postit:hover {
    background: transparent !important;
    border-color: var(--theme-primary, #33ff33);
    box-shadow:
      0 0 0 1px var(--theme-primary, #33ff33),
      0 0 10px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.4)),
      inset 0 0 12px rgba(0, 0, 0, 0.4);
    transform: rotate(0deg) translateY(-2px) !important;
  }

  .games-v2-nav-postit:hover .postit-label {
    color: rgba(255,255,255,0.55) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }

  .games-v2-nav-postit:hover .games-v2-nav-item,
  .games-v2-nav-postit:hover .games-v2-nav-stat,
  .games-v2-nav-postit:hover .games-v2-nav-designer {
    position: relative;
    z-index: 2;
    color: #fff !important;
    text-shadow:
      0 0 6px var(--theme-primary-glow, rgba(51, 255, 51, 0.4)),
      0 1px 2px rgba(0, 0, 0, 0.8);
  }

  .games-v2-nav-postit:hover .games-v2-nav-link-btn {
    position: relative;
    z-index: 2;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--theme-primary, #33ff33);
    text-shadow:
      0 0 8px var(--theme-primary-glow, rgba(51, 255, 51, 0.5)),
      0 1px 3px rgba(0, 0, 0, 0.9);
  }

  .games-v2-nav-postit:hover .games-v2-nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    text-shadow:
      0 0 12px var(--theme-primary-glow, rgba(51, 255, 51, 0.7)),
      0 0 20px var(--theme-primary-glow, rgba(51, 255, 51, 0.3)),
      0 1px 3px rgba(0, 0, 0, 0.9);
  }

  /* Hide tape strip during porthole mode */
  .games-v2-nav-postit:hover::before {
    opacity: 0;
  }
}
