:root {
  --desktop-bg: #008080;
  --text: #ffffff;
  --shadow: rgba(0, 0, 0, 0.5);

  --win-face: #c0c0c0;
  --win-hi: #ffffff;
  --win-lo: #808080;
  --win-deep: #000000;

  --taskbar-h: 34px;
}

html, body {
  height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--desktop-bg);
  color: var(--text);
  font-family: "MS Sans Serif", Tahoma, Verdana, Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.desktop {
  position: relative;
  width: 100%;
  height: 100%;
  padding-bottom: var(--taskbar-h);
  box-sizing: border-box;
}

.desktop-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 84px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--text);
  display: grid;
  justify-items: center;
  gap: 6px;
  border-radius: 2px;
}

.desktop-icon:focus-visible {
  outline: 1px dotted var(--win-deep);
  outline-offset: 2px;
  background: rgba(0, 0, 0, 0.12);
}

.desktop-icon__glyph {
  width: 34px;
  height: 34px;
  background: var(--win-face);
  box-shadow:
    inset -1px -1px 0 var(--win-deep),
    inset 1px 1px 0 var(--win-hi),
    inset -2px -2px 0 var(--win-lo),
    inset 2px 2px 0 var(--win-hi),
    0 1px 0 var(--shadow);
  position: relative;
}

.desktop-icon__glyph::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  width: 18px;
  height: 20px;
  background: #ffffff;
  box-shadow:
    inset -1px -1px 0 var(--win-deep),
    inset 1px 1px 0 var(--win-hi),
    inset -2px -2px 0 var(--win-lo);
}

.desktop-icon__glyph::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 18px;
  width: 8px;
  height: 8px;
  background: #e0e0e0;
  transform: skew(-15deg, -15deg);
  box-shadow:
    inset -1px -1px 0 var(--win-deep),
    inset 1px 1px 0 var(--win-hi);
}

.desktop-icon__label {
  text-shadow: 0 1px 0 var(--shadow);
  line-height: 1.1;
  text-align: center;
  user-select: none;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  background: var(--win-face);
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 var(--win-hi),
    inset 0 2px 0 var(--win-hi),
    inset 0 -1px 0 var(--win-deep);
  z-index: 70;
}

.start-button {
  font: inherit;
  height: 26px;
  padding: 0 10px;
  background: var(--win-face);
  border: 0;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    inset -1px -1px 0 var(--win-deep),
    inset 1px 1px 0 var(--win-hi),
    inset -2px -2px 0 var(--win-lo),
    inset 2px 2px 0 var(--win-hi);
}

.start-logo {
  width: 22px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.start-label {
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

.start-button:active {
  box-shadow:
    inset -1px -1px 0 var(--win-hi),
    inset 1px 1px 0 var(--win-deep),
    inset -2px -2px 0 var(--win-hi),
    inset 2px 2px 0 var(--win-lo);
}

.taskbar-spacer {
  flex: 1;
}

.tray {
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--win-face);
  box-shadow:
    inset -1px -1px 0 var(--win-hi),
    inset 1px 1px 0 var(--win-deep);
}

.tray-clock {
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

.win95-window {
  position: fixed;
  left: 50%;
  top: calc(50% - (var(--taskbar-h) / 2));
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px));
  height: min(360px, calc(100vh - var(--taskbar-h) - 24px));
  background: var(--win-face);
  color: #000;
  display: grid;
  grid-template-rows: 26px 1fr;
  box-shadow:
    inset -1px -1px 0 var(--win-deep),
    inset 1px 1px 0 var(--win-hi),
    inset -2px -2px 0 var(--win-lo),
    inset 2px 2px 0 var(--win-hi),
    0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.win95-titlebar {
  background: #000080;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 8px;
  box-sizing: border-box;
}

.win95-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win95-close {
  width: 22px;
  height: 20px;
  background: var(--win-face);
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: default;
  box-shadow:
    inset -1px -1px 0 var(--win-deep),
    inset 1px 1px 0 var(--win-hi),
    inset -2px -2px 0 var(--win-lo),
    inset 2px 2px 0 var(--win-hi);
}

.win95-close:active {
  box-shadow:
    inset -1px -1px 0 var(--win-hi),
    inset 1px 1px 0 var(--win-deep),
    inset -2px -2px 0 var(--win-hi),
    inset 2px 2px 0 var(--win-lo);
}

.win95-body {
  padding: 10px 12px;
  overflow: auto;
  box-sizing: border-box;
}

.win95-body p {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.35;
}
