:root {
    --bg: #0b0f14;
    --panel: #0f1620;
    --text: #e6eef7;
    --muted: rgba(230, 238, 247, .72);
    --border: rgba(255, 255, 255, .08);
    --accent: #7c3aed;
    --header-height: 68px;
    --radius: 18px;
    --max: 1120px;
    --gap: 18px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 700px at 50% -10%, rgba(124, 58, 237, .22), transparent 60%),
        radial-gradient(900px 600px at 10% 20%, rgba(59, 130, 246, .12), transparent 55%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--header-height);
    backdrop-filter: blur(10px);
    background: rgba(11, 15, 20, .72);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.brand:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

.brand:active {
    transform: translateY(0)
}

.logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background:
        radial-gradient(10px 10px at 30% 30%, rgba(255, 255, 255, .45), transparent 55%),
        linear-gradient(135deg, rgba(124, 58, 237, .95), rgba(59, 130, 246, .75));
    border: 1px solid rgba(255, 255, 255, .12);
}

.title {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.title strong {
    font-size: 15px;
    letter-spacing: .2px;
}

.title span {
    font-size: 12px;
    color: var(--muted);
}

.hud {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: flex-end;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .9);
}

main {
    padding: 30px 0 52px;
}

.stage {
    display: grid;
    gap: var(--gap);
    align-items: start;
    margin-top: 0;
}

.frame-card {
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.frame-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 22, 32, .65);
}

.frame-topbar .left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pills {
    display: flex;
    gap: 7px;
}

.pill {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(0, 0, 0, .25);
}

.pill:nth-child(1) {
    background: rgb(239, 68, 68)
}

.pill:nth-child(2) {
    background: rgb(245, 159, 11)
}

.pill:nth-child(3) {
    background: rgb(34, 197, 94)
}

.frame-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.frame-meta strong {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frame-meta span {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    font-family: inherit;
    color: inherit;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

button:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0)
}

.iframe-wrap {
    width: 100%;
    display: block;
    background: #05070a;
}

iframe {
    width: 100%;
    border: 0;
    display: block;
    background: #05070a;
}

@media (min-width: 721px) {
    .iframe-wrap {
        aspect-ratio: 16 / 9;
    }

    iframe {
        height: 100%;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 62px
    }

    .iframe-wrap {
        height: calc(100svh - 40px);
    }

    iframe {
        height: calc(100svh - 40px);
    }

    .hud {
        min-width: auto
    }

    .chip {
        display: none
    }

    main {
        padding-top: 0;
    }

    .container {
        width: 100%;
    }

    .frame-card {
        border-radius: 0;
    }

    .info {
        padding: 14px;
    }
}

.info {
    margin-top: 26px;
}

.grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: 1fr;
}

@media (min-width: 980px) {
    .grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

.card {
    border-radius: var(--radius);
    background: rgba(15, 22, 32, .62);
    border: 1px solid var(--border);
    padding: 18px;
}

.card h2 {
    margin: 0 0 10px;
    font-size: 16px;
    letter-spacing: .2px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap)
}

.list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.li {
    display: flex;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
}

.badge {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(124, 58, 237, .18);
    border: 1px solid rgba(124, 58, 237, .28);
    color: rgba(230, 238, 247, .9);
    font-weight: 700;
    font-size: 12px;
}

.li .t {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.li .t strong {
    font-size: 13px
}

.li .t span {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
}

.footer-note {
    margin-top: 18px;
    color: rgba(230, 238, 247, .55);
    font-size: 12px;
    text-align: center;
}

.pulse {
    position: absolute;
    inset: auto 14px 14px auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .9);
    animation: ping 1.6s ease-out infinite;
    opacity: .9;
    pointer-events: none;
}