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

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

body.needoh-studio-page {
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  color: #2d1b4e;
  background: #fff7fb;
  line-height: 1.45;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.needoh-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% 0%, #ffe3f1 0%, transparent 60%),
    radial-gradient(800px 480px at 100% 10%, #e0f7ff 0%, transparent 55%),
    radial-gradient(700px 420px at 50% 100%, #f3e8ff 0%, transparent 60%),
    #fff7fb;
}

.needoh-page-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: needohPageBlob 12s ease-in-out infinite;
}

.needoh-page-bg .blob-a {
  width: 280px;
  height: 280px;
  background: #ff9ecd;
  top: 8%;
  left: -4%;
}

.needoh-page-bg .blob-b {
  width: 320px;
  height: 320px;
  background: #90e0ef;
  top: 40%;
  right: -6%;
  animation-delay: -4s;
}

.needoh-page-bg .blob-c {
  width: 240px;
  height: 240px;
  background: #cdb4ff;
  bottom: 4%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes needohPageBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.06); }
}

.needoh-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 40px) 8px;
  flex-wrap: wrap;
  max-width: 1320px;
  margin: 0 auto;
}

.needoh-page-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.needoh-page-brand-icon {
  font-size: 42px;
  filter: drop-shadow(0 6px 12px rgba(247, 37, 133, 0.25));
}

.needoh-page-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c6a96;
}

.needoh-page-brand h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f72585, #7209b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.needoh-page-shortcut {
  font-size: 13px;
  font-weight: 600;
  color: #7c6a96;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(88, 28, 135, 0.12);
}

.needoh-page-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px) 24px;
}

.needoh-page-footer {
  text-align: center;
  padding: 8px 20px 28px;
  color: #7c6a96;
  font-size: 13px;
}

.needoh-studio-root .needoh-studio-layout {
  max-width: none;
}

body.needoh-studio-page--focus {
  overflow: hidden;
}

body.needoh-studio-page--focus .needoh-page-header,
body.needoh-studio-page--focus .needoh-page-footer {
  visibility: hidden;
  pointer-events: none;
}

body.needoh-studio-page--focus .needoh-page-main {
  max-width: none;
  padding: 0;
}

@media (max-width: 900px) {
  .needoh-page-shortcut {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .needoh-page-bg .blob {
    animation: none;
  }
}

/* ── Add to Home Screen (iPhone app) ── */
body.needoh-install-banner-visible {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.needoh-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(45, 27, 78, 0.94);
  color: #fff7fb;
  box-shadow: 0 12px 40px rgba(45, 27, 78, 0.35);
  backdrop-filter: blur(12px);
  animation: needohInstallSlide 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes needohInstallSlide {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.needoh-install-banner__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 251, 0.7);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.needoh-install-banner__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.needoh-install-banner__body {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}

.needoh-install-banner__body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.needoh-install-banner__body p {
  font-size: 0.78rem;
  opacity: 0.92;
  line-height: 1.35;
}

.needoh-install-banner__body em {
  font-style: normal;
  color: #ffd166;
}

.needoh-install-banner__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6b8a, #b388ff);
  color: #fff;
}

@media (min-width: 768px) {
  .needoh-install-banner {
    display: none;
  }
}
