* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at center, rgba(0, 255, 204, 0.08), transparent 35%),
        linear-gradient(180deg, #020606 0%, #000 100%);
    color: #d7fff7;
    font-family: "Courier New", monospace;
    overflow-x: hidden;
    overflow-y: auto;
}

.shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(12px, 3vw, 24px);
}

.aria-panel {
    width: min(920px, 96vw);
    text-align: center;
}

h1 {
    margin: 0;
    letter-spacing: clamp(0.18em, 3vw, 0.35em);
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 400;
    text-shadow: 0 0 18px rgba(0, 255, 204, 0.9);
}

.subtitle {
    margin: 8px 0 clamp(10px, 2vw, 18px);
    color: #7fffe7;
    letter-spacing: clamp(0.1em, 2vw, 0.2em);
    text-transform: uppercase;
    font-size: clamp(0.72rem, 2.5vw, 0.9rem);
}

#ariaCore {
    width: clamp(260px, 62vmin, 620px);
    height: clamp(260px, 62vmin, 620px);
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 24px rgba(0, 255, 204, 0.35));
}

.status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 4vw, 32px);
    margin: clamp(8px, 2vw, 10px) 0 clamp(14px, 3vw, 22px);
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
    letter-spacing: 0.12em;
    font-size: clamp(0.78rem, 2.4vw, 1rem);
    flex-wrap: wrap;
}

#commandForm {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(760px, 94vw);
    margin: 0 auto;
    padding: clamp(10px, 2.5vw, 12px);
    border: 1px solid rgba(0, 255, 204, 0.35);
    background: rgba(0, 20, 18, 0.65);
    box-shadow: 0 0 24px rgba(0, 255, 204, 0.15);
}

.prompt {
    color: #00ffcc;
    font-size: 1.4rem;
    flex: 0 0 auto;
}

input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #d7fff7;
    font-family: inherit;
    font-size: clamp(0.92rem, 3vw, 1rem);
}

button {
    border: 1px solid #00ffcc;
    background: rgba(0, 255, 204, 0.08);
    color: #00ffcc;
    padding: 8px 14px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

button:hover {
    background: rgba(0, 255, 204, 0.18);
}

#responseBox {
    width: min(760px, 94vw);
    margin: clamp(12px, 3vw, 18px) auto 0;
    min-height: clamp(70px, 16vh, 160px);
    max-height: 28vh;
    overflow-y: auto;
    padding: 16px;
    text-align: left;
    color: #b9fff3;
    border-left: 3px solid rgba(0, 255, 204, 0.55);
    background: rgba(0, 10, 10, 0.55);
    line-height: 1.45;
    white-space: pre-wrap;
}

@media (max-width: 720px) {
    .shell {
        align-items: flex-start;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    #ariaCore {
        width: clamp(240px, 86vw, 430px);
        height: clamp(240px, 86vw, 430px);
    }

    .status {
        flex-direction: column;
        gap: 5px;
    }

    #commandForm {
        flex-direction: column;
        align-items: stretch;
    }

    .prompt {
        display: none;
    }

    button {
        width: 100%;
    }

    #responseBox {
        max-height: none;
        min-height: 120px;
    }
}

@media (max-height: 760px) and (min-width: 721px) {
    .shell {
        align-items: flex-start;
    }

    #ariaCore {
        width: clamp(280px, 54vh, 500px);
        height: clamp(280px, 54vh, 500px);
    }

    #responseBox {
        max-height: 22vh;
    }
}