    /* v0.0.93: isolated Petri Panic full-screen layer */
    body.petri-panic-open {
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: none;
    }

    body.petri-panic-open > .app,
    body.petri-panic-open > .vibe-layer {
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
    }

    .bonus-easter-egg-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .bonus-easter-egg {
      display: inline;
      width: auto;
      min-width: 0;
      min-height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--text);
      box-shadow: none;
      font: inherit;
      font-weight: 850;
      text-align: left;
      text-decoration: none;
      cursor: pointer;
    }

    .bonus-easter-egg:hover,
    .bonus-easter-egg:focus-visible {
      color: var(--accent);
      text-decoration: underline;
      outline: none;
      transform: none;
    }

    #petriPanicLayer {
      position: fixed;
      inset: 0;
      z-index: 2147483000;
      display: none;
      overflow: hidden;
      background: #06110e;
      color: #f3fff7;
      isolation: isolate;
      touch-action: none;
      overscroll-behavior: none;
    }

    #petriPanicLayer.open {
      display: block;
    }

    #petriPanicFrame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
      background: #06110e;
      touch-action: none;
    }

    #petriPanicClose {
      position: fixed;
      z-index: 2147483002;
      top: max(8px, env(safe-area-inset-top));
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      min-width: 0;
      min-height: 38px;
      padding: 8px 14px;
      border: 1px solid rgba(205, 255, 224, .28);
      border-radius: 999px;
      background: rgba(5, 23, 18, .82);
      color: #f3fff7;
      font: 850 12px/1 var(--body-font);
      letter-spacing: .04em;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
      backdrop-filter: blur(9px);
      -webkit-backdrop-filter: blur(9px);
      cursor: pointer;
      touch-action: manipulation;
    }

    #petriPanicClose:hover,
    #petriPanicClose:focus-visible {
      color: #10251f;
      background: #c4ffc0;
      border-color: #c4ffc0;
      outline: none;
    }

    #petriPanicClose:active {
      transform: translateX(-50%) scale(.96);
    }

    @media (max-height: 500px) and (orientation: landscape) {
      #petriPanicClose {
        top: max(5px, env(safe-area-inset-top));
        min-height: 32px;
        padding: 6px 12px;
        font-size: 11px;
      }
    }


    /* isolated Grow Lab full-screen layer */
    body.grow-lab-open {
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: none;
    }

    body.grow-lab-open > .app,
    body.grow-lab-open > .vibe-layer {
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
    }

    .credits-easter-egg {
      font-weight: inherit;
      color: inherit;
    }

    .credits-easter-egg:hover,
    .credits-easter-egg:focus-visible {
      color: var(--accent);
      text-decoration: underline;
    }

    #growLabLayer {
      position: fixed;
      inset: 0;
      z-index: 2147483100;
      display: none;
      overflow: hidden;
      background: #0d1210;
      color: #f4f0df;
      isolation: isolate;
      touch-action: none;
      overscroll-behavior: none;
    }

    #growLabLayer.open {
      display: block;
    }

    #growLabFrame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
      background: #0d1210;
      touch-action: manipulation;
    }

    #growLabClose {
      position: fixed;
      z-index: 2147483102;
      top: max(8px, env(safe-area-inset-top));
      left: auto;
      right: max(72px, calc(env(safe-area-inset-right) + 72px));
      transform: none;
      width: auto;
      min-width: 0;
      min-height: 38px;
      padding: 8px 11px;
      border: 1px solid rgba(200, 239, 112, .34);
      border-radius: 999px;
      background: rgba(13, 18, 16, .84);
      color: #f4f0df;
      font: 850 12px/1 var(--body-font);
      letter-spacing: .04em;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
      backdrop-filter: blur(9px);
      -webkit-backdrop-filter: blur(9px);
      cursor: pointer;
      touch-action: manipulation;
    }

    #growLabClose:hover,
    #growLabClose:focus-visible {
      color: #15200f;
      background: #c8ef70;
      border-color: #c8ef70;
      outline: none;
    }

    #growLabClose:active {
      transform: scale(.96);
    }

    @media (max-height: 500px) and (orientation: landscape) {
      #growLabClose {
        top: max(5px, env(safe-area-inset-top));
        min-height: 32px;
        padding: 6px 12px;
        font-size: 11px;
      }
    }

  

    /* isolated Mushroom Munch full-screen layer */
    body.mushroom-munch-open {
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: none;
    }

    body.mushroom-munch-open > .app,
    body.mushroom-munch-open > .vibe-layer {
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
    }

    .sister-easter-egg {
      font-weight: inherit;
      color: inherit;
    }

    .sister-easter-egg:hover,
    .sister-easter-egg:focus-visible {
      color: var(--accent);
      text-decoration: underline;
    }

    #mushroomMunchLayer {
      position: fixed;
      inset: 0;
      z-index: 2147483200;
      display: none;
      overflow: hidden;
      background: #160f1c;
      touch-action: none;
      overscroll-behavior: none;
    }

    #mushroomMunchLayer.open {
      display: block;
    }

    #mushroomMunchFrame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      background: #160f1c;
      display: block;
    }

    #mushroomMunchClose {
      position: absolute;
      z-index: 3;
      top: max(7px, env(safe-area-inset-top));
      left: max(7px, env(safe-area-inset-left));
      min-height: 36px;
      padding: 7px 13px;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 999px;
      color: #fff3d5;
      background: rgba(31,20,36,.86);
      box-shadow: 0 6px 18px rgba(0,0,0,.35);
      backdrop-filter: blur(8px);
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      touch-action: manipulation;
    }

    #mushroomMunchClose:active {
      transform: scale(.96);
    }

    @media (max-width: 420px) {
      #mushroomMunchClose {
        top: max(5px, env(safe-area-inset-top));
        min-height: 32px;
        padding: 6px 11px;
        font-size: 11px;
      }
    }


    /* v0.1.01: centralized MYCO Arcade registry */
    .minigame-library-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 10px;
      margin-top: 10px;
    }

    .minigame-library-card {
      display: flex;
      flex-direction: column;
      min-height: 190px;
      padding: 14px;
      border: 1px solid #314128;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(25, 39, 27, .95), rgba(8, 17, 10, .96));
      box-shadow: inset 0 1px rgba(255,255,255,.035), 0 8px 20px rgba(0,0,0,.18);
    }

    .minigame-library-card.locked {
      justify-content: center;
      border-style: dashed;
      opacity: .68;
      text-align: center;
      filter: saturate(.55);
    }

    .minigame-library-title {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 7px;
      margin-bottom: 7px;
      color: var(--accent);
      font-size: 16px;
      font-weight: 900;
    }

    .minigame-library-version {
      display: inline-flex;
      align-items: center;
      min-height: 20px;
      padding: 2px 7px;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 999px;
      background: rgba(0,0,0,.22);
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .04em;
      white-space: nowrap;
    }

    .minigame-library-desc {
      flex: 1;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .minigame-library-record {
      margin: 10px 0;
      padding: 8px;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 9px;
      background: rgba(0,0,0,.18);
      color: var(--text);
      font-size: 11px;
      line-height: 1.45;
    }

    .minigame-library-card button {
      width: 100%;
      margin-top: auto;
    }

  

    /* v0.1.01: reusable full-screen launcher for the expanded MYCO Arcade */
    body.arcade-game-open {
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: none;
    }

    body.arcade-game-open > .app,
    body.arcade-game-open > .vibe-layer {
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
    }

    #arcadeGameLayer {
      position: fixed;
      inset: 0;
      z-index: 2147483300;
      display: none;
      overflow: hidden;
      background: #070b09;
      color: #f4fff8;
      isolation: isolate;
      touch-action: none;
      overscroll-behavior: none;
    }

    #arcadeGameLayer.open { display: block; }

    #arcadeGameFrame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
      background: #070b09;
      touch-action: auto;
    }

    #arcadeGameClose {
      position: absolute;
      z-index: 4;
      top: max(7px, env(safe-area-inset-top));
      left: max(7px, env(safe-area-inset-left));
      min-height: 38px;
      max-width: calc(100vw - 14px - env(safe-area-inset-left) - env(safe-area-inset-right));
      padding: 8px 13px;
      border: 1px solid rgba(215,255,225,.26);
      border-radius: 999px;
      color: #f4fff8;
      background: rgba(8,18,14,.88);
      box-shadow: 0 7px 22px rgba(0,0,0,.42);
      backdrop-filter: blur(9px);
      -webkit-backdrop-filter: blur(9px);
      font: 900 12px/1 var(--body-font);
      letter-spacing: .025em;
      cursor: pointer;
      touch-action: manipulation;
    }

    #arcadeGameClose:hover,
    #arcadeGameClose:focus-visible {
      color: #122014;
      background: #c8ef70;
      border-color: #c8ef70;
      outline: none;
    }

    #arcadeGameClose:active { transform: scale(.96); }

    .minigame-library-grid.expanded-arcade {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    }

    @media (max-width: 430px) {
      .minigame-library-grid.expanded-arcade { grid-template-columns: 1fr; }
      #arcadeGameClose { min-height: 36px; padding: 7px 11px; font-size: 11px; }
    }


