/* 웹 화면 틀의 페이지 설정(05-design `가` 페이지 설정, F-80). 색은 빌드가 tokens.ts에서 옮겨 적는다. 손으로 HEX를 적지 않는다. */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: #F6F7F3;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  /* 페이지 전체는 스크롤하지 않는다. 화면마다 자기 스크롤 영역이 움직인다. */
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", Roboto, "Segoe UI", sans-serif;
  font-size: 16px;
}
#root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
@media (min-width: 482px) {
  html, body { background-color: #EEF0EA; }
}
/* 키보드 초점 테두리(05-design `웹 상태 표시`). 쉴 때 투명 테두리를 미리 둬 나타날 때 자리가 밀리지 않는다. */
[tabindex], a, button, input, textarea, [role="button"], [role="link"], [role="tab"], [role="switch"], [role="checkbox"], [role="radio"] {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid #1F6B3F !important;
  outline-offset: 2px;
}
/* 첫 HTML: 바탕 paper + 가운데 표지(데스크톱은 바깥 surface2와 칸 실선까지). 앱이 틀을 그리면 WebFrame이 지운다. */
.web-boot {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  background-color: #F6F7F3;
  z-index: 1;
  transition: opacity 200ms;
}
.web-boot.is-leaving { opacity: 0; }
.web-boot-column {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 482px;
  background-color: #F6F7F3;
}
@media (min-width: 482px) {
  .web-boot { background-color: #EEF0EA; }
  .web-boot-column { border-left: 1px solid #D9DDD3; border-right: 1px solid #D9DDD3; }
}
@media (prefers-reduced-motion: reduce) {
  .web-boot { transition: none; }
  /* 동작 줄이기면 마우스 올림·눌림 전환과 움직임을 0으로 한다(05-design `웹 상태 표시`, r1 D-335) */
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
/* 시트 안 스크롤이 끝에 닿아도 페이지 당기기(새로 고침)가 생기지 않게 한다(05-design A-56). 화면 스크롤에는 걸지 않는다. */
[aria-modal="true"], [aria-modal="true"] * {
  overscroll-behavior: contain;
}
/* 비활성 버튼은 not-allowed(05-design `웹 상태 표시`). 누를 수 있는 요소의 pointer는 react-native-web이 붙인다. */
[aria-disabled="true"] {
  cursor: not-allowed;
}
