.qg-site-share-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 18px;
  padding: 20px 24px;
  color: #f8fafc;
  border: 1px solid rgba(94, 234, 212, .28);
  border-radius: 18px;
  background: linear-gradient(135deg, #172554, #0f766e);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
  box-sizing: border-box;
  max-width: 100%;
}
.qg-site-share-strip div { display: grid; gap: 3px; }
.qg-site-share-strip strong { font-size: 1rem; }
.qg-site-share-strip span { color: #ccfbf1; font-size: .86rem; }
.qg-site-share-strip button,
[data-qg-share-trigger] { cursor: pointer; }
.qg-site-share-strip button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 16px;
  color: #0f172a;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}
.qg-site-share-strip button i { margin-right: 7px; color: #0f766e; }

.qg-site-share-strip.qg-page-share-strip {
  width: 100%;
  margin: 16px 0 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(23, 37, 84, .98), rgba(15, 118, 110, .88));
}
.qg-page-share-strip strong { font-size: .94rem; }
.qg-page-share-strip span { font-size: .8rem; }
.qg-page-share-strip button { min-width: 190px; }

.qg-game-share-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0;
  padding: 13px 15px;
  color: #f8fafc;
  border: 1px solid rgba(94, 234, 212, .3);
  border: 1px solid color-mix(in srgb, var(--qg-game-share-accent, #5eead4) 38%, transparent);
  border-radius: 12px;
  background: rgba(15, 23, 42, .82);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--qg-game-share-accent, #5eead4) 13%, transparent), transparent 58%),
    rgba(15, 23, 42, .76);
  box-shadow: 0 10px 26px rgba(2, 6, 23, .16);
  box-sizing: border-box;
  max-width: 100%;
}
.qg-game-share-copy { display: grid; min-width: 0; gap: 2px; }
.qg-game-share-copy strong { font-size: .9rem; line-height: 1.4; }
.qg-game-share-copy span { color: #cbd5e1; font-size: .76rem; line-height: 1.45; }
.qg-game-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  color: #f8fafc;
  border: 1px solid rgba(94, 234, 212, .44);
  border: 1px solid color-mix(in srgb, var(--qg-game-share-accent, #5eead4) 54%, transparent);
  border-radius: 10px;
  background: rgba(15, 76, 82, .92);
  background: color-mix(in srgb, var(--qg-game-share-accent, #5eead4) 18%, rgba(15, 23, 42, .92));
  font-weight: 850;
  white-space: nowrap;
}
.qg-game-share-button i { color: var(--qg-game-share-accent, #5eead4); }
.qg-game-share-button:hover,
.qg-game-share-button:focus-visible {
  color: #fff;
  border-color: var(--qg-game-share-accent, #5eead4);
  background: rgba(15, 96, 102, .94);
  background: color-mix(in srgb, var(--qg-game-share-accent, #5eead4) 28%, rgba(15, 23, 42, .9));
}

.qg-share-layer[hidden] { display: none !important; }
.qg-share-layer {
  position: fixed;
  z-index: 10080;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}
.qg-share-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(5px);
}
.qg-share-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(850px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  color: #172033;
  border: 1px solid #dbe5f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(2, 6, 23, .38);
}
.qg-share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.qg-share-head span { color: #0f766e; font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.qg-share-head h2 { margin: 3px 0 0; font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 900; }
.qg-share-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #475569;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
}
.qg-share-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin: 20px 0 13px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 15px;
  background: #f8fafc;
}
.qg-share-summary-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border-radius: 14px; background: linear-gradient(135deg, #2563eb, #0f766e); }
.qg-share-summary small { display: block; margin-bottom: 3px; color: #64748b; font-size: .76rem; }
.qg-share-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qg-share-message-label { display: block; margin: 3px 0 7px; color: #334155; font-size: .86rem; font-weight: 850; }
.qg-share-message-editor { width: 100%; min-height: 104px; resize: vertical; padding: 12px 13px; color: #172033; border: 1px solid #94a3b8; border-radius: 11px; background: #fff; font: inherit; line-height: 1.55; }
.qg-share-guidance { margin: 7px 0 14px; color: #475569; font-size: .8rem; line-height: 1.5; }
.qg-share-guidance i { color: #0f766e; }
.qg-share-url-row { display: flex; gap: 8px; }
.qg-share-url-row input { min-width: 0; min-height: 48px; flex: 1; padding: 10px 12px; color: #475569; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.qg-share-url-row button,
.qg-share-creator button { min-height: 48px; padding: 9px 13px; color: #fff; border: 0; border-radius: 10px; background: #0f766e; font-weight: 800; }
.qg-share-primary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 16px 0 20px; }
.qg-share-primary button,
.qg-share-services a,
.qg-share-services button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 9px 10px;
  color: #1e293b;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  font-size: .83rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.qg-share-primary button { color: #fff; border-color: #0f766e; background: #0f766e; }
.qg-share-primary button:first-child { border-color: #1d4ed8; background: #1d4ed8; }
.qg-share-primary button:last-child { color: #0f172a; border-color: #cbd5e1; background: #f8fafc; }
.qg-share-dialog > h3 { margin: 4px 0 10px; color: #475569; font-size: .78rem; font-weight: 900; letter-spacing: .06em; }
.qg-share-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.qg-share-services button { width: 100%; cursor: pointer; }
.qg-share-services-main a:nth-child(3) { color: #064e3b; border-color: #86efac; background: #f0fdf4; }
.qg-share-services-main a:nth-child(4) { color: #fff; border-color: #111; background: #111; }
.qg-share-services-main button { color: #fff; border-color: #5865f2; background: #5865f2; }
.qg-share-services-main button:last-child { grid-column: 1 / -1; }
.qg-share-more { margin-top: 12px; border: 1px solid #e2e8f0; border-radius: 13px; }
.qg-share-more summary { padding: 12px 14px; color: #334155; cursor: pointer; font-size: .86rem; font-weight: 850; }
.qg-share-more[open] summary { border-bottom: 1px solid #e2e8f0; }
.qg-share-more > div { margin: 12px; }
.qg-share-creator { display: flex; flex-wrap: wrap; gap: 8px; }
.qg-share-creator p { flex-basis: 100%; margin: 0 0 3px; color: #64748b; font-size: .82rem; }
.qg-share-creator button { cursor: pointer; }
.qg-share-video-status { width: 100%; min-height: 1.3em; color: #0f766e !important; font-weight: 750; }
.qg-share-video-downloads { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 8px; }
.qg-share-video-downloads[hidden] { display: none; }
.qg-share-video-downloads a { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 9px 13px; color: #fff; border-radius: 10px; background: #1d4ed8; font-size: .82rem; font-weight: 800; text-decoration: none; }
.qg-share-qr { display: flex; align-items: center; gap: 16px; margin: -5px 0 18px; padding: 14px; border: 1px dashed #94a3b8; border-radius: 14px; background: #f8fafc; }
.qg-share-qr img { width: 132px; height: 132px; border: 7px solid #fff; border-radius: 8px; }
.qg-share-qr div { display: grid; gap: 5px; }
.qg-share-qr span { color: #64748b; font-size: .82rem; }
.qg-share-status { min-height: 1.25em; margin: 12px 0 0; color: #0f766e; font-size: .84rem; font-weight: 800; text-align: center; }
.qg-share-privacy { margin: 4px 0 0; color: #64748b; font-size: .76rem; text-align: center; }
body.qg-share-open { overflow: hidden; }
.qg-share-dialog :is(a, button, input, textarea, summary):focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

.qg-invite-landing { width: min(850px, 100%); margin: 0 auto; padding: 8px 0 32px; }
.qg-invite-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: #64748b; font-size: .8rem; }
.qg-invite-breadcrumb a { color: #0f766e; text-decoration: none; }
.qg-invite-card { overflow: hidden; border: 1px solid #dbe5f0; border-radius: 24px; background: #fff; box-shadow: 0 20px 60px rgba(15, 23, 42, .12); }
.qg-invite-card > header { padding: 30px 32px 24px; color: #fff; background: linear-gradient(135deg, #172554, #0f766e); }
.qg-invite-kicker { font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.qg-invite-status { float: right; padding: 5px 10px; color: #0f172a; border-radius: 999px; background: #fff; font-size: .72rem; font-weight: 900; }
.qg-invite-status-accepted { color: #065f46; background: #d1fae5; }
.qg-invite-status-expired, .qg-invite-status-cancelled, .qg-invite-status-declined { color: #7f1d1d; background: #fee2e2; }
.qg-invite-card h1 { max-width: 680px; margin: 12px 0 0; font-size: clamp(1.5rem, 5vw, 2.35rem); font-weight: 900; line-height: 1.25; }
.qg-invite-message { margin: 14px 0 0; color: #ccfbf1; }
.qg-invite-player { display: flex; align-items: center; gap: 15px; padding: 22px 32px 10px; }
.qg-invite-player > span { display: grid; place-items: center; width: 58px; height: 58px; color: #fff; border-radius: 18px; background: var(--qg-invite-accent, #0f766e); font-size: 1.45rem; }
.qg-invite-player div { display: grid; }
.qg-invite-player small, .qg-invite-player em { color: #64748b; font-size: .76rem; font-style: normal; }
.qg-invite-player strong { color: #0f172a; font-size: 1.08rem; }
.qg-invite-conditions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 10px 32px 20px; }
.qg-invite-conditions div { padding: 13px; border: 1px solid #e2e8f0; border-radius: 13px; background: #f8fafc; }
.qg-invite-conditions dt { color: #64748b; font-size: .72rem; }
.qg-invite-conditions dd { margin: 4px 0 0; color: #0f172a; font-size: .88rem; font-weight: 850; }
.qg-invite-owner-note { display: flex; gap: 10px; margin: 0 32px 14px; padding: 13px 15px; color: #1e3a8a; border-radius: 12px; background: #eff6ff; font-size: .85rem; }
.qg-invite-owner-note.is-success { color: #065f46; background: #ecfdf5; }
.qg-invite-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 32px 24px; }
.qg-invite-primary, .qg-invite-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 11px; font-size: .88rem; font-weight: 900; text-decoration: none; }
.qg-invite-primary { color: #fff; border: 1px solid #0f766e; background: #0f766e; }
.qg-invite-secondary { color: #334155; border: 1px solid #cbd5e1; background: #fff; }
.qg-invite-primary:disabled, .qg-invite-secondary:disabled { opacity: .55; }
.qg-invite-feedback { min-height: 1.2em; margin: -8px 32px 15px; color: #b91c1c; font-size: .82rem; font-weight: 800; }
.qg-invite-card > footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 32px; color: #64748b; border-top: 1px solid #e2e8f0; background: #f8fafc; font-size: .75rem; }
.qg-invite-subactions { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: .82rem; }
.qg-invite-subactions a { color: #0f766e; font-weight: 800; }

@media (max-width: 620px) {
  .qg-site-share-strip {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin: 18px 0 10px;
    padding: 16px;
  }
  .qg-site-share-strip span { display: none; }
  .qg-site-share-strip button { width: 100%; }
  .qg-site-share-strip.qg-page-share-strip {
    margin: 12px 0 16px;
    padding: 14px;
  }
  .qg-page-share-strip button { min-width: 0; }
  .qg-game-share-strip { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
  .qg-game-share-copy span { display: none; }
  .qg-game-share-copy strong { font-size: .82rem; }
  .qg-game-share-button { width: 100%; min-height: 48px; padding-inline: 13px; }
  .qg-share-layer { padding: 0; place-items: end center; }
  .qg-share-dialog { width: 100%; max-height: 92vh; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .qg-share-primary { grid-template-columns: 1fr 1fr 1fr; }
  .qg-share-primary button { padding: 9px 5px; font-size: .75rem; }
  .qg-share-url-row { flex-direction: column; }
  .qg-share-url-row button { min-height: 48px; }
  .qg-share-services { grid-template-columns: repeat(2, 1fr); }
  .qg-share-qr { align-items: flex-start; }
  .qg-share-qr img { width: 112px; height: 112px; }
  .qg-invite-card > header, .qg-invite-player { padding-left: 20px; padding-right: 20px; }
  .qg-invite-conditions { grid-template-columns: 1fr 1fr; margin-left: 20px; margin-right: 20px; }
  .qg-invite-owner-note { margin-left: 20px; margin-right: 20px; }
  .qg-invite-actions { padding-left: 20px; padding-right: 20px; }
  .qg-invite-primary, .qg-invite-secondary { width: 100%; }
  .qg-invite-card > footer { padding-left: 20px; padding-right: 20px; }
}
