:root {
  --teal: #008080;
  --teal-dark: #0b5f60;
  --beige: #d4d0c8;
  --beige-light: #ece9d8;
  --shadow-dark: #404040;
  --shadow-light: #ffffff;
  --ink: #121212;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "VT323", monospace;
  color: var(--ink);
  background: #000;
}

.desktop {
  min-height: 100vh;
  background: var(--teal);
  position: relative;
  overflow: hidden;
}

.desktop__wallpaper {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #16b7b7 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #0a6f6f 0%, transparent 45%),
    radial-gradient(circle at 40% 80%, #2dd1c3 0%, transparent 50%),
    linear-gradient(135deg, #0b7778, #0f8c8d);
  opacity: 0.85;
}

.desktop__icons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  padding: 40px 32px 120px;
  max-width: 1000px;
}

.icon {
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  cursor: pointer;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  padding: 6px;
  text-decoration: none;
}

.icon:focus {
  outline: 2px dotted #fff;
  outline-offset: 4px;
}

.icon__glyph {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  background: linear-gradient(145deg, #f6f2d5, #b6b2a5);
  border: 2px solid #1c1c1c;
  box-shadow: inset -2px -2px 0 #858585, inset 2px 2px 0 #fff;
  display: block;
}

.icon--turnt .icon__glyph {
  background: radial-gradient(circle at 30% 30%, #ff6bf7 0%, #a94bff 35%, #2c1c5a 70%);
  border-color: #000;
  position: relative;
}

.icon--turnt .icon__glyph::before,
.icon--turnt .icon__glyph::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.icon--turnt .icon__glyph::before {
  width: 28px;
  height: 28px;
  left: 10px;
  top: 10px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.35);
}

.icon--turnt .icon__glyph::after {
  width: 12px;
  height: 12px;
  right: 8px;
  bottom: 8px;
  background: #ffef7a;
  box-shadow: 0 0 6px rgba(255, 239, 122, 0.8);
}

.icon__label {
  display: block;
  line-height: 1.1;
}

.window {
  position: absolute;
  right: 7vw;
  top: 14vh;
  width: min(360px, 80vw);
  background: var(--beige);
  border: 2px solid #000;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.window__titlebar {
  background: linear-gradient(90deg, #1b3a7a, #3f6ab0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 1.1rem;
}

.window__controls {
  display: flex;
  gap: 4px;
}

.window__btn {
  width: 20px;
  height: 18px;
  background: var(--beige-light);
  border: 2px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #000;
}

.window__body {
  padding: 16px;
  font-size: 1.1rem;
  background: var(--beige-light);
  border-top: 2px solid #000;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: var(--beige);
  border-top: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  z-index: 3;
}

.start {
  background: var(--beige-light);
  border: 2px solid #000;
  box-shadow: inset -2px -2px 0 #7a7a7a, inset 2px 2px 0 #fff;
  padding: 4px 16px;
  font-family: "VT323", monospace;
  font-size: 1.1rem;
}

.taskbar__tray {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--beige-light);
  border: 2px solid #000;
  padding: 4px 10px;
}

.tray__item {
  font-size: 1rem;
}

.tray__clock {
  min-width: 52px;
  text-align: right;
}

@media (max-width: 720px) {
  .desktop__icons {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    padding-bottom: 160px;
  }

  .window {
    position: static;
    margin: 12px auto 80px;
  }

  .taskbar {
    height: 56px;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }
}
