html.ttwv-is-open,
body.ttwv-is-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

.ttwv-overlay[hidden] {
    display: none !important;
}

.ttwv-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.74);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
}

.ttwv-modal,
.ttwv-modal * {
    box-sizing: border-box;
}

.ttwv-modal {
    width: min(100%, 540px);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 31px 25px 25px;
    border-radius: 18px;
    background: #ffffff;
    color: #232323;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.ttwv-title {
    margin: 0 0 20px;
    font-size: clamp(25px, 6vw, 31px);
    line-height: 1.18;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #171717;
}

.ttwv-message {
    margin: 0 auto 24px;
    max-width: 450px;
    font-size: clamp(17px, 4.2vw, 21px);
    line-height: 1.52;
    color: #5f5f64;
}

.ttwv-message strong {
    color: #4a4a4f;
    font-weight: 760;
}

.ttwv-guide {
    padding: 20px 21px;
    border: 2px solid #ad3d0d;
    border-radius: 17px;
    background: #fff7f1;
    text-align: left;
    color: #2f2f33;
}

.ttwv-guide-title {
    margin-bottom: 11px;
    color: #ad3d0d;
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 780;
}

.ttwv-step {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 9px;
    font-size: clamp(17px, 4.2vw, 21px);
    line-height: 1.45;
}

.ttwv-step > strong {
    flex: 0 0 auto;
    color: #ad3d0d;
    font-weight: 800;
}

.ttwv-step span strong {
    color: #ad3d0d;
    font-weight: 780;
}

.ttwv-separator {
    margin: 25px 0 17px;
    color: #707075;
    font-size: 20px;
}

.ttwv-copy-label {
    display: block;
    margin-bottom: 9px;
    text-align: left;
    font-size: clamp(17px, 4.2vw, 20px);
    color: #303035;
}

.ttwv-url {
    display: block;
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border: 1px solid #d8d8de;
    border-radius: 13px;
    outline: none;
    background: #f0f0f4;
    color: #29292d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ttwv-url:focus {
    border-color: #b9b9c3;
    box-shadow: 0 0 0 3px rgba(90, 90, 110, 0.10);
}

.ttwv-copy-button {
    width: 100%;
    min-height: 58px;
    margin-top: 14px;
    padding: 13px 18px;
    border: 0;
    border-radius: 13px;
    background: #eeeeF2;
    color: #242428;
    font: inherit;
    font-size: clamp(18px, 4.6vw, 22px);
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ttwv-copy-button:active {
    transform: scale(0.99);
    background: #e4e4e9;
}

.ttwv-copy-button.is-copied {
    font-weight: 700;
}

.ttwv-footer {
    margin-top: 18px;
    color: #747479;
    font-size: clamp(16px, 4vw, 19px);
}

@media (max-width: 390px) {
    .ttwv-overlay {
        padding: 14px;
    }

    .ttwv-modal {
        max-height: calc(100vh - 28px);
        padding: 25px 18px 21px;
        border-radius: 16px;
    }

    .ttwv-guide {
        padding: 17px 16px;
    }
}

@media (max-height: 650px) {
    .ttwv-overlay {
        align-items: flex-start;
        overflow-y: auto;
    }

    .ttwv-modal {
        margin: 10px 0;
        max-height: none;
    }
}
