:root {
    --us-ink: #1a2c34;
    --us-deep: #105163;
    --us-mid: #5794a5;
    --us-sky: #b7dce7;
    --us-paper: #f4f8f9;
}

/* ===== embed wrapper ===== */
.us-appanim {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
}

.aa-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 960px;
    transform-origin: top left;
    background: radial-gradient(80% 70% at 50% 4%, rgba(16,81,99,.5) 0%, transparent 62%), var(--us-ink);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 10%;
    left: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(87,148,165,.30) 0%, rgba(87,148,165,0) 70%);
    filter: blur(80px);
    transition: background .9s ease;
}

/* ---------------- phone ---------------- */
.aa-phone {
    position: relative;
    z-index: 2;
    width: 404px;
    background: #22262a;
    border-radius: 52px;
    padding: 13px;
    box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(183,220,231,.14);
}

.aa-pill {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 27px;
    border-radius: 14px;
    background: #14171a;
    z-index: 5;
}

.aa-screen {
    position: relative;
    border-radius: 41px;
    overflow: hidden;
    height: 820px;
    background: linear-gradient(170deg, #16323d 0%, #0d1b22 55%, #0a141a 100%);
}

.aa-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 42% at 50% 12%, rgba(183,220,231,.10) 0%, transparent 70%);
    pointer-events: none;
}

/* lock screen furniture */
.aa-lockface {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 112px;
}

.aa-clock {
    font-size: 5.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.aa-date {
    font-size: 1.02rem;
    color: rgba(255,255,255,.6);
    margin-top: .5rem;
    font-weight: 500;
}

.aa-swipe {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: 118px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.35);
}

/* ---------------- notification ---------------- */
.aa-notif {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 322px;
    background: rgba(248,250,251,.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 22px;
    padding: 16px 16px 17px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    box-shadow: 0 22px 48px -20px rgba(0,0,0,.75);
    transform: translateY(-30px) scale(.95);
    opacity: 0;
    transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .45s ease;
    z-index: 3;
}

.aa-notif.in {
    transform: none;
    opacity: 1
}

.aa-nicon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -.02em;
    transition: background .6s ease;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.55);
}

.aa-nbody {
    flex: 1;
    min-width: 0
}

.aa-nhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: .73rem;
    color: rgba(26,44,52,.52);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
}

.aa-nhead span:last-child {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    flex: 0 0 auto;
}

.aa-ntitle {
    font-size: 1.02rem;
    font-weight: 700;
    color: #12222a;
    line-height: 1.3;
    margin-bottom: 3px;
}

.aa-ntext {
    font-size: .92rem;
    color: rgba(26,44,52,.7);
    line-height: 1.4
}

@media (prefers-reduced-motion:reduce) {
    .aa-notif, .aa-nicon, .aa-glow {
        transition: none
    }
}

.preview {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem
}
