/* ══════════════════════════════════════════════════════════
   MACINTOSH SYSTEM 1 PORTFOLIO — STYLESHEET
   Pixel-perfect recreation of the 1984 Macintosh UI
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.cdnfonts.com/css/chicagoflf');

/* ─── CUSTOM PROPERTIES ─── */
:root {
    /* Pattern softened to #A0A0A0 for much better eye comfort */
    --bg-pattern: url("data:image/svg+xml,%3Csvg width='2' height='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23A0A0A0'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23A0A0A0'/%3E%3C/svg%3E");
    --win-bg: #ffffff;
    --win-border: #000000;
    --text: #000000;
    --menu-bg: #ffffff;
    --menu-highlight: #000000;
    --menu-highlight-text: #ffffff;
    --input-bg: #ffffff;
    --font-main: 'ChicagoFLF', 'Geneva', 'Helvetica', monospace;
    --shadow: 2px 2px 0px #000;
}

/* ─── RESET ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--text);
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    image-rendering: pixelated;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpolygon points='0,0 0,14 4,10 7,16 9,15 6,9 11,9' fill='black' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 0 0, default;
}

::selection {
    background: #000;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   BOOT SCREEN — Authentic beige Mac startup
   ══════════════════════════════════════════════════════════ */

#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #d5cec3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.5s ease;
}

#boot-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-mac-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    animation: boot-bounce 0.4s ease-out;
}

@keyframes boot-bounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.boot-text {
    font-family: var(--font-main);
    font-size: 14px;
    color: #000;
}

.boot-progress-track {
    width: 200px;
    height: 12px;
    border: 2px solid #000;
    background: #fff;
    overflow: hidden;
}

.boot-progress-bar {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        90deg,
        #000 0px, #000 4px,
        #fff 4px, #fff 6px
    );
    transition: width 0.1s steps(10);
}

.boot-status {
    font-family: var(--font-main);
    font-size: 10px;
    color: #444;
    min-height: 14px;
}

/* ══════════════════════════════════════════════════════════
   MENU BAR — Authentic 22px height
   ══════════════════════════════════════════════════════════ */

#menu-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 20px;
    background: var(--menu-bg);
    border-bottom: 2px solid var(--win-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    z-index: 10000;
    user-select: none;
}

.menu-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-right {
    font-size: 11px;
    padding-right: 4px;
}

.menu-item {
    position: relative;
    padding: 1px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.menu-item:hover,
.menu-item.active {
    background: var(--menu-highlight);
    color: var(--menu-highlight-text);
}

.menu-apple { padding: 1px 8px; }

.menu-apple:hover svg rect,
.menu-apple.active svg rect { fill: #fff; }
.menu-apple:hover svg text,
.menu-apple.active svg text { fill: #fff; }

.apple-logo { width: 14px; height: 14px; }

/* Dropdowns */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--menu-bg);
    border: 2px solid var(--win-border);
    box-shadow: 2px 2px 0px #000;
    z-index: 10001;
    padding: 2px 0;
}

.menu-item.active .dropdown { display: block; }

.dropdown-item {
    padding: 3px 16px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    color: #000;
}

.dropdown-item:hover {
    background: var(--menu-highlight);
    color: var(--menu-highlight-text);
}

.dropdown-item.disabled { color: #999; cursor: default; }
.dropdown-item.disabled:hover { background: none; color: #999; }

.dropdown-divider {
    height: 1px;
    background: repeating-linear-gradient(
        90deg, #000 0px, #000 2px, transparent 2px, transparent 4px
    );
    margin: 2px 8px;
}

/* ══════════════════════════════════════════════════════════
   DESKTOP — Authentic Mac checkerboard dither
   ══════════════════════════════════════════════════════════ */

#desktop {
    position: fixed;
    top: 20px; left: 0; right: 0; bottom: 0;
    background-color: #fff;
    background-image: var(--bg-pattern);
    background-size: 2px 2px;
    overflow: hidden;
}

/* CRT vignette — very subtle */
#desktop::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 65%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

/* Scanlines — optional, toggled via menu */
#scanlines {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

#scanlines.active { display: block; }

/* ══════════════════════════════════════════════════════════
   DESKTOP ICONS
   ══════════════════════════════════════════════════════════ */

.desktop-icon {
    position: absolute;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 4px;
    user-select: none;
    z-index: 1;
}

.desktop-icon.selected .icon-image {
    filter: invert(1);
}

.desktop-icon:hover .icon-label,
.desktop-icon.selected .icon-label {
    background: #000;
    color: #fff;
}

.icon-image {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.icon-label {
    font-size: 10px;
    text-align: center;
    padding: 1px 3px;
    line-height: 1.2;
    pointer-events: none;
    max-width: 76px;
    word-wrap: break-word;
}

/* ══════════════════════════════════════════════════════════
   WINDOWS — Authentic Mac System 1 chrome
   ══════════════════════════════════════════════════════════ */

.window {
    position: absolute;
    background: var(--win-bg);
    border: 1px solid var(--win-border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    min-height: 80px;
    z-index: 100;
    animation: window-open 0.15s ease-out;
}

.window.active {
    z-index: 1000;
    box-shadow: 3px 3px 0px #000;
}

.window.dialog { z-index: 5000; }

/* Title Bar — 20px like the real Mac */
.window-title-bar {
    height: 20px;
    background: var(--win-bg);
    border-bottom: 1px solid var(--win-border);
    display: flex;
    align-items: center;
    padding: 0 3px;
    cursor: grab;
    user-select: none;
    gap: 3px;
    flex-shrink: 0;
}

.window-title-bar:active { cursor: grabbing; }

/* Close box — always visible with inner border on active */
.window-close {
    width: 12px;
    height: 10px;
    border: 1px solid var(--win-border);
    background: var(--win-bg);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

/* Show X inside close box on hover */
.window-close:hover::before,
.window-close:hover::after {
    content: '';
    position: absolute;
    background: #000;
}
.window-close:hover::before {
    width: 6px; height: 1px;
    top: 4px; left: 2px;
}
.window-close:hover::after {
    width: 1px; height: 6px;
    top: 2px; left: 5px;
}


/* Title bar stripes — 6 horizontal lines, Mac authentic */
.window-title-stripes-left,
.window-title-stripes-right {
    flex: 1;
    height: 12px;
    background: repeating-linear-gradient(
        0deg,
        #000 0px, #000 1px,
        transparent 1px, transparent 3px
    );
    background-size: 100% 3px;
    background-position: center;
}

/* Only show stripes on the active window */
.window:not(.active) .window-title-stripes-left,
.window:not(.active) .window-title-stripes-right {
    background: none;
}

/* Also hide close inner mark when inactive */
.window:not(.active) .window-close { border-color: #888; }

.window-title-text {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    padding: 0 6px;
    flex-shrink: 0;
}

/* Finder info bar */
.window-info-bar {
    height: 18px;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 10px;
    background: #fff;
    flex-shrink: 0;
}

/* Window content */
.window-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background: var(--win-bg);
}

/* Scrollbar — authentic Mac style */
.window-content::-webkit-scrollbar { width: 15px; }

.window-content::-webkit-scrollbar-track {
    background: repeating-linear-gradient(
        0deg,
        #fff 0px, #fff 1px,
        #888 1px, #888 2px
    );
    border-left: 1px solid #000;
}

.window-content::-webkit-scrollbar-thumb {
    background: #fff;
    border: 1px solid #000;
    min-height: 24px;
}

.window-content::-webkit-scrollbar-thumb:hover { background: #e8e8e8; }

.window-content::-webkit-scrollbar-button:start:decrement,
.window-content::-webkit-scrollbar-button:end:increment {
    height: 15px;
    background: #fff;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
    display: block;
}

/* Resize handle */
.window-resize-handle {
    position: absolute;
    bottom: 0; right: 0;
    width: 15px; height: 15px;
    cursor: nwse-resize;
    background:
        linear-gradient(135deg, transparent 50%, #000 50%, #000 55%, transparent 55%),
        linear-gradient(135deg, transparent 62%, #000 62%, #000 67%, transparent 67%),
        linear-gradient(135deg, transparent 74%, #000 74%, #000 79%, transparent 79%);
}

/* Vertical scrollbar decoration */
.window-scroll-v {
    position: absolute;
    top: 20px; right: 0; bottom: 15px;
    width: 15px;
    background: repeating-linear-gradient(
        0deg,
        #fff 0px, #fff 1px,
        #e0e0e0 1px, #e0e0e0 2px
    );
    border-left: 1px solid #000;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   ABOUT ME SECTION
   ══════════════════════════════════════════════════════════ */

.about-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-avatar { flex-shrink: 0; }

.pixel-avatar {
    width: 96px;
    height: 96px;
    border: 2px solid #000;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    overflow: hidden;
}

.pixel-avatar .px { background: #000; }

.pixel-avatar .px.eye {
    animation: avatar-blink 4s steps(1) infinite;
}

@keyframes avatar-blink {
    0%, 92% { background: #000; }
    93% { background: transparent; }
    96% { background: #000; }
}

.about-text { flex: 1; }

.about-text h1 {
    font-size: 16px;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.about-role {
    font-size: 11px;
    font-style: italic;
    margin-bottom: 6px;
}

.about-divider {
    height: 2px;
    background: repeating-linear-gradient(
        90deg, #000 0px, #000 4px, transparent 4px, transparent 6px
    );
    margin: 6px 0;
}

.about-text p {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.about-stats {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #000;
}

.stat { text-align: center; flex: 1; }
.stat-num { font-size: 18px; font-weight: bold; line-height: 1; }
.stat-label { font-size: 9px; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ══════════════════════════════════════════════════════════
   FINDER GRID (PROJECTS)
   ══════════════════════════════════════════════════════════ */

.finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 4px;
    padding: 12px !important;
    align-content: start;
}

.finder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    cursor: pointer;
    user-select: none;
}

.finder-item:hover .finder-label,
.finder-item.selected .finder-label {
    background: #000;
    color: #fff;
}

.finder-item.selected .finder-icon {
    filter: invert(1);
}

.finder-icon { pointer-events: none; }

.finder-label {
    font-size: 10px;
    text-align: center;
    padding: 1px 3px;
    line-height: 1.2;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   PROJECT DETAIL
   ══════════════════════════════════════════════════════════ */

.project-detail-content { padding: 4px; }

.project-detail-content h2 {
    font-size: 14px;
    margin-bottom: 6px;
    border-bottom: 2px solid #000;
    padding-bottom: 3px;
}

.project-detail-content .project-meta {
    font-size: 10px;
    margin-bottom: 10px;
    padding: 4px 8px;
    border: 1px solid #000;
    background: #f8f8f8;
}

.project-detail-content .project-meta span {
    display: inline-block;
    margin-right: 10px;
}

.project-detail-content p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.project-detail-content .project-tech { margin-top: 10px; }

.project-detail-content .project-tech span {
    display: inline-block;
    border: 1px solid #000;
    padding: 2px 6px;
    margin: 2px;
    font-size: 10px;
}

.project-links {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

.project-link-btn {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 10px;
    padding: 3px 14px;
    border: 2px solid #000;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
    text-decoration: none;
    color: #000;
}

.project-link-btn:hover {
    background: #000;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   SKILLS PANEL
   ══════════════════════════════════════════════════════════ */

.skills-panel { padding: 4px; }

.skills-section { margin-bottom: 10px; }
.skills-section h3 { font-size: 12px; margin-bottom: 6px; }

.skill-bar-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-name {
    width: 80px;
    font-size: 10px;
    text-align: right;
    flex-shrink: 0;
}

.skill-bar {
    flex: 1;
    height: 10px;
    border: 1px solid #000;
    background: #fff;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: repeating-linear-gradient(
        90deg, #000 0px, #000 2px, #fff 2px, #fff 4px
    );
    transition: width 1s ease-out;
}

.skills-panel .skill-fill { width: 0 !important; }

.skills-panel.animated .skill-fill {
    width: var(--target-width) !important;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skills-divider {
    height: 1px;
    background: repeating-linear-gradient(
        90deg, #000 0px, #000 2px, transparent 2px, transparent 4px
    );
    margin: 10px 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.skill-tag {
    display: inline-block;
    border: 1px solid #000;
    padding: 2px 8px;
    font-size: 10px;
    background: #fff;
    cursor: default;
}

.skill-tag:hover {
    background: #000;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   RESUME DOC
   ══════════════════════════════════════════════════════════ */

.resume-doc {
    padding: 8px;
    max-width: 480px;
}

.resume-header-doc {
    text-align: center;
    margin-bottom: 10px;
}

.resume-header-doc h2 {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.resume-header-doc p {
    font-size: 10px;
    line-height: 1.4;
}

.resume-divider-thick { height: 2px; background: #000; margin: 6px 0; }
.resume-divider-thin { height: 1px; background: #000; margin: 4px 0 8px 0; }

.resume-doc h3 {
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 14px;
}

.resume-entry { margin-bottom: 12px; }

.resume-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    margin-bottom: 2px;
}

.resume-entry-head span { font-size: 10px; font-style: italic; }
.resume-entry-company { font-size: 10px; font-style: italic; margin-bottom: 3px; }
.resume-doc ul { margin-left: 14px; font-size: 10px; line-height: 1.5; }
.resume-doc li { margin-bottom: 2px; }

/* ══════════════════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════════════════ */

.contact-form { padding: 4px; }
.form-group { margin-bottom: 8px; }

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

.mac-input {
    width: 100%;
    height: 20px;
    border: 1px solid #000;
    background: var(--input-bg);
    font-family: var(--font-main);
    font-size: 11px;
    padding: 2px 4px;
    outline: none;
    box-shadow: inset 1px 1px 0 #888;
}

.mac-input:focus {
    box-shadow: inset 1px 1px 0 #888, 0 0 0 1px #000;
}

.mac-textarea {
    width: 100%;
    border: 1px solid #000;
    background: var(--input-bg);
    font-family: var(--font-main);
    font-size: 11px;
    padding: 3px 4px;
    outline: none;
    resize: vertical;
    box-shadow: inset 1px 1px 0 #888;
    min-height: 60px;
}

.mac-textarea:focus {
    box-shadow: inset 1px 1px 0 #888, 0 0 0 1px #000;
}

.form-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 10px;
}

.form-status {
    font-size: 10px;
    padding: 3px 0;
    min-height: 14px;
}

.mac-button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS — Authentic Mac rounded rectangle
   ══════════════════════════════════════════════════════════ */

.mac-button {
    font-family: var(--font-main);
    font-size: 11px;
    padding: 3px 16px;
    border: 1px solid #000;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 0 #000;
    position: relative;
    min-width: 64px;
    text-align: center;
}

.mac-button:hover { background: #000; color: #fff; }

.mac-button:active {
    background: #000;
    color: #fff;
    box-shadow: none;
}

/* Primary button — double-bordered like real Mac */
.mac-button.primary,
.dialog-ok {
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #000, 0 2px 0 #000;
    font-weight: bold;
}

/* ══════════════════════════════════════════════════════════
   NOTEPAD
   ══════════════════════════════════════════════════════════ */

.notepad-body { height: 100%; }

.notepad-textarea {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: #fff;
    font-family: 'Geneva', var(--font-main);
    font-size: 11px;
    line-height: 1.6;
    padding: 6px;
    resize: none;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 17px,
        #ddd 17px,
        #ddd 18px
    );
    background-size: 100% 18px;
    background-position: 0 16px;
}

/* ══════════════════════════════════════════════════════════
   DIALOG
   ══════════════════════════════════════════════════════════ */

.dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px !important;
}

.dialog-icon { margin-bottom: 10px; }

.dialog-text {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.dialog-ok { margin-top: 6px; }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS — Minimal to maintain retro feel
   ══════════════════════════════════════════════════════════ */

@keyframes window-open {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.window.closing {
    animation: window-close 0.12s ease-in forwards;
}

@keyframes window-close {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.4); opacity: 0; }
}

/* Icon double-click flash */
.desktop-icon.opening .icon-image {
    animation: icon-flash 0.3s steps(1);
}

@keyframes icon-flash {
    0% { filter: invert(1); }
    50% { filter: invert(0); }
    100% { filter: invert(1); }
}

/* Typing cursor for notepad */
.notepad-textarea:focus { caret-color: #000; }

/* Window shade (collapsed) */
.window.shaded .window-content,
.window.shaded .window-resize-handle,
.window.shaded .window-info-bar,
.window.shaded .window-scroll-v {
    display: none !important;
}

.window.shaded {
    height: auto !important;
    min-height: auto;
}

/* Skill bar animation */
@keyframes fill-bar {
    from { width: 0; }
}

/* ══════════════════════════════════════════════════════════
   CALCULATOR
   ══════════════════════════════════════════════════════════ */

.calc-display {
    height: 28px;
    border: 1px solid #000;
    background: #e8e8e8;
    font-family: var(--font-main);
    font-size: 16px;
    text-align: right;
    padding: 2px 6px;
    line-height: 22px;
    margin-bottom: 6px;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: inset 1px 1px 0 #888;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.calc-btn {
    font-family: var(--font-main);
    font-size: 12px;
    height: 28px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    box-shadow: 1px 1px 0 #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:hover { background: #e0e0e0; }

.calc-btn:active {
    background: #000;
    color: #fff;
    box-shadow: none;
    transform: translate(1px, 1px);
}

.calc-op { background: #d8d8d8; font-weight: bold; }
.calc-fn { background: #c8c8c8; }
.calc-zero { grid-column: span 2; }
.calc-eq { background: #a0a0a0; font-weight: bold; }

/* ══════════════════════════════════════════════════════════
   GAMES — SHARED
   ══════════════════════════════════════════════════════════ */

.game-info {
    font-family: var(--font-main);
    font-size: 10px;
    text-align: center;
    padding: 3px;
    border: 1px solid #000;
    background: #e8e8e8;
    width: 100%;
}

.game-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.game-hint {
    font-size: 9px;
    color: #666;
    font-family: var(--font-main);
}

/* ══════════════════════════════════════════════════════════
   MINESWEEPER
   ══════════════════════════════════════════════════════════ */

.mines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    border: 1px solid #000;
    background: #c0c0c0;
    margin-bottom: 4px;
}

.mines-counter {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    background: #e8e8e8;
    border: 1px inset #888;
    padding: 1px 4px;
    min-width: 32px;
    text-align: center;
    letter-spacing: 1px;
}

.mines-face {
    font-size: 18px;
    width: 28px;
    height: 28px;
    border: 1px solid #000;
    background: #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 1px 1px 0 #666;
}

.mines-face:active {
    box-shadow: none;
    transform: translate(1px, 1px);
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
    border: 2px inset #808080;
    background: #c0c0c0;
}

.mine-cell {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}

.mine-cell.unrevealed {
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
}

.mine-cell.unrevealed:hover { background: #b8b8b8; }

.mine-cell.unrevealed:active {
    border: 1px solid #808080;
    background: #b0b0b0;
}

.mine-cell.revealed {
    background: #d0d0d0;
    border: 1px solid #b0b0b0;
}

.mine-cell.mine-hit { background: #c00; }

/* ══════════════════════════════════════════════════════════
   15-PUZZLE
   ══════════════════════════════════════════════════════════ */

.puzzle-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.puzzle-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-family: var(--font-main);
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #000;
    border: 2px solid #000;
    padding: 1px;
}

.puzzle-tile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: bold;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.puzzle-tile:hover { background: #e0e0e0; }

.puzzle-tile:active {
    background: #000;
    color: #fff;
}

.puzzle-tile.empty {
    background: #808080;
    cursor: default;
}

/* ══════════════════════════════════════════════════════════
   SOCIAL LINKS
   ══════════════════════════════════════════════════════════ */

.about-social {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #000;
}

.social-link {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.social-link:hover {
    background: #000;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   AMBIENT EFFECTS — Subtle grain
   ══════════════════════════════════════════════════════════ */

#desktop::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ══════════════════════════════════════════════════════════
   MICRO INTERACTIONS — Subtle, period-appropriate
   ══════════════════════════════════════════════════════════ */

/* Selected finder items get inverted icon */
.finder-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .desktop-icon {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }

    #desktop {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        padding: 12px;
        gap: 4px;
        overflow-y: auto;
    }

    .window {
        left: 4px !important;
        right: 4px;
        top: 24px !important;
        width: calc(100% - 8px) !important;
        max-height: calc(100vh - 50px);
    }

    .about-layout {
        flex-direction: column;
        align-items: center;
    }

    .about-text { text-align: center; }
    .about-stats { justify-content: center; }

    #icon-trash {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
    }
}

/* ══════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════ */

@media print {
    #menu-bar, .desktop-icon, #scanlines, #boot-screen,
    .window-title-bar, .window-resize-handle {
        display: none !important;
    }

    #desktop {
        position: static;
        background: #fff;
        overflow: visible;
    }

    .window {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        border: none;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ══════════════════════════════════════════════════════════
   CONTROL PANEL
   ══════════════════════════════════════════════════════════ */

.control-panel-body {
    padding: 4px;
}

.control-panel-body h3 {
    font-size: 12px;
    margin-bottom: 6px;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pattern-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
    border: 2px solid transparent;
}

.pattern-select:hover {
    border-color: #888;
}

.pattern-select span {
    font-size: 9px;
    font-family: var(--font-main);
}

.pattern-preview {
    width: 48px;
    height: 48px;
    border: 1px solid #000;
}

/* ══════════════════════════════════════════════════════════
   ACCESSIBILITY & FOCUS
   ══════════════════════════════════════════════════════════ */

.mac-button:focus-visible,
.calc-btn:focus-visible,
.mine-cell:focus-visible,
.puzzle-tile:focus-visible,
.social-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 1px;
}

/* Puzzle tile smooth slide */
.puzzle-tile {
    transition: background-color 0.1s;
}

/* Performance hints */
#boot-screen {
    will-change: opacity;
}

.skill-fill {
    will-change: width;
}

