.stardust-page {
    width: 100%;
    min-height: calc(100vh - 190px);
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stardust-stage {
    position: relative;
    width: 100%;
    min-height: 620px;
    border: 1px solid rgba(125, 180, 255, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 80px rgba(76, 131, 255, 0.15), inset 0 0 32px rgba(188, 122, 255, 0.08);
    cursor: grab;
}

.stardust-stage.grabbing {
    cursor: grabbing;
}

.stardust-toolbar {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 12;
    display: flex;
    gap: 0.5rem;
}

.stardust-btn {
    border: 1px solid rgba(181, 211, 255, 0.5);
    background: rgba(8, 14, 38, 0.62);
    color: #e5f0ff;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.stardust-btn:hover {
    border-color: rgba(212, 227, 255, 0.9);
    background: rgba(16, 24, 54, 0.85);
}

.stardust-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#starfield {
    width: 100%;
    height: 100%;
    display: block;
    background: #010005;
}

#ui-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.34);
    font-size: 12px;
    letter-spacing: 2px;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 720px) {
    .stardust-page {
        min-height: calc(100vh - 160px);
        padding: 12px;
    }

    .stardust-stage {
        min-height: min(520px, calc(100vh - 190px));
    }

    #ui-hint {
        letter-spacing: 0;
        padding: 0 16px;
    }
}

.stardust-stage:fullscreen,
.stardust-stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border: none;
    box-shadow: none;
}
