﻿html, body, #app {
    height: 100%;
}

body {
    margin: 0;
}

:root {
    --btn-primary: #2563eb; /* Blue 600 */
    --btn-primary-hover: #1d4ed8; /* Blue 700 */
    --btn-primary-active: #1e40af; /* Blue 800 */
    --btn-primary-ring: rgba(37,99,235,.35);

    /* ★ 부트화면 기본(라이트) */
    --boot-bg: #ffffff;
    --boot-fg: #111827;

    /* 중앙 박스(카드) 라이트 기본값 */
    --boot-card-bg: rgba(255,255,255,.86);
    --boot-card-border: rgba(0,0,0,.06);
    --boot-card-shadow: 0 10px 30px rgba(0,0,0,.08);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 가로/세로 방향에 따른 약한 보정 */
@media (orientation: landscape) {
    .boot-card {
        width: min(600px, 70vw);
    }
}



/* 작은 기기에서도 중앙 보장 */
html, body {
    height: 100%;
}


.pwa-hint {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 0 12px 12px;
    background: transparent;
}

.pwa-hint__content {
    margin: 0 auto;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    padding: 14px 16px;
}

.pwa-hint__title {
    font-weight: 700;
    margin-bottom: 6px;
}

.pwa-hint__text {
    color: #444;
}

.pwa-hint__actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.pwa-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #2d71c4;
    color: #fff;
    font-weight: 700;
}

    .pwa-btn:hover {
        filter: brightness(1.05);
    }


.iframe-loading-mask {
    background-color: transparent !important; /* ★ 완전 투명 */
    color: inherit !important;
    -webkit-text-size-adjust: 100%;
}

/* === 프리웜/진행 오버레이는 항상 라이트 고정 === */
.iframe-loading-mask[data-theme-fixed="light"] {
    background: rgba(255,255,255,.96) !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important; /* iOS 글자 칠 */
    mix-blend-mode: normal;
}

/* ✋ 롱탭 텍스트 선택 / iOS 메뉴 방지 + 터치 UX 개선용 공통 클래스 */
.app-noselect,
.app-noselect *:not(input):not(textarea):not([contenteditable="true"]) {
    /* 텍스트 선택 방지 */
    user-select: none;
    -webkit-user-select: none; /* iOS Safari */
    -ms-user-select: none; /* (구) Edge */
    /* iOS에서 길게 눌렀을 때 나오는 복사/공유 메뉴 방지 */
    -webkit-touch-callout: none;
    /* (선택) 모바일에서 탭 하이라이트 제거 */
    -webkit-tap-highlight-color: transparent;
}

    /* 🔘 app-noselect 영역 안의 버튼 터치 UX 개선 */
    .app-noselect .mud-button-root,
    .app-noselect .mud-icon-button,
    .app-noselect button {
        /* 더블탭 확대/롱탭 관련 지연 줄이기 */
        touch-action: manipulation;
    }
