/* The app's palette (ios/Packages/NijiUI/Sources/NijiUI/Theme.swift) and its rounded type. */
:root {
  --cream: #FFF8EE;
  --ink: #33355C;
  --soft: #6B6D8F;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1B1D2E;
    --ink: #F4F1EA;
    --soft: #A9AAC4;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
}

.mascots {
  display: flex;
  gap: clamp(0px, 1vw, 12px);
  margin-bottom: 40px;
}

.mascot {
  display: block;
  width: clamp(96px, 26vw, 190px);
  height: auto;
  overflow: visible;
  cursor: pointer;
}
.sparkle { transform-box: fill-box; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.sparkle.late { animation-delay: 0.9s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.rays { transform-origin: 50px 50px; animation: shine 2.4s ease-in-out infinite; }
@keyframes shine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.cloud { animation: drift 4s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

.tagline {
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
:lang(ja) .tagline { word-break: auto-phrase; }

footer {
  padding: 24px;
  font-size: 14px;
  color: var(--soft);
}
footer p { margin: 8px 0 0; }

.langs { display: flex; justify-content: center; gap: 16px; }
.langs a { color: inherit; text-decoration: none; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .sparkle, .rays, .cloud { animation: none; }
}
