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

html, body {
  height: 100%;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 30;
  font-size: 13px;
  color: #fff;
}

.ca {
  font-family: Consolas, monospace;
  letter-spacing: 0.5px;
}

.ca span {
  color: #ffd966;
}

.x-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}

.x-link:hover {
  color: #1d9bf0;
}

.x-logo {
  width: 14px;
  height: 14px;
}

.desktop {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(to bottom, #1e5fb0 0%, #3a8ee0 40%, #6cbf3f 70%, #3d8f2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* desktop icon, centered */
.icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
}

.icon:hover img,
.icon:focus img {
  border-color: #ffffffaa;
  filter: brightness(1.1);
}

.icon span {
  color: #fff;
  font-size: 13px;
  text-shadow: 1px 1px 2px #000;
  background: transparent;
  padding: 1px 4px;
}

/* XP style window */
.window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 420px);
  background: #ece9d8;
  border: 1px solid #0831d9;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 10;
}

.window.open {
  display: block;
}

.titlebar {
  background: linear-gradient(to bottom, #2f7cf6 0%, #1450d8 50%, #0d3fc7 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 4px 8px;
  font-weight: bold;
  font-size: 13px;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-icon {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.titlebar-buttons {
  display: flex;
  gap: 3px;
}

.titlebar-buttons button {
  width: 20px;
  height: 18px;
  border: 1px solid #0831d9;
  border-radius: 3px;
  background: linear-gradient(to bottom, #4f94f7, #1a52d8);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

#closeBtn {
  background: linear-gradient(to bottom, #f77, #d00);
}

.window-body {
  padding: 16px;
  text-align: center;
}

.window-body img {
  width: 100%;
  max-width: 340px;
  border-radius: 4px;
  border: 1px solid #999;
}

.window-body p {
  margin-top: 10px;
  font-size: 13px;
  color: #222;
}

/* taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: linear-gradient(to bottom, #2b5cd8, #0d2fa0);
  border-top: 1px solid #6699ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  z-index: 20;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(to bottom, #6fce4a, #2f8a1e);
  color: #fff;
  font-weight: bold;
  font-style: italic;
  font-size: 14px;
  cursor: pointer;
}

.start-flag {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  display: inline-block;
}

.clock {
  color: #fff;
  font-size: 12px;
  padding-right: 10px;
}
