/* External /play host: the sandboxed generated document fills the tab. */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0b0b10;
}

#pcPlayFrame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0b0b10;
}

/* Host-brokered external http(s) exits; the iframe itself has no popup token. */
#pcPlayLeave {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 16px;
  box-sizing: border-box;
}
#pcPlayLeave[hidden] { display: none !important; }
#pcPlayLeave .pc-play-leave-card {
  max-width: 420px;
  width: 100%;
  background: #16161f;
  color: #f2f2f7;
  border-radius: 14px;
  padding: 20px 18px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font: 14px/1.45 system-ui, -apple-system, sans-serif;
}
#pcPlayLeave h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
#pcPlayLeave p { margin: 0 0 8px; opacity: 0.9; }
#pcPlayLeave .pc-play-leave-host {
  font-weight: 700;
  font-size: 16px;
  word-break: break-all;
}
#pcPlayLeave .pc-play-leave-url {
  font-size: 12px;
  opacity: 0.65;
  word-break: break-all;
}
#pcPlayLeave .pc-play-leave-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
#pcPlayLeave button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: 600 13px system-ui, sans-serif;
  cursor: pointer;
}
#pcPlayLeaveBack { background: #2a2a36; color: #f2f2f7; }
#pcPlayLeaveGo { background: #6c5ce7; color: #fff; }
