* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE/Edge */
}
*::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}
html, body {
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-bg: #020408;
    --neon-green: #00dd77;
    --neon-red: #e02050;
    --neon-red-bath: #cc2244;
    --neon-blue: #00aaff;
    --neon-pink: #ff66aa;
    --text: #e8f0f0;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: clip;
    background: var(--space-bg);
}

/* Только главная (есть .spheres-row): без скролла и без скроллбара. */
body:has(.spheres-row),
html:has(.spheres-row) {
    overflow: hidden !important;
    overscroll-behavior: none;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
html:has(.spheres-row)::-webkit-scrollbar,
body:has(.spheres-row)::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}
html:has(.spheres-row)::-webkit-scrollbar-track,
html:has(.spheres-row)::-webkit-scrollbar-thumb,
body:has(.spheres-row)::-webkit-scrollbar-track,
body:has(.spheres-row)::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}
@media (max-width: 768px) {
    html:has(.spheres-row),
    body:has(.spheres-row) {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100svh;
        min-height: 100svh;
    }
}

html, body {
    height: 100%;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23ffffff" d="M0 0l8 8-3 10 2-5 4-4-11-9z"/></svg>') 1 1, auto;
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--space-bg);
    color: var(--text);
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 56px;
    padding-top: max(60px, env(safe-area-inset-top));
}

a {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23ffffff" d="M0 0l8 8-3 10 2-5 4-4-11-9z"/></svg>') 1 1, pointer;
}

#stars-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    transform: translateZ(0);
}

.dashboard {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terminal-text {
    display: none;
}

/* Desktop: 1 line below sphere only; 2x larger; more gap from sphere */
@media (min-width: 769px) {
    .section-block {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .section-block .terminal-text {
        display: contents;
    }
    .section-block .terminal-text .terminal-line:nth-child(1),
    .section-block .terminal-text .terminal-line:nth-child(2) {
        display: none !important;
    }
    .section-block .terminal-text .terminal-line:nth-child(3) {
        order: 2;
        opacity: 0;
        transform: translateY(4px);
        transition: opacity 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transition-delay: 0s;
    }
    .section-block:has(.sphere-link:hover) .terminal-text .terminal-line:nth-child(3) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.8s;
    }
    .section-block .sphere-link {
        order: 1;
        margin-bottom: 28px;
    }
    .section-block .terminal-text .terminal-line {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 0.3em;
        font-family: 'Orbitron', sans-serif;
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        pointer-events: none;
    }
    .section-block .terminal-text .terminal-line .terminal-word {
        font-weight: 600;
    }
    .terminal-text-dev .terminal-line { color: var(--neon-green); text-shadow: 0 0 8px rgba(0, 221, 119, 0.6), 0 0 16px rgba(0, 221, 119, 0.5); }
    .terminal-text-bath .terminal-line { color: var(--neon-red-bath); text-shadow: 0 0 8px rgba(204, 34, 68, 0.65), 0 0 16px rgba(204, 34, 68, 0.55); }
    .terminal-text-flow .terminal-line { color: var(--neon-blue); text-shadow: 0 0 8px rgba(0, 170, 255, 0.6), 0 0 16px rgba(0, 170, 255, 0.5); }
    .terminal-text-sun .terminal-line { color: var(--neon-pink, #ff66aa); text-shadow: 0 0 8px rgba(255, 102, 170, 0.6), 0 0 16px rgba(255, 102, 170, 0.5); }
}

/* Desktop: одна линия dev | bath | flow | sun */
.spheres-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(24px, 4vw, 48px);
    justify-content: center;
    align-items: center;
}

.section-block {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sphere-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    outline: none;
    border: none;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent;
    touch-action: manipulation;
    transform: scale(0);
    -webkit-transform: scale(0);
    animation: loadScale 1.6s var(--ease) forwards;
    -webkit-animation: loadScale 1.6s var(--ease) forwards;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.sphere-unit {
    position: relative;
    width: clamp(180px, 24vw, 260px);
    height: clamp(180px, 24vw, 260px);
    flex-shrink: 0;
    contain: layout style;
    isolation: isolate;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent;
}
/* Вся область платонова тела/кольца без белой заливки при тапе (мобилка и десктоп) */
.sphere-link .sphere-unit,
.sphere-link .sphere-canvas,
.sphere-link .sphere-canvas canvas {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent;
}
.sphere-dev { animation-delay: 0.08s; }
.sphere-bath { animation-delay: 0.18s; }
.sphere-flow { animation-delay: 0.28s; }
.sphere-sun { animation-delay: 0.38s; }
.sphere-link:focus {
    outline: none;
}
.sphere-link:focus-visible {
    outline: none;
}
.section-block:focus-within {
    outline: none;
}

@keyframes loadScale {
    to { transform: scale(1); -webkit-transform: scale(1); }
}

/* PC: expand sphere on click before navigate — только на главной странице */
@media (min-width: 769px) {
    body:has(.spheres-row) .sphere-link.navigate-expanding {
        pointer-events: none;
        z-index: 100;
    }
    body:has(.spheres-row) .sphere-link.navigate-expanding .sphere-unit .sphere-canvas {
        animation: sphereExpandOut 0.65s cubic-bezier(0.33, 0.5, 0.2, 1) forwards;
        transform-origin: center center;
    }
    body:has(.spheres-row).sphere-navigate-animating {
        overflow: visible !important;
    }
}
@keyframes sphereExpandOut {
    to {
        transform: scale(8);
        opacity: 0.9;
    }
}

.sphere-unit .sphere-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: box-shadow 0.5s var(--ease);
    outline: none;
    border: none;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent;
}
/* При нажатии: не заливать кольцо/круг белым (мобилка и переходы) */
.sphere-link:active .sphere-canvas,
.sphere-link:active .sphere-unit {
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
}
.sphere-link:active .sphere-canvas::before,
.sphere-link:active .sphere-canvas::after {
    background: transparent !important;
    background-color: transparent !important;
}
body:not(.spheres-ready):not(.mobile-platonic-glow-ready) .sphere-unit .sphere-canvas {
    box-shadow: none !important;
}

.sphere-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}
.sphere-dev .sphere-canvas::before { background: #0a1810; }
.sphere-bath .sphere-canvas::before { background: #181008; }
.sphere-flow .sphere-canvas::before { background: #081018; }
.sphere-sun .sphere-canvas::before { background: #180810; }
.sphere-footer .sphere-canvas::before { background: #101418; }

.sphere-dev:hover .sphere-canvas,
.sphere-dev:active .sphere-canvas {
    box-shadow: 0 0 30px 4px rgba(0, 221, 119, 0.6), 0 0 60px rgba(0, 221, 119, 0.35);
}
.sphere-bath:hover .sphere-canvas,
.sphere-bath:active .sphere-canvas {
    box-shadow: 0 0 30px 4px rgba(204, 34, 68, 0.6), 0 0 60px rgba(204, 34, 68, 0.35);
}
.sphere-flow:hover .sphere-canvas,
.sphere-flow:active .sphere-canvas {
    box-shadow: 0 0 30px 4px rgba(0, 170, 255, 0.6), 0 0 60px rgba(0, 170, 255, 0.35);
}
.sphere-sun:hover .sphere-canvas,
.sphere-sun:active .sphere-canvas {
    box-shadow: 0 0 30px 4px rgba(255, 102, 170, 0.6), 0 0 60px rgba(255, 102, 170, 0.35);
}

.sphere-canvas canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    outline: none;
    border: none;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}
body.spheres-ready .sphere-canvas canvas {
    opacity: 1;
}

body.spheres-ready .sphere-canvas {
    visibility: visible !important;
}

.sphere-unit .sphere-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    text-shadow:
        0 0 8px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
    text-decoration: none;
    transition: text-shadow 0.35s var(--ease);
}

.sphere-dev .sphere-name { color: var(--neon-green); }
.sphere-bath .sphere-name { color: var(--neon-red-bath); }
.sphere-flow .sphere-name { color: var(--neon-blue); }
.sphere-sun .sphere-name { color: var(--neon-pink); }

.sphere-dev:hover .sphere-name,
.sphere-dev:active .sphere-name,
.sphere-dev:focus .sphere-name,
.sphere-dev:focus-visible .sphere-name {
    text-shadow:
        0 0 12px var(--neon-green),
        0 0 28px var(--neon-green),
        0 0 50px rgba(0, 221, 119, 0.5),
        0 0 80px rgba(0, 221, 119, 0.25);
}
.sphere-bath:hover .sphere-name,
.sphere-bath:active .sphere-name,
.sphere-bath:focus .sphere-name,
.sphere-bath:focus-visible .sphere-name {
    text-shadow:
        0 0 12px var(--neon-red-bath),
        0 0 28px var(--neon-red-bath),
        0 0 50px rgba(204, 34, 68, 0.5),
        0 0 80px rgba(204, 34, 68, 0.25);
}
.sphere-flow:hover .sphere-name,
.sphere-flow:active .sphere-name,
.sphere-flow:focus .sphere-name,
.sphere-flow:focus-visible .sphere-name {
    text-shadow:
        0 0 12px var(--neon-blue),
        0 0 28px var(--neon-blue),
        0 0 50px rgba(0, 170, 255, 0.5),
        0 0 80px rgba(0, 170, 255, 0.25);
}
.sphere-sun:hover .sphere-name,
.sphere-sun:active .sphere-name,
.sphere-sun:focus .sphere-name,
.sphere-sun:focus-visible .sphere-name {
    text-shadow:
        0 0 12px var(--neon-pink),
        0 0 28px var(--neon-pink),
        0 0 50px rgba(255, 102, 170, 0.5),
        0 0 80px rgba(255, 102, 170, 0.25);
}

body.spheres-ready .sphere-name {
    animation: sphereNameIn 0.5s ease 0.5s forwards;
}

@keyframes sphereNameIn {
    to {
        opacity: 1;
        visibility: visible;
    }
}

/* Footer - fixed на главной странице, relative на других */
.site-footer {
    padding: 16px 24px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    position: relative;
    margin-top: auto;
}

/* На главной странице (где есть .spheres-row) - fixed */
body:has(.spheres-row) .site-footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
}

/* На подстраницах (где нет .spheres-row) - принудительно relative */
body:not(:has(.spheres-row)) .site-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: auto !important;
}

.footer-sphere-link {
    display: inline-flex;
    cursor: default;
    text-decoration: none;
}

.footer-sphere-link .sphere-unit {
    width: 28px;
    height: 28px;
}

.footer-sphere-link .sphere-canvas {
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0), 0 0 24px rgba(255, 255, 255, 0);
    transition: box-shadow 1.5s cubic-bezier(0.33, 0.5, 0.2, 1);
}

body.spheres-ready .sphere-footer .sphere-canvas::before {
    animation: darkExpand 0.9s cubic-bezier(0.33, 0.5, 0.2, 1) forwards;
    animation-delay: 0.12s;
}

body.mobile-platonic-glow-ready .sphere-footer .sphere-canvas {
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.4), 0 0 24px rgba(255, 255, 255, 0.2);
}

.footer-arch {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
}
.footer-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
}

.footer-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(232, 240, 240, 0.5);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    body {
        padding: 120px 48px 160px;
        padding-top: max(120px, env(safe-area-inset-top));
        padding-bottom: max(160px, env(safe-area-inset-bottom));
        overflow-x: hidden;
    }
    .site-footer {
        padding: 16px 24px 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    /* Мобильная: блоки с чёткой горизонтальной разметкой, симметрия */
    .spheres-row {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 18px;
        width: 100%;
        max-width: 100%;
    }
    .section-block {
        display: grid;
        min-height: 130px;
        gap: 2px;
        flex-shrink: 0;
        padding: 16px 12px;
        align-items: center;
        max-width: 100%;
    }
    .section-dev,
    .section-flow {
        grid-template-columns: min(126px, 28vw) 1fr;
        grid-template-areas: "sphere text";
    }
    .section-bath,
    .section-sun {
        grid-template-columns: 1fr min(126px, 28vw);
        grid-template-areas: "text sphere";
    }
    .section-dev .sphere-link { grid-area: sphere; }
    .section-dev .terminal-text { grid-area: text; justify-self: end; text-align: center; }
    .section-bath .terminal-text { grid-area: text; justify-self: start; text-align: center; }
    .section-bath .sphere-link { grid-area: sphere; }
    .section-flow .sphere-link { grid-area: sphere; }
    .section-flow .terminal-text { grid-area: text; justify-self: end; text-align: center; }
    .section-sun .terminal-text { grid-area: text; justify-self: start; text-align: center; }
    .section-sun .sphere-link { grid-area: sphere; }
    .dashboard {
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        padding: 0 12px;
        box-sizing: border-box;
    }
    .sphere-link {
        transform: scale(0.01);
        -webkit-transform: scale(0.01);
        touch-action: manipulation;
        animation-duration: 0.7s;
        animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    .sphere-unit {
        width: min(126px, 28vw);
        height: min(126px, 28vw);
        flex-shrink: 0;
        contain: layout style;
        isolation: isolate;
        max-width: 126px;
        max-height: 126px;
    }
    .sphere-dev { animation-delay: 0.04s; }
    .sphere-bath { animation-delay: 0.09s; }
    .sphere-flow { animation-delay: 0.14s; }
    .sphere-sun { animation-delay: 0.19s; }
    .sphere-unit .sphere-canvas {
        inset: 0;
        width: 100%;
        height: 100%;
    }
    body.spheres-ready .sphere-canvas::before {
        opacity: 1;
        visibility: visible;
        animation: darkExpand 0.9s cubic-bezier(0.33, 0.5, 0.2, 1) forwards;
    }
    body.spheres-ready .sphere-dev .sphere-canvas::before { animation-delay: 0s; }
    body.spheres-ready .sphere-bath .sphere-canvas::before { animation-delay: 0.03s; }
    body.spheres-ready .sphere-flow .sphere-canvas::before { animation-delay: 0.06s; }
    body.spheres-ready .sphere-sun .sphere-canvas::before { animation-delay: 0.09s; }

    body:not(.spheres-ready):not(.mobile-platonic-glow-ready) .sphere-dev .sphere-canvas,
    body:not(.spheres-ready):not(.mobile-platonic-glow-ready) .sphere-bath .sphere-canvas,
    body:not(.spheres-ready):not(.mobile-platonic-glow-ready) .sphere-flow .sphere-canvas,
    body:not(.spheres-ready):not(.mobile-platonic-glow-ready) .sphere-sun .sphere-canvas {
        box-shadow: none !important;
    }
    .sphere-dev .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(0, 221, 119, 0), 0 0 32px rgba(0, 221, 119, 0);
        transition: box-shadow 1.5s cubic-bezier(0.33, 0.5, 0.2, 1);
    }
    .sphere-bath .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(204, 34, 68, 0), 0 0 32px rgba(204, 34, 68, 0);
        transition: box-shadow 1.5s cubic-bezier(0.33, 0.5, 0.2, 1);
    }
    .sphere-flow .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(0, 170, 255, 0), 0 0 32px rgba(0, 170, 255, 0);
        transition: box-shadow 1.5s cubic-bezier(0.33, 0.5, 0.2, 1);
    }
    .sphere-sun .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(255, 102, 170, 0), 0 0 32px rgba(255, 102, 170, 0);
        transition: box-shadow 1.5s cubic-bezier(0.33, 0.5, 0.2, 1);
    }

    body.mobile-platonic-glow-ready .sphere-dev .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(0, 221, 119, 0.5), 0 0 32px rgba(0, 221, 119, 0.25);
    }
    body.mobile-platonic-glow-ready .sphere-bath .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(204, 34, 68, 0.5), 0 0 32px rgba(204, 34, 68, 0.25);
    }
    body.mobile-platonic-glow-ready .sphere-flow .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(0, 170, 255, 0.5), 0 0 32px rgba(0, 170, 255, 0.25);
    }
    body.mobile-platonic-glow-ready .sphere-sun .sphere-canvas {
        box-shadow: 0 0 16px 2px rgba(255, 102, 170, 0.5), 0 0 32px rgba(255, 102, 170, 0.25);
    }

    /* Терминальный текст — zigzag, центр. колонка широкая для bath/sun */
    .terminal-text {
        display: block;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.75rem;
        line-height: 1.6;
        min-width: 0;
        max-width: none;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        opacity: 0;
        text-align: center;
        align-self: center;
        flex-shrink: 0;
        transform-origin: center center;
    }
    .terminal-text.terminal-lines {
        display: flex;
        flex-direction: column;
        gap: 0.35em;
        align-items: center;
    }
    .terminal-text .terminal-line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0 0.35em;
    }
    .terminal-text .terminal-line:first-child {
        font-size: 0.85rem;
    }
    .terminal-text .terminal-word {
        display: inline;
        font-weight: 600;
    }
    .terminal-text-dev {
        color: var(--neon-green);
        text-shadow: 0 0 10px rgba(0, 221, 119, 0.8), 0 0 20px rgba(0, 221, 119, 0.7), 0 0 30px rgba(0, 221, 119, 0.6), 0 0 40px rgba(0, 221, 119, 0.4);
    }
    .terminal-text-flow {
        color: var(--neon-blue);
        text-shadow: 0 0 10px rgba(0, 170, 255, 0.8), 0 0 20px rgba(0, 170, 255, 0.7), 0 0 30px rgba(0, 170, 255, 0.6), 0 0 40px rgba(0, 170, 255, 0.4);
    }
    .terminal-text-bath {
        color: var(--neon-red-bath);
        text-shadow: 0 0 10px rgba(204, 34, 68, 0.85), 0 0 20px rgba(204, 34, 68, 0.75), 0 0 30px rgba(204, 34, 68, 0.65), 0 0 40px rgba(204, 34, 68, 0.5);
    }
    .terminal-text-sun {
        color: var(--neon-pink, #ff66aa);
        text-shadow: 0 0 10px rgba(255, 102, 170, 0.8), 0 0 20px rgba(255, 102, 170, 0.7), 0 0 30px rgba(255, 102, 170, 0.6), 0 0 40px rgba(255, 102, 170, 0.4);
    }
    body.mobile-text-ready .terminal-text-dev,
    body.mobile-bath-text-ready .terminal-text-bath,
    body.mobile-flow-text-ready .terminal-text-flow,
    body.mobile-sun-text-ready .terminal-text-sun {
        opacity: 1;
        animation: terminalBlockIn 3.2s cubic-bezier(0.33, 0.5, 0.2, 1) forwards;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    .dashboard {
        align-items: center;
    }
    .spheres-row {
        align-items: center;
        width: auto;
        max-width: 100%;
    }
    .section-block {
        gap: 48px;
        width: fit-content;
        max-width: 100%;
    }
    .section-dev,
    .section-flow {
        grid-template-columns: min(126px, 28vw) auto;
    }
    .section-bath,
    .section-sun {
        grid-template-columns: auto min(126px, 28vw);
    }
    .section-dev .terminal-text,
    .section-flow .terminal-text {
        justify-self: start;
    }
    .section-bath .terminal-text,
    .section-sun .terminal-text {
        justify-self: end;
    }
}

@media (min-width: 376px) and (max-width: 425px) {
    .section-block {
        gap: 2px;
    }
}

@media (max-width: 375px) {
    .section-block {
        gap: 2px;
        padding: 16px 8px;
    }
    .section-dev,
    .section-flow {
        grid-template-columns: min(95px, 25vw) 1fr;
    }
    .section-bath,
    .section-sun {
        grid-template-columns: 1fr min(95px, 25vw);
    }
    .sphere-unit {
        width: min(95px, 25vw);
        height: min(95px, 25vw);
        max-width: 95px;
        max-height: 95px;
    }
    .terminal-text {
        max-width: 100%;
        padding: 0 4px;
        min-width: 0;
    }
    .dashboard {
        padding: 0 8px;
    }
}

@media (max-width: 320px) {
    .terminal-text {
        font-size: 0.65rem;
    }
    .section-block {
        gap: 16px;
    }
    .section-dev,
    .section-flow {
        grid-template-columns: min(100px, 30vw) 1fr;
    }
    .section-bath,
    .section-sun {
        grid-template-columns: 1fr min(100px, 30vw);
    }
    .sphere-unit {
        width: min(100px, 30vw);
        height: min(100px, 30vw);
        max-width: 100px;
        max-height: 100px;
    }
}

@keyframes terminalBlockIn {
    from {
        opacity: 0;
        transform: scale(0.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes darkExpand {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
