.quickstart-guide {
    position: fixed;
    inset: 0;
    z-index: 21000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 198, 255, 0.14), transparent 32%),
        radial-gradient(circle at 82% 14%, rgba(255, 236, 0, 0.10), transparent 24%),
        linear-gradient(180deg, #040c14 0%, #06111c 100%);
    animation: quickstart-fade-in 0.24s ease;
}

.quickstart-guide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 198, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 198, 255, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.28;
    pointer-events: none;
}

.quickstart-guide.is-fullscreen {
    padding: 0;
}

.quickstart-shell {
    position: relative;
    width: min(1280px, calc(100vw - 40px));
    height: min(920px, calc(100vh - 40px));
    border: 1px solid rgba(0, 198, 255, 0.22);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(5, 19, 30, 0.94), rgba(4, 14, 24, 0.98));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.quickstart-guide.is-fullscreen .quickstart-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.quickstart-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 198, 255, 0.10), transparent 18%),
        radial-gradient(circle at 28% 20%, rgba(0, 198, 255, 0.08), transparent 20%),
        radial-gradient(circle at 78% 80%, rgba(255, 236, 0, 0.04), transparent 18%);
    pointer-events: none;
}

.quickstart-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 198, 255, 0.26);
    border-radius: 10px;
    background: rgba(6, 20, 32, 0.82);
    color: #d8f3ff;
    cursor: pointer;
}

.quickstart-close:hover {
    background: rgba(9, 28, 42, 0.92);
}

.quickstart-arena {
    position: relative;
    width: 100%;
    height: 100%;
    --edge-gap-x: 56px;
    --edge-gap-y: 64px;
    --center-size: 240px;
    --center-buffer: 34px;
    --card-w: min(37%, calc(50% - (var(--center-size) / 2) - var(--center-buffer) - var(--edge-gap-x)));
    --card-h: min(40%, calc(50% - (var(--center-size) / 2) - var(--center-buffer) - var(--edge-gap-y)));
    --cutout-size: 176px;
}

.quickstart-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 28px;
    border: 1px solid rgba(0, 198, 255, 0.18);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(8, 28, 44, 0.92), rgba(5, 18, 29, 0.96));
    color: #eaf8ff;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.quickstart-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 236, 0, 0.28);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.quickstart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.08), transparent 48%);
    pointer-events: none;
}

.quickstart-card-left-top,
.quickstart-card-left-bottom,
.quickstart-card-right-top,
.quickstart-card-right-bottom {
    width: var(--card-w);
    height: var(--card-h);
    min-height: 290px;
}

.quickstart-card-left-top {
    left: var(--edge-gap-x);
    top: var(--edge-gap-y);
}

.quickstart-card-left-bottom {
    left: var(--edge-gap-x);
    bottom: var(--edge-gap-y);
}

.quickstart-card-right-top {
    right: var(--edge-gap-x);
    top: var(--edge-gap-y);
}

.quickstart-card-right-bottom {
    right: var(--edge-gap-x);
    bottom: var(--edge-gap-y);
}

.quickstart-card-cutout {
    position: absolute;
    display: block;
    width: var(--cutout-size);
    height: var(--cutout-size);
    border-radius: 50%;
    background: rgba(4, 14, 24, 0.98);
    pointer-events: none;
}

.quickstart-card-left-top .quickstart-card-cutout {
    right: calc(var(--cutout-size) / -2);
    bottom: calc(var(--cutout-size) / -2);
}

.quickstart-card-left-bottom .quickstart-card-cutout {
    right: calc(var(--cutout-size) / -2);
    top: calc(var(--cutout-size) / -2);
}

.quickstart-card-right-top .quickstart-card-cutout {
    left: calc(var(--cutout-size) / -2);
    bottom: calc(var(--cutout-size) / -2);
}

.quickstart-card-right-bottom .quickstart-card-cutout {
    left: calc(var(--cutout-size) / -2);
    top: calc(var(--cutout-size) / -2);
}

.quickstart-card-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    color: #7fd9ff;
}

.quickstart-card-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
}

.quickstart-card-title,
.quickstart-card-hint {
    position: relative;
    z-index: 1;
}

.quickstart-card-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
}

.quickstart-card-hint {
    max-width: 22ch;
    color: rgba(214, 235, 248, 0.78);
    font-size: 17px;
    line-height: 1.8;
}

.quickstart-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--center-size);
    height: var(--center-size);
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.quickstart-center-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;
}

.quickstart-center-ring-outer {
    inset: -16px;
    border: 1px solid rgba(0, 198, 255, 0.26);
    box-shadow: 0 0 26px rgba(0, 198, 255, 0.10);
}

.quickstart-center-ring-mid {
    inset: -7px;
    border: 1px solid rgba(255, 236, 0, 0.24);
}

.quickstart-center-ring-inner {
    inset: 8px;
    border: 1px solid rgba(0, 198, 255, 0.18);
}

.quickstart-center-core {
    position: absolute;
    inset: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 36%, rgba(0, 198, 255, 0.18), rgba(7, 24, 38, 0.96));
    box-shadow:
        0 0 0 8px rgba(0, 198, 255, 0.06),
        0 0 40px rgba(0, 198, 255, 0.14);
}

.quickstart-center-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: translate(-1px, 2px) scale(1.03);
}

.quickstart-center-label {
    position: absolute;
    left: 50%;
    bottom: -44px;
    transform: translateX(-50%);
    color: #eaf8ff;
    font-size: 16px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.quickstart-enter-btn {
    position: absolute;
    left: 50%;
    top: calc(50% + (var(--center-size) / 2) + 72px);
    transform: translateX(-50%);
    min-width: 180px;
    min-height: 54px;
    padding: 14px 26px;
    border: 1px solid rgba(72, 214, 118, 0.38);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(72, 214, 118, 0.22), rgba(72, 214, 118, 0.10));
    color: #dfffe9;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 14px 30px rgba(72, 214, 118, 0.10);
}

.quickstart-enter-btn:hover {
    background: linear-gradient(180deg, rgba(72, 214, 118, 0.28), rgba(72, 214, 118, 0.14));
}

.quickstart-center:hover .quickstart-center-ring-outer {
    transform: scale(1.04);
    box-shadow: 0 0 38px rgba(0, 198, 255, 0.18);
}

.quickstart-center:hover .quickstart-center-ring-mid {
    transform: scale(1.07);
}

.quickstart-center:hover .quickstart-center-core {
    box-shadow:
        0 0 0 10px rgba(0, 198, 255, 0.08),
        0 0 56px rgba(0, 198, 255, 0.20);
}

.quickstart-detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 11, 18, 0.56);
    backdrop-filter: blur(10px);
}

.quickstart-detail-backdrop.is-open {
    display: flex;
}

.quickstart-ai-backdrop {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(3, 11, 18, 0.72);
    backdrop-filter: blur(12px);
}

.quickstart-ai-backdrop.is-open {
    display: flex;
}

.quickstart-ai-panel {
    width: min(980px, calc(100% - 56px));
    height: min(760px, calc(100% - 56px));
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.quickstart-ai-panel-close {
    display: none;
}

.quickstart-ai-host {
    flex: 1;
    min-height: 0;
    padding: 0;
}

.quickstart-ai-host > #ai-window.quickstart-ai-mounted {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.quickstart-ai-host > #ai-window.quickstart-ai-mounted .tool-window-header {
    cursor: default;
}

.quickstart-ai-host > #ai-window.quickstart-ai-mounted .tool-window-action[data-action="close"] {
    display: none;
}

.quickstart-ai-host > #ai-window.quickstart-ai-mounted .tool-window-action[data-action="collapse"] {
    border-color: rgba(72, 214, 118, 0.34);
    background: rgba(72, 214, 118, 0.10);
    color: #dfffe9;
}

.quickstart-ai-host > #ai-window.quickstart-ai-mounted .tool-window-action[data-action="collapse"]:hover {
    background: rgba(72, 214, 118, 0.18);
    border-color: rgba(72, 214, 118, 0.48);
}

.quickstart-detail {
    width: min(760px, calc(100% - 64px));
    max-height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 198, 255, 0.20);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(7, 22, 35, 0.96), rgba(4, 14, 24, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

.quickstart-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(0, 198, 255, 0.12);
}

.quickstart-detail-kicker {
    display: block;
    color: #7fd9ff;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.quickstart-detail-title {
    margin: 0;
    color: #effaff;
    font-size: 30px;
}

.quickstart-detail-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 198, 255, 0.26);
    border-radius: 10px;
    background: rgba(6, 20, 32, 0.82);
    color: #d8f3ff;
    cursor: pointer;
}

.quickstart-detail-body {
    flex: 1;
    min-height: 0;
    padding: 22px 24px 24px;
    overflow: auto;
    color: #dceef8;
    line-height: 1.85;
}

.quickstart-detail-body p,
.quickstart-detail-body ul,
.quickstart-detail-body ol {
    margin: 0 0 14px;
}

.quickstart-detail-body ul,
.quickstart-detail-body ol {
    padding-left: 1.8em;
}

.quickstart-detail-body a {
    color: #7fd9ff;
    text-decoration: none;
}

.quickstart-detail-body a:hover {
    color: #ffef7d;
}

.quickstart-guide.fade-out {
    animation: quickstart-fade-out 0.24s ease forwards;
}

@keyframes quickstart-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes quickstart-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 1100px) {
    .quickstart-shell,
    .quickstart-guide.is-fullscreen .quickstart-shell {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .quickstart-arena {
        --edge-gap-x: 34px;
        --edge-gap-y: 42px;
        --center-size: 210px;
        --center-buffer: 24px;
        --card-w: min(39%, calc(50% - (var(--center-size) / 2) - var(--center-buffer) - var(--edge-gap-x)));
        --cutout-size: 150px;
    }

    .quickstart-card-left-top,
    .quickstart-card-left-bottom,
    .quickstart-card-right-top,
    .quickstart-card-right-bottom {
        min-height: 240px;
    }

    .quickstart-enter-btn {
        top: calc(50% + (var(--center-size) / 2) + 66px);
    }
}

@media (max-width: 860px) {
    .quickstart-shell {
        overflow: auto;
    }

    .quickstart-arena {
        min-height: 980px;
        --cutout-size: 150px;
    }

    .quickstart-card-left-top,
    .quickstart-card-left-bottom,
    .quickstart-card-right-top,
    .quickstart-card-right-bottom {
        width: calc(100% - 48px);
        height: auto;
        left: 24px;
        right: auto;
        transform: none;
        min-height: 150px;
    }

    .quickstart-card-left-top {
        top: 36px;
    }

    .quickstart-card-right-top {
        top: 232px;
    }

    .quickstart-center {
        top: 50%;
    }

    .quickstart-enter-btn {
        top: calc(50% + (var(--center-size) / 2) + 58px);
    }

    .quickstart-card-left-bottom {
        top: 560px;
    }

    .quickstart-card-right-bottom {
        top: 756px;
        bottom: auto;
    }

    .quickstart-card-left-top .quickstart-card-cutout,
    .quickstart-card-right-top .quickstart-card-cutout,
    .quickstart-card-left-bottom .quickstart-card-cutout,
    .quickstart-card-right-bottom .quickstart-card-cutout {
        left: 50%;
        top: auto;
        bottom: calc(var(--cutout-size) / -2);
        right: auto;
        transform: translateX(-50%);
    }

    .quickstart-card-left-bottom .quickstart-card-cutout,
    .quickstart-card-right-bottom .quickstart-card-cutout {
        bottom: auto;
        top: calc(var(--cutout-size) / -2);
    }
}
