/* Galmuri11 픽셀 폰트 (SIL OFL-1.1, Lee Minseo/quiple) — 캔버스+DOM 공용. item 8 */
@font-face {
    font-family: 'Galmuri11';
    src: url('assets/fonts/Galmuri11.woff2') format('woff2');
    font-display: block;
}

body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
    font-family: 'Galmuri11', monospace;
}

/* 팬 게시판/캐릭터 선택의 HTML 폼도 픽셀 폰트로 */
input, textarea, button {
    font-family: 'Galmuri11', monospace;
}

/* 세로+터치 기기에서만 뜨는 비차단 하단 힌트 — 가로 모드 권장 (item 6b).
   FIT+CENTER로 세로에선 상하 레터박스(검은 여백)가 생기므로 그 자리에 얹혀 게임을 안 가린다. */
#rotate-hint { display: none; }
@media (max-aspect-ratio: 1/1) and (pointer: coarse) {
    #rotate-hint {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
        justify-content: center; align-items: center; text-align: center;
        /* 홈 인디케이터/하단 바 겹침 방지(safe-area) — 인셋 0인 기기(데스크톱 포함)에선 기존과 동일 */
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(12, 12, 12, 0.92); color: #ffe08a;
        font-family: 'Galmuri11', monospace; font-size: 13px;
        border-top: 1px solid #ffc72c;
    }
}

#app {
    width: 100%;
    /* 모바일 브라우저 UI 바 대응(발매 전 모바일 UX 수정 3): 100vh는 iOS 크롬/사파리에서
       URL 바 포함 높이라 캔버스 하단이 바에 가려진다 → dvh(실제 가시 높이, 바 변화에 동적 추종).
       미지원 브라우저는 100vh 폴백. 데스크톱은 dvh==vh = 변화 0. 캔버스는 Scale.FIT이
       window resize(바 등장/소멸·회전)에 반응해 레터박스로 재정렬된다. */
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 게임 캔버스: iOS 길게 터치 콜아웃/텍스트 선택 팝업 방지(모바일 UX 방어 점검 2) +
   더블탭/핀치 줌 차단(방어 1 — iOS 사파리는 user-scalable=no를 무시하므로 touch-action이 실방어.
   실측 결과 Phaser 4가 canvas에 touch-action을 안 깔아줘(auto) CSS로 명시).
   게시판 입력창(input/textarea)은 캔버스 밖 DOM이라 영향 없음. 데스크톱 시각·동작 변화 0. */
canvas {
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
