/* iOS PWA: Dynamic Island·노치 영역까지 앱 배경(#FFFBF2)과 통일 */

@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/NotoSansKR-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("fonts/NotoSansKR-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("fonts/NotoSansKR-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("fonts/NotoSansKR-Bold.ttf") format("truetype");
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #FFFBF2;
  min-height: 100%;
  min-height: -webkit-fill-available;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
}

flutter-view,
flt-glass-pane,
flt-scene-host {
  background-color: #FFFBF2;
  /* 터치·스크롤 입력 지연 최소화 (120Hz 체감) */
  touch-action: manipulation;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* iOS Safari 스와이프 뒤로가기(bfcache) 복원 중 깜빡임 완화 */
html.ppiyak-bfcache-restore flutter-view,
html.ppiyak-bfcache-restore flt-glass-pane {
  opacity: 1;
  visibility: visible;
}

/* Flutter Web 입력 오버레이 — CDN 폰트 로딩 전 한글 깨짐(□X) 방지: 로컬 @font-face 사용 */
input,
textarea,
select,
.flt-text-editing,
flt-semantics input,
flt-semantics textarea,
flt-semantics [contenteditable="true"] {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif !important;
}
