.window,
.retro-button,
.retro-select,
input[type="range"] {
    border-radius: var(--radius);
}

.window {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 80px),
        var(--surface);
    border: 1px solid var(--surface-line);
    box-shadow: var(--shadow);
}

.window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
    color: var(--green);
    background: var(--title-active);
    border-bottom: 1px solid rgba(136, 240, 136, 0.24);
}

.window-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: lowercase;
}

.window-title::before {
    content: "/* ";
    color: var(--amber);
}

.window-title::after {
    content: " */";
    color: var(--amber);
}

.window-actions {
    display: flex;
    gap: 0.25rem;
}

.window-actions span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px rgba(217, 168, 79, 0.3);
}

.window-body {
    padding: 1rem;
}

.page-title,
h2 {
    font-family: var(--mono);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.15;
    color: var(--ink);
}

h2 {
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    margin-bottom: 0.5rem;
}

.eyebrow,
.status-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green-strong);
}

.eyebrow::before {
    content: "/* ";
    color: var(--amber);
}

.eyebrow::after {
    content: " */";
    color: var(--amber);
}

.subtitle,
.lead-copy,
.small-copy,
.note-copy,
.content-copy p,
.info-box p,
.myth-card p {
    line-height: 1.55;
    color: var(--ink-soft);
}

.lead-copy {
    max-width: 72ch;
}

.small-copy,
.note-copy {
    font-size: 0.92rem;
}

.terminal-panel,
.code-box,
.sim-output,
#recommendation-output,
#weighted-output {
    font-family: var(--mono);
    background: var(--bg-dark);
    color: var(--green);
    border: 1px solid rgba(136, 240, 136, 0.35);
    box-shadow: inset 0 0 0 1px rgba(217, 168, 79, 0.08);
    padding: 0.85rem;
    overflow-x: auto;
}

.ascii-block,
.code-box {
    white-space: pre-wrap;
    word-break: break-word;
}

.retro-button {
    min-height: 2.3rem;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    background: var(--bg-dark);
    color: var(--amber-soft);
    border: 1px solid rgba(217, 168, 79, 0.48);
    text-transform: lowercase;
    font-size: 0.82rem;
    box-shadow: none;
}

.retro-button:hover,
.retro-button.is-active {
    color: var(--bg-dark);
    background: var(--amber-soft);
}

.retro-button:active {
    transform: translateY(1px);
}

.retro-button.alt {
    color: var(--green);
    border-color: rgba(136, 240, 136, 0.42);
}

.retro-button.wide {
    width: 100%;
    margin-top: 0.65rem;
}

.directory-list,
.status-stack,
.slider-stack,
.faq-stack {
    display: grid;
    gap: 0.55rem;
}

.directory-item,
.status-card,
.info-box,
.checklist-box,
.myth-card {
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem;
    background: rgba(255, 250, 237, 0.9);
    border: 1px solid var(--surface-line);
}

.directory-item:hover {
    background: #fff6dd;
}

.table-shell {
    overflow-x: auto;
}

.retro-table {
    width: 100%;
    min-width: 520px;
    background: #fffdf6;
}

.retro-table th,
.retro-table td {
    padding: 0.5rem;
    border: 1px solid #3c3a31;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
    line-height: 1.45;
}

.retro-table th {
    color: var(--green);
    background: #11170f;
    font-weight: 700;
}

.bullet-panel {
    display: grid;
    gap: 0.45rem;
}

.bullet-panel li {
    line-height: 1.45;
}

.anchor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.anchor-list a {
    padding: 0.3rem 0.5rem;
    text-decoration: underline;
    color: var(--bg-dark);
    background: var(--amber-soft);
    border: 1px solid #6a4e1e;
}

.field-label,
.range-row {
    display: grid;
    gap: 0.4rem;
    font-weight: 700;
}

.retro-select {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.3rem 0.5rem;
    color: var(--green);
    background: var(--bg-dark);
    border: 1px solid rgba(136, 240, 136, 0.35);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--amber);
}

.chart-grid {
    display: grid;
    gap: 0.6rem;
}

.chart-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    background: rgba(255, 250, 237, 0.92);
    border: 1px solid var(--surface-line);
}

.bar-group {
    display: grid;
    gap: 0.35rem;
}

.bar-label-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.88rem;
}

.bar-track {
    height: 1rem;
    background: #fffdf6;
    border: 1px solid #3c3a31;
}

.bar-fill {
    height: 100%;
    width: 0;
    transition: width 400ms ease;
}

.bar-fill.cpp {
    background: var(--green-strong);
}

.bar-fill.java {
    background: var(--amber);
}

.latency-strip {
    display: grid;
    gap: 0.5rem;
}

.latency-row {
    display: grid;
    gap: 0.35rem;
}

.latency-meter {
    height: 1.1rem;
    background: #fffdf6;
    border: 1px solid #3c3a31;
}

.latency-fill {
    height: 100%;
    width: 0;
    transition: width 400ms ease;
}

.latency-fill.cpp {
    background: var(--green-strong);
}

.latency-fill.java {
    background: var(--red);
}

.metric-summary {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.faq-item {
    padding: 0.55rem 0.65rem;
    background: rgba(255, 250, 237, 0.9);
    border: 1px solid var(--surface-line);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.faq-item p {
    margin-top: 0.55rem;
}
