.pixel-studio-page .page-content.pixel-studio {
    min-height: calc(100vh - 120px);
    padding: 250px 0 100px;
}

.pixel-studio-gate {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 40px;
}

.pixel-studio-gate-card {
    max-width: 420px;
    text-align: center;
    background: var(--bg-light-color);
    padding: 48px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(62, 55, 55, 0.08);
}

.pixel-studio-gate-card > i {
    font-size: 42px;
    color: var(--color-hoodie);
}

.pixel-studio-gate-card h1 {
    margin: 16px 0 10px;
}

.pixel-studio-gate-card p {
    margin-bottom: 24px;
    opacity: 0.8;
}

.pixel-studio-shell {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.pixel-studio-tools {
    width: 148px;
    flex-shrink: 0;
    background: var(--bg-light-color);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pixel-tool-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pixel-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0;
}

.pixel-tool {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--color-gorilla-glue);
    text-align: left;
}

.pixel-tool i {
    font-size: 18px;
}

.pixel-tool span {
    font-size: 13px;
}

.pixel-tool:hover:not(:disabled) {
    background: rgba(255, 189, 111, 0.25);
}

.pixel-tool.is-active {
    background: var(--color-hoodie);
    color: var(--color-gorilla-glue);
}

.pixel-tool:disabled {
    opacity: 0.35;
    cursor: default;
}

.pixel-swatches {
    display: grid;
    grid-template-columns: repeat(4, 24px);
    gap: 6px;
    justify-content: start;
}

.pixel-swatch {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid rgba(62, 55, 55, 0.12);
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-sizing: border-box;
    flex: none;
    align-self: center;
    justify-self: center;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    line-height: 0;
}

.pixel-swatch.is-active {
    border-color: var(--color-gorilla-glue);
    box-shadow: 0 0 0 2px var(--color-hoodie);
}

.pixel-custom-color {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
}

.pixel-custom-color input {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.pixel-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.pixel-status {
    font-size: 11px;
    line-height: 14px;
    opacity: 0.6;
    margin: 0;
    text-align: center;
}

.pixel-studio-head {
    margin-bottom: 16px;
}

.pixel-studio-head h1 {
    margin: 0 0 4px;
}

.pixel-studio-head p {
    margin: 0;
    opacity: 0.55;
    font-size: 13px;
}

.pixel-studio-canvas-wrap {
    position: relative;
    width: 540px;
    height: 540px;
    background:
        linear-gradient(45deg, #ece7dc 25%, transparent 25%) 0 0 / 20px 20px,
        linear-gradient(-45deg, #ece7dc 25%, transparent 25%) 0 10px / 20px 20px,
        linear-gradient(45deg, transparent 75%, #ece7dc 75%) 10px -10px / 20px 20px,
        linear-gradient(-45deg, transparent 75%, #ece7dc 75%) -10px 0 / 20px 20px,
        #fffdf6;
    box-shadow: 0 12px 40px rgba(62, 55, 55, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.pixel-studio-canvas-wrap canvas {
    display: block;
    width: 540px;
    height: 540px;
    cursor: none;
    touch-action: none;
}

.pixel-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 80;
    width: 22px;
    height: 22px;
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    color: var(--color-gorilla-glue);
    text-shadow: 0 0 4px #fff;
    transform: translate(-14px, -20px);
}

.pixel-cursor.is-on {
    display: flex;
}

.pixel-cursor i {
    font-size: 20px;
    line-height: 1;
}

.pixel-cursor::after {
    content: '';
    position: absolute;
    left: 13px;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-hoodie);
    box-shadow: 0 0 0 1px #fff;
}

.pixel-studio-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 540px;
    margin-top: 16px;
}

.pixel-slot {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    aspect-ratio: 1;
    border: 2px solid rgba(62, 55, 55, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(45deg, #ece7dc 25%, transparent 25%) 0 0 / 10px 10px,
        linear-gradient(-45deg, #ece7dc 25%, transparent 25%) 0 5px / 10px 10px,
        #fffdf6;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gorilla-glue);
}

.pixel-slot:hover {
    border-color: rgba(62, 55, 55, 0.35);
}

.pixel-slot.is-active {
    border-color: var(--color-hoodie);
    box-shadow: 0 0 0 2px var(--color-hoodie);
}

.pixel-slot.is-busy {
    pointer-events: none;
    opacity: 0.7;
}

.pixel-slot-plus {
    font-size: 42px;
    line-height: 1;
    font-weight: 300;
    opacity: 0.38;
}

.pixel-slot-thumb {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

.pixel-cursor.is-eraser i {
    color: #c44536;
}

@media (max-width: 760px) {
    .pixel-studio-shell {
        flex-direction: column;
        align-items: center;
    }

    .pixel-studio-tools {
        width: 100%;
        max-width: 540px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .pixel-tool-group {
        flex: 1 1 120px;
    }

    .pixel-studio-canvas-wrap,
    .pixel-studio-canvas-wrap canvas,
    .pixel-studio-slots {
        width: min(540px, calc(100vw - 32px));
    }

    .pixel-studio-canvas-wrap,
    .pixel-studio-canvas-wrap canvas {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .pixel-slot-plus {
        font-size: 28px;
    }
}
