/* Windows 95 Retro Desktop Portfolio - Mario Valerio David Mignemi */

:root {
  --teal: #008080;
  --win-bg: #c0c0c0;
  --win-dark: #808080;
  --win-darker: #404040;
  --win-light: #dfdfdf;
  --win-white: #ffffff;
  --title-active: #000080;
  --title-inactive: #808080;
  --title-text: #ffffff;
  --desktop-icon-text: #ffffff;
  --button-face: #c0c0c0;
  --text: #000000;
  --link: #0000ff;
  --font-ui: "MS Sans Serif", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-pixel: "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #004040;
    --win-bg: #2d2d2d;
    --win-dark: #1a1a1a;
    --win-darker: #0a0a0a;
    --win-light: #4a4a4a;
    --win-white: #3a3a3a;
    --title-active: #0000a0;
    --title-inactive: #505050;
    --title-text: #e0e0e0;
    --desktop-icon-text: #e0e0e0;
    --button-face: #3a3a3a;
    --text: #e0e0e0;
    --link: #6ab0ff;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: #008080;
  background-image: url("desktop-wallpaper.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
}

/* Desktop */
#desktop {
  position: relative;
  width: 100%;
  height: calc(100% - 30px);
  background-color: var(--teal);
  background-image: url("desktop-wallpaper.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  user-select: none;
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 16px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.desktop-icon {
  width: 72px;
  text-align: center;
  cursor: pointer;
  padding: 4px;
  border: 1px solid transparent;
}

.desktop-icon:hover,
.desktop-icon:focus,
.desktop-icon.selected {
  background: rgba(0, 0, 128, 0.3);
  border: 1px dotted #fff;
  outline: none;
}

.desktop-icon .icon-slot {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.desktop-icon .icon-img {
  width: 32px;
  height: 32px;
  margin: 0;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}
.desktop-icon .icon-slot .icon-folder,
.desktop-icon .icon-slot .icon-exe,
.desktop-icon .icon-slot .icon-htm,
.desktop-icon .icon-slot .icon-txt,
.desktop-icon .icon-slot .icon-help,
.desktop-icon .icon-slot .icon-inbox {
  margin: 0;
}

.desktop-icon .icon-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--desktop-icon-text);
  text-shadow: 1px 1px 0 #000;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.2;
}

/* Window base */
.window {
  position: absolute;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 1px 1px 0 var(--win-darker);
  min-width: 280px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  max-width: 95vw;
  /* grow with content; only scroll when taller than available desktop */
  height: auto;
  max-height: calc(100vh - 40px);
}

.window.active {
  z-index: 100;
}

.window.minimized {
  display: none;
}

/* Title bar */
.title-bar {
  height: 22px;
  background: var(--title-inactive);
  color: var(--title-text);
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}

.window.active .title-bar {
  background: var(--title-active);
}

.title-bar-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 4px;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  width: 16px;
  height: 14px;
  border: 1px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  background: var(--button-face);
  color: var(--text);
  font-size: 9px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: bold;
}

.title-bar-controls button:active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
}

/* Window body */
.window-body {
  flex: 1 1 auto;
  padding: 20px;
  overflow: auto; /* scrollbar only when content exceeds max-height */
  background: var(--win-bg);
  font-size: 14px;
  min-height: 0; /* allow flex child to shrink if needed */
}

.window-body p {
  margin-bottom: 12px;
}

.window-body h2, .window-body h3 {
  font-family: var(--font-ui);
  margin: 0 0 10px;
  font-size: 15px;
}

.window-body ul, .window-body ol {
  margin: 0 0 12px 20px;
}

.window-body li {
  margin-bottom: 6px;
}

/* Buttons */
.btn {
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 4px 14px;
  background: var(--button-face);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  color: var(--text);
  cursor: pointer;
  min-width: 75px;
  text-align: center;
}

.btn:active, .btn.pressed {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  padding: 5px 13px 3px 15px;
}

.btn:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.btn-primary {
  font-weight: bold;
}

/* Taskbar */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--win-bg);
  border-top: 2px solid var(--win-light);
  display: flex;
  align-items: center;
  padding: 2px 3px;
  gap: 3px;
  z-index: 1000;
  font-family: var(--font-ui);
  font-size: 11px;
}

.start-btn {
  height: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  background: var(--button-face);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  cursor: pointer;
  color: var(--text);
}

.start-btn:active, .start-btn.open {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
}

.start-btn .start-icon-img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.start-btn .start-icon-fallback {
  width: 16px;
  height: 16px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  flex-shrink: 0;
}
.start-btn img, .start-btn .start-icon {
  width: 20px;
  height: 20px;
}

.task-buttons {
  flex: 1;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  height: 24px;
}

.task-btn {
  min-width: 120px;
  max-width: 180px;
  height: 24px;
  padding: 0 8px;
  background: var(--button-face);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 11px;
}

.task-btn.active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  background: var(--win-light);
}

.clock {
  height: 24px;
  padding: 0 10px;
  border: 1px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  display: flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text);
  min-width: 70px;
  justify-content: center;
}

/* Start Menu */
#start-menu {
  position: fixed;
  bottom: 30px;
  left: 4px;
  width: 220px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  display: none;
  z-index: 2000;
  font-family: var(--font-ui);
  font-size: 12px;
}

#start-menu.open {
  display: block;
}

.start-menu-header {
  background: #000080;
  color: #fff;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.start-menu-items {
  padding: 4px 0;
}

.start-menu-item {
  padding: 6px 12px 6px 36px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.start-menu-item:hover {
  background: var(--title-active);
  color: #fff;
}

.start-menu-item .menu-icon-img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  object-fit: contain;
  margin-right: 4px;
  vertical-align: middle;
}
.start-menu-item .menu-icon {
  position: absolute;
  left: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.start-menu-separator {
  height: 1px;
  background: var(--win-dark);
  margin: 4px 8px;
  border-bottom: 1px solid var(--win-light);
}

/* Tabs for About / System Properties */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--win-dark);
  margin: -20px -20px 16px -20px;
  padding: 0 8px;
  background: var(--win-bg);
}

.tab {
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  background: var(--win-bg);
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  position: relative;
  top: 1px;
  color: var(--text);
}

.tab.active {
  background: var(--win-bg);
  border: 1px solid var(--win-dark);
  border-bottom: 1px solid var(--win-bg);
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* File Explorer style */
.explorer-toolbar {
  display: flex;
  gap: 12px;
  padding: 3px 8px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  flex-shrink: 0;
}

/* Tight body wrapper, mirroring the Outlook Express window template */
.explorer-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: var(--win-bg);
  padding: 4px;
}

.explorer-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  /* Win95 Explorer file area: a white, sunken "document" pane so
     transparent/white-backed icons (e.g. the PPT icon) read clearly. */
  background: #ffffff;
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  padding: 8px;
  /* Stretch the white pane to fill the window body when maximized,
     instead of leaving a gray gap around it. */
  flex: 1 1 auto;
  min-height: 0;
  /* Keep file rows at their natural height at the top; without this the
     default align-content:stretch makes each row (and its hover highlight)
     extend all the way to the bottom of the tall pane. */
  align-content: start;
}

.file-item {
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  border: 1px solid transparent;
}

.file-item:hover, .file-item.selected {
  background: rgba(0,0,128,0.15);
  border: 1px dotted var(--title-active);
}

.file-item .icon-slot {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-item .file-icon {
  font-size: 32px;
  margin-bottom: 0;
  line-height: 1;
}
.file-item .file-icon-img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.file-item .file-name {
  font-size: 11px;
  font-family: var(--font-ui);
  overflow-wrap: break-word;
  word-break: normal;
  color: #000000;
}

/* Detail drawer / project view */
.project-detail {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  background: var(--win-white);
}

.project-detail.open {
  display: block;
}

.project-detail h3 {
  margin-top: 0;
}

/* Form styles (Contact) */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 4px 6px;
  font-family: var(--font-body);
  font-size: 13px;
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  background: var(--win-white);
  color: var(--text);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

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

/* FAQ accordion */
.faq-item {
  margin-bottom: 8px;
  border: 1px solid var(--win-dark);
}

.faq-question {
  padding: 10px 12px;
  background: var(--win-light);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--win-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--win-white);
  padding: 0 12px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 12px;
}

.faq-item.open .faq-question {
  border-bottom: 1px solid var(--win-dark);
}

/* Strengths list */
.strengths-list {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.strengths-list li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.strengths-list li::before {
  content: "▶";
  position: absolute;
  left: 4px;
  font-size: 10px;
  color: var(--title-active);
}

/* Welcome specific */
.welcome-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Status bar */
.status-bar {
  height: 20px;
  background: var(--win-bg);
  border-top: 1px solid var(--win-dark);
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  flex-shrink: 0;
}

.status-bar-field {
  padding: 0 8px;
  border-right: 1px solid var(--win-dark);
}

/* Animations */
/* entrance animation disabled to avoid maximize/restore flicker */
.window {
  /* no animation */
}

/* Data flow diagram animation for Case A */
.data-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-step {
  background: var(--win-white);
  border: 2px solid var(--win-dark);
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
  min-width: 80px;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.flow-step.active {
  opacity: 1;
  border-color: var(--title-active);
  box-shadow: 0 0 0 2px rgba(0,0,128,0.3);
}

.flow-arrow {
  font-size: 18px;
  color: var(--title-active);
}

/* Utility */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

a {
  color: var(--link);
}

/* Pixel icon approximations via CSS */
.icon-folder {
  width: 32px;
  height: 32px;
  background: 
    linear-gradient(to bottom, #ffcc00 0%, #ffcc00 40%, #e8a000 40%, #e8a000 100%);
  border: 1px solid #a07000;
  position: relative;
  margin: 0 auto;
}

.icon-folder::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 2px;
  width: 12px;
  height: 6px;
  background: #ffcc00;
  border: 1px solid #a07000;
  border-bottom: none;
}

.icon-exe {
  width: 32px;
  height: 32px;
  background: #00a000;
  border: 1px solid #006000;
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  font-family: var(--font-pixel);
}

.icon-pdf {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #808080;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  color: #c00000;
  font-family: var(--font-pixel);
  font-size: 7px;
  font-weight: bold;
}

.icon-sys {
  width: 32px;
  height: 32px;
  background: #8080ff;
  border: 1px solid #4040a0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
}

.icon-txt {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #808080;
  margin: 0 auto;
  position: relative;
}

.icon-txt::before {
  content: "TXT";
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 8px;
  font-family: var(--font-pixel);
  color: #000;
}

.icon-help {
  width: 32px;
  height: 32px;
  background: #ffff80;
  border: 1px solid #a0a000;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: #000080;
}

/* Inbox / mailbox icon (Outlook shortcut) - a hand-built recreation, in the
   same low-fi flat-color style as the other desktop icons, of the classic
   Windows 95 "Inbox" concept: letters standing in a tray in front of a
   globe. This is an original redraw, not a copy of Microsoft's artwork. */
.icon-inbox {
  width: 32px;
  height: 32px;
  position: relative;
  margin: 0 auto;
}

.icon-inbox .io-globe {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #7fd8ff 0%, #2f9fe0 28%, #1c6fb0 55%, #0d4a80 100%);
  border: 1px solid #0a3660;
  overflow: hidden;
}

.icon-inbox .io-globe::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 65%, #3fae4f 0%, #3fae4f 22%, transparent 23%),
    radial-gradient(circle at 40% 80%, #3fae4f 0%, #3fae4f 16%, transparent 17%),
    radial-gradient(circle at 75% 20%, #3fae4f 0%, #3fae4f 14%, transparent 15%);
}

.icon-inbox .io-tray {
  position: absolute;
  bottom: 1px;
  left: 2px;
  width: 26px;
  height: 8px;
  background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 100%);
  border: 1px solid #707070;
  border-radius: 0 0 2px 2px;
}

.icon-inbox .io-doc {
  position: absolute;
  bottom: 6px;
  width: 7px;
  background: #ffffff;
  border: 1px solid #707070;
}

.icon-inbox .io-doc::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  height: 1px;
  background: #3355cc;
  box-shadow: 0 3px 0 #3355cc, 0 6px 0 #3355cc;
}

.icon-inbox .io-doc1 {
  left: 3px;
  height: 13px;
}

.icon-inbox .io-doc2 {
  left: 11px;
  height: 17px;
  z-index: 1;
}

.icon-inbox .io-doc3 {
  left: 19px;
  height: 13px;
}

.icon-inbox .io-flag {
  position: absolute;
  bottom: 19px;
  left: 12px;
  width: 5px;
  height: 4px;
  background: #cc0000;
  border: 1px solid #800000;
  z-index: 2;
}

/* Clippy desktop assistant widget (persistent, outside the window system) */
.clippy-widget {
  position: fixed;
  right: 18px;
  bottom: 38px;
  z-index: 50; /* above desktop icons/wallpaper, below every app window (100+) */
  display: flex;
  align-items: flex-end;
  gap: 14px;
  transform: translate(220px, 60px) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(.34, 1.56, .64, 1), opacity 0.35s ease;
}

.clippy-widget.visible {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.clippy {
  flex: 0 0 auto;
  width: 60px;
  height: 112px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  animation: clippy-bob 3.2s ease-in-out infinite;
}

.clippy:focus {
  outline: 1px dotted #fff;
  outline-offset: 2px;
}

.clippy-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes clippy-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-1.5deg); }
}

/* Eyes stay put — only the white scales vertically around its center */
.clippy-eye {
  /* no transform on the group so pupils never move */
}

.clippy-eye-white {
  transform-origin: center;
  transform-box: fill-box;
  animation: clippy-blink 5s ease-in-out infinite;
}

.clippy-eye-r .clippy-eye-white {
  animation-delay: 0s; /* blink in sync with left eye */
}

@keyframes clippy-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  90% { transform: scaleY(0.15); }
  92% { transform: scaleY(1); }
}

.clippy-pupil {
  /* pupils stay fixed in place */
}

.clippy:hover .clippy-wire-front,
.clippy:focus .clippy-wire-front {
  stroke: #eef;
}

/* Keep the gentle float (clippy-bob) while the bubble is open.
   Only suppress blink + the periodic wave/spin/shake (those are
   paused in JS via clearInterval when bubble-open). */
.clippy-widget.bubble-open .clippy {
  animation: clippy-bob 3.2s ease-in-out infinite;
}

.clippy-widget.bubble-open .clippy-eye-white {
  animation: none;
}

/* Idle fun classes must not override bob while the bubble is open */
.clippy-widget.bubble-open .clippy.clippy-idle-wave,
.clippy-widget.bubble-open .clippy.clippy-idle-spin,
.clippy-widget.bubble-open .clippy.clippy-idle-shake {
  animation: clippy-bob 3.2s ease-in-out infinite;
}

/* Idle "funny" animations played while the bubble is collapsed */
.clippy.clippy-idle-wave {
  animation: clippy-idle-wave 1.2s ease-in-out;
}

@keyframes clippy-idle-wave {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(6deg); }
}

.clippy.clippy-idle-spin {
  animation: clippy-idle-spin 1.2s ease-in-out;
}

@keyframes clippy-idle-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

.clippy.clippy-idle-shake {
  animation: clippy-idle-shake 1.2s ease-in-out;
}

@keyframes clippy-idle-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-4px) rotate(-3deg); }
  30% { transform: translateX(4px) rotate(3deg); }
  45% { transform: translateX(-4px) rotate(-3deg); }
  60% { transform: translateX(4px) rotate(3deg); }
  75% { transform: translateX(-2px); }
}

.clippy-bubble {
  display: none;
  flex: 1 1 auto;
  position: relative;
  max-width: 320px;
  background: #ffffe1;
  color: #1a1a1a;
  border: 1px solid #808000;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  min-height: 100px;
  margin-bottom: 6px;
}

.clippy-widget.bubble-open .clippy-bubble {
  display: block;
}

.clippy-bubble::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 22px;
  border: 10px solid transparent;
  border-left-color: #ffffe1;
}

.clippy-bubble::before {
  content: "";
  position: absolute;
  right: -22px;
  bottom: 21px;
  border: 11px solid transparent;
  border-left-color: #808000;
  z-index: -1;
}

.clippy-greeting {
  margin: 0 0 10px;
  font-weight: bold;
  color: #1a1a1a;
}

.clippy-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clippy-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #d8d896;
  padding: 6px 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #0000cc;
  text-decoration: underline;
  cursor: pointer;
}

.clippy-option:last-child {
  border-bottom: none;
}

.clippy-option:hover,
.clippy-option:focus {
  background: #fff6b0;
}

.clippy-option.clippy-category {
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px 6px;
}

.clippy-option.clippy-category::before {
  content: "▸ ";
  color: #808000;
}

.clippy-answer {
  color: #1a1a1a;
}

.clippy-answer p {
  margin: 0 0 10px;
}

.clippy-answer p:last-child {
  margin-bottom: 0;
}

.clippy-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  background: #fff6b0;
  border: 1px solid #a08000;
  border-radius: 12px;
  padding: 5px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #1a1a1a;
  cursor: pointer;
}

.clippy-back:hover,
.clippy-back:focus {
  background: #ffe98a;
}

.clippy-back:active {
  background: #ffdf6b;
}

/* Photo (256-color retro) */
.profile-photo {
  width: 120px;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  background: var(--win-white);
  display: block;
  flex-shrink: 0;
}

/* Welcome page layout */
.welcome-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.welcome-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.welcome-id h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
}
.welcome-role {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: bold;
}
.welcome-meta {
  margin: 0 0 8px;
  font-size: 13px;
}
.welcome-pitch {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.welcome-strengths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  background: #f3f3f3;
  padding: 10px;
}
.w-strength {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.35;
  color: #000;
}
.w-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--title-active);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-note {
  margin: 0;
  font-size: 13px;
}
.welcome-cta {
  margin-top: 0;
}


.about-photo-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.open-to-work {
  display: inline-block;
  background: #008000;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  margin-top: 6px;
  border: 1px solid #004000;
}

/* Resize handles – invisible hit targets with correct cursors */
.resize-handle {
  position: absolute;
  z-index: 20;
  background: transparent;
}
.resize-n  { top: -3px; left: 6px; right: 6px; height: 6px; cursor: n-resize; }
.resize-s  { bottom: -3px; left: 6px; right: 6px; height: 6px; cursor: s-resize; }
.resize-e  { right: -3px; top: 6px; bottom: 6px; width: 6px; cursor: e-resize; }
.resize-w  { left: -3px; top: 6px; bottom: 6px; width: 6px; cursor: w-resize; }
.resize-ne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: ne-resize; }
.resize-nw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nw-resize; }
.resize-se { bottom: -3px; right: -3px; width: 12px; height: 12px; cursor: se-resize; }
.resize-sw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: sw-resize; }

/* Classic Win95 size grip in bottom-right corner */
.resize-se::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(135deg, transparent 50%, var(--win-dark) 50%) no-repeat,
    linear-gradient(135deg, transparent 60%, var(--win-light) 60%) no-repeat;
  background-size: 10px 10px, 8px 8px;
  background-position: 0 0, 1px 1px;
  pointer-events: none;
  opacity: 0.7;
}

/* Fixed-size windows – no resize handles, no maximize */
.window.no-resize .resize-handle {
  display: none;
}

/* True maximized state – fill #desktop (taskbar is outside #desktop) */
.window.maximized {
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  border-width: 2px;
}
.window.maximized .resize-handle {
  display: none;
}

/* HTML file icon */
.icon-htm {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #808080;
  margin: 0 auto;
  position: relative;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: #000080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  font-weight: bold;
}
.icon-htm::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-left: 8px solid #c0c0c0;
  border-top: 8px solid transparent;
}

/* Internet Explorer chrome */
.ie-toolbar {
  display: flex;
  gap: 12px;
  padding: 3px 8px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  flex-shrink: 0;
}
.ie-menu {
  cursor: default;
  padding: 1px 2px;
}
.ie-menu:hover {
  background: var(--title-active);
  color: #fff;
}
.ie-address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  flex-shrink: 0;
}
.ie-addr-label {
  flex-shrink: 0;
}
.ie-addr-field {
  flex: 1;
  background: var(--win-white);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
}
.ie-addr-icon { font-size: 12px; }
.ie-body {
  background: var(--win-white) !important;
}

/* Notepad chrome */
.notepad-meme {
  float: right;
  width: 280px;
  margin: 4px 0 12px 16px;
}

.notepad-meme img {
  display: block;
  width: 100%;
  height: auto;
}

.notepad-meme img {
  display: block;
  width: 100%;
  height: auto;
}

.notepad-toolbar {
  display: flex;
  gap: 12px;
  padding: 2px 8px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  flex-shrink: 0;
}
.np-menu {
  cursor: default;
  padding: 1px 2px;
}
.np-menu:hover {
  background: var(--title-active);
  color: #fff;
}
.notepad-body {
  background: var(--win-white) !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 13px !important;
  line-height: 1.45;
  outline: none;
}

/* Read-only tooltip */
.readonly-tooltip {
  position: fixed;
  z-index: 9999;
  background: #ffffe1;
  color: #000;
  border: 1px solid #000;
  padding: 4px 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.readonly-tooltip.show {
  opacity: 1;
}

/* Soft off-white page area for Notepad & IE – easier on the eyes vs pure white */
.notepad-body,
.ie-body {
  background: #e8e8e8 !important;
  color: #1a1a1a !important;
}
.notepad-body a,
.ie-body a {
  color: #0000cc !important;
}

/* Bottom-right toast notification (Win95-ish popup) */
.toast-stack {
  position: fixed;
  right: 12px;
  bottom: 42px; /* above taskbar */
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 24px));
}
.toast {
  pointer-events: auto;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 3px 3px 6px rgba(0,0,0,0.4);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  min-width: 260px;
  animation: toastIn 0.25s ease-out;
}
.toast .title-bar {
  cursor: pointer;
  height: 20px;
  font-size: 11px;
}
.toast-body {
  display: flex;
  gap: 10px;
  padding: 10px 12px 12px;
  align-items: flex-start;
}
.toast-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.toast-text {
  flex: 1;
  line-height: 1.45;
  white-space: pre-line;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Outlook Express style layout */
.outlook-toolbar {
  display: flex;
  gap: 12px;
  padding: 2px 8px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  flex-shrink: 0;
}
.ol-menu {
  cursor: default;
  padding: 1px 2px;
}
.ol-menu:hover {
  background: var(--title-active);
  color: #fff;
}
.outlook-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 340px;
  max-height: 560px;
  background: var(--win-bg);
  gap: 4px;
  padding: 4px;
}
/* Left folder pane */
.outlook-folders {
  width: 150px;
  flex-shrink: 0;
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  background: #ffffff;
  padding: 4px 0 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #000;
  overflow-y: auto;
}
.ol-tree-root {
  padding: 4px 8px 6px;
  font-weight: bold;
  color: #000;
}
.ol-folder {
  padding: 3px 8px 3px 18px;
  cursor: pointer;
  white-space: nowrap;
  color: #000;
}
.ol-folder:hover {
  background: #d4d0c8;
}
.ol-folder.active {
  background: var(--title-active);
  color: #fff;
}
.ol-count {
  font-size: 11px;
  opacity: 0.9;
}
/* Right side: list + preview stacked */
.outlook-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--win-bg);
  gap: 4px;
}
.outlook-list-wrap {
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.outlook-list-header {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  color: var(--text);
  flex-shrink: 0;
}
.outlook-list-header span {
  padding: 3px 8px;
  border-right: 1px solid var(--win-dark);
}
.outlook-list {
  height: auto;
  max-height: 100px;
  overflow-y: auto;
  background: #ffffff;
  border: none;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #000;
  flex-shrink: 0;
}
.ol-msg {
  display: grid;
  grid-template-columns: 130px 1fr 64px;
  gap: 0;
  padding: 3px 0;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  align-items: center;
  background: #ffffff;
  color: #000;
}
.ol-msg:hover {
  background: #e8e8f0;
}
.ol-msg.selected {
  background: var(--title-active);
  color: #fff;
}
.ol-msg .ol-from,
.ol-msg .ol-subject,
.ol-msg .ol-date {
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ol-msg .ol-from { font-weight: bold; }
.ol-msg .ol-date {
  text-align: right;
  font-size: 11px;
  opacity: 0.9;
}
/* Reading pane fills remaining space */
.outlook-read {
  flex: 1;
  overflow: auto;
  background: #ffffff;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #000;
  line-height: 1.45;
  min-height: 140px;
  border: 2px solid;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
}
.ol-placeholder {
  color: #666;
  margin: 0;
}
.ol-headers {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #b0b0b0;
}
.ol-headers div {
  margin-bottom: 2px;
}
.ol-headers strong {
  display: inline-block;
  min-width: 56px;
}
.ol-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ol-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #ffffff;
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #0a0a0a;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  cursor: pointer;
}
.ol-attachment:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #0a0a0a;
}
.ol-att-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
.ol-att-label {
  text-decoration: underline;
  color: #000080;
}
.ol-att-size {
  color: #555555;
}
.ol-mail-body {
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}
.ol-mail-body code {
  background: #e8e8e8;
  border: 1px solid #c0c0c0;
  padding: 0 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}


/* Welcome.htm */
.homepage-body {
  background: #ffffff !important;
  color: #1a1a1a !important;
  text-align: center;
  padding: 16px 20px 20px !important;
}
.homepage-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  background: #ffffff;
  padding: 0;
}
.homepage-gif {
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  display: block;
}
.homepage-note {
  margin: 0 auto;
  max-width: 34em;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a1a;
}
.homepage-smiley {
  font-size: 28px;
  line-height: 1;
  margin: 10px 0 4px;
}


/* Game IE page */
.game-page {
  background: #000000 !important;
  color: #f0f0f0 !important;
}
.game-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: nowrap;
}
.game-copy {
  flex: 1;
  min-width: 0;
}
.game-copy h2 {
  color: #ffffff;
}
.game-subtitle {
  margin: -4px 0 10px;
  font-size: 13px;
  color: #bbbbbb;
}
.game-copy p {
  color: #e8e8e8;
}
.game-cover {
  /* original asset; scaled ~20% larger in the layout */
  width: 264px;
  max-width: 48%;
  height: auto;
  border: 1px solid #555;
  display: block;
  flex-shrink: 0;
  order: 2;
}
.game-links {
  margin-top: 14px;
  font-size: 13px;
}
.game-links a {
  color: #6ab0ff !important;
  text-decoration: underline;
}
.game-link-sep {
  margin: 0 6px;
  color: #888;
}
/* ===== Shutdown sequence ===== */
body.shutting-down #desktop,
body.shutting-down #taskbar,
body.shutting-down #start-menu,
body.shutting-down .clippy-widget {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.shutdown-complete {
  cursor: none;
}
body.shutdown-complete * {
  pointer-events: none !important;
}

.shutdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  color: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
}
.shutdown-overlay[hidden] {
  display: none !important;
}
.shutdown-dos {
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  background: #000;
  color: #c0c0c0;
  overflow: hidden;
}
.shutdown-dos pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.45;
  color: #c0c0c0;
}
.shutdown-signal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.shutdown-signal[hidden] {
  display: none !important;
}
.signal-lost {
  text-align: center;
  color: #d8d8d8;
  font-family: var(--font-ui), sans-serif;
  letter-spacing: 0.12em;
}
.signal-lost p {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #e6e6e6;
}
.signal-lost .signal-sub {
  font-size: 12px;
  font-weight: 600;
  color: #9a9a9a;
  letter-spacing: 0.18em;
}
.signal-bars {
  width: 72px;
  height: 48px;
  margin: 0 auto 12px;
  border: 2px solid #444;
  background:
    repeating-linear-gradient(
      0deg,
      #111 0 2px,
      #1a1a1a 2px 4px
    );
  box-shadow: inset 0 0 12px #000;
  position: relative;
}
.signal-bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255,0,0,0.15) 50%, transparent 60%);
  animation: signal-noise 1.2s steps(2) infinite;
}
@keyframes signal-noise {
  0% { opacity: 0.3; transform: translateY(0); }
  100% { opacity: 0.7; transform: translateY(3px); }
}


/* CRT turn-off — realistic sequence driven by CSS custom properties set from
   site-data.js (shutdown.crt). Phases run sequentially via delays:
   flicker → vertical collapse → white blip → phosphor afterglow. */
.shutdown-crt {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shutdown-crt[hidden] {
  display: none !important;
}
.crt-screen {
  width: 100%;
  height: 100%;
  background: #b0b0b0;
  transform-origin: center center;
}
.shutdown-crt.crt-off .crt-screen {
  animation:
    crt-flicker var(--crt-flicker-ms, 60ms) steps(2) var(--crt-flicker-count, 3),
    crt-collapse var(--crt-collapse-ms, 180ms) ease-in var(--crt-collapse-delay, 0ms) forwards,
    crt-blip var(--crt-blip-ms, 220ms) linear var(--crt-blip-delay, 0ms) forwards,
    crt-afterglow var(--crt-afterglow-ms, 500ms) ease-out var(--crt-afterglow-delay, 0ms) forwards;
}

/* 1) Quick power flicker — the image stutters a couple of times before dying. */
@keyframes crt-flicker {
  0%   { opacity: 1; filter: brightness(1); }
  50%  { opacity: 0.15; filter: brightness(0.35); }
  100% { opacity: 1; filter: brightness(1); }
}

/* 2) Vertical collapse — the raster snaps down into a bright horizontal line. */
@keyframes crt-collapse {
  0%   { transform: scaleY(1) scaleX(1); background: #c8c8c8; filter: brightness(1); }
  30%  { transform: scaleY(0.5) scaleX(1); background: #d8d8d8; filter: brightness(1.2); }
  60%  { transform: scaleY(0.12) scaleX(1); background: #e8e8e8; filter: brightness(1.6); }
  100% { transform: scaleY(0.02) scaleX(1); background: #fff; filter: brightness(2.2); }
}

/* 3) White blip — the collapsed line flares bright and lingers at center. */
@keyframes crt-blip {
  0%   { transform: scaleY(0.02) scaleX(1); background: #fff; filter: brightness(2.4); opacity: 1; }
  45%  { transform: scaleY(0.03) scaleX(1); background: #fff; filter: brightness(2.8); opacity: 1; }
  100% { transform: scaleY(0.02) scaleX(1); background: #fff; filter: brightness(2.2); opacity: 1; }
}

/* 4) Phosphor afterglow — the line dims, shrinks and fades to black. */
@keyframes crt-afterglow {
  0%   { transform: scaleY(0.02) scaleX(1); background: #fff; filter: brightness(2); opacity: 1; }
  30%  { transform: scaleY(0.015) scaleX(0.6); background: #e8e8e8; filter: brightness(1.4); opacity: 0.8; }
  60%  { transform: scaleY(0.01) scaleX(0.3); background: #c0c0c0; filter: brightness(0.8); opacity: 0.5; }
  100% { transform: scaleY(0) scaleX(0); background: #000; filter: brightness(0); opacity: 0; }
}

/* ===== PowerPoint 95 simulation ===== */
.ppt-toolbar {
  display: flex;
  gap: 14px;
  padding: 2px 8px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ppt-body {
  background: var(--win-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ppt-stage {
  background: #ffffff;
  border: 2px solid;
  border-color: #404040 #dfdfdf #dfdfdf #404040;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
}

.ppt-slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 40px;
  color: #1a1a2e;
  background: #eef1fb;
  box-sizing: border-box;
}

.ppt-slide.active {
  display: flex;
}

.ppt-slide-title {
  align-items: center;
  text-align: center;
  background: #dfe4f7;
}

.ppt-slide h1 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #1c2a6b;
  font-weight: bold;
}

.ppt-slide h2 {
  font-size: 22px;
  margin: 0 0 18px;
  color: #1c2a6b;
  font-weight: bold;
  border-bottom: 3px solid #d4a017;
  padding-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.ppt-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: #a5710a;
  font-weight: bold;
  margin: 0 0 6px;
}

.ppt-sub {
  font-size: 15px;
  color: #333333;
  margin: 0;
}

.ppt-bullets {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #222222;
  width: 100%;
  box-sizing: border-box;
}

.ppt-bullets li {
  margin-bottom: 10px;
}

.ppt-bullets li::marker {
  color: #d4a017;
}

.ppt-slide-meme {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #dfe4f7;
  gap: 16px;
}

.ppt-meme {
  margin: 0;
  max-width: 260px;
  width: 70%;
}

/* Larger meme (used on the Case D optimization slide) */
.ppt-meme-lg {
  max-width: 406px;
  width: 100%;
}

.ppt-meme img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep the meme at its original size instead of shrinking to the default cap */
.ppt-meme-original {
  max-width: none;
  width: auto;
}
.ppt-meme-original img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.ppt-meme figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #444444;
  font-style: italic;
}

.ppt-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 8px;
  background: var(--win-bg);
  font-family: var(--font-ui);
  font-size: 12px;
  color: #000;
  border-top: 1px solid var(--win-dark);
}

/* Classic Win95 raised buttons — high contrast */
.ppt-nav button {
  min-width: 78px;
  height: 24px;
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  background: #c0c0c0;
  color: #000000;
  font-size: 12px;
  line-height: 1;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: bold;
  box-shadow: none;
}

.ppt-nav button:hover:not(:disabled) {
  background: #d4d0c8;
}

.ppt-nav button:focus:not(:disabled) {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.ppt-nav button:active:not(:disabled) {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  padding: 1px 11px 0 13px; /* classic pressed shift */
}

/* Disabled: grey label + light emboss (readable, not black-on-grey) */
.ppt-nav button:disabled,
.ppt-nav button[aria-disabled="true"],
.ppt-nav button.is-disabled {
  color: #808080 !important;
  text-shadow: 1px 1px 0 #ffffff;
  background: #c0c0c0;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  cursor: not-allowed;
  padding: 0 12px;
}
.ppt-nav button.is-disabled:active {
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  padding: 0 12px;
}

.ppt-counter {
  min-width: 52px;
  text-align: center;
  color: #000;
  font-weight: bold;
  font-size: 12px;
}

/* ============ Dial-Up Networking (Contact.exe) ============ */
.dun-body {
  padding: 18px 20px 14px;
}
.dun-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.dun-network-img {
  width: 118px;
  height: 223px;
  flex-shrink: 0;
  image-rendering: pixelated;
  object-fit: contain;
}
.dun-content {
  flex: 1;
  min-width: 0;
}
.dun-intro {
  margin: 0 0 6px;
  font-size: 13px;
}
.dun-input {
  width: 100%;
  margin-bottom: 16px;
  padding: 3px 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  background: #fff;
  color: #000;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  outline: none;
}
.dun-input:focus {
  outline: 1px dotted #000;
  outline-offset: -3px;
}
.dun-modem {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.dun-phone-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  image-rendering: pixelated;
  object-fit: contain;
}
.dun-modem-name {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 13px;
}
.dun-configure {
  min-width: 80px;
}
.dun-configure:disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #fff;
  background: var(--button-face);
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  cursor: not-allowed;
}
.dun-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: var(--win-bg);
  border-top: 2px solid var(--win-light);
}
.dun-back:disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #fff;
  background: var(--button-face);
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  cursor: not-allowed;
}

/* Modem connection loading screen */
.dun-loading-body {
  padding: 18px 20px;
}
.dun-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.dun-status-text {
  font-family: var(--font-ui);
  font-size: 13px;
}
.dun-progress {
  height: 18px;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  background: #fff;
  padding: 2px;
}
/* Windows 95 progress bar: a row of small blue blocks.
   No transition — blocks are revealed one at a time (discrete steps). */
.dun-progress-fill {
  height: 100%;
  width: 0%;
  background-image: repeating-linear-gradient(
    90deg,
    #000080 0px,
    #000080 6px,
    transparent 6px,
    transparent 8px
  );
}
.dun-loading-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
