* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  background: #008080;
  color: #000;
  overflow: hidden;
  cursor: default;
}

button,
a {
  font: inherit;
}

.desktop {
  position: relative;
  min-height: 100vh;
  padding: 24px 24px 58px;
}

.desktop-icons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 82px;
  gap: 42px;
  width: 82px;
}

.desktop-icon {
  width: 82px;
  min-height: 92px;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: none;
  text-align: center;
  user-select: none;
  font-size: 12px;
  line-height: 1.15;
  text-shadow: 1px 1px #000;
  cursor: default;
}

.desktop-icon:hover .icon-label,
.desktop-icon:focus-visible .icon-label,
.desktop-icon.selected .icon-label {
  background: #000080;
  outline: 1px dotted #fff;
}

.icon {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto 6px;
  image-rendering: pixelated;
  position: relative;
}

.icon-computer {
  background: #c0c0c0;
  border: 2px solid #fff;
  box-shadow: inset -3px -3px #404040, 4px 4px rgba(0,0,0,.25);
}

.icon-computer::before {
  content: "";
  position: absolute;
  inset: 7px 6px 13px;
  background: #000080;
  border: 2px solid #404040;
}

.icon-computer::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 8px;
  background: #c0c0c0;
  border: 2px solid #404040;
}

.icon-folder {
  background: #f4d35e;
  border: 2px solid #7c5c00;
  box-shadow: 4px 4px rgba(0,0,0,.25);
}

.icon-folder::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -7px;
  width: 22px;
  height: 10px;
  background: #f4d35e;
  border: 2px solid #7c5c00;
  border-bottom: 0;
}

.icon-recycle {
  border: 3px solid #dcdcdc;
  border-top: 0;
  transform: perspective(20px) rotateX(-8deg);
}

.icon-recycle::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: -7px;
  height: 7px;
  background: #dcdcdc;
}

.icon-money {
  background: #00a000;
  border: 2px solid #003800;
  box-shadow: inset -4px -4px #006000, 4px 4px rgba(0,0,0,.25);
}

.icon-money::before {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: bold;
  font-size: 27px;
  text-shadow: 1px 1px #003800;
}

.icon-label {
  display: inline-block;
  padding: 2px 3px;
}

.window {
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.main-window {
  position: absolute;
  top: 70px;
  left: 50%;
  width: min(480px, calc(100vw - 132px));
  transform: translateX(-50%);
  z-index: 3;
}

.note-window {
  position: absolute;
  right: 28px;
  bottom: 86px;
  width: 250px;
  z-index: 1;
}

.alert-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(320px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  z-index: 20;
}

.hidden {
  display: none;
}

.title-bar {
  margin: 3px;
  padding: 3px 4px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 14px;
}


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

.mini-icon {
  width: 14px;
  height: 14px;
  background: #00a000;
  border: 1px solid #fff;
  box-shadow: inset -2px -2px #006000;
}

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

.window-buttons span {
  min-width: 18px;
  height: 18px;
  background: #c0c0c0;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
}

.window-body {
  padding: 24px 20px 18px;
  text-align: center;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 8vw, 58px);
  letter-spacing: -3px;
  line-height: 0.9;
}

.tagline {
  margin: 0 0 28px;
  font-size: clamp(21px, 5vw, 32px);
  font-weight: bold;
  line-height: 1.05;
}

.counter-box {
  width: 100%;
  margin: 0 auto 24px;
  padding: 14px;
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.counter-box strong {
  font-family: "Courier New", monospace;
  font-size: 25px;
  letter-spacing: -1px;
}

.win-button,
.small-win-button {
  background: #dcdcdc;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #404040;
  border-bottom: 3px solid #404040;
  cursor: default;
}

.win-button {
  display: block;
  padding: 12px 14px;
  font-size: 18px;
}

.small-win-button {
  min-width: 86px;
  padding: 6px 14px;
}

.win-button:hover,
.small-win-button:hover,
.start-button:hover {
  filter: brightness(1.03);
}

.win-button:active,
.small-win-button:active,
.start-button:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
  transform: translate(1px, 1px);
}

.small-text {
  margin: 24px 0 0;
  font-size: 14px;
}

.status-bar {
  margin: 3px;
  padding: 5px 7px;
  font-size: 13px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.note-body,
.alert-body {
  padding: 14px;
  font-size: 14px;
  background: #fff;
  margin: 4px;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.alert-body {
  text-align: center;
}

.alert-body p {
  margin: 0 0 16px;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  z-index: 10;
}

.start-button,
.task-item,
.tray {
  height: 29px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-weight: bold;
  font-family: inherit;
}

.start-button {
  gap: 0;
  font-size: 14px;
}

.windows-mark {
  display: none;
}

.task-item {
  flex: 1;
  max-width: 210px;
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

.tray {
  margin-left: auto;
  gap: 10px;
  font-weight: normal;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 720px) {
  .desktop {
    padding: 14px 12px 58px;
  }

  .desktop-icons {
    grid-template-columns: repeat(4, 72px);
    gap: 14px;
    width: 100%;
    justify-content: space-between;
  }

  .desktop-icon {
    width: 72px;
    font-size: 11px;
  }

  .icon {
    width: 36px;
    height: 36px;
  }

  .main-window {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin: 24px auto 0;
  }

  .note-window {
    display: none;
  }

  .window-body {
    padding: 28px 18px 22px;
  }

  .counter-box {
    flex-direction: column;
    justify-content: center;
  }

  .win-button {
    font-size: 18px;
  }

  .task-item {
    max-width: none;
    font-size: 13px;
  }
}
