:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --cyan: #65d9ff;
  --danger: #ff6b8a;
  --glass: rgba(14, 20, 37, .82);
  --line: rgba(101, 217, 255, .28);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button,
a { font: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.desktop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #07111a url("/assets/wallpaper_for_linux.jpg") center / cover no-repeat;
  user-select: none;
}

.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 9, 15, .08), rgba(0, 9, 15, .24));
  pointer-events: none;
}

.shortcut {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 26px;
  display: grid;
  gap: 7px;
  width: 82px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  background: transparent;
  text-shadow: 0 2px 5px #000;
  cursor: grab;
  text-align: center;
  text-decoration: none;
  touch-action: none;
}

.shortcut--portfolio { top: 120px; }
.shortcut--dampf { top: 212px; }
.shortcut.dragging { cursor: grabbing; }

.shortcut:hover,
.shortcut:focus-visible {
  border-color: var(--line);
  background: rgba(66, 180, 211, .18);
}

.shortcut__icon {
  display: grid;
  width: 52px;
  height: 45px;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(138, 231, 247, .5);
  border-radius: 7px;
  color: var(--cyan);
  background: linear-gradient(145deg, #142a3a, #071019);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  font: 700 19px/1 ui-monospace, monospace;
}

.shortcut__icon--dampf {
  border-radius: 50%;
  color: #07111a;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(101, 217, 255, .32), 0 8px 18px rgba(0, 0, 0, .45);
}

.window--dampf {
  top: 6%;
  left: 10%;
  width: 80%;
  height: 82%;
}

.window {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 13%;
  display: flex;
  width: 74%;
  height: 76%;
  min-width: 320px;
  min-height: 260px;
  flex-direction: column;
  overflow: hidden;
  resize: both;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080d18;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(94, 231, 247, .08);
}

.window[hidden] { display: none; }

.window.maximised {
  inset: 8px 8px 57px !important;
  width: auto !important;
  height: auto !important;
  resize: none;
}

.window__titlebar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  color: #e9faff;
  background: linear-gradient(180deg, rgba(31, 49, 64, .97), rgba(16, 26, 38, .97));
  cursor: move;
}

.window__app {
  padding-left: 13px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window__app > span {
  margin-right: 8px;
  color: var(--cyan);
  font: 700 14px ui-monospace, monospace;
}

.window__controls {
  display: flex;
  align-self: stretch;
}

.window__controls button {
  width: 44px;
  border: 0;
  color: #dcebf0;
  background: transparent;
  cursor: pointer;
}

.window__controls button:hover { background: rgba(255, 255, 255, .1); }
.window__controls .window__close:hover { background: var(--danger); }

.window iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050815;
  user-select: auto;
}

.panel {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  backdrop-filter: blur(16px);
}

.panel__launcher {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #07131b;
  background: var(--cyan);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(94, 231, 247, .35);
}

.panel__task {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #e8f6fa;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
}

.panel__task[hidden] { display: none; }

.panel__task.active {
  box-shadow: inset 0 -2px var(--cyan);
  background: rgba(94, 231, 247, .12);
}

.panel__task > span:first-child {
  color: var(--cyan);
  font: 700 13px ui-monospace, monospace;
}

.panel__clock {
  margin-left: auto;
  padding: 0 8px;
  color: #effbff;
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
  white-space: pre-line;
}

@media (max-width: 620px) {
  .window {
    inset: 8px 8px 57px;
    width: auto;
    height: auto;
    min-width: 0;
    resize: none;
  }

  .panel__task span:last-child { display: none; }
}
