.art-2d-page { --paper: #e0e5d5; --ink: #172b25; --body-background: var(--paper); --body-color: var(--ink); --active-color: #276548; --line: #172b2544; --os-chrome: #c0c8ba; color-scheme: light; min-height: 100dvh; display: flex; flex-direction: column; }
.art-2d-page .portfolio-header, .art-2d-page .nav-dropdown { background: var(--paper); }
.art-desktop { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.desktop-menubar, .desktop-taskbar, .os-titlebar, .os-toolbar, .os-statusbar { font-family: 'Courier New', monospace; }
.desktop-menubar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .5rem 1.5rem; border-bottom: 1px solid #25463877; background: #cbd2c2; font-size: .72rem; }
.desktop-menubar > div { display: flex; align-items: center; gap: 1.5rem; }
.desktop-menubar strong { display: flex; align-items: center; gap: .5rem; letter-spacing: .08em; }
.system-dot { width: 9px; height: 9px; background: #276548; box-shadow: 2px 2px 0 #172b2533; }
.system-version { opacity: .65; }
.desktop-workspace { position: relative; isolation: isolate; flex: 1; min-height: 650px; overflow: hidden; background-color: #073d36; background-image: radial-gradient(#25463838 .6px, transparent .8px); background-size: 3px 3px; }
.desktop-wallpaper { position: absolute; inset: 0; overflow: hidden; pointer-events: none; padding: 3rem 3.5rem; color: #507c6538; }
.desktop-icons { position: relative; display: grid; grid-template-columns: repeat(2, 150px); width: fit-content; gap: 1rem .5rem; padding: 1.5rem; }
.desktop-icon { display: flex; flex-direction: column; align-items: center; gap: .4rem; background: transparent; border: 1px solid transparent; color: var(--ink); padding: .6rem .8rem; cursor: pointer; width: 140px; min-height: 117px; }
.desktop-icon:hover { background: #e0e5d538; border-color: #25463844; }
.desktop-icon:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.desktop-icon:focus-visible .icon-name { background: #254638; color: #e0e5d5; }
.icon-name { font: bold .82rem 'Courier New', monospace; padding: .15rem .3rem; }
.folder-icon { position: relative; display: block; width: 64px; height: 46px; margin: 9px 0 7px; background: #a5a86b; border: 2px solid #254638; box-shadow: 3px 3px 0 #172b2529; }
.folder-icon::before { content: ''; position: absolute; width: 28px; height: 10px; top: -10px; left: -2px; background: #c6c888; border: 2px solid #254638; border-bottom: 0; border-radius: 3px 7px 0 0; }
.folder-icon::after { content: ''; position: absolute; inset: 5px -5px -2px -2px; transform: skewX(-6deg); background: #d7d894; border: 2px solid #254638; box-shadow: inset 2px 2px 0 #f1efbd, inset -2px -2px 0 #898f54; border-radius: 2px; }
.folder-icon > span { position: absolute; z-index: 1; right: 7px; bottom: 5px; font: bold .65rem 'Courier New', monospace; }
.os-window { position: absolute; width: min(560px, calc(100% - 220px)); top: 70px; left: max(190px, calc(50% - 220px)); z-index: 2; border: 1px solid #172b25; padding: 3px; background: var(--os-chrome); box-shadow: inset 1px 1px 0 #f1f4e7, inset -1px -1px 0 #6f8174, 8px 10px 0 #172b2522; outline-offset: 3px; }
.os-window[hidden] { display: none; }
.os-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; padding: 3px 4px 3px 10px; background: #637b69; color: #f1f4e7; font-size: .78rem; font-weight: bold; cursor: grab; user-select: none; touch-action: none; }
.os-window.is-active .os-titlebar { background: #254638; }
.os-window.is-dragging .os-titlebar { cursor: grabbing; }
.os-window-controls { display: flex; gap: 3px; flex: none; }
.os-window-controls button, .desktop-start, .desktop-task { border: 1px solid #254638; background: var(--os-chrome); color: var(--ink); box-shadow: inset 1px 1px #f1f4e7, inset -1px -1px #6f8174; cursor: pointer; }
.os-window-controls button { font: bold 1rem/1 'Courier New', monospace; width: 28px; height: 27px; padding: 0; }
.os-window-controls button:hover, .desktop-start:hover, .desktop-task:hover { background: #e0e5d5; }
.os-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem; border-bottom: 1px solid #25463855; font-size: .65rem; }
.os-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-toolbar > :last-child { flex-shrink: 0; }
.os-statusbar { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .6rem; font-size: .6rem; border-top: 1px solid #25463855; }
.desktop-taskbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .4rem .6rem; border-block: 1px solid #254638; background: var(--os-chrome); box-shadow: inset 0 1px 0 #f1f4e7; font-size: .72rem; }
.desktop-start { display: inline-flex; align-items: center; gap: .6rem; font: bold .76rem 'Courier New', monospace; padding: .4rem .8rem; min-height: 36px; }
.desktop-start span { font-size: 1.4rem; line-height: 1; }
.desktop-tasks { display: flex; flex-wrap: wrap; gap: .35rem; flex: 1; }
.desktop-task { min-height: 36px; padding: .45rem .75rem; font: .68rem 'Courier New', monospace; }
.desktop-task[aria-pressed='true'] { background: #e0e5d5; box-shadow: inset 1px 1px #6f8174, inset -1px -1px #f1f4e7; }
.desktop-tray { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.desktop-tray .sound-controls { padding: 0; }
.art-2d-page .sound-toggle { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: .4rem; min-height: 36px; font: .65rem 'Courier New', monospace; }
#desktop-clock { display: block; min-width: 5.5rem; padding: .5rem; border-left: 1px solid #25463855; white-space: nowrap; text-align: center; }
.desktop-noscript { padding: 1rem; }
@media (min-width: 761px) {
  .art-2d-page { height: 100dvh; overflow: hidden; }
  .desktop-workspace { min-height: 0; }
  .desktop-menubar, .desktop-taskbar { flex-shrink: 0; }
  .os-window { top: 24px; max-height: calc(100% - 48px); display: flex; flex-direction: column; }
  .os-titlebar, .os-toolbar, .os-statusbar { flex-shrink: 0; }
  .desktop-icons { gap: .8rem; padding-top: 1.3rem; }
}
@media (max-width: 760px) {
  .desktop-menubar { padding-inline: 1rem; }
  .desktop-menubar > div { gap: .5rem; }
  .desktop-workspace { min-height: 670px; padding-bottom: 1rem; }
  .desktop-icons { flex-direction: row; justify-content: center; width: 100%; gap: .25rem; padding: 1rem .5rem; }
  .desktop-icon { width: 31%; padding: .4rem .1rem; }
  .icon-name { font-size: .7rem; }
  .folder-icon { width: 53px; height: 39px; }
  .os-window { width: calc(100% - 24px); left: 12px !important; top: 155px !important; max-height: calc(100% - 170px); display: flex; flex-direction: column; }
  .os-titlebar, .os-toolbar, .os-statusbar { flex-shrink: 0; }
  .os-titlebar { cursor: default; }
  .desktop-wallpaper { padding: 1rem; }
  .desktop-tray { width: 100%; justify-content: space-between; }
  .desktop-task { max-width: 150px; }
}

/* Desktop applications and image viewers. */
.desktop-icon { width: 150px; min-height: 120px; }
.icon-name { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.desktop-utilities { position: absolute; right: 1.5rem; bottom: 1rem; display: flex; gap: .5rem; }
.app-icon, .image-file-icon { display: grid; place-items: center; height: 62px; width: 72px; margin-bottom: 4px; }
.app-icon img { width: 70px; height: 62px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 #172b2529); }
.image-file-icon { border: 2px solid #254638; background: #e5e9dc; padding: 4px; box-shadow: 3px 3px 0 #172b2529; transform: rotate(-4deg); }
.image-file-icon img { width: 100%; height: 100%; object-fit: cover; }
.trash-icon { display: grid; place-items: center; position: relative; font: 48px/1 monospace; width: 50px; height: 57px; margin: 5px 0 4px; color: #254638; background: #c0c8ba; border: 2px solid #254638; border-radius: 2px 2px 8px 8px; box-shadow: 3px 3px 0 #172b2529; }
.trash-icon::before { content: ''; position: absolute; left: -6px; right: -6px; top: -6px; height: 7px; background: #c0c8ba; border: 2px solid #254638; }
.trash-icon::after { content: ''; position: absolute; left: 13px; top: -12px; width: 18px; height: 6px; border: 2px solid #254638; border-bottom: 0; }
.os-window { display: flex; flex-direction: column; width: min(860px, calc(100% - 380px)); left: max(350px, calc(50% - 290px)); top: 24px; height: min(690px, calc(100% - 48px)); max-height: calc(100% - 48px); }
.os-window[hidden] { display: none; }
.os-titlebar, .os-toolbar, .os-statusbar { flex-shrink: 0; }
.gallery { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #e5e9dc; }
.gallery-stage { display: grid; place-items: center; flex: 1; min-height: 80px; margin: 0; padding: 12px; overflow: hidden; background: #cbd2c4; }
.gallery-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pixel-gallery .gallery-stage img, .pixel-gallery .gallery-thumbnails img { image-rendering: pixelated; }
.gallery-navigation { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .4rem .75rem; border-block: 1px solid #25463833; }
.gallery-navigation button { width: 44px; height: 36px; flex: none; border: 1px solid #254638; background: var(--os-chrome); color: var(--ink); box-shadow: inset 1px 1px #f1f4e7, inset -1px -1px #6f8174; font-size: 1.3rem; cursor: pointer; }
.gallery-navigation button:hover { background: #b4c6b0; }
.gallery-caption { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .2rem; text-align: center; font: .7rem 'Courier New', monospace; overflow-wrap: anywhere; }
[data-gallery-count] { font-size: .6rem; color: #254638; }
.gallery-thumbnails { display: flex; gap: 7px; overflow-x: auto; flex: none; padding: 8px; }
.gallery-thumbnails button { flex: 0 0 64px; height: 48px; background: #cbd2c4; border: 2px solid transparent; padding: 2px; cursor: pointer; }
.gallery-thumbnails button[aria-pressed='true'] { border-color: #276548; background: #b4c6b0; }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.spring-window { width: min(1060px, calc(100% - 100px)); left: 50px; }
.spring-content { overflow: auto; min-height: 0; flex: 1; background: #e5e9dc; }
.spring-game { width: min(800px, calc(100% - 24px)); aspect-ratio: 980 / 640; margin: 12px auto; overflow: hidden; background: var(--os-chrome); box-shadow: 0 0 0 1px #808080; }
.spring-game iframe { display: block; width: 980px; height: 640px; max-width: none; border: 0; transform: scale(var(--spring-game-scale, 1)); transform-origin: top left; }
.spring-notes { padding: 2rem; }
.spring-heading { display: flex; align-items: center; gap: 1.5rem; }
.spring-heading img { object-fit: contain; flex: none; image-rendering: pixelated; }
.spring-notes h2 { font: bold 1.8rem 'DM Sans', sans-serif; margin: .5rem 0; }
.spring-notes p { font-size: .85rem; line-height: 1.7; margin: .7rem 0; }
.spring-notes a { color: #225c42; font: bold .75rem 'Courier New', monospace; text-underline-offset: 4px; }
.spring-section { border-top: 1px solid #808080; margin-top: 2rem; padding-top: 1.5rem; }
.spring-section h3 { font-size: 1.2rem; margin: 0 0 1rem; }
.spring-inspiration-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.spring-inspiration-images figure { margin: 0; min-width: 0; }
.spring-inspiration-images img { display: block; width: 100%; height: auto; border: 1px solid #808080; }
.spring-inspiration-images figcaption { margin-top: .5rem; font-size: .75rem; color: #333; }
.spring-asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.spring-asset-grid figure { min-width: 0; margin: 0; }
.spring-asset-grid a, .spring-asset-sheet a { display: block; cursor: zoom-in; }
.spring-asset-grid a:focus-visible, .spring-asset-sheet a:focus-visible { outline: 2px solid #000080; outline-offset: 4px; }
.spring-asset-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #a6a6a6; border: 1px solid #808080; }
.spring-asset-sheet { width: min(100%, 800px); margin: 1.5rem auto; }
.spring-asset-sheet img { display: block; width: 100%; height: auto; border: 1px solid #808080; }
.spring-tree-comparison img { aspect-ratio: 4 / 3; }
.spring-tree-comparison figcaption { margin-top: .5rem; font-size: .75rem; line-height: 1.5; color: #333; }
.spring-learning-image { width: min(100%, 620px); margin: 1.25rem auto 1.5rem; }
.spring-learning-image a { display: block; cursor: zoom-in; }
.spring-learning-image a:focus-visible { outline: 2px solid #000080; outline-offset: 4px; }
.spring-learning-image img { display: block; width: 100%; height: auto; border: 1px solid #808080; }
.spring-learning-image figcaption { margin-top: .65rem; font-size: .75rem; color: #333; }
.trash-window { height: 320px; width: min(430px, calc(100% - 380px)); }
.trash-content { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .8rem; padding: 1.5rem; background: #e5e9dc; }
.trash-content h2 { font-size: 1.1rem; }
.trash-content p { font-size: .8rem; }
.desktop-start { cursor: default; }
.desktop-start:hover { background: var(--os-chrome); }
@media (min-width: 761px) and (max-height: 690px) {
  .desktop-icons { grid-template-columns: repeat(3, 120px); gap: .3rem; padding: .8rem; }
  .desktop-icon { width: 120px; min-height: 105px; }
  .os-window { left: 180px; width: calc(100% - 210px); }
}
@media (max-width: 760px) {
  .desktop-workspace { min-height: max(760px, calc(100dvh - 200px)); }
  .desktop-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 1rem .5rem; gap: .5rem; }
  .desktop-icon { width: 100%; min-height: 117px; }
  .desktop-utilities { right: .75rem; bottom: 1rem; gap: 1rem; }
  .desktop-utilities .desktop-icon { width: 95px; }
  .os-window { width: calc(100% - 24px); left: 12px !important; top: 185px !important; height: calc(100% - 205px); max-height: calc(100% - 205px); }
  .gallery-stage { padding: 6px; }
  .os-titlebar { gap: .25rem; }
  .os-window-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .os-window-controls button { width: 32px; height: 32px; }
  .spring-notes { padding: 1.2rem; }
  .spring-heading { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .spring-heading img { width: 90px; height: 80px; }
  .trash-window { height: 310px; }
}

.art-2d-page .portfolio-header { background: #c0c8ba; }
.art-2d-page .portfolio-nav { font-family: 'Courier New', monospace; font-size: .85rem; }
.art-2d-page .nav-dropdown { background: #c0c8ba; color: #172b25; box-shadow: 4px 4px #001c2966; }
.art-2d-page .nav-dropdown a:hover, .art-2d-page .nav-dropdown a[aria-current] { background: #164c3e; color: #e5e9dc; }
.art-desktop { position: relative; }
.desktop-workspace { background: #073d36; }
.desktop-wallpaper { background: radial-gradient(ellipse at 45% 35%, #3e79552b, transparent 75%); }
.desktop-icon { color: #e0e5d5; }
.desktop-icon .icon-name { text-shadow: 1px 1px #001f1c; }
.desktop-icon:focus-visible { outline-color: #d4e6c6; }
.desktop-icon:focus-visible .icon-name { background: #e0e5d5; color: #073d36; text-shadow: none; }
.folder-icon { color: #243a24; }
.os-window { box-shadow: inset 1px 1px #f1f4e7, inset -1px -1px #6f8174, 6px 6px #001c2977; }
.os-titlebar { border: 1px solid #254638; }
.os-window.is-active .os-titlebar { background: #164c3e; }
.os-window-controls button, .gallery-navigation button, .desktop-start, .desktop-task { border-radius: 0; }
.image-file-icon { border: 0; padding: 0; width: 56px; height: 64px; box-shadow: none; background: transparent; transform: none; filter: drop-shadow(3px 3px #001c2955); }
.image-file-icon svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.desktop-boot { position: absolute; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 1.5rem; background: #052e29; color: #d5e5bc; font-family: 'Courier New', monospace; }
.desktop-boot[hidden] { display: none; }
.boot-panel { width: min(100%, 460px); }
.boot-heading { display: flex; align-items: center; gap: 1.2rem; padding-bottom: 2rem; border-bottom: 1px solid #91b08a66; font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: bold; line-height: 1.2; letter-spacing: -.04em; }
.boot-heading small { font-size: .65rem; letter-spacing: .12em; font-weight: normal; }
.boot-mark { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border: 2px solid #afc69f; box-shadow: 4px 4px #749b7066; font-size: 3.5rem; }
.boot-status { margin: 2rem 0 1rem; font-size: .8rem; }
.boot-progress { height: 20px; padding: 3px; border: 1px solid #afc69f; }
.boot-progress span { display: block; height: 100%; background: repeating-linear-gradient(90deg, #afc69f 0 10px, transparent 10px 13px); animation: desktop-boot-progress 1.9s steps(18) both; }
.boot-footnote { font-size: .65rem; line-height: 1.6; color: #9ab496; margin: 1rem 0 2rem; }
#skip-boot { padding: .6rem .8rem; border: 1px solid #afc69f; border-radius: 0; background: transparent; color: inherit; cursor: pointer; font: .75rem 'Courier New', monospace; }
#skip-boot:hover, #skip-boot:focus-visible { background: #afc69f; color: #052e29; }
@keyframes desktop-boot-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .boot-progress span { animation: none; } }
@media (max-width: 760px) { .desktop-boot { align-items: start; padding-top: 4rem; } }

/* Windows 95 desktop: teal wallpaper, silver bevels, and navy title bars. */
.art-2d-page { --paper: #c0c0c0; --ink: #000; --body-background: #008080; --body-color: #000; --active-color: #000080; --line: #808080; --os-chrome: #c0c0c0; font-family: Tahoma, 'MS Sans Serif', Arial, sans-serif; }
.art-2d-page .portfolio-header, .art-2d-page .nav-dropdown { background: #aebcc3; color: #000; }
.art-2d-page .portfolio-nav { font-family: Tahoma, Arial, sans-serif; }
.art-2d-page .nav-dropdown a:hover, .art-2d-page .nav-dropdown a[aria-current] { background: #000080; color: #fff; }
.desktop-workspace {
  background-color: #008080;
  background-image:
    radial-gradient(ellipse at 25% 15%, #6fc6ba26, transparent 65%),
    repeating-linear-gradient(0deg, #002f351a 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #ffffff0b 0 1px, transparent 1px 4px);
  background-size: 100% 100%, 4px 4px, 4px 4px;
}
.desktop-wallpaper { display: none; }
.desktop-menubar, .desktop-taskbar, .os-titlebar, .os-toolbar, .os-statusbar { font-family: Tahoma, 'MS Sans Serif', Arial, sans-serif; }
.desktop-menubar { background: #c0c0c0; border-bottom: 1px solid #808080; box-shadow: inset 0 1px #fff; }
.system-dot { background: #000080; box-shadow: 1px 1px #808080; }
.desktop-icons { grid-template-columns: repeat(2, 110px); grid-template-rows: repeat(3, 108px); grid-auto-flow: column; gap: 8px; padding: 20px 12px; }
.desktop-icon { width: 110px; min-height: 100px; padding: 8px 3px; gap: 5px; color: #fff; }
.desktop-icon:hover { background: #ffffff12; border-color: transparent; }
.desktop-icon:focus-visible { outline: 1px dotted #fff; outline-offset: -2px; }
.desktop-icon .icon-name { font: 12px/1.2 Tahoma, Arial, sans-serif; text-shadow: 1px 1px #005454; padding: 2px 3px; }
.desktop-icon:focus-visible .icon-name { background: #000080; color: #fff; text-shadow: none; }
.folder-icon { width: 52px; height: 44px; margin: 4px 0; border: 0; box-shadow: none; background: url('../images/desktop/folder.svg') center / contain no-repeat; image-rendering: pixelated; }
.folder-icon::before, .folder-icon::after { display: none; }
.folder-icon > span { right: 7px; bottom: 7px; padding: 1px 2px; font: bold 10px/1 Tahoma, Arial, sans-serif; color: #000080; background: #ffffb5; }
[data-open='my-cat'] .folder-icon > span { color: #b00000; font-size: 13px; }
.app-icon, .paint-app-icon, .recycle-icon { display: block; position: relative; width: 48px; height: 48px; margin: 2px 0; }
.app-icon img, .paint-app-icon img { display: block; width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; filter: none; }
.recycle-icon { overflow: hidden; }
.recycle-icon img { position: absolute; width: 101.25px; height: 93.75px; max-width: none; left: -27.4px; top: -22.875px; image-rendering: pixelated; }
.image-file-icon { width: 42px; height: 48px; margin: 2px 0; filter: none; }
.desktop-utilities { right: 12px; bottom: 14px; gap: 4px; }
.os-window { left: max(250px, calc(50% - 330px)); width: min(950px, calc(100% - 280px)); background: #c0c0c0; border: 1px solid #000; box-shadow: inset 1px 1px #fff, inset -1px -1px #808080, 2px 2px #0006; }
.os-titlebar { min-height: 28px; padding: 2px 3px 2px 6px; border: 0; background: #808080; color: #fff; font-size: 12px; }
.os-window.is-active .os-titlebar { background: #000080; }
.os-window-controls button { width: 22px; height: 21px; font-size: 16px; }
.os-window-controls button, .gallery-navigation button, .desktop-start, .desktop-task, .paint-menu button, .paint-tools button, #skip-boot { color: #000; background: #c0c0c0; border: 1px solid; border-color: #fff #000 #000 #fff; box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf; border-radius: 0; }
.os-window-controls button:active, .gallery-navigation button:active, .desktop-task[aria-pressed='true'], .paint-menu button:active, .paint-tools button[aria-pressed='true'] { border-color: #000 #fff #fff #000; box-shadow: inset 1px 1px #808080; background: #d6d6d6; }
.os-window-controls button:hover, .gallery-navigation button:hover, .desktop-start:hover, .desktop-task:hover { background: #d6d6d6; }
.os-toolbar { padding: 7px 8px; border-bottom: 1px solid #808080; font-size: 11px; }
.os-statusbar { border: 1px solid; border-color: #808080 #fff #fff #808080; padding: 5px 6px; font-size: 10px; }
.gallery, .trash-content { background: #fff; }
.spring-content { background: var(--os-chrome); }
.gallery-stage { background: #e4e4e4; }
.gallery-navigation { background: #c0c0c0; border-color: #808080; }
.gallery-caption, [data-gallery-count] { font-family: Tahoma, Arial, sans-serif; color: #000; }
.gallery-thumbnails { background: #c0c0c0; }
.gallery-thumbnails button { background: #fff; }
.gallery-thumbnails button[aria-pressed='true'] { border-color: #000080; background: #fff; }
.spring-notes a { color: #000080; }
.spring-window { width: min(1060px, calc(100% - 100px)); left: 50px; }
.trash-window { width: min(430px, calc(100% - 280px)); }
.desktop-taskbar { padding: 3px 4px; border: 0; border-top: 2px solid #fff; background: #c0c0c0; gap: 4px; }
.desktop-start, .desktop-task { min-height: 30px; font: 12px Tahoma, Arial, sans-serif; }
.desktop-start span { font-size: 20px; color: #000080; }
.art-2d-page .sound-toggle, #desktop-clock { font: 11px Tahoma, Arial, sans-serif; color: #000; }
#desktop-clock { border: 1px solid; border-color: #808080 #fff #fff #808080; }
.desktop-boot { background: #008080; color: #000; font-family: Tahoma, Arial, sans-serif; }
.boot-panel { padding: 30px; width: min(100%, 460px); background: #c0c0c0; border: 2px solid; border-color: #fff #000 #000 #fff; box-shadow: inset -1px -1px #808080, 3px 3px #0004; }
.boot-heading { color: #000080; border-color: #808080; font-family: Tahoma, Arial, sans-serif; font-weight: normal; letter-spacing: -.05em; }
.boot-heading b { font-weight: bold; }
.boot-heading small { color: #333; font-size: 9px; letter-spacing: .05em; }
.boot-mark { color: #fff; background: #000080; border: 2px solid; border-color: #fff #808080 #808080 #fff; box-shadow: none; width: 60px; height: 60px; font-size: 45px; }
.boot-status, .boot-footnote { color: #222; }
.boot-progress { border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 2px; }
.boot-progress span { background: repeating-linear-gradient(90deg, #000080 0 10px, transparent 10px 13px); }
#skip-boot { font: 12px Tahoma, Arial, sans-serif; }
#skip-boot:hover, #skip-boot:focus-visible { background: #ddd; color: #000; }
.paint-window { width: min(980px, calc(100% - 280px)); }
.paint-menu { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; flex: none; }
.paint-menu button { padding: 5px 10px; font: 12px Tahoma, Arial, sans-serif; cursor: pointer; }
.paint-menu button:disabled { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }
.paint-menu .paint-save { margin-left: auto; font-weight: bold; }
.paint-workarea { display: grid; grid-template-columns: 62px minmax(0, 1fr); flex: 1; min-height: 0; }
.paint-tools { padding: 5px; display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.paint-tools button { display: flex; flex-direction: column; align-items: center; padding: 4px 1px; font: 10px Tahoma, Arial, sans-serif; cursor: pointer; }
.paint-tools button span { font-size: 24px; line-height: 1; }
.paint-tools label { font-size: 10px; margin-top: 10px; }
.paint-tools select { width: 100%; background: #fff; color: #000; font: 10px Tahoma, Arial, sans-serif; padding: 3px 0; border: 1px solid #808080; }
.paint-paper { overflow: auto; min-width: 0; min-height: 0; display: flex; align-items: flex-start; padding: 8px; background: #808080; border: 2px solid; border-color: #000 #fff #fff #000; }
#paint-canvas { display: block; width: 100%; height: auto; flex: none; background: #fff; touch-action: none; cursor: crosshair; box-shadow: 1px 1px #000; }
#paint-canvas:focus-visible { outline: 1px dotted #000080; outline-offset: 2px; }
.paint-colors { display: flex; gap: 10px; align-items: center; padding: 8px; flex: none; }
.paint-custom-color { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; }
.paint-custom-color input { width: 36px; height: 32px; padding: 2px; border: 1px solid #808080; background: #c0c0c0; cursor: pointer; }
.paint-palette { display: grid; grid-template-columns: repeat(8, 24px); gap: 3px; }
.paint-palette button { width: 24px; height: 24px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: var(--swatch); cursor: pointer; }
.paint-palette button[aria-pressed='true'] { outline: 1px dotted #000; outline-offset: 1px; }
@media (max-width: 760px) {
 .desktop-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 108px); grid-auto-flow: row; width: 100%; gap: 8px 0; padding: 16px 8px; }
 .desktop-icon { width: 100%; min-height: 100px; }
 .desktop-utilities .desktop-icon { width: 95px; }
 .os-window { width: calc(100% - 24px); }
 .os-window-controls button { width: 30px; height: 28px; }
 .boot-panel { padding: 22px; }
 .boot-heading { gap: 12px; font-size: 27px; }
 .boot-mark { width: 48px; height: 48px; font-size: 36px; }
 .paint-workarea { grid-template-columns: 54px minmax(0, 1fr); }
 .paint-paper { padding: 4px; }
 .paint-menu button { min-height: 34px; padding: 4px 8px; }
 .paint-tools button { min-height: 48px; }
 .paint-palette { grid-template-columns: repeat(8, 22px); gap: 3px; }
 .paint-palette button { width: 22px; height: 24px; }
 .paint-colors { gap: 8px; padding: 8px 4px; }
}

/* A DOS game sits inside the same draggable chrome as the artwork. */
.doom-app-icon { display: grid; place-items: center; width: 64px; height: 48px; margin: 2px 0; }
.doom-app-icon img { display: block; width: 64px; height: 48px; object-fit: contain; }
.doom-window { left: max(250px, calc(50% - 330px)); width: min(900px, calc(100% - 280px)); }
.doom-content { flex: 1; min-height: 0; background: #000; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.doom-content iframe { display: block; border: 0; width: 100%; height: 100%; }
.doom-controls { flex-wrap: wrap; line-height: 1.5; }
@media (max-width: 760px) { .doom-window { width: calc(100% - 24px); height: min(540px, calc(100% - 180px)); max-height: calc(100% - 180px); } }

/* Keep DOOM immediately above the recycle bin, with My_Cat beside it. */
.desktop-utilities { display: grid; grid-template-columns: repeat(2, auto); gap: 4px; }
.desktop-utilities [data-open="my-cat"] { grid-column: 1; grid-row: 2; }
.desktop-utilities [data-open="doom"] { grid-column: 2; grid-row: 1; }
.desktop-utilities [data-open="trash-bin"] { grid-column: 2; grid-row: 2; }
