/* 홈 화면 바로가기 — 시각 안내만. 설치 API는 호출하지 않는다. */

.hsg {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 16px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.hsg--top-right {
    justify-content: flex-start;
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
}

.hsg--bottom-right,
.hsg--bottom-center {
    justify-content: flex-end;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.hsg[hidden] {
    display: none !important;
}

html.hsg-lock,
html.hsg-lock body {
    overflow: hidden;
}

.hsg-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.hsg-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px 18px 16px;
    border-radius: 20px;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hsg-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.04em;
    word-break: keep-all;
    color: #1a1a1a;
}

.hsg-lead {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.03em;
    word-break: keep-all;
    color: #1a1a1a;
}

.hsg-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hsg-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.03em;
    word-break: keep-all;
    color: #1a1a1a;
}

.hsg-num {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #6b1210;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.hsg-steps strong {
    padding: 0 4px;
    border-radius: 4px;
    background: #ffe14a;
    color: #1a1a1a;
    font-weight: 800;
}

.hsg-note {
    margin: 14px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.03em;
    word-break: keep-all;
    color: #1a1a1a;
}

.hsg-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 12px;
    background: #ffffff;
}

.hsg-btn {
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    cursor: pointer;
}

.hsg-btn:focus-visible {
    outline: 3px solid #ffe14a;
    outline-offset: 2px;
}

.hsg-btn-today {
    border: 3px solid #1a1a1a;
    background: #ffffff;
    color: #1a1a1a;
}

.hsg-btn-close {
    border: 3px solid #6b1210;
    background: #6b1210;
    color: #ffffff;
}

.hsg-pointer {
    position: fixed;
    z-index: 100052;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.hsg-pointer--top-right {
    top: 4px;
    right: 8px;
    animation: hsg-bounce-up 0.9s ease-in-out infinite;
}

.hsg-pointer--bottom-right {
    right: 10px;
    bottom: 4px;
    animation: hsg-bounce-down 0.9s ease-in-out infinite;
}

.hsg-pointer--bottom-center {
    left: 50%;
    bottom: 4px;
    animation: hsg-bounce-down-center 0.9s ease-in-out infinite;
}

.hsg-pointer-label {
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffe14a;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.hsg-arrow {
    display: block;
    width: 72px;
    height: 72px;
}

@keyframes hsg-bounce-up {
    0%, 100% { transform: translateY(10px); }
    50% { transform: translateY(-8px); }
}

@keyframes hsg-bounce-down {
    0%, 100% { transform: translateY(-8px); }
    50% { transform: translateY(12px); }
}

@keyframes hsg-bounce-down-center {
    0%, 100% { transform: translateX(-50%) translateY(-8px); }
    50% { transform: translateX(-50%) translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
    .hsg-pointer--top-right,
    .hsg-pointer--bottom-right,
    .hsg-pointer--bottom-center {
        animation: none;
    }
}
