* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    background: #010103;
    font-family: 'Inter', system-ui, 'Segoe UI', 'Roboto', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative
}

/* ── OSIRIS lil-gui reskin ── */
.lil-gui {
  opacity: 0;
  --background-color: #010103;
  --text-color: #D8D2C4;
  --title-background-color: #0B1226;
  --title-text-color: #00FF46;
  --widget-color: #0A8A2E;
  --hover-color: #1B2A5E;
  --focus-color: #0A8A2E;
  --number-color: #00FF46;
  --string-color: #C9A227;
  --font-family: ui-monospace, Menlo, Consolas, monospace;
}

.gui-wrapper {
  border: 1px solid rgba(0, 255, 70, 0.25);
  box-shadow: 0 0 18px rgba(0, 255, 70, 0.08);
}

.fullscreen-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #010103;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1
}

.hidden {
    display: none
}

.dblclick-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgb(1 1 3 / .75);
    border: 1px solid rgb(10 138 46 / .5);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    color: #D8D2C4;
    font-family: monospace;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s ease
}

canvas {
    display: block;
    box-shadow: 0 0 0 1px rgb(216 210 196 / .08);
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    background: #010103;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain
}

.copy {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #010103;
    background: rgb(213 205 184 / .92);
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100
}

.gui-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: #fff0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    min-width: 260px;
    max-height: 90vh;
    overflow-y: auto
}

.export-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(1 1 3 / .85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    font-family: monospace
}

.export-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgb(201 162 39 / .3);
    border-top: 4px solid #C9A227;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.export-message {
    color: #C9A227;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px
}

.export-submessage {
    color: #D8D2C4;
    font-size: .8rem
}

@media (max-width:700px) {
    .gui-wrapper {
        top: 12px;
        right: 12px;
        transform: scale(.95);
        transform-origin: top right;
        max-height: 85vh
    }
}
