/* ==========================================================
   RONIN: SLASHDOWN v3.2.0
   GLOBAL PERSISTENT OVERLAY VISIBILITY FIX
   ========================================================== */

/*
 * Persistent Chain / Curse layers exist inside every board
 * cell, but they must NEVER render while [hidden].
 *
 * This rule MUST be global — desktop, tablet and phone.
 */
#gameScreen .tile-status-seal[hidden],
#gameScreen .chain-status-seal[hidden],
#gameScreen .curse-status-seal[hidden],
#gameScreen .tile [hidden]{
  display:none!important;
}


/* ----------------------------------------------------------
   DESKTOP RESTORATION
   Keep mobile compositor overrides away from desktop.
---------------------------------------------------------- */

@media(min-width:1200px){

  /*
   * Desktop board keeps its original rendering treatment.
   * Persistent DOM stays active, but mobile-specific paint
   * containment is not imposed here.
   */
  #gameScreen .board,
  #gameScreen .board-shell{
    contain:none!important;
  }

  /*
   * A normal tile should never inherit the appearance of a
   * Chain unless game.js actually gives it .chain.
   */
  #gameScreen .tile:not(.chain) .chain-status-seal{
    display:none!important;
  }

  #gameScreen .tile:not(.curse) .curse-status-seal{
    display:none!important;
  }
}
