:root {
    color-scheme: light;
    --canvas-w: 941;
    --canvas-h: 1672;
    --shell-w: min(100vw, 941px, calc(100dvh * 941 / 1672));
    --shell-edge: calc((100vw - var(--shell-w)) / 2);
    --focus: rgba(36, 119, 255, 0.52);
    --email: #28199f;
    --toast-bg: rgba(13, 29, 63, 0.92);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100dvh;
    overflow: hidden;
    color: #0a1835;
    background: #fbf8ff;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}


button,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    position: relative;
    width: var(--shell-w);
    aspect-ratio: var(--canvas-w) / var(--canvas-h);
    min-height: 0;
    max-height: 100dvh;
    margin: auto;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    container-type: inline-size;
    isolation: isolate;
}

.template-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.screen-hotspot {
    position: absolute;
    z-index: 2;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    appearance: none;
    -webkit-tap-highlight-color: rgba(38, 125, 255, 0.12);
}

.screen-hotspot:hover {
    background: rgba(255, 255, 255, 0.06);
}

.screen-hotspot:active {
    background: rgba(35, 114, 255, 0.08);
}

.screen-hotspot:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -4px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.62);
}

.screen-hotspot[disabled] {
    cursor: not-allowed;
    opacity: 0.35;
}

.primary-line-hotspot {
    left: 10.5%;
    top: 25.7%;
    width: 79.0%;
    height: 9.2%;
    border-radius: 999px;
}

.line-hotspot {
    left: 6.4%;
    width: 87.0%;
    height: 12.4%;
}

.line-hotspot-layer .line-hotspot:nth-child(1),
.line-hotspot-1 {
    top: 37.0%;
}

.line-hotspot-layer .line-hotspot:nth-child(2),
.line-hotspot-2 {
    top: 50.3%;
}

.line-hotspot-layer .line-hotspot:nth-child(3),
.line-hotspot-3 {
    top: 63.6%;
}

.line-hotspot-layer .line-hotspot:nth-child(n+4) {
    display: none;
}

.notification-hotspot {
    left: 6.4%;
    top: 76.8%;
    width: 87.0%;
    height: 5.4%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16% 0.7cqw;
    border-radius: 24px;
    text-indent: 0;
}

.notification-email {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--email);
    font-size: clamp(9px, 2.2cqw, 21px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-email-label {
    color: #28199f;
}

.notification-email-address {
    color: #28199f;
}

.quick-hotspot {
    top: 83.0%;
    height: 7.35%;
    border-radius: 28px;
}

.home-hotspot {
    left: 6.4%;
    width: 28.9%;
}

.mail-hotspot {
    left: 36.4%;
    width: 28.0%;
}

.service-hotspot {
    left: 65.5%;
    width: 27.9%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 50;
    min-width: 220px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--toast-bg);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-shadow: 0 14px 30px rgba(20, 70, 120, 0.24);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 942px) {
    .page-shell {
        margin-top: 0;
        margin-bottom: 0;
    }


}

@media (max-width: 768px) {
    :root {
        --shell-w: 100vw;
    }

    body {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        align-items: flex-start;
    }

    .page-shell {
        width: 100vw;
        max-height: none;
        margin: 0;
        flex: 0 0 auto;
    }
}

@media (max-width: 430px) {
    .page-shell {
        box-shadow: none;
    }

    .line-hotspot,
    .quick-hotspot,
    .notification-hotspot {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Measured against the unchanged user-selected 941 x 1672 PNG. */
.primary-line-hotspot { left: 4.463337%; top: 23.684211%; width: 91.179596%; height: 12.380383%; }
.line-hotspot-layer .line-hotspot:nth-child(1) { left: 4.675877%; top: 37.559809%; width: 29.224230%; height: 29.724880%; }
.line-hotspot-layer .line-hotspot:nth-child(2) { left: 35.494155%; top: 37.559809%; width: 29.011690%; height: 29.724880%; }
.line-hotspot-layer .line-hotspot:nth-child(3) { left: 66.099894%; top: 37.559809%; width: 29.224230%; height: 29.724880%; }
.notification-hotspot { left: 4.675877%; top: 68.361244%; width: 44.314559%; height: 8.014354%; }
.service-hotspot { left: 51.009564%; top: 68.361244%; width: 44.314559%; height: 8.014354%; }
.mail-hotspot { left: 4.675877%; top: 77.452153%; width: 44.314559%; height: 8.253589%; }
.home-hotspot { left: 51.009564%; top: 77.452153%; width: 44.314559%; height: 8.253589%; }

.primary-line-hotspot { border-radius: 30px; }
.line-hotspot { border-radius: 26px; }
.notification-hotspot { padding: 0; display: block; text-indent: 0; }
.notification-email { position: absolute; left: 39%; bottom: 0.2cqw; width: 60%; max-width: 60%; font-size: clamp(7px, 1.7cqw, 16px); line-height: 1.2; text-align: left; }
.notification-email-label { display: none; }
.quick-hotspot { border-radius: 20px; }
