/* ============================
   BASE
   ============================ */
body {
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;

    background-color: #202424;

    color: #474d56;
}

input[type="number"],
select {
    font-family: "Trebuchet MS", "Helvetica", sans-serif;
    background-color: #151111;
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    padding: 2px;
    color: #889599;
    font-size: 20px;
}

/* -----------------------------------------
   Window Action Button — Frosted Glass Aesthetic
   ----------------------------------------- */
.win-action-button {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4) inset,
        0 1px 2px rgba(0, 0, 0, 0.6);

    padding: 4px 10px;
    font-family: system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #e4e6eb;

    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}
.win-action-button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 1px 3px rgba(0, 0, 0, 0.7);
}
.win-action-button:active {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(2px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5) inset,
        0 1px 1px rgba(0, 0, 0, 0.8);
}
/* -----------------------------------------
   Icon Buttons — Frosted Micro-Tile (Dark)
   ----------------------------------------- */
.icon-button {
    background: rgba(0, 0, 0, 0.1); /* soft glass panel */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: none;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-size: 100%;
    cursor: pointer;
}
.icon-button:hover {
    background-color: #ffffff20;

    transform: scale(1.15);
}
.icon-button:active {
    transform: scale(1.05) translateY(2px);
}
.sm-button {
    background: rgba(0, 0, 0, 0.1); /* soft glass panel */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: silver;
    font-size: 12px;
}
.sm-button:hover {
    background-color: #ffffff20;
    transform: scale(1.15);
}
.icon-button:focus,
.icon-button:focus-visible,
.sm-button:focus,
.sm-button:focus-visible {
    outline: none;
    box-shadow: none;
}
.chk-button {
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */

    background: rgba(0, 0, 0, 0.1);
    border: 1px solid #808080;
    color: #a0a0a0;
    margin: 0px;

    font-size: 120x; /* tune glyph size */
    line-height: 1; /* IMPORTANT: prevents vertical drift */
}
.chk-button:hover {
    border-width: 2px;
}
.std-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.6);

    color: #cfd9e3;
    text-shadow: none;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    user-select: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease,
        transform 0.12s ease;
}

.std-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 3px rgba(0, 0, 0, 0.65);
    transform: translateX(2px);
}

.std-button:active {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
    transform: translateY(2px);
}
/* *-------- --------------------------------------*/
/* *--------                 TOGGLES              --*/
/* *-------- --------------------------------------*/
.std-toggle-off {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;

    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.03);

    color: #9aa3ad; /* slightly duller */
    text-shadow: none;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}
.std-toggle-off:hover {
    transform: translateX(2px);
}
.std-toggle-off:active {
    transform: translateY(2px);
}
.std-toggle-on {
    background-color: rgba(70, 82, 96, 0.35); /* barely lifted from panel */
    border: 1px solid rgba(140, 160, 180, 0.25);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 1px rgba(0, 0, 0, 0.45);

    color: #cfd9e3; /* slightly brighter than off, not glowing */
    text-shadow: none;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    user-select: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}
.std-toggle-on:hover {
    transform: translateX(2px);
}
.std-toggle-on:active {
    transform: translateY(2px);
}
.std-toggle-on:focus,
.std-toggle-off:focus,
.std-button:focus {
    outline: none;
}

.std-toggle-on:focus-visible,
.std-toggle-off:focus-visible,
.std-button:focus-visible {
    outline: none;
}
/* ============================
   Clearance Console
   ============================ */
.clearance-caption {
    background: rgba(0, 0, 0, 0.35); /* dark mode default */
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px;
    line-height: 1.25;
    pointer-events: none;
    color: #9cffc8;
}
.console-msg {
    color: #d8fdd8; /* same family as your green console text */
    background-color: rgba(20, 24, 20, 0.9);
    border: 1px solid rgba(120, 180, 120, 0.35);
    position: absolute;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.3px;

    padding: 3px 8px;
    border-radius: 3px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    white-space: nowrap;
}
.console-msg.show {
    opacity: 1;
}

/* ============================================
   Scenario Screen Items
   ============================================ */
.popup-window {
    background: rgba(20, 20, 22, 0.6); /* translucent charcoal */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 4px 12px rgba(0, 0, 0, 0.55);

    color: #e4e6eb; /* readable neutral-light text */
}
.app-title {
    font-family: "Segoe UI Black", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    font-size: 84px;
    letter-spacing: 0.04em;

    background: linear-gradient(180deg, #d7dee6 0%, #a6b0ba 55%, #778390 100%);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.control-label {
    font-size: 14px;
    color: #a5a5a5;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
/*========================== temp */
.border-only {
    border-color: silver;
    border-style: solid;
    border-width: 1px;
}
/*---------------------scoring */
.score-total {
    font-family: "Trebuchet MS", "Helvetica", sans-serif;
    font-size: 36px;
    color: #a6b0ba;
    text-transform: uppercase;
}
.score-number {
    font-size: 20px;
    font-weight: bold;
    color: #778390;
}
.score-detail {
    font-family: "Trebuchet MS", "Helvetica", sans-serif;
    font-size: 24px;
    color: #88a0ac;
}
.metric-detail {
    font-family: "Trebuchet MS", "Helvetica", sans-serif;
    font-size: 20px;
    color: #88a0ac;
}
.other-detail {
    font-family: "Trebuchet MS", "Helvetica", sans-serif;
    font-size: 20px;
    color: #6a9baf;
}
/* ============================================Control panel*/
.control-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 224px;
    height: 100%;

    /* Frosted glass */
    background: rgba(24, 30, 38, 0.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* Hard left instrument edge */
    border-left: 1px solid rgba(140, 170, 200, 0.25);

    /* Subtle depth so it reads as a layer */
    box-shadow:
        -2px 0 6px rgba(0, 0, 0, 0.45),
        inset 1px 0 0 rgba(255, 255, 255, 0.04);

    /* Layout sanity */
    display: flex;
    flex-direction: column;
    padding: 10px 12px;

    pointer-events: auto;
}
.control-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a96a3;
    opacity: 0.75;
}
.time-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-size: 28px;
    font-weight: 600;
    color: #6f7b88;
    text-align: center;
}
.score-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-size: 28px;
    font-weight: 600;
    color: #8a8474;
    text-align: center;
}
.control-panel .win-action-button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #b6bec8;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5) inset,
        0 1px 1px rgba(0, 0, 0, 0.6);
}
.control-panel .win-action-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}
.block-window {
    background: #20202040; /* translucent charcoal */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    color: #e4e6eb; /* readable neutral-light text */
}
.std-adjust {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.6);

    color: #cfd9e3;
    text-shadow: none;
    font-size: 14px;
    padding-top: 8px;
    text-align: center;
}
.reg-text {
    font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
    font-size: 18px;
    color: #f0f0f0;
}

/* ============================================
   Text Links / Navigation Buttons
   ============================================ */
.links {
    background: none;
    border: none;

    padding: 4px 2px;

    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: #9fb4c8; /* readable, cool, not glowing */
    cursor: pointer;

    transition:
        color 0.15s ease,
        transform 0.12s ease,
        text-shadow 0.15s ease;
}

.links:hover {
    color: #cfe3ff;
    text-shadow: 0 0 6px rgba(160, 200, 255, 0.35);
    transform: translateX(2px);
}

.links:active {
    color: #7fa6cc;
    transform: translateX(2px) translateY(2px);
    text-shadow: none;
}

.links:focus,
.links:focus-visible {
    outline: none;
}
