/* Tiled slices are drawn in nine independent background-repeat cells.
 * Do not stretch corners, edges or centers with border-image.
 */
.tyt-tiled-host {
  isolation:isolate;
  background:transparent!important;
  border-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  box-sizing:border-box;
  image-rendering:pixelated;
}
.tyt-tiled-host:not(#multiplayer-social-panel){position:relative!important}
.production-game #multiplayer-social-panel.tyt-tiled-host{position:fixed!important}
.tyt-tiled-layer{
  position:absolute;
  inset:0;
  display:grid;
  pointer-events:none;
  z-index:-1;
  overflow:hidden;
}
.tyt-tiled-cell{
  display:block;
  min-width:0;
  min-height:0;
  image-rendering:pixelated;
  background-position:top left;
}
.production-game #welcome.tyt-tiled-host,
.production-game #exit.tyt-tiled-host,
.production-game #world-interact-button.tyt-tiled-host,
.production-game #multiplayer-panel button.tyt-tiled-host,
.production-game #multiplayer-island-tools button.tyt-tiled-host,
.production-game #multiplayer-social-panel button.tyt-tiled-host{
  padding:10px 15px;
  min-height:46px;
  color:#fff!important;
  text-shadow:var(--tyt-game-outline);
}
.production-game #multiplayer-panel .multiplayer-card.tyt-tiled-host,
.production-game #multiplayer-social-panel.tyt-tiled-host{
  padding:30px 26px;
  background:transparent!important;
  border:0!important;
  image-rendering:pixelated;
  border-image:none!important;
}
.production-game #multiplayer-social-panel.tyt-tiled-host{
  --tyt-paper:transparent;
  --tyt-soft:transparent;
  --tyt-line:rgba(26,33,43,.3);
}
.production-game #multiplayer-social-panel.tyt-tiled-host button{
  background:transparent!important;
}
.production-game .tyt-tiled-host:focus-visible{outline:3px solid white;outline-offset:2px}
.production-game #multiplayer-panel .tyt-tiled-host[hidden],
.production-game #multiplayer-social-panel.tyt-tiled-host[hidden]{display:none!important}
@media(max-width:600px) {
  .production-game #multiplayer-panel .multiplayer-card.tyt-tiled-host,
  .production-game #multiplayer-social-panel.tyt-tiled-host{padding:22px 18px}
}

/* Approved 9-slice proportions. Keep natural height for longer labels/panels. */
.production-game #welcome.tyt-tiled-host,
.production-game #exit.tyt-tiled-host,
.production-game #world-interact-button.tyt-tiled-host,
.production-game #multiplayer-panel button.tyt-tiled-host,
.production-game #multiplayer-island-tools button.tyt-tiled-host,
.production-game #multiplayer-social-panel button.tyt-tiled-host {
  min-width:158px;
  min-height:58px;
  padding:13px 16px;
}
.production-game #multiplayer-panel.multiplayer-panel {
  width:min(350px,calc(100vw - 24px));
}
.production-game #multiplayer-social-panel.tyt-tiled-host {
  width:min(350px,calc(100vw - 20px));
  min-height:230px;
}
.production-game #multiplayer-panel .multiplayer-card.tyt-tiled-host {
  min-height:230px;
}
@media(max-width:600px) {
  .production-game #welcome.tyt-tiled-host,
  .production-game #exit.tyt-tiled-host,
  .production-game #world-interact-button.tyt-tiled-host,
  .production-game #multiplayer-panel button.tyt-tiled-host,
  .production-game #multiplayer-island-tools button.tyt-tiled-host,
  .production-game #multiplayer-social-panel button.tyt-tiled-host {
    min-width:0;
    min-height:50px;
    padding:9px 12px;
  }
}

/* Social invitations reuse precisely the approved production banner and button
   9-slices. The close glyph intentionally stays small and unobtrusive. */
.production-game .multiplayer-social-toast.tyt-tiled-host{
  width:100%;min-height:184px;
  padding:22px 17px 22px;
  background:transparent!important;border:0!important;border-radius:0!important;
  color:#fff;text-shadow:var(--tyt-game-outline,0 1px 2px #173747);
  box-shadow:none!important;
}
.production-game .multiplayer-social-toast.tyt-tiled-host>strong,
.production-game .multiplayer-social-toast.tyt-tiled-host>p{
  display:block;position:relative;z-index:1;padding-right:25px;
  color:#fff;
}
.production-game .multiplayer-social-toast.tyt-tiled-host>strong{font-size:15px}
.production-game .multiplayer-social-toast-actions{
  display:flex;z-index:1;gap:6px;
  padding-right:0;align-items:center;flex-wrap:wrap;
}
.production-game .multiplayer-social-toast-actions button.tyt-tiled-host:not(.multiplayer-social-toast-close){
  flex:1 1 120px;min-width:119px!important;min-height:52px!important;
  padding:8px 11px!important;
  background:transparent!important;color:#fff!important;border:0!important;
  text-shadow:var(--tyt-game-outline,0 1px 2px #173747);
}
.production-game .multiplayer-social-toast-actions .multiplayer-social-toast-close{
  position:absolute;right:12px;top:7px;
  width:30px;min-width:30px!important;height:30px;min-height:30px!important;
  padding:0!important;border:0!important;border-radius:0;
  background:transparent!important;color:#fff!important;
  font-size:22px;line-height:1;
}
