* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 13px;
  background: #000618;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== canvases ===== */
#trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ===== окно ===== */
#window {
  position: fixed;
  top: 150px;
  left: 200px;
  width: 400px;
  background: #d4d0c8;
  border: 3px solid #0058e6;
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 10;
}

#titlebar {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 2px 0 6px;
  background: #0058e6;
  box-shadow:
    inset 0 4px 6px -3px rgba(255, 255, 255, 0.4),
    inset 0 -3px 4px -2px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: bold;
  font-size: 17px;
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  cursor: move;
}

#title-text {
  flex: 1;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

#close-btn {
  width: 22px;
  height: 20px;
  background: linear-gradient(to bottom, #e85a5a 0%, #c93030 50%, #a02020 100%);
  border: none;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

#close-btn:hover {
  background: linear-gradient(to bottom, #ff7070 0%, #e04040 50%, #c03030 100%);
}

#close-btn:active {
  background: linear-gradient(to bottom, #a02020 0%, #c93030 50%, #e85a5a 100%);
}

#window-body {
  padding: 16px 14px 20px 14px;
  display: flex;
  gap: 16px;
}

#window-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

#window-text {
  color: #000;
  line-height: 1.5;
  padding-top: 2px;
}

#window-buttons {
  padding: 0 14px 16px 14px;
  display: flex;
  justify-content: flex-end;
}

#ok-btn {
  min-width: 80px;
  height: 24px;
  background: #d4d0c8;
  border: 1px solid #000;
  box-shadow:
    inset -1px -1px 0 #888,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #c8c4bd,
    inset 2px 2px 0 #e8e5e0;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  cursor: pointer;
  padding: 0 12px;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

#ok-btn:hover {
  background: #e0dcd4;
}

#ok-btn:active {
  box-shadow:
    inset 1px 1px 0 #888,
    inset -1px -1px 0 #fff,
    inset 2px 2px 0 #c8c4bd,
    inset -2px -2px 0 #e8e5e0;
  padding: 1px 11px 0 13px;
}