/* Mobile bottom sticky. Hidden before a successful manual game move. */
.fcn-mobile-sticky[hidden], .fcn-mobile-sticky { display:none; }
@media (max-width:767px) and (min-height:540px) {
  body.fcn-mobile-sticky-visible .fcn-mobile-sticky:not([hidden]) {
    box-sizing:border-box; display:flex; flex-direction:column; align-items:center;
    position:fixed; inset:auto 0 0; z-index:52;
    width:100%; height:calc(124px + env(safe-area-inset-bottom,0px));
    padding:0 0 env(safe-area-inset-bottom,0px);
    border-top:1px solid rgba(234,228,215,.22);
    background:rgba(7,20,17,.96); box-shadow:0 -8px 24px rgba(0,0,0,.24);
    overflow:hidden;
  }
  .fcn-mobile-sticky__controls {
    height:23px; flex:none; width:100%; box-sizing:border-box;
    display:flex; justify-content:flex-end; padding-right:10px;
  }
  .fcn-mobile-sticky__close {
    width:30px; height:22px; border:0; border-radius:0 0 4px 4px;
    background:transparent; color:#e5e2d7; cursor:pointer;
    font:20px/1 system-ui,sans-serif; touch-action:manipulation;
  }
  .fcn-mobile-sticky__close:focus-visible {outline:2px solid #efd38a;outline-offset:-2px}
  .fcn-mobile-sticky__slot {
    box-sizing:border-box; flex:none; width:300px; height:100px;
    background:transparent; overflow:hidden; margin:0 auto; position:relative;
  }
  .fcn-mobile-sticky__slot iframe {display:block; border:0; margin:0; padding:0; overflow:hidden}
  /* The GPU canvas reads this padding when its layout is recalculated.
     Reserve room only when a paid sticky is actually visible. */
  body.fcn-mobile-sticky-visible .board {
    padding-bottom:calc(var(--board-pad-bottom) + 124px + env(safe-area-inset-bottom,0px));
  }
  body.fcn-mobile-sticky-visible .toast {bottom:calc(145px + env(safe-area-inset-bottom,0px));}
  .fcn-mobile-sticky__mock {
    display:grid; place-items:center; width:100%; height:100%;
    background:#ebdfbc;color:#243e32;font:700 12px/1.3 system-ui,sans-serif;
  }
}
@media (max-width:767px) and (max-height:539px) {
  #fcnMobileSticky {display:none!important}
}
