/* FormyDog v78 · restore compact share actions on mobile without touching Phaser geometry */

/* v60 intentionally hid .fd-game-share on mobile. v78 restores only sharing. */
html body .app>.game-layout>.center>.fd-game-share{
  box-sizing:border-box!important;
  position:relative!important;
  z-index:20!important;
  width:min(calc(100vw - 20px),430px)!important;
  min-height:34px!important;
  height:auto!important;
  margin:1px auto 0!important;
  padding:3px!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:3px!important;
  align-items:stretch!important;
  overflow:visible!important;
  border:1px solid rgba(116,202,238,.30)!important;
  border-radius:10px!important;
  background:rgba(248,253,255,.94)!important;
  box-shadow:0 4px 12px rgba(4,58,100,.10)!important;
}

html body .app>.game-layout>.center>.fd-game-share button{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:28px!important;
  height:28px!important;
  margin:0!important;
  padding:2px 4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  overflow:hidden!important;
  border:1px solid rgba(103,191,229,.34)!important;
  border-radius:8px!important;
  background:linear-gradient(180deg,#fff,#edf9ff)!important;
  color:#145f98!important;
  font:900 7px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  letter-spacing:.015em!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  transform:none!important;
}

html body .app>.game-layout>.center>.fd-game-share #fdCopyLink{
  background:linear-gradient(180deg,#1488ec,#075bb8)!important;
  border-color:#0756ae!important;
  color:#fff!important;
}

html body .app>.game-layout>.center>.fd-game-share button::before{
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 16px!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
  font-size:13px!important;
  line-height:16px!important;
}

html body .app>.game-layout>.center>.fd-game-share .fd-game-share-status,
html body .app>.game-layout>.center>.fd-game-share #fdShareStatus{
  position:absolute!important;
  left:50%!important;
  bottom:calc(100% + 4px)!important;
  transform:translateX(-50%)!important;
  width:max-content!important;
  max-width:90vw!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:rgba(4,48,96,.94)!important;
  color:#fff!important;
  font-size:7px!important;
  line-height:1!important;
  pointer-events:none!important;
}
html body .app>.game-layout>.center>.fd-game-share #fdShareStatus:empty{display:none!important}

@media(min-width:901px){
  html body .app>.game-layout>.center>.fd-game-share{
    width:min(100%,520px)!important;
    min-height:40px!important;
    padding:5px!important;
    gap:5px!important;
  }
  html body .app>.game-layout>.center>.fd-game-share button{
    min-height:32px!important;
    height:32px!important;
    font-size:8px!important;
  }
}

@media(max-width:390px){
  html body .app>.game-layout>.center>.fd-game-share{
    width:calc(100vw - 16px)!important;
    min-height:31px!important;
    gap:2px!important;
    padding:2px!important;
  }
  html body .app>.game-layout>.center>.fd-game-share button{
    min-height:27px!important;
    height:27px!important;
    padding:2px!important;
    gap:2px!important;
    font-size:6.1px!important;
  }
  html body .app>.game-layout>.center>.fd-game-share button::before{
    flex-basis:14px!important;
    width:14px!important;
    height:14px!important;
    font-size:11px!important;
  }
}
