/* =========================================================
   SAISERA — Coming Soon Landing
   Playful, colorful, animated
   ========================================================= */

:root {
  --c-bg-1: #fff4e6;
  --c-bg-2: #ffe0f0;
  --c-pink: #ff3ea5;
  --c-purple: #8b5cf6;
  --c-yellow: #ffd93d;
  --c-cyan: #3ec1ff;
  --c-mint: #4ade80;
  --c-coral: #ff7a5c;
  --c-ink: #1a1033;
  --c-ink-soft: #4a3f6b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 60px rgba(26, 16, 51, 0.08);
  --shadow-play: 0 14px 0 rgba(26, 16, 51, 0.12);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, monospace;
}

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

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-display);
  color: var(--c-ink);
  background:
    radial-gradient(1200px 800px at 10% -10%, #ffe8a3 0%, transparent 60%),
    radial-gradient(900px 700px at 100% 10%, #ffd0e7 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 120%, #d0ecff 0%, transparent 55%),
    linear-gradient(160deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--c-pink); color: #fff; }

/* ===== Animated background blobs ===== */
.bg-blobs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: 0.55;
}
.blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: float 18s ease-in-out infinite; }
.blob-1 { width: 420px; height: 420px; background: var(--c-pink);   top: -120px; left: -80px;   animation-delay: 0s; }
.blob-2 { width: 360px; height: 360px; background: var(--c-yellow); top: 20%;    right: -100px; animation-delay: -4s; }
.blob-3 { width: 380px; height: 380px; background: var(--c-cyan);   bottom: -120px; left: 20%;  animation-delay: -8s; }
.blob-4 { width: 300px; height: 300px; background: var(--c-purple); bottom: 10%; right: 15%;    animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-30px,40px) scale(0.95); }
}

/* ===== Floating emojis ===== */
.floating-emojis {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.floating-emojis span {
  position: absolute; font-size: 28px; opacity: 0.7;
  animation: drift 14s linear infinite;
}
.floating-emojis span:nth-child(1) { top: 12%; left: 6%;  animation-delay: 0s;   font-size: 32px; }
.floating-emojis span:nth-child(2) { top: 72%; left: 12%; animation-delay: -3s;  font-size: 26px; }
.floating-emojis span:nth-child(3) { top: 22%; left: 88%; animation-delay: -6s;  font-size: 34px; }
.floating-emojis span:nth-child(4) { top: 82%; left: 82%; animation-delay: -9s;  font-size: 28px; }
.floating-emojis span:nth-child(5) { top: 48%; left: 4%;  animation-delay: -2s;  font-size: 24px; }
.floating-emojis span:nth-child(6) { top: 60%; left: 94%; animation-delay: -5s;  font-size: 30px; }
.floating-emojis span:nth-child(7) { top: 8%;  left: 48%; animation-delay: -7s;  font-size: 26px; }
.floating-emojis span:nth-child(8) { top: 90%; left: 46%; animation-delay: -10s; font-size: 32px; }

@keyframes drift {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-24px) rotate(12deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ===== Container ===== */
.container {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

/* ===== Top bar ===== */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 48px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 22px; letter-spacing: 0.5px;
}
.logo-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c-pink), var(--c-yellow), var(--c-cyan), var(--c-purple), var(--c-pink));
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(26,16,51,.08);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text {
  background: linear-gradient(90deg, var(--c-pink), var(--c-purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.domain-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  background: #fff; border: 2px solid var(--c-ink);
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  box-shadow: 0 4px 0 var(--c-ink);
  transition: transform .15s ease;
}
.badge:hover { transform: translateY(-2px); }

/* ===== Hero ===== */
.hero { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--c-ink); box-shadow: 0 4px 0 var(--c-ink);
  font-weight: 600; font-size: 14px; margin-bottom: 24px;
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--c-mint);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.title {
  font-size: clamp(64px, 14vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.word {
  display: inline-block;
  animation: bounce-in 0.8s cubic-bezier(0.5, 1.7, 0.4, 1) both;
}
.word-1 {
  background: linear-gradient(180deg, var(--c-pink) 0%, var(--c-coral) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-right: 0.2em;
}
.word-2 {
  background: linear-gradient(180deg, var(--c-purple) 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation-delay: 0.15s;
  display: inline-block;
  transform-origin: center;
  animation-name: bounce-in-wobble;
}
@keyframes bounce-in {
  0% { transform: translateY(40px) rotate(-6deg); opacity: 0; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes bounce-in-wobble {
  0% { transform: translateY(40px) rotate(6deg); opacity: 0; }
  70% { transform: translateY(-6px) rotate(-2deg); opacity: 1; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

.subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--c-ink-soft);
  max-width: 560px; margin: 0 auto 36px;
}
.subtitle strong { color: var(--c-ink); }

/* ===== Clock card ===== */
.clock-card {
  background: #fff;
  border: 3px solid var(--c-ink);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 560px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-play);
  transform: rotate(-1deg);
  transition: transform .3s ease;
}
.clock-card:hover { transform: rotate(0deg) scale(1.02); }
.clock-label {
  font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: 8px;
}
.clock {
  font-family: var(--font-mono);
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; justify-content: center; align-items: baseline; gap: 6px;
}
.digit {
  background: linear-gradient(180deg, var(--c-purple), var(--c-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  min-width: 1.2em; text-align: center;
  display: inline-block;
}
.digit.seconds { 
  background: linear-gradient(180deg, var(--c-cyan), var(--c-mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.colon {
  color: var(--c-yellow);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }
.date {
  margin-top: 10px;
  font-size: 16px; font-weight: 500;
  color: var(--c-ink-soft);
  text-transform: capitalize;
}

/* ===== Game card ===== */
.game-card {
  background: #fff;
  border: 3px solid var(--c-ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-play);
  text-align: left;
  transform: rotate(0.5deg);
}
.game-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.game-title {
  font-size: 22px; font-weight: 700; margin-bottom: 4px;
}
.game-desc {
  font-size: 14px; color: var(--c-ink-soft);
}
.btn {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  padding: 10px 18px;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-yellow);
  color: var(--c-ink);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--c-ink);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--c-ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-ink); }

.progress-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.progress-letters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.progress-letters span {
  width: 36px; height: 44px; border-radius: 10px;
  border: 2px dashed var(--c-ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  color: transparent;
  transition: all .25s ease;
}
.progress-letters span.done {
  color: #fff;
  border: 2px solid var(--c-ink);
  animation: pop 0.4s cubic-bezier(0.5,1.7,0.4,1);
}
.progress-letters span:nth-child(1).done { background: var(--c-pink); }
.progress-letters span:nth-child(2).done { background: var(--c-purple); }
.progress-letters span:nth-child(3).done { background: var(--c-cyan); }
.progress-letters span:nth-child(4).done { background: var(--c-mint); }
.progress-letters span:nth-child(5).done { background: var(--c-yellow); color: var(--c-ink); }
.progress-letters span:nth-child(6).done { background: var(--c-coral); }
.progress-letters span:nth-child(7).done { background: var(--c-purple); }
@keyframes pop {
  0% { transform: scale(0.5) rotate(-10deg); }
  100% { transform: scale(1) rotate(0); }
}

.score {
  display: flex; gap: 16px; font-size: 14px; color: var(--c-ink-soft);
  font-family: var(--font-mono);
}
.score strong { color: var(--c-ink); font-weight: 700; }

.game-area {
  position: relative;
  height: 320px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 62, 165, 0.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(62, 193, 255, 0.08), transparent 50%),
    linear-gradient(135deg, #faf7ff, #fff4f9);
  border: 2px dashed var(--c-ink-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: default;
}
.game-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 16px; color: var(--c-ink-soft);
  backdrop-filter: blur(2px);
  background: rgba(255,255,255,0.5);
  z-index: 2;
  padding: 20px;
}
.game-overlay.hidden { display: none; }

.letter-bubble {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 26px; color: #fff;
  border: 3px solid var(--c-ink);
  box-shadow: 0 6px 0 var(--c-ink);
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease;
  will-change: transform;
}
.letter-bubble:hover { transform: scale(1.12); }
.letter-bubble.next-target {
  animation: wiggle 0.7s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}
.letter-bubble.caught {
  animation: caught 0.5s ease forwards;
  pointer-events: none;
}
@keyframes caught {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}
.letter-bubble.miss {
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-8px) rotate(-6deg); }
  75%      { transform: translateX(8px) rotate(6deg); }
}

/* ===== Footer ===== */
.footer {
  margin-top: 48px;
  text-align: center;
  font-size: 13px; color: var(--c-ink-soft);
  font-family: var(--font-mono);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.heart { color: var(--c-pink); display: inline-block; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
.credit-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--c-ink);
  color: var(--c-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.credit-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--c-ink);
}
.credit-badge:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--c-ink);
}
.credit-badge strong {
  background: linear-gradient(90deg, var(--c-pink), var(--c-purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.credit-spark {
  color: var(--c-yellow);
  font-size: 16px;
  animation: spin 4s linear infinite;
  display: inline-block;
}

/* ===== Confetti canvas ===== */
#confetti-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .top-bar { justify-content: center; text-align: center; }
  .domain-badges { justify-content: center; }
  .clock-card { padding: 20px 16px; transform: rotate(0); }
  .game-card { padding: 18px; transform: rotate(0); }
  .game-area { height: 280px; }
  .letter-bubble { width: 48px; height: 48px; font-size: 22px; }
  .progress-letters span { width: 30px; height: 38px; font-size: 16px; }
  .game-header { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
