body.liff-handoff-active { overflow: hidden; }
.liff-handoff[hidden], .liff-handoff [hidden] { display: none !important; }
.liff-handoff {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: auto;
    background: #fff;
    color: #17202a;
    padding: 24px;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.liff-handoff__content {
    width: 100%;
    max-width: 400px;
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
}
.liff-handoff__logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 112px;
    height: 96px;
    border-radius: 48%;
    background: #06c755;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 28px;
}
.liff-handoff__spinner {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 4px solid #e5e7eb;
    border-top-color: #06c755;
    border-radius: 50%;
    animation: liff-handoff-spin 1s linear infinite;
    margin-bottom: 24px;
}
.liff-handoff h1 { font-size: 26px; line-height: 1.45; margin: 0 0 12px; color: inherit; }
.liff-handoff p { font-size: 16px; line-height: 1.7; margin: 0 0 32px; color: #667085; }
.liff-handoff__button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 17px 12px;
    border-radius: 10px;
    background: #06c755;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.liff-handoff__button:hover, .liff-handoff__button:focus { color: #fff; background: #05ad49; }
.liff-handoff__button:focus-visible { outline: 3px solid #17202a; outline-offset: 4px; }
@keyframes liff-handoff-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .liff-handoff__spinner { animation: none; } }
