* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    overflow: hidden;
    background: #010208;
    color: #e9f3fc;
    font-family: system-ui, sans-serif;
}
#nebula {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    display: block;
    touch-action: none;
}
.nebula-controls {
    position: fixed;
    left: 20px;
    top: 20px;
    width: 292px;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(157, 169, 224, 0.3);
    border-radius: 16px;
    background: rgba(5, 8, 20, 0.9);
    backdrop-filter: blur(18px);
    scrollbar-width: thin;
    scrollbar-color: #4b4f78 #080d1a;
}
.nebula-controls > a {
    color: #abbad3;
    text-decoration: none;
    font-size: 12px;
}
h1 {
    font-size: 22px;
    letter-spacing: -0.03em;
    margin: 18px 0 8px;
}
h1 span {
    font:
        700 10px/1 ui-monospace,
        monospace;
    padding: 5px 7px;
    border-radius: 5px;
    background: #343054;
    color: #d8c8ff;
    vertical-align: middle;
}
.nebula-controls > p {
    font-size: 12px;
    line-height: 1.6;
    color: #aebcd1;
    margin: 0 0 18px;
}
label {
    display: block;
    font-size: 12px;
    color: #c2cce0;
    margin: 14px 0 7px;
}
output {
    float: right;
    color: #c6b4fa;
    font-family: ui-monospace, monospace;
}
input[type='range'] {
    width: 100%;
    accent-color: #a8a3f1;
}
select {
    width: 100%;
    padding: 9px;
    background: #10172b;
    color: #e4e9fb;
    border: 1px solid #3b4464;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
}
button {
    width: 100%;
    min-height: 39px;
    border: 1px solid #4e547d;
    border-radius: 7px;
    background: #232a46;
    color: #edf0ff;
    font:
        600 12px/1.4 system-ui,
        sans-serif;
    padding: 9px;
    margin-top: 13px;
    cursor: pointer;
}
button:hover {
    background: #303659;
    border-color: #9ba7ed;
}
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.actions button {
    background: #111a2c;
    margin-top: 7px;
}
#nebula-status {
    margin: 16px 0 0;
    font:
        11px/1.7 ui-monospace,
        monospace;
    color: #b2c3e3;
}
details {
    margin-top: 14px;
    font-size: 11px;
    color: #a4b0c9;
    line-height: 1.65;
}
summary {
    cursor: pointer;
    color: #d3dcf0;
}
#nebula-telemetry {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 9px 13px;
    background: rgba(4, 7, 17, 0.84);
    border: 1px solid #29304d;
    border-radius: 7px;
    font:
        11px/1.5 ui-monospace,
        monospace;
    color: #b6bfdb;
    pointer-events: none;
}
input:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
    outline: 2px solid #b5c8ff;
    outline-offset: 3px;
}
@media (max-width: 700px) {
    .nebula-controls {
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-height: 34dvh;
        padding: 15px;
    }
    h1 {
        margin-top: 10px;
    }
    #nebula-telemetry {
        bottom: 10px;
        left: 10px;
        right: 10px;
        font-size: 10px;
    }
}
