:root {
  --rose: #ff78ad;
  --rose-soft: #ffc0d8;
  --cream: #fff8f2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; background: #030106; color: var(--cream); font-family: var(--sans); }
button { font: inherit; }

.page-loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center;
  justify-items: center; gap: 13px; min-height: 100dvh;
  background: radial-gradient(circle at 50% 43%,rgba(151,20,91,.3),transparent 32%),linear-gradient(145deg,#08020d,#1c0718 54%,#09020d);
  opacity: 1; visibility: visible; transition: opacity .55s ease,visibility .55s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader p { margin: 5px 0 0; color: #fff3f8; font: 500 17px var(--serif); letter-spacing: .08em; }
.page-loader small { color: rgba(255,210,229,.62); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.loader-heart { position: relative; width: 72px; height: 72px; border: 2px solid rgba(255,164,202,.16); border-radius: 50%; }
.loader-heart::before { content: ''; position: absolute; inset: -2px; border: 2px solid transparent; border-top-color: #ff82b5; border-right-color: #ffc0d8; border-radius: 50%; filter: drop-shadow(0 0 7px rgba(255,95,164,.7)); animation: loaderSpin .8s linear infinite; }
.loader-heart span { position: absolute; inset: 0; display: grid; place-items: center; }
.loader-heart span::before { content: '♥'; color: #ff9fc5; font: 23px Georgia,serif; text-shadow: 0 0 18px rgba(255,83,158,.85); animation: loaderPulse 1.2s ease-in-out infinite; }
body.app-loading #startModal { opacity: 0; visibility: hidden; }

#startModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #120618 url('image2.webp') center / cover no-repeat;
  transition: opacity .32s ease, visibility .32s ease;
}

#startModal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,1,13,.34), transparent 35%, rgba(10,1,15,.28)),
    radial-gradient(circle at 50% 46%, rgba(255,66,157,.05) 0 27%, rgba(13,2,20,.15) 82%);
}

#startModal::after { content: ''; position: absolute; inset: 0; z-index: 10; background: radial-gradient(ellipse at center,transparent 52%,rgba(4,0,8,.22) 100%); pointer-events: none; }
#startModal.is-leaving { opacity: 0; visibility: hidden; }
#startModal.is-loading .intro,
#startModal.is-loading .intro-header,
#startModal.is-loading .intro-footer { opacity: .12; filter: blur(5px); pointer-events: none; }

#loadingState {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  color: #fff5fa;
  text-align: center;
  pointer-events: none;
  transition: opacity .35s ease,visibility .35s ease;
}
#startModal.is-loading #loadingState { opacity: 1; visibility: visible; }
#loadingState strong { font-family: var(--serif); font-size: clamp(28px,4vw,42px); font-weight: 600; letter-spacing: .02em; text-shadow: 0 0 24px rgba(255,91,167,.75); }
#loadingState small { color: rgba(255,224,237,.75); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.loading-spinner { position: relative; width: 68px; height: 68px; margin-bottom: 10px; border: 2px solid rgba(255,190,218,.18); border-top-color: #ff82b7; border-right-color: #ffd0e2; border-radius: 50%; box-shadow: 0 0 26px rgba(255,71,153,.3),inset 0 0 20px rgba(255,71,153,.12); animation: loadingSpin .9s linear infinite; }
.loading-spinner::before { content: '♥'; position: absolute; inset: 0; display: grid; place-items: center; color: #ff9fc5; font-size: 20px; animation: loadingCounterSpin .9s linear infinite; }
.loading-spinner i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; translate: -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #ff70ad; }

.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; left: 50%; bottom: -35%; width: min(90vw,1050px); aspect-ratio: 1; translate: -50%; border-radius: 50%; background: radial-gradient(circle,rgba(255,64,158,.25),transparent 68%); filter: blur(30px); animation: breathe 7s ease-in-out infinite; }
.stars, .stars-far { position: absolute; inset: 0; background-image: radial-gradient(circle at 8% 18%,#fff 0 1px,transparent 2px),radial-gradient(circle at 18% 72%,#ffd2e8 0 1px,transparent 2px),radial-gradient(circle at 36% 10%,#fff 0 1px,transparent 2px),radial-gradient(circle at 65% 16%,#fff 0 1px,transparent 2px),radial-gradient(circle at 82% 67%,#ffd2e8 0 1px,transparent 2px),radial-gradient(circle at 94% 31%,#fff 0 1px,transparent 2px); opacity: .5; animation: glimmer 5s ease-in-out infinite; }
.stars-far { transform: rotate(180deg) scale(.82); animation-delay: -2.5s; }

.shooting-star { position: absolute; width: 110px; height: 1px; border-radius: 50%; background: linear-gradient(90deg,transparent,rgba(255,224,239,.9)); filter: drop-shadow(0 0 5px #ff8fbd); transform: rotate(-24deg); opacity: 0; animation: shoot 8s linear infinite; }
.shooting-one { top: 19%; left: -15%; }
.shooting-two { top: 48%; left: -20%; animation-delay: -4.2s; animation-duration: 11s; }
.love-particle { position: absolute; z-index: 1; color: rgba(255,145,187,.52); font-family: Georgia,serif; text-shadow: 0 0 15px rgba(255,76,151,.65); user-select: none; animation: loveFloat 6s ease-in-out infinite; }
.p1 { left: 12%; top: 23%; font-size: 25px; animation-delay: -.8s; }
.p2 { right: 10%; top: 23%; font-size: 34px; animation-delay: -2.7s; }
.p3 { left: 18%; bottom: 22%; font-size: 20px; animation-delay: -1.5s; }
.p4 { right: 16%; bottom: 18%; font-size: 21px; animation-delay: -3.6s; }
.p5 { left: 31%; top: 15%; font-size: 18px; animation-delay: -4.7s; }
.p6 { right: 29%; bottom: 11%; font-size: 28px; animation-delay: -2s; }
.bokeh { position: absolute; border-radius: 50%; background: rgba(255,93,160,.22); box-shadow: 0 0 30px rgba(255,82,153,.55); filter: blur(2px); animation: bokehFloat 9s ease-in-out infinite; }
.b1 { width: 20px; height: 20px; left: 8%; bottom: 30%; }
.b2 { width: 13px; height: 13px; right: 7%; top: 28%; animation-delay: -3s; }
.b3 { width: 25px; height: 25px; right: 23%; bottom: 15%; animation-delay: -6s; }

.intro-header, .intro-footer { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.intro-header { padding-top: 25px; animation: revealDown 1s var(--ease) both; }
.brand-mark { color: var(--rose-soft); font-family: var(--serif); font-size: 34px; line-height: 1; text-shadow: 0 0 20px rgba(255,90,160,.45); }
.intro-footer { padding-bottom: 25px; }
.intro-footer i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); }

.intro { position: relative; z-index: 2; display: grid; grid-template-rows: auto minmax(0,1fr) auto; align-items: center; justify-items: center; row-gap: 4px; width: min(100%,980px); height: 100%; margin: 0 auto; padding: 30px 28px 74px; text-align: center; }
.intro-copy { position: relative; z-index: 3; }
.kicker { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 0 0 14px; color: #ffd4e5; font-size: 10px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(20,0,12,.95),0 0 14px rgba(255,92,163,.72); animation: revealUp .9s var(--ease) .15s both; }
.kicker span { width: 29px; height: 1px; background: linear-gradient(90deg,transparent,var(--rose)); }
.kicker span:last-child { transform: rotate(180deg); }

.title { margin: 0; color: #fffaf6; font-family: var(--serif); font-size: clamp(50px,5.5vw,79px); font-weight: 600; letter-spacing: -.045em; line-height: .83; -webkit-text-stroke: .4px rgba(255,255,255,.52); text-shadow: 0 2px 2px rgba(18,0,12,.9),0 5px 18px rgba(9,1,12,.95),0 0 34px rgba(255,86,159,.34); animation: revealUp 1.05s var(--ease) .25s both; }
.title em { display: inline-block; margin-top: 13px; color: #ffc0da; font-weight: 600; -webkit-text-stroke: .3px rgba(255,232,241,.42); text-shadow: 0 2px 2px rgba(25,0,15,.9),0 4px 16px rgba(9,1,12,.82),0 0 26px rgba(255,82,161,.58); }
.mobile-break { display: none; }

.stage { position: relative; z-index: 2; display: grid; place-items: center; flex: 0 0 auto; width: 560px; height: 430px; margin: 0; animation: revealUp 1s var(--ease) .38s both; }
.stage-glow { position: absolute; width: 440px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,rgba(255,206,224,.27),rgba(255,60,150,.12) 43%,transparent 70%); filter: blur(8px); animation: breathe 4s ease-in-out infinite; }
.stage-orbit { position: absolute; width: 420px; height: 152px; border: 1px solid rgba(255,190,216,.38); border-radius: 50%; transform: rotate(-12deg); }
.orbit-one::after { content: '✦'; position: absolute; top: 2px; right: 22px; color: #ffd3e3; font-size: 10px; text-shadow: 0 0 10px var(--rose); }
.orbit-two { width: 480px; height: 188px; transform: rotate(17deg); opacity: .55; }
.bear { position: relative; z-index: 2; display: block; width: 560px; max-width: none; height: auto; filter: drop-shadow(0 24px 22px rgba(8,1,10,.68)) drop-shadow(0 0 34px rgba(255,160,198,.3)); animation: float 4.2s ease-in-out infinite; }
.stage-floor { position: absolute; bottom: 0; width: 230px; height: 14px; border-radius: 50%; background: rgba(4,0,5,.46); filter: blur(7px); }

#startBtn { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; padding: 20px 46px; border: 0; border-radius: 100px; background: radial-gradient(120% 160% at 50% -30%, #ffd0e4 0%, #ff8fc0 26%, #fb63a5 54%, #ee4694 82%, #dd3785 100%); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -10px 18px -14px rgba(120,4,58,.4) inset, 0 10px 24px -6px rgba(72,3,36,.5), 0 2px 6px rgba(72,3,36,.35), 0 0 30px -4px rgba(255,72,152,.45); color: #fff; cursor: pointer; animation: revealUp 1s var(--ease) .52s both; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
#startBtn::before { content: ''; position: absolute; left: 8%; right: 8%; top: 2px; height: 42%; border-radius: 100px 100px 60% 60% / 100px 100px 22px 22px; background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.06) 62%, transparent); pointer-events: none; transition: opacity .5s var(--ease); }
#startBtn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 36%, rgba(255,255,255,.38) 50%, transparent 64%); transform: translateX(-130%); pointer-events: none; transition: transform 1s var(--ease); }
#startBtn:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.62) inset, 0 -10px 18px -14px rgba(120,4,58,.35) inset, 0 18px 34px -8px rgba(72,3,36,.52), 0 2px 6px rgba(72,3,36,.3), 0 0 52px -4px rgba(255,72,152,.7); }
#startBtn:hover::before { opacity: .82; }
#startBtn:hover::after { transform: translateX(130%); }
#startBtn:focus-visible { outline: 2px solid #ffd7e8; outline-offset: 6px; }
#startBtn:active { transform: translateY(-1px) scale(.988); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -8px 16px -10px rgba(120,4,58,.6) inset, 0 6px 14px -6px rgba(72,3,36,.5), 0 0 24px -6px rgba(255,72,152,.4); }
#startBtn:hover .btn-icon { transform: translateX(4px); }
.btn-icon { position: relative; display: inline-grid; place-items: center; opacity: 1; filter: drop-shadow(0 1px 1px rgba(150,10,72,.4)); transition: transform .5s var(--ease); }
.btn-copy { position: relative; font-size: 18px; font-weight: 900; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; -webkit-text-stroke: .35px rgba(255,255,255,.7); text-shadow: 0 1px 2px rgba(118,4,58,.72),0 0 10px rgba(255,255,255,.24); }

#galaxy-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#fx { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#galaxyUI { position: fixed; inset: 0; z-index: 15; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 1s ease .4s,visibility 1s ease .4s; }
body.galaxy-started #galaxyUI { opacity: 1; visibility: visible; }
#galaxyUI .sound-btn, #galaxyUI .galaxy-hint { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.galaxy-started #galaxyUI .sound-btn, body.galaxy-started #galaxyUI .galaxy-hint { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fullscreen-btn { position: absolute; top: 28px; left: 30px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(12,4,18,.42); color: #fff; cursor: pointer; pointer-events: auto; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fullscreen-btn .collapse-icon { display: none; }
.fullscreen-btn.is-active .expand-icon { display: none; }
.fullscreen-btn.is-active .collapse-icon { display: block; }
.fullscreen-btn:focus-visible { outline: 2px solid #ffd7e8; outline-offset: 4px; }
.sound-btn { position: absolute; top: 28px; right: 30px; display: flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(12,4,18,.42); color: #fff; cursor: pointer; pointer-events: auto; backdrop-filter: blur(10px); }
.sound-label { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 13px; }
.sound-bars i { width: 2px; height: 45%; border-radius: 3px; background: #ff9fc5; animation: sound 1s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.sound-bars i:nth-child(3) { height: 70%; animation-delay: -.25s; }
.sound-bars i:nth-child(4) { height: 35%; animation-delay: -.7s; }
.sound-btn.is-muted .sound-bars i { animation: none; height: 2px; }
.galaxy-hint { position: absolute; bottom: 25px; left: 50%; translate: -50%; padding: 10px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; background: rgba(8,2,14,.42); color: rgba(255,255,255,.65); font-size: 9px; letter-spacing: .08em; white-space: nowrap; backdrop-filter: blur(10px); }
.galaxy-hint .hint-symbol { color: #ff9fc5; margin-right: 5px; }
.hint-mobile { display: none; }

@media (hover:none), (pointer:coarse) {
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

.error { position: fixed; z-index: 1001; right: 20px; bottom: 20px; max-width: 420px; padding: 12px 16px; border: 1px solid rgba(255,137,187,.45); border-radius: 12px; background: rgba(40,0,22,.88); color: #ffe2ef; font: 12px var(--sans); display: none; }

@keyframes revealUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes revealDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(2px) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes breathe { 0%,100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes glimmer { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes sound { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes shoot { 0% { opacity:0; transform:translate(-10vw,-5vh) rotate(-24deg); } 7% { opacity:1; } 22%,100% { opacity:0; transform:translate(125vw,45vh) rotate(-24deg); } }
@keyframes loveFloat { 0%,100% { transform:translateY(8px) rotate(-5deg) scale(.92); opacity:.3; } 50% { transform:translateY(-14px) rotate(7deg) scale(1.08); opacity:.75; } }
@keyframes bokehFloat { 0%,100% { transform:translate(0,10px) scale(.8); opacity:.25; } 50% { transform:translate(14px,-18px) scale(1.18); opacity:.62; } }
@keyframes loadingSpin { to { transform: rotate(360deg); } }
@keyframes loadingCounterSpin { to { transform: rotate(-360deg); } }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%,100% { transform: scale(.86); opacity: .65; } 50% { transform: scale(1.08); opacity: 1; } }

@media (min-width:701px) {
  .intro { padding: 4px 28px 45px; }
  .brand-mark { font-size: 46px; }
  .kicker { gap: 17px; margin-bottom: 6px; font-size: 13px; }
  .kicker span { width: 42px; }
  .title { font-size: clamp(58px,6vw,72px); }
  .title em { margin-top: 6px; }
  .stage { width: 460px; height: 350px; }
  .bear { width: 450px; }
  .stage-glow { width: 370px; }
  .stage-orbit { width: 350px; height: 130px; }
  .orbit-two { width: 410px; height: 160px; }
  #startBtn { padding: 17px 38px; }
  .btn-copy { font-size: 16px; }
  .galaxy-hint { bottom: 30px; padding: 13px 22px; font-size: 13px; }
  .galaxy-hint .hint-symbol { margin-right: 8px; font-size: 15px; }
}

@media (max-width:700px) {
  #startModal { background-image: url('image3.webp'); background-position: center; }
  #startModal::after { inset: 7px; }
  .intro-header { padding-top: 20px; }
  .intro { row-gap: 16px; padding: 34px 20px 40px; }
  .title { width: 100%; font-size: clamp(46px,13vw,58px); line-height: .8; }
  .mobile-break { display: none; }
  .title em { margin-top: 11px; font-size: .78em; }
  .stage { width: 350px; height: 295px; margin: 0; }
  .bear { top: -36px; width: 290px; }
  .stage-orbit { width: 280px; }
  .orbit-two { width: 320px; }
  #startBtn { top: -65px; gap: 10px; padding: 16px 34px; }
  .btn-copy { font-size: 15px; }
  .btn-icon svg { width: 16px; height: 16px; }
  .intro-footer { padding-bottom: 18px; }
  .fullscreen-btn { top: 18px; left: 18px; }
  .sound-btn { top: 18px; right: 18px; padding: 10px 12px; }
  .sound-label { display: inline; }
  .galaxy-hint { bottom: 18px; }
}

@media (max-height:720px) {
  .title { font-size: clamp(45px,6vw,64px); }
  .intro { row-gap: 2px; padding: 8px 20px 40px; }
  .stage { width: 305px; height: 255px; margin: 0; }
  .bear { width: 315px; }
  .intro-header { padding-top: 16px; }
  .intro-footer { padding-bottom: 10px; }
}

@media (max-width:700px) and (max-height:720px) {
  .bear { width: 290px; }
}

@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; } }

[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}button:focus-visible,canvas:focus-visible{outline:3px solid #ffe0ee;outline-offset:4px}
.kicker #coverEyebrow{width:auto;height:auto;background:none;min-width:0;overflow-wrap:anywhere}.title,.btn-copy,.galaxy-hint{overflow-wrap:anywhere}.intro-copy{min-width:0;max-width:100%}.title{line-height:.96}.title em{line-height:1}
html[data-custom-accent] #startBtn{background:linear-gradient(160deg,color-mix(in srgb,var(--rose),white 25%),var(--rose),color-mix(in srgb,var(--rose),black 20%))}html[data-custom-accent] .title em{color:color-mix(in srgb,var(--rose),white 35%)}
#startModal{overflow-y:auto;overflow-x:hidden;grid-template-rows:auto minmax(min-content,1fr) auto}.intro{height:auto;min-height:100%;grid-template-rows:auto auto auto;padding-bottom:32px}.stage{max-width:100%;max-height:42dvh;min-height:150px}.bear{max-width:100%;max-height:100%;object-fit:contain}.stage-orbit,.stage-glow{max-width:95%}#startBtn{top:auto;max-width:100%;min-height:44px}.btn-copy{min-width:0;letter-spacing:.12em}
.galaxy-hint{max-width:calc(100% - 24px);white-space:normal;text-align:center}.sound-btn{min-height:44px}.motion-btn{position:absolute;pointer-events:auto;left:50%;top:28px;translate:-50%;width:44px;height:44px;border-radius:50%;border:1px solid #ffffff40;background:#10051edd;color:#fff;font:18px var(--sans);cursor:pointer}
#galaxyFallback{position:fixed;inset:0;overflow:auto;padding:88px 20px 110px;background:#100318 url('image2.webp') center/cover;color:#fff;text-align:center}#galaxyFallback h1{font:600 clamp(28px,7vw,50px) var(--serif);overflow-wrap:anywhere;margin:12px 0 26px}#galaxyFallback p{font:600 24px var(--serif);overflow-wrap:anywhere;margin:12px}.fallback-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:14px;max-width:720px;margin:24px auto}.fallback-photos img{width:100%;aspect-ratio:1;object-fit:cover;border:3px solid var(--rose);border-radius:18px}.galaxy-fallback #galaxy-canvas,.galaxy-fallback #fx{visibility:hidden}
html[data-galaxia-editor="true"] .galaxy-hint{bottom:80px}html[data-galaxia-editor="true"] #galaxyFallback{padding-bottom:160px}html[data-galaxia-editor="true"] .intro{padding-bottom:96px}
@media(max-width:700px){.motion-btn{top:18px}.title{font-size:clamp(36px,12vw,58px)}.intro{padding-top:20px;row-gap:14px}.stage{width:min(350px,100%);height:min(295px,38dvh)}.bear{top:0}.stage-floor{bottom:0}.hint-desktop{display:none}.hint-mobile{display:inline}.intro-header{padding-top:16px}.sound-label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.stage,.title,.intro-header,#startBtn{animation:none!important}.sky .shooting-star,.sky .love-particle{animation:none!important}.page-loader{transition:none}#startModal,#galaxyUI{transition:none}}

/* The opening card fits the actual viewport, including the editor's iframe. */
html, body, #root { height: 100%; min-height: 0; }
#startModal {
  height: 100%; min-height: 0; overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.sky { overflow: hidden; }
.intro-header { padding-top: clamp(8px, 2dvh, 24px); }
.brand-mark { font-size: clamp(26px, 5dvh, 46px); }
.intro-footer { padding-bottom: clamp(8px, 2dvh, 18px); }
.intro {
  width: min(100%, 980px); height: 100%; min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: clamp(8px, 2dvh, 18px);
  padding: clamp(6px, 1.5dvh, 16px) clamp(16px, 4vw, 28px) clamp(12px, 3dvh, 28px);
}
.intro-copy { width: 100%; }
.kicker { margin-bottom: clamp(6px, 1.5dvh, 14px); gap: 10px; font-size: clamp(8px, min(2vw, 1.65dvh), 12px); letter-spacing: .2em; }
.kicker > span:first-child, .kicker > span:last-child { flex: 0 0 24px; }
.title { font-size: var(--cover-title-size, clamp(28px, min(9vw, 8dvh), 72px)); line-height: 1.08; }
.title em { margin-top: clamp(4px, 1dvh, 10px); font-size: .8em; line-height: 1.08; }
.stage { display: block; width: min(560px, 100%); height: 100%; min-height: 0; max-height: 430px; margin: 0; overflow: hidden; }
.bear { position: absolute; inset: 6px 0; width: 100%; height: calc(100% - 12px); min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.stage-glow { left: 50%; top: 50%; translate: -50% -50%; width: min(90%, 370px); max-height: 100%; }
.stage-orbit { left: 50%; top: 50%; translate: -50% -50%; width: min(85%, 350px); height: 38%; max-height: 130px; }
.orbit-two { width: min(95%, 410px); height: 48%; max-height: 160px; }
.stage-floor { left: 50%; translate: -50%; bottom: 6px; width: min(50%, 230px); }
#startBtn { top: auto; min-height: 44px; max-width: 100%; padding: clamp(10px, 2dvh, 17px) clamp(20px, 5vw, 38px); gap: 10px; }
.btn-copy { font-size: clamp(11px, min(2.8vw, 2.5dvh), 16px); letter-spacing: .08em; text-indent: 0; }
html[data-galaxia-editor="true"] .intro { padding-bottom: clamp(12px, 3dvh, 28px); }
html[data-galaxia-editor="true"] #startModal { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); }
@media (max-height: 450px) {
  .intro-header { padding-top: 6px; }
  .brand-mark { font-size: 26px; }
  .intro-footer { padding-bottom: 6px; }
  .intro { row-gap: 6px; padding-top: 4px; padding-bottom: 8px; }
  .kicker { margin-bottom: 4px; }
  #startBtn { padding-top: 8px; padding-bottom: 8px; }
  html[data-galaxia-editor="true"] .intro { padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .bear { animation: none !important; } }

/* A compact CD control; rotation follows the audio's actual playback state. */
#galaxyUI .sound-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; min-height: 44px;
  padding: 4px; border-radius: 50%;
  background: rgba(12, 4, 18, .72);
  box-shadow: 0 2px 12px #0005;
}
.sound-disc {
  position: relative; display: block;
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 15deg, #e9eaf1, #9695ad 15%, #fff5fb 26%, #f3aad4 35%, #bfcce7 44%, #fafaff 53%, #9e9cb3 65%, #e6b4de 76%, #f9f8ff 88%, #e9eaf1);
  box-shadow: inset 0 0 0 1px #fff9, 0 0 9px #ff9fc53d;
  animation: galaxiaCdSpin 4s linear infinite;
  animation-play-state: paused;
  transition: opacity .2s, filter .2s;
}
.sound-disc::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  translate: -50% -50%; width: 10px; height: 10px;
  border: 2px solid #e5d9eccc; border-radius: 50%;
  background: #170b20; box-shadow: 0 0 0 1px #66537188;
}
.sound-disc::after { content: ''; position: absolute; inset: 5px; border: 1px solid #fff5; border-radius: 50%; }
.sound-btn[aria-pressed="true"] .sound-disc { animation-play-state: running; }
.sound-btn.is-muted .sound-disc { opacity: .65; filter: grayscale(.5); }
@keyframes galaxiaCdSpin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { #galaxyUI .sound-btn { width: 44px; height: 44px; } .sound-disc { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .sound-disc { animation: none !important; } }

/* The cover remains visible while the scene prepares. */
#startBtn[aria-busy="true"] { cursor: progress; }
#startBtn[aria-busy="true"] .btn-icon svg { visibility: hidden; }
#startBtn[aria-busy="true"] .btn-icon::after { content: ''; position: absolute; width: 15px; height: 15px; border: 2px solid #ffffff65; border-top-color: #fff; border-radius: 50%; animation: loaderSpin .8s linear infinite; }
