/* =========================
   RESET TOTAL UNTUK LAYAR OS
========================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --taskbar-height: 65px;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden; /* Hilangkan scrollbar layar utama dan sisa ruang bawah */
  position: relative;
  background: #000;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* CONTAINER UTAMA */
.container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--taskbar-height); /* Kunci batas bawah tepat di atas taskbar */
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Scroll hanya terjadi di dalam area konten/ikon */
  -webkit-overflow-scrolling: touch;
}

/* JIKA ADA TOPBAR STICKY */
.topbar, [class*="topbar"], [class*="header"] {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* WRAPPER IKON */
.icons-wrapper {
  width: 100%;
  padding: 16px;
  flex: 1;
}

/* GRID DEFAULT (HP) */
.icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  width: 100%;
}

/* TOMBOL / ITEM IKON INSTAN MERESPONS SENTUHAN */
.icon-item {
  width: 100%;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1);
}

.icon-item:active {
  transform: scale(0.92);
}

/* TASKBAR SLOT DI DASAR VIEWPORT */
#taskbar-slot {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--taskbar-height);
  z-index: 100;
  pointer-events: auto;
}