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

html, body {
  height: 100%;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 85%, #101b33 0%, #0b1120 55%, #060911 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #e8ecf5;
}

#waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #0b1120;
  transition: opacity 0.9s ease;
}

.intro.hide {
  opacity: 0;
  pointer-events: none;
}

.intro-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #cdeeff, #7dd3fc);
  box-shadow: 0 0 30px rgba(125,211,252,0.7);
  opacity: 0;
  transform: scale(0.3);
  animation: introDot 1s ease forwards;
}

.intro-story {
  max-width: 480px;
  color: #e8ecf5;
  font-weight: 300;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.intro-story.visible {
  opacity: 0.9;
}

.intro-skip {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 51;
  background: transparent;
  color: #e8ecf5;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.intro-skip:hover {
  opacity: 1;
}

@keyframes introDot {
  to { opacity: 1; transform: scale(1); }
}

#lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(255,255,255,0.08);
  color: #e8ecf5;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

#lang option { color: #0b1120; }

.app {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 14px;
}

.circle-wrap {
  position: relative;
  width: min(60vw, 320px);
  height: min(60vw, 320px);
  cursor: pointer;
  user-select: none;
}

.ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
}

.core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(160,220,255,1), rgba(56,140,200,1) 62%, rgba(30,90,150,1) 76%);
  box-shadow: 0 0 50px rgba(125,211,252,0.45);
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: 1px;
  z-index: 2;
  opacity: 1;
}

.hint {
  opacity: 0.6;
  font-size: 0.9rem;
  min-height: 1.2em;
}

h1 {
  font-weight: 300;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-top: 8px;
}

#tagline {
  opacity: 0.65;
  max-width: 420px;
  font-size: 0.95rem;
}
