/* quake/style.css — 긴급재난문자 전용 화면 요소 (공통 ui.css 위에 덧씌움) */

/* 경보 빨간 화면 */
.qk-red { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255,0,20,0) 30%, rgba(255,10,30,0.55) 75%, rgba(200,0,10,0.85)); }
.qk-black { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0; background: #000; transition: opacity 0.2s; }

/* 흔들림까지 N초 */
.qk-count { position: fixed; left: 0; right: 0; top: 13%; z-index: 3; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.25s; color: #fff;
  text-shadow: 0 3px 0 #000, 0 0 30px rgba(255,0,0,0.6); }
.qk-count.show { opacity: 1; }
.qk-count small { display: block; font-size: 24px; font-weight: 900; letter-spacing: 0.04em; }
.qk-count b { display: inline-block; font-size: 128px; line-height: 1; font-weight: 900; color: #ff3b2f; font-variant-numeric: tabular-nums; }
.qk-count span { font-size: 30px; font-weight: 900; margin-left: 4px; }
.qk-count.beat b { animation: qkBeat 0.5s ease-out; }
@keyframes qkBeat { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (max-height: 520px) { .qk-count { top: 6%; } .qk-count b { font-size: 84px; } .qk-count small { font-size: 18px; } }

/* 작은 안내 (아래 가운데) */
.qk-hint { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(8px); max-width: min(92vw, 520px);
  background: rgba(10,10,14,0.72); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 8px 14px; font-size: 15px; font-weight: 800;
  text-align: center; word-break: keep-all; opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.qk-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.touch .qk-hint { bottom: calc(232px + env(safe-area-inset-bottom)); font-size: 14px; }

/* 상황 프롬프트 조금 크게 */
body.qk-on .ods-prompt { font-size: 15px; padding: 7px 14px; border: 1px solid rgba(255,213,74,0.45); }

/* 챙긴 것 */
.qk-items { flex-wrap: wrap; max-width: 220px; gap: 4px !important; white-space: normal !important; }
.qk-items i { font-style: normal; font-size: 11px; font-weight: 800; background: rgba(127,224,138,0.18); color: #b9f5c2; border-radius: 6px; padding: 2px 6px; }

/* 흔들림 게이지 */
.qk-gauge { display: inline-block; width: 70px; height: 9px; border-radius: 9px; background: rgba(255,255,255,0.15); overflow: hidden; vertical-align: middle; }
.qk-gauge i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a4b, #ff3b2f); }

/* 가상 상황 표시 (플레이 중 작게) */
.qk-tag { position: fixed; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 2; pointer-events: none; font-size: 10px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em; display: none; white-space: nowrap; }
body.qk-on .qk-tag { display: block; }
@media (max-width: 480px) { .qk-tag { top: auto; bottom: calc(6px + env(safe-area-inset-bottom)); } }

/* 버튼 글자 */
.ctl-btn small { font-size: 12px; font-weight: 800; }
.ctl-btn.slot-d .ctl-label { font-size: 17px; }

/* 결과: 행동요령 체크리스트 */
.qk-check { text-align: left; margin: 10px 0 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.qk-check-h { font-size: 12px; font-weight: 800; color: #a59a83; margin-bottom: 6px; letter-spacing: 0.04em; }
.qk-check ul { list-style: none; display: grid; gap: 4px; }
.qk-check li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; font-size: 13px; line-height: 1.35; }
.qk-check li b { font-size: 11px; font-weight: 900; text-align: center; border-radius: 6px; padding: 2px 0; margin-top: 1px; }
.qk-check li.ok b { background: rgba(127,224,138,0.2); color: #8ff09c; }
.qk-check li.miss b { background: rgba(255,93,93,0.18); color: #ff8a80; }
.qk-check li.bonus b { background: rgba(255,213,74,0.16); color: #ffd54a; }
.qk-check li.bonus.miss b { background: rgba(255,255,255,0.06); color: #8f8a7e; }
.qk-check li em { font-style: normal; color: #8f8a7e; font-size: 11px; margin-right: 2px; }
.qk-check li small { display: block; font-size: 11px; color: #b9a58a; }
.qk-check li.ok span { color: #e8e2d2; }
.qk-check li.miss span { color: #f2e6d8; }
.qk-src { font-size: 10.5px; color: #8f8a7e; margin-top: 8px; }
