@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: radial-gradient(ellipse at 50% 40%, #ff80bb 0%, #cc1066 30%, #800040 60%, #3a0020 100%);
  font-family: 'Cormorant Garamond', serif;
  overflow: hidden;
  min-height: 100vh;
  position: relative;
}

.core-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,200,230,0.9) 25%, rgba(255,100,180,0.5) 55%, transparent 75%);
  animation: core-pulse 2s ease-in-out infinite alternate;
  z-index: 5;
  pointer-events: none;
}

@keyframes core-pulse {
  from { transform: translate(-50%,-50%) scale(0.92); opacity: 0.9; }
  to   { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
}

.trail {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  animation: trail-drift ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes trail-drift {
  from { transform: translate(0,0) scale(1); opacity: 0.6; }
  to   { transform: translate(var(--dx),var(--dy)) scale(var(--ds)); opacity: 1; }
}

.ray {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 2px;
  transform-origin: bottom center;
  border-radius: 2px;
  animation: ray-pulse ease-in-out infinite alternate;
  z-index: 3;
  pointer-events: none;
}

@keyframes ray-pulse {
  from { opacity: 0.3; height: var(--rh); }
  to   { opacity: 0.9; height: calc(var(--rh) * 1.3); }
}

.spark {
  position: fixed;
  border-radius: 50%;
  animation: spark-float linear infinite;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

@keyframes spark-float {
  0%   { opacity: 0; transform: translate(0,0) scale(1); }
  15%  { opacity: 1; }
  85%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

.stardust {
  position: fixed;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle ease-in-out infinite alternate;
  z-index: 2;
  pointer-events: none;
}

@keyframes twinkle {
  from { opacity: 0.3; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1.4); }
}

.site-title {
  position: fixed;
  top: 6%;
  width: 100%;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,180,220,0.6);
  z-index: 10;
}

.subtitle {
  position: fixed;
  top: 14%;
  width: 100%;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255,220,235,0.8);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  z-index: 10;
}

.planet {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 20;
  animation: float 5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.zoomable:hover { transform: scale(1.15) !important; }

.zoomable {
  z-index: 20;
}

.planet img { display: block; }

.planet-label {
  color: rgba(255,220,235,0.8);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  margin-top: 8px;
  opacity: 0.7;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}

.zoomable:hover .planet-label {
  opacity: 1;
  color: #fff;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-15px); }
}

.mirrored img { transform: scaleX(-1); }

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-center 5s ease-in-out infinite;
}

@keyframes float-center {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-15px); }
}


.page-transition {
  position: fixed;
  inset: 0;
  background: #800040;
  z-index: 999;
  animation: fadein 0.6s ease 0.1s forwards;
  pointer-events: none;
  opacity: 1;
}

@keyframes fadein {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fadeout {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.crystal-wrap {
  background: #000;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  width: 100%;
}

.crystal-wrap canvas {
  display: block;
  image-rendering: pixelated;
}

.crystal-hint {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.2);
  pointer-events: none;
  animation: crystal-hint-fade 3s ease-in-out infinite alternate;
}

@keyframes crystal-hint-fade {
  from { opacity: 0.1; }
  to   { opacity: 0.5; }
}

.crystal-wrap {
  width: 760px;
  height: 770px;
  -webkit-mask-image: url('crystal.png');
  mask-image: url('crystal.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}