/* Website-only extras. Colours follow the existing warm, green desktop. */
.desktop-pixel { flex: 0 0 auto; filter: drop-shadow(1px 1px 0 #28443060); vertical-align: middle; }
.nostalgia-desktop [data-wallpaper="teal"] { background: #008080; }
.nostalgia-desktop [data-wallpaper="clouds"] { background-color: #83afd2; background-image: radial-gradient(ellipse at 20% 20%, #fff 0 4%, #ffffffb3 8%, transparent 19%), radial-gradient(ellipse at 75% 38%, #fff 0 5%, #ffffffbb 10%, transparent 23%), radial-gradient(ellipse at 15% 77%, #ffffffd9 0 7%, transparent 22%), linear-gradient(#6697c9, #c4dfe9); }
.start-panel, .desktop-context, .start-submenu { padding: 3px; border: 1px solid #566c58; background: #e5e7dc; box-shadow: inset 1px 1px #fffff3, inset -1px -1px #a3ad98, 3px 3px 0 #14382d66; }
.start-panel { position: fixed; bottom: 42px; left: 8px; z-index: 10001; display: flex; width: 250px; color: #293d33; font-size: 13px; }
.start-banner { width: 30px; flex: 0 0 30px; background: linear-gradient(0deg, #194b39, #4d7860); color: #dbe3cf; display: flex; align-items: flex-end; overflow: hidden; }
.start-banner > span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 14px 5px; font-size: 19px; font-weight: bold; letter-spacing: .2px; white-space: nowrap; }
.start-banner b { color: #fffdeb; font-weight: normal; }
.start-items { flex: 1; min-width: 0; padding: 2px; }
.start-items button, .desktop-context button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 9px; min-height: 43px; border: 0; background: none; text-align: left; font-size: 12px; }
.start-items button:hover, .start-items button:focus-visible, .start-items button[aria-expanded="true"], .desktop-context button:hover, .desktop-context button:focus-visible { background: #255943; color: #fffef1; outline: none; }
.start-items button:focus-visible, .desktop-context button:focus-visible { outline: 1px dotted #fffde7; outline-offset: -4px; }
.start-button[aria-expanded="true"] { box-shadow: inset 1px 1px #8b9386, inset -1px -1px #fffef3; background: #c8cebb; }
.start-group { position: relative; }
.submenu-arrow { margin-left: auto; font-size: 8px; }
.start-submenu { position: absolute; left: calc(100% - 1px); top: -3px; width: 216px; }
.start-submenu button { min-height: 42px; }
.start-separator { border-top: 1px solid #acb5a3; border-bottom: 1px solid #fffef1; margin: 4px 2px; }
.desktop-context { position: fixed; z-index: 10001; width: 215px; }
.desktop-drag-handle { touch-action: none; user-select: none; cursor: move; }
.app-window.maximized > .desktop-drag-handle { cursor: default; }
@media (min-width: 761px) {
  .nostalgia-desktop .app-window:not(.maximized), .nostalgia-desktop .retro-dialog { transform: translate(var(--desktop-x, 0px), var(--desktop-y, 0px)); }
}
.desktop-dialog { width: 490px; max-width: calc(100% - 20px); padding: 4px; overflow: hidden; }
.desktop-dialog[open] { display: flex; flex-direction: column; }
.desktop-dialog > .title-bar { flex-shrink: 0; gap: 12px; }
#desktop-dialog-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#desktop-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; font-size: 13px; line-height: 1.55; }
.desktop-dialog h2 { font: 24px/1.2 Georgia, serif; margin: 0 0 15px; }
.desktop-dialog p { margin: 0 0 15px; }
.desktop-dialog .retro-button { min-height: 33px; padding: 6px 14px; font-size: 12px; }
.desktop-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 17px; }
.desktop-dialog-actions .retro-button { min-width: 78px; }
.desktop-message { padding: 27px 22px 12px; display: flex; gap: 20px; align-items: center; }
.desktop-message p { margin: 0; }
.desktop-message h2 { font: bold 16px Arial, sans-serif; margin-bottom: 10px; }
.desktop-hint, .old-web-small { color: #697263; font-size: 11px; }
.desktop-eyebrow { font: 10px/1.5 'Courier New', monospace; letter-spacing: 1px; color: #648069; }
.bin-dialog { width: 670px; }
.bin-dialog #desktop-dialog-content { display: flex; flex-direction: column; overflow: hidden; }
.bin-dialog #desktop-dialog-content > :not(.bin-files) { flex-shrink: 0; }
.bin-toolbar { padding: 10px; display: flex; align-items: center; gap: 10px; background: #eeeee4; font-size: 11px; }
.bin-toolbar .retro-button { margin-left: auto; flex-shrink: 0; }
.bin-address { display: flex; align-items: center; gap: 10px; padding: 5px 10px 9px; background: #eeeee4; font-size: 11px; }
.bin-address > span:last-child { flex: 1; padding: 3px 6px; background: #fffef9; border: 1px solid; border-color: #9ba993 #fff #fff #9ba993; }
.bin-files { margin: 0 6px; border: 1px solid #a1ac97; background: #fffef8; min-height: 0; overflow-y: auto; }
.bin-columns, .bin-file { display: grid; grid-template-columns: minmax(0, 1fr) 112px 55px; text-align: left; gap: 10px; }
.bin-columns { position: sticky; top: 0; padding: 5px 10px; background: #e9eadf; border-bottom: 1px solid #b7bfad; font-size: 11px; }
.bin-columns > span + span { border-left: 1px solid #c1c8b6; padding-left: 8px; }
.bin-file { padding: 10px; width: 100%; border: 0; border-bottom: 1px solid #eceee4; background: transparent; font-size: 11px; align-items: center; min-height: 50px; }
.bin-file > span:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bin-file > span:first-child > span { overflow-wrap: anywhere; }
.bin-file > span:last-child { text-align: right; font: 11px 'Courier New', monospace; }
.bin-file:hover, .bin-file:focus-visible { background: #e1e9d8; outline: 1px dotted #255943; outline-offset: -4px; }
.bin-status { margin: 7px 6px 0; padding: 5px 7px; border: 1px solid; border-color: #c1c6b8 #fffff4 #fffff4 #c1c6b8; font: 11px/1.5 'Courier New', monospace; }
.old-web-page { text-align: center; padding: 28px 24px 12px; }
.construction-stripe { height: 12px; background: repeating-linear-gradient(135deg, #303528 0 10px, #eed66a 10px 20px); background-size: 28px 28px; animation: construction 2s linear infinite; }
.construction-sign { display: inline-grid; place-items: center; width: 76px; height: 70px; border: 3px solid #333; background: #f1d664; font-size: 42px; margin: 22px 0 17px; transform: rotate(-4deg); }
.old-web-page h2 { font: bold 20px 'Courier New', monospace; }
.old-web-page .old-web-small { line-height: 1.8; }
@keyframes construction { to { background-position: 28px 0; } }
.guestbook { margin: 18px 17px 0; padding: 20px; background: #ffffef; border: 1px solid #d9dac1; font-family: 'Times New Roman', serif; }
.guestbook h2 { color: #275b96; font-size: 24px; }
.guestbook article { padding: 12px 0; border-top: 1px dashed #c4c4a5; }
.guestbook article strong { color: #804e84; }
.guestbook time { float: right; color: #7d7a67; font: 10px Arial, sans-serif; }
.guestbook article p { margin: 5px 0 0; }
.guestbook .guestbook-footer { text-align: center; margin: 14px 0 0; font-style: italic; }
.visitor-counter { display: inline-flex; gap: 3px; background: #253327; border: 3px inset #aab399; padding: 6px; margin: 0 0 24px; }
.visitor-counter span { color: #c5efa5; background: #14231a; padding: 3px 8px; font: 30px 'Courier New', monospace; border: 1px inset #77876e; }
.visitor-page h2 { color: #844d76; font-size: 18px; }
.notepad-page { padding: 23px; background: #fffef9; font: 13px/1.6 'Courier New', monospace; overflow-wrap: anywhere; }
.notepad-page p { white-space: pre-line; }
.terrible-banner { width: 100%; min-height: 74px; display: flex; justify-content: space-around; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 8px; border: 4px ridge #bfbb6d; background: linear-gradient(110deg, #152773, #7a1f63, #152773); background-size: 200%; color: #fff79d; font: bold 12px 'Courier New', monospace; animation: banner-colour 4s ease-in-out infinite alternate; }
.terrible-banner strong { font: bold 22px Arial, sans-serif; text-decoration: underline; }
.banner-punchline { margin-top: 22px !important; font: 17px Georgia, serif; }
.banner-clicked { animation: none; }
@keyframes banner-colour { to { background-position: 100%; } }
.archive-page { padding: 28px 20px 5px; text-align: center; }
.archive-page h2 { font: bold 18px/1.4 'Courier New', monospace; overflow-wrap: anywhere; margin-top: 14px; }
.restore-message { min-height: 23px; margin: 17px 0 0 !important; color: #356544; font: 17px/1.5 Georgia, serif; }
.run-form { display: block !important; padding: 0 !important; }
.run-form .desktop-message { padding-bottom: 22px; }
.run-form > label { margin-left: 22px; }
.run-form > input { width: calc(100% - 93px); margin: 0 20px 0 8px; padding: 7px; border: 2px inset #d0d4c5; background: white; font: 14px 'Courier New', monospace; }
.run-form > p { padding: 0 22px; margin-top: 15px; }
#run-error { color: #915038; font-size: 12px; }
.winver-page { display: flex; align-items: flex-start; padding: 28px 23px 0; gap: 20px; }
.winver-page h2 { font: 30px/1.1 Arial, sans-serif; letter-spacing: -1px; }
.winver-page h2 b { color: #587e52; }
.winver-page hr { border: 0; border-top: 1px solid #bec8b1; margin: 18px 0; }
.display-properties { padding: 18px 20px 0; }
.properties-tab { display: inline-block; border: 1px solid #afb9a4; border-bottom: 0; padding: 5px 14px; background: #e9ecdf; font-size: 12px; }
.display-preview { position: relative; height: 160px; width: 220px; max-width: 100%; margin: 16px auto 24px; border: 12px ridge #c7cdbb; border-bottom-width: 22px; background: #267f7a; box-shadow: 0 9px 0 -3px #8b9780; display: grid; place-items: center; }
.mini-window { width: 120px; background: #f9f8f1; border: 2px outset #e5e8d9; font-size: 8px; }
.mini-window > span { display: block; background: #255943; color: #fff; padding: 2px 4px; }
.mini-window > div { padding: 14px 5px; text-align: center; font-family: Georgia, serif; }
.display-properties fieldset { border: 1px solid #b8c0ab; margin: 0; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.display-properties legend { font-size: 12px; padding: 0 5px; }
.display-properties label { display: flex; align-items: center; gap: 5px; font-size: 12px; min-height: 28px; }
.display-properties input { accent-color: #356849; }
.display-extras { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; font-size: 11px; }
#desktop-screen { position: fixed; inset: 0; margin: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; background: #080e0b; color: #e9e8c8; overflow: hidden; }
#desktop-screen::backdrop { background: #080e0b; }
.shutdown-message { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 30px; padding: 30px; text-align: center; }
.shutdown-message p { color: #edac56; font: 25px/1.5 'Courier New', monospace; margin: 0; }
.shutdown-message button, .screensaver-exit button { padding: 9px 17px; color: #293d33; font-size: 12px; }
.shutdown-message > span { font: 11px/1.5 'Courier New', monospace; color: #a4ad94; }
.screensaver-logo { position: absolute; top: 0; left: 0; width: min(260px, 80vw); padding: 22px; color: #cbdcaa; text-align: center; animation: saver-x 9s linear infinite alternate, saver-y 7s linear infinite alternate; }
.screensaver-logo strong { font: bold 35px/1 Georgia, serif; display: block; letter-spacing: -1px; }
.screensaver-logo strong span { color: #eab76a; margin-left: 3px; font: 20px Arial, sans-serif; }
.screensaver-logo > span { display: block; margin-top: 13px; font: 11px 'Courier New', monospace; letter-spacing: 1px; }
.screensaver-exit { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); left: 20px; right: 20px; text-align: center; color: #a4ad94; font: 11px/1.5 'Courier New', monospace; }
@keyframes saver-x { from { left: 0; } to { left: calc(100% - min(260px, 80vw)); } }
@keyframes saver-y { from { top: 0; } to { top: calc(100% - 220px); } }
@media (max-width: 560px) {
  .start-panel { width: min(290px, calc(100vw - 16px)); max-height: calc(100dvh - 90px); overflow-y: auto; }
  .start-banner { position: sticky; top: 0; min-height: 310px; }
  .start-submenu { position: static; width: auto; box-shadow: none; border: 0; margin: 0 0 3px 13px; padding: 0 0 0 3px; border-left: 2px solid #a3b59b; }
  .submenu-arrow { transform: rotate(90deg); }
  .bin-toolbar { flex-wrap: wrap; }
  .bin-toolbar > span { flex: 1; }
  .bin-toolbar .retro-button { margin-left: 0; }
  .bin-columns, .bin-file { grid-template-columns: minmax(0, 1fr) 46px; gap: 6px; }
  .bin-columns > span:nth-child(2), .bin-file > span:nth-child(2) { display: none; }
  .bin-file { padding: 9px 6px; }
  .bin-file > span:first-child { gap: 6px; }
  .desktop-message { padding: 22px 16px 10px; gap: 14px; }
  .desktop-dialog-actions { padding: 12px; }
  .old-web-page { padding: 22px 15px 10px; }
  .visitor-counter span { padding: 3px 5px; font-size: 25px; }
  .display-extras { flex-wrap: wrap; }
  .winver-page { padding: 24px 14px 0; gap: 10px; }
  .winver-page > .desktop-pixel { width: 40px; }
  .guestbook { padding: 15px; margin: 12px 10px 0; }
  .guestbook time { float: none; display: block; margin-top: 4px; }
}
@media (max-width: 760px) { .desktop-drag-handle { touch-action: auto; cursor: default; } }
@media (pointer: coarse) {
  .start-items button, .desktop-context button, .desktop-dialog .retro-button, .display-properties label { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .construction-stripe, .terrible-banner, .screensaver-logo { animation: none; }
  .screensaver-logo { top: 35%; left: 50%; transform: translateX(-50%); }
}
