html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(189, 222, 202, 0.45), transparent 34%),
        linear-gradient(180deg, #1d3a2b 0%, #10231a 48%, #09150f 100%);
    color: #f4fbf4;
}

.controlShell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.controlCard {
    width: min(31rem, 100%);
    padding: 1.4rem;
    border-radius: 1.4rem;
    background: rgba(10, 24, 17, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.eyebrow {
    color: #95e0ad;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    font-weight: 700;
}

.controlTitle {
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(1.7rem, 7vw, 2.5rem);
    line-height: 1.05;
}

.statusText {
    margin: 0;
    color: rgba(244, 251, 244, 0.84);
    line-height: 1.45;
}

.warningPanel,
.hintPanel,
.commsInfo,
.orientationNotice,
.controlPreview {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    line-height: 1.45;
}

.warningPanel {
    background: rgba(255, 220, 122, 0.14);
    border: 1px solid rgba(255, 220, 122, 0.32);
    color: #ffefbb;
}

.buttonStack {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.primaryButton,
.secondaryButton,
.manualButton {
    appearance: none;
    border: 0;
    border-radius: 1rem;
    padding: 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primaryButton {
    background: linear-gradient(135deg, #9ae58d 0%, #5fc06d 100%);
    color: #0b1e11;
}

.secondaryButton {
    background: rgba(255, 255, 255, 0.09);
    color: #f4fbf4;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.manualControls {
    margin-top: 1.3rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.manualTitle {
    margin: 0;
    font-size: 1.05rem;
}

.manualCopy {
    margin: 0.45rem 0 0.9rem;
    color: rgba(244, 251, 244, 0.78);
}

.manualGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.manualButton {
    background: rgba(244, 251, 244, 0.92);
    color: #0f2215;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 90ms ease, background-color 90ms ease;
}

.manualButtonActive {
    background: #9ae58d;
    transform: scale(0.98);
}

.hintPanel,
.commsInfo,
.controlPreview {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(244, 251, 244, 0.82);
}

.orientationNotice {
    background: rgba(255, 220, 122, 0.14);
    border: 1px solid rgba(255, 220, 122, 0.3);
    color: #ffefbb;
}

.hidden {
    display: none;
}

@media (max-width: 520px) {
    .controlCard {
        padding: 1.1rem;
    }

    .manualGrid {
        grid-template-columns: 1fr;
    }
}
