html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-family: Tahoma, Verdana, Geneva, sans-serif;
}

* { box-sizing: border-box; }

a { color: #0a3fb0; }
a:hover { color: #1a58d6; }

@keyframes jd-blocks {
  0% { left: -34px; }
  100% { left: 100%; }
}

@keyframes jd-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.jd-tb-btn { transition: filter .1s; cursor: pointer; }
.jd-tb-btn:hover { filter: brightness(1.15); }

.jd-icon:hover {
  background: rgba(49, 106, 197, 0.35);
  outline: 1px dotted rgba(255, 255, 255, 0.5);
}

.jd-proj-icon:hover {
  background: rgba(49, 106, 197, 0.16);
  outline: 1px dotted rgba(36, 86, 201, 0.4);
}

.jd-start-item:hover {
  background: linear-gradient(180deg, var(--accL), var(--accent));
  color: #fff !important;
}

.jd-start-link:hover { background: rgba(255, 255, 255, 0.6); }

#jd-desktop {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a0d17;
}

#jd-wallpaper {
  position: absolute;
  inset: 0;
}

/* ═══ DESKTOP ICONS ═══ */
#jd-icons {
  position: absolute;
  top: 16px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.jd-icon {
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
  padding: 7px 4px;
  border-radius: 3px;
}

.jd-icon-label {
  font-size: 11px;
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 30, 0.9);
  user-select: none;
  line-height: 1.2;
}

.jd-icon-glyph {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.jd-icon-glyph.jd-icon-glyph-img {
  border-radius: 0;
}

.jd-icon-glyph.jd-glyph-about {
  background-image: linear-gradient(160deg, #7fb0f7, #2a6fd6 60%, #194a9e);
}
.jd-icon-glyph.jd-glyph-projects {
  width: 44px; height: 40px; border-radius: 8px; align-items: stretch; justify-content: stretch;
}
.jd-icon-glyph.jd-glyph-gallery {
  width: 40px; height: 38px; padding: 4px;
  background-image: linear-gradient(180deg, #fdfdfd, #dfe4ec);
}
.jd-icon-glyph.jd-glyph-notepad {
  width: 32px; height: 40px; border-radius: 3px;
}
.jd-icon-glyph.jd-glyph-contact {
  width: 44px; height: 32px; margin-bottom: 4px; border-radius: 3px; position: relative;
}
.jd-icon-glyph.jd-glyph-custom {
  width: 32px; height: 40px; border-radius: 3px;
}

/* Ikon custom yang di-upload user selalu pakai kotak persegi seragam,
   supaya gambar apa pun (bukan bentuk glyph bawaan) gak ke-crop aneh. */
.jd-icon-glyph.jd-icon-glyph-img {
  width: 42px; height: 42px; margin-bottom: 0;
}

.jd-glyph-inner-about {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 4px;
}
.jd-glyph-inner-about .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.jd-glyph-inner-about .body { width: 24px; height: 11px; border-radius: 9px 9px 3px 3px; background: #fff; }

.jd-glyph-inner-projects {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 40, 0.45));
}
.jd-glyph-inner-projects .tab { width: 20px; height: 8px; background: linear-gradient(180deg, #ffe07a, #f0b93c); border-radius: 4px 6px 0 0; }
.jd-glyph-inner-projects .body { width: 44px; height: 29px; background: linear-gradient(180deg, #ffe488, #f4bd42 55%, #e6a52c); border-radius: 2px 6px 6px 6px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7); }

.jd-glyph-inner-gallery {
  width: 100%; height: 100%; border-radius: 2px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #8fc7f2 58%, #4aa864 58%);
}
.jd-glyph-inner-gallery .sun {
  position: absolute; top: 2px; right: 4px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c9, #ffcf4a);
}

.jd-glyph-inner-notepad {
  width: 100%; height: 100%; background: linear-gradient(180deg, #ffffff, #eef1f6);
  display: flex; flex-direction: column; gap: 5px; padding: 9px 6px;
}
.jd-glyph-inner-notepad .line { height: 2px; border-radius: 2px; background: #9fb0d0; }
.jd-glyph-inner-notepad .line.short { width: 60%; }

.jd-glyph-inner-contact {
  position: absolute; inset: 0; background: linear-gradient(180deg, #fdfdfd, #e0e4ec);
}
.jd-glyph-inner-contact .flap {
  position: absolute; top: -15px; left: 8px; width: 28px; height: 28px; transform: rotate(45deg);
  background: #fff; border: 2px solid #c7cddb; border-radius: 3px;
}

/* ═══ WINDOWS ═══ */
.jd-window {
  position: absolute;
  top: 0; left: 0;
  max-width: 96vw;
  flex-direction: column;
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 16px 40px rgba(5, 12, 40, 0.55);
  border: 3px solid var(--accent);
  border-top: none;
  background: #ece9d8;
  overflow: hidden;
}

.jd-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  padding: 0 4px 0 7px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accL) 0%, var(--accent) 8%, var(--accent) 42%, var(--accD) 92%, var(--accL) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.jd-resize-handle {
  position: absolute;
  right: 0; bottom: 0;
  width: 16px; height: 16px;
  cursor: nwse-resize;
  touch-action: none;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(0, 0, 0, 0.28) 50% 60%, transparent 60% 70%, rgba(0, 0, 0, 0.28) 70% 80%, transparent 80% 100%);
}
.jd-maxed .jd-resize-handle { display: none; }

.jd-titlebar-icon {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.jd-titlebar-label {
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 40, 0.7);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jd-tb-btn {
  width: 22px; height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, var(--accL), var(--accD));
}
.jd-tb-btn.jd-min { align-items: flex-end; }
.jd-tb-btn.jd-min span { display: block; width: 8px; height: 3px; background: #fff; margin-bottom: 3px; border-radius: 1px; }
.jd-tb-btn.jd-max span { display: block; width: 9px; height: 8px; border: 1.5px solid #fff; border-top-width: 3px; border-radius: 1px; }
.jd-tb-btn.jd-close {
  background: linear-gradient(180deg, #f08a6e, #c8341a);
  font-size: 14px; font-weight: 700; line-height: 1;
}

.jd-win-body {
  flex: 1;
  overflow: auto;
  background: #f6f5ee;
}

/* About / profile content */
.jd-body-profile {
  display: flex;
  gap: 16px;
  padding: 18px;
  align-items: flex-start;
}
.jd-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e4e8f0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jd-avatar-placeholder {
  font-size: 10px;
  font-family: 'Courier New', monospace;
  color: #9aa2b8;
  text-align: center;
  padding: 6px;
}
.jd-profile-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jd-profile-title { font-size: 19px; font-weight: 700; color: #1c2540; }
.jd-profile-tagline { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.4px; }
.jd-profile-bio { font-size: 13px; line-height: 1.6; color: #3a3f4d; white-space: pre-wrap; }

/* Plain text content */
.jd-body-text {
  background: #fff;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #2b2f3d;
  white-space: pre-wrap;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  width: 100%;
  margin: 0;
}

/* Projects grid content */
.jd-body-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, 90px);
  gap: 6px;
  padding: 16px;
  align-content: start;
  justify-content: start;
}
.jd-proj-icon {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
  padding: 8px 4px;
  border-radius: 3px;
}
.jd-proj-glyph {
  width: 46px; height: 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 40, 0.3));
}
.jd-proj-glyph .tab { width: 20px; height: 8px; background: linear-gradient(180deg, #ffe07a, #f0b93c); border-radius: 4px 6px 0 0; }
.jd-proj-glyph .body { width: 46px; height: 29px; background: linear-gradient(180deg, #ffe488, #f4bd42 55%, #e6a52c); border-radius: 2px 6px 6px 6px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7); }
.jd-proj-label { font-size: 11px; color: #1c2540; text-align: center; line-height: 1.2; }

/* Gallery grid content */
.jd-body-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  align-content: start;
}
.jd-gal-slot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  background: #e4e8f0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jd-gal-slot span {
  font-size: 10px;
  font-family: 'Courier New', monospace;
  color: #9aa2b8;
  text-align: center;
  padding: 6px;
}

/* Contact content */
.jd-body-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.jd-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.jd-contact-row .k { color: #6a7086; }
.jd-contact-row .v { font-weight: 700; color: #1c2540; text-decoration: none; }
.jd-contact-send,
.jd-contact-send:hover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accL), var(--accD));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 40, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* ═══ MUSIC PLAYER (Winamp-style) ═══ */
.jd-body-musik {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  height: 100%;
  background: linear-gradient(180deg, #3a3a3a, #1c1c1c);
}
.jd-wa-screen {
  background: #0d1f0a;
  border-radius: 3px;
  padding: 8px 10px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #000;
  font-family: 'Courier New', monospace;
}
.jd-wa-now-title {
  color: #a8ff60;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 6px rgba(168, 255, 96, 0.55);
}
.jd-wa-now-artist {
  color: #6fce46;
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jd-wa-time {
  color: #6fce46;
  font-size: 11px;
  margin-top: 5px;
  text-align: right;
}
.jd-wa-progress {
  height: 10px;
  border-radius: 5px;
  background: #0d0d0d;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  overflow: hidden;
}
.jd-wa-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, #b9ff7a, #4fae2c);
}
.jd-wa-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jd-wa-btn {
  width: 34px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #0a0a0a;
  background: linear-gradient(180deg, #5c5c5c, #363636);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.jd-wa-btn:active { filter: brightness(0.85); }
.jd-wa-ico-prev, .jd-wa-ico-next, .jd-wa-ico-play {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.jd-wa-ico-play { border-left: 9px solid #d8f5c8; }
.jd-wa-play.is-playing .jd-wa-ico-play {
  width: 8px; height: 12px; border: none;
  background: #d8f5c8;
  box-shadow: 4px 0 0 #d8f5c8;
}
.jd-wa-ico-next { border-left: 9px solid #d8f5c8; margin-right: -3px; }
.jd-wa-ico-next::after { content: ''; }
.jd-wa-ico-prev { border-right: 9px solid #d8f5c8; margin-left: -3px; }
.jd-wa-volume {
  flex: 1;
  accent-color: #6fce46;
  height: 16px;
}
.jd-wa-playlist {
  flex: 1;
  overflow-y: auto;
  background: #0d0d0d;
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 3px;
}
.jd-wa-track {
  padding: 5px 8px;
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  color: #9fd685;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jd-wa-track:hover { background: rgba(168, 255, 96, 0.12); }
.jd-wa-track.active { background: rgba(168, 255, 96, 0.22); color: #d8ffb8; font-weight: 700; }
.jd-wa-empty {
  padding: 14px 10px;
  font-size: 11.5px;
  color: #6a8a5f;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.jd-icon-glyph.jd-glyph-musik {
  width: 42px; height: 42px; border-radius: 9px;
  background-image: linear-gradient(160deg, #8fe6a0, #1f8a5b);
}
.jd-glyph-inner-musik {
  display: flex; align-items: flex-end; gap: 3px; margin-bottom: 6px;
}
.jd-glyph-inner-musik .note1, .jd-glyph-inner-musik .note2 {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; position: relative;
}
.jd-glyph-inner-musik .note1 { height: 14px; width: 2px; border-radius: 1px; }
.jd-glyph-inner-musik .note1::after { content: ''; position: absolute; bottom: 0; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.jd-glyph-inner-musik .note2 { height: 18px; width: 2px; border-radius: 1px; }
.jd-glyph-inner-musik .note2::after { content: ''; position: absolute; bottom: 0; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ═══ VIDEO PLAYER (YouTube embed) ═══ */
.jd-body-video {
  display: flex;
  flex-direction: row;
  height: 100%;
  background: #000;
}
.jd-video-frame {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  background: #000;
}
.jd-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.jd-video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a94aa;
  font-size: 12px;
  text-align: center;
  padding: 20px;
  font-family: 'Courier New', monospace;
}
.jd-video-tablist {
  width: 150px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #1c1c1c;
  padding: 4px;
  border-left: 1px solid #000;
}
.jd-video-tab {
  padding: 8px 8px;
  font-size: 11.5px;
  color: #cfd6e4;
  border-radius: 4px;
  cursor: pointer;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.jd-video-tab:hover { background: rgba(255, 255, 255, 0.08); }
.jd-video-tab.active { background: rgba(214, 40, 40, 0.28); color: #fff; font-weight: 700; }

.jd-icon-glyph.jd-glyph-video {
  width: 42px; height: 42px; border-radius: 9px;
  background-image: linear-gradient(160deg, #f79f9f, #d62828);
}
.jd-glyph-inner-video {
  display: flex; align-items: center; justify-content: center; margin-bottom: 0;
  width: 100%; height: 100%;
}
.jd-glyph-inner-video .tri {
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  margin-left: 3px;
}

/* ═══ START MENU ═══ */
#jd-start-menu {
  position: absolute;
  left: 2px;
  bottom: 40px;
  width: 360px;
  max-width: 90vw;
  z-index: 6000;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(5, 12, 40, 0.6);
  border: 1px solid var(--accD);
  border-bottom: none;
  animation: jd-fade 0.12s ease-out;
  font-size: 13px;
}

.jd-start-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  background: linear-gradient(180deg, var(--accL), var(--accent) 55%, var(--accD));
  border-bottom: 2px solid #e8a020;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.jd-start-logo-tile {
  width: 42px; height: 42px; border-radius: 6px;
  background: linear-gradient(180deg, #7bc858 0%, #5aad3a 44%, #3f8f26 55%, #2f7d1c 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset -2px -2px 6px rgba(0, 40, 0, 0.35), 0 1px 3px rgba(0, 0, 40, 0.4);
}
.jd-start-logo-tile img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 30, 0.5)); }
.jd-start-title { color: #fff; font-size: 15px; font-weight: 700; text-shadow: 1px 1px 2px rgba(0, 0, 40, 0.7); }

.jd-start-body { display: flex; background: #fff; }
.jd-start-items {
  width: 56%;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid #cfd8ea;
}
.jd-start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 3px;
  cursor: default;
  color: #1c2540;
}
.jd-start-item .jd-icon-glyph { flex-shrink: 0; }
.jd-start-item span.jd-start-item-label { font-weight: 600; }

.jd-start-links {
  width: 44%;
  background: linear-gradient(180deg, #d3e0f5, #e9eff9);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.jd-start-links-title { font-size: 11px; font-weight: 700; color: #3a5a92; padding: 4px 6px 3px; }
.jd-start-link,
.jd-start-link:hover {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 3px;
  text-decoration: none;
  color: #12315f;
}
.jd-start-link-icon { width: 18px; height: 18px; border-radius: 3px; flex-shrink: 0; position: relative; overflow: hidden; }
.jd-start-link-icon.email { background: linear-gradient(180deg, #fdfdfd, #dfe4ec); }
.jd-start-link-icon.ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.jd-start-link-icon.wa { background: linear-gradient(160deg, #8be59a, #2aa84a); }

.jd-link-inner-email { position: absolute; inset: 0; }
.jd-link-inner-email .flap {
  position: absolute; left: 2px; right: 2px; top: 3px; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 5px solid #9fb0d0;
}
.jd-link-inner-ig { position: absolute; inset: 3px; border: 1.5px solid #fff; border-radius: 4px; }
.jd-link-inner-ig .lens { position: absolute; inset: 2px; border: 1.5px solid #fff; border-radius: 50%; }
.jd-link-inner-wa { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.jd-link-inner-wa .bubble { width: 10px; height: 8px; background: #fff; border-radius: 5px 5px 5px 1px; }

.jd-start-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px 16px;
  background: linear-gradient(180deg, var(--accL), var(--accent) 55%, var(--accD));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.jd-restart {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: default;
  color: #fff;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 40, 0.6);
}
.jd-restart:hover { text-decoration: underline; }
.jd-restart-icon {
  width: 22px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, #f6b24a, #d97a17);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.jd-restart-icon span {
  width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; border-top-color: transparent;
}

/* ═══ TASKBAR ═══ */
#jd-taskbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  display: flex;
  align-items: stretch;
  z-index: 5000;
  background: linear-gradient(180deg, var(--accL) 0%, var(--accent) 9%, var(--accent) 55%, var(--accD) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 -1px 4px rgba(0, 0, 20, 0.4);
}

#jd-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  height: 100%;
  padding: 0 20px 0 14px;
  border: none;
  color: #fff;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0, 0, 30, 0.7);
  background: linear-gradient(180deg, #7bc858 0%, #5aad3a 44%, #3f8f26 55%, #2f7d1c 100%);
  border-radius: 0 12px 12px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 30, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset -2px -2px 6px rgba(0, 40, 0, 0.35);
}
#jd-start-btn img { height: 34px; width: 34px; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 30, 0.5)); }

#jd-task-buttons {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 5px 6px;
}
.jd-task-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-family: Tahoma, sans-serif;
  text-align: left;
  max-width: 165px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 1px rgba(0, 0, 30, 0.5);
}
.jd-task-btn-icon { width: 15px; height: 15px; border-radius: 3px; flex-shrink: 0; background: linear-gradient(160deg, #cfe0fb, #7aa6e8); }

#jd-clock {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(180deg, #1a8fd6, #1372c0);
  box-shadow: inset 1px 0 0 rgba(0, 0, 40, 0.3), inset 2px 0 0 rgba(255, 255, 255, 0.25);
  text-shadow: 1px 1px 1px rgba(0, 0, 30, 0.5);
  min-width: 54px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* ═══ CRT OVERLAY ═══ */
.jd-crt-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#jd-crt-1 {
  z-index: 8000;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 1px, transparent 1px, transparent 2px);
}
#jd-crt-2 {
  z-index: 8001;
  background: radial-gradient(120% 120% at 50% 50%, transparent 58%, rgba(0,0,20,0.35) 100%);
  box-shadow: inset 0 0 90px rgba(0,0,30,0.45);
}
#jd-crt-3 {
  z-index: 8002;
  opacity: 0.4;
  background: repeating-linear-gradient(0deg, rgba(120,180,255,0.05) 0px, rgba(255,120,120,0.05) 2px, rgba(120,255,160,0.05) 4px);
}

/* ═══ BOOT SCREEN ═══ */
#jd-boot {
  position: absolute;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
}
#jd-boot img { width: 300px; max-width: 70vw; filter: drop-shadow(0 0 22px rgba(60,120,240,0.35)); }
.jd-boot-bar {
  position: relative;
  width: 150px; height: 16px;
  border: 2px solid #4a5b86;
  border-radius: 4px;
  overflow: hidden;
}
.jd-boot-blocks {
  position: absolute;
  top: 1px; left: -34px;
  display: flex;
  gap: 4px;
  height: 10px;
  animation: jd-blocks 1.6s linear infinite;
}
.jd-boot-blocks div { width: 8px; height: 10px; border-radius: 1px; background: linear-gradient(180deg, #8fb4ff, #2a6fd6); }
.jd-boot-text { color: #8a9bc4; font-size: 13px; letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce) {
  .jd-boot-blocks { animation: none; left: 0; }
  #jd-start-menu { animation: none; }
}

/* ═══ MOBILE ═══ windows open at a comfortable centered size (see fitToViewport()
   in app.js) but stay fully draggable/resizable — just make the chrome touch-friendly. */
@media (max-width: 768px) {
  .jd-titlebar { height: 38px; }
  .jd-titlebar .jd-tb-btn { width: 30px; height: 30px; }
  .jd-task-btn { height: 34px; }
  .jd-window { max-width: calc(100vw - 12px); max-height: 88dvh; }
  .jd-resize-handle { width: 26px; height: 26px; }
  #jd-start-btn { padding: 0 16px 0 12px; font-size: 14px; }
  #jd-start-btn img { height: 30px; width: 30px; }
}
