.phoneone-showcase {
    --phoneone-max-width: 560px;
    --phoneone-frame-width: 1024;
    --phoneone-frame-height: 1536;
    --phoneone-frame-ratio: 1024 / 1536;
    --phoneone-screen-left: 24.21875%;
    --phoneone-screen-top: 15.234375%;
    --phoneone-screen-width: 51.5625%;
    --phoneone-screen-height: 65.7552083333%;
    --phoneone-screen-radius: 24px;
    --phoneone-nav-size: 44px;
    --phoneone-nav-icon-color: #f7fbff;
    --phoneone-nav-bg: rgba(21, 33, 48, 1);
    --phoneone-nav-ring: rgba(255, 255, 255, 0);
    --phoneone-nav-radius: 16px;
    --phoneone-dot-w: 12px;
    --phoneone-dot-h: 12px;
    --phoneone-dot-color: rgba(142, 155, 168, 0.55);
    --phoneone-dot-active: rgba(15, 124, 116, 1);
    --phoneone-dot-radius: 999px;
    --phoneone-dot-ring: rgba(255, 255, 255, 0);
    margin: 1.5rem auto;
    max-width: min(100%, var(--phoneone-max-width));
    color: #11202c;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.phoneone-showcase__device {
    position: relative;
    width: 100%;
    aspect-ratio: var(--phoneone-frame-ratio);
    margin-bottom: -20%;
    z-index: 1;
}

.phoneone-showcase__screen {
    position: absolute;
    left: var(--phoneone-screen-left);
    top: var(--phoneone-screen-top);
    width: var(--phoneone-screen-width);
    height: var(--phoneone-screen-height);
    overflow: hidden;
    border-radius: var(--phoneone-screen-radius);
    background:
        linear-gradient(180deg, rgba(20, 26, 33, 0.9), rgba(8, 11, 15, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.16);
}

.phoneone-showcase__track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phoneone-showcase.is-dragging .phoneone-showcase__track {
    transition: none;
}

.phoneone-showcase__slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.phoneone-showcase__scroll {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, #1a212b, #0b1015);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 132, 150, 0.55) transparent;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.phoneone-showcase.is-dragging .phoneone-showcase__scroll {
    cursor: grabbing;
}

.phoneone-showcase--fit .phoneone-showcase__scroll {
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: pan-x pinch-zoom;
    scrollbar-width: none;
}

.phoneone-showcase--fit .phoneone-showcase__slide {
    overflow: hidden;
}

.phoneone-showcase--fit .phoneone-showcase__scroll::-webkit-scrollbar {
    width: 0;
}

.phoneone-showcase--fit .phoneone-showcase__image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.phoneone-showcase__scroll::-webkit-scrollbar {
    width: 6px;
}

.phoneone-showcase__scroll::-webkit-scrollbar-thumb {
    background: rgba(114, 132, 150, 0.55);
    border-radius: 999px;
}

.phoneone-showcase__image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.phoneone-showcase__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 24px 30px rgba(6, 12, 18, 0.16));
}

.phoneone-showcase__meta {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: 0;
    text-align: center;
}

.phoneone-showcase__counter {
    min-width: 5.5rem;
    color: #6b7682;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.phoneone-showcase__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phoneone-showcase__arrows {
    display: flex;
    gap: 10px;
}

.phoneone-showcase__button,
.phoneone-showcase__dot {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.phoneone-showcase__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--phoneone-nav-size);
    height: var(--phoneone-nav-size);
    border: 1px solid var(--phoneone-nav-ring);
    border-radius: 999px;
    background: var(--phoneone-nav-bg);
    color: var(--phoneone-nav-icon-color);
    box-shadow: 0 12px 18px rgba(10, 16, 24, 0.16);
    transition:
        transform 180ms ease,
        opacity 180ms ease,
        filter 180ms ease;
}

.phoneone-showcase__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.phoneone-showcase__button-icon svg {
    width: calc(var(--phoneone-nav-size) * 0.56);
    height: calc(var(--phoneone-nav-size) * 0.56);
    display: block;
}

.phoneone-showcase__button:hover,
.phoneone-showcase__button:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    outline: none;
}

.phoneone-showcase__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.phoneone-showcase[data-phoneone-nav-shape="rounded"] .phoneone-showcase__button {
    border-radius: var(--phoneone-nav-radius);
}

.phoneone-showcase[data-phoneone-nav-shape="square"] .phoneone-showcase__button {
    border-radius: 0;
}

.phoneone-showcase[data-phoneone-nav-shape="none"] .phoneone-showcase__button {
    border-width: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.phoneone-showcase__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phoneone-showcase__dot {
    width: var(--phoneone-dot-w);
    height: var(--phoneone-dot-h);
    border: 1px solid var(--phoneone-dot-ring);
    border-radius: var(--phoneone-dot-radius);
    background: var(--phoneone-dot-color);
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.phoneone-showcase__dot:hover,
.phoneone-showcase__dot:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

.phoneone-showcase__dot.is-active {
    background: var(--phoneone-dot-active);
    transform: scale(1.08);
}

.phoneone-showcase__hint {
    max-width: 32rem;
    margin: 0;
    color: #54616f;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .phoneone-showcase {
        max-width: min(100%, 420px);
    }

    .phoneone-showcase__device {
        margin-bottom: -17%;
    }

    .phoneone-showcase__button {
        width: min(40px, var(--phoneone-nav-size));
        height: min(40px, var(--phoneone-nav-size));
    }
}

@media (prefers-reduced-motion: reduce) {
    .phoneone-showcase__track,
    .phoneone-showcase__button,
    .phoneone-showcase__dot {
        transition: none;
    }
}
