/* Theme selector: every skin shares the same content and functionality. */
.theme-dock { position: fixed; z-index: 55; left: max(20px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); font-family: var(--sans); }
.theme-launcher { padding: 12px 15px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 12px/1.4 var(--sans); cursor: pointer; }
.theme-launcher > span:first-child { font-size: 18px; padding-right: 5px; }
.theme-menu { position: absolute; left: 0; bottom: calc(100% + 12px); width: 290px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 100px); overflow-y: auto; border: 1px solid #111512; padding: 16px; background: #f1f0e9; color: #111512; box-shadow: 4px 4px 0 #111512; }
.theme-menu[hidden] { display: none; }
.theme-menu-title { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; }
.theme-menu > p { font-size: 12px; line-height: 1.6; }
[data-theme-options] { display: grid; gap: 8px; }
[data-theme-options] button { width: 100%; text-align: left; padding: 12px; border: 1px solid #111512; background: #faf9f4; cursor: pointer; color: #111512; }
[data-theme-options] button[aria-pressed="true"] { background: #d9ff43; }
[data-theme-options] strong, [data-theme-options] small { display: block; }
[data-theme-options] strong { font-size: 13px; }
[data-theme-options] small { margin-top: 6px; font-size: 11px; line-height: 1.6; }
.theme-save-note { margin-bottom: 0; color: #51584d; font-size: 10px !important; }
.win95-programs, .win95-task, .win95-clock { display: none; }
.retro-game-dialog { width: min(1120px, calc(100vw - 24px)); padding: 3px; background: #c0c0c0; color: #000; border: 2px outset #eee; font: 13px/1.6 Tahoma, Arial, sans-serif; max-height: calc(100dvh - 24px); }
.retro-game-dialog::backdrop { background: #001b1bd9; }
.retro-game-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 5px 4px 9px; background: #000080; color: #fff; }
.retro-game-titlebar h2 { margin: 0; font: 700 13px/1.5 Tahoma, Arial, sans-serif; }
.retro-game-titlebar button { width: 30px; height: 28px; border: 2px outset #eee; background: #c0c0c0; color: #000; cursor: pointer; font: 700 20px/1 Arial; }
.retro-game-intro { padding: 20px; }
.retro-game-intro p { max-width: 760px; }
.retro-game-intro button { padding: 10px 20px; background: #c0c0c0; color: #000; border: 2px outset #fff; font-weight: 700; cursor: pointer; margin-right: 18px; }
.game-credit { font-size: 11px; }
.retro-game-host iframe { display: block; width: 100%; height: min(740px, calc(100dvh - 140px)); border: 2px inset #eee; background: #008080; }
.retro-game-dialog.is-running .retro-game-intro { padding: 4px 10px; }

.theme-dock button:focus-visible, .theme-dock a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* Windows 95: teal desktop, gray chrome, system typography, classic bevels. */
html[data-theme="win95"] { --ink: #000; --ink-soft: #303030; --paper: #c0c0c0; --paper-bright: #fff; --line: #808080; --acid: #000080; --acid-dark: #00005b; --orange: #000080; --sans: Tahoma, "MS Sans Serif", Arial, sans-serif; --mono: "Courier New", monospace; --shell: min(1120px, calc(100vw - 32px)); background: #008080; scroll-behavior: auto; }
html[data-theme="win95"] body { background: #008080; font-family: var(--sans); -webkit-font-smoothing: auto; padding-bottom: 90px; }
html[data-theme="win95"] .page-grid { display: none; }
html[data-theme="win95"] .site-header { min-height: 62px; height: auto; margin: 16px auto; padding: 12px; border: 2px outset #fff; background: #c0c0c0; gap: 14px; }
html[data-theme="win95"] .site-header .brand { font-size: 12px; letter-spacing: 0; }
html[data-theme="win95"] .brand-mark { background: #fff; color: #000; box-shadow: none; border: 2px inset #eee; transform: none; }
html[data-theme="win95"] .site-header nav { gap: 8px; flex-wrap: wrap; }
html[data-theme="win95"] .site-header nav a, html[data-theme="win95"] .button, html[data-theme="win95"] .menu-button { border: 2px outset #eee; padding: 8px 12px; min-height: 0; background: #c0c0c0; color: #000; box-shadow: none; border-radius: 0; font-size: 12px; letter-spacing: 0; transform: none; }
html[data-theme="win95"] .site-header nav a:active, html[data-theme="win95"] .button:active { border-style: inset; }
html[data-theme="win95"] .site-header nav a[aria-current="page"] { border-style: inset; text-decoration: none; background: #e1e1e1; }
.win95-browser { display: contents; }
.win95-titlebar, .win95-menubar, .win95-address { display: none; }
html[data-theme="win95"] .win95-browser { display: block; width: min(1180px, calc(100vw - 32px)); margin: 24px auto; padding: 3px; background: #c0c0c0; border: 2px outset #eee; box-shadow: 2px 2px 0 #004848; }
html[data-theme="win95"] .win95-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #000080; color: #fff; padding: 3px 3px 3px 7px; font: 700 12px/1.6 var(--sans); }
.win95-window-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win95-window-controls { display: flex; gap: 3px; flex-shrink: 0; }
.win95-window-controls button { width: 27px; height: 24px; border: 2px outset #eee; background: #c0c0c0; color: #000; font-weight: 700; cursor: pointer; }
html[data-theme="win95"] .win95-menubar { display: flex; align-items: center; gap: 0; padding: 3px; border-bottom: 1px solid #808080; }
.win95-menubar a, .win95-menubar button { font: 12px/1.5 Tahoma, Arial, sans-serif; background: none; color: #000; border: 0; padding: 3px 10px; text-decoration: none; cursor: pointer; }
.win95-menubar a:hover, .win95-menubar button:hover { background: #000080; color: #fff; }
html[data-theme="win95"] .win95-address { display: flex; align-items: center; gap: 10px; padding: 6px; font: 12px/1.5 var(--sans); }
.win95-address-url { background: #fff; border: 2px inset #eee; flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 3px 8px; }
html[data-theme="win95"] .win95-browser main { background: #fff; border: 2px inset #eee; padding: 24px; }
html[data-theme="win95"] .win95-browser.is-window-minimized main, html[data-theme="win95"] .win95-browser.is-window-minimized .win95-menubar, html[data-theme="win95"] .win95-browser.is-window-minimized .win95-address { display: none; }
html[data-theme="win95"] .win95-browser.is-maximized { width: calc(100vw - 16px); margin-inline: 8px; }
html[data-theme="win95"] main .section-shell, html[data-theme="win95"] main .bio-hero { width: 100%; }
html[data-theme="win95"] h1, html[data-theme="win95"] h2, html[data-theme="win95"] h3 { letter-spacing: 0 !important; font-family: var(--sans); }
html[data-theme="win95"] main h1 { font-size: clamp(30px, 4vw, 48px) !important; line-height: 1.15 !important; }
html[data-theme="win95"] main h1 span { color: #000080 !important; -webkit-text-stroke: 0 !important; }
html[data-theme="win95"] main h2 { font-size: clamp(23px, 2.5vw, 32px) !important; line-height: 1.2 !important; }
html[data-theme="win95"] main h3 { font-size: 20px; }
html[data-theme="win95"] .hero, html[data-theme="win95"] .bio-hero, html[data-theme="win95"] .service-hero, html[data-theme="win95"] .resume-hero, html[data-theme="win95"] .ebay-log-hero { min-height: 0; padding-block: 35px; gap: 35px; }
html[data-theme="win95"] .section-block, html[data-theme="win95"] .resume-section { padding-block: 40px; gap: 35px; }
html[data-theme="win95"] main p, html[data-theme="win95"] main li { font-size: 14px; line-height: 1.75; }
html[data-theme="win95"] .section-number, html[data-theme="win95"] .eyebrow { font-family: var(--sans); letter-spacing: .02em; font-size: 11px; }
html[data-theme="win95"] .project-card, html[data-theme="win95"] .hero-visual, html[data-theme="win95"] .service-card-grid article, html[data-theme="win95"] .simple-card { border: 2px outset #eee; background: #c0c0c0; color: #000; box-shadow: none; }
html[data-theme="win95"] .window-bar, html[data-theme="win95"] .profile-titlebar { background: #000080; color: #fff; }
html[data-theme="win95"] .ticker { background: #c0c0c0; border: 2px inset #eee; color: #000; }
html[data-theme="win95"] .services-section, html[data-theme="win95"] .resume-skills-band, html[data-theme="win95"] .bio-era.dark, html[data-theme="win95"] .service-proof, html[data-theme="win95"] .service-cta { background: #c0c0c0; color: #000; border: 2px outset #eee; padding: 24px; }
html[data-theme="win95"] .services-section p, html[data-theme="win95"] .resume-skills dd, html[data-theme="win95"] .bio-era.dark p, html[data-theme="win95"] .service-proof p { color: #303030; }
html[data-theme="win95"] .services-section .service-number, html[data-theme="win95"] .services-section .service-symbol, html[data-theme="win95"] .resume-skills dt, html[data-theme="win95"] .resume-skills-band .section-number { color: #000080; }
html[data-theme="win95"] .contact-form, html[data-theme="win95"] input, html[data-theme="win95"] select, html[data-theme="win95"] textarea { background: #fff; color: #000; border: 2px inset #eee; border-radius: 0; }
html[data-theme="win95"] .site-footer { width: min(1180px, calc(100vw - 32px)); margin: 20px auto; padding: 20px; background: #c0c0c0; color: #000; border: 2px outset #eee; }
html[data-theme="win95"] .site-footer .brand, html[data-theme="win95"] .footer-main > p, html[data-theme="win95"] .footer-socials a, html[data-theme="win95"] .footer-bottom { color: #303030; }
html[data-theme="win95"] .theme-dock { display: flex; align-items: center; gap: 8px; inset: auto 0 0; height: 42px; padding: 4px 6px; background: #c0c0c0; border-top: 2px outset #eee; font-family: var(--sans); }
html[data-theme="win95"] .theme-launcher { padding: 3px 8px; height: 32px; border: 2px outset #fff; background: #c0c0c0; color: #000; box-shadow: none; font: 700 14px/1.4 var(--sans); }
html[data-theme="win95"] .theme-launcher[aria-expanded="true"] { border-style: inset; }
html[data-theme="win95"] .theme-menu { bottom: 40px; left: 3px; background: #c0c0c0; padding: 5px; border: 2px outset #fff; box-shadow: none; }
html[data-theme="win95"] .theme-menu-title { padding: 4px 6px; background: #000080; color: #fff; font-size: 12px; }
html[data-theme="win95"] .theme-menu > p { padding-inline: 7px; }
html[data-theme="win95"] [data-theme-options] button { background: #c0c0c0; border: 2px outset #fff; }
html[data-theme="win95"] [data-theme-options] button[aria-pressed="true"] { background: #000080; color: #fff; border-style: inset; }
html[data-theme="win95"] .win95-programs { display: grid; border-top: 1px solid #808080; margin-top: 10px; padding: 6px; gap: 3px; }
.win95-programs > span { font: 700 11px/1.5 Tahoma, Arial, sans-serif; padding: 3px; }
.win95-programs button, .win95-programs a { text-align: left; padding: 8px; border: 0; background: none; color: #000; font: 12px/1.5 Tahoma, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.win95-programs button:hover, .win95-programs a:hover { background: #000080; color: #fff; }
html[data-theme="win95"] .win95-task { display: block; padding: 6px 14px; border: 2px inset #eee; background: #d4d4d4; color: #000; font: 12px/1.4 var(--sans); cursor: pointer; }
html[data-theme="win95"] .win95-clock { display: block; margin-left: auto; border: 2px inset #eee; padding: 6px 12px; font: 12px/1.4 var(--sans); }
html[data-theme="win95"] .music-widget { --player-ink:#000; --player-screen:#c0c0c0; --player-lime:#fff; bottom: 56px; border: 2px outset #fff; box-shadow: none; }
html[data-theme="win95"] .music-widget-bar { background: #000080; color: #fff; padding: 3px 4px 3px 8px; }
html[data-theme="win95"] .music-widget-bar h2 { font: 700 12px/1.4 var(--sans); }
html[data-theme="win95"] .music-widget-toggle, html[data-theme="win95"] .music-widget-transport button { border: 2px outset #eee; background: #c0c0c0; color: #000; }
html[data-theme="win95"] .music-widget-progress { border: 2px inset #eee; height: 11px; }
html[data-theme="win95"] .music-widget-progress::-webkit-progress-value { background: #000080; }
@media(max-width: 700px) {
  .music-widget { bottom: 82px; }
  .theme-dock { left: 12px; bottom: 12px; }
  html[data-theme="win95"] .site-header { flex-wrap: wrap; width: calc(100vw - 16px); margin: 8px; }
  html[data-theme="win95"] .standalone-header nav { flex-wrap: wrap; }
  html[data-theme="win95"] .win95-browser { width: calc(100vw - 16px); margin: 12px 8px; }
  html[data-theme="win95"] .win95-browser main { padding: 16px; }
  html[data-theme="win95"] .hero, html[data-theme="win95"] .bio-hero, html[data-theme="win95"] .resume-hero, html[data-theme="win95"] .resume-section { grid-template-columns: 1fr; }
  html[data-theme="win95"] .hero-actions { gap: 16px; }
  html[data-theme="win95"] .site-footer { width: calc(100vw - 16px); }
  html[data-theme="win95"] .music-widget { bottom: 54px; }
  .retro-game-intro { padding: 12px; }
}
@media print { .theme-dock, .retro-game-dialog, .win95-titlebar, .win95-menubar, .win95-address { display: none !important; } html[data-theme="win95"] body { background: #fff; padding: 0; } html[data-theme="win95"] .win95-browser, html[data-theme="win95"] .win95-browser main { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; } }

html[data-theme="win95"] .hero-visual { transform: none; }
html[data-theme="win95"] .code-panel { background: #fff; color: #000; }
html[data-theme="win95"] .code-panel .line em { color: #800000; }
html[data-theme="win95"] .build-output, html[data-theme="win95"] .output-head, html[data-theme="win95"] .output-row, html[data-theme="win95"] .window-state { color: #303030; }
html[data-theme="win95"] .window-bar .window-state { color: #fff; }
html[data-theme="win95"] .bio-intro, html[data-theme="win95"] .bio-era-inner, html[data-theme="win95"] .bio-proof-strip > div, html[data-theme="win95"] .bio-closing { width: 100%; }
html[data-theme="win95"] .bio-era { padding-inline: 20px; }
html[data-theme="win95"] .support-commitment { background: #c0c0c0; border: 2px outset #fff; color: #000; }
html[data-theme="win95"] .text-link, html[data-theme="win95"] .resume-company { color: #000080; }
html[data-theme="win95"] .site-header nav .nav-cta { color: #000; background: #c0c0c0; }

/* The game shelf follows the same compact desktop controls as Start. */
.retro-game-library { display: grid; grid-template-columns: 240px 1fr; }
.retro-game-shelf { padding: 20px 12px; border-right: 1px solid #808080; }
.retro-game-shelf label { display: block; font-weight: bold; margin-bottom: 8px; }
.retro-game-shelf select { width: 100%; min-height: 36px; background: #fff; color: #000; font: inherit; border: 2px inset #eee; }
.retro-game-shelf p { font-size: 11px; line-height: 1.5; }
.retro-game-intro .retro-game-kind { margin-top: 0; font-weight: bold; }
.retro-game-steps { padding-left: 22px; margin: 12px 0 18px; }
.retro-game-steps li { margin-bottom: 8px; }
.retro-game-intro a { color: #000080; text-decoration: underline; }
.retro-game-toolbar { padding: 6px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.retro-game-toolbar[hidden] { display: none; }
.retro-game-toolbar button { font: inherit; border: 2px outset #fff; background: #c0c0c0; color: #000; padding: 4px 10px; cursor: pointer; }
.retro-game-dialog.is-running .retro-game-shelf { display: none; }
.retro-game-dialog.is-running .retro-game-library { display: block; }
.retro-game-dialog.is-running .retro-game-steps { font-size: 11px; margin: 4px 0; }
.retro-game-dialog.is-running .retro-game-intro > p, .retro-game-dialog.is-running .retro-game-intro > button { display: none; }
.retro-game-dialog.is-running .retro-game-host iframe { height: min(740px, calc(100dvh - 250px)); }
@media (max-width: 640px) {
  .retro-game-library { grid-template-columns: 1fr; }
  .retro-game-shelf { padding: 12px; border-right: 0; border-bottom: 1px solid #808080; }
  .retro-game-shelf p { margin: 6px 0 0; }
  .retro-game-intro button { margin: 0 8px 10px 0; }
}

.retro-game-intro > a { display: inline-block; }

.retro-game-dialog.is-running .retro-game-intro > button:last-of-type { display: inline-block; padding: 4px 12px; margin: 0; }
.retro-game-dialog:fullscreen { width: 100vw; height: 100dvh; max-width: none; max-height: none; box-sizing: border-box; margin: 0; }
.retro-game-dialog:fullscreen .retro-game-host iframe { height: calc(100dvh - 136px); }

.retro-game-host:fullscreen { width: 100vw; height: 100dvh; background: #000; }
.retro-game-host:fullscreen iframe { width: 100vw; height: 100dvh !important; border: 0; }

.retro-game-dialog.is-game-expanded { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; box-sizing: border-box; }
.retro-game-dialog.is-game-expanded .retro-game-host iframe { height: calc(100dvh - 136px); }
