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

html, body {
  height: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  background: #141127;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", sans-serif;
}

#stage { position: fixed; inset: 0; display: block; }

/* ---- 시작 / 부모 오버레이 ---- */
#overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, #241d45 0%, #141127 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  z-index: 10;
  padding: 24px;
  text-align: center;
  transition: opacity 0.45s ease;
}
#overlay.hidden { opacity: 0; pointer-events: none; }

.title {
  color: #f5efdf;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  color: #9d92c9;
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1.6;
  max-width: 34ch;
}

#startBtn {
  width: clamp(120px, 34vw, 168px);
  height: clamp(120px, 34vw, 168px);
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #ffd97a, #ff9e64 60%, #ff7a6b);
  color: #4a2410;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 158, 100, 0.45);
  animation: pulse 2.2s ease-out infinite;
}
#startBtn:focus-visible { outline: 3px solid #ffd97a; outline-offset: 4px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 158, 100, 0.45); }
  70%  { box-shadow: 0 0 0 26px rgba(255, 158, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 158, 100, 0); }
}
@media (prefers-reduced-motion: reduce) {
  #startBtn { animation: none; }
}

.tips {
  color: #7c72a8;
  font-size: 12.5px;
  line-height: 1.9;
  list-style: none;
}
.tips b { color: #a89ddb; font-weight: 600; }

/* 부모용 숨김 핫스팟 (좌상단 길게 누르기) */
#parentSpot {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  z-index: 6;
  opacity: 0.18;
  padding: calc(10px + env(safe-area-inset-top)) 0 0 14px;
  color: #f5efdf;
  font-size: 15px;
}

/* 오버레이의 메뉴 복귀 링크. 놀이 화면에는 두지 않는다 — 부모가 통제권을
   되찾은 화면에서만 보인다. 시작 버튼과 눈에 띄게 다른 톤으로 둬서
   아이가 목표로 삼지 않게 한다. */
.menu-link {
  color: #7c72a8;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 114, 168, 0.4);
  padding-bottom: 2px;
}
.menu-link:focus-visible { outline: 3px solid #ffd97a; outline-offset: 4px; }
