@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

body { 
    margin: 0; padding: 0; background-color: #050510; color: white; 
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif; 
    overflow: hidden; touch-action: none; 
}
#gameContainer { position: relative; width: 100vw; height: 100vh; max-width: 100%; max-height: 100%; margin: 0 auto; background-color: #050510; overflow: hidden; }
/* 별 배경은 캔버스가 직접 그린다. CSS 배경 애니메이션은 전체 화면 레이어를
   매 프레임 재합성하게 만들어 모바일에서 발열의 원인이 된다. */
canvas { display: block; width: 100%; height: 100%; touch-action: none; background: #050510; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 10; }
.hidden { display: none !important; }

.auth-input { width: 80%; max-width: 300px; padding: 15px; margin-bottom: 15px; font-size: 20px; border-radius: 8px; border: none; text-align: center; display: block; margin-left: auto; margin-right: auto; }
.auth-btn { padding: 15px 30px; font-size: 20px; cursor: pointer; border: none; border-radius: 8px; font-weight: bold; background-color: #2196F3; color: white; transition: 0.2s; }
.auth-btn:hover { opacity: 0.9; transform: scale(1.05); }

.level-select { margin-bottom: 20px; background: rgba(255,255,255,0.1); padding: 15px; border-radius: 10px;}
#levelSlider { width: 300px; cursor: pointer; }
/* 카드 3장은 화면 폭에 상관없이 항상 한 줄에 나란히.
   고정 width 대신 flex로 남는 폭을 3등분하고, box-sizing으로
   padding/border가 폭을 밀어내지 않게 한다. */
.weapon-cards {
    display: flex; flex-wrap: nowrap; gap: 16px;
    justify-content: center; align-items: stretch;
    width: 100%; max-width: 760px; padding: 0 12px; box-sizing: border-box;
}
.card {
    flex: 1 1 0; min-width: 0; max-width: 240px;
    box-sizing: border-box; padding: 15px 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: rgba(255,255,255,0.1); border: 2px solid #555; border-radius: 15px;
    cursor: pointer; transition: 0.2s;
}
.card:hover { border-color: #4CAF50; background: rgba(76, 175, 80, 0.2); transform: translateY(-4px); }
.card img { width: 100%; height: 96px; object-fit: contain; margin-bottom: 10px; }
.card h4 { margin: 5px 0; word-break: keep-all; }
.card p  { margin: 0; word-break: keep-all; }

button { touch-action: manipulation; font-family: 'Pretendard', sans-serif; }
/* 퀴즈 화면
   #multipleChoice 에 너비가 없으면 .overlay(flex column + align-items:center)
   안에서 내용만큼만 줄어들고, 그 안의 버튼이 %로 폭을 잡으면서 붕괴한다.
   컨테이너에 명시적 너비를 주는 것이 근본 해결책이다. */
#quizScreen { padding: 20px; box-sizing: border-box; }

#multipleChoice, #shortAnswer {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}
#shortAnswer { align-items: center; }
#shortAnswer br { display: none; }

.quiz-btn {
    background-color: #2196F3; color: white;
    display: flex; justify-content: center; align-items: center;
    width: 100%; margin: 9px 0; min-height: 68px;
    padding: 12px 18px; box-sizing: border-box;
    /* keep-all 로 한국어는 어절 단위로 끊되,
       그래도 넘치는 긴 영단어는 anywhere 로 강제 줄바꿈시켜 넘침을 원천 차단 */
    word-break: keep-all; overflow-wrap: anywhere; white-space: normal;
    line-height: 1.35; text-align: center;
    font-size: 20px; border-radius: 10px; cursor: pointer; border: none; font-weight: bold;
}
.quiz-btn:active { background-color: #0b7dda; }
.quiz-btn:disabled { background-color: #555; cursor: not-allowed; }
.upgrade-btn { 
    background-color: #e91e63; color: white; border: none; font-weight: bold; border-radius: 8px; font-size: 20px; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 85%; margin: 15px auto; max-width: 600px; min-height: 80px; 
    line-height: 1.5; padding: 20px; word-break: keep-all; white-space: normal;
    text-align: center; box-sizing: border-box;
}
.upgrade-btn:active { background-color: #c2185b; }

#quizText {
    font-size: 32px; margin: 0 auto 26px; padding: 0 10px;
    width: 100%; max-width: 720px; box-sizing: border-box;
    word-break: keep-all; overflow-wrap: anywhere;
}
#quizInput {
    font-size: 28px; padding: 15px; margin-bottom: 20px;
    width: 100%; max-width: 420px; box-sizing: border-box;
    text-align: center; border-radius: 8px; border: none; font-family: 'Pretendard', sans-serif;
}
#loadingText { color: #ffeb3b; font-size: 24px; margin-bottom: 20px; font-weight: bold; }

#topBar {
    position: absolute; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-evenly; align-items: center;
    padding: 15px 10px; background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
    z-index: 5; pointer-events: none; box-sizing: border-box; flex-wrap: wrap; gap: 10px;
}
.stat-box {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.15); padding: 8px 18px; border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    font-size: 22px; font-weight: bold; text-shadow: 1px 1px 3px black; backdrop-filter: blur(5px);
}
.icon { font-size: 26px; margin-top: -2px; }
.hp-box { border-color: rgba(255, 80, 80, 0.5); }
.level-box { border-color: rgba(100, 200, 255, 0.5); }
.kill-box { border-color: rgba(200, 100, 255, 0.5); }
.combo-box { border-color: rgba(255, 150, 50, 0.5); }
.score-box { border-color: rgba(255, 255, 100, 0.5); }

/* ---------- 힌트 / 학습 리포트 ---------- */
/* 주관식 빈칸 — 첫 글자는 제시되고 나머지는 입력에 따라 채워진다 */
#quizHint {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
    gap: 8px; margin: 0 0 20px; padding: 0 6px;
}
.slot {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 42px; padding: 0 3px;
    font-family: 'Courier New', monospace; font-size: 30px; font-weight: bold;
    color: #fff; border-bottom: 4px solid rgba(255, 235, 59, 0.45);
    transition: border-color 0.12s;
}
.slot.given { color: #ffeb3b; border-bottom-color: #ffeb3b; }
.slot.typed { border-bottom-color: #ffeb3b; }
.slot.extra { color: #90caf9; border-bottom-color: #90caf9; }
.slot-count { align-self: center; margin-left: 10px; font-size: 16px; color: #999; }

@media (max-width: 768px) {
    #quizHint { gap: 5px; }
    .slot { min-width: 22px; height: 32px; font-size: 22px; border-bottom-width: 3px; }
    .slot-count { font-size: 13px; margin-left: 6px; }
}
#gameOverScreen { justify-content: flex-start; padding-top: 40px; box-sizing: border-box; overflow-y: auto; }
#reportBox { width: 90%; max-width: 620px; margin: 20px auto; }
.report-stats {
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px;
    background: rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; margin-bottom: 20px;
}
.report-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.report-stats span { font-size: 15px; color: #aaa; }
.report-stats b { font-size: 28px; }
.report-title { font-size: 22px; color: #ff9800; margin: 10px 0 12px; }
.report-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.report-list li {
    background: rgba(255,255,255,0.07); border-left: 4px solid #F44336;
    border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; line-height: 1.5;
}
.report-list b { font-size: 22px; color: #FFEB3B; }
.report-list .pos { font-size: 13px; color: #888; margin-left: 8px; }
.report-list .ko { font-size: 18px; color: #fff; }
.report-list .ex { display: block; font-size: 15px; color: #999; margin-top: 6px; font-style: italic; }

.report-note { font-size: 15px; color: #aaa; margin: 8px 0 16px; line-height: 1.5; }

/* ---------- 모바일 대응 ---------- */
#gameContainer { height: 100dvh; }

@media (max-width: 768px) {
    #topBar { padding: 8px 6px; gap: 6px; }
    .stat-box { font-size: 15px; padding: 5px 11px; gap: 5px; border-radius: 18px; }
    .icon { font-size: 17px; }

    #quizText { font-size: 22px; margin-bottom: 18px; padding: 0 14px; }
    #quizHint { font-size: 20px; margin-bottom: 12px; }
    #quizScreen { padding: 12px; }
    .quiz-btn { font-size: 17px; min-height: 56px; margin: 6px 0; padding: 10px 12px; }
    #quizInput { font-size: 22px; padding: 12px; }
    #quizResultTitle { font-size: 38px !important; }
    #quizResultDesc { font-size: 22px !important; padding: 0 14px; }

    .overlay { padding: 12px; box-sizing: border-box; overflow-y: auto; }
    .weapon-cards { gap: 8px; padding: 0 8px; }
    .card { padding: 10px 6px; border-radius: 12px; }
    .card img { height: 62px; }
    .card h4 { font-size: 14px; }
    .card p { font-size: 12px; }
    #levelSlider { width: 88vw; max-width: 320px; }
    .upgrade-btn { font-size: 16px; min-height: 64px; padding: 14px; }

    .report-stats b { font-size: 22px; }
    .report-list b { font-size: 19px; }
    .report-list .ko { font-size: 16px; }
    .report-list .ex { font-size: 13px; }
}

/* 가로 모드 낮은 높이 */
@media (max-height: 520px) {
    #topBar { padding: 4px; }
    .stat-box { font-size: 13px; padding: 3px 9px; }
    #quizText { font-size: 19px; margin-bottom: 10px; }
    .quiz-btn { min-height: 44px; margin: 4px 0; font-size: 15px; padding: 8px 10px; }
}

/* 보조함 무장 선택은 카드가 4장이라 폭을 더 준다 */
.escort-cards { max-width: 900px; }
.escort-cards .card p { font-size: 13px; color: #bbb; line-height: 1.4; }
@media (max-width: 768px) {
    .escort-cards .card p { font-size: 11px; }
}

/* ---------- 일시정지 ---------- */
.pause-box {
    pointer-events: auto; cursor: pointer; color: white;
    font-family: 'Pretendard', sans-serif; font-size: 18px;
}
.pause-box:active { background: rgba(255,255,255,0.3); }
#pauseScreen { justify-content: center; }
.power-box { border-color: rgba(180, 130, 255, 0.6); }

/* 저장 결과 메시지 — 실패 사유를 여러 줄로 보여 준다 */
#saveMessage { white-space: pre-line; line-height: 1.5; max-width: 480px; word-break: keep-all; }

/* ---------- v19 추가 ---------- */

/* 그림 문제 (레벨 1~2) — 이모지를 크게 그린다.
   폰트 크기만으로 그리므로 이미지 에셋이 늘지 않는다. */
#quizPic {
    font-size: 120px; line-height: 1.1; margin: 0 0 14px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
    user-select: none;
}

/* 주관식 맥락 제시 — 문제문보다 한 단계 작고 조용하게 */
#quizContext {
    font-size: 19px; color: #bbb; line-height: 1.5;
    margin: -12px auto 22px; padding: 12px 16px;
    width: 100%; max-width: 620px; box-sizing: border-box;
    background: rgba(255,255,255,0.07); border-radius: 10px;
    white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere;
}

/* 발음 다시 듣기 */
.speak-btn {
    background: #3949ab; color: #fff; border: none; border-radius: 24px;
    padding: 10px 22px; font-size: 17px; font-weight: bold; cursor: pointer;
    font-family: 'Pretendard', sans-serif;
}
.speak-btn:active { background: #283593; }

/* 레벨업·빅보스 알림 */
#announceBox {
    position: absolute; top: 96px; left: 50%; transform: translateX(-50%);
    z-index: 8; pointer-events: none;
    background: rgba(0,0,0,0.72); border: 2px solid #ffd54a; border-radius: 30px;
    color: #ffd54a; font-size: 22px; font-weight: bold;
    padding: 12px 26px; white-space: nowrap; text-shadow: 1px 1px 3px #000;
    max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 768px) {
    #quizPic { font-size: 84px; margin-bottom: 10px; }
    #quizContext { font-size: 16px; margin: -8px auto 16px; padding: 10px 12px; }
    #announceBox { font-size: 17px; padding: 9px 18px; top: 84px; }
    .speak-btn { font-size: 15px; padding: 9px 18px; }
}
@media (max-height: 560px) {
    #quizPic { font-size: 64px; margin-bottom: 6px; }
    #quizContext { font-size: 15px; }
}

/* ---------- v23 추가 ---------- */

/* 언어 선택 카드 */
.lang-cards { margin-bottom: 18px; }
.lang-card { min-width: 120px; }
.lang-card .lang-flag { font-size: 40px; line-height: 1.1; margin-bottom: 4px; }
.lang-card h4 { margin: 4px 0 2px; }
.lang-card p { font-size: 13px; color: #bbb; margin: 0; }
.lang-card.selected {
    border: 3px solid #4CAF50;
    background: rgba(76, 175, 80, 0.18);
}

/* 핵폭탄 버튼 — 오른쪽 아래, 엄지로 닿는 자리 */
#bombBtn {
    position: absolute; right: 18px; bottom: 22px; z-index: 6;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 88px; height: 88px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff8a65, #bf360c);
    border: 3px solid #ffcc80; color: #fff;
    font-size: 20px; font-weight: bold; font-family: 'Pretendard', sans-serif;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5); cursor: pointer;
    text-shadow: 1px 1px 3px #000;
}
#bombBtn .bomb-icon {
    width: 34px; height: 40px; object-fit: contain;
    font-size: 30px; line-height: 1;   /* 이미지 로드 실패 시 💣 로 대체될 때 */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
#bombBtn:active { transform: scale(0.94); }
/* 보유 0발 — 버튼은 남겨 두되 눌러도 소용없음을 보여 준다 */
#bombBtn.empty { opacity: 0.35; filter: grayscale(0.6); }

@media (max-width: 768px) {
    #bombBtn { width: 72px; height: 72px; right: 12px; bottom: 16px; font-size: 17px; }
    #bombBtn .bomb-icon { width: 28px; height: 33px; font-size: 25px; }
    .lang-card { min-width: 98px; }
    .lang-card .lang-flag { font-size: 32px; }
}

/* ============================================================
   로그인 화면 (v25)
   ------------------------------------------------------------
   초등 1학년이 처음 보는 화면이다. 글자는 크게, 버튼은 손가락으로
   누르기 쉽게, 그리고 '무슨 게임인지'가 그림으로 보이게 했다.

   장식은 assets 의 스프라이트를 그대로 쓴다 (에셋 추가 없음).
   애니메이션은 transform/opacity 만 건드린다 — 레이아웃을 다시 계산하지
   않으므로 저사양 기기에서도 가볍다. 게임이 시작되면 이 화면이
   display:none 이 되면서 애니메이션도 함께 멈춘다.
   ============================================================ */
#loginScreen {
    justify-content: flex-start;
    padding: 18px 14px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    background: radial-gradient(ellipse at 50% 0%, #1b2a5c 0%, #0a0f24 55%, #050510 100%);
}

/* ---------- 장식 레이어 ---------- */
#loginSky {
    position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; z-index: 0;
}
#loginSky .deco { position: absolute; will-change: transform; }

/* 내려오는 몬스터들 — 서로 다른 속도로 떨어지며 좌우로 흔들린다 */
#loginSky .enemy { animation: descend linear infinite; }
#loginSky .e1 { width: 58px; left:  6%; animation-duration: 11s; animation-delay: 0s;   }
#loginSky .e2 { width: 44px; left: 24%; animation-duration:  9s; animation-delay: 2.5s; }
#loginSky .e3 { width: 50px; left: 72%; animation-duration: 13s; animation-delay: 1.2s; }
#loginSky .e4 { width: 62px; left: 88%; animation-duration: 15s; animation-delay: 4s;   }
#loginSky .e5 { width: 40px; left: 52%; animation-duration:  8s; animation-delay: 6s;   }

@keyframes descend {
    0%   { transform: translate(0, -22vh) rotate(-4deg); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translate(18px, 118vh) rotate(4deg); opacity: 0; }
}

/* 보스 2척 — 아주 천천히 내려온다 (v33)
   ------------------------------------------------------------
   v25에서는 보스를 상단 중앙(top:-18px, left:50%)에 **고정**해 뒀는데
   제목의 앱 아이콘이 같은 자리라 통째로 가려졌다 (v31에서 제거).

   이번에는 고정하지 않고 몬스터처럼 내려오게 했다. 지나가는 것이므로
   제목·패널과 자리를 다투지 않는다. 아주 느려서(19~24초) 화면에
   묵직하게 떠 있는 것처럼 보인다. */
#loginSky .bigship { opacity: 0.6; animation: descend linear infinite; }
#loginSky .b1 { width: 118px; left:  1%; animation-duration: 19s; animation-delay: 1s; }
#loginSky .b2 { width: 142px; left: 66%; animation-duration: 24s; animation-delay: 9s; }

/* 몬스터 탄 — 화면을 채우는 역할. 몬스터보다 빠르게 쏟아진다 */
#loginSky .ammo { opacity: 0.9; animation: descend linear infinite; }
#loginSky .a1 { width: 26px; left:  9%; animation-duration: 5.0s; animation-delay: 0.2s; }
#loginSky .a2 { width: 24px; left: 21%; animation-duration: 4.2s; animation-delay: 2.0s; }
#loginSky .a3 { width: 28px; left: 34%; animation-duration: 5.6s; animation-delay: 1.1s; }
#loginSky .a4 { width: 24px; left: 47%; animation-duration: 4.6s; animation-delay: 3.2s; }
#loginSky .a5 { width: 27px; left: 59%; animation-duration: 5.2s; animation-delay: 0.8s; }
#loginSky .a6 { width: 25px; left: 71%; animation-duration: 4.4s; animation-delay: 2.6s; }
#loginSky .a7 { width: 30px; left: 83%; animation-duration: 6.0s; animation-delay: 1.7s; }
#loginSky .a8 { width: 26px; left: 94%; animation-duration: 4.8s; animation-delay: 3.8s; }

/* 아래에서 지키는 본함과 보조함 */
#loginSky .hero {
    width: 76px; bottom: 10px; left: 50%; margin-left: -38px;
    animation: hover 3.2s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(80,160,255,0.55));
}
#loginSky .wing { width: 34px; bottom: 22px; opacity: 0.85; }
#loginSky .w1 { left: 50%; margin-left: -84px; animation: hover 3.2s ease-in-out infinite 0.4s; }
#loginSky .w2 { left: 50%; margin-left:  50px; animation: hover 3.2s ease-in-out infinite 0.8s; }

@keyframes hover {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* 본함이 쏘는 탄 — 아래에서 위로 계속 올라간다 */
#loginSky .shot { animation: shoot linear infinite; }
#loginSky .s1 { width: 22px; left: 50%; margin-left: -11px; animation-duration: 1.6s; }
#loginSky .s2 { width: 16px; left: 50%; margin-left: -76px; animation-duration: 2.1s; animation-delay: 0.5s; }
#loginSky .s3 { width: 18px; left: 50%; margin-left:  58px; animation-duration: 1.9s; animation-delay: 1s; }

@keyframes shoot {
    0%   { transform: translateY(-30px);  opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(-78vh); opacity: 0; }
}

/* ---------- 제목 ---------- */
/* 앱 아이콘은 v33에서 뺐다 — 맨 위 가운데를 보스에게 내줬다 */
#loginTitle { position: relative; z-index: 1; text-align: center; margin: 10px 0 16px; }
#loginTitle h1 {
    font-size: 52px; margin: 8px 0 2px; letter-spacing: 1px;
    background: linear-gradient(180deg, #fff59d 0%, #ffb300 60%, #ff7043 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 2px rgba(0,0,0,0.35);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
#loginTitle .title-sub {
    font-size: 19px; color: #ffe082; margin: 0;
    text-shadow: 1px 2px 4px #000;
}

/* ---------- 입력 패널 ---------- */
#loginPanel {
    position: relative; z-index: 1;
    width: 100%; max-width: 380px; box-sizing: border-box;
    padding: 22px 20px 18px;
    background: rgba(12, 20, 48, 0.88);
    border: 3px solid #4fc3f7; border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55), inset 0 0 24px rgba(79,195,247,0.12);
    backdrop-filter: blur(6px);
}
.big-label {
    display: block; text-align: left;
    font-size: 20px; font-weight: bold; color: #b3e5fc;
    margin: 0 0 6px 4px;
}
.big-label .hint { font-size: 15px; color: #90a4ae; font-weight: normal; }
#loginPanel .auth-input {
    width: 100%; max-width: none; box-sizing: border-box;
    margin-bottom: 16px; padding: 16px;
    font-size: 22px; border-radius: 14px; border: 3px solid transparent;
    background: #f5f9ff; color: #12203f;
}
#loginPanel .auth-input:focus { outline: none; border-color: #ffb300; }
#playerPin { letter-spacing: 8px; text-align: center; }

.login-buttons { display: flex; gap: 10px; margin-top: 4px; }
.big-btn {
    flex: 1; min-height: 68px; padding: 12px 8px;
    font-size: 21px; font-weight: bold; color: #fff;
    border: none; border-radius: 16px; cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    word-break: keep-all; line-height: 1.3;
    box-shadow: 0 5px 0 rgba(0,0,0,0.35);
}
.big-btn.go  { background: linear-gradient(180deg, #66bb6a, #2e7d32); }
.big-btn.new { background: linear-gradient(180deg, #42a5f5, #1565c0); }
.big-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,0.35); }

#loginMessage {
    color: #ffeb3b; font-size: 17px; margin: 14px 0 0;
    min-height: 24px; line-height: 1.4; word-break: keep-all;
}

.admin-link {
    margin-top: 10px; background: none; border: none;
    color: #5c6b8a; font-size: 14px; text-decoration: underline; cursor: pointer;
}
#adminPanel {
    margin-top: 16px; border-top: 1px solid #37474f; padding-top: 16px;
}
#adminPanel h3 { color: #ff9800; margin-bottom: 12px; font-size: 17px; }

/* ---------- 작은 화면 ---------- */
@media (max-height: 780px) {
    #loginTitle { margin: 4px 0 10px; }
    #loginTitle h1 { font-size: 40px; }
    #loginTitle .title-sub { font-size: 16px; }
    #loginPanel { padding: 16px 16px 14px; }
    #loginPanel .auth-input { padding: 12px; font-size: 19px; margin-bottom: 12px; }
    .big-label { font-size: 17px; }
    .big-btn { min-height: 58px; font-size: 18px; }
}
@media (max-width: 420px) {
    #loginSky .hero { width: 60px; margin-left: -30px; }
    #loginSky .b1 { width: 92px; }
    #loginSky .b2 { width: 108px; }
    #loginSky .ammo { opacity: 0.8; }
}

/* 움직임에 민감한 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
    #loginSky .deco { animation: none; }
    #loginSky .ammo, #loginSky .bigship { display: none; }
    #loginSky .shot { display: none; }
}
