/*-------------Geral--------------- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
    color: rgb(254, 248, 255);
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 0 0 5px #6010bb;
}

html,
body {
    min-height: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #120129, #000000);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    padding: 0;
    overflow-x: hidden;
}

body {  
    min-height: 100vh;
}



.wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1920px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 20px;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    box-sizing: border-box;
}

main {
    width: min(100%, 820px);
    margin: 0 auto;
    flex: 1 1 820px;
    max-width: 820px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*-------------Header--------------- */
.page-header {
    font-size: 1.2rem;
    margin: 0 0 1.5rem;
}

.first-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/*-------------Editor--------------- */
.text-editor-title {
    position: relative;
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

.text-editor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.text-editor-wrap {
    position: relative;
    width: min(58vw, 560px);
    margin-top: 0.5rem;
    margin-bottom: 0.7rem;
    border-radius: 14px;
    background: rgba(28, 6, 54, 0.9);
    box-shadow: 0 0 0 1px rgba(105, 35, 255, 0.8), 0 0 5px rgba(116, 24, 255, 0.9);
    transition: box-shadow 0.3s ease;
}

.text-editor-wrap:focus-within {
    box-shadow: 0 0 0 1px rgba(156, 92, 255, 0.9), 0 0 25px rgba(121, 59, 219, 1);
}

.text-editor-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    padding: 10px 14px;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
    overflow: hidden;
    white-space: pre;
    pointer-events: none;
    z-index: 2;

    border: none;
    font-size: 1.35rem;
    line-height: 1.3;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: normal;
    color: rgb(254, 248, 255);
    text-shadow: 0px 0px 0px;
}


.editor-cell {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    width: 1ch;
    line-height: 30px;
    text-align: center;
    overflow: visible;
    white-space: pre;
    vertical-align: baseline;
}

.editor-cell--selected {
    background-color: rgba(139, 92, 255, 0.55);
    border-radius: 3px;
}

.text-editor {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    margin: 0;
    text-align: left;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;

    resize: none;
    box-sizing: border-box;

    border: none;
    border-radius: 14px;
    background: transparent;
    color: transparent;
    caret-color: rgb(254, 248, 255);
    box-shadow: none;
    font-size: 1.35rem;
    line-height: 1.3;
    white-space: pre;
    text-shadow: 0px 0px 0px;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    z-index: 1;
}

.text-editor::-webkit-scrollbar {
    display: none;
}

.text-editor:focus {
    outline: none;
}

.text-editor::selection {
    background-color: rgba(136, 74, 255, 0.35);
}


.preview-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgb(126, 126, 126);
}


.preview-text--flat {
    text-shadow: 0px 0px 0px;
}

.preview-text--code {
    font-family: 'Roboto Mono', 'Inconsolata', monospace;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgb(170, 170, 170);
}

/*-------------Styled character spans--------------- */
.styled-char {
    white-space: pre;
    position: relative;
}


.styled-char-outline-fx {
    font-style: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    -webkit-text-stroke-width: 0.6px;
    paint-order: stroke fill;
}

.styled-char--bold {
    font-weight: 700;
}

.styled-char--italic {
    font-style: italic;
}

.styled-char--underline::before {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: 1px;
    height: 2px;
    background: currentColor;
    pointer-events: none;
}

.styled-char--strikethrough::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: 50%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
    pointer-events: none;
}

/*-------------Display--------------- */
.hidden-display-view {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.visible-display-view {
    opacity: 1;
    transition: opacity 0.2s ease;
}


/*-------------Botões--------------- */
.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0rem 2rem;
    margin-top: 0rem;
}

.style-button {
    padding: 0.9rem 1.8rem;
    margin: 0;
    border: 2.5px solid #2f0b69;
    border-radius: 13px;
    background-color: #4a0d8336;
    color: rgb(254, 248, 255);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

}

.style-button:hover {
    box-shadow: 0 0 0 1px rgba(115, 12, 233, 0.733), 0 0 25px rgba(115, 59, 219, 0.63);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

}

.copy-button {
    padding: 0.9rem 1.8rem;
    margin: 0;
    border: 2.5px solid #133173;
    border-radius: 13px;
    background-color: rgba(19, 35, 89, 0.349);
    color: rgb(254, 248, 255);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

}

.copy-button:hover {
    box-shadow: 0 0 0 1px rgba(33, 127, 255, 0.8), 0 0 25px rgba(52, 118, 255, 0.6);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

}

/*-------------Footer--------------- */
.page-footer {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(820px, calc(100% - 40px));
    margin: 0;
    padding: 1rem 0 0.75rem;
    background: transparent;
    font-size: 0.9rem;
}


/*-------------Aside--------------- */
.aside {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.aside-right {
    position: fixed;
    top: max(20px, calc((100vh - 1080px) / 2 + 20px));
    right: max(20px, calc((100vw - 1920px) / 2 + 20px));
    width: clamp(180px, 18vw, 220px);
    min-width: 180px;
    max-width: 220px;
    height: min(1080px, calc(100vh - 40px));
    max-height: 1080px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    overflow: visible;
}

.color-panel-wrap {
    --offset-x: -170px;
    /* horizontal offset from anchor — positive moves right */
    --offset-y: 0px;
    /* vertical offset from anchor — positive moves down  */
    --box-w: clamp(260px, 500vw, 380px);
    /* preferred width */
    --box-h: 380px;
    /* preferred height of the picker box itself */

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: var(--box-w);
    transform: translateX(var(--offset-x)) translateY(var(--offset-y)) scaleY(1);
    transform-origin: top center;
}

.aside-top-right {
    min-height: 120px;
    height: var(--box-h);
    padding: 6px;
}

.outline-join-popup {
    position: absolute;
    top: 0;
    right: 100%;
    bottom: auto;
    left: auto;
    z-index: 1;
    width: 190px;
    height: auto;
    margin-right: 16px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border: 1px solid rgba(105, 35, 255, 0.8);
    border-radius: 14px;
    background: rgba(28, 6, 54, 0.9);
    box-shadow: 0 0 0 1px rgba(105, 35, 255, 0.8), 0 0 10px rgba(116, 24, 255, 0.7);
    transform-origin: right center;
    transform: translateX(12px) scaleX(0.02);
    opacity: 0;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(.2, .9, .3, 1), opacity 220ms ease;
}

.outline-join-popup--open {
    transform: translateX(0) scaleX(1);
    opacity: 1;
    pointer-events: auto;
}

.outline-join-header {
    flex: 0 0 auto;
    text-align: left;
}

.outline-join-label {
    font-size: 1rem;
}

.outline-join-options {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.outline-join-option {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 56px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #2f0b69;
    border-radius: 13px;
    background-color: #4a0d8336;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.outline-join-option:hover {
    box-shadow: 0 0 0 1px rgba(115, 12, 233, 0.733), 0 0 25px rgba(115, 59, 219, 0.63);
}

.outline-join-option[aria-pressed="true"] {
    background-color: #8b5cff55;
    border-color: #8b5cff;
    box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.8), 0 0 18px rgba(139, 92, 255, 0.55);
}

.outline-join-letter {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    line-height: 1;
    font-weight: 700;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    color: rgb(254, 248, 255);
}

@media (max-width: 1100px) {
    .outline-join-popup {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 14px;
        transform: none !important;
        transition: none !important;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        border-width: 0;
        box-shadow: none;
    }

    .outline-join-popup--open {
        max-height: 200px;
        padding: 10px;
        border-width: 1px;
        margin-top: 10px;
        box-shadow: 0 0 0 1px rgba(105, 35, 255, 0.8), 0 0 10px rgba(116, 24, 255, 0.7);
    }

    .outline-join-options {
        flex-direction: column;
    }

    .outline-join-option {
        max-width: none;
        max-height: none;
        aspect-ratio: auto;
        height: 52px;
    }
}

/* Custom color picker styles */
.color-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.6rem;
}

.color-label {
    white-space: nowrap;
}

.outline-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: rgb(254, 248, 255);
}

.outline-toggle-box {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(161, 89, 202, 0.75);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.outline-toggle-check {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: rgb(254, 248, 255);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    opacity: 0;
    transition: stroke-dashoffset 0.22s ease, opacity 0.15s ease;
}

.outline-toggle[aria-pressed="true"] .outline-toggle-box {
    background: #8b5cff;
    border-color: #8b5cff;
    box-shadow: 0 0 0 3px rgba(139, 92, 255, 0.18);
}

.outline-toggle[aria-pressed="true"] .outline-toggle-check {
    stroke-dashoffset: 0;
    opacity: 1;
}


.outline-toggle.is-mixed .outline-toggle-box {
    background: rgba(139, 92, 255, 0.4);
    border-color: rgba(139, 92, 255, 0.7);
}

.outline-toggle.is-mixed .outline-toggle-check {
    stroke-dashoffset: 0;
    opacity: 0.55;
}

.outline-toggle-label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0.85;
}

.color-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
}

.picker-main {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.sv-wrap {
    flex: 1 1 auto;
    position: relative;
    min-height: 80px;
    min-width: 0;
}

.sv {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    position: relative;
    cursor: crosshair;
    background:
        linear-gradient(to top, #000, transparent),
        linear-gradient(to right, #fff, transparent),
        hsl(var(--h, 320), 100%, 50%);
}

.sv-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
    transform: translate(-7px, -7px);
    pointer-events: none;
}

.hue-wrap {
    flex: 0 0 36px;
    width: 36px;
    position: relative;
}

.hue {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(to top, red, #ff0, #0f0, #0ff, #00f, #f0f, red);
    position: relative;
    cursor: ns-resize;
}

.hue-cursor {
    position: absolute;
    left: -4px;
    right: -4px;
    height: 6px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    pointer-events: none;
}

.swatches {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
}


.color-footer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-circle {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #8b5cff;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.06);
}


.color-circle.is-mixed {
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.35) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.35) 75%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.35) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.35) 75%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

.color-hex-input {
    flex: 1 1 auto;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(161, 89, 202, 0.651);
    box-shadow: 0 0 0 1px rgba(105, 35, 255, 0.8), 0 0 5px rgba(116, 24, 255, 0.9);
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font-family: monospace;
}

.color-value {
    font-family: monospace;
    font-size: 0.88rem;
    color: #eee;
}

.color-opacity-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.color-opacity-label {
    flex: 0 0 auto;
    font-family: monospace;
    font-size: 0.85rem;
    color: #eee;
}

.color-opacity-slider {
    flex: 1 1 auto;
    height: 6px;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, transparent, #8b5cff);
    cursor: pointer;
}

.color-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #8b5cff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.color-opacity-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #8b5cff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.color-opacity-value {
    flex: 0 0 auto;
    width: 3.2em;
    text-align: right;
    font-family: monospace;
    font-size: 0.85rem;
    color: #eee;
}

.aside-bottom-right {

    --offset-x: -80px;
    /* horizontal offset from anchor — positive moves right */
    --offset-y: 0px;
    /* vertical offset from anchor — positive moves down  */
    --box-w: clamp(200px, 500vw, 300px);
    /* preferred width */
    --box-h: auto;
    /* preferred height*/

    min-height: 140px;
    width: var(--box-w);
    height: var(--box-h);
    transform: translateX(var(--offset-x)) translateY(var(--offset-y)) scaleX(1);
    transform-origin: right center;
}


.style-box-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
}

.style-box-header {
    flex: 0 0 auto;
    text-align: left;
}

.style-box-label {
    font-size: 1rem;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.style-option {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 68px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #2f0b69;
    border-radius: 13px;
    background-color: #4a0d8336;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.style-option:hover {
    box-shadow: 0 0 0 1px rgba(115, 12, 233, 0.733), 0 0 25px rgba(115, 59, 219, 0.63);
}

.style-option[aria-pressed="true"] {
    background-color: #8b5cff55;
    border-color: #8b5cff;
    box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.8), 0 0 18px rgba(139, 92, 255, 0.55);
}


.style-option.is-mixed,
.font-option.is-mixed {
    background-color: #8b5cff26;
    border-color: #8b5cff99;
    box-shadow: none;
    opacity: 0.7;
}

.style-option-letter {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    line-height: 1;
    font-family: 'Times New Roman', Times, serif;
}

.style-option-letter--bold {
    font-weight: 900;
}

.style-option-letter--italic {
    font-style: italic;
}

.style-option-letter--underline {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.style-option-letter--strikethrough {
    text-decoration: line-through;
}

.aside-left-full {
    position: fixed;
    top: max(20px, calc((100vh - 1080px) / 2 + 20px));
    left: max(20px, calc((100vw - 1920px) / 2 + 20px));
    bottom: max(20px, calc((100vh - 1080px) / 2 + 20px));
    width: clamp(240px, 22vw, 300px);
    min-width: 240px;
    max-width: 300px;
    max-height: 1080px;
    transform: scaleX(1);
    transform-origin: left center;
    overflow: hidden;
}

/*-------------Font box--------------- */
.aside-left-full.box {
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem 0.7rem 1rem 1.2rem;
}

.font-box-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.font-box-header {
    flex: 0 0 auto;
    text-align: left;
    margin-bottom: 0.7rem;
    padding-right: 0.5rem;
}

.font-box-label {
    font-size: 1rem;
}

.font-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 0.5rem;

    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 255, 0.55) transparent;
}

.font-list::-webkit-scrollbar {
    width: 6px;
}

.font-list::-webkit-scrollbar-track {
    background: transparent;
}

.font-list::-webkit-scrollbar-thumb {
    background-color: rgba(139, 92, 255, 0.55);
    border-radius: 6px;
}

.font-option {
    flex: 0 0 auto;
    width: 100%;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    border: 2px solid #2f0b69;
    border-radius: 12px;
    background-color: #4a0d8336;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.font-option:hover {
    box-shadow: 0 0 0 1px rgba(115, 12, 233, 0.733), 0 0 18px rgba(115, 59, 219, 0.63);
}

.font-option[aria-pressed="true"] {
    background-color: #8b5cff55;
    border-color: #8b5cff;
    box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.8), 0 0 16px rgba(139, 92, 255, 0.55);
}

.font-option-name {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: rgb(200, 180, 230);
    text-shadow: none;
    font-family: 'Times New Roman', Times, serif;
}

.font-option-preview {
    font-size: 1.3rem;
    line-height: 1.25;
    color: rgb(254, 248, 255);
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.aside-left-full,
.color-panel-wrap,
.aside-bottom-right {
    transition: transform 320ms cubic-bezier(.2, .9, .3, 1), opacity 220ms ease;
    will-change: transform, opacity;
    opacity: 1;
    pointer-events: auto;
}

.aside-left-full.menu-closed {
    transform-origin: left center;
    transform: scaleX(0.02);
    opacity: 0;
    pointer-events: none;
}

.color-panel-wrap.menu-closed {
    transform-origin: top center;
    transform: translateX(var(--offset-x)) translateY(calc(var(--offset-y) - 8px)) scaleY(0.01);
    opacity: 0;
    pointer-events: none;
}

.aside-bottom-right.menu-closed {
    transform-origin: right center;
    transform: translateX(calc(var(--offset-x) + 12px)) translateY(var(--offset-y)) scaleX(0.02);
    opacity: 0;
    pointer-events: none;
}

.redirect-link:hover{
    color:#c0aceb; /* #ad6aad  #2a145f;*/
        text-shadow:
        0 0 3px #7acbe4,
        0 0 3px #86c2d1,
        0 0 10px #8ec9db;
    }

.redirect-link{
    color: #c0aceb;
        text-shadow:
        0 0 3px rgb(157, 40, 211),
        0 0 8px rgb(157, 40, 211),
        0 0 15px pink;
}

@media (max-width: 1100px) {

    .aside-left-full,
    .color-panel-wrap,
    .aside-bottom-right {
        transition: none !important;
    }

    .aside-left-full.menu-closed,
    .color-panel-wrap.menu-closed,
    .aside-bottom-right.menu-closed {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.aside-left {
    display: none;
    pointer-events: none;
    width: 0;
    min-width: 0;
    max-width: 0;
}

.box {
    width: 100%;
    min-height: 110px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(105, 35, 255, 0.8);
    border-radius: 14px;
    background: rgba(28, 6, 54, 0.9);
    box-shadow: 0 0 0 1px rgba(105, 35, 255, 0.8), 0 0 10px rgba(116, 24, 255, 0.7);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}


.aside-top-right.box {
    width: 100%;
    height: var(--box-h);
    min-width: 0;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.aside-bottom-right.box {
    width: var(--box-w);
    height: var(--box-h);
    min-width: 0;
    max-width: none;
}

@media (max-width: 1100px) {
    .wrapper {
        display: block;
        padding: 0;
    }

    .aside {
        position: static;
        width: min(100%, 420px);
        min-width: 0;
        max-width: 420px;
        margin: 2rem auto 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .aside-right {
        position: static;
        width: min(100%, 420px);
        min-width: 0;
        max-width: 420px;
        margin: 0;
        gap: 1rem;
    }

    .color-panel-wrap,
    .aside-left-full,
    .aside-bottom-right {
        position: static;
        width: min(100%, 420px);
        min-width: 0;
        max-width: 420px;
    }

    .aside-right {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .aside-left-full,
    .aside-bottom-right {
        margin: 0;
    }

    .aside-left {
        display: none;
    }

}



/*-------------Modal: How to use--------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 0, 16, 0.75);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.22s;
    padding: 1.5rem;
    will-change: opacity;
}

.modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(105, 35, 255, 0.8);
    border-radius: 14px;
    background: rgba(20, 4, 40, 0.97);
    box-shadow: 0 0 0 1px rgba(105, 35, 255, 0.8), 0 0 20px rgba(116, 24, 255, 0.7);
    text-align: left;
    transform: translateY(-6px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.modal-overlay.modal-open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-title {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.modal-content p {
    text-align: left;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: rgb(254, 248, 255);
}

.how-to-use {
    position: relative;
    top: -1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 0.2rem;
    padding: 0;
    border: 1px solid rgba(225, 105, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 51, 204, 0.15);
    color: rgb(229, 145, 255);
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 4px rgba(255, 51, 204, 0.9);
    box-shadow: 0 0 6px rgba(255, 51, 204, 0.5);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.how-to-use:hover,
.how-to-use:focus-visible {
    background: rgba(255, 51, 204, 0.3);
    box-shadow: 0 0 10px rgba(255, 51, 204, 0.8);
    transform: scale(1.08);
}