/* Chopstick — base styles. App is themed via JS; this is the unstyled shell. */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: #efece6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", system-ui, sans-serif;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  -webkit-user-select: none;
  user-select: none;
}

/* Restore selection on user input fields */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

#root {
  min-height: 100%;
  position: relative;
}

/* Pinyin tone rendering */
.pinyin {
  font-feature-settings: "ss01";
  font-variant-ligatures: none;
}

/* Splash screen, removed by React on mount */
#splash {
  position: fixed; inset: 0;
  background: #f3e9d2;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .25s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-mascot { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.splash-title {
  font-family: "Rubik Mono One", Impact, sans-serif;
  font-size: 28px; letter-spacing: 0.04em; color: #1a1305;
}
.splash-sub {
  font-family: "DM Mono", monospace;
  font-size: 11px; color: #1a130599; margin-top: 6px;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* Scrollbar polish (desktop testing only) */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 999px; }

@keyframes speakPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop  { 0%{transform:scale(.9);opacity:0} 100%{transform:scale(1);opacity:1} }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

/* Safe-area helpers for iOS PWA */
.safe-top    { padding-top: env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
