/* AnshulOS — Windows 95/98 desktop portfolio */

:root {
  --teal: #008080;
  --win-bg: #c0c0c0;
  --win-face: #c0c0c0;
  --title-active: #000080;
  --title-active-2: #1084d0;
  --title-inactive: #808080;
  --title-inactive-2: #b0b0b0;
  --text: #000;
  --dos-green: #00ff00;
  --dos-amber: #ffff55;
  --font-ui: Tahoma, "MS Sans Serif", Verdana, Geneva, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --border-light: #dfdfdf;
  --border-white: #fff;
  --border-shadow: #808080;
  --border-dark: #000;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text);
  user-select: none;
}

.hidden { display: none !important; }

/* ─── Desktop ─── */
.desktop {
  position: fixed;
  inset: 0;
  bottom: 32px;
  background: #008080 url('assets/wallpaper.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.desktop-icons {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  max-height: calc(100% - 16px);
  width: 80px;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding: 4px 2px;
  border: 1px dotted transparent;
  cursor: default;
  text-align: center;
}

.desktop-icon:hover {
  background: rgba(0, 0, 128, 0.35);
  border-color: #fff;
}

.desktop-icon.selected {
  background: rgba(0, 0, 128, 0.5);
  border-color: #fff;
}

.desktop-icon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  margin-bottom: 4px;
}

.desktop-icon span {
  font-size: 11px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.2;
  word-break: break-word;
}

/* ─── Desktop sticky note ─── */
.desktop-sticky {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 200px;
  padding: 10px 12px 12px;
  background: #ffffa5;
  border: 1px solid #c4b800;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  z-index: 0;
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
}

.desktop-sticky-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.desktop-sticky-title {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #000080;
}

.desktop-sticky-text {
  margin: 0;
  color: #222;
}

/* ─── Windows layer ─── */
.windows-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.os-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 120px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
  box-shadow: 1px 1px 0 var(--border-dark);
  pointer-events: auto;
  resize: both;
  overflow: hidden;
}

.os-window.maximized {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  resize: none;
}

.os-window.minimized {
  display: none;
}

.os-window.inactive .titlebar {
  background: linear-gradient(90deg, var(--title-inactive), var(--title-inactive-2));
}

.os-window.inactive .titlebar-text { color: #d4d0c8; }

/* Title bar */
.titlebar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 3px;
  background: linear-gradient(90deg, var(--title-active), var(--title-active-2));
  color: #fff;
  cursor: default;
  flex-shrink: 0;
}

.titlebar-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.titlebar-text {
  flex: 1;
  font: bold 11px var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-btns {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.tb-btn {
  width: 16px;
  height: 14px;
  padding: 0;
  border: 1px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  background: var(--win-face);
  font: bold 9px/12px var(--font-ui);
  color: #000;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-btn:active {
  border-color: var(--border-dark) var(--border-white) var(--border-white) var(--border-dark);
}

/* Menu bar */
.menubar {
  display: flex;
  gap: 0;
  padding: 2px 4px;
  background: var(--win-face);
  border-bottom: 1px solid var(--border-shadow);
  flex-shrink: 0;
}

.menubar span {
  padding: 2px 6px;
  font-size: 11px;
  cursor: default;
}

.menubar span:hover {
  background: #000080;
  color: #fff;
}

.menubar u { text-decoration: underline; }

/* Window body */
.win-content {
  flex: 1;
  overflow: auto;
  background: var(--win-face);
  min-height: 0;
  display: flex;
  flex-direction: column;
  user-select: text;
  -webkit-user-select: text;
}

.win-content.white-bg { background: #fff; }

.win-content.no-scroll {
  overflow: hidden;
}

/* MS-DOS window — fill entire content area, no gray gaps */
.win-content.dos-win {
  background: #000;
  padding: 0;
  overflow: hidden;
}

/* Status bar */
.win-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 2px 4px;
  border-top: 1px solid var(--border-shadow);
  background: var(--win-face);
  font-size: 11px;
  flex-shrink: 0;
}

.win-statusbar span {
  border: 1px inset var(--border-shadow);
  padding: 1px 4px;
  flex: 1;
}

/* ─── Explorer / folder view ─── */
.explorer-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  font-size: 11px;
  border-bottom: 1px solid var(--border-shadow);
  flex-shrink: 0;
}

.address-row input {
  flex: 1;
  padding: 2px 4px;
  border: 2px inset var(--border-shadow);
  font: 11px var(--font-mono);
}

.xp-small-btn {
  padding: 2px 8px;
  border: 2px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  background: var(--win-face);
  font: 11px var(--font-ui);
  cursor: pointer;
}

.folder-view {
  flex: 1;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
  overflow: auto;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding: 4px;
  border: 1px dotted transparent;
  cursor: default;
  text-align: center;
}

.folder-item:hover {
  background: #000080;
  color: #fff;
}

.folder-item img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  margin-bottom: 4px;
}

.folder-item span {
  font-size: 11px;
  line-height: 1.2;
}

/* ─── MS-DOS terminal ─── */
.dos-screen {
  flex: 1;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #00ff00;
  font: 13px/1.4 var(--font-mono);
  padding: 8px 10px;
  white-space: pre-wrap;
  overflow: auto;
  box-sizing: border-box;
}

.dos-screen .prompt { color: #00ff00; }
.dos-screen .path { color: #ffff55; }
.dos-screen .cmd { color: #ffffff; }
.dos-screen .out { color: #00ff00; }
.dos-screen .dim { color: #55ff55; }
.dos-screen .hl { color: #ffff55; }

.dos-blink {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--dos-green);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ─── Skills window (readable inventory) ─── */
.win-content.skills-win {
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.win-content.resume-win {
  padding: 0;
  overflow: hidden;
  background: #808080;
}

.skills-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.skills-terminal-bar {
  flex-shrink: 0;
  background: #000;
  color: #ffff55;
  font: 12px/1.4 var(--font-mono);
  padding: 6px 10px;
  border-bottom: 1px solid #404040;
}

.skills-terminal-bar .cmd {
  color: #fff;
}

.skills-bar-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #55ff55;
}

.skills-panel {
  flex: 1;
  overflow: auto;
  padding: 10px 12px 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.skill-group {
  margin-bottom: 10px;
}

.skill-group h3 {
  margin: 0 0 6px;
  font: bold 11px var(--font-ui);
  color: #000080;
  letter-spacing: 0.3px;
}

.skill-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-group li {
  background: #ece9d8;
  border: 1px solid #808080;
  box-shadow: 1px 1px 0 #fff inset;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.3;
  color: #000;
}

.skills-foot {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #c0c0c0;
  font-size: 10px;
  line-height: 1.45;
  color: #444;
}

@media (max-width: 768px) {
  .skills-panel {
    padding: 12px 14px 14px;
  }

  .skill-group h3 {
    font-size: 12px;
  }

  .skill-group li {
    font-size: 12px;
    padding: 4px 10px;
  }

  .skills-foot {
    font-size: 11px;
  }
}

/* ─── About / welcome page ─── */
.welcome-page {
  padding: 16px 20px;
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
  min-height: 200px;
}

.welcome-page h1 {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 12px;
  font-family: var(--font-ui);
}

.welcome-page .avatar {
  float: right;
  width: 80px;
  height: 80px;
  border: 2px solid;
  border-color: var(--border-shadow) var(--border-white) var(--border-white) var(--border-shadow);
  background: #316ac5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 0 12px 16px;
}

.welcome-page a { color: #0000ee; }
.welcome-page a:visited { color: #551a8b; }
.welcome-page a.about-jump { cursor: pointer; text-decoration: underline; }

.about-hook {
  font-size: 12px;
  margin: 0 0 10px;
  padding: 6px 8px;
  background: #e8f4ff;
  border: 1px solid #9ab8d4;
}

.welcome-meta {
  margin-top: 16px;
  padding: 8px;
  border: 2px inset var(--border-shadow);
  background: #ffffcc;
  font-size: 11px;
}

/* ─── Projects gallery ─── */
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fff;
}

.project-card {
  border: 2px solid;
  border-color: var(--border-shadow) var(--border-white) var(--border-white) var(--border-shadow);
  background: var(--win-face);
  overflow: hidden;
}

.project-shot {
  height: 90px;
  background: #000080;
  border-bottom: 2px solid var(--border-shadow);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  image-rendering: auto;
}

.project-shot.meshpay { background: #0a246a; }
.project-shot.hotel { background: #1a5c1a; }
.project-shot.semforge { background: #5c1a1a; }
.project-shot.placeprep { background: #1a1a6a; }
.project-shot.excelgens { background: #5c4a10; }
.project-shot.escrow { background: #4a1a5c; }

.project-info {
  padding: 8px;
  font-size: 11px;
}

.project-info h3 {
  margin: 0 0 4px;
  font-size: 12px;
}

.project-info p {
  margin: 0 0 6px;
  color: #333;
  line-height: 1.35;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 6px;
}

.project-tags i {
  font-style: normal;
  padding: 1px 4px;
  background: #ffffcc;
  border: 1px solid #808080;
  font-size: 9px;
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-links a {
  padding: 2px 8px;
  border: 2px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  background: var(--win-face);
  color: #000;
  text-decoration: none;
  font-size: 10px;
}

.project-links a:active {
  border-color: var(--border-dark) var(--border-white) var(--border-white) var(--border-dark);
}

/* ─── Certifications ─── */
.cert-view {
  padding: 10px 12px;
  background: #fff;
  font-size: 11px;
}

.cert-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  margin-bottom: 8px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fffff0;
}

.cert-icon {
  flex-shrink: 0;
  image-rendering: pixelated;
}

.cert-body h3 {
  margin: 0 0 2px;
  font-size: 11px;
  color: #000080;
}

.cert-issuer {
  margin: 0 0 6px;
  font-size: 10px;
  color: #444;
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.cert-table td {
  padding: 1px 4px 1px 0;
  vertical-align: top;
}

.cert-table td:first-child {
  color: #666;
  width: 80px;
}

.cert-active {
  color: #006600;
  font-weight: bold;
}

.cert-summary {
  margin: 0 0 6px;
  font-size: 10px;
  line-height: 1.4;
  color: #333;
}

.cert-table a {
  color: #0000ee;
}

.cert-folder-link {
  margin: 4px 0 0;
  font-size: 10px;
}

.cert-folder-link a {
  color: #0000ee;
}

.resume-download {
  color: #0000ee;
  font-weight: bold;
}

.cert-note {
  margin: 8px 0 0;
  font-size: 9px;
  color: #888;
  font-style: italic;
}

/* ─── Notes / learning log (legacy) ─── */
.log-view {
  padding: 10px 12px;
  background: #fff;
  font-size: 11px;
  font-family: var(--font-mono);
  line-height: 1.5;
}

.log-entry {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #808080;
}

.log-entry time {
  color: #000080;
  font-weight: bold;
}

/* ─── Contact ─── */
.contact-view {
  padding: 16px;
  background: #fff;
  text-align: center;
}

.contact-view h2 {
  font-size: 14px;
  margin: 0 0 16px;
}

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  text-decoration: none;
  color: #000;
}

.contact-icon-link .ci-box {
  width: 40px;
  height: 40px;
  border: 2px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 4px;
}

.contact-icon-link .ci-box.gh { background: #24292e; color: #fff; }
.contact-icon-link .ci-box.in { background: #0077b5; color: #fff; }
.contact-icon-link .ci-box.tg { background: #26a5e4; color: #fff; }
.contact-icon-link .ci-box.ml { background: #c0c0c0; color: #000; }

.contact-icon-link span { font-size: 10px; }

.contact-form-wrap {
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid #808080;
}

.contact-form-wrap label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 3px 5px;
  border: 2px inset #808080;
  font: 11px var(--font-ui);
  margin-top: 2px;
}

/* ─── Resume ─── */
.resume-view {
  padding: 12px 16px;
  background: #fff;
  font-size: 11px;
  line-height: 1.45;
}

.resume-pdf-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  background: #808080;
}

.resume-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  background: var(--win-face);
  border-bottom: 2px solid var(--border-shadow);
  font-size: 11px;
}

.resume-toolbar-label {
  font-weight: bold;
  color: #000080;
}

.resume-toolbar-btn {
  padding: 2px 8px;
  background: var(--win-face);
  border: 2px solid;
  border-color: var(--border-white) var(--border-shadow) var(--border-shadow) var(--border-white);
  text-decoration: none;
  color: #000;
  font-size: 10px;
  white-space: nowrap;
}

.resume-toolbar-btn:active {
  border-color: var(--border-shadow) var(--border-white) var(--border-white) var(--border-shadow);
}

.resume-pdf-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 360px;
  border: 0;
  background: #404040;
}

.resume-fallback {
  padding: 16px;
}

/* ─── System info ─── */
.sysinfo-view {
  padding: 12px;
  background: var(--win-face);
}

.sysinfo-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dotted #808080;
  font-size: 11px;
}

.sys-meter {
  margin: 8px 0;
}

.sys-meter label {
  display: block;
  font-size: 10px;
  margin-bottom: 2px;
}

.sys-meter .bar {
  height: 14px;
  border: 2px inset #808080;
  background: #fff;
}

.sys-meter .bar span {
  display: block;
  height: 100%;
  background: #000080;
}

/* ─── Taskbar ─── */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 2px 3px;
  background: var(--win-face);
  border-top: 2px solid var(--border-white);
  box-shadow: inset 0 1px 0 var(--border-light);
  z-index: 9999;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 4px;
  border: 2px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  background: var(--win-face);
  font: bold 11px var(--font-ui);
  cursor: default;
  min-width: 54px;
}

.start-btn:active,
.start-btn.active {
  border-color: var(--border-dark) var(--border-white) var(--border-white) var(--border-dark);
}

.start-btn img { image-rendering: pixelated; }

.taskbar-apps {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.taskbar-item {
  max-width: 200px;
  min-width: 120px;
  padding: 3px 10px;
  border: 2px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  background: var(--win-face);
  font: 11px var(--font-ui);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.taskbar-item.active {
  border-color: var(--border-dark) var(--border-white) var(--border-white) var(--border-dark);
  font-weight: bold;
}

.taskbar-item img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border: 1px inset var(--border-shadow);
  background: var(--win-face);
  font-size: 10px;
}

.tray-disk {
  display: flex;
  align-items: center;
  gap: 4px;
}

.disk-bar {
  width: 40px;
  height: 10px;
  border: 1px inset #808080;
  background: #fff;
}

.disk-fill {
  display: block;
  height: 100%;
  width: 62%;
  background: #000080;
}

.tray-clock {
  font-size: 11px;
  min-width: 58px;
  text-align: right;
}

/* ─── Start menu ─── */
.start-menu {
  position: fixed;
  bottom: 32px;
  left: 2px;
  width: 220px;
  background: var(--win-face);
  border: 2px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  box-shadow: 2px 2px 0 #000;
  z-index: 10000;
}

.start-menu-header {
  padding: 8px 12px;
  background: linear-gradient(180deg, #000080, #1084d0);
  color: #fff;
}

.start-menu-user {
  display: block;
  font: bold 13px var(--font-ui);
}

.start-menu-sub {
  font-size: 10px;
  opacity: 0.9;
}

.start-menu-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.start-menu-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 11px;
  cursor: default;
}

.start-menu-list li:hover {
  background: #000080;
  color: #fff;
}

.start-menu-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.start-menu-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.start-menu-footer {
  border-top: 1px solid var(--border-shadow);
  padding: 4px;
}

.start-shutdown {
  width: 100%;
  padding: 4px;
  border: 2px solid;
  border-color: var(--border-white) var(--border-dark) var(--border-dark) var(--border-white);
  background: var(--win-face);
  font: 11px var(--font-ui);
  text-align: left;
}

.desktop-icon {
  user-select: none;
}

.titlebar,
.taskbar,
.start-menu,
.boot-screen {
  user-select: none;
}

/* ─── Boot screen ─── */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: #000;
  color: #c0c0c0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  cursor: pointer;
}

.boot-logo {
  font: bold 28px var(--font-ui);
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.boot-text {
  font-size: 13px;
  margin: 0 0 12px;
}

.boot-bar {
  width: 240px;
  height: 16px;
  border: 2px inset #808080;
  background: #000;
  margin-bottom: 12px;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #000080;
  transition: width 0.3s linear;
}

.boot-skip {
  font-size: 10px;
  color: #808080;
  margin: 0;
}

.desktop-shell.hidden {
  display: none;
}

/* mobile-fallback removed — full AnshulOS on all viewports */

/* ─── Project detail window ─── */
.projects-folder-view {
  min-height: 180px;
}

.project-detail {
  padding: 12px;
  background: #fff;
  font-size: 11px;
}

.project-detail .project-shot {
  height: 120px;
  margin-bottom: 8px;
}

.project-detail p {
  margin: 0 0 8px;
  line-height: 1.4;
}

.project-impact {
  margin: 0 0 8px !important;
  padding: 4px 6px;
  background: #ffffcc;
  border-left: 3px solid #000080;
  font-size: 10px;
  color: #333;
}

.demo-hint {
  font-size: 10px;
  color: #444;
  margin: 0 0 8px;
  padding: 4px 6px;
  background: #ffffcc;
  border: 1px solid #808080;
}

/* ─── Drives (My Computer) ─── */
.drives-view {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid #808080;
  background: #fff;
}

.drive-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  padding: 6px;
  border: 1px dotted transparent;
  text-align: center;
  cursor: default;
  font-size: 10px;
  line-height: 1.3;
}

.drive-item:hover {
  background: #000080;
  color: #fff;
}

.drive-item img {
  image-rendering: pixelated;
  margin-bottom: 4px;
}

.sysinfo-rows {
  padding: 8px 12px;
}

.sys-hint {
  font-size: 10px;
  color: #444;
  margin: 8px 12px 0;
}

.bin-view {
  height: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 11px;
  background: #fff;
  overflow: hidden;
}

.bin-intro {
  margin: 0 0 6px;
  color: #333;
}

.bin-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bin-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted #808080;
}

.bin-item > span {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.bin-item img {
  image-rendering: pixelated;
  flex-shrink: 0;
  margin-top: 2px;
}

.bin-meta {
  font-size: 10px;
  color: #666;
}

.bin-footer {
  margin: 8px 0 0;
  font-size: 10px;
  color: #888;
  font-style: italic;
  text-align: left;
}

/* ─── Help ─── */
.help-view {
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.5;
}

.help-view h2 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #000080;
}

.help-view ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.help-dim {
  color: #666;
  font-size: 10px;
  margin: 0;
}

/* ─── Guestbook ─── */
.guestbook-wrap {
  text-align: left;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #808080;
}

.guestbook-wrap h3 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #000080;
}

.guestbook-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  margin-top: 2px;
  padding: 3px 5px;
  border: 2px inset #808080;
  font: 11px var(--font-ui);
}

.form-msg {
  font-size: 10px;
  margin: 6px 0 0;
}

.tray-sound {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
}

/* ─── Restart overlay ─── */
.restart-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  color: #c0c0c0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  z-index: 20000;
  gap: 8px;
}

.restart-sub {
  font-size: 11px;
  color: #888;
  margin: 0;
}

/* ─── Shutdown overlay (legacy) ─── */
.shutdown-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  color: #c0c0c0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  z-index: 20000;
}

@media (max-width: 768px) {
  html, body {
    height: 100%;
    height: 100dvh;
  }

  .desktop {
    bottom: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Icon grid — 4 per row, 2 rows, no scrolling */
  .desktop-icons {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    padding: 4px 2px 6px;
    overflow: hidden;
    gap: 2px 0;
    top: auto;
    left: auto;
    z-index: 20;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  }

  .desktop-icon {
    width: auto;
    max-width: none;
    padding: 3px 2px;
    touch-action: manipulation;
  }

  .desktop-icon img {
    width: 24px;
    height: 24px;
  }

  .desktop-icon span {
    font-size: 8px;
    line-height: 1.1;
  }

  .desktop-sticky {
    display: none;
  }

  /* Window area sits below the icon dock */
  .windows-layer {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .os-window {
    max-width: 100%;
    resize: none;
    max-height: 100%;
  }

  .os-window.maximized {
    position: absolute !important;
    inset: auto !important;
    left: 6px !important;
    top: 6px !important;
    width: calc(100% - 12px) !important;
    height: auto !important;
    max-height: calc(100% - 12px) !important;
  }

  .os-window .tb-btn {
    min-width: 28px;
    min-height: 26px;
    font-size: 14px;
    touch-action: manipulation;
  }

  .start-btn {
    min-height: 28px;
    padding: 0 10px;
    touch-action: manipulation;
  }

  .taskbar {
    height: 40px;
    padding: 3px 4px;
  }

  .taskbar-item {
    min-width: 72px;
    max-width: 120px;
    font-size: 10px;
    padding: 4px 6px;
    touch-action: manipulation;
  }

  .start-menu {
    bottom: 40px;
    left: 4px;
    right: 4px;
    width: auto;
    max-width: calc(100vw - 8px);
    max-height: 70vh;
    overflow-y: auto;
  }

  .start-menu-list li {
    padding: 12px 14px;
    gap: 12px;
    touch-action: manipulation;
  }

  .start-menu-icon {
    width: 18px;
    height: 18px;
  }

  .start-menu-label {
    font-size: 12px;
  }

  .start-menu-header {
    padding: 10px 14px;
  }

  .tray-uptime {
    display: none;
  }

  .tray-clock {
    font-size: 10px;
    min-width: 72px;
  }

  .tray-visitors {
    font-size: 10px;
  }

  .win-content {
    -webkit-overflow-scrolling: touch;
    max-height: 100%;
  }

  .folder-view.projects-folder-view {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .folder-item {
    touch-action: manipulation;
    padding: 8px 4px;
  }

  .project-links a,
  .xp-small-btn,
  .contact-icon-link {
    touch-action: manipulation;
    min-height: 32px;
  }

  .boot-screen {
    padding: 24px 16px;
  }

  .boot-logo {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .taskbar-apps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dos-blink { animation: none; opacity: 1; }
}
