.shader-playground-shell {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.shader-playground-header {
    margin: 0 auto 1rem;
    max-width: 60rem;
    text-align: center;
}

.shader-playground-header h1 {
    margin-bottom: 0.35rem;
}

.shader-playground-header p {
    margin-bottom: 0.75rem;
}

.shader-playground-back {
    background-color: rgba(98, 251, 67, 0.16);
    border: 1px solid rgba(98, 251, 67, 0.4);
    border-radius: 0.35rem;
    color: #d2ffd2;
    font-size: 0.65em;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.55rem;
    text-transform: uppercase;
}

.shader-playground-layout {
    align-items: flex-start;
    gap: 1rem;
}

.shader-sidebar,
.shader-stage-panel {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
}

.shader-control-group {
    margin-bottom: 0.6rem;
}

.shader-control-group label,
.shader-editor-label {
    display: block;
    font-size: 0.56em;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.shader-control-group select {
    background: rgba(19, 23, 32, 0.9);
    border: 1px solid rgba(67, 229, 251, 0.35);
    border-radius: 0.32rem;
    color: #ecfbff;
    font-family: Consolas, Menlo, Monaco, monospace;
    font-size: 0.62em;
    padding: 0.45rem;
    width: 100%;
}

.shader-actions {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0.7rem;
}

.shader-actions button {
    background: linear-gradient(120deg, rgba(67, 229, 251, 0.22), rgba(251, 199, 67, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0.32rem;
    color: #f4fdff;
    cursor: pointer;
    font-size: 0.54em;
    font-weight: bold;
    letter-spacing: 0.04em;
    padding: 0.42rem 0.2rem;
    text-transform: uppercase;
}

.shader-actions button:hover {
    border-color: rgba(98, 251, 67, 0.7);
    transform: translateY(-1px);
}

.shader-info {
    background: rgba(17, 21, 28, 0.72);
    border-radius: 0.35rem;
    margin-bottom: 0.7rem;
    padding: 0.55rem;
}

.shader-info h3 {
    font-size: 0.95em;
    margin-bottom: 0.3rem;
}

.shader-info p,
.shader-status {
    font-size: 0.57em;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.shader-status {
    border-left: 3px solid rgba(67, 229, 251, 0.75);
    margin-top: 0.45rem;
    padding-left: 0.45rem;
}

.shader-preset-list {
    display: grid;
    gap: 0.35rem;
    max-height: 48vh;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.shader-preset-card {
    background: rgba(11, 14, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.35rem;
    cursor: pointer;
    display: block;
    font-size: 0.55em;
    padding: 0.45rem;
    text-align: left;
    width: 100%;
}

.shader-preset-card strong {
    color: #dbf8ff;
    display: block;
    font-size: 1em;
    margin-bottom: 0.15rem;
}

.shader-preset-card span {
    color: #b3d4dd;
    font-size: 0.86em;
    text-transform: uppercase;
}

.shader-preset-card.is-active {
    border-color: rgba(98, 251, 67, 0.76);
    box-shadow: 0 0 0 1px rgba(98, 251, 67, 0.35);
}

.shader-canvas-wrap {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.4rem;
    margin-bottom: 0.7rem;
    overflow: hidden;
}

#shader-canvas {
    background: #000;
    display: block;
    height: 47vh;
    width: 100%;
}

#shader-editor {
    background: rgba(13, 16, 24, 0.92);
    border: 1px solid rgba(67, 229, 251, 0.45);
    border-radius: 0.4rem;
    color: #f4f8ff;
    font-family: Consolas, Menlo, Monaco, monospace;
    font-size: 0.56em;
    line-height: 1.45;
    min-height: 23rem;
    padding: 0.7rem;
    resize: vertical;
    width: 100%;
}

.shader-errors {
    background: rgba(45, 8, 14, 0.85);
    border: 1px solid rgba(255, 117, 132, 0.45);
    border-radius: 0.4rem;
    color: #ffe5ea;
    font-family: Consolas, Menlo, Monaco, monospace;
    font-size: 0.5em;
    line-height: 1.35;
    margin-top: 0.55rem;
    min-height: 2.1rem;
    padding: 0.45rem;
    white-space: pre-wrap;
}

@media (max-width: 1024px) {
    #shader-canvas {
        height: 36vh;
    }

    #shader-editor {
        min-height: 18rem;
    }

    .shader-actions {
        grid-template-columns: 1fr;
    }

    .shader-preset-list {
        max-height: 24vh;
    }
}
