/* =====================================================================
   DESKTOP – original sky, sun and tea-field hills, plus the taskbar,
   the tray, the language button and the Japan-time clock.
   ===================================================================== */
.desktop {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: var(--bg-sky);
  overflow: hidden;
}

.desktop__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* subtle seigaiha (wave) texture over the sky */
.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background: var(--bg-seigaiha);
  mask-image: var(--mask-sky-fade);
  -webkit-mask-image: var(--mask-sky-fade);
}

/* ---------------------------------------------------------------------
   TASKBAR
   --------------------------------------------------------------------- */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  z-index: var(--z-taskbar);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-family: var(--chrome-font);
  font-size: var(--fs-13);
  color: var(--white);
  background: var(--bg-taskbar);
  border-top: 1px solid var(--taskbar-edge);
}

/* "Show desktop" – yellow gel, 抹茶 */
.taskbar__home {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px 0 8px;
  border: 0;
  border-radius: var(--radius-home);
  font-weight: 700;
  font-size: var(--fs-14);
  background: var(--gel-home);
  box-shadow: var(--shadow-home);
  color: var(--text-on-yolk);
  text-shadow: var(--text-shadow-on-yolk);
}

.taskbar__home svg {
  width: 22px;
  height: 22px;
}

.taskbar__home:hover {
  filter: brightness(1.06);
}

.taskbar__home:active {
  filter: brightness(.94);
}

/* One button per open window */
.taskbar__tasks {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.task {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 190px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--overlay-white-35);
  border-radius: var(--radius-control);
  color: var(--white);
  font-size: var(--fs-12);
  background: var(--overlay-white-14);
  text-shadow: var(--text-shadow-task);
}

.task span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.task.is-active {
  background: var(--shade-black-18);
  box-shadow: var(--shadow-task-active);
}

.task:hover {
  background: var(--overlay-white-24);
}

/* ---------------------------------------------------------------------
   TRAY – language switch (EN → ES → 日) and the clock
   --------------------------------------------------------------------- */
.lang-btn {
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  border-radius: var(--radius-small);
  border: 1px solid var(--overlay-white-35);
  background: var(--shade-black-14);
  color: var(--white);
  font-family: var(--chrome-font);
  font-size: var(--fs-12);
  font-weight: 700;
  text-shadow: var(--text-shadow-task);
}

.lang-btn:hover {
  background: var(--overlay-white-20);
}

.lang-btn:active {
  background: var(--shade-black-25);
  box-shadow: var(--shadow-lang-pressed);
}

.taskbar__tray {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 12px;
  background: var(--bg-tray);
  border-left: 1px solid var(--tray-edge);
  font-size: var(--fs-12);
}
