@charset "UTF-8";
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
button,
input,
textarea {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    font-family: "Pretendard", "sans-serif";
    box-sizing: border-box !important;
}
iframe * {
    box-sizing: border-box;
}
a {
    color: inherit;
}
text {
    font-family: "Pretendard", "sans-serif";
}
html {
    font-size: 1px;
    height: 100%;
    overscroll-behavior-y: none; /* iOS 상단 당겨서 새로고침 방지 (지원 브라우저) */
    /* 안드로이드 주소창/노치 안전영역 변수 */
    --android-safe-top: 0px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --app-safe-top: max(var(--safe-area-top), var(--android-safe-top));
    overflow: hidden; /* 윈도우 스크롤 비활성화: 내부 컨테이너만 스크롤 */
}
body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* 윈도우 스크롤 비활성화: 내부 컨테이너만 스크롤 */
    font-size: 16rem;
    line-height: 1;
    font-family: "Pretendard", sans-serif;
    font-variant-numeric: tabular-nums; /* 숫자를 고정폭으로 */
    -webkit-touch-callout: none; /* iOS 길게누르기 방지 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* iOS 탭 하이라이트 제거 */
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: none; /* iOS 상단 당겨서 새로고침 방지 (지원 브라우저) */

    /* iOS 11.2 이상 및 최신 브라우저 + Android 주소창 보정 */
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
}

/* ===============
   글로벌 복사/선택 방지 (iOS/Android)
   =============== */
/* 기본적으로 모든 텍스트 선택/복사/드래그/콜아웃 비활성화 */
html,
body,
#root,
* {
    user-select: none;
    -webkit-user-select: none; /* iOS 선택 방지 */
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none; /* iOS 길게누르기 메뉴 방지 */
    -webkit-user-drag: none; /* iOS 드래그 방지 */
}
/* 예외: 입력 필드/에디터는 선택 허용 (검색 입력 등) */
input,
textarea,
[contenteditable="true"],
.allow-select {
    user-select: text;
    -webkit-user-select: text;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    text-decoration: none;
}
button,
input,
textarea {
    outline: none;
    border: none;
    background-color: transparent;
}
button {
    cursor: pointer;
    color: inherit;
}

::-webkit-scrollbar {
    display: none;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* TOAST */
.Toastify__toast {
    bottom: 100px !important;
    padding: 5px 0 5px 20px !important;
}

.Toastify__toast-theme--light {
    border-radius: 16px !important;
    background-color: #223366 !important;
    color: #fff !important;
    height: 40px !important;
}

.Toastify__toast-container {
    width: calc(100% - 40px) !important;
    min-width: 320px !important;
    text-align: center !important;
    padding: 0 0 0 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: fixed !important;
}
.Toastify__toast-body {
    text-align: center !important;
    font-size: 13px !important;
    line-height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.Toastify__toast-body > div:nth-child(2) {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}
.Toastify__toast-icon {
    display: none !important;
}

/* base */
#root {
    display: flex;
    height: 100svh; /* 안정적 뷰포트 높이 (주소창 제외된 safe viewport) */
    min-height: 100svh;
    touch-action: pan-y; /* iOS 전체 앱에서 수평 제스처로 인한 대각 드래그 최소화 */
}
#toast-root {
    position: fixed;
    bottom: 0;
    margin: 0;
    z-index: 1000;
    animation: append-animate 0.3s ease-out;
}
@keyframes append-animate {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

/* Pretendard 폰트는 CDN으로 로드됨 */
