/* 안드로이드 앱 설치 방법 그림 안내(_apk_guide.html, 2026-11-11).
   바깥 화면(소개는 늘 어둡고, 설정 화면은 라이트 · 다크)을 따라가도록 카드는 반투명 회색과 currentColor 로만 칠한다.
   휴대폰 화면 안은 갤럭시 다크 화면을 본뜬 제 색이다 - 어느 바탕에서도 같은 그림으로 보인다. */
.apkg {
  --apkg-card: rgba(127, 127, 127, 0.08);
  --apkg-line: rgba(127, 127, 127, 0.24);
  --apkg-accent: #3e91ff;
  --apkg-hit: #4d7dff;
  margin: 28px 0 0;
  container-type: inline-size;
  color: inherit;
  font-family: inherit;
  text-align: left;
}
.apkg-head h3 { margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.apkg-head p { margin: 0; opacity: 0.74; line-height: 1.6; word-break: keep-all; }

.apkg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: none; }
.apkg-step { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px 16px 20px; border: 1px solid var(--apkg-line); border-radius: 20px; background: var(--apkg-card); }
.apkg-text { min-width: 0; }
.apkg-num { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 0 8px; border-radius: 50%; background: linear-gradient(135deg, #4d7dff, #9b6bff); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.apkg-step h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.apkg-step p { margin: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.apkg-tag { padding: 2px 8px; border-radius: 999px; background: rgba(62, 145, 255, 0.16); color: var(--apkg-accent); font-size: 11.5px; font-weight: 700; }
.apkg-note { margin-top: 8px !important; opacity: 0.72; font-size: 13px !important; }

/* 설정 경로: 칩을 › 로 잇는다 */
.apkg-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; }
.apkg-path span { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.apkg-path span + span::before { content: "›"; margin: 0 5px 0 2px; opacity: 0.5; }
.apkg-path .is-end { padding: 2px 9px; border-radius: 8px; background: var(--apkg-hit); color: #fff; }
.apkg-path .is-end::before { content: none; }
.apkg-path .is-end { margin-left: 4px; }

.apkg-foot { margin: 14px 0 0; padding: 12px 16px; border: 1px dashed var(--apkg-line); border-radius: 14px; opacity: 0.8; font-size: 13.5px; line-height: 1.6; word-break: keep-all; }

/* ---- 휴대폰 그림 ---- */
.apkg-phone { position: relative; align-self: center; width: 100%; max-width: 196px; aspect-ratio: 9 / 17.5; padding: 7px; border-radius: 30px; background: linear-gradient(160deg, #3a3d45, #16181d 60%); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.apkg-screen { position: relative; height: 100%; overflow: hidden; border-radius: 24px; background: #0e0f12; color: #ffffff; font-size: 11px; line-height: 1.35; }
.apkg-screen * { box-sizing: border-box; }
.apkg-status { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 14px; font-size: 9.5px; font-weight: 700; opacity: 0.9; }
.apkg-status i { width: 22px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, #f2f3f5 70%, rgba(242, 243, 245, 0.3) 70%); }
.apkg-status::after { content: ""; position: absolute; top: 7px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px #24262c; }

.apkg-bar { display: flex; align-items: center; gap: 8px; padding: 14px 12px 12px; font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.apkg-back { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: none; }
.apkg-group { margin: 0 8px 8px; padding: 2px 0; border-radius: 14px; background: #1d1f25; }
.apkg-group.is-dim { opacity: 0.55; }
.apkg-row { position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; }
.apkg-row + .apkg-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.apkg-row b { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; }
.apkg-row small { display: block; margin-top: 1px; color: #ffffff; font-size: 9.5px; font-weight: 500; }
.apkg-hero { display: grid; justify-items: center; gap: 8px; padding: 6px 16px 14px; text-align: center; }
.apkg-hero small { color: #ffffff; font-size: 9.5px; }
.apkg-shield { width: 38px; height: 44px; background: linear-gradient(160deg, #5ea2ff, #2d6cdf); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0 24 4.5V13c0 7.2-5 12.6-12 15C5 25.6 0 20.2 0 13V4.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0 24 4.5V13c0 7.2-5 12.6-12 15C5 25.6 0 20.2 0 13V4.5z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 스위치 - is-turning-on/off 는 한 번 눌린 듯 바뀐다(되풀이) */
.apkg-switch { position: relative; flex: none; width: 30px; height: 17px; border-radius: 999px; background: #4a4e57; }
.apkg-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.apkg-switch.is-turning-on { animation: apkg-on 3.2s ease-in-out infinite; }
.apkg-switch.is-turning-on::after { animation: apkg-knob-on 3.2s ease-in-out infinite; }
.apkg-switch.is-turning-off { animation: apkg-off 3.2s ease-in-out infinite; }
.apkg-switch.is-turning-off::after { animation: apkg-knob-off 3.2s ease-in-out infinite; }
@keyframes apkg-on { 0%, 38% { background: #4a4e57; } 50%, 100% { background: var(--apkg-accent); } }
@keyframes apkg-knob-on { 0%, 38% { transform: translateX(0); } 50%, 100% { transform: translateX(13px); } }
@keyframes apkg-off { 0%, 38% { background: var(--apkg-accent); } 50%, 100% { background: #4a4e57; } }
@keyframes apkg-knob-off { 0%, 38% { transform: translateX(13px); } 50%, 100% { transform: translateX(0); } }

/* 누를 곳 - 파란 테두리와 퍼지는 손끝 */
.apkg .is-hit { position: relative; box-shadow: 0 0 0 2px var(--apkg-hit); border-radius: 10px; }
.apkg-row.is-hit { border-radius: 12px; }
.apkg .is-hit::after { content: ""; position: absolute; right: 14%; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); pointer-events: none; animation: apkg-tap 3.2s ease-out infinite; }
.apkg-row.is-hit::after { right: 52px; }
@keyframes apkg-tap { 0%, 30% { opacity: 0; transform: scale(0.4); } 38% { opacity: 0.9; transform: scale(0.8); } 60%, 100% { opacity: 0; transform: scale(2); } }

/* 1단계: 브라우저 + 받기 알림 */
.apkg-url { display: flex; align-items: center; gap: 6px; margin: 4px 10px 0; padding: 7px 10px; border-radius: 999px; background: #1d1f25; color: #ffffff; font-size: 10px; }
.apkg-lock { width: 7px; height: 8px; border-radius: 2px; background: #8d929c; flex: none; }
.apkg-page { display: grid; justify-items: center; gap: 8px; padding: 30px 12px 0; }
.apkg-mark { width: 30px; height: 25px; background: #fff; -webkit-mask: url('../img/alldock-mark.svg') center / contain no-repeat; mask: url('../img/alldock-mark.svg') center / contain no-repeat; }
.apkg-page-title { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.apkg-fake-btn { padding: 6px 12px; border-radius: 999px; background: #fff; color: #0e0f12; font-size: 10px; font-weight: 700; }
.apkg-sheet { position: absolute; left: 8px; right: 8px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: #24272e; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4); }
.apkg-file { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #3ddc84; color: #0b3d22; font-size: 8px; font-weight: 800; flex: none; }
.apkg-sheet-text { flex: 1; min-width: 0; }
.apkg-sheet-text b { display: block; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apkg-sheet-text small { color: #ffffff; font-size: 9px; }
.apkg-sheet-btn { padding: 5px 10px; color: var(--apkg-accent); font-size: 11px; font-weight: 800; }
.apkg-sheet-btn.is-hit::after { right: 50%; margin-right: -11px; }

/* 3단계: 앱 아이콘 */
.apkg-app { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.apkg-app.is-chrome { background: conic-gradient(from -30deg, #ea4335 0 120deg, #fbbc05 0 240deg, #34a853 0); border-radius: 50%; box-shadow: inset 0 0 0 6px transparent; position: relative; }
.apkg-app.is-chrome::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #4285f4; box-shadow: 0 0 0 2px #fff; }
.apkg-app.is-samsung { background: linear-gradient(135deg, #7b5cff, #5a3ee0); }
.apkg-app.is-files { background: linear-gradient(135deg, #ffb340, #ff8a00); }

/* 4단계: 설치 창 */
.apkg-screen.is-dimmed { background: radial-gradient(120% 80% at 50% 30%, #2a2d35, #0e0f12); }
.apkg-dialog { position: absolute; left: 10px; right: 10px; bottom: 14px; display: grid; justify-items: center; gap: 4px; padding: 18px 12px 12px; border-radius: 20px; background: #24272e; text-align: center; }
.apkg-icon { width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: url('../img/alldock-icon-192.png') center / cover no-repeat, #fff; }
.apkg-dialog b { font-size: 13px; }
.apkg-dialog small { color: #ffffff; font-size: 10px; }
.apkg-dialog-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; margin-top: 12px; }
.apkg-dialog-btns span { padding: 8px 0; border-radius: 999px; background: #33363e; font-size: 11px; font-weight: 700; }
.apkg-dialog-btns .is-hit { background: var(--apkg-accent); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); border-radius: 999px; }
.apkg-dialog-btns .is-hit::after { right: 50%; margin-right: -11px; }

@container (max-width: 1000px) { .apkg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 480px) {
  .apkg-steps { grid-template-columns: 1fr; }
  .apkg-phone { max-width: 184px; }
}
@media (prefers-reduced-motion: reduce) {
  .apkg-switch, .apkg-switch::after, .apkg .is-hit::after { animation: none !important; }
  .apkg-switch.is-turning-on { background: var(--apkg-accent); }
  .apkg-switch.is-turning-on::after { transform: translateX(13px); }
}
