.mw-share-sheet {
  box-sizing: border-box;
  width: min(440px, calc(100% - 24px));
  max-width: none;
  margin: auto auto 14px;
  border: 1px solid #e8dac6;
  border-radius: 28px;
  padding: 11px 20px 18px;
  background: #fffaf0;
  color: #493a30;
  box-shadow: 0 12px 60px #32283d38;
  font-family: inherit;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  margin-bottom: max(14px, env(safe-area-inset-bottom));
}
.mw-share-sheet * {
  box-sizing: border-box;
}
.mw-share-sheet::backdrop {
  background: #33253970;
  backdrop-filter: blur(3px);
}
.mw-share-handle {
  width: 36px;
  height: 4px;
  background: #ddd0c2;
  border-radius: 10px;
  margin: 0 auto 16px;
}
.mw-share-sheet header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.mw-share-sheet header > div {
  flex: 1;
  min-width: 0;
}
.mw-share-sheet header span {
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 900;
  color: #a38b76;
}
.mw-share-sheet h2 {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.mw-share-sheet button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mw-share-sheet button:focus-visible {
  outline: 3px solid #9978af;
  outline-offset: 4px;
}
.mw-share-close {
  width: 44px;
  height: 44px;
  border: 1px solid #e5d9ca;
  border-radius: 50%;
  background: #f5edde;
  color: #a18b77;
  font-size: 27px !important;
  flex-shrink: 0;
}
.mw-share-invite {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  border: 1px solid #ffe3a0;
  border-radius: 18px;
  min-height: 83px;
  padding: 14px 13px;
  background: #f7d17a;
  color: #513c2a;
  box-shadow:
    0 4px 0 #d0a556,
    inset 0 2px 0 #fff0c5;
}
.mw-share-invite > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.mw-share-invite b {
  display: block;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.25px;
}
.mw-share-invite small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #957043;
  margin-top: 5px;
  line-height: 1.3;
}
.mw-share-friends {
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 800;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #ffeab4;
  border-radius: 13px;
  box-shadow: 0 2px 0 #dfbc72;
}
.mw-share-sheet svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.mw-share-invite:active {
  transform: translateY(3px);
  box-shadow: none;
}
.mw-share-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  border: 1px solid #e9ddcc;
  border-radius: 16px;
  padding: 12px 15px;
  background: #fffaf0;
  color: #7b6089;
  margin-top: 17px;
  font-size: 14px;
  font-weight: 800 !important;
}
.mw-share-link span {
  flex: 1;
  text-align: left;
}
.mw-share-copy {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 17px;
  padding: 11px;
  background: #f3ebdf;
  border-radius: 13px;
}
.mw-share-copy[hidden] {
  display: none;
}
.mw-share-copy label {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.3px;
  color: #a38b76;
  flex: 1;
  min-width: 0;
}
.mw-share-copy input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: #7e6b58;
  border: 0;
  background: transparent;
  margin-top: 6px;
  padding: 5px 0;
}
.mw-share-copy button {
  border: 0;
  border-radius: 9px;
  background: #e2d2e7;
  color: #735583;
  min-height: 40px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
}
.mw-share-message {
  font-size: 11px;
  color: #9f8771;
  line-height: 1.4;
  text-align: center;
  margin: 12px 0 0;
}
.mw-share-message:empty {
  display: none;
}
@media (min-width: 700px) {
  .mw-share-sheet {
    margin: auto;
    border-radius: 26px;
    padding: 20px 23px 25px;
  }
  .mw-share-handle {
    display: none;
  }
}
@media (max-width: 350px) {
  .mw-share-sheet {
    padding: 10px 15px 17px;
  }
  .mw-share-invite {
    gap: 8px;
    padding: 12px 10px;
  }
  .mw-share-invite b {
    font-size: 14px;
  }
  .mw-share-invite small {
    font-size: 10px;
  }
  .mw-share-friends {
    width: 32px;
    height: 34px;
    font-size: 24px;
  }
  .mw-share-sheet h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mw-share-sheet * {
    transition: none !important;
    animation: none !important;
  }
}
.mw-share-sheet [data-invite][hidden] {
  display: none;
}

/* A single, recognizable invite action beneath the board. */
button.play-with-friends {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #8d58b5;
  border-radius: 17px;
  background: #9864c0;
  color: #fffaf5;
  box-shadow:
    inset 0 1px 0 #ffffff45,
    0 4px 0 #754597;
  font:
    900 16px/1.2 "Nunito Sans",
    sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}
.play-with-friends svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.play-with-friends:hover {
  background: #8b57b4;
}
.play-with-friends:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 #ffffff45,
    0 1px 0 #754597;
}
.play-with-friends:focus-visible {
  outline: 3px solid #cfaaeb;
  outline-offset: 5px;
}
.play-with-friends:disabled {
  opacity: 0.5;
  cursor: default;
}
.game-social {
  display: flex;
  justify-content: center;
  margin: 22px auto 12px;
}
.embedded .game-social {
  display: none;
}
.mp-game-share {
  display: flex;
  width: 100%;
  max-width: 360px;
  margin: 20px auto 8px;
}
.pf-social {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 9px 16px 13px;
}
.pf-social .play-with-friends {
  width: 100%;
  max-width: 340px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 900;
}
@media (prefers-reduced-motion: reduce) {
  .play-with-friends {
    transition: none;
  }
}
