@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700;750&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --background: #100d17;
  --text: #f9f5f3;
  --muted: #a09aaa;
  --yellow: #ffdf59;
  --pink: #f49ae9;
  --purple: #ae5cf6;
  --orange: #ff9448;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 8px; border-radius: 12px; }
::selection { background: #f49ae940; color: white; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

#space, .ambient { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#space { z-index: 0; opacity: .65; }
.ambient { z-index: 1; background: radial-gradient(ellipse at 48% 46%, #a23dca0b, transparent 47%), radial-gradient(ellipse at 0 100%, #faac4d05, transparent 40%); }
.page { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; padding-inline: clamp(24px, 5vw, 80px); overflow: hidden; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 29px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 750; letter-spacing: -1.5px; }
.brand img { display: block; width: 35px; height: 35px; object-fit: contain; }
.brand-period { color: var(--yellow); }
.launch-status { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid #efe3ff20; border-radius: 100px; color: #c4b9cf; font-size: 13px; }
.status-light { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px #ffdf5925; }

main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 0 32px; }
.clock-block { text-align: center; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 2.4px; }
.clock { display: block; font-family: 'Space Grotesk', Arial, sans-serif; font-size: clamp(76px, 8.1vw, 116px); font-weight: 400; line-height: 1; letter-spacing: -6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-colon { display: inline-block; position: relative; top: -5px; margin-inline: 3px; color: #7c6b88; }
.clock-seconds { font-size: .42em; color: #97879f; letter-spacing: -2px; margin-left: 6px; }
.date-line { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 15px 0 0; color: #9e92a8; font-size: 13px; }
.date-separator { width: 3px; height: 3px; background: #6c5876; border-radius: 50%; }

.mascot-scene { position: relative; width: min(680px, 100%); height: clamp(275px, 34vh, 345px); isolation: isolate; }
.stage-halo { position: absolute; width: 460px; height: 330px; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(ellipse, #a848d917 0, #a848d908 34%, transparent 69%); }
.mascot { position: absolute; top: 46%; left: 50%; translate: -50% -50%; display: block; width: 215px; height: 212px; padding: 0; background: none; border: 0; cursor: pointer; touch-action: manipulation; isolation: isolate; }
.mascot-float { display: block; width: 100%; height: 100%; animation: float 5s ease-in-out infinite; }
.mascot-character { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 65%; }
.mascot-logo { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 13px 20px #00000035); user-select: none; }
.mascot-face { position: absolute; left: 64%; top: 33%; width: 26%; height: 30%; transform: rotate(12deg); }
.eyes { position: relative; display: flex; gap: 9px; align-items: center; width: 100%; animation: blink 6.6s linear infinite; transform-origin: 50% 52%; }
.eye { position: relative; display: block; width: 19px; height: 27px; background: #fffaf7; border-radius: 48%; box-shadow: 0 1px 1px #9b338b25; }
.eye-right { height: 25px; }
.pupil { position: absolute; width: 9px; height: 14px; left: 5px; top: 7px; background: #361943; border-radius: 50%; transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .15s ease-out; }
.pupil::after { content: ''; position: absolute; left: 2px; top: 2px; width: 3px; height: 4px; background: #fff; border-radius: 50%; }
.smile { position: absolute; top: 32px; left: 17px; width: 16px; height: 10px; border: 2px solid #6e245d; border-top: 0; border-radius: 0 0 14px 14px; transform: rotate(-2deg); }
.cheeks::before, .cheeks::after { content: ''; position: absolute; top: 29px; width: 9px; height: 4px; border-radius: 50%; background: #e75aad80; }
.cheeks::before { left: -4px; }
.cheeks::after { right: 2px; }
.mascot-hand { position: absolute; top: 60%; width: 19px; height: 28px; border-radius: 55% 55% 45% 45%; }
.hand-left { left: -5%; background: linear-gradient(100deg, #ffe45e, #ffb92e); transform: rotate(25deg); animation: hand-idle 5s ease-in-out infinite; }
.hand-right { right: -5%; top: 52%; background: linear-gradient(110deg, #f8a7ed, #df6ddd); rotate: -24deg; }
.mascot-shadow { position: absolute; left: 50%; top: 81%; width: 125px; height: 14px; translate: -50% 0; border-radius: 50%; background: #a05bd31b; filter: blur(5px); animation: shadow 5s ease-in-out infinite; }
.mascot-hint { position: absolute; top: 89%; left: 50%; translate: -50% 0; color: #b7a2c3; font-size: 12px; white-space: nowrap; }
.mascot-bubble { position: absolute; top: 13%; left: 65%; display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #ffdf59; color: #35223c; font-size: 15px; font-weight: 600; border-radius: 15px 15px 15px 3px; opacity: 0; scale: .75; transform-origin: 0 100%; transition: opacity .18s ease, scale .25s cubic-bezier(.2, 1.5, .5, 1); pointer-events: none; white-space: nowrap; }
.mascot-bubble span { font-size: 16px; }
.is-greeting .mascot-bubble { opacity: 1; scale: 1; }
.is-greeting .mascot-character { animation: hello .85s ease-in-out; }
.is-greeting .hand-right { animation: wave .3s ease-in-out 5 alternate; transform-origin: 50% 100%; }
.is-greeting .eye-right { animation: wink .9s ease-in-out; }
.is-greeting .mascot-hint { opacity: 0; }
.shape { position: absolute; display: block; animation: drift 7s ease-in-out infinite alternate; }
.shape-ring { width: 35px; height: 35px; left: 13%; top: 39%; border: 7px solid var(--yellow); border-radius: 50%; opacity: .85; }
.shape-capsule { width: 17px; height: 42px; right: 14%; top: 60%; border-radius: 100px; rotate: 38deg; background: var(--purple); animation-delay: -3s; }
.shape-spark { width: 28px; height: 28px; right: 22%; top: 15%; fill: var(--pink); animation-delay: -1s; }
.shape-flower { width: 28px; height: 28px; left: 26%; bottom: 17%; fill: none; stroke: #fba853; stroke-width: 3; stroke-linecap: round; animation-delay: -5s; }
.shape-dot { width: 6px; height: 6px; top: 23%; left: 31%; background: var(--orange); border-radius: 50%; }
.shape-mini-ring { width: 12px; height: 12px; right: 32%; bottom: 23%; border: 2px solid #f49ae970; border-radius: 50%; animation-delay: -4s; }
.scene-note { position: absolute; top: 42%; right: 2%; color: #947e9e; font-size: 12px; line-height: 1.7; rotate: -7deg; }

.message { position: relative; text-align: center; }
.destination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 15px; color: #dac9e3; font-size: 12px; font-weight: 500; letter-spacing: 1.9px; text-transform: uppercase; }
.destination > span { width: 14px; height: 2px; border-radius: 2px; background: var(--yellow); }
h1 { margin: 0; font-size: clamp(32px, 4.1vw, 56px); font-weight: 550; letter-spacing: -2.6px; line-height: 1.15; }
h1 > span { background: linear-gradient(100deg, #ffe75b 0%, #ffa54b 31%, #f99ce7 72%, #cc87f6 100%); color: transparent; -webkit-background-clip: text; background-clip: text; }
.description { margin: 17px 0 0; color: #aaa0b1; font-size: 16px; line-height: 1.8; }
.loading-dots { display: flex; justify-content: center; align-items: center; gap: 7px; height: 12px; margin: 22px auto 0; }
.loading-dots > span { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); animation: loading 1.7s ease-in-out infinite; }
.loading-dots > span:nth-child(2) { background: var(--orange); animation-delay: .15s; }
.loading-dots > span:nth-child(3) { background: var(--pink); animation-delay: .3s; }
.loading-dots > span:nth-child(4) { background: var(--purple); animation-delay: .45s; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-top: 1px solid #ddbbe812; color: #9b8ba5; font-size: 12px; }
.footer p { margin: 0; }
.footer-divider { display: inline-block; padding-inline: 12px; color: #5e4a69; }
#motion-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 12px 12px; color: #b0a0ba; background: none; border: 0; cursor: pointer; font-size: 14px; transition: color .2s; }
#motion-toggle:hover { color: var(--yellow); }
#motion-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
.is-paused .pupil, .is-paused .mascot-bubble { transition: none; }

@keyframes float { 0%, 100% { transform: translateY(5px) rotate(-4deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
@keyframes shadow { 0%, 100% { scale: 1.1 1; opacity: .8; } 50% { scale: .8 .8; opacity: .4; } }
@keyframes blink { 0%, 41%, 45%, 91%, 95%, 100% { scale: 1 1; } 43%, 93% { scale: 1 .08; } }
@keyframes drift { from { translate: 0 -6px; transform: rotate(-8deg); } to { translate: 4px 8px; transform: rotate(13deg); } }
@keyframes hand-idle { 0%, 100% { transform: rotate(25deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-3px); } }
@keyframes wave { from { transform: translateY(-13px) rotate(-22deg); } to { transform: translateY(-13px) rotate(26deg); } }
@keyframes hello { 0%, 100% { transform: rotate(0); } 28% { transform: rotate(-9deg) scale(1.04); } 65% { transform: rotate(6deg); } }
@keyframes wink { 0%, 20%, 80%, 100% { scale: 1 1; } 35%, 65% { scale: 1 .12; } }
@keyframes loading { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -4px; } }

@media (hover: hover) {
  .mascot:hover .mascot-logo { filter: drop-shadow(0 12px 25px #ae5cf625); }
  .mascot:hover ~ .mascot-hint { color: var(--pink); }
}
@media (max-height: 800px) and (min-width: 601px) {
  .header { padding-block: 22px; }
  main { padding-block: 14px 22px; }
  .clock { font-size: 88px; }
  .mascot-scene { height: 255px; }
  .mascot { width: 184px; height: 181px; }
  .mascot-face { scale: .86; transform-origin: 0 0; }
  h1 { font-size: 46px; }
  .loading-dots { margin-top: 18px; }
  .footer { min-height: 63px; }
}
@media (max-width: 600px) {
  .header { padding-block: 22px; }
  .brand { font-size: 27px; gap: 9px; }
  .brand img { width: 31px; height: 31px; }
  .launch-status { font-size: 12px; padding: 8px 11px; }
  main { padding: 27px 0 30px; }
  .eyebrow { font-size: 12px; letter-spacing: 1.2px; max-width: 290px; line-height: 1.7; margin: 0 auto 11px; }
  .clock { font-size: clamp(67px, 18.6vw, 100px); letter-spacing: -4px; }
  .clock-colon { top: -3px; margin-inline: 1px; }
  .clock-seconds { letter-spacing: -1px; margin-left: 4px; }
  .date-line { font-size: 12px; gap: 9px; margin-top: 13px; }
  .mascot-scene { height: 275px; width: calc(100% + 20px); }
  .mascot { width: 190px; height: 187px; }
  .mascot-face { scale: .88; transform-origin: 0 0; }
  .shape-ring { left: 3%; width: 27px; height: 27px; border-width: 5px; }
  .shape-capsule { right: 5%; height: 29px; width: 12px; }
  .shape-spark { right: 11%; top: 13%; width: 23px; height: 23px; }
  .shape-flower { left: 14%; bottom: 15%; width: 23px; height: 23px; }
  .shape-dot { top: 14%; left: 24%; }
  .shape-mini-ring { right: 20%; }
  .scene-note { display: none; }
  .mascot-bubble { left: 60%; top: 6%; padding: 9px 12px; font-size: 14px; }
  .mascot-hint { top: 88%; }
  .destination { font-size: 12px; margin-bottom: 15px; }
  h1 { max-width: 350px; font-size: clamp(33px, 8.8vw, 44px); letter-spacing: -1.6px; line-height: 1.18; }
  h1 > span { display: block; }
  .description { max-width: 330px; margin: 15px auto 0; font-size: 16px; line-height: 1.75; }
  .desktop-break { display: none; }
  .loading-dots { margin-top: 20px; }
  .footer { min-height: 73px; gap: 10px; }
  .footer-divider { padding-inline: 7px; }
  #motion-toggle { font-size: 12px; gap: 5px; }
}
@media (max-width: 360px) {
  .page { padding-inline: 18px; }
  .header { gap: 10px; }
  .brand { font-size: 25px; }
  .launch-status { padding-inline: 9px; }
  .footer p { max-width: 115px; line-height: 1.7; }
  .footer-divider { padding-inline: 4px; }
}
@media (max-height: 760px) and (max-width: 600px) {
  main { padding: 14px 0 24px; }
  .header { padding-block: 18px; }
  .mascot-scene { height: 235px; }
  .mascot { width: 160px; height: 157px; }
  .mascot-face { scale: .74; }
  .mascot-hint { top: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.motion-enabled) *, body:not(.motion-enabled) *::before, body:not(.motion-enabled) *::after { animation-play-state: paused !important; transition: none !important; }
}
