#page-dialog:has(#layer > .gp-intro) {
  inset: 0; margin: 0; padding: 0; width: 100%; max-width: none;
  height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; background: #100b1b;
}
.gp-intro {
  width: 100%; min-height: 100dvh; max-width: none; padding: 0;
  color: white; background: #100b1b; text-align: center;
}
.gp-intro > .close-layer {
  z-index: 5; top: max(12px,env(safe-area-inset-top)); right: 20px; width: 42px; height: 42px;
  border: 1px solid #ffffff55; border-radius: 50%; color: white; background: #160f27a6;
}
.gp-intro .gp-screen {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center;
  align-items: center; min-height: 100dvh; overflow: clip;
}
.gp-empty-title { margin: 0; font-size: 30px; }
.gp-empty-copy { margin: 8px 0 24px; color: #ddd8e6; }
.gp-done, .gp-return, .gp-terms { font: inherit; cursor: pointer; }
.gp-done {
  width: min(100%,360px); min-height: 52px; border: 1px solid #b39aff; border-radius: 14px; padding: 8px 20px;
  background: linear-gradient(#6d40f4,#5130bb); color: white; font-weight: 800;
}
.gp-intro[data-phase=unavailable] .gp-done { width: min(80%,300px); }
.gp-return { background: transparent; border: 0; color: white; margin-top: 12px; padding: 10px 24px; }
.gp-stage .gp-screen {
  --title-w: min(calc((100vw - 40px) * .92),331.2px);
  /* #54200 reserves the title, 22px eyebrow and 24px clearance in its measured column. */
  --island-w: max(0px,min(94vw,460px,calc((100cqh - var(--title-w) * 268 / 984 - 46px) / .9653333333)));
  --pack-w: calc(var(--island-w) * .4);
  --pack-h: calc(var(--pack-w) * 1030 / 600);
  --island-h: calc(var(--island-w) * 570 / 900);
  --duration: 1750ms;
  --out: cubic-bezier(.16,1,.3,1);
  justify-content: flex-end; height: 100dvh;
}
.gp-sky, .gp-sky > *, .gp-flash, .gp-skip { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-sky { z-index: -1; overflow: hidden; }
.gp-sky img { display: block; object-fit: cover; object-position: top center; }
.gp-dim { background: #100a1b; opacity: 0; }
.gp-preview-label {
  position: absolute; top: max(14px,env(safe-area-inset-top)); left: 16px;
  color: white; background: #1a0f2eb3; border-radius: 12px; padding: 3px 9px; font-size: 12px;
}
.gp-column { display: flex; flex-direction: column; align-items: center; justify-content: end; flex: 1; container-type: size; min-height: 0;
  padding: calc(16px + env(safe-area-inset-top)) 0 8px; width: 100%; }
.gp-props { position: relative; width: var(--island-w); height: calc(var(--pack-h) + var(--island-h) * .74); }
.gp-island { position: absolute; left: 0; bottom: 0; width: var(--island-w); height: var(--island-h); }
.gp-pack, .gp-fan {
  position: absolute; left: 50%; top: 0; translate: -50% 0;
  width: var(--pack-w); height: var(--pack-h); transform-origin: center bottom;
}
.gp-float { position: relative; width: 100%; height: 100%; transform: translateY(-4%); }
.gp-wrapper { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px #ffd678a6); }
.gp-crown { position: absolute; left: 50%; top: -15%; width: 78%; height: calc(var(--pack-w) * .16);
  translate: -50% -50%; rotate: -6deg; border: 3px solid #ffe3a0; border-radius: 50%; box-shadow: 0 0 12px 4px #ffbe45d9, inset 0 0 8px #ffbe45b3; }
.gp-card { position: absolute; left: 50%; top: 50%; height: 76%; width: auto; max-width: none;
  translate: -50% -50%; transform: translate(calc(var(--x) * var(--pack-w)),calc(var(--y) * var(--pack-h))) rotate(var(--angle));
  transition: transform 320ms var(--out), opacity 320ms var(--out); }
.gp-pool, .gp-shadow, .gp-ring, .gp-halo, .gp-burst, .gp-trail { position: absolute; left: 50%; translate: -50% -50%; pointer-events: none; }
.gp-pool { top: calc(var(--pack-h) - var(--island-h) * .11); width: 62%; height: calc(var(--island-h) * .22);
  background: radial-gradient(ellipse,#ffe2a0e6,#ffbe5a66 40%,transparent 72%); }
.gp-shadow { top: calc(var(--pack-h) - var(--pack-w) * .12); width: calc(var(--pack-w) * 1.25); height: calc(var(--pack-w) * .24);
  background: radial-gradient(ellipse,#120a1ebf,#120a1e59 45%,transparent 72%); }
.gp-halo, .gp-ring, .gp-burst { top: calc(var(--pack-h) / 2); border-radius: 50%; aspect-ratio: 1; }
.gp-halo { width: calc(var(--pack-w) * 2.6); background: radial-gradient(circle,#ffecbed9,#ffcc6e73 30%,transparent 68%); }
.gp-ring { width: calc(var(--pack-w) * 1.1); border: 3px solid #ffe3a0; opacity: 0; }
.gp-burst { width: calc(var(--pack-w) * 3.2); opacity: 0;
  background: radial-gradient(circle,#fff4d6 0%,transparent 34%),repeating-conic-gradient(#ffc861 0deg 6deg,transparent 6deg 22deg);
  mask-image: radial-gradient(circle,#000 30%,transparent 70%); }
.gp-trail { bottom: 50%; translate: -50% 0; width: 55%; height: 260%; opacity: 0;
  background: radial-gradient(ellipse 50% 100% at 50% 100%,#fff6dcf2,#ffd68273 35%,transparent 100%); }
.gp-eyebrow { position: relative; margin-top: calc(var(--island-h) * -.3); padding: 2px 10px;
  background: #1a0f2eb3; border: 1px solid #ffe9a080; border-radius: 99px; color: #ffe9a0;
  font-size: 10px; font-weight: 800; line-height: 16px; letter-spacing: 3px; text-transform: uppercase; }
.gp-title { position: relative; width: var(--title-w); margin: 0; }
.gp-wordmark { display: block; width: 100%; height: auto; }
.gp-panel { position: relative; display: grid; justify-items: center; gap: 14px; width: 100%;
  padding: 16px 20px max(16px,env(safe-area-inset-bottom)); background: linear-gradient(transparent,#130b1dd9 48%); }
.gp-explainer { max-width: 34ch; margin: 0; color: white; font-size: 17px; font-weight: 800; line-height: 23px; text-shadow: 0 2px 4px #000c; text-wrap: balance; }
.gp-terms { padding: 4px 10px; color: #f4ce8f; text-decoration: underline; font-size: 13px; font-weight: 600; }
.gp-flash { pointer-events: none; background: #fff8ea; opacity: 0; }
.gp-skip { z-index: 2; border: 0; background: transparent; color: transparent; cursor: pointer; }
.gp-skip:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.gp-skip[hidden] { display: none; }
.gp-intro[data-phase=intro] :is(.gp-panel,.gp-eyebrow,.gp-title,.gp-crown) { visibility: hidden; }
.gp-intro[data-phase=intro] .gp-card { transform: none; opacity: 0; }
.gp-intro[data-phase=intro] :is(.gp-day,.gp-dim,.gp-island,.gp-pack,.gp-pool,.gp-halo,.gp-shadow,.gp-ring,.gp-burst,.gp-flash,.gp-trail) {
  animation: var(--gp-animation) var(--duration) linear both;
}
.gp-day { --gp-animation: gp-day; } .gp-dim { --gp-animation: gp-dim; }
.gp-island { --gp-animation: gp-rise; } .gp-pack { --gp-animation: gp-drop; }
.gp-halo,.gp-pool { --gp-animation: gp-day; } .gp-shadow { --gp-animation: gp-shadow; }
.gp-ring { --gp-animation: gp-wave; } .gp-burst { --gp-animation: gp-burst; }
.gp-flash { --gp-animation: gp-flash; } .gp-trail { --gp-animation: gp-streak; }
@keyframes gp-day { 0%,74.29% { opacity: 0 } 85.72%,100% { opacity: 1 } }
@keyframes gp-dim { 0%,81.15%,100% { opacity: 0 } 17.14%,34.29% { opacity: .3 } 74.29% { opacity: .62 } }
@keyframes gp-rise {
  0%,13.71% { opacity: 0; transform: translateY(90dvh) scale(.5) rotate(-7deg); animation-timing-function: ease-out }
  19.43% { opacity: 1 } 35.43% { transform: translateY(-26%) rotate(3deg) }
  43% { transform: translateY(4%) rotate(-1deg) } 55% { transform: translateY(-2%) } 67.43%,100% { transform: none }
}
@keyframes gp-drop {
  0%,50.29% { opacity: 0; transform: translateY(-70dvh); animation-timing-function: cubic-bezier(.55,.055,.675,.19) }
  54.86% { opacity: 1 } 74.28% { transform: translateX(-2px) scale(.90,.97) }
  74.29% { transform: scale(1.12) } 79.72% { transform: scale(1.10,.94) } 92% { transform: scale(1,1.01) } 100% { transform: none }
}
@keyframes gp-streak { 0%,50.29%,74.29%,100% { opacity: 0 } 74.28% { opacity: .95 } }
@keyframes gp-shadow { 0%,50.29% { opacity: 0 } 74.29%,100% { opacity: 1 } }
@keyframes gp-wave { 0%,74.29% { opacity: 0; transform: scale(1) } 74.4% { opacity: 1 } 100% { opacity: 0; transform: scale(12) } }
@keyframes gp-burst { 0%,72.57% { opacity: 0; transform: scale(.2) } 76% { opacity: 1 } 100% { opacity: 1; transform: scale(4) rotate(18deg) } }
@keyframes gp-flash { 0%,81.15% { opacity: 0 } 100% { opacity: 1 } }
.gp-intro[data-phase=landed]:not(.gp-still) .gp-flash { animation: gp-clear 500ms ease-out both; }
.gp-intro[data-phase=landed]:not(.gp-still) .gp-float { animation: gp-bob 3200ms ease-in-out infinite; }
.gp-intro[data-phase=landed]:not(.gp-still) .gp-title { animation: gp-title 420ms var(--out) both; }
.gp-intro[data-phase=landed]:not(.gp-still) .gp-panel { animation: gp-panel 480ms var(--out) 360ms both; }
@keyframes gp-clear { from { opacity: 1 } to { opacity: 0 } }
@keyframes gp-bob { 0%,100% { transform: translateY(-4%) } 50% { transform: translateY(calc(-4% - 4px)) } }
@keyframes gp-title { from { opacity: 0; transform: scale(1.8) } 30% { opacity: 1 } }
@keyframes gp-panel { from { opacity: 0; transform: translateY(60px) } }
.gp-still *, .gp-still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .gp-intro * { animation: none !important; transition: none !important; } }
