/* ============================================================================
   KaguraLinux — 1990s Windows & Y2K Web 1.0 Portal Stylesheet
   Maintained by Hamza Baybars Boyraz (Hazeyn0644)
   Themes: y2k (Aqua Blue), win95 (Classic Teal), cyber (1999 Terminal Dark)
   ============================================================================ */

:root,
html[data-theme="y2k"] {
    --body-bg:
        radial-gradient(ellipse at 18% 18%, rgba(255,255,255,.62), transparent 34%),
        radial-gradient(ellipse at 82% 72%, rgba(40,105,168,.38), transparent 38%),
        linear-gradient(145deg, #aac8e1 0%, #739fc5 46%, #4f80ad 100%);
    --win-bg: #dce7f0;
    --win-border: #426483;
    --title-grad: linear-gradient(90deg, #174a91 0%, #2f77c8 52%, #75b7ef 100%);
    --title-shadow: #163b6c;
    --bar-bg: #e8eff5;
    --toolbar-bg: #d6e2ec;
    --subnav-bg: #f3f6f8;
    --bar-border: #a5b8c9;
    --content-bg: linear-gradient(180deg, #ecf3f8 0%, #d4e0ea 100%);
    --card-bg: #f8fbfd;
    --card-border: #8fa6bb;
    --text: #1f2c3b;
    --muted: #52687d;
    --link: #1c4e80;
    --link-hover: #0e7bb2;
    --btn-bg: linear-gradient(#fff 0%, #edf5fa 48%, #cbd9e5 100%);
    --btn-border: #96aabd;
    --btn-text: #264b6d;
    --btn-active-bg: linear-gradient(#1f5ca8 0%, #377fd1 100%);
    --hero-bg: linear-gradient(135deg, #0d233a 0%, #153b62 56%, #1f5c94 100%);
    --hero-accent: #74c7ed;
    --term-bg: #08131e;
    --term-border: #3d6f9e;
    --term-text: #8ce9ff;
    --table-head: #dfe9f2;
    --table-hover: #eef5fb;
}

html[data-theme="win95"] {
    --body-bg: #008080;
    --win-bg: #c0c0c0;
    --win-border: #000000;
    --title-grad: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    --title-shadow: #000040;
    --bar-bg: #c0c0c0;
    --toolbar-bg: #c0c0c0;
    --subnav-bg: #d4d0c8;
    --bar-border: #808080;
    --content-bg: #c0c0c0;
    --card-bg: #dfdfdf;
    --card-border: #808080;
    --text: #111111;
    --muted: #3f3f3f;
    --link: #000080;
    --link-hover: #800080;
    --btn-bg: #c0c0c0;
    --btn-border: #808080;
    --btn-text: #000000;
    --btn-active-bg: #000080;
    --hero-bg: linear-gradient(135deg, #000048 0%, #000080 65%, #1060a0 100%);
    --hero-accent: #ffd700;
    --term-bg: #000000;
    --term-border: #808080;
    --term-text: #c0c0c0;
    --table-head: #b5b5b5;
    --table-hover: #d8e4f8;
}

html[data-theme="cyber"] {
    --body-bg:
        radial-gradient(circle at 20% 10%, rgba(0,255,153,.14), transparent 36%),
        radial-gradient(circle at 80% 90%, rgba(0,180,255,.16), transparent 40%),
        #070b12;
    --win-bg: #0e1623;
    --win-border: #254060;
    --title-grad: linear-gradient(90deg, #0b223f 0%, #0f4c75 60%, #14868c 100%);
    --title-shadow: #020810;
    --bar-bg: #111c2c;
    --toolbar-bg: #0f1927;
    --subnav-bg: #142234;
    --bar-border: #27415f;
    --content-bg: linear-gradient(180deg, #0d1623 0%, #09101b 100%);
    --card-bg: #111d2d;
    --card-border: #2b4b6f;
    --text: #dce9f7;
    --muted: #8ea9c4;
    --link: #5fe3ff;
    --link-hover: #8effb8;
    --btn-bg: linear-gradient(#1f3149 0%, #132133 100%);
    --btn-border: #39628f;
    --btn-text: #d9f0ff;
    --btn-active-bg: linear-gradient(#0c6b75 0%, #1597a3 100%);
    --hero-bg: linear-gradient(135deg, #050a14 0%, #0b1c30 58%, #0a3444 100%);
    --hero-accent: #4dffb8;
    --term-bg: #03070d;
    --term-border: #29867d;
    --term-text: #4dffb8;
    --table-head: #152538;
    --table-hover: #192d44;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    padding: 18px 12px;
    font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
    color: var(--text);
    background: var(--body-bg);
    transition: background .25s ease, color .2s ease;
}

html[data-lang="tr"] [data-en] { display: none !important; }
html[data-lang="en"] [data-tr] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px dotted var(--link);
    outline-offset: 2px;
}
code, pre, .mono { font-family: "Courier New", Courier, monospace; }

/* Optional CRT scanlines overlay (strictly OFF unless data-crt="on") */
html[data-crt="on"] body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.14) 0px,
        rgba(0,0,0,0.14) 1px,
        transparent 1px,
        transparent 3px
    );
}

.browser-window {
    max-width: 1060px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--win-border);
    background: var(--win-bg);
    box-shadow: 0 18px 45px rgba(10,24,42,.42), 0 2px 6px rgba(0,0,0,.22);
}

html[data-theme="win95"] .browser-window {
    border: 2px outset #ffffff;
    box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}

/* IE 5.5 / Y2K Window Chrome */
.titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--title-grad);
    text-shadow: 1px 1px 1px var(--title-shadow);
}
.title-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.7);
    background: linear-gradient(135deg, #cffafe, #3b82f6);
    color: #1e3a8a;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}
.win-controls { display: flex; gap: 4px; flex-shrink: 0; }
.win-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 20px;
    border: 1px solid rgba(255,255,255,.75);
    background: #d7e4f0;
    color: #19375a;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.menubar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    font-size: 11px;
    background: var(--bar-bg);
    border-bottom: 1px solid var(--bar-border);
}
.menubar-items { display: flex; flex-wrap: wrap; gap: 12px; }
.menubar-items a { color: var(--text); }
.menubar-items a:hover { text-decoration: underline; color: var(--link); }
.menubar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.menubar-ver { color: var(--muted); font-size: 11px; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--toolbar-bg);
    border-bottom: 1px solid var(--bar-border);
}
.nav-arrows { display: flex; gap: 4px; }
.aqua-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--btn-border);
    border-radius: 3px;
    background: var(--btn-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 1px 2px rgba(0,0,0,.22);
    color: var(--btn-text);
    cursor: pointer;
    font-family: inherit;
    transition: filter .15s ease;
}
html[data-theme="win95"] .aqua-button {
    border-radius: 0;
    border: 2px outset #ffffff;
    box-shadow: none;
}
.aqua-button:hover { filter: brightness(1.06); }
.aqua-button.active {
    background: var(--btn-active-bg);
    border-color: #16447d;
    color: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
html[data-theme="win95"] .aqua-button.active {
    border: 2px inset #ffffff;
    background: #000080;
    color: #fff;
}
.arrow-btn { width: 28px; height: 26px; font-size: 13px; }
.tool-mini { padding: 4px 8px; height: 26px; font-size: 11px; font-weight: 700; }

.address-label { font-size: 11px; color: var(--muted); }
.address-form {
    flex: 1;
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.address-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    height: 26px;
    font-size: 12px;
    background: #fff;
    color: #111;
    border: 1px solid #839aaf;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.14);
}
.address-select {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    color: #111;
    cursor: pointer;
}
.go-btn { padding: 0 10px; height: 26px; font-size: 11px; font-weight: 700; }

.toolbar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.theme-switch, .lang-switch { display: flex; gap: 3px; }
.lang-btn, .theme-btn { padding: 4px 7px; height: 26px; font-size: 11px; font-weight: 700; }

.subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--subnav-bg);
    border-bottom: 1px solid var(--bar-border);
}
.brand-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--link); }
.brand-link img { width: 22px; height: 22px; }
.brand-sub { font-size: 11px; font-weight: 400; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 700; }
.nav-links a {
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid transparent;
    color: var(--link);
}
.nav-links a:hover { background: rgba(45,115,190,.12); color: var(--link-hover); }
.nav-links a.current {
    background: var(--btn-active-bg);
    color: #fff;
    border-color: #16447d;
}
.nav-links a.nav-demo {
    background: linear-gradient(180deg, #e7f6ea 0%, #c6e8ce 100%);
    border-color: #6ea97b;
    color: #185126;
}
.nav-links a.nav-demo.current {
    background: linear-gradient(180deg, #1f7b37 0%, #155c27 100%);
    color: #fff;
}

.content-body {
    padding: 16px;
    background: var(--content-bg);
}

/* Marquee / Notice Strip */
.ticker-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    margin-bottom: 14px;
    font-size: 11px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
}
.ticker-tag {
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #b91c1c;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #496e92;
    background: var(--hero-bg);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
    color: #e6f4ff;
}
.pixel-grid {
    position: absolute;
    inset: 0;
    opacity: .24;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 14px 14px;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .95fr;
    gap: 22px;
    align-items: center;
    padding: 28px;
}
.hero-kicker { margin: 0 0 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8fc8ee; }
.hero-greet { margin: 0 0 8px; font-size: 12px; color: #b8d5e9; }
.hero h1 { margin: 0; font-size: 42px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.hero h1 span { color: var(--hero-accent); }
.hero-desc { margin: 12px 0 0; max-width: 560px; font-size: 14px; line-height: 1.6; color: #cfe4f5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta-primary { padding: 9px 16px; font-size: 12px; font-weight: 700; }
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #d9eeff;
    border: 1px solid #6c98c2;
    border-radius: 3px;
    background: rgba(255,255,255,.1);
}
.cta-secondary:hover { background: rgba(255,255,255,.2); }

/* Live Typewriter Terminal in Hero */
.boot-term {
    background: var(--term-bg);
    border: 1px solid var(--term-border);
    box-shadow: 0 10px 26px rgba(0,0,0,.45);
    border-radius: 3px;
    overflow: hidden;
    font-family: "Courier New", Courier, monospace;
}
.boot-term-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #1b4b84, #2b6db8);
}
.boot-term-body {
    padding: 12px;
    min-height: 196px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--term-text);
    white-space: pre-wrap;
}
.boot-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: var(--term-accent, #74c7ed);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Page Header Banner (Subpages) */
.page-banner {
    padding: 18px 20px;
    background: var(--hero-bg);
    border: 1px solid #496e92;
    color: #eef7ff;
    margin-bottom: 16px;
}
.page-banner h1 { margin: 0 0 6px; font-size: 26px; }
.page-banner p { margin: 0; font-size: 13px; color: #c8def0; max-width: 720px; line-height: 1.5; }

/* Stats Strip & LED Counters */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.stat-card {
    padding: 11px 13px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}
.led-counter {
    display: inline-block;
    padding: 4px 10px;
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .16em;
    color: #9bf354;
    background: #10171f;
    border: 1px solid #4a5a68;
    text-shadow: 0 0 6px rgba(155,243,84,.45);
}
.led-counter.amber { color: #ffcc5c; text-shadow: 0 0 6px rgba(255,204,92,.45); }
.stat-note { margin-top: 5px; font-size: 11px; color: var(--muted); }

/* Cards & Panels */
.section { margin-top: 18px; }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bar-border);
}
.section-head h2 { margin: 0; font-size: 18px; color: var(--link); }
.section-head p { margin: 0; font-size: 12px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

.card {
    min-width: 0;
    overflow-wrap: break-word;
    padding: 15px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
html[data-theme="win95"] .card { border: 2px outset #fff; box-shadow: none; }
.card-tag {
    display: inline-block;
    padding: 2px 7px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #1c5da6;
    border-radius: 2px;
}
.card-tag.green { background: #1e733b; }
.card-tag.amber { background: #b45309; }
.card h3 { margin: 0 0 6px; font-size: 15px; color: var(--link); }
.card p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.card ul { margin: 6px 0 10px; padding-left: 18px; font-size: 12px; line-height: 1.6; }

/* Release Status Pills & Disabled Links (Gate Protection) */
.status-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}
.status-ready { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.status-building { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.btn-disabled {
    opacity: .58;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(.5);
}

/* RAM Bar Visualization */
.ram-bar {
    height: 14px;
    background: #cbd5e1;
    border: 1px solid #64748b;
    overflow: hidden;
    margin: 6px 0;
}
.ram-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #2563eb);
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    padding-left: 6px;
    font-weight: 700;
}

/* Hardware & Profile Recommender Wizard */
.wizard-box {
    padding: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}
.wizard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}
.wizard-opts { display: flex; flex-direction: column; gap: 8px; }
.wizard-group label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.wizard-group select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--card-border);
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 12px;
}
.wizard-result {
    padding: 14px;
    border: 1px dashed #3b82f6;
    background: rgba(59,130,246,.07);
}
.wizard-result h4 { margin: 0 0 6px; color: var(--link); font-size: 15px; }

/* Code / Copy Box */
.copy-box {
    position: relative;
    margin-top: 8px;
    padding: 32px 12px 12px 12px;
    max-width: 100%;
    font-family: "Courier New", Courier, monospace;
    font-size: 11.5px;
    line-height: 1.5;
    background: #0d1722;
    color: #c5e8ff;
    border: 1px solid #355270;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
}

/* Screenshots Grid & Lightbox */
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shot-card {
    padding: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
}
.shot-card:hover { transform: translateY(-2px); border-color: var(--link); }
.shot-card img { width: 100%; height: 220px; object-fit: cover; display: block; border: 1px solid #6c8398; }
.shot-cap { margin-top: 6px; font-size: 11.5px; color: var(--muted); font-weight: 700; }

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,18,30,.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9990;
}
.lightbox-overlay.open { display: flex; }
.lightbox-dialog {
    max-width: 920px;
    width: 100%;
    background: var(--win-bg);
    border: 2px solid #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    overflow: hidden;
}
.lightbox-body { padding: 12px; text-align: center; background: #0d1520; }
.lightbox-body img { max-width: 100%; max-height: 70vh; display: inline-block; }
.lightbox-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    font-size: 12px;
    background: var(--bar-bg);
}

/* Release Timeline */
.tl-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.tl-item {
    padding: 14px;
    border-left: 4px solid #2563eb;
    border-top: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: var(--card-bg);
}
.tl-item[data-kind="netinstall"] { border-left-color: #16a34a; }
.tl-item[data-kind="roadmap"] { border-left-color: #d97706; border-style: dashed; }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tl-head h3 { margin: 0; font-size: 15px; color: var(--link); }
.tl-meta { font-size: 11px; color: var(--muted); }
.tl-item ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.55; }

/* BBS Forum Table */
.bbs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}
.bbs-table th, .bbs-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--bar-border);
    text-align: left;
}
.bbs-table th { background: var(--table-head); color: var(--link); font-size: 11px; text-transform: uppercase; }
.bbs-table tr:hover td { background: var(--table-hover); }

/* Scroll Reveal (respects prefers-reduced-motion) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .boot-cursor { animation: none; }
}

/* Statusbar & Footer */
.statusbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    font-size: 11px;
    background: var(--bar-bg);
    border-top: 1px solid var(--bar-border);
    color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a:hover { text-decoration: underline; color: var(--link); }

/* Toast & 1999 Easter Egg */
.toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    padding: 8px 14px;
    background: #102a45;
    color: #fff;
    border: 1px solid #68b5ff;
    font-size: 12px;
    font-weight: 700;
    z-index: 9995;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.toast.show { display: block; }
.easter-banner {
    display: none;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #991b1b, #b91c1c, #ea580c);
    color: #fff;
    border: 2px solid #fde047;
    font-size: 12px;
    font-weight: 700;
}
.easter-banner.show { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.star-drop {
    position: fixed;
    top: -30px;
    font-size: 20px;
    pointer-events: none;
    z-index: 9996;
    animation: stardrop 2.2s linear forwards;
}
@keyframes stardrop {
    to { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ============================================================================
   Live Browser Desktop Simulator (demo.html)
   ============================================================================ */
.demo-viewport {
    position: relative;
    height: 560px;
    border: 2px inset #ffffff;
    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: 76px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,.9);
    font-size: 11px;
    background: transparent;
}
.desk-icon:hover, .desk-icon:focus-visible {
    background: rgba(0, 0, 128, .45);
    border: 1px dotted #fff;
}
.desk-glyph {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d4d0c8;
    color: #111;
    border: 2px outset #fff;
    font-weight: 700;
    font-size: 14px;
}

.desk-brand {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 8px;
    text-align: center;
    background: rgba(255,255,255,.78);
    border: 2px outset #fff;
    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,.45);
    color: #111;
    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: #fff;
}
.win95-wbtns { display: flex; gap: 3px; }
.win95-wbtns button {
    width: 18px;
    height: 16px;
    padding: 0;
    border: 2px outset #fff;
    background: #c0c0c0;
    color: #000;
    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: #fff;
    border: 2px inset #fff;
    padding: 8px;
}

.mines-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border: 2px inset #fff;
    margin-bottom: 8px;
    background: #c0c0c0;
}
.mines-led {
    background: #000;
    color: #ef4444;
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: 700;
    padding: 2px 6px;
    border: 1px inset #fff;
}
.mines-grid {
    display: grid;
    grid-template-columns: repeat(9, 24px);
    gap: 1px;
    background: #808080;
    border: 2px inset #fff;
    width: fit-content;
    margin: 0 auto;
}
.mines-cell {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px outset #fff;
    background: #c0c0c0;
    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.mines-cell.open {
    border: 1px solid #999;
    background: #d8d8d8;
    cursor: default;
}
.mines-cell.mine { background: #dc2626; color: #fff; }

.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 #fff;
}
.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 #fff;
}

.win95-startmenu {
    position: absolute;
    left: 2px;
    bottom: 34px;
    width: 245px;
    display: none;
    background: #c0c0c0;
    border: 2px outset #fff;
    box-shadow: 3px 3px 10px rgba(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: #fff;
    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;
    cursor: pointer;
}
.start-item:hover { background: #000080; color: #fff; }
.start-sep { height: 1px; background: #808080; border-bottom: 1px solid #fff; 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 #fff;
    background: #c0c0c0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.start-btn.pressed { border: 2px inset #fff; }
.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 #fff;
    background: #c0c0c0;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}
.taskbar-item.active { border: 2px inset #fff; background: #d8d8d8; font-weight: 700; }
.taskbar-tray {
    padding: 2px 8px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px inset #fff;
    font-size: 11px;
    font-weight: 700;
    color: #111;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .hero-inner, .grid-4, .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .wizard-grid, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    body { padding: 8px 6px; }
    .hero-inner, .grid-2, .grid-4, .stats-strip, .shots-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .menubar-right { display: none; }
    .demo-viewport { height: 500px; }
}
