.game-share-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  color: #193d38;
  background: #fffdf7;
  box-shadow: 0 28px 90px rgba(13, 50, 43, .3);
}
.game-share-dialog,
.game-share-dialog * { box-sizing: border-box; }

.game-share-dialog::backdrop { background: rgba(18, 53, 47, .64); backdrop-filter: blur(3px); }
.game-share-dialog-card { padding: 28px; position: relative; }
.game-share-dialog-close { width: 36px; height: 36px; position: absolute; top: 16px; right: 16px; border: 0; border-radius: 50%; background: #f1eee4; color: #5d7168; font-size: 24px; line-height: 1; }
.game-share-dialog-heading { padding-right: 35px; display: flex; align-items: center; gap: 13px; }
.game-share-dialog-heading > span { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: #edf5df; font-size: 25px; }
.game-share-dialog-heading p { margin: 0 0 3px; color: #356e57; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-share-dialog-heading h2 { margin: 0; font-size: 24px; }
.game-share-dialog-form,
.game-share-dialog-result { margin-top: 23px; }
.game-share-dialog label { display: grid; gap: 6px; color: #294f47; font-size: 12px; font-weight: 800; }
.game-share-dialog label + label { margin-top: 14px; }
.game-share-dialog input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c8d2c5; border-radius: 10px; background: #fff; color: #193d38; }
.game-share-dialog input:focus { border-color: #f8c63f; outline: 3px solid rgba(248, 198, 63, .22); }
.game-share-dialog-note,
.game-share-dialog-result > p:last-child { margin: 13px 0 0; color: #5d7168; font-size: 12px; line-height: 1.55; }
.game-share-dialog-error { margin: 13px 0 0; padding: 9px 11px; border: 1px solid #efc0b8; border-radius: 9px; background: #fff0ed; color: #943b2f; font-size: 12px; }
.game-share-dialog-submit { width: 100%; min-height: 46px; margin-top: 18px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #c9503f, #a83d31); color: #fff; font-weight: 800; }
.game-share-dialog-submit:disabled { cursor: wait; opacity: .7; }
.game-share-dialog-success { margin: 0 0 14px; color: #356e57; font-weight: 800; }
.game-share-dialog-qr {
  margin: 16px auto 4px;
  padding: 14px;
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 1px dashed #cbd8c2;
  border-radius: 14px;
  background: #fbfdf6;
}
.game-share-dialog-qr[hidden] { display: none; }
.game-share-dialog-qr [data-share-qr] {
  padding: 8px;
  border-radius: 10px;
  background: #fff;
}
.game-share-dialog-qr img,
.game-share-dialog-qr canvas { display: block; }
.game-share-dialog-qr p { margin: 0; color: #5d7168; font-size: 12px; text-align: center; }
.game-share-dialog-result-actions { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.game-share-dialog-result-actions button,
.game-share-dialog-result-actions a { min-height: 43px; padding: 10px 12px; display: grid; place-items: center; border: 1px solid #d3dccf; border-radius: 10px; background: #fff; color: #194f45; font-size: 12px; font-weight: 800; text-decoration: none; }
.game-share-dialog-result-actions button:hover,
.game-share-dialog-result-actions a:hover { border-color: #f8c63f; background: #fff9e9; }

.game-share-manager-dialog { width: min(760px, calc(100% - 28px)); }
.game-share-manager-note { margin: 18px 0 0; padding: 10px 12px; border-radius: 10px; background: #f5f1e4; color: #5d7168; font-size: 12px; line-height: 1.55; }
.game-share-manager-list { min-width: 0; margin-top: 18px; display: grid; gap: 11px; }
.game-share-manager-item { min-width: 0; padding: 15px; border: 1px solid #d8dfd5; border-radius: 13px; background: #fff; }
.game-share-manager-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.game-share-manager-item-heading h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #193d38; font-size: 16px; }
.game-share-manager-item-heading span { padding: 4px 8px; flex: 0 0 auto; border-radius: 999px; background: #edf5df; color: #356e57; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.game-share-manager-item-heading span.is-expired { background: #f1eee4; color: #786f64; }
.game-share-manager-url { min-width: 0; max-width: 100%; margin: 8px 0 0; overflow: hidden; color: #4e6c64; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.game-share-manager-meta { margin: 5px 0 0; color: #7b887f; font-size: 11px; }
.game-share-manager-actions { margin-top: 12px; display: flex; justify-content: flex-end; gap: 7px; }
.game-share-manager-actions a,
.game-share-manager-actions button { min-height: 36px; padding: 7px 11px; display: inline-grid; place-items: center; border: 1px solid #d3dccf; border-radius: 9px; background: #fff; color: #194f45; font-size: 11px; font-weight: 800; text-decoration: none; }
.game-share-manager-actions a:hover,
.game-share-manager-actions button:hover:not(:disabled) { border-color: #f8c63f; background: #fff9e9; }
.game-share-manager-actions button.is-delete { border-color: #edc7c0; color: #a33d31; }
.game-share-manager-actions button:disabled { cursor: wait; opacity: .65; }
.game-share-manager-empty { padding: 28px 18px; border: 1px dashed #cbd5c8; border-radius: 13px; color: #5d7168; text-align: center; }
.game-share-manager-empty span { font-size: 30px; }
.game-share-manager-empty h3 { margin: 8px 0 0; color: #294f47; font-size: 17px; }
.game-share-manager-empty p { margin: 5px 0 0; font-size: 12px; }

@media (max-width: 480px) {
  .game-share-dialog-card { padding: 23px 18px; }
  .game-share-dialog-result-actions { grid-template-columns: 1fr; }
  .game-share-manager-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-share-manager-actions a,
  .game-share-manager-actions button { min-width: 0; padding-inline: 5px; }
}
