/* ============================================================================
   KaguraLinux Official Portal — Authentic 1998 Corporate Web Style (v1.3.2)
   - Inspired by 1998 Microsoft.com: crisp white page, top black utility bar,
     steel-blue #6699CC masthead + subnav, signature 1px #CC0000 red divider,
     #000066 square bullets, #003399 underlined links, Verdana 11-12px type
   - Preserves zero-dependency architecture & live Win98 desktop demo (demo.html)
   ============================================================================ */

:root,
[data-theme="light"],
[data-theme="dark"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-subtle: #f4f6f9;
    --surface-win: #c0c0c0;
    --text: #000000;
    --muted: #444444;
    --brand: #003399;
    --brand-hover: #cc0000;
    --steel: #6699cc;
    --steel-dark: #336699;
    --crimson: #cc0000;
    --navy: #000066;
    --border: #999999;
    --border-light: #ffffff;
    --border-dark: #404040;
    --code-bg: #08101c;
    --code-text: #86efac;
    --bevel-out: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, inset -2px -2px 0 #404040;
    --bevel-in: inset 1px 1px 0 #808080, inset 2px 2px 0 #404040, inset -1px -1px 0 #ffffff;
    --shadow-lg: 3px 4px 10px rgba(0, 0, 0, 0.25);
    --radius-sm: 2px;
}

/* Bilingual Switching Rules */
html[data-lang="en"] [data-tr] { display: none !important; }
html[data-lang="tr"] [data-en] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #ffffff;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; }
code, pre, .mono { font-family: "Courier New", Courier, monospace; }
code {
    background: #f0f2f5;
    border: 1px solid #dcdcdc;
    padding: 0 3px;
    font-size: 11px;
    color: #111111;
}

a {
    color: #003399;
    text-decoration: underline;
}
a:hover {
    color: #cc0000;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ============================================================================
   1. 1998 Top Black Utility Bar + Masthead + Steel-Blue Sub-Navigation
   ============================================================================ */
.ms98-header {
    width: 100%;
    background: #ffffff;
}

.ms98-topbar {
    width: 100%;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
}

.ms98-topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ms98-topbar-tag {
    color: #b8d4f0;
    font-size: 10.5px;
}

.ms98-topbar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.ms98-topbar-links a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 11px;
}

.ms98-topbar-links a:hover {
    color: #ffffcc;
    text-decoration: underline;
}

.ms98-pipe {
    color: #8c8c8c;
    user-select: none;
}

.lang-switch-98 {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.lang-btn {
    border: 1px solid #666666;
    background: #1f1f1f;
    color: #dddddd;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    cursor: pointer;
}

.lang-btn.active {
    background: #6699cc;
    border-color: #99ccff;
    color: #ffffff;
}

.ms98-masthead {
    width: 100%;
    background: #ffffff;
}

.ms98-masthead-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 58px;
}

.ms98-mast-left {
    display: flex;
    align-items: stretch;
}

.ms98-mast-blue {
    width: 195px;
    padding: 7px 12px 6px;
    background: linear-gradient(135deg, #6699cc 0%, #5283b8 100%);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ms98-mast-blue:hover {
    color: #ffffff;
    text-decoration: none;
}

.ms98-mast-domain {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.1;
}

.ms98-mast-home {
    font-size: 11px;
    color: #eef5fc;
    align-self: flex-end;
    margin-top: 3px;
}

.ms98-mast-clouds {
    width: 155px;
    position: relative;
    background: url("assets/clouds-bg.jpg") center/cover no-repeat;
}

.ms98-mast-clouds::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(102, 153, 204, 0.35) 0%, rgba(255, 255, 255, 0.78) 65%, #ffffff 100%);
}

.ms98-mast-right {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    text-decoration: none;
}

.ms98-mast-right:hover { text-decoration: none; }

.ms98-mast-right img {
    width: 30px;
    height: 30px;
    display: block;
}

.ms98-wordmark {
    font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.6px;
    color: #000000;
    line-height: 1;
}

.ms98-wordmark sup {
    font-family: Verdana, Arial, sans-serif;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    color: #444444;
    margin-left: 2px;
}

.ms98-subnav {
    width: 100%;
    background: #6699cc;
    border-top: 1px solid #4a7eb3;
    border-bottom: 1px solid #336699;
}

.ms98-subnav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.ms98-subnav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ms98-subnav-links a {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    padding: 3px 9px;
    border-right: 1px solid #d4e6f7;
    line-height: 1.25;
}

.ms98-subnav-links a:first-child { padding-left: 2px; }
.ms98-subnav-links a:hover {
    background: #4e80b4;
    color: #ffffff;
    text-decoration: underline;
}

.ms98-subnav-links a.current {
    background: #003366;
    color: #ffffcc;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: #d4d0c8;
    color: #000000;
    border: 1px outset #ffffff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    cursor: pointer;
}

/* ============================================================================
   2. Two-Column 1998 Portal Shell & Signature Red Vertical Rule
   ============================================================================ */
.ms98-shell {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 195px minmax(0, 1fr);
    background: #ffffff;
}

.ms98-sidebar {
    padding: 10px 10px 26px 12px;
    border-right: 1px solid #cc0000;
    background: #ffffff;
    font-size: 11px;
    line-height: 1.4;
}

.ms98-promo-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 10px;
}

.ms98-promo-box img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid #808080;
    background: #d4d0c8;
    padding: 2px;
}

.ms98-promo-box strong {
    display: block;
    font-size: 11px;
    color: #000000;
}

.ms98-dir-group {
    margin-bottom: 11px;
}

.ms98-dir-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 2px;
}

.ms98-dir-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #000066;
    flex-shrink: 0;
}

.ms98-dir-list {
    list-style: none;
    margin: 0 0 0 11px;
    padding: 0;
}

.ms98-dir-list li {
    margin: 1px 0;
}

.ms98-dir-list a {
    color: #003399;
    text-decoration: underline;
}

.ms98-dir-list a:hover { color: #cc0000; }
.ms98-dir-list a.current {
    font-weight: 700;
    color: #cc0000;
    text-decoration: none;
}

.ms98-main {
    padding: 14px 22px 24px;
    min-width: 0;
    background: #ffffff;
}

.ms98-hr {
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 16px 0;
}

/* ============================================================================
   3. Home Spotlight, Highlights Grid & Subpage Headers
   ============================================================================ */
.ms98-spotlight {
    display: grid;
    grid-template-columns: 206px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.ms98-spot-media {
    border: 1px solid #999999;
    background: #f0f0f0;
    padding: 4px;
    text-align: center;
}

.ms98-spot-badge {
    background: linear-gradient(135deg, #dfe4c6 0%, #c8d3a8 100%);
    border: 1px solid #8a9470;
    padding: 8px 8px 6px;
    margin-bottom: 4px;
    text-align: left;
}

.ms98-spot-badge .kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #333300;
    text-transform: uppercase;
}

.ms98-spot-badge .big {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #000066;
    line-height: 1.15;
    margin: 2px 0;
}

.ms98-spot-media img {
    display: block;
    width: 100%;
    border: 1px solid #808080;
}

.ms98-spot-cap {
    font-size: 10.5px;
    color: #333333;
    margin-top: 4px;
    display: block;
}

.ms98-spot-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.ms98-spot-title a {
    color: #003399;
    text-decoration: underline;
}

.ms98-spot-title a:hover { color: #cc0000; }

.ms98-spot-lead {
    margin: 0 0 10px;
    font-size: 12px;
    color: #111111;
    line-height: 1.52;
}

.ms98-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.btn-primary,
.btn-secondary,
.tool-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
}

.btn-primary {
    background: #003399;
    color: #ffffff;
    border: 2px outset #4c7bd9;
}

.btn-primary:hover {
    background: #002277;
    color: #ffffcc;
    text-decoration: none;
}

.btn-secondary,
.tool-mini {
    background: #d4d0c8;
    color: #000000;
    border: 2px outset #ffffff;
}

.btn-secondary:hover,
.tool-mini:hover {
    background: #e4e1db;
    color: #000000;
    text-decoration: none;
}

.btn-primary:active,
.btn-secondary:active,
.tool-mini:active,
.tl-filter-btn.active {
    border-style: inset;
}

.tl-filter-btn.active {
    background: #003399;
    color: #ffffff;
    border-color: #4c7bd9;
}

.btn-disabled,
.btn-disabled:hover {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

.ms98-meta-inline {
    margin-top: 8px;
    font-size: 11px;
    color: #333333;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 2-Column 6-Item Bullet Headlines (Signature 1998 Layout) */
.ms98-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
}

.ms98-news-item {
    position: relative;
    padding-left: 13px;
}

.ms98-news-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background: #000066;
}

.ms98-news-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #003399;
    text-decoration: underline;
    margin-bottom: 3px;
    line-height: 1.35;
}

.ms98-news-link:hover { color: #cc0000; }

.ms98-news-desc {
    margin: 0;
    font-size: 11.5px;
    color: #111111;
    line-height: 1.45;
}

/* Section Heading Bar inside Main Column */
.ms98-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #999999;
    padding-bottom: 4px;
    margin: 16px 0 10px;
}

.ms98-sec-head h1,
.ms98-sec-head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #000066;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ms98-sec-head h1::before,
.ms98-sec-head h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #000066;
    flex-shrink: 0;
}

.ms98-page-intro {
    background: #f4f6f9;
    border: 1px solid #b8c4d0;
    border-left: 4px solid #6699cc;
    padding: 9px 12px;
    margin-bottom: 14px;
}

.ms98-page-intro h1 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: #000066;
}

.ms98-page-intro p {
    margin: 0;
    font-size: 11.5px;
    color: #222222;
}

/* ============================================================================
   4. Classic 1998 HTML Tables, Stats Bar, Cards, Wizard, Timeline & Code Boxes
   ============================================================================ */
.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.ms98-table,
.compare-table,
.bbs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    border: 1px solid #999999;
    background: #ffffff;
}

.ms98-table th,
.compare-table th,
.bbs-table th {
    background: #6699cc;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 5px 8px;
    border: 1px solid #4a7eb3;
    font-size: 11px;
}

.compare-table th.col-kagura {
    background: #003399;
    color: #ffffff;
}

.ms98-table td,
.compare-table td,
.bbs-table td {
    padding: 5px 8px;
    border: 1px solid #cccccc;
    vertical-align: top;
}

.ms98-table tbody tr:nth-child(even) td,
.compare-table tbody tr:nth-child(even) td,
.bbs-table tbody tr:nth-child(even) td {
    background: #f7f9fc;
}

.compare-table td.col-kagura {
    background: #ebf2fa !important;
    font-weight: 700;
    color: #002266;
}

.stat-num-98 {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #003399;
}

.badge-yes { color: #006600; font-weight: 700; }
.badge-no { color: #990000; font-weight: 700; }

.grid-2,
.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.card,
.wizard-box,
.tl-item {
    background: #fafafa;
    border: 1px solid #b5b5b5;
    border-top: 2px solid #6699cc;
    padding: 10px 12px;
}

.card h3,
.tl-head h3 {
    margin: 0 0 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #003399;
}

.card p,
.card li,
.tl-item p,
.tl-item li {
    font-size: 11.5px;
    line-height: 1.48;
}

.card ul,
.tl-item ul {
    margin: 4px 0 0 16px;
    padding: 0;
}

.card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border: 1px solid #6699cc;
    background: #eaf2fb;
    color: #003399;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-tag.green {
    border-color: #4c8c4a;
    background: #eaf5ea;
    color: #166534;
}

.card-tag.amber {
    border-color: #b45309;
    background: #fef3c7;
    color: #92400e;
}

.status-pill {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid #999999;
}

.status-ready {
    background: #e6f4ea;
    border-color: #2e7d32;
    color: #1b5e20;
}

.status-building {
    background: #fff8e1;
    border-color: #b26a00;
    color: #7c4700;
}

.wizard-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 12px;
    align-items: start;
}

.wizard-group {
    margin-bottom: 8px;
}

.wizard-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
}

.wizard-group select {
    width: 100%;
    padding: 4px 6px;
    font-family: inherit;
    font-size: 11.5px;
    border: 1px solid #7f9db9;
    background: #ffffff;
}

.wizard-result {
    background: #ffffff;
    border: 1px solid #808080;
    padding: 9px 11px;
}

.wizard-result h4 {
    margin: 0 0 5px;
    font-size: 12px;
    color: #003399;
}

.ram-row { margin-bottom: 8px; }
.ram-row:last-child { margin-bottom: 0; }
.ram-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ram-bar {
    background: #d4d0c8;
    border: 1px inset #ffffff;
    height: 17px;
    width: 100%;
}

.ram-fill {
    height: 100%;
    background: #003399;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    padding: 0 5px;
    white-space: nowrap;
}

.tl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tl-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tl-meta {
    margin: 2px 0 6px;
    font-size: 11px;
    color: #444444;
    font-weight: 700;
}

.copy-box {
    position: relative;
    background: #f4f4f4;
    border: 1px solid #808080;
    color: #111111;
    font-family: "Courier New", Courier, monospace;
    font-size: 11.5px;
    line-height: 1.45;
    padding: 8px 60px 8px 9px;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 6px;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #d4d0c8;
    border: 2px outset #ffffff;
    color: #000000;
    font-family: Verdana, Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    cursor: pointer;
}

.copy-btn:active { border-style: inset; }

/* Screenshots Grid & Lightbox */
.shots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shot-card {
    border: 1px solid #999999;
    background: #f5f5f5;
    padding: 5px;
    cursor: pointer;
}

.shot-card:hover {
    border-color: #003399;
    background: #eef4fb;
}

.shot-card img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
    border: 1px solid #808080;
}

.shot-cap {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #003399;
    text-align: center;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-dialog {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.55);
    max-width: 860px;
    width: 100%;
}

.lightbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
}

.lightbox-body {
    padding: 8px;
    background: #000000;
    text-align: center;
}

.lightbox-body img {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
    display: block;
}

.lightbox-foot {
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #ffffcc;
    color: #000000;
    border: 1px solid #000000;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    display: none;
    z-index: 3000;
}

.toast.show { display: block; }

/* Bottom Promo Row & 1998 Footer */
.ms98-bottom-row {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 16px;
    align-items: center;
    font-size: 11.5px;
}

.ms98-freedom-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms98-freedom-box img {
    width: 58px;
    height: auto;
    border: 1px solid #999999;
    padding: 2px;
    background: #ffffff;
}

.ms98-footer {
    border-top: 1px solid #cccccc;
    margin-top: 18px;
    padding-top: 10px;
    font-size: 11px;
    color: #333333;
    line-height: 1.55;
}

.ms98-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.easter-banner {
    display: none;
    padding: 6px 10px;
    background: #000080;
    border: 2px outset #ffffff;
    color: #fde047;
    font-weight: 700;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 11.5px;
}

.easter-banner.show { display: flex; }

.star-drop {
    position: fixed;
    top: -20px;
    font-size: 18px;
    pointer-events: none;
    z-index: 9999;
    animation: starfall 2.2s linear forwards;
}

@keyframes starfall {
    to { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ============================================================================
   Live Browser Desktop Simulator (demo.html — Classic Win98 Interactive Mode)
   ============================================================================ */
.demo-viewport {
    position: relative;
    height: 580px;
    border-radius: var(--radius-sm);
    box-shadow: var(--bevel-in), var(--shadow-lg);
    overflow: hidden;
    background: #3a6ea5 url("assets/clouds-bg.jpg") center/cover no-repeat;
    user-select: none;
}

.desk-icons {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2;
}

.desk-icon {
    width: 78px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-size: 11px;
    background: transparent;
}

.desk-icon:hover, .desk-icon:focus-visible {
    background: rgba(0, 0, 128, 0.45);
    border: 1px dotted #ffffff;
}

.desk-glyph {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d4d0c8;
    color: #111111;
    border: 2px outset #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.desk-brand {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border: 2px outset #ffffff;
    pointer-events: none;
    z-index: 1;
}

.desk-brand img { width: 64px; height: 64px; display: block; margin: 0 auto 4px; }
.desk-brand span { font-size: 12px; font-weight: 700; color: #991b1b; }

.win95-win {
    position: absolute;
    background: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.45);
    color: #111111;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.win95-win.hidden { display: none; }

.win95-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    background: #808080;
    color: #d8d8d8;
    font-size: 12px;
    font-weight: 700;
    cursor: move;
}

.win95-win.active .win95-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
}

.win95-wbtns { display: flex; gap: 3px; }
.win95-wbtns button {
    width: 18px;
    height: 16px;
    padding: 0;
    border: 2px outset #ffffff;
    background: #c0c0c0;
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.win95-body { padding: 10px; font-size: 12px; overflow: auto; flex: 1; }
.win95-panel { background: #ffffff; border: 2px inset #ffffff; padding: 8px; }

.aqua-button {
    padding: 4px 10px;
    border: 2px outset #ffffff;
    background: #c0c0c0;
    color: #111111;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mines-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border: 2px inset #ffffff;
    margin-bottom: 8px;
    background: #c0c0c0;
}

.mines-led {
    background: #000000;
    color: #ef4444;
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: 700;
    padding: 2px 6px;
    border: 1px inset #ffffff;
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(9, 24px);
    gap: 1px;
    background: #808080;
    border: 2px inset #ffffff;
    width: fit-content;
    margin: 0 auto;
}

.mines-cell {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px outset #ffffff;
    background: #c0c0c0;
    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mines-cell.open { border: 1px solid #999999; background: #d8d8d8; cursor: default; }
.mines-cell.mine { background: #dc2626; color: #ffffff; }

.term-sim {
    background: #050a12;
    color: #86efac;
    font-family: "Courier New", monospace;
    font-size: 11.5px;
    padding: 8px;
    height: 215px;
    overflow-y: auto;
    white-space: pre-wrap;
    border: 2px inset #ffffff;
}

.term-input-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.term-input-row input {
    flex: 1;
    padding: 4px 6px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    border: 2px inset #ffffff;
}

.win95-startmenu {
    position: absolute;
    left: 2px;
    bottom: 34px;
    width: 245px;
    display: none;
    background: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.win95-startmenu.open { display: flex; }

.start-sidebar {
    width: 28px;
    background: linear-gradient(180deg, #0b245b 0%, #1c57a8 100%);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.start-sidebar span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.start-items { flex: 1; padding: 4px; display: flex; flex-direction: column; gap: 2px; }
.start-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 12px;
    color: #111111;
    cursor: pointer;
    text-decoration: none;
}

.start-item:hover { background: #000080; color: #ffffff; text-decoration: none; }
.start-sep { height: 1px; background: #808080; border-bottom: 1px solid #ffffff; margin: 3px 0; }

.win95-taskbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    z-index: 35;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    height: 24px;
    border: 2px outset #ffffff;
    background: #c0c0c0;
    color: #111111;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.start-btn.pressed { border: 2px inset #ffffff; }
.taskbar-tasks { flex: 1; display: flex; gap: 4px; overflow-x: auto; }

.taskbar-item {
    padding: 2px 8px;
    height: 24px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 2px outset #ffffff;
    background: #c0c0c0;
    color: #111111;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.taskbar-item.active { border: 2px inset #ffffff; background: #d8d8d8; font-weight: 700; }

.taskbar-tray {
    padding: 2px 8px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px inset #ffffff;
    font-size: 11px;
    font-weight: 700;
    color: #111111;
}

/* ============================================================================
   Responsive Breakpoints
   ============================================================================ */
@media (max-width: 768px) {
    .ms98-mast-clouds { width: 44px; }
    .ms98-mast-blue { width: auto; min-width: 132px; padding: 6px 10px; }
    .ms98-mast-domain { font-size: 14px; }
    .ms98-mast-right { padding: 6px 10px; gap: 6px; }
    .ms98-mast-right img { width: 24px; height: 24px; }
    .ms98-wordmark { font-size: 16px; }
    .ms98-subnav-links a { padding: 3px 6px; }
    .mobile-menu-btn { display: inline-flex; }

    .ms98-shell {
        display: block;
    }

    .ms98-sidebar {
        display: none;
        border-right: 0;
        border-bottom: 2px solid #cc0000;
        background: #f9fafc;
        padding: 12px 14px;
    }

    .ms98-sidebar.open {
        display: block;
    }

    .ms98-main {
        padding: 12px 14px 20px;
    }

    .ms98-spotlight,
    .ms98-news-grid,
    .ms98-bottom-row,
    .grid-2,
    .grid-3,
    .shots-grid,
    .wizard-grid {
        grid-template-columns: 1fr;
    }

    .demo-viewport { height: 500px; }
}

@media (max-width: 520px) {
    .ms98-mast-clouds { display: none; }
    .ms98-topbar-inner { padding: 4px 10px; gap: 4px; }
    .ms98-topbar-links { margin-left: 0; gap: 4px; }
    .ms98-topbar-links a { font-size: 10.5px; }
    .ms98-mast-blue { min-width: 118px; padding: 6px 8px; }
    .ms98-mast-domain { font-size: 13px; }
    .ms98-wordmark { font-size: 15px; }
    .win95-win {
        left: 8px !important;
        max-width: calc(100% - 16px) !important;
    }
}
