body.majlis-object-picker-open #game3DCanvas { pointer-events: none !important; }
  body > .animal-picker {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    pointer-events: none !important;
  }
  body > .animal-picker.open {
    display: grid !important;
    place-items: center !important;
    pointer-events: auto !important;
  }
  body > .animal-picker .ap-panel {
    position: relative !important;
    z-index: 2147483001 !important;
    pointer-events: auto !important;
  }
  body > .animal-picker .ap-choices button,
  body > .animal-picker .ap-cancel {
    pointer-events: auto !important;
  }

#majlisGameStage > .majlis-live-swatch-toggle,
  .game-full-stage.in-game .majlis-live-swatch-toggle,
  .preview-stage.in-game .majlis-live-swatch-toggle,
  .majlis-game-section .majlis-live-swatch-toggle {
    left: auto !important;
    right: 14px !important;
    top: 64px !important;
  }
  #majlisGameStage > .majlis-live-swatch-stack,
  .game-full-stage.in-game .majlis-live-swatch-stack,
  .preview-stage.in-game .majlis-live-swatch-stack,
  .majlis-game-section .majlis-live-swatch-stack,
  body.majlis-live-swatch-always .preview-stage.in-game .majlis-live-swatch-stack,
  body.majlis-v218-ls-on .preview-stage.in-game .majlis-live-swatch-stack,
  body.majlis-v210-ls-on .preview-stage.in-game .majlis-live-swatch-stack,
  body.majlis-v218-ls-fade .preview-stage.in-game .majlis-live-swatch-stack.majlis-v218-active,
  body.majlis-v210-ls-fade .preview-stage.in-game .majlis-live-swatch-stack.majlis-v210-active,
  body.majlis-v218-ls-fade .preview-stage.in-game .majlis-live-swatch-stack.is-active,
  body.majlis-v210-ls-fade .preview-stage.in-game .majlis-live-swatch-stack.is-active {
    left: auto !important;
    right: 14px !important;
    top: 108px !important;
  }

  
  #gameClear {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: none !important;
  }
  #gameClear::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    z-index: -1;
    background: linear-gradient(90deg, rgba(64,208,208,.95), rgba(84,13,0,.95));
    opacity: 0;
  }
  #gameClear.majlis-hold-clearing::before {
    opacity: .92;
    animation: majlisHoldToClear 3s linear forwards;
  }
  #gameClear.majlis-hold-cleared::before {
    width: 100%;
    opacity: .92;
    animation: none;
  }
  @keyframes majlisHoldToClear {
    from { width: 0%; }
    to { width: 100%; }
  }

  
  #lightingPicker [data-lighting="task-lamp"] {
    border-color: rgba(84,13,0,.32) !important;
  }

  @media (max-width: 760px) {
    #majlisGameStage > .majlis-live-swatch-toggle,
    .game-full-stage.in-game .majlis-live-swatch-toggle,
    .preview-stage.in-game .majlis-live-swatch-toggle,
    .majlis-game-section .majlis-live-swatch-toggle {
      left: auto !important;
      right: 14px !important;
      top: 58px !important;
    }
    #majlisGameStage > .majlis-live-swatch-stack,
    .game-full-stage.in-game .majlis-live-swatch-stack,
    .preview-stage.in-game .majlis-live-swatch-stack,
    .majlis-game-section .majlis-live-swatch-stack {
      left: auto !important;
      right: 14px !important;
      top: 102px !important;
      width: min(215px, calc(100% - 28px)) !important;
    }
  }

/* v316 clean fix: object group pickers were opening but staying invisible in standalone mode.
   The standalone shell hides every .animal-picker by default; when a picker is .open,
   it must explicitly restore opacity and visibility, not only display/pointer-events. */
body.majlis-game-standalone > .animal-picker.open,
body.majlis-game-standalone .animal-picker.open,
body > .animal-picker.open {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  place-items: center !important;
}

body.majlis-game-standalone > .animal-picker.open .ap-panel,
body.majlis-game-standalone .animal-picker.open .ap-panel,
body > .animal-picker.open .ap-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

body.majlis-game-standalone > .animal-picker.open .ap-choices,
body.majlis-game-standalone > .animal-picker.open .ap-title,
body.majlis-game-standalone > .animal-picker.open .ap-cancel,
body.majlis-game-standalone .animal-picker.open .ap-choices,
body.majlis-game-standalone .animal-picker.open .ap-title,
body.majlis-game-standalone .animal-picker.open .ap-cancel {
  opacity: 1 !important;
  visibility: visible !important;
}
