/* shared/pwa.css — 홈 화면에 추가 버튼·안내 시트 (허브와 게임 공통) */
.pwa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; }
.pwa-btn svg { flex: none; }
.pwa-btn.hide { display: none !important; }
.pwa-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.6); display: flex; align-items: flex-end; justify-content: center; padding: 12px; touch-action: auto; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: pwaFade 0.18s ease-out; }
@media (min-width: 640px) { .pwa-sheet { align-items: center; } }
@keyframes pwaFade { from { opacity: 0; } }
.pwa-card { width: 100%; max-width: 400px; background: #16140f; color: #f4e9d0; border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; padding: 18px 18px 14px; font-family: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif; animation: pwaUp 0.22s ease-out; margin-bottom: env(safe-area-inset-bottom); }
@keyframes pwaUp { from { transform: translateY(24px); } }
.pwa-head { display: flex; gap: 12px; align-items: center; }
.pwa-head img { border-radius: 12px; }
.pwa-head b { display: block; font-size: 16px; }
.pwa-head small { color: #8f8a7e; font-size: 12px; letter-spacing: 0.1em; }
.pwa-card h3 { font-size: 19px; margin: 14px 0 10px; word-break: keep-all; }
.pwa-steps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.pwa-steps li { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; word-break: keep-all; }
.pwa-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,213,74,0.15); color: #ffd54a; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.pwa-note { font-size: 14px; color: #cfc5ad; line-height: 1.6; word-break: keep-all; }
.pwa-url { margin-top: 8px; font-size: 13px; color: #ffd54a; word-break: break-all; }
.pwa-foot { margin-top: 10px; font-size: 12px; color: #8f8a7e; line-height: 1.5; word-break: keep-all; }
.pwa-card .primary { margin-top: 12px; width: 100%; padding: 14px 0; border: 0; border-radius: 14px; background: #f4e9d0; color: #16120b; font-weight: 900; font-size: 17px; cursor: pointer; }
.pwa-card .ghost, .pwa-card .pwa-close { margin-top: 10px; width: 100%; padding: 11px 0; border: 0; border-radius: 12px; background: rgba(255,255,255,0.07); color: #cfc5ad; font-size: 14px; cursor: pointer; }
/* 다른 기기에서 이어 하기 (link-sheet.js) */
.lk-steps { margin-top: 10px; }
.lk-code { margin-top: 12px; text-align: center; background: rgba(255,213,74,0.1); border: 1px dashed rgba(255,213,74,0.5); border-radius: 14px; padding: 12px; }
.lk-code.hide { display: none; }
.lk-code b { display: block; font-size: 32px; letter-spacing: 0.12em; color: #ffd54a; font-family: ui-monospace, Menlo, monospace; }
.lk-code small { display: block; margin-top: 4px; font-size: 12px; color: #a59a83; }
.lk-in { display: flex; gap: 8px; margin-top: 12px; }
.lk-in input { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #f4e9d0; font-size: 18px; letter-spacing: 0.15em; text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; }
.lk-in button { flex: none; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(255,255,255,0.12); color: #f4e9d0; font-weight: 800; font-size: 14px; cursor: pointer; }
.lk-msg { min-height: 18px; margin-top: 8px; font-size: 13px; color: #ff8f7a; word-break: keep-all; }
.lk-msg.ok { color: #9be27a; }
