html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #111;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  overflow: hidden;
  touch-action: none;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  width: 100vw;
}

#launcher {
  padding: 24px;
  text-align: center;
}

#apk-input {
  margin: 12px 0;
}

button {
  background: #0af;
  border: none;
  padding: 10px 18px;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin: 4px;
}

button:hover {
  background: #08d;
}

#info {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #aaa;
}

#file-list {
  margin-top: 12px;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
  background: #222;
  padding: 8px;
  border-radius: 6px;
  width: 90vw;
  max-width: 480px;
}

#emulator {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#device-frame {
  position: relative;
  width: min(90vw, 400px);
  aspect-ratio: 9/16;
  background: #000;
  border: 2px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

#screen {
  width: 100%;
  height: 100%;
  display: block;
}

#controls {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#controls button {
  font-size: 0.9rem;
  padding: 8px 14px;
}
