.kirame-product-preview {
    isolation: isolate;
    padding-block: clamp(1rem, 3vw, 2.5rem);
}

.kirame-product-preview::before {
    position: absolute;
    inset: 8% -3%;
    z-index: -1;
    content: "";
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(133, 111, 251, .42), transparent 68%);
    pointer-events: none;
}

.kirame-product-preview .phone {
    max-inline-size: 100%;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, .62), 0 0 0 1px rgba(214, 205, 255, .23);
}

.kirame-product-preview .phone-screen {
    width: 100%;
    aspect-ratio: auto;
    min-height: 455px;
}

.kirame-product-preview .acard {
    background: linear-gradient(125deg, #292348, #5b46bc 115%);
    border-color: rgba(226, 218, 255, .45);
}

.kirame-pos-preview {
    display: none;
}

.kirame-map-card {
    padding: clamp(14px, 3vw, 24px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
}

.kirame-map-card .btn { margin: 0 8px 8px 0; }
.kirame-map-card .btn[hidden] { display: none; }
.kirame-map-loading { visibility: hidden; }
.kirame-map-status:not(:empty) { padding: 8px 0; color: var(--muted); }
.kirame-map-card iframe {
    display: block;
    width: 100%;
    height: clamp(350px, 62vw, 580px);
    border: 1px solid var(--line);
    border-radius: 16px;
}

@media (min-width: 1120px) {
    .kirame-product-preview {
        min-height: 510px;
        justify-content: end;
        align-items: center;
        padding-inline-end: 10px;
    }

    .kirame-product-preview .phone {
        width: 264px;
        z-index: 1;
    }

    .kirame-pos-preview {
        position: absolute;
        display: grid;
        gap: 15px;
        inset-inline-start: 0;
        top: 22%;
        width: min(69%, 360px);
        padding: 18px clamp(100px, 10vw, 144px) 18px 18px;
        border: 1px solid #8174b5;
        border-radius: 24px;
        background: linear-gradient(150deg, #29263e, #181621);
        color: #faf7ff;
        box-shadow: 0 22px 55px #05040d80;
    }

    .kirame-pos-preview :is(.kirame-pos-top, .kirame-pos-total) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .kirame-pos-total b { white-space: nowrap; }

    .kirame-pos-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .kirame-pos-items span {
        display: grid;
        min-height: 44px;
        place-items: center;
        border-radius: 10px;
        background: #514476;
        color: #eae2ff;
    }

    .kirame-pos-preview svg { width: 17px; height: 17px; }
}

.kirame-auth-page, .kirame-mcp-page {
    inline-size: 100%;
    max-inline-size: none;
    color-scheme: light;
}

[data-theme="dark"] :is(.kirame-auth-page, .kirame-mcp-page),
:is(.kirame-auth-page, .kirame-mcp-page)[data-theme="dark"] {
    color-scheme: dark;
}

.kirame-auth-page .auth-workspace {
    max-height: none;
}

.kirame-auth-page button.btn[type="submit"] {
    min-block-size: 44px;
    background: #5644bf !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(62, 45, 166, .24), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}

.kirame-auth-page button.btn[type="submit"]:hover:not(:disabled) {
    background: #4937ae !important;
}

.kirame-auth-page button.btn[type="submit"]:disabled {
    opacity: .68;
    cursor: wait;
}

.kirame-auth-page .auth-story {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: radial-gradient(ellipse at 8% 0%, rgba(111, 87, 224, .18), transparent 70%);
}

.kirame-auth-page .auth-story-preview {
    display: flex;
    align-items: center;
    align-self: start;
    gap: clamp(12px, 2vw, 24px);
    margin-block: 0 22px;
    padding: clamp(14px, 2vw, 24px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--lgx-field, transparent);
}

.kirame-auth-page .auth-story-preview svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.kirame-auth-page .auth-story-preview svg:nth-child(2) {
    color: var(--muted);
    width: 17px;
}

@media (prefers-reduced-motion: no-preference) {
    .kirame-auth-page .auth-story-preview {
        animation: kirame-auth-appear .4s ease-out both;
    }
}

@keyframes kirame-auth-appear {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.kirame-mcp-page .mc-hero {
    background-image: radial-gradient(ellipse at 50% 10%, rgba(111, 87, 224, .19), transparent 70%);
}

.kirame-mcp-info .hero {
    background-image: radial-gradient(ellipse at 72% 0%, rgba(111, 87, 224, .18), transparent 70%);
}

.kirame-mcp-page pre {
    max-inline-size: 100%;
    overflow-x: auto;
}

.kirame-auth-page :is(.auth-workspace .wrap, main .auth-workspace .card.lg-surface) {
    max-height: none;
    overflow-y: visible;
}

:is(.kirame-auth-page, .kirame-mcp-page) :is(a, button, input, select):focus-visible {
    outline: 2px solid #7666e8;
    outline-offset: 3px;
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .kirame-product-preview::before {
            animation: kirame-preview-light linear both;
            animation-timeline: view();
            animation-range: cover 10% cover 65%;
        }
    }
}

@keyframes kirame-preview-light {
    from { opacity: .45; transform: scale(.76); }
    to { opacity: 1; transform: scale(1.06); }
}
