:root {
    color-scheme: dark;
    --bg: #050b14;
    --bg-panel: rgba(9, 22, 35, 0.92);
    --bg-panel-alt: rgba(5, 12, 22, 0.82);
    --grid-line: rgba(27, 90, 117, 0.35);
    --accent: #00f6cd;
    --accent-soft: rgba(0, 246, 205, 0.18);
    --accent-strong: #40ffd7;
    --danger: #ff5f5f;
    --warning: #ffd369;
    --text: #e6f3ff;
    --text-soft: #9fc4df;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    font-family: "Roboto", "Segoe UI", sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 35% 20%, rgba(52, 121, 197, 0.18), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(33, 181, 158, 0.25), transparent 50%),
        linear-gradient(135deg, #030912 0%, #02040a 100%);
    color: var(--text);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.app-shell {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.startup {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 1.5rem;
    background: rgba(1, 5, 12, 0.9);
    font-family: "Roboto Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: startupFade 1.2s alternate infinite ease-in-out;
}

.startup__logo {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: var(--accent-strong);
    text-shadow: 0 0 24px rgba(43, 255, 206, 0.55);
}

.startup__status {
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    color: var(--text-soft);
}

@keyframes startupFade {
    from {
        opacity: 0.55;
    }
    to {
        opacity: 1;
    }
}

.simulator {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: min(1480px, 97vw);
    margin: 1.4rem auto;
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(7, 19, 32, 0.82), rgba(4, 9, 17, 0.86));
    border: 1px solid rgba(0, 255, 200, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.simulator::before,
.simulator::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.simulator::before {
    background-image:
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        linear-gradient(0deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.simulator::after {
    background: radial-gradient(circle at 15% 20%, rgba(0, 255, 204, 0.18), transparent 35%),
        radial-gradient(circle at 80% 85%, rgba(30, 144, 255, 0.14), transparent 45%);
    mix-blend-mode: screen;
}

.panel {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid rgba(0, 255, 204, 0.08);
    border-radius: 16px;
    padding: 1.1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel--wide {
    grid-column: 1 / -1;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(0, 255, 221, 0.07), transparent 55%);
}

.panel__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: "Roboto Mono", monospace;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--text-soft);
    text-transform: uppercase;
}

.panel__content {
    flex: 1;
    display: grid;
    gap: 0.75rem;
}

.gauge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.9rem;
}

.gauge {
    position: relative;
    padding: 0.65rem 0.8rem;
    background: var(--bg-panel-alt);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 221, 0.05);
}

.gauge__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
}

.gauge__value {
    font-family: "Roboto Mono", monospace;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--accent-strong);
}

.gauge__value--caution {
    color: var(--warning);
}

.gauge__value--danger {
    color: var(--danger);
}

.gauge__bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 255, 221, 0.14);
    margin-top: 0.6rem;
    overflow: hidden;
}

.gauge__bar-inner {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 221, 0.4), rgba(64, 255, 215, 0.85));
}

.main-viewport {
    display: grid;
    grid-template-rows: auto minmax(220px, 1fr) auto;
    gap: 1rem;
    height: 100%;
}

.viewport-screen {
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 255, 204, 0.04), rgba(0, 12, 20, 0.92));
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 221, 0.12);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.75),
        inset 0 0 0 1px rgba(0, 255, 221, 0.05);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.viewport-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 221, 0.12), transparent 55%),
        linear-gradient(90deg, rgba(0, 255, 221, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 221, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 90px 90px, 90px 90px;
    mix-blend-mode: screen;
}

.viewport-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.contacts {
    display: grid;
    gap: 0.6rem;
    font-family: "Roboto Mono", monospace;
    font-size: 0.76rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 4ch 1fr 1fr 1fr;
    gap: 0.65rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed rgba(0, 255, 204, 0.09);
}

.contact-row--header {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
}

.control-group {
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem;
    background: rgba(0, 30, 45, 0.55);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.06);
}

.control-group__title {
    font-family: "Roboto Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.control-field {
    display: grid;
    gap: 0.35rem;
}

.control-field--inline {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.control-label {
    font-size: 0.74rem;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.control-label span:last-child {
    color: var(--accent-strong);
    font-family: "Roboto Mono", monospace;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 255, 221, 0.18);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 14px rgba(64, 255, 215, 0.55);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-strong);
    border: none;
    box-shadow: 0 0 14px rgba(64, 255, 215, 0.55);
    cursor: pointer;
}

.switch {
    position: relative;
    width: 46px;
    height: 22px;
    border-radius: 999px;
    background: rgba(0, 255, 221, 0.15);
    border: 1px solid rgba(0, 255, 221, 0.12);
    cursor: pointer;
    transition: background 0.2s ease;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease, background 0.2s ease;
}

.switch[data-on="true"] {
    background: rgba(0, 255, 221, 0.35);
}

.switch[data-on="true"]::after {
    transform: translateX(22px);
    background: var(--accent-strong);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 255, 221, 0.12);
    border: 1px solid rgba(0, 255, 221, 0.18);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.button:hover {
    background: rgba(0, 255, 221, 0.24);
}

.button:active {
    transform: scale(0.98);
}

.button--emergency {
    background: rgba(255, 94, 94, 0.18);
    border-color: rgba(255, 94, 94, 0.35);
    color: var(--danger);
    text-shadow: 0 0 22px rgba(255, 94, 94, 0.4);
}

.log {
    font-family: "Roboto Mono", monospace;
    font-size: 0.72rem;
    max-height: 320px;
    overflow: auto;
    display: grid;
    gap: 0.5rem;
    padding-right: 0.35rem;
}

.log-entry {
    display: grid;
    grid-template-columns: 6.5ch 1fr;
    gap: 0.75rem;
    align-items: baseline;
    opacity: 0.85;
}

.log-entry__time {
    color: var(--text-soft);
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}

.log-entry__text {
    color: var(--text);
}

.alarms {
    display: grid;
    gap: 0.6rem;
}

.alarm {
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 96, 96, 0.4);
    background: rgba(60, 10, 10, 0.35);
    box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.18);
    font-size: 0.75rem;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.alarm--warning {
    border-color: rgba(255, 211, 105, 0.4);
    background: rgba(60, 46, 10, 0.35);
    color: var(--warning);
}

.mission {
    display: grid;
    gap: 0.5rem;
}

.mission-objective {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
}

.mission-objective::before {
    content: attr(data-index);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 221, 0.25);
    background: rgba(0, 255, 221, 0.1);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.mission-objective[data-done="true"] {
    color: var(--text-soft);
    text-decoration: line-through;
    opacity: 0.7;
}

.mission-objective[data-done="true"]::before {
    content: "✓";
    border-color: rgba(64, 255, 215, 0.6);
    background: rgba(64, 255, 215, 0.2);
    color: var(--accent);
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 255, 221, 0.08);
    border: 1px solid rgba(0, 255, 221, 0.16);
}

.badge--active {
    background: rgba(0, 255, 221, 0.22);
    color: var(--accent-strong);
}

.status-strip {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.68rem;
    color: var(--text-soft);
}

.status-strip strong {
    color: var(--accent);
    font-weight: 500;
}

.error-banner {
    padding: 0.9rem;
    background: rgba(120, 20, 20, 0.5);
    border: 1px solid rgba(255, 80, 80, 0.5);
    border-radius: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    display: none;
}

.error-banner[data-visible="true"] {
    display: block;
}

.simulator > .error-banner {
    grid-column: 1 / -1;
    margin-top: -0.2rem;
}

.command-grid {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(480px, 1fr);
    gap: 1.2rem;
    min-height: 0;
}

.command-grid__left,
.command-grid__right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0;
}

.panel--tabs {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.panel--tabs .panel__header {
    padding: 1rem 1.4rem;
}

.panel--tabs {
    display: flex;
    flex-direction: column;
}

.tab-bar {
    display: flex;
    gap: 0.35rem;
    padding: 1.1rem 1.4rem 0.4rem;
    background: linear-gradient(90deg, rgba(0, 255, 221, 0.08), transparent);
}

.tab-bar__button {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 221, 0.12);
    background: rgba(0, 10, 18, 0.6);
    color: var(--text-soft);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab-bar__button:hover {
    background: rgba(0, 255, 221, 0.16);
}

.tab-bar__button--active {
    border-color: rgba(0, 255, 221, 0.4);
    background: rgba(0, 35, 45, 0.75);
    color: var(--accent-strong);
    box-shadow: inset 0 0 18px rgba(0, 255, 221, 0.15);
}

.tab-content-container {
    padding: 0 1.4rem 1.4rem;
    flex: 1;
    display: flex;
    min-height: 360px;
}

.tab-content-container .tab-content {
    flex: 1;
    padding-top: 1.2rem;
    display: grid;
    gap: 1rem;
}

.training-status {
    font-family: "Roboto Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.training-status--active {
    color: var(--accent-strong);
}

.tab-section {
    display: grid;
    gap: 0.8rem;
}

.tab-section__title {
    font-family: "Roboto Mono", monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.64rem;
    color: var(--text-soft);
}

.control-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.control-lever {
    position: relative;
    background: rgba(0, 255, 221, 0.08);
    border: 1px solid rgba(0, 255, 221, 0.18);
    border-radius: 14px;
    padding: 1.2rem 1rem 1rem;
    box-shadow: inset 0 0 18px rgba(0, 40, 60, 0.4);
    overflow: hidden;
}

.control-lever__scale {
    position: relative;
    height: 140px;
    background: linear-gradient(180deg, rgba(0, 20, 28, 0.6), rgba(0, 40, 60, 0.6));
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 221, 0.18);
    overflow: hidden;
}

.control-lever__indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--value, 0) * 1%);
    background: linear-gradient(180deg, rgba(64, 255, 215, 0.2), rgba(64, 255, 215, 0.65));
    box-shadow: 0 0 22px rgba(64, 255, 215, 0.45);
    transition: height 0.2s ease;
}

.control-lever__label {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.control-lever__value {
    display: block;
    font-family: "Roboto Mono", monospace;
    font-size: 0.95rem;
    color: var(--accent-strong);
    margin-top: 0.2rem;
}

.control-input {
    position: absolute;
    inset: 1rem 1rem 1rem;
    transform: rotate(-90deg);
    transform-origin: center;
    opacity: 0;
}

.control-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(0, 255, 221, 0.16);
    border-radius: 12px;
    background: rgba(0, 30, 45, 0.45);
}

.control-switch__label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.control-switch__toggle {
    width: 54px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 221, 0.18);
    background: rgba(0, 255, 221, 0.1);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.control-switch__toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 40, 50, 0.9);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.control-switch__toggle[data-on="true"] {
    background: rgba(0, 255, 221, 0.32);
    border-color: rgba(0, 255, 221, 0.4);
}

.control-switch__toggle[data-on="true"]::after {
    transform: translateX(28px);
    background: linear-gradient(135deg, rgba(0, 255, 221, 0.9), rgba(64, 255, 215, 0.9));
}

.control-slider {
    display: grid;
    gap: 0.35rem;
    margin: 0.8rem 0;
}

.control-slider label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.control-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 255, 221, 0.18);
}

.control-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 14px rgba(64, 255, 215, 0.55);
    cursor: pointer;
}

.control-slider span {
    font-family: "Roboto Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent);
}

.button-group {
    display: flex;
    gap: 0.5rem;
}

.button--active {
    border-color: rgba(0, 255, 221, 0.45);
    background: rgba(0, 255, 221, 0.22);
    color: var(--accent-strong);
}

.status-table {
    display: grid;
    gap: 0.4rem;
}

.status-table__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    font-family: "Roboto Mono", monospace;
    font-size: 0.72rem;
    color: var(--text-soft);
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed rgba(0, 255, 221, 0.12);
}

.navigation-list {
    display: grid;
    gap: 0.5rem;
}

.navigation-list__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 221, 0.1);
    background: rgba(0, 20, 28, 0.45);
    color: var(--text);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navigation-list__item:hover {
    background: rgba(0, 255, 221, 0.16);
    border-color: rgba(0, 255, 221, 0.32);
}

.navigation-list__item--active {
    border-color: rgba(255, 211, 105, 0.6);
    box-shadow: inset 0 0 18px rgba(255, 211, 105, 0.2);
}

.training-step {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 255, 221, 0.18);
    border-radius: 14px;
    background: rgba(0, 30, 45, 0.42);
    color: var(--text);
    display: grid;
    gap: 0.5rem;
}

.training-step h4 {
    margin: 0;
    font-family: "Roboto Mono", monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--accent-strong);
}

.training-step p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.training-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.training-controls .button {
    flex: 1 1 140px;
}

@media (max-width: 1220px) {
    .command-grid {
        grid-template-columns: 1fr;
    }

    .panel--tabs {
        min-height: 420px;
    }
}

@media (max-width: 920px) {
    .simulator {
        margin: 0.6rem auto;
        padding: 1rem;
    }

    .command-grid {
        gap: 0.9rem;
    }

    .panel {
        padding: 0.9rem;
    }

    .tab-bar {
        flex-wrap: wrap;
    }

    .tab-bar__button {
        flex: 1 1 calc(50% - 0.35rem);
    }

    .top-bar {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .map-canvas {
        aspect-ratio: 1/1;
    }
}
.top-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(0, 255, 221, 0.12);
    border-radius: 16px;
    background: rgba(0, 15, 25, 0.7);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.top-bar__item {
    display: grid;
    gap: 0.25rem;
}

.top-bar__label {
    font-family: "Roboto Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.top-bar__value {
    font-family: "Roboto Mono", monospace;
    font-size: 0.95rem;
    color: var(--accent-strong);
}

.top-bar__value--warning {
    color: var(--warning);
}

.top-bar__value--danger {
    color: var(--danger);
}

.map-panel {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 221, 0.14);
    background: radial-gradient(circle at center, rgba(0, 20, 32, 0.95), rgba(0, 10, 18, 0.95));
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
}

.map-canvas {
    width: 100%;
    aspect-ratio: 1.2/1;
    display: block;
}

.map-legend {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.map-legend span {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 255, 221, 0.12);
    border: 1px solid rgba(0, 255, 221, 0.2);
}

.training-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0, 10, 18, 0.76);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 2rem;
}

.training-overlay[data-visible="true"] {
    display: flex;
}

.training-card {
    max-width: 540px;
    background: rgba(0, 16, 28, 0.9);
    border: 1px solid rgba(0, 255, 221, 0.24);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    display: grid;
    gap: 1rem;
}

.training-card__title {
    font-size: 1.1rem;
    font-family: "Roboto Mono", monospace;
    color: var(--accent-strong);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.training-card__text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

.training-card__controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.training-card__controls .button {
    flex: 1;
    min-width: 120px;
}
