#page-dialog:has(#layer > .guest-pack-gate) {
  padding: 0;
  background: #100f24;
}
#page-dialog .guest-pack-gate > .close-layer { display: none; }
.page.guest-pack-gate {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: min(720px, 83dvh);
  padding: 0;
  color: #fff;
  background: #100f24;
  font-family: Manrope, system-ui, sans-serif;
}
.guest-pack-gate[data-gate-state=connect] {
  background: radial-gradient(ellipse at 50% 18%, #41245766, transparent 53%), #100f24;
}
.gpg-header { display:flex; justify-content:space-between; padding: max(12px,env(safe-area-inset-top)) 20px 0; }
.guest-pack-gate .gpg-icon {
  display:grid; place-items:center; width:44px; height:44px; min-height:0; padding:0;
  border:1px solid #ffffff29; border-radius:50%; background:#ffffff0c; color:#fff;
  font:400 34px/1 system-ui,sans-serif; text-decoration:none;
}
.gpg-headset {
  position:relative; width:18px; height:16px; border:2px solid currentColor;
  border-bottom:0; border-radius:10px 10px 3px 3px;
}
.gpg-headset::before,.gpg-headset::after { content:''; position:absolute; bottom:0; width:4px; height:7px; border-radius:2px; background:currentColor; }
.gpg-headset::before { left:0; } .gpg-headset::after { right:0; }
.guest-pack-gate .model-form,.guest-pack-gate .controls {
  display:flex; flex:1; flex-direction:column; gap:0; min-width:0;
  margin:0; border:0; padding:0; background:none;
}
.guest-pack-gate[data-gate-state=connect] .controls { display:contents; }
#page-dialog[data-native-presentation=full]:has(.guest-pack-gate) { padding:0; background:#100f24; }
#page-dialog[data-native-presentation=full] .guest-pack-gate { min-height:100dvh; }
.gpg-summary { display:flex; flex:1; flex-direction:column; justify-content:center; align-items:center; align-self:center;
  box-sizing:border-box; width:min(100%,424px); padding:8px 20px 16px; text-align:center; }
.gpg-hero { position:relative; display:grid; place-items:center; isolation:isolate; width:100%; height:200px; }
.gpg-hero::before,.gpg-hero::after { content:''; position:absolute; z-index:-1; border-radius:50%; background:#9f57ff33; }
.gpg-hero::before { width:158px; height:158px; box-shadow:0 0 65px #9f57ff8c; }
.gpg-hero::after { bottom:0; width:144px; height:28px; box-shadow:0 0 24px #9f57ff80; }
.gpg-hero img.gpg-pack { display:block; width:144px; height:192px; object-fit:contain; }
.gpg-spark { position:absolute; pointer-events:none; opacity:var(--spark-alpha); translate:-50% -50%;
  background:radial-gradient(circle,#fff 12%,#f9a8d4 36%,transparent 70%); filter:drop-shadow(0 0 4px #ec4899); }
.gpg-name { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:20px 0 10px;
  color:#c2a4ff; font-size:13px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.guest-pack-gate .gpg-title { margin:0; padding:0 4px; font:800 32px/38px Manrope,system-ui,sans-serif; letter-spacing:-.8px; }
.guest-pack-gate:has(.gpg-hero) .gpg-title { background:linear-gradient(#fff 30%,#887cee); color:transparent; background-clip:text; }
.guest-pack-gate .gpg-copy { margin:10px 0 0; font-size:16px; line-height:24px; color:#ffffff94; }
.gpg-field { width:100%; margin-top:36px; text-align:left; }
.gpg-field-label { display:block; margin-bottom:8px; font-size:13px; color:#ffffff94; }
.gpg-phone-row { display:flex; align-items:center; gap:12px; }
.gpg-picker { position:relative; flex:none; }
.gpg-picker select { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; }
.gpg-prefix,.gpg-phone { box-sizing:border-box; height:52px; padding:0 14px; color:#fff; background:#ffffff0d; border:1px solid #ffffff28; border-radius:12px; font:inherit; }
.gpg-prefix { display:flex; align-items:center; }
.gpg-phone { flex:1; width:0; }
.gpg-picker:focus-within { outline:2px solid #b79bff; border-radius:12px; }
.gpg-footer { display:grid; width:min(100%,520px); align-self:center; box-sizing:border-box; gap:16px; padding:16px 20px max(14px,env(safe-area-inset-bottom)); text-align:center; }
.guest-pack-gate .actions { display:block; margin:0; }
.gpg-footer .actions button { width:100%; min-height:56px; padding:12px; border:0; border-radius:999px; color:white; font:800 16px Manrope,system-ui,sans-serif;
  background:radial-gradient(at 92% 10%,#8c6cff,transparent 65%),linear-gradient(115deg,#7043e8,#4520b0); }
.gpg-footer .actions button:disabled { opacity:.45; cursor:default; }
.gpg-consent { color:#c0bdce; font-size:12px; line-height:18px; }
.gpg-consent input { vertical-align:middle; margin:0 5px 2px 0; accent-color:#8863ed; }
.gpg-consent a,.gpg-link { color:#fff; }
.gpg-link { display:grid; place-items:center; min-height:48px; font-weight:700; text-decoration:none; }
.guest-pack-gate .form-status { align-self:center; text-align:center; }
.guest-pack-gate .form-status:empty { display:none; }
.guest-pack-gate[data-gate-state=ready] .gpg-hero,.guest-pack-gate[data-gate-state=creator] .gpg-hero { height:136px; }
.guest-pack-gate:is([data-gate-state=ready],[data-gate-state=creator]) .gpg-pack { width:96px; height:128px; }
.guest-pack-gate:is([data-gate-state=ready],[data-gate-state=creator]) .gpg-hero::before { width:106px; height:106px; }
.guest-pack-gate:is([data-gate-state=ready],[data-gate-state=creator]) .gpg-hero::after { width:96px; }
@media (max-width:700px) {
  #page-dialog:has(#layer > .guest-pack-gate) .guest-pack-gate { min-height:100dvh; }
  #page-dialog[data-native-presentation=sheet]:has(#layer > .guest-pack-gate) .guest-pack-gate { min-height:0; }
}
@keyframes gpg-in { from { opacity:0; } }
@keyframes gpg-down { from { opacity:0; translate:0 -10px; } }
@keyframes gpg-float { 25% { translate:0 4px; } 75% { translate:0 -4px; } }
@keyframes gpg-pulse { 0% { scale:1.04; } 29%,100% { scale:1; } }
@keyframes gpg-sparkle { 0%,100% { opacity:0; scale:.45; } 50% { opacity:var(--spark-alpha); scale:1; } }
@media (prefers-reduced-motion:no-preference) {
  :root:not(.reduced-motion) .guest-pack-gate .gpg-header { animation:gpg-in .26s ease-out both; }
  :root:not(.reduced-motion) .gpg-hero img { animation:gpg-float 4.488s ease-in-out infinite,gpg-pulse 4.2s ease-out infinite; }
  :root:not(.reduced-motion) .gpg-spark { animation-name:gpg-sparkle; animation-timing-function:ease-in-out; animation-iteration-count:infinite; }
  :root:not(.reduced-motion) .guest-pack-gate :is(.gpg-name,.gpg-title,.gpg-copy) { animation:gpg-down .28s .07s ease-out both; }
  :root:not(.reduced-motion) .guest-pack-gate .gpg-field { animation:gpg-down .28s .18s ease-out both; }
  :root:not(.reduced-motion) .guest-pack-gate .gpg-footer { animation:gpg-in .28s .235s ease-out both; }
}
